/* ------------------------------------------------------------------
   Informational Site Network — shared modern theme
   Brand colours and fonts are injected per site from config/site.php.
------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--brand);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--brand-dark);
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.5em;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--ink);
}

p {
    margin: 0 0 1em;
}

ul,
ol {
    margin: 0 0 1em;
    padding-left: 1.25em;
}

::selection {
    background: var(--accent);
    color: #fff;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

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

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 200;
    padding: 10px 18px;
    background: var(--ink);
    color: #fff;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

.shell {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

/* ------------------------------------------------------------------
   Top bar and header
------------------------------------------------------------------- */

.topbar {
    background: var(--brand-dark);
    color: color-mix(in srgb, var(--hero-ink) 78%, transparent);
    font-size: 13px;
    letter-spacing: 0.01em;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 38px;
}

.topbar-note {
    font-weight: 500;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hero-ink);
    text-decoration: none;
    font-weight: 600;
    opacity: 0.9;
}

.topbar-link:hover {
    color: #fff;
    opacity: 1;
}

.topbar-link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 82px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    flex-shrink: 0;
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 28%, transparent);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.brand-text span {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-right: auto;
}

.primary-nav a {
    position: relative;
    padding: 6px 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 550;
    text-decoration: none;
    white-space: nowrap;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
    width: 100%;
}

.primary-nav a.is-active {
    color: var(--brand);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 238px;
    flex-shrink: 0;
}

.header-search svg {
    position: absolute;
    left: 13px;
    width: 17px;
    height: 17px;
    fill: var(--muted);
    pointer-events: none;
}

.header-search input {
    width: 100%;
    padding: 10px 14px 10px 37px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--ink);
}

/* ------------------------------------------------------------------
   Buttons, pills and links
------------------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 24%, transparent);
}

.button-primary:hover {
    background: var(--brand-dark);
    color: #fff;
}

.button-ghost {
    background: transparent;
    border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
    color: var(--brand);
}

.button-ghost:hover {
    background: color-mix(in srgb, var(--brand) 8%, transparent);
    color: var(--brand-dark);
}

.button-block {
    width: 100%;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 10%, var(--bg));
    color: var(--brand-dark);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.3;
}

.pill-small {
    padding: 3px 9px;
    font-size: 10px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.text-link:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.text-link-light {
    color: var(--accent-soft);
}

.text-link-light:hover {
    color: #fff;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 32%),
        radial-gradient(circle at 12% 92%, color-mix(in srgb, var(--brand) 60%, transparent), transparent 42%),
        linear-gradient(135deg, var(--hero-from), var(--hero-to));
    color: var(--hero-ink);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(color-mix(in srgb, var(--hero-ink) 7%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--hero-ink) 7%, transparent) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%);
    pointer-events: none;
}

.hero-orbit {
    position: absolute;
    right: -180px;
    top: -220px;
    width: 620px;
    height: 620px;
    border: 1px solid color-mix(in srgb, var(--hero-ink) 18%, transparent);
    border-radius: 50%;
    pointer-events: none;
}

.hero-orbit::before,
.hero-orbit::after {
    content: "";
    position: absolute;
    border: 1px solid color-mix(in srgb, var(--hero-ink) 14%, transparent);
    border-radius: 50%;
}

.hero-orbit::before {
    inset: 64px;
}

.hero-orbit::after {
    inset: 150px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 60px;
    align-items: center;
    padding-block: 82px 88px;
}

.hero-copy h1 {
    max-width: 12em;
    margin-bottom: 20px;
    color: var(--hero-ink);
    font-size: clamp(42px, 5.4vw, 74px);
    font-weight: 600;
    line-height: 1.02;
}

.hero-text {
    max-width: 34em;
    margin-bottom: 28px;
    color: color-mix(in srgb, var(--hero-ink) 82%, transparent);
    font-size: 18px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.hero .button-ghost {
    border-color: color-mix(in srgb, var(--hero-ink) 38%, transparent);
    color: var(--hero-ink);
}

.hero .button-ghost:hover {
    background: color-mix(in srgb, var(--hero-ink) 12%, transparent);
    color: #fff;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid color-mix(in srgb, var(--hero-ink) 18%, transparent);
}

.hero-stats div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hero-stats dt {
    font-family: var(--font-heading);
    font-size: 27px;
    font-weight: 650;
    line-height: 1;
    color: var(--hero-ink);
}

.hero-stats dd {
    margin: 0;
    color: color-mix(in srgb, var(--hero-ink) 64%, transparent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.featured-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 390px;
    padding: 32px;
    border: 1px solid color-mix(in srgb, var(--hero-ink) 22%, transparent);
    border-radius: 24px;
    background: linear-gradient(155deg, color-mix(in srgb, var(--hero-ink) 14%, transparent), color-mix(in srgb, var(--hero-ink) 5%, transparent));
    color: var(--hero-ink);
    text-decoration: none;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--hero-ink) 42%, transparent);
    color: var(--hero-ink);
}

.featured-label {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 22px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--accent);
    color: #1c1408;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.featured-card .pill {
    align-self: flex-start;
    margin-bottom: 14px;
    background: color-mix(in srgb, var(--hero-ink) 12%, transparent);
    color: var(--hero-ink);
}

.featured-card h2 {
    margin-bottom: 14px;
    color: var(--hero-ink);
    font-size: clamp(25px, 2.6vw, 35px);
    line-height: 1.14;
}

.featured-card p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 22px;
    color: color-mix(in srgb, var(--hero-ink) 76%, transparent);
    font-size: 15px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    color: color-mix(in srgb, var(--hero-ink) 64%, transparent);
    font-size: 12.5px;
    font-weight: 600;
}

.featured-arrow {
    position: absolute;
    right: 26px;
    bottom: 24px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--hero-ink);
    color: var(--hero-from);
    font-size: 20px;
    transition: transform 0.2s ease;
}

.featured-card:hover .featured-arrow {
    transform: translateX(3px);
}

/* ------------------------------------------------------------------
   Sections and headings
------------------------------------------------------------------- */

.section {
    padding-block: 76px;
}

.section-tight {
    padding-block: 56px 72px;
}

.section-tinted {
    background:
        linear-gradient(color-mix(in srgb, var(--accent) 5%, transparent), transparent 70%),
        var(--surface);
    border-block: 1px solid var(--border);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section-head h2 {
    margin-bottom: 0;
    font-size: clamp(28px, 3.2vw, 42px);
}

.section-head .eyebrow {
    margin-bottom: 8px;
}

/* ------------------------------------------------------------------
   Category cards
------------------------------------------------------------------- */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.category-grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 178px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
    box-shadow: 0 18px 36px color-mix(in srgb, var(--brand) 10%, transparent);
    color: var(--ink);
}

.category-number {
    margin-bottom: auto;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
}

.category-name {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.category-count {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 550;
}

.category-arrow {
    position: absolute;
    right: 19px;
    bottom: 18px;
    color: var(--brand);
    font-size: 18px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ------------------------------------------------------------------
   Article cards
------------------------------------------------------------------- */

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--brand) 34%, var(--border));
    box-shadow: 0 24px 44px color-mix(in srgb, var(--brand) 10%, transparent);
    color: var(--ink);
}

.card-art {
    position: relative;
    display: grid;
    place-items: center;
    height: 150px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand), var(--accent));
}

.card-art::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: repeating-linear-gradient(115deg, transparent 0 14px, rgba(255, 255, 255, 0.09) 14px 15px);
}

.card-art span {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 650;
}

.art-1 {
    background: linear-gradient(135deg, var(--hero-to), var(--brand));
}

.art-2 {
    background: linear-gradient(135deg, var(--accent), var(--brand));
}

.art-3 {
    background: linear-gradient(135deg, var(--brand-dark), var(--accent));
}

.art-4 {
    background: linear-gradient(135deg, var(--hero-from), var(--brand));
}

.art-5 {
    background: linear-gradient(135deg, var(--accent), var(--hero-to));
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 21px 22px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
}

.card-title {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 9px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.24;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.card-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.card-source {
    overflow: hidden;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--brand);
    font-size: 11.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------------------------------------------------------------------
   Sources and start-here
------------------------------------------------------------------- */

.source-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.source-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.source-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand) 36%, var(--border));
    color: var(--ink);
}

.source-initial {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--brand-dark);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.source-card > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.source-card strong {
    overflow: hidden;
    font-size: 14.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-card small {
    color: var(--muted);
    font-size: 11.5px;
}

.source-card > span:last-child {
    margin-left: auto;
    color: var(--brand);
}

.start-here {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 50px;
    align-items: start;
    padding: 42px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 8% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 40%),
        var(--surface);
}

.start-here-copy h2 {
    font-size: clamp(28px, 3vw, 40px);
}

.start-here-copy p {
    color: var(--muted);
}

.start-here-list {
    display: flex;
    flex-direction: column;
}

.start-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 4px;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    text-decoration: none;
}

.start-link:first-child {
    border-top: 1px solid var(--border);
}

.start-link > span:first-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.start-link strong {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}

.start-link small {
    color: var(--muted);
    font-size: 12px;
}

.start-link > span:last-child {
    color: var(--brand);
    transition: transform 0.2s ease;
}

.start-link:hover {
    color: var(--brand);
}

.start-link:hover > span:last-child {
    transform: translateX(4px);
}

/* ------------------------------------------------------------------
   Page hero, filters and listing pages
------------------------------------------------------------------- */

.page-hero {
    padding-block: 56px 40px;
    background:
        radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34%),
        var(--surface);
    border-bottom: 1px solid var(--border);
}

.page-hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.page-hero h1 {
    margin-bottom: 12px;
    font-size: clamp(36px, 4.4vw, 58px);
}

.page-intro {
    max-width: 44em;
    margin: 0;
    color: var(--muted);
    font-size: 17.5px;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 550;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--brand);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.filter-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 280px;
}

.filter-search svg {
    position: absolute;
    left: 13px;
    width: 17px;
    height: 17px;
    fill: var(--muted);
}

.filter-search input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}

.filter-bar label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.filter-bar select {
    min-width: 170px;
    padding: 11px 34px 11px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 13.5px;
}

.filter-search input:focus,
.filter-bar select:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}

.result-count {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.results-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.results-row .result-count {
    margin: 0;
}

.empty-state {
    padding: 60px 24px;
    border: 1px dashed color-mix(in srgb, var(--brand) 32%, var(--border));
    border-radius: 22px;
    background: var(--surface);
    text-align: center;
}

.empty-state-large {
    padding-block: 90px;
}

.empty-state h1,
.empty-state h2 {
    font-size: clamp(28px, 3.4vw, 40px);
}

.empty-state p {
    max-width: 38em;
    margin-inline: auto;
    color: var(--muted);
}

.empty-state .hero-actions {
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 0;
}

/* ------------------------------------------------------------------
   Article page
------------------------------------------------------------------- */

.article-hero {
    padding-block: 46px 34px;
    background:
        radial-gradient(circle at 82% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 34%),
        var(--surface);
    border-bottom: 1px solid var(--border);
}

.article-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 44px;
}

.article-heading-copy {
    max-width: 820px;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.article-read {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.article-heading h1 {
    margin-bottom: 16px;
    font-size: clamp(34px, 4.6vw, 60px);
    line-height: 1.06;
}

.article-deck {
    max-width: 44em;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 18px;
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 20px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 550;
}

.article-byline a {
    color: var(--brand);
    font-weight: 650;
    text-decoration: none;
}

.article-mark {
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 650;
    box-shadow: 0 24px 48px color-mix(in srgb, var(--brand) 22%, transparent);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 58px;
    align-items: start;
}

.prose {
    max-width: 760px;
    font-size: 17.5px;
    line-height: 1.78;
}

.prose > p:first-of-type::first-letter {
    float: left;
    margin: 8px 10px 0 0;
    color: var(--brand);
    font-family: var(--font-heading);
    font-size: 66px;
    font-weight: 600;
    line-height: 0.72;
}

.prose p {
    margin-bottom: 1.25em;
}

.prose h2 {
    margin-top: 2em;
    font-size: 30px;
}

.prose h3 {
    margin-top: 1.7em;
    font-size: 23px;
}

.prose a {
    font-weight: 550;
}

.prose blockquote {
    margin: 1.8em 0;
    padding: 4px 0 4px 26px;
    border-left: 4px solid var(--accent);
    color: var(--muted);
    font-family: var(--font-heading);
    font-size: 22px;
    font-style: italic;
}

.source-note {
    margin-top: 38px;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.source-note-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.source-note p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.article-nav-link {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.article-nav-link:hover {
    border-color: var(--brand);
    color: var(--ink);
}

.article-nav-link small {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.article-nav-link strong {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.article-nav-next {
    text-align: right;
}

.article-aside {
    position: sticky;
    top: 106px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.aside-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.aside-card h2 {
    margin-bottom: 14px;
    font-size: 19px;
}

.aside-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.aside-link:last-child {
    border-bottom: 0;
}

.aside-link:hover {
    color: var(--brand);
}

.aside-article {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    text-decoration: none;
}

.aside-article:last-child {
    border-bottom: 0;
}

.aside-article strong {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.aside-article small {
    color: var(--muted);
    font-size: 11.5px;
}

.aside-article:hover strong {
    color: var(--brand);
}

.aside-network p {
    color: var(--muted);
    font-size: 13.5px;
}

/* ------------------------------------------------------------------
   Names
------------------------------------------------------------------- */

.hero-names-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.name-search {
    display: flex;
    max-width: 520px;
    margin-bottom: 30px;
    padding: 6px;
    border: 1px solid color-mix(in srgb, var(--hero-ink) 26%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--hero-ink) 9%, transparent);
}

.name-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 18px;
    border: 0;
    background: transparent;
    color: var(--hero-ink);
    font: inherit;
    font-size: 15px;
}

.name-search input::placeholder {
    color: color-mix(in srgb, var(--hero-ink) 58%, transparent);
}

.name-search input:focus {
    outline: none;
}

.name-search button {
    padding: 11px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #1d1408;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.name-search button:hover {
    background: #fff;
}

.name-feature-card {
    padding: 30px;
    border: 1px solid color-mix(in srgb, var(--hero-ink) 22%, transparent);
    border-radius: 24px;
    background: linear-gradient(155deg, color-mix(in srgb, var(--hero-ink) 14%, transparent), color-mix(in srgb, var(--hero-ink) 5%, transparent));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.16);
}

.name-feature-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-bottom: 22px;
}

.name-feature-card h2 {
    margin-bottom: 12px;
    color: var(--hero-ink);
    font-size: 20px;
}

.name-rank-list {
    margin: 0;
    padding-left: 20px;
    color: color-mix(in srgb, var(--hero-ink) 70%, transparent);
    font-size: 14px;
    line-height: 1.9;
}

.name-rank-list a {
    color: var(--hero-ink);
    font-weight: 600;
    text-decoration: none;
}

.name-rank-list a:hover {
    color: var(--accent);
}

.country-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.country-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.country-chip small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.country-chip:hover {
    border-color: var(--brand);
    background: var(--accent-soft);
    color: var(--brand-dark);
}

.letter-grid {
    display: grid;
    grid-template-columns: repeat(13, minmax(0, 1fr));
    gap: 8px;
}

.letter-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 13px 6px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.letter-tile strong {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 650;
}

.letter-tile small {
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 600;
}

.letter-tile:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    color: var(--brand-dark);
}

.split-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.split-panel {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 30px;
    border-radius: 22px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.22s ease;
}

.split-panel:hover {
    transform: translateY(-3px);
    color: #fff;
}

.split-boys {
    background: linear-gradient(135deg, var(--hero-from), var(--brand));
}

.split-girls {
    background: linear-gradient(135deg, var(--brand), var(--accent));
}

.split-kicker {
    margin-bottom: auto;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.72;
}

.split-title {
    max-width: 15em;
    margin-bottom: 18px;
    font-family: var(--font-heading);
    font-size: clamp(23px, 2.4vw, 32px);
    font-weight: 600;
    line-height: 1.15;
}

.split-cta {
    font-size: 13.5px;
    font-weight: 650;
    opacity: 0.9;
}

.name-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.name-grid-large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.name-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.name-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    color: var(--ink);
}

.name-initial {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--brand-dark);
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
}

.name-card > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.name-card strong {
    overflow: hidden;
    font-size: 14.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.name-card small {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.name-rank {
    margin-left: auto;
    color: var(--accent);
    font-size: 10.5px;
    font-weight: 700;
}

.name-hero {
    padding-block: 46px 34px;
    background:
        radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34%),
        var(--surface);
    border-bottom: 1px solid var(--border);
}

.name-hero-card {
    display: flex;
    align-items: center;
    gap: 38px;
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--bg);
    box-shadow: 0 18px 50px color-mix(in srgb, var(--brand) 8%, transparent);
}

.name-hero-mark {
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 34px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 650;
    box-shadow: 0 24px 48px color-mix(in srgb, var(--brand) 24%, transparent);
}

.name-hero-card h1 {
    margin-bottom: 10px;
    font-size: clamp(40px, 5vw, 64px);
}

.name-hero-summary {
    max-width: 42em;
    color: var(--muted);
    font-size: 16px;
}

.name-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 24px;
}

.name-facts span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 110px;
    padding: 11px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.name-facts small {
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.name-facts strong {
    font-size: 14px;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 34px;
    margin-bottom: 26px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.filter-label {
    display: block;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chip {
    padding: 7px 15px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 650;
    text-decoration: none;
}

.chip:hover,
.chip.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.inline-select select {
    min-width: 190px;
    padding: 9px 32px 9px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
}

.filter-group-wide {
    flex-basis: 100%;
}

.letter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.letter-link {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
}

.letter-link:hover,
.letter-link.is-active {
    background: var(--brand);
    color: #fff;
}

/* ------------------------------------------------------------------
   About / contact
------------------------------------------------------------------- */

.about-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 58px;
    align-items: start;
}

.about-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stat-list {
    margin: 0;
}

.stat-list div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.stat-list div:last-child {
    border-bottom: 0;
}

.stat-list dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.stat-list dd {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 650;
}

.about-network p {
    color: var(--muted);
    font-size: 13.5px;
}

.about-strip {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr auto;
    gap: 34px;
    align-items: center;
    padding: 36px 40px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
}

.about-strip h2 {
    margin: 0;
    font-size: clamp(26px, 2.8vw, 36px);
}

.about-strip p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

/* ------------------------------------------------------------------
   Pagination
------------------------------------------------------------------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 42px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}

.page-link {
    color: var(--brand);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.page-link.is-disabled {
    color: color-mix(in srgb, var(--muted) 55%, transparent);
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-number {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding-inline: 7px;
    border-radius: 9px;
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 650;
    text-decoration: none;
}

.page-number:hover {
    background: var(--accent-soft);
}

.page-number.is-current {
    background: var(--brand);
    color: #fff;
}

.page-ellipsis {
    padding-inline: 4px;
    color: var(--muted);
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */

.site-footer {
    margin-top: 40px;
    padding-top: 62px;
    background:
        radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 30%),
        var(--hero-from);
    color: color-mix(in srgb, var(--hero-ink) 76%, transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr 1.2fr;
    gap: 42px;
    padding-bottom: 46px;
}

.brand-light,
.brand-light:hover {
    color: var(--hero-ink);
}

.brand-light .brand-text span {
    color: color-mix(in srgb, var(--hero-ink) 55%, transparent);
}

.footer-brand p {
    max-width: 30em;
    margin-top: 18px;
    font-size: 13.5px;
    line-height: 1.65;
}

.footer-col,
.footer-network {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-col h2,
.footer-network h2 {
    margin-bottom: 6px;
    color: var(--hero-ink);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-col a {
    color: color-mix(in srgb, var(--hero-ink) 72%, transparent);
    font-size: 13.5px;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--hero-ink);
}

.footer-network p {
    margin-bottom: 8px;
    color: color-mix(in srgb, var(--hero-ink) 62%, transparent);
    font-size: 12.5px;
    line-height: 1.6;
}

.network-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid color-mix(in srgb, var(--hero-ink) 20%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--hero-ink) 7%, transparent);
    color: var(--hero-ink);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.network-link:hover {
    border-color: color-mix(in srgb, var(--accent) 70%, transparent);
    background: color-mix(in srgb, var(--hero-ink) 11%, transparent);
    color: var(--hero-ink);
}

.network-logo {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #1d1408;
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
}

.network-link > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.network-link strong {
    font-size: 12.5px;
    font-weight: 650;
}

.network-link small {
    color: color-mix(in srgb, var(--hero-ink) 55%, transparent);
    font-size: 10.5px;
}

.network-link svg {
    width: 15px;
    height: 15px;
    margin-left: auto;
    fill: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 20px 26px;
    border-top: 1px solid color-mix(in srgb, var(--hero-ink) 14%, transparent);
    color: color-mix(in srgb, var(--hero-ink) 52%, transparent);
    font-size: 11.5px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: color-mix(in srgb, var(--hero-ink) 78%, transparent);
    font-weight: 650;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .hero-inner {
        gap: 40px;
        padding-block: 66px 72px;
    }

    .header-inner {
        gap: 18px;
    }

    .primary-nav {
        gap: 16px;
    }

    .header-search {
        width: 190px;
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .letter-grid {
        grid-template-columns: repeat(10, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr 0.8fr;
    }

    .footer-network {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .shell {
        width: min(100% - 36px, 1180px);
    }

    .topbar-note {
        display: none;
    }

    .topbar-inner {
        justify-content: center;
    }

    .header-inner {
        flex-wrap: wrap;
        padding-block: 12px;
        min-height: 74px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-search {
        order: 4;
        width: 100%;
    }

    .primary-nav {
        display: none;
        order: 5;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 6px 0 0;
        padding: 8px 0 4px;
        border-top: 1px solid var(--border);
    }

    .nav-open .primary-nav {
        display: flex;
    }

    .primary-nav a {
        padding: 11px 2px;
        border-bottom: 1px solid var(--border);
    }

    .primary-nav a:last-child {
        border-bottom: 0;
    }

    .primary-nav a::after {
        display: none;
    }

    .hero-inner,
    .hero-names-inner {
        grid-template-columns: 1fr;
        gap: 38px;
        padding-block: 54px 62px;
    }

    .hero-copy h1 {
        max-width: 14em;
    }

    .featured-card {
        min-height: 0;
    }

    .article-grid,
    .category-grid,
    .category-grid-wide,
    .source-grid,
    .source-grid-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .name-grid,
    .name-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .letter-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .article-layout,
    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .article-aside {
        position: static;
    }

    .start-here {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 30px;
    }

    .about-strip {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 28px;
    }

    .page-hero-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-heading {
        gap: 26px;
    }

    .article-mark {
        width: 92px;
        height: 92px;
        font-size: 40px;
    }

    .filter-bar {
        align-items: stretch;
    }

    .filter-bar label,
    .filter-bar select {
        width: 100%;
    }

    .filter-bar .button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand,
    .footer-network {
        grid-column: 1 / -1;
    }

    .name-hero-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 26px;
    }

    .name-hero-mark {
        width: 100px;
        height: 100px;
        border-radius: 24px;
        font-size: 48px;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 16px;
    }

    .shell {
        width: min(100% - 28px, 1180px);
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text span {
        font-size: 10px;
    }

    .hero-copy h1 {
        font-size: clamp(36px, 10vw, 54px);
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stats dt {
        font-size: 23px;
    }

    .section {
        padding-block: 54px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .article-grid,
    .category-grid,
    .category-grid-wide,
    .source-grid,
    .source-grid-wide,
    .name-grid,
    .name-grid-large,
    .split-panels,
    .name-feature-columns {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 142px;
    }

    .letter-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .article-heading {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .article-mark {
        width: 72px;
        height: 72px;
        font-size: 32px;
    }

    .article-heading h1 {
        font-size: clamp(30px, 9vw, 42px);
    }

    .prose {
        font-size: 16.5px;
    }

    .prose > p:first-of-type::first-letter {
        font-size: 52px;
    }

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

    .article-nav-next {
        text-align: left;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-numbers {
        order: -1;
        flex-basis: 100%;
        justify-content: center;
    }

    .name-search {
        flex-direction: column;
        border-radius: 18px;
        background: transparent;
        border: 0;
        padding: 0;
    }

    .name-search input {
        width: 100%;
        margin-bottom: 8px;
        border: 1px solid color-mix(in srgb, var(--hero-ink) 26%, transparent);
        border-radius: 999px;
        background: color-mix(in srgb, var(--hero-ink) 9%, transparent);
    }

    .name-search button {
        width: 100%;
    }

    .name-search-page input {
        color: var(--ink);
        background: var(--surface);
        border-color: var(--border);
    }

    .name-search-page input::placeholder {
        color: var(--muted);
    }

    .name-hero-card {
        padding: 22px;
    }

    .name-facts span {
        min-width: calc(50% - 6px);
    }

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

    .footer-brand,
    .footer-network {
        grid-column: auto;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
