/* Hugsa Tíðindi — Nordic editorial design.
   Light and dark themes, no external fonts, no third-party assets. */

:root {
    --bg: #fbfaf7;
    --bg-elevated: #ffffff;
    --bg-subtle: #f2eee6;
    --ink: #16191c;
    --ink-soft: #414850;
    --muted: #5f676f;
    --line: #e2ddd2;
    --line-strong: #cec7b8;
    --accent: #0f5b62;
    --accent-ink: #ffffff;
    --accent-soft: #e2efee;
    --highlight: #94401e;
    --highlight-soft: #f7e9e1;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgb(20 25 29 / 4%), 0 10px 26px rgb(20 25 29 / 6%);
    --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --max: 1180px;
    --gap: clamp(1rem, 2.2vw, 1.75rem);
}

[data-theme="dark"] {
    --bg: #13161a;
    --bg-elevated: #191d23;
    --bg-subtle: #1e232a;
    --ink: #ece8e1;
    --ink-soft: #c8cdd3;
    --muted: #9aa4ae;
    --line: #2a3038;
    --line-strong: #3a424c;
    --accent: #7fc9c4;
    --accent-ink: #0d1b1c;
    --accent-soft: #16302f;
    --highlight: #e2a184;
    --highlight-soft: #33231c;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 28px rgb(0 0 0 / 28%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #13161a;
        --bg-elevated: #191d23;
        --bg-subtle: #1e232a;
        --ink: #ece8e1;
        --ink-soft: #c8cdd3;
        --muted: #9aa4ae;
        --line: #2a3038;
        --line-strong: #3a424c;
        --accent: #7fc9c4;
        --accent-ink: #0d1b1c;
        --accent-soft: #16302f;
        --highlight: #e2a184;
        --highlight-soft: #33231c;
        --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 28px rgb(0 0 0 / 28%);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

.shell {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: .7rem 1rem;
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    left: 0;
}

.muted {
    color: var(--muted);
    font-size: .9rem;
}

.dot {
    color: var(--line-strong);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(.75rem, 2vw, 1.6rem);
    padding-block: .85rem .6rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.brand:hover {
    text-decoration: none;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--ink);
    color: var(--bg);
    font-family: var(--font-serif);
    font-size: 1.35rem;
    line-height: 1;
    flex: none;
}

.brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand__name {
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.15;
    white-space: nowrap;
}

.brand__product {
    color: var(--accent);
}

.brand__tagline {
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.4;
    white-space: nowrap;
}

.search-form {
    display: flex;
    align-items: stretch;
    justify-self: end;
    width: 100%;
    max-width: 380px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--bg-elevated);
    overflow: hidden;
}

.search-form__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: .9rem;
    padding: .55rem .9rem;
}

.search-form__input:focus {
    outline: none;
}

.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-form__button {
    border: 0;
    background: var(--accent);
    color: var(--accent-ink);
    font: inherit;
    font-size: .82rem;
    font-weight: 650;
    padding: 0 1rem;
    cursor: pointer;
    white-space: nowrap;
}

.search-form__button:hover {
    filter: brightness(1.08);
}

.theme-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--ink-soft);
    cursor: pointer;
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
}

.theme-toggle__moon {
    display: none;
}

[data-theme="dark"] .theme-toggle__sun,
:root:not([data-theme="light"]) .theme-toggle__sun {
    display: none;
}

[data-theme="dark"] .theme-toggle__moon,
:root:not([data-theme="light"]) .theme-toggle__moon {
    display: block;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-toggle__sun {
        display: block;
    }

    :root:not([data-theme="dark"]) .theme-toggle__moon {
        display: none;
    }
}

.category-nav {
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.category-nav__row {
    display: flex;
    gap: .35rem;
    padding-block: .55rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-nav__row::-webkit-scrollbar {
    display: none;
}

.chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    padding: .28rem .7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 550;
    color: var(--ink-soft);
    white-space: nowrap;
}

.chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.chip--active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
}

.chip--active:hover {
    color: var(--bg);
    border-color: var(--ink);
}

/* ---------- Main ---------- */

.main {
    padding-block: clamp(1.4rem, 3vw, 2.4rem) clamp(2.5rem, 5vw, 4rem);
}

.section-title {
    margin: 0 0 1.1rem;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(1.65rem, 3.4vw, 2.35rem);
    line-height: 1.1;
    letter-spacing: -.025em;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 2px solid var(--ink);
    padding-bottom: .45rem;
    margin-bottom: 1rem;
}

.section-head__title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.section-head__link {
    font-size: .82rem;
    font-weight: 600;
    color: var(--accent);
}

.section-head__note {
    font-size: .78rem;
    color: var(--muted);
}

.section-note {
    margin: -.2rem 0 1rem;
    max-width: 70ch;
    color: var(--muted);
    font-size: .88rem;
}

.home-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .4rem 1rem;
    margin-bottom: .2rem;
}

.home-head__meta {
    margin: 0 0 1.1rem;
    color: var(--muted);
    font-size: .84rem;
}

.notice {
    padding: 1.2rem 0;
    color: var(--muted);
}

/* ---------- Lead ---------- */

.lead {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: var(--gap);
    margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

.lead__main {
    min-width: 0;
}

.lead__side {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    min-width: 0;
}

.story-card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    height: 100%;
}

.story-card--lead {
    padding: clamp(1.3rem, 2.6vw, 2rem);
    border-top: 3px solid var(--accent);
}

.story-card__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.12rem;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.story-card--lead .story-card__title {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.14;
    letter-spacing: -.02em;
}

.story-card__title a:hover {
    color: var(--accent);
}

.coverage-count {
    font-weight: 700;
    color: var(--highlight);
}

.story-card__sources {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.4;
}

/* ---------- Coverage band ---------- */

.coverage-band {
    margin: 0 0 clamp(1.8rem, 4vw, 2.8rem);
}

.coverage-band .section-head {
    margin-bottom: .55rem;
}

.coverage-band__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: .9rem;
}

.coverage-band__grid .story-card {
    border-top: 2px solid var(--highlight);
}

/* ---------- Cards ---------- */

.card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.05rem 1.15rem;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .42rem;
    font-size: .78rem;
    color: var(--muted);
}

.card__time--unknown {
    color: var(--muted);
    font-style: italic;
}

.source-link {
    color: var(--accent);
    font-weight: 650;
}

.card__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.27;
    letter-spacing: -.012em;
}

.card__title a:hover {
    color: var(--accent);
}

.card__summary {
    margin: 0;
    color: var(--ink-soft);
    font-size: .93rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem .8rem;
    margin-top: auto;
    padding-top: .3rem;
}

.read-link {
    font-size: .82rem;
    font-weight: 650;
    color: var(--accent);
}

.read-link__host {
    font-weight: 400;
    color: var(--muted);
}

.coverage-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .16rem .55rem .16rem .3rem;
    border-radius: 999px;
    background: var(--highlight-soft);
    color: var(--highlight);
    font-size: .78rem;
    font-weight: 650;
}

.coverage-link:hover {
    text-decoration: none;
    filter: brightness(.97);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.3rem;
    padding: .05rem .35rem;
    border-radius: 999px;
    background: var(--highlight);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.45;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: .08rem .45rem;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    color: var(--ink-soft);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.tag:hover {
    color: var(--accent);
    text-decoration: none;
}

.tag--politikkur {
    background: #e6e9f4;
    color: #2c3a63;
}

.tag--samfelag {
    background: #e7efe7;
    color: #2c5234;
}

.tag--vinna {
    background: #f2ecdf;
    color: #5a4620;
}

.tag--fiskivinna {
    background: #e2eef2;
    color: #1f4b57;
}

.tag--itrottur {
    background: #e9efe0;
    color: #3b5220;
}

.tag--mentan {
    background: #f1e6ec;
    color: #5b2a45;
}

.tag--utheimurin {
    background: #ece8f2;
    color: #423161;
}

.tag--tokni {
    background: #e4eaf0;
    color: #29455c;
}

.tag--vedur {
    background: #e4edf3;
    color: #24506b;
}

.tag--notice {
    background: #f3ece2;
    color: #5c4423;
    border: 1px solid #dccbb3;
    font-variant: all-small-caps;
    letter-spacing: .02em;
}

[data-theme="dark"] .tag--notice {
    background: var(--bg-subtle);
    color: #d8c49f;
    border-color: #4a3f30;
}

[data-theme="dark"] .tag--politikkur,
[data-theme="dark"] .tag--samfelag,
[data-theme="dark"] .tag--vinna,
[data-theme="dark"] .tag--fiskivinna,
[data-theme="dark"] .tag--itrottur,
[data-theme="dark"] .tag--mentan,
[data-theme="dark"] .tag--utheimurin,
[data-theme="dark"] .tag--tokni,
[data-theme="dark"] .tag--vedur {
    background: var(--bg-subtle);
    color: var(--ink-soft);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .tag {
        background: var(--bg-subtle);
        color: var(--ink-soft);
    }
}

/* ---------- Feed and columns ---------- */

.columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: clamp(1.6rem, 3.4vw, 2.6rem);
    align-items: start;
}

.column {
    min-width: 0;
}

.feed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .85rem;
}

.feed > li {
    min-width: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 44px;
    padding: .55rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--ink);
    font: inherit;
    font-size: .88rem;
    font-weight: 650;
    cursor: pointer;
}

.button:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.button--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.button--primary:hover {
    color: var(--accent-ink);
    filter: brightness(1.08);
}

.button--ghost {
    background: transparent;
    border-color: var(--line-strong);
}

.button--wide {
    width: 100%;
    margin-top: 1rem;
}

/* ---------- Rail ---------- */

.panel {
    border-top: 2px solid var(--ink);
    padding-top: .8rem;
    margin-bottom: 1.9rem;
}

.panel__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .6rem;
}

.panel__title {
    margin: 0;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.panel__meta,
.panel__link {
    font-size: .78rem;
    color: var(--muted);
}

.panel__link:hover {
    color: var(--accent);
}

.panel__note {
    margin: .5rem 0 0;
    font-size: .8rem;
    color: var(--muted);
}

.ranked {
    list-style: none;
    margin: .7rem 0 0;
    padding: 0;
    counter-reset: rank;
    display: grid;
    gap: .7rem;
}

.ranked li {
    counter-increment: rank;
    display: grid;
    grid-template-columns: 1.4rem minmax(0, 1fr);
    gap: .5rem;
    font-size: .92rem;
    line-height: 1.35;
}

.ranked li::before {
    content: counter(rank);
    font-family: var(--font-serif);
    font-size: .95rem;
    font-weight: 700;
    color: var(--accent);
}

.ranked a {
    font-weight: 550;
}

.ranked__meta {
    display: block;
    font-size: .76rem;
    color: var(--muted);
    margin-top: .15rem;
}

.source-list {
    list-style: none;
    margin: .7rem 0 0;
    padding: 0;
    display: grid;
    gap: .35rem;
    font-size: .88rem;
}

.source-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    padding-bottom: .3rem;
    border-bottom: 1px dotted var(--line);
}

.source-list__count {
    color: var(--muted);
    font-size: .76rem;
    white-space: nowrap;
}

.category-list {
    list-style: none;
    margin: .7rem 0 0;
    padding: 0;
    display: grid;
    gap: .35rem;
    font-size: .88rem;
}

.category-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    padding-bottom: .3rem;
    border-bottom: 1px dotted var(--line);
}

.category-list span {
    color: var(--muted);
    font-size: .76rem;
}

/* ---------- Weather ---------- */

.panel--weather {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-top: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1rem 1.05rem;
}

.weather__condition {
    margin: .6rem 0 0;
    font-size: .88rem;
    color: var(--ink-soft);
}

.weather__temp {
    margin: .1rem 0 .7rem;
    font-family: var(--font-serif);
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: -.03em;
}

.weather__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem .8rem;
    margin: 0;
    font-size: .8rem;
}

.weather__grid dt {
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.weather__grid dd {
    margin: 0;
    font-weight: 600;
}

.weather__attribution {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .3rem;
    margin: .8rem 0 0;
    padding-top: .6rem;
    border-top: 1px solid var(--line);
    font-size: .7rem;
    color: var(--muted);
}

.weather__attribution a {
    color: var(--accent);
}

.weather__note {
    margin: .35rem 0 0;
    color: var(--muted);
    font-size: .68rem;
}

/* ---------- Filters and search ---------- */

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .7rem .9rem;
    padding: .9rem 1rem;
    margin-bottom: 1.4rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.filters__field {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.filters__field label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.filters__field select,
.filters__field input {
    min-height: 42px;
    min-width: 9rem;
    padding: .45rem .6rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: .86rem;
}

.filters__field input[type="date"] {
    min-width: 8.5rem;
}

.filters__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
}

.search-large {
    display: flex;
    gap: .6rem;
    margin-bottom: 1rem;
}

.search-large__input {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: .55rem .9rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
}

.search-large__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .9rem;
    color: var(--muted);
    font-size: .85rem;
}

.results-count {
    margin: 0;
    font-weight: 650;
    color: var(--ink-soft);
}

.results-filter {
    margin: 0;
}

.empty-state {
    margin-top: 1rem;
}

/* ---------- Pager ---------- */

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: .86rem;
}

.pager__link {
    color: var(--accent);
    font-weight: 650;
    padding: .4rem 0;
}

.pager__link--disabled {
    color: var(--muted);
    font-weight: 400;
}

.pager__status {
    color: var(--muted);
}

/* ---------- Story / coverage ---------- */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
    font-size: .8rem;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--accent);
}

.story {
    max-width: 820px;
}

.story__kicker {
    margin: 0 0 .3rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--highlight);
}

.story__title {
    margin: 0 0 .6rem;
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: -.028em;
}

.story__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    color: var(--muted);
    font-size: .88rem;
}

.method-note {
    margin: 1.4rem 0 1.6rem;
    padding: 1rem 1.15rem;
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: .88rem;
    color: var(--ink-soft);
}

.method-note p {
    margin: 0 0 .5rem;
}

.method-note p:last-child {
    margin-bottom: 0;
}

.method-note a {
    color: var(--accent);
    font-weight: 600;
}

.coverage {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.coverage__item {
    padding: 1.2rem 0;
    border-top: 1px solid var(--line);
}

.coverage__item:first-child {
    border-top: 2px solid var(--ink);
}

.coverage__source {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .5rem;
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: .35rem;
}

.coverage__source .source-link {
    font-size: .85rem;
}

.coverage__headline {
    margin: 0 0 .4rem;
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.25;
    letter-spacing: -.015em;
}

.coverage__headline a:hover {
    color: var(--accent);
}

.coverage__summary {
    margin: 0 0 .5rem;
    color: var(--ink-soft);
    font-size: .93rem;
}

.story__footer {
    margin-top: 1.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: .82rem;
    color: var(--muted);
}

.story__footer p {
    margin: .3rem 0;
}

/* ---------- Sources ---------- */

.source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.source-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1rem 1.1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.source-card__name {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    letter-spacing: -.015em;
}

.source-card__domain {
    margin: 0 0 .4rem;
    font-size: .78rem;
    color: var(--muted);
}

.source-card__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem .8rem;
    margin: 0 0 .5rem;
    font-size: .82rem;
}

.source-card__facts div {
    min-width: 0;
}

.source-card__facts dt {
    color: var(--muted);
    font-size: .68rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.source-card__facts dd {
    margin: 0;
    font-weight: 600;
}

.source-card__facts--wide {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-block: .8rem 1rem;
}

.source-header {
    margin-bottom: 1.6rem;
}

.source-header__domain {
    margin: -.6rem 0 0;
    color: var(--muted);
    font-size: .9rem;
}

.deferred {
    margin-top: 2rem;
}

.deferred__list {
    list-style: none;
    margin: .8rem 0 0;
    padding: 0;
    display: grid;
    gap: .45rem;
    font-size: .9rem;
}

.deferred__list li {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .6rem;
    padding-bottom: .4rem;
    border-bottom: 1px dotted var(--line);
}

.deferred__note {
    color: var(--muted);
    font-size: .82rem;
}

/* ---------- Prose ---------- */

.intro {
    max-width: 720px;
    padding-block: 1rem 2rem;
}

.intro__kicker {
    margin: 0;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--highlight);
}

.intro__lead {
    font-size: 1.05rem;
    color: var(--ink-soft);
}

.prose {
    max-width: 72ch;
}

.prose__lead {
    font-size: 1.08rem;
    color: var(--ink-soft);
    line-height: 1.65;
}

.prose h2 {
    margin: 2.2rem 0 .7rem;
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
    line-height: 1.2;
    letter-spacing: -.015em;
}

.prose p,
.prose li {
    line-height: 1.7;
}

.prose ul {
    padding-left: 1.2rem;
    display: grid;
    gap: .35rem;
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Footer ---------- */

.site-footer {
    margin-top: 2rem;
    padding-top: 2.2rem;
    background: var(--bg-subtle);
    border-top: 1px solid var(--line);
    font-size: .85rem;
    color: var(--ink-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.6rem;
    padding-bottom: 1.5rem;
}

.footer-brand__name {
    margin: 0 0 .4rem;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

.footer-brand__text {
    margin: 0;
    max-width: 46ch;
    color: var(--muted);
}

.footer-heading {
    margin: 0 0 .5rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .3rem;
}

.footer-links a {
    color: var(--ink-soft);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
    padding-block: .9rem 1.6rem;
    border-top: 1px solid var(--line-strong);
    font-size: .75rem;
    color: var(--muted);
}

.footer-bottom p {
    margin: 0;
}

/* ---------- Havit defaults used in markup ---------- */

.alert {
    padding: .9rem 1.1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    color: var(--ink-soft);
    font-size: .92rem;
}

.alert p {
    margin: .25rem 0;
}

.alert-info {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--ink);
}

.alert-warning {
    border-color: var(--highlight);
    background: var(--highlight-soft);
    color: var(--ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
    .columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .column--rail {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
        gap: 1.2rem;
        align-items: start;
    }

    .column--rail .panel {
        margin-bottom: 0;
    }
}

@media (max-width: 840px) {
    .lead {
        grid-template-columns: minmax(0, 1fr);
    }

    .lead__side {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    }

    .header-bar {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: .6rem;
    }

    .search-form {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
        justify-self: stretch;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 15.5px;
    }

    .brand__tagline {
        display: none;
    }

    .brand__name {
        font-size: 1.08rem;
    }

    .card {
        padding: .9rem .95rem;
    }

    .filters__actions {
        margin-left: 0;
        width: 100%;
    }

    .filters__actions .button {
        flex: 1;
    }

    .filters__field {
        flex: 1 1 8.5rem;
    }

    .filters__field select,
    .filters__field input {
        min-width: 0;
        width: 100%;
    }

    .search-large {
        flex-wrap: wrap;
    }

    .search-large__input {
        flex-basis: 100%;
    }

    .search-large .button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .source-card__facts {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .pager {
        font-size: .82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .filters,
    .pager,
    .theme-toggle,
    .search-form {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .card,
    .story-card {
        border: 0;
        padding: 0;
        page-break-inside: avoid;
    }
}

/* ---------- Comparison, transparency and corrections (Phase 2) ---------- */

.story__actions {
    margin: .8rem 0 0;
}

.badge--neutral,
.badge--unrated {
    background: var(--bg-subtle);
    color: var(--ink-soft);
    border: 1px solid var(--line);
}

.badge--assessed {
    background: #2f6b45;
    color: #fff;
}

.badge--review {
    background: #8a5a12;
    color: #fff;
}

.badge--withdrawn {
    background: var(--bg-subtle);
    color: var(--muted);
    border: 1px solid var(--line-strong);
}

.compare {
    max-width: 1000px;
}

.compare__header {
    padding-bottom: 1.1rem;
    border-bottom: 2px solid var(--ink);
}

.compare__title {
    margin: 0 0 .6rem;
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 4.2vw, 2.9rem);
    line-height: 1.08;
    letter-spacing: -.028em;
}

.compare__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    color: var(--muted);
    font-size: .88rem;
}

.compare__lead {
    max-width: 70ch;
    margin: 1rem 0;
    font-size: 1.02rem;
    color: var(--ink-soft);
}

.compare__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .6rem 1rem;
    margin: 1rem 0;
    padding: .85rem 1rem;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
}

.compare__facts dt {
    margin: 0;
    color: var(--muted);
    font-size: .68rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.compare__facts dd {
    margin: 0;
    font-weight: 650;
}

.compare__section {
    margin: 2.2rem 0;
}

.headline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.headline-card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1rem 1.1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.headline-card__top,
.headline-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .4rem;
    font-size: .78rem;
    color: var(--muted);
}

.headline-card__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.25;
    letter-spacing: -.015em;
}

.headline-card__title a:hover {
    color: var(--accent);
}

.headline-card__summary {
    margin: 0;
    color: var(--ink-soft);
    font-size: .9rem;
}

.timeline {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0 0 0 1rem;
    border-left: 2px solid var(--line-strong);
}

.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(130px, 190px) minmax(0, 1fr);
    gap: 1rem;
    padding: .7rem 0 .7rem 1rem;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: -1.37rem;
    top: 1.1rem;
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--accent);
}

.timeline__when {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    font-size: .78rem;
    color: var(--muted);
}

.timeline__body {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.timeline__headline {
    font-family: var(--font-serif);
    font-size: 1.08rem;
    line-height: 1.3;
}

.timeline__headline:hover {
    color: var(--accent);
}

.term-block {
    margin: 1rem 0;
}

.term-block__title {
    margin: 0 0 .45rem;
    font-size: .82rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.term-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0;
}

.term-chip {
    padding: .12rem .5rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .8rem;
    font-weight: 600;
}

.unique-terms {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--ink-soft);
    font-size: .9rem;
}

.unique-terms li {
    margin-bottom: .25rem;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
}

.framing-table,
.transparency-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    min-width: 720px;
}

.framing-table caption {
    caption-side: top;
    padding: .6rem .75rem;
    text-align: left;
    font-weight: 650;
    color: var(--muted);
}

.framing-table th,
.framing-table td,
.transparency-table th,
.transparency-table td {
    padding: .55rem .7rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.framing-table thead th,
.transparency-table thead th {
    background: var(--bg-subtle);
    font-size: .68rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.framing-table tbody th,
.transparency-table tbody th {
    font-weight: 650;
    white-space: nowrap;
}

.framing-table tbody tr:last-child th,
.framing-table tbody tr:last-child td,
.transparency-table tbody tr:last-child th,
.transparency-table tbody tr:last-child td {
    border-bottom: 0;
}

.transparency-table {
    min-width: 900px;
}

.grouping-reasons {
    margin: .8rem 0;
    padding-left: 1.2rem;
    color: var(--ink-soft);
    font-size: .88rem;
}

.analysis-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .8rem;
    align-items: center;
    font-size: .8rem;
    color: var(--muted);
}

.analysis-subhead {
    margin: 1.3rem 0 .4rem;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.analysis-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--ink-soft);
    font-size: .92rem;
}

.analysis-list li {
    margin-bottom: .4rem;
}

.analysis-list--interpretation {
    border-left: 3px solid var(--highlight-soft);
    padding: .5rem 0 .5rem 1rem;
    list-style: none;
    background: var(--highlight-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.analysis-list--interpretation .label {
    font-weight: 700;
    color: var(--highlight);
}

.analysis-basis {
    color: var(--muted);
    font-size: .78rem;
}

.evidence {
    margin-top: 1rem;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    font-size: .85rem;
}

.evidence summary {
    cursor: pointer;
    font-weight: 650;
}

.evidence ul {
    margin: .6rem 0 0;
    padding-left: 1.1rem;
    color: var(--ink-soft);
}

.evidence__type {
    display: inline-block;
    min-width: 7.5rem;
    color: var(--muted);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.related-list {
    margin: .8rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .6rem;
}

.related-list li {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid var(--line);
}

.related-list a {
    font-family: var(--font-serif);
    font-size: 1.05rem;
}

.stat-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .8rem;
    margin: 1.4rem 0;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding: .9rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.stat__value {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat__label {
    color: var(--muted);
    font-size: .76rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.method-list {
    margin: .8rem 0;
    padding-left: 1.2rem;
    color: var(--ink-soft);
}

.method-list li {
    margin-bottom: .45rem;
}

.evidence-list {
    margin: .8rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .9rem;
}

.evidence-list li {
    padding: .85rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.evidence-list__title {
    margin: 0 0 .25rem;
    font-weight: 650;
}

.evidence-list__title a {
    color: var(--accent);
}

.form {
    max-width: 700px;
    margin: 1.4rem 0;
    display: grid;
    gap: 1rem;
}

.field {
    display: grid;
    gap: .3rem;
}

.field label {
    font-weight: 650;
    font-size: .86rem;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: .55rem .65rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--ink);
    font: inherit;
    font-size: .92rem;
}

.field textarea {
    resize: vertical;
    min-height: 9rem;
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.field__hint {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
}

@media (max-width: 720px) {
    .timeline__item {
        grid-template-columns: 1fr;
        gap: .25rem;
    }

    .timeline {
        padding-left: .8rem;
    }
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
    gap: .6rem;
    margin-top: .8rem;
}

.subject-card {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .7rem .85rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.subject-card:hover {
    border-color: var(--accent);
    text-decoration: none;
}

.subject-card__name {
    font-weight: 650;
}

.subject-card__meta {
    color: var(--muted);
    font-size: .75rem;
}

/* ---------- Phase 3: editorial imagery and density ---------- */

.home-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: .8rem 1.5rem;
    margin: 0 0 1.35rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--ink);
}

.home-head__kicker {
    margin: 0 0 .15rem;
    color: var(--accent);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.home-head__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.02;
}

.home-head__meta {
    margin: .35rem 0 0;
    color: var(--muted);
    font-size: .84rem;
}

.home-head__jump {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .9rem;
    font-size: .8rem;
    font-weight: 650;
    color: var(--accent);
}

.home-head__jump a {
    padding: .2rem 0;
    border-bottom: 1px solid transparent;
}

.home-head__jump a:hover {
    border-bottom-color: currentColor;
    text-decoration: none;
}

.media {
    position: relative;
    display: block;
    margin: 0;
    overflow: hidden;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    isolation: isolate;
}

.media__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.media--thumb {
    aspect-ratio: 4 / 3;
}

.media--card {
    aspect-ratio: 16 / 10;
}

.media--wide {
    aspect-ratio: 16 / 9;
}

.media--hero {
    aspect-ratio: 16 / 9;
    border-radius: 0;
    max-height: 470px;
}

.media__credit {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 92%;
    padding: .16rem .45rem;
    background: rgb(12 16 20 / 62%);
    color: #f7f4ee;
    font-size: .64rem;
    line-height: 1.35;
    text-align: right;
    backdrop-filter: blur(3px);
}

.media--thumb .media__credit,
.media--card .media__credit {
    max-width: 100%;
    padding: .1rem .3rem;
    font-size: .58rem;
}

.media--broken {
    display: none;
}

.card--with-media {
    display: grid;
    grid-template-columns: 152px minmax(0, 1fr);
    gap: .95rem;
    align-items: start;
    padding: .8rem;
}

.card--with-media .card__body {
    display: flex;
    flex-direction: column;
    gap: .42rem;
    min-width: 0;
}

.card--compact .card__title {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.card__media {
    display: block;
    min-width: 0;
}

.card__media:hover {
    text-decoration: none;
}

.card--with-media .media__img {
    transition: transform .3s ease;
}

.card--with-media:hover .media__img {
    transform: scale(1.025);
}

.story-card--with-media {
    padding: 0;
    overflow: hidden;
}

.story-card--with-media .story-card__media {
    display: block;
}

.story-card--with-media .story-card__body {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1rem 1.1rem;
}

.story-card--lead.story-card--with-media .story-card__body {
    padding: clamp(1.2rem, 2.4vw, 1.8rem);
}

.story-card--with-media .media--card {
    border-radius: 0;
}

.story-card--lead.story-card--with-media {
    border-top: 3px solid var(--accent);
}

.story-card__media:hover {
    text-decoration: none;
}

.story-card__media .media__img {
    transition: transform .35s ease;
}

.story-card:hover .media__img,
.headline-card:hover .media__img {
    transform: scale(1.02);
}

.lead--text .lead__main .story-card--lead,
.lead--text .lead__main .card {
    min-height: 0;
}

.lead__side .card--with-media {
    grid-template-columns: 112px minmax(0, 1fr);
    padding: .7rem;
}

.lead__side .media--card {
    aspect-ratio: 1 / 1;
}

.headline-card__media {
    display: block;
    margin: -.1rem -.1rem .7rem;
}

.headline-card__media .media {
    border-radius: var(--radius-sm);
}

.publisher-table {
    min-width: 720px;
}

.publisher-table td {
    color: var(--ink-soft);
    font-size: .86rem;
}

.panel--archive .button {
    margin-top: .55rem;
}

@media (max-width: 980px) {
    .lead {
        grid-template-columns: 1fr;
    }

    .lead__side {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .75rem;
    }

    .lead__side .card--with-media {
        grid-template-columns: 1fr;
    }

    .lead__side .media--card {
        aspect-ratio: 16 / 10;
    }

    .lead__side .card:not(.card--with-media) {
        height: 100%;
    }

    .columns {
        grid-template-columns: 1fr;
    }

    .column--rail {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
        gap: 1rem;
    }

    .panel--weather {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .home-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-head__jump {
        font-size: .76rem;
    }

    .lead__side {
        grid-template-columns: 1fr;
    }

    .card--with-media {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: .7rem;
        padding: .65rem;
    }

    .card--with-media .media--thumb {
        aspect-ratio: 1 / 1;
    }

    .card__title {
        font-size: 1.06rem;
    }

    .card__summary {
        -webkit-line-clamp: 2;
    }

    .media--hero {
        aspect-ratio: 16 / 10;
        max-height: none;
    }

    .media__credit {
        font-size: .6rem;
    }

    .story-card--lead .story-card__title {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
    }

    .column--rail {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card--with-media .media__img,
    .story-card__media .media__img,
    .headline-card .media__img {
        transition: none;
    }

    .card--with-media:hover .media__img,
    .story-card:hover .media__img,
    .headline-card:hover .media__img {
        transform: none;
    }
}

.card--lead {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-top: 3px solid var(--accent);
}

.card--lead .card__media .media {
    aspect-ratio: 16 / 9;
    border-radius: 0;
    max-height: 470px;
}

.card--lead .card__body {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: clamp(1.2rem, 2.4vw, 1.8rem);
}

.card--lead .card__title {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.14;
    letter-spacing: -.02em;
}

@media (max-width: 720px) {
    .card--lead .card__media .media {
        aspect-ratio: 16 / 10;
        max-height: none;
    }
}

.coverage__item--with-media {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.coverage__media {
    display: block;
}

.coverage__body {
    min-width: 0;
}

@media (max-width: 720px) {
    .coverage__item--with-media {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: .7rem;
    }

    .coverage__item--with-media .media--thumb {
        aspect-ratio: 1 / 1;
    }
}

/* Subject timeline: a month-by-month count of collected articles about one topic or name. The bar
   height is a five-step visual scale; the exact figures are in each item's accessible label. */
.subject-timeline {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    list-style: none;
    margin: 1rem 0 .4rem;
    padding: 0;
    height: 120px;
}

.subject-timeline__item {
    flex: 1 1 0;
    display: flex;
    align-items: flex-end;
    height: 100%;
    min-width: 4px;
}

.subject-timeline__bar {
    display: block;
    width: 100%;
    border-radius: 3px 3px 0 0;
    background: var(--accent);
    opacity: .75;
    min-height: 4px;
}

.subject-timeline__bar--l1 { height: 20%; }
.subject-timeline__bar--l2 { height: 40%; }
.subject-timeline__bar--l3 { height: 60%; }
.subject-timeline__bar--l4 { height: 80%; }
.subject-timeline__bar--l5 { height: 100%; }

.subject-timeline__axis {
    font-size: .8rem;
    margin-top: .2rem;
}

@media (max-width: 720px) {
    .subject-timeline {
        height: 90px;
        gap: 2px;
    }
}
