/* Current Minute — editorial news-reader */

:root,
html[data-theme="light"] {
    --bg: #f7f6f3;
    --bg-soft: #f0eeea;
    --surface: #f7f6f3;
    --text-primary: #141414;
    --text-secondary: #3f4349;
    --text-muted: #6a7078;
    --text: var(--text-primary);
    --border: #e2ddd6;
    --rule: var(--border);
    --rule-strong: #c8c3bb;
    --category-text: #5c636b;
    --accent-blue: #2563eb;
    --accent-teal: #0f9f90;
    --signal: var(--accent-blue);
    --teal: var(--accent-teal);
    --link: var(--accent-blue);
    --focus: var(--accent-blue);
    --new: var(--accent-teal);
    --shell: 42rem;
    --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-serif: "Newsreader", "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.75rem;
    --entry-pad-top: 1.5rem;
    --entry-pad-bottom: 1.7rem;
}

html[data-theme="dark"] {
    --bg: #121212;
    --bg-soft: #1a1c1e;
    --surface: #121212;
    --text-primary: #f4f4f2;
    --text-secondary: #c6c7c9;
    --text-muted: #8d939a;
    --text: var(--text-primary);
    --border: #252a30;
    --rule: var(--border);
    --rule-strong: #3a4048;
    --category-text: #a7adb4;
    --accent-blue: #4c8dff;
    --accent-teal: #28c7b7;
    --signal: var(--accent-blue);
    --teal: var(--accent-teal);
    --link: var(--accent-blue);
    --focus: var(--accent-blue);
    --new: var(--accent-teal);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: light dark;
}

body.cm-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
}

a:hover {
    color: color-mix(in srgb, var(--link) 82%, #000);
}

html[data-theme="dark"] a:hover {
    color: color-mix(in srgb, var(--link) 88%, #fff);
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

.cm-shell {
    width: min(100% - 1.5rem, var(--shell));
    margin-inline: auto;
}

/* ——— Public header ——— */

.cm-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    /* Safari: sticky + backdrop-filter can steal/drop clicks without a layer. */
    transform: translateZ(0);
    pointer-events: auto;
}

.cm-nav {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.cm-nav-inner {
    width: min(100% - 1.5rem, var(--shell));
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    position: relative;
}

.cm-header-tagline {
    width: min(100% - 1.5rem, var(--shell));
    margin: 0 auto 0.7rem;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.cm-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cm-nav-link,
.cm-brand,
.cm-appearance-btn {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.cm-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    flex-shrink: 0;
    line-height: 0;
}

.cm-logo {
    display: block;
    height: 1.55rem;
    width: auto;
    max-width: min(172px, 62vw);
}

.cm-logo-dark {
    display: none;
}

html[data-theme="dark"] .cm-logo-light {
    display: none;
}

html[data-theme="dark"] .cm-logo-dark {
    display: block;
}

/* Fallback text wordmark if image fails */
.cm-wordmark {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.cm-nav-toggle {
    margin-left: auto;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0;
    cursor: pointer;
}

.cm-nav-toggle span {
    display: block;
    width: 1rem;
    height: 1.5px;
    background: var(--text-primary);
}

.cm-nav-panel {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 1rem 0.9rem;
}

.cm-nav-panel.is-open {
    display: block;
}

.cm-nav-list {
    list-style: none;
    margin: 0 0 0.65rem;
    padding: 0;
    display: grid;
    gap: 0.1rem;
}

.cm-nav-link {
    display: block;
    padding: 0.55rem 0.2rem;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-size: 0.84rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    border-bottom: 2px solid transparent;
}

.cm-nav-link:hover {
    color: var(--text-primary) !important;
}

.cm-nav-link.is-active {
    color: var(--text-primary) !important;
    border-bottom-color: var(--accent-blue);
}

.cm-appearance {
    position: relative;
}

.cm-appearance-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 500;
}

.cm-appearance-btn:hover {
    color: var(--text-primary);
    border-color: var(--rule-strong);
}

.cm-appearance-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    min-width: 8.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.25rem;
    z-index: 50;
}

.cm-appearance-menu button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    padding: 0.5rem 0.55rem;
    border-radius: 3px;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
}

.cm-appearance-menu button:hover,
.cm-appearance-menu button[aria-checked="true"] {
    background: var(--bg-soft);
}

/* ——— Feed / entries ——— */

.cm-main {
    flex: 1;
    padding: 1.05rem 0 2.1rem;
}

.cm-page-intro {
    margin-bottom: 0;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--border);
}

.cm-page-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.28rem, 2vw, 1.45rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--text-primary);
}

.cm-page-dek {
    margin: 0.3rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 34rem;
}

.cm-feed {
    display: block;
}

h2.cm-feed-day {
    margin: 1.35rem 0 0.15rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--text-muted);
}

h2.cm-feed-day:first-child {
    margin-top: 1rem;
}

.cm-feed-pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 0 0.4rem;
}

.cm-entry {
    padding: var(--entry-pad-top) 0 var(--entry-pad-bottom);
    border-bottom: 1px solid var(--border);
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    transition: background-color 0.15s ease;
    cursor: default;
}

.cm-entry[data-cm-event-href] {
    position: relative;
    cursor: pointer;
}

/* Stretch the headline link across the card so the whole entry is clickable. */
.cm-entry[data-cm-event-href] .cm-card-headline > a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Keep nested Story links above the stretched hit area. */
.cm-entry[data-cm-event-href] a.cm-story-label {
    position: relative;
    z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
    .cm-entry[data-cm-event-href]:hover {
        background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
    }

    .cm-entry[data-cm-event-href]:hover .cm-headline a,
    .cm-entry[data-cm-event-href]:hover .cm-card-headline a {
        color: var(--accent-blue) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cm-entry {
        transition: none;
    }
}

.cm-entry:last-child {
    border-bottom: 0;
}

.cm-entry-compact {
    padding: var(--entry-pad-top) 0 var(--entry-pad-bottom);
}

.cm-entry-head {
    margin-bottom: 0.55rem; /* keep context+headline as one group above facts */
}

.cm-entry-context {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.45rem;
    margin-bottom: 0.28rem;
}

.cm-story-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    opacity: 0.92;
}

.cm-story-label:hover {
    color: var(--accent-blue) !important;
}

.cm-context-sep {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1;
    opacity: 0.75;
}

/* Passive category labels — typography only; Signal Blue is reserved for interactive/active UI */
.cm-category,
.cm-label {
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--category-text);
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.cm-new-flag {
    margin: 0 0 0.28rem;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--accent-teal);
}

.cm-headline,
.cm-card-headline {
    margin: 0 0 0.15rem;
    font-family: var(--font-serif);
    font-size: clamp(1.22rem, 2vw, 1.42rem);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.012em;
    color: var(--text-primary);
}

.cm-headline a,
.cm-card-headline a {
    color: var(--text-primary) !important;
    text-decoration: none !important;
}

.cm-headline a:hover,
.cm-card-headline a:hover {
    color: var(--accent-blue) !important;
}

.cm-headline a:focus-visible,
.cm-card-headline a:focus-visible,
.cm-story-label:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-radius: 2px;
}

.cm-bullets {
    margin: 0.55rem 0 0.9rem; /* space after headline group; clear gap before meta */
    padding-left: 1.25rem; /* marker indent only — keep block left edge with headline */
    font-family: var(--font-sans);
    font-size: 0.97rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.cm-bullets li + li {
    margin-top: 0.625rem; /* ~10px — separate facts without loosening the feed */
}

.cm-bullets li::marker {
    color: var(--text-muted);
}

.cm-bullets-lg {
    font-size: 1.01rem;
    line-height: 1.45; /* tighter wrap within a fact */
}

.cm-bullets-lg li + li {
    margin-top: 0.95rem; /* keep clear separation between facts */
}

.cm-meta,
.cm-card-meta {
    margin: 0;
    padding-top: 0.1rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.cm-empty {
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px dashed var(--rule-strong);
    border-bottom: 1px dashed var(--rule-strong);
    color: var(--text-muted);
}

.cm-empty-tight {
    margin: 0.75rem 0 1rem;
    padding: 0.65rem 0;
}

.cm-empty p {
    margin: 0;
}

/* ——— Detail pages ——— */

.cm-breadcrumb {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.9rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.cm-breadcrumb a {
    text-decoration: none;
    font-weight: 500;
}

.cm-detail-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--rule);
}

.cm-detail-title {
    margin: 0.12rem 0 0.4rem;
    font-family: var(--font-serif);
    font-size: clamp(1.55rem, 2.8vw, 1.95rem);
    font-weight: 600;
    letter-spacing: -0.018em;
    line-height: 1.18;
    color: var(--text-primary);
}

.cm-section-label {
    margin: 0 0 0.55rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.cm-detail-section + .cm-detail-section {
    margin-top: 1.5rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
}

.cm-why {
    margin-top: 0.3rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.cm-why summary {
    cursor: pointer;
    color: var(--accent-blue);
    font-weight: 500;
}

.cm-fact-text {
    display: inline;
}

.cm-cite {
    margin-left: 0.12em;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.cm-cite:hover,
.cm-cite:focus-visible {
    text-decoration: underline;
}

.cm-cite sup {
    font-size: 0.7em;
    line-height: 1;
    /* Mild raise — keep marks readable without colliding with the line above */
    vertical-align: -0.08em;
}

.cm-detail .cm-source-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0;
}

.cm-cite-marker {
    flex: 0 0 auto;
    min-width: 1.6rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 650;
    color: var(--text-muted);
    line-height: 1.4;
}

.cm-section-count {
    letter-spacing: 0.04em;
    font-weight: 550;
    color: var(--text-muted);
}

.cm-detail .cm-source-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.cm-detail .cm-source-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.cm-source-name-link {
    align-self: flex-start;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--accent-blue);
    text-decoration: none;
}

.cm-source-name-link:hover,
.cm-source-name-link:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

.cm-detail .cm-source-headline {
    margin: 0;
    max-width: 100%;
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.cm-detail .cm-source-published {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-muted);
    opacity: 0.9;
}

.cm-detail .cm-source-role {
    margin: 0 0 0.15rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.cm-detail .cm-source-field-label {
    display: inline;
    font-weight: 500;
    margin-right: 0.35rem;
    color: var(--text-muted);
}

.cm-detail .cm-source-field-label::after {
    content: ':';
}

.cm-detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.cm-detail-meta-row .cm-meta {
    margin: 0;
}

.cm-share-btn {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-blue);
    cursor: pointer;
}

.cm-share-btn:hover,
.cm-share-btn:focus-visible {
    text-decoration: underline;
}

.cm-share-btn.is-copied {
    color: var(--text-muted);
    text-decoration: none;
    cursor: default;
}

.cm-more-bullets {
    margin: 0.35rem 0 0;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 600;
}

.cm-more-bullets a {
    color: var(--accent-blue);
    text-decoration: none;
}

.cm-more-bullets a:hover,
.cm-more-bullets a:focus-visible {
    text-decoration: underline;
}

.cm-related-list {
    display: grid;
    gap: 0.85rem;
}

.cm-related-item {
    margin: 0;
}

.cm-related-title {
    margin: 0 0 0.2rem;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
}

.cm-related-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.cm-related-title a:hover,
.cm-related-title a:focus-visible {
    color: var(--accent-blue);
}

.cm-related-hub {
    margin: 1rem 0 0;
}

.cm-source-item:target {
    background: color-mix(in srgb, var(--accent-blue) 10%, transparent);
    border-radius: 4px;
    margin-inline: -0.35rem;
    padding-inline: 0.35rem;
}

.cm-detail .cm-source-list {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cm-detail .cm-source-item {
    padding: 0.55rem 0;
    border-top: 1px solid var(--border);
    background: transparent;
    border-radius: 0;
}

.cm-detail .cm-source-item:first-child {
    border-top: 0;
    padding-top: 0.15rem;
}

.cm-inline-link {
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent-blue);
}

.cm-inline-link:hover,
.cm-inline-link:focus-visible {
    text-decoration: underline;
}

.cm-delta {
    margin: 0 0 1.15rem;
    padding: 0.75rem 0;
    border-top: 1px solid color-mix(in srgb, var(--accent-teal) 40%, var(--border));
    border-bottom: 1px solid color-mix(in srgb, var(--accent-teal) 40%, var(--border));
    background: transparent;
}

.cm-delta-copy {
    margin: 0.25rem 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cm-timeline-day {
    margin: 1.25rem 0 0.35rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.cm-timeline-item {
    padding: 0.55rem 0 0.78rem;
    border-bottom: 1px solid var(--rule);
    border-left: 0;
    margin: 0;
}

.cm-timeline-item::before {
    display: none;
}

.cm-prose {
    max-width: 38rem;
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.cm-prose p {
    margin: 0;
}

.cm-prose p + p {
    margin-top: 0.9rem;
}

.cm-prose h2 {
    margin: 1.75rem 0 0.65rem;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
    color: var(--text-primary);
}

.cm-prose h2:first-child {
    margin-top: 0;
}

/* ——— Editorial pages (About, Privacy, shared static) ——— */

.cm-editorial {
    --editorial-measure: 47.5rem; /* ~760px */
    --editorial-title-size: 2.5rem; /* 40px */
    --editorial-heading-size: 2rem; /* 32px */
    --editorial-dek-size: 1.375rem; /* 22px */
    --editorial-lead-size: 1.3125rem; /* 21px */
    --editorial-body-size: 1.125rem; /* 18px */
    --editorial-body-lh: 1.6;
    --editorial-gap-title-dek: 0.875rem; /* 14px */
    --editorial-gap-dek-rule: 1.75rem; /* 28px */
    --editorial-gap-rule-body: 1.75rem; /* 28px */
    --editorial-gap-lead-section: 3rem; /* 48px */
    --editorial-gap-heading-body: 1rem; /* 16px */
    --editorial-gap-section: 2.75rem; /* 44px */
    --editorial-gap-paragraph: 1.25rem; /* 20px */
    --editorial-pad-top: 2.5rem; /* 40px */
    --editorial-pad-bottom: 4.5rem; /* 72px */

    max-width: var(--editorial-measure);
    padding-top: var(--editorial-pad-top);
    padding-bottom: var(--editorial-pad-bottom);
    text-align: left;
}

.cm-editorial-intro {
    margin: 0;
    padding: 0 0 var(--editorial-gap-dek-rule);
    border-bottom: 1px solid var(--border);
}

.cm-editorial-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: var(--editorial-title-size);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-primary);
}

.cm-editorial-dek {
    margin: var(--editorial-gap-title-dek) 0 0;
    max-width: 36rem;
    font-family: var(--font-sans);
    font-size: var(--editorial-dek-size);
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-muted);
}

.cm-editorial-body {
    margin: var(--editorial-gap-rule-body) 0 0;
    font-family: var(--font-sans);
    font-size: var(--editorial-body-size);
    font-weight: 400;
    line-height: var(--editorial-body-lh);
    color: var(--text-secondary);
}

.cm-editorial-lead {
    margin: 0;
    font-size: var(--editorial-lead-size);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-primary);
}

.cm-editorial-section {
    margin-top: var(--editorial-gap-section);
}

.cm-editorial-body > .cm-editorial-section:first-child {
    margin-top: 0;
}

.cm-editorial-lead + .cm-editorial-section {
    margin-top: var(--editorial-gap-lead-section);
}

.cm-editorial-heading {
    margin: 0 0 var(--editorial-gap-heading-body);
    font-family: var(--font-serif);
    font-size: var(--editorial-heading-size);
    font-weight: 600;
    letter-spacing: -0.018em;
    line-height: 1.2;
    color: var(--text-primary);
}

.cm-editorial-subheading {
    margin: 1.25rem 0 0.5rem;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--text-primary);
}

.cm-editorial-section ul {
    margin: 0.65rem 0 0;
    padding-left: 1.2rem;
}

.cm-editorial-section li {
    margin: 0.35rem 0;
}

.cm-editorial-section li + li {
    margin-top: 0.45rem;
}

.cm-editorial-section p {
    margin: 0;
}

.cm-editorial-section p + p {
    margin-top: var(--editorial-gap-paragraph);
}

.cm-editorial-note {
    padding-top: var(--editorial-gap-section);
    border-top: 1px solid var(--border);
}

.cm-editorial-muted {
    color: var(--text-muted);
    font-size: 0.97em;
}

/* Source directory list (public Sources page) — Option A: no bullet glyphs */
.cm-source-list {
    list-style: none;
    margin: 0.15rem 0 0;
    padding: 0;
}

.cm-source-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    padding: 0.45rem 0; /* ~14px row rhythm */
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.cm-source-row:last-child {
    border-bottom: 0;
}

.cm-source-row-name {
    font-family: var(--font-sans);
    font-size: 1em;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
}

.cm-source-row-sep {
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.8;
}

.cm-source-row-domain {
    font-family: var(--font-sans);
    font-size: 0.92em;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .cm-editorial {
        --editorial-title-size: 2.125rem; /* 34px */
        --editorial-heading-size: 1.75rem; /* 28px */
        --editorial-dek-size: 1.25rem; /* 20px */
        --editorial-lead-size: 1.1875rem; /* 19px */
        --editorial-body-size: 1.0625rem; /* 17px */
        --editorial-gap-lead-section: 2.5rem;
        --editorial-gap-section: 2.25rem;
        --editorial-pad-top: 1.75rem; /* 28px */
        --editorial-pad-bottom: 3.5rem; /* 56px */
    }
}

@media (max-width: 430px) {
    .cm-editorial {
        --editorial-title-size: 2rem; /* 32px */
        --editorial-heading-size: 1.625rem; /* 26px */
        --editorial-dek-size: 1.1875rem; /* 19px */
        --editorial-body-size: 1.0625rem; /* 17px */
        --editorial-pad-top: 1.5rem; /* 24px */
        --editorial-pad-bottom: 3rem; /* 48px */
        --editorial-gap-section: 2rem;
        --editorial-gap-lead-section: 2.25rem;
    }
}

.cm-plain-list {
    margin: 0;
    padding-left: 1.05rem;
}

.cm-plain-list li + li {
    margin-top: 0.4rem;
}

/* ——— Footer ——— */

.cm-footer {
    border-top: 1px solid var(--rule);
    padding: 1.35rem 0 1.75rem;
    margin-top: auto;
}

.cm-footer-inner {
    display: grid;
    gap: 0.65rem;
}

.cm-footer-brand {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text-primary);
}

.cm-footer-tagline,
.cm-footer-copy {
    margin: 0.15rem 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.cm-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.cm-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
}

.cm-footer-links a:hover {
    color: var(--accent-blue);
}

/* ——— Admin (compact SaaS-adjacent, Inter only) ——— */

body.cm-admin-body {
    background: var(--bg);
    font-family: var(--font-sans);
}

.cm-admin-header {
    border-bottom: 1px solid var(--rule);
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 40;
}

.cm-admin-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.9rem;
    padding: 0.65rem 1rem;
}

.cm-admin-brand {
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    margin-right: 0.35rem;
}

.cm-admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.8rem;
    flex: 1;
}

.cm-admin-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
}

.cm-admin-nav a:hover,
.cm-admin-nav a.is-active {
    color: var(--text);
}

.cm-admin-stat,
.cm-admin-panel {
    background: var(--bg-soft);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 0.85rem 0.95rem;
    height: 100%;
}

.cm-admin-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cm-admin-stat-label {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.cm-analytics-bar-cell {
    min-width: 72px;
    vertical-align: middle;
}

.cm-analytics-bar {
    display: block;
    height: 6px;
    border-radius: 99px;
    background: var(--signal);
    max-width: 100%;
}

.cm-admin-main .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--rule);
    --bs-table-striped-bg: var(--bg-soft);
    --bs-table-hover-bg: var(--bg-soft);
}

.cm-admin-main .form-control,
.cm-admin-main .form-select,
.cm-admin-main .btn {
    font-family: var(--font-sans);
}

.cm-admin-main .btn-primary {
    --bs-btn-bg: var(--signal);
    --bs-btn-border-color: var(--signal);
    --bs-btn-hover-bg: color-mix(in srgb, var(--signal) 88%, #000);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--signal) 88%, #000);
}

.cm-admin-main .text-secondary,
.cm-admin-main .small.text-secondary {
    color: var(--text-muted) !important;
}

.cm-admin-main h1,
.cm-admin-main h2,
.cm-admin-main h3,
.cm-admin-main .h3,
.cm-admin-main .h6 {
    color: var(--text);
    font-family: var(--font-sans);
}

.cm-admin-main .border,
.cm-admin-main .border-bottom,
.cm-admin-main .border-top {
    border-color: var(--rule) !important;
}

/* Legacy class aliases used by older templates */
.cm-badge {
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--category-text);
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.cm-card {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    padding: var(--entry-pad-top) 0 var(--entry-pad-bottom);
}

.cm-card:hover {
    transform: none;
    box-shadow: none;
}

.cm-card-context {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.45rem;
}

@media (min-width: 900px) {
    .cm-nav-toggle {
        display: none;
    }

    .cm-nav-panel {
        display: flex !important;
        position: static;
        border: 0;
        background: transparent;
        padding: 0;
        margin-left: auto;
        align-items: center;
        gap: 0.75rem;
    }

    .cm-nav-list {
        display: flex;
        align-items: center;
        gap: 0.15rem;
        margin: 0;
    }

    .cm-nav-link {
        padding: 0.5rem 0.4rem;
        font-size: 0.8rem;
        font-weight: 400;
    }

    .cm-appearance-label {
        display: none !important;
    }

    .cm-main {
        padding-top: 1.2rem;
    }
}

@media (max-width: 430px) {
    :root,
    html[data-theme="light"],
    html[data-theme="dark"] {
        --entry-pad-top: 1.25rem;
        --entry-pad-bottom: 1.4rem;
    }

    .cm-logo {
        height: 1.35rem;
        max-width: min(150px, 64vw);
    }

    .cm-headline,
    .cm-card-headline {
        font-size: 1.18rem;
    }

    .cm-bullets {
        padding-left: 1.15rem;
        font-size: 0.95rem;
    }

    .cm-entry-context {
        row-gap: 0.15rem;
    }

    .cm-page-intro {
        padding-bottom: 0.95rem;
    }
}
