/* Front Page: a daily's web front. One stylesheet, mobile first. */

@font-face {
    font-family: "Source Serif FP";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url("faces/serif-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Source Serif FP";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url("faces/serif-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Source Serif FP";
    font-style: italic;
    font-weight: 200 900;
    font-display: swap;
    src: url("faces/serif-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Source Serif FP";
    font-style: italic;
    font-weight: 200 900;
    font-display: swap;
    src: url("faces/serif-italic-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Franklin FP";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("faces/franklin-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Franklin FP";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("faces/franklin-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --paper: #ffffff;
    --ink: #121212;
    --ink-2: #5a5a5a;
    --rule: #e2e2e2;
    --navy: #0b2f6b;
    --wash: #f4f4f4;

    --world: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans", "Noto Sans JP", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans Thai", "Noto Sans Devanagari", "Noto Sans Tamil", "Tamil Sangam MN", "Latha", "Noto Sans Arabic";
    --serif: "Source Serif FP", Georgia, "Times New Roman", var(--world), serif;
    --sans: "Franklin FP", "Helvetica Neue", Arial, var(--world), system-ui, sans-serif;

    --pad: 16px;
    --gut: 24px;
    --max: 1280px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    color-scheme: light;
}

@media (min-width: 640px) { :root { --pad: 24px; } }
@media (min-width: 1024px) { :root { --pad: 32px; --gut: 28px; } }

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: var(--paper);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    caret-color: var(--navy);
}

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

img, svg { display: block; max-width: 100%; }
img { height: auto; }
svg { width: 1em; height: 1em; flex: none; }
svg.sr { width: 0; height: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 1px; }
main:focus { outline: none; }

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

.skip {
    position: absolute;
    inset-inline-start: var(--pad);
    inset-block-start: 8px;
    z-index: 10;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transform: translateY(-200%);
}
.skip:focus { transform: none; color: #fff; }

.wrap {
    width: 100%;
    max-width: calc(var(--max) + 2 * var(--pad));
    margin-inline: auto;
    padding-inline: var(--pad);
}

.flip { transform: scaleX(-1); }
[dir="rtl"] .flip { transform: none; }
[dir="rtl"] .pager__btn svg:not(.flip), [dir="rtl"] .label svg { transform: scaleX(-1); }

/* ---------- Masthead ---------- */

.mast__top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 44px;
    font-size: 0.8125rem;
    color: var(--ink-2);
}

.mast__date { font-weight: 600; color: var(--ink); font-variant-numeric: lining-nums; }
.mast__top .mast__date { display: none; }
.mast__date--small { margin-top: 6px; font-size: 0.8125rem; font-weight: 600; }

.tongues ul { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 4px; }
.tongues__a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 8px;
    color: var(--ink-2);
    text-decoration: none;
    white-space: nowrap;
}
.tongues__a:hover { color: var(--navy); text-decoration: underline; }
.tongues__a.is-on { color: var(--ink); font-weight: 700; }
.tongues__a.is-missing { font-style: italic; }

.mast__title { text-align: center; padding-block: 4px 16px; }
.mast__h {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.875rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.015em;
    font-variation-settings: "opsz" 60;
}
.mast__name { color: var(--ink); text-decoration: none; display: inline-block; }
.mast__name:hover { color: var(--ink); }
.mast__logo { max-height: 56px; width: auto; margin-inline: auto; }
.mast__area {
    margin-top: 6px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: var(--ink-2);
}

.mast__bar {
    display: flex;
    align-items: stretch;
    border-top: 3px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.sections { flex: 1 1 auto; min-width: 0; }
.sections__list {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    padding-inline-end: 24px;
}
[dir="rtl"] .sections__list {
    -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent);
}
.sections__list::-webkit-scrollbar { display: none; }
.sections__a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 10px;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    padding-top: 3px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    color: var(--ink);
}
.sections li:first-child .sections__a { padding-inline-start: 0; }
.sections__a:hover { color: var(--navy); }
.sections__a.is-on { color: var(--navy); border-bottom-color: var(--navy); }

.mast__find {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    padding-inline-start: 12px;
    border-inline-start: 1px solid var(--rule);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
}
.mast__find svg { font-size: 1.125rem; }
.mast__findtext { display: none; }

@media (min-width: 640px) {
    .mast__top { justify-content: space-between; }
    .mast__top .mast__date { display: block; }
    .mast__date--small { display: none; }
    .tongues ul { justify-content: flex-end; }
    .tongues li:last-child .tongues__a { padding-inline-end: 0; }
    .mast__title { padding-block: 0 20px; }
    .mast__findtext { display: inline; }
    .mast__find { padding-inline: 16px 0; }
}

@media (min-width: 1024px) {
    .mast__title { padding-block: 0 22px; }
    .mast__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
    .sections { grid-column: 2; }
    .sections__list { -webkit-mask-image: none; mask-image: none; padding-inline-end: 0; justify-content: center; }
    .sections li:first-child .sections__a { padding-inline-start: 10px; }
    .mast__find { grid-column: 3; justify-self: end; border-inline-start: 0; }
}

/* ---------- Shared type ---------- */

.main { padding-block: 24px 64px; }
@media (min-width: 1024px) { .main { padding-block: 28px 80px; } }

.label {
    font-family: var(--sans);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
}
.label a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; text-decoration: none; color: var(--navy); }
.label a:hover { text-decoration: underline; }
.label svg { font-size: 0.875rem; }

.st__h, .story__h, .sect__h, .lost__h {
    font-family: var(--serif);
    color: var(--ink);
    overflow-wrap: break-word;
    text-wrap: balance;
}
.st__h { font-size: 1.0625rem; font-weight: 650; line-height: 1.22; letter-spacing: -0.003em; }
.st__h a {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
    transition: text-decoration-color 160ms var(--ease);
}
.st__h a:hover, .st:has(.st__pic:hover) .st__h a { color: var(--ink); text-decoration-color: currentColor; }

.st__h--lead {
    font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.012em;
}
.st__h--feat { font-size: 1.0625rem; }

.st__dek {
    margin-top: 6px;
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.45;
    color: var(--ink-2);
    text-wrap: pretty;
}
.st__dek--lead { font-size: 1.125rem; margin-top: 10px; color: #363636; }

.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    row-gap: 2px;
    margin-top: 8px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}
.meta__sect { color: var(--navy); font-weight: 700; text-decoration: none; }
.meta__sect:hover { text-decoration: underline; }
.meta__by { color: var(--ink); font-weight: 600; }

.textlink { font-weight: 600; font-size: 0.9375rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); }
.textlink:hover { color: var(--navy); text-decoration-color: currentColor; }
.textlink--icon { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }

/* ---------- Photos ---------- */

.ph {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--wash);
}
.ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 520ms var(--ease);
}
.st__pic { display: block; }
.st__pic:hover .ph img, .st:has(.st__h a:hover) .ph img { transform: scale(1.02); }

/* ---------- Story layouts ---------- */

.st { position: relative; min-width: 0; }
.st--lead { display: flex; flex-direction: column; }
.st--lead .st__pic { order: -1; margin-inline: calc(var(--pad) * -1); margin-bottom: 14px; }
.st--lead .meta { margin-top: 12px; }

/* Phone: every list story sets its photo small at the side. */
.st--rail, .st--card, .st--feat, .st--row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 7.5rem;
    column-gap: 16px;
    align-items: start;
}
.st--rail .st__text, .st--card .st__text, .st--feat .st__text, .st--row .st__text { grid-column: 1; grid-row: 1; }
.st--rail .st__pic, .st--card .st__pic, .st--feat .st__pic, .st--row .st__pic { grid-column: 2; grid-row: 1; }
.st--bare { grid-template-columns: minmax(0, 1fr); }
.st--rail .st__dek, .st--card .st__dek, .st--feat .st__dek { display: none; }
.st--row .st__dek { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.9375rem; }

.top__rail > .st, .cards > .st, .feat__list > .st, .river > .st, .headlines > li, .feat > .st, .single > .st {
    padding-block: 16px;
    border-top: 1px solid var(--rule);
}
.cards > .st:first-child, .river > .st:first-child, .feat > .st:first-child, .single > .st:first-child { border-top: 0; padding-top: 4px; }
.feat__list > .st:first-child { border-top: 1px solid var(--rule); }

.top { margin-bottom: 8px; }
.top__lead { padding-bottom: 20px; }
.top__rail { border-top: 1px solid var(--ink); }
.top__rail > .st:first-child { border-top: 0; }
.headlines { border-top: 1px solid var(--rule); }
.headlines > li:first-child { border-top: 0; }
.headlines .meta { margin-top: 4px; }

/* ---------- Blocks ---------- */

.blk { margin-top: 32px; padding-top: 10px; border-top: 1px solid var(--ink); }
.blk__label { margin-bottom: 8px; }
.top + .blk, .lower > .lower__main > .blk:first-child { margin-top: 24px; }

.lower__aside, .split__aside, .read__aside { margin-top: 40px; }

.ranked { border-top: 1px solid var(--ink); padding-top: 10px; }
.ranked__list { counter-reset: none; margin-top: 4px; }
.ranked__item {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 8px;
    padding-block: 14px;
    border-top: 1px solid var(--rule);
}
.ranked__item:first-child { border-top: 0; }
.ranked__n {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1;
    color: var(--navy);
    font-variant-numeric: lining-nums tabular-nums;
}
.ranked .meta { margin-top: 4px; }

.about { margin-top: 32px; padding-top: 10px; border-top: 1px solid var(--ink); }
.about > p { margin-top: 10px; font-family: var(--serif); font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.about .find { margin-top: 12px; }
.find__go svg { font-size: 1.125rem; }
.top__rail > .about--rail { grid-column: 1 / -1; }
.cap__credit:first-child { margin-inline-start: 0; }

/* A row of sections that each have one story. */
.minis { margin-top: 32px; }
.mini { padding-top: 10px; border-top: 1px solid var(--ink); }
.mini + .mini { margin-top: 24px; }
.mini > .st { padding-top: 4px; }

/* ---------- Tablet ---------- */

@media (min-width: 640px) {
    .st--lead .st__pic { margin-inline: 0; }

    .st--card { display: block; }
    .st--card .st__pic { margin-bottom: 10px; }
    .st--card .st__dek { display: block; font-size: 0.9375rem; }

    .st--row { grid-template-columns: minmax(0, 1fr) clamp(11rem, 28%, 13.75rem); column-gap: 24px; }
    .st--row .st__h { font-size: 1.25rem; }
    .st--row .st__dek { -webkit-line-clamp: 4; }
    .st--bare { grid-template-columns: minmax(0, 1fr); }

    .st--feat { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gut); }
    .st--feat .st__pic { grid-column: 1; }
    .st--feat .st__text { grid-column: 2; }
    .st--feat.st--bare .st__text { grid-column: 1 / -1; }
    .st--feat .st__h { font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
    .st--feat .st__dek { display: block; font-size: 1.0625rem; }

    .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gut); }
    .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cards--1 { grid-template-columns: minmax(0, 24rem); }
    .cards > .st { border-top: 0; padding-top: 4px; }
    .cards > .st:nth-child(n + 3) { border-top: 1px solid var(--rule); padding-top: 16px; }
    .cards--3 > .st:nth-child(n + 3) { border-top: 0; padding-top: 4px; }
    .cards > .st + .st::before {
        content: "";
        position: absolute;
        inset-block: 4px 16px;
        inset-inline-start: calc(var(--gut) / -2);
        border-inline-start: 1px solid var(--rule);
    }
    .cards--2 > .st:nth-child(odd)::before, .cards--4 > .st:nth-child(3)::before { display: none; }

    .top__rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gut); padding-top: 16px; }
    .top__rail > .st { display: block; border-top: 0; padding-top: 0; }
    .top__rail > .st .st__pic { margin-bottom: 10px; }
    .top__rail > .st + .st::before {
        content: "";
        position: absolute;
        inset-block: 0 16px;
        inset-inline-start: calc(var(--gut) / -2);
        border-inline-start: 1px solid var(--rule);
    }
    .top__rail .headlines { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gut); }
    .top__rail .headlines > li { border-top: 0; }

    .feat__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gut); }
    .feat__list > .st:nth-child(-n + 2) { border-top: 1px solid var(--rule); }
    .feat__list .st__h { font-size: 1rem; }
}

@media (min-width: 640px) {
    .minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gut); row-gap: 32px; }
    .mini + .mini { margin-top: 0; }
    .mini--2 { grid-column: span 2; }
}

/* ---------- Desktop: the 12-column front ---------- */

@media (min-width: 1024px) {
    .st__h:not(.st__h--lead) { font-size: 1.125rem; }

    .top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .top__lead { grid-column: 1 / 9; padding-inline-end: var(--gut); padding-bottom: 8px; }
    .top__rail {
        grid-column: 9 / 13;
        display: block;
        padding-top: 0;
        padding-inline-start: var(--gut);
        border-top: 0;
        border-inline-start: 1px solid var(--rule);
    }
    .top__rail > .st {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 7.5rem;
        column-gap: 16px;
        padding-block: 16px;
        border-top: 1px solid var(--rule);
    }
    .top__rail > .st.st--bare { grid-template-columns: minmax(0, 1fr); }
    .top__rail > .st:first-child { border-top: 0; padding-top: 0; }
    .top__rail > .st::before { display: none; }
    .top__rail > .st .st__pic { margin-bottom: 0; }
    .top__rail .st__h { font-size: 1.1875rem; }
    .top__rail .st__dek { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.9375rem; grid-column: 1 / -1; }
    .top__rail .headlines { display: block; border-top: 1px solid var(--ink); margin-top: 4px; }
    .top__rail .headlines > li { border-top: 1px solid var(--rule); padding-block: 12px; }
    .top__rail .headlines > li:first-child { border-top: 0; }

    .st--lead .st__pic { order: 0; margin-top: 18px; margin-bottom: 0; }
    .st--lead .st__text { max-width: 48rem; }
    .st__h--lead { text-wrap: pretty; }

    .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cards--4 > .st:nth-child(n + 3) { border-top: 0; padding-top: 4px; }
    .cards--4 > .st:nth-child(3)::before { display: block; }
    .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .blk { margin-top: 40px; }
    .blk__label { margin-bottom: 12px; }

    .feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
    .feat > .st--feat { display: block; padding-inline-end: var(--gut); padding-block: 4px 0; }
    .feat > .st--feat .st__pic { margin-bottom: 12px; }
    .feat__list { display: block; padding-inline-start: var(--gut); border-inline-start: 1px solid var(--rule); }
    .feat__list > .st { padding-block: 14px; }
    .feat__list > .st:first-child { border-top: 0; padding-top: 4px; }
    .feat__list > .st:nth-child(2) { border-top: 1px solid var(--rule); }
    .feat__list .st__h { font-size: 1.0625rem; }

    .lower--aside, .split--aside, .read--aside {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        align-items: start;
    }
    .lower--aside > :first-child, .split--aside > :first-child, .read--aside > :first-child { grid-column: 1 / 9; padding-inline-end: var(--gut); }
    .lower__aside, .split__aside, .read__aside {
        grid-column: 9 / 13;
        margin-top: 24px;
        padding-inline-start: var(--gut);
        border-inline-start: 1px solid var(--rule);
        position: sticky;
        top: 16px;
    }
    .lower--aside .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lower--aside .cards--4 > .st:nth-child(n + 3) { border-top: 1px solid var(--rule); padding-top: 16px; }
    .lower--aside .cards--4 > .st:nth-child(3)::before { display: none; }
    .split--aside > .split__main { padding-top: 0; }
    .split--aside > .split__main > .blk__label:first-child { margin-top: 24px; padding-top: 10px; border-top: 1px solid var(--ink); }
    .split__aside { margin-top: 24px; }
}

@media (min-width: 1024px) {
    .minis { margin-top: 40px; }
    .minis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lower--aside .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .lower--aside .minis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lower--aside .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lower--aside .cards--4 > .st:nth-child(n + 3) { border-top: 0; padding-top: 4px; }
    .lower--aside .cards--4 > .st:nth-child(3)::before { display: block; }
}

/* ---------- Section headers ---------- */

.sect { padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--ink); }
.sect__up { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.sect__up a { color: var(--navy); text-decoration: none; }
.sect__up a:hover { text-decoration: underline; }
.sect__h {
    font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.012em;
}
.sect__sub { display: block; margin-top: 4px; font-size: 0.6em; font-weight: 500; color: var(--ink-2); }
.sect__dek { margin-top: 8px; max-width: 42rem; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); }
.sect__page { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-2); }

.subs { margin-top: 12px; margin-bottom: -17px; }
.subs ul { display: flex; overflow-x: auto; scrollbar-width: none; }
.subs ul::-webkit-scrollbar { display: none; }
.subs__a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 12px;
    border-bottom: 3px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    color: var(--ink-2);
}
.subs li:first-child .subs__a { padding-inline-start: 0; }
.subs__a:hover { color: var(--navy); }
.subs__a.is-on { color: var(--navy); border-bottom-color: var(--navy); }

.sect--find .find { margin-top: 16px; max-width: 42rem; }

.sect--person { display: flex; gap: 20px; align-items: flex-start; }
.person__photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--wash); flex: none; }
.person__text { min-width: 0; }
.person__role { margin-top: 4px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.person__links { display: flex; flex-wrap: wrap; column-gap: 16px; margin-top: 4px; }
.person__links .textlink { display: inline-flex; align-items: center; min-height: 44px; }

.narrow { max-width: 52rem; }
.column { max-width: 52rem; margin-inline: auto; }
.column .narrow { max-width: none; }
.pager__at:first-child { text-align: start; }
.cap--lead { margin-top: 6px; text-align: end; }
.byline__by .meta__sect { margin-inline-end: 8px; font-size: 0.8125rem; }
.narrow > .blk__label { padding-top: 0; }
.tally { font-size: 0.875rem; color: var(--ink-2); margin-bottom: 8px; }

.empty { padding-block: 32px 16px; max-width: 40rem; }
.empty__h { font-family: var(--serif); font-size: 1.375rem; line-height: 1.3; font-weight: 600; margin-bottom: 8px; }
.empty > p:not(.empty__h) { font-size: 0.9375rem; color: var(--ink-2); }
.empty--front { margin-inline: auto; text-align: center; padding-block: 64px; }

/* ---------- Controls ---------- */

.find { display: flex; gap: 8px; }
.find__q {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #8a8a8a;
    border-radius: 2px;
    background: var(--paper);
    font-size: 1rem;
}
.find__q::placeholder { color: #6b6b6b; }
.find__q:focus-visible { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.find--big .find__q { min-height: 52px; font-family: var(--serif); font-size: 1.1875rem; }
.find__go, .pager__btn, .share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding-inline: 16px;
    border: 1px solid var(--ink);
    border-radius: 2px;
    background: var(--paper);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    cursor: pointer;
    transition: background-color 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
}
.find__go { background: var(--ink); color: #fff; flex: none; }
.find--big .find__go { min-height: 52px; }
.find__go:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.find__go span { display: none; }
.find--big .find__go span { display: inline; }
.find__go:active, .pager__btn:active, .share__btn:active { transform: translateY(1px); }

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--ink);
}
.pager__btn:hover { background: var(--ink); color: #fff; }
.pager__btn.is-off { border-color: var(--rule); color: #767676; cursor: default; }
.pager__btn.is-off:hover { background: var(--paper); color: #767676; }
.pager__btn.is-off:active { transform: none; }
.pager__at { font-size: 0.8125rem; color: var(--ink-2); text-align: center; }

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

.story { min-width: 0; }
.read:not(.read--aside) .story { max-width: 52rem; margin-inline: auto; }
.story__head { max-width: 46rem; }

.story__h {
    font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.012em;
}
.story__dek {
    margin-top: 12px;
    font-family: var(--serif);
    font-size: 1.1875rem;
    line-height: 1.45;
    color: #363636;
    text-wrap: pretty;
}
@media (min-width: 1024px) { .story__dek { font-size: 1.3125rem; } }

.byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 20px;
    padding-block: 12px;
    border-block: 1px solid var(--rule);
}
.story--page .byline { border-bottom: 0; font-size: 0.8125rem; color: var(--ink-2); display: block; }
.byline__by { font-size: 0.875rem; font-weight: 700; }
.byline__by a { text-decoration: underline; text-decoration-color: var(--rule); }
.byline__by a:hover { text-decoration-color: currentColor; }
.byline__when { display: flex; flex-wrap: wrap; column-gap: 12px; margin-top: 2px; font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.editions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; margin-top: 10px; font-size: 0.8125rem; color: var(--ink-2); }
.editions a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); }
.editions a:hover { color: var(--navy); text-decoration-color: currentColor; }

.note { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--ink); background: var(--wash); font-family: var(--serif); font-size: 1rem; line-height: 1.5; }
.note__h { font-family: var(--sans); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }

.story__fig { margin-top: 20px; }
.story__fig .ph { margin-inline: calc(var(--pad) * -1); }
@media (min-width: 640px) { .story__fig .ph { margin-inline: 0; } }
.cap, .body figcaption {
    margin-top: 8px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--ink-2);
}
.cap__credit { margin-inline-start: 6px; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; }

.body {
    max-width: 40rem;
    margin-top: 28px;
    font-family: var(--serif);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--ink);
    overflow-wrap: break-word;
}
@media (min-width: 640px) { .body { font-size: 1.1875rem; } }
.body > * + * { margin-top: 1.05em; }
.body p { text-wrap: pretty; }
.body h2 { margin-top: 1.8em; font-size: 1.375rem; line-height: 1.25; font-weight: 700; }
.body h3 { margin-top: 1.6em; font-size: 1.1875rem; line-height: 1.3; font-weight: 700; }
.body h2 + *, .body h3 + * { margin-top: 0.5em; }
.body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--navy); text-decoration-thickness: 1px; }
.body a:hover { color: var(--navy); text-decoration-thickness: 2px; }
.body ul, .body ol { padding-inline-start: 1.3em; }
.body ul { list-style: disc; }
.body ol { list-style: decimal; }
.body li + li { margin-top: 0.4em; }
.body li::marker { color: var(--ink-2); }
.body blockquote {
    margin: 1.6em 0;
    padding-block: 14px;
    border-block: 1px solid var(--rule);
    font-size: 1.3125rem;
    line-height: 1.45;
    font-style: italic;
}
.body blockquote p + p { margin-top: 0.6em; }
.body img { margin-inline: auto; }
.body figure { margin-block: 1.6em; }
.body strong { font-weight: 700; }
.body hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2em; }
.body table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.875rem; font-variant-numeric: tabular-nums; display: block; overflow-x: auto; }
.body th, .body td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: start; }
.body th { border-bottom-color: var(--ink); }

.story__foot { max-width: 40rem; margin-top: 32px; }
.source { font-size: 0.875rem; color: var(--ink-2); }
.source a { color: var(--ink); font-weight: 600; }
.tags { margin-top: 16px; }
.tags ul { display: flex; flex-wrap: wrap; gap: 8px; }
.tags__a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 14px;
    border: 1px solid var(--rule);
    border-radius: 2px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
}
.tags__a:hover { border-color: var(--navy); color: var(--navy); }

.share { margin-top: 24px; padding-top: 10px; border-top: 1px solid var(--ink); }
.share__label { margin-bottom: 12px; }
.share__list { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn svg { font-size: 1.125rem; }
.share__btn:hover { border-color: var(--navy); color: var(--navy); }
.share__btn.is-done { border-color: var(--navy); background: var(--navy); color: #fff; }
.share--compact { margin-top: 0; padding-top: 0; border-top: 0; }
.share--compact .share__list { gap: 6px; }
.share--compact .share__btn { width: 44px; padding: 0; border-color: var(--rule); border-radius: 50%; }
.share--compact .share__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.blk--related { margin-top: 48px; }

/* ---------- Pages and errors ---------- */

.story--page { max-width: 46rem; margin-inline: auto; }
.story--page .body { margin-top: 20px; }

.lost { max-width: 38rem; margin-inline: auto; padding-block: 32px 24px; text-align: center; }
.lost__h { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem); font-weight: 700; line-height: 1.15; }
.lost__p { margin-top: 12px; font-family: var(--serif); font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); }
.lost .find { margin-top: 24px; text-align: start; }
.lost .textlink { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; }

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

.foot { border-top: 1px solid var(--ink); padding-block: 28px 32px; font-size: 0.875rem; }
.foot__head { padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.foot__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; line-height: 1.1; text-decoration: none; color: var(--ink); }
.foot__name:hover { color: var(--ink); }
.foot__area { margin-top: 4px; font-family: var(--serif); font-style: italic; color: var(--ink-2); }
.foot__cols { display: grid; gap: 24px; padding-block: 20px; }
.foot__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.foot__links a, .foot__pages a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--ink); }
.foot__links a:hover, .foot__pages a:hover { color: var(--navy); text-decoration: underline; }
.foot__links--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.8125rem; }
.foot__pages { display: flex; flex-wrap: wrap; column-gap: 20px; }
.foot__pages a { color: var(--ink-2); }

@media (min-width: 640px) {
    .foot__cols { grid-template-columns: 2fr 1fr 1fr; }
    .foot__links--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Scripts that are not Latin ---------- */

:lang(zh) body, :lang(ja) body, :lang(ko) body { line-height: 1.65; }
:lang(zh) .st__h, :lang(zh) .story__h, :lang(zh) .sect__h, :lang(zh) .lost__h { line-height: 1.35; letter-spacing: 0; font-weight: 700; }
:lang(zh) .body, :lang(ja) .body { line-height: 1.85; }
:lang(zh) .label, :lang(zh) .sect__up, :lang(zh) .foot__label, :lang(zh) .note__h, :lang(zh) .cap__credit,
:lang(ta) .label, :lang(ta) .sect__up, :lang(ta) .foot__label, :lang(ta) .note__h, :lang(ta) .cap__credit {
    text-transform: none;
    letter-spacing: 0;
}
:lang(ta) body { line-height: 1.7; }
:lang(ta) .st__h, :lang(ta) .story__h, :lang(ta) .sect__h, :lang(ta) .lost__h { line-height: 1.4; letter-spacing: 0; }
:lang(ta) .st__h--lead, :lang(ta) .story__h { font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.125rem); }
:lang(ta) .body { line-height: 1.85; font-size: 1.0625rem; }
:lang(ta) .sections__a, :lang(ta) .subs__a { font-size: 0.8125rem; }

/* ---------- Motion preference ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; }
    .st__pic:hover .ph img, .st:has(.st__h a:hover) .ph img { transform: none; }
}

:lang(zh) .mast__area, :lang(zh) .foot__area, :lang(zh) .body blockquote,
:lang(ta) .mast__area, :lang(ta) .foot__area, :lang(ta) .body blockquote,
:lang(ja) .mast__area, :lang(ko) .mast__area { font-style: normal; }

/* The narrowest phones: a smaller side photo leaves the headline room. */
@media (max-width: 359px) {
    .st--rail, .st--card, .st--feat, .st--row { grid-template-columns: minmax(0, 1fr) 5.75rem; column-gap: 12px; }
    .st--bare { grid-template-columns: minmax(0, 1fr); }
    .tongues__a { padding-inline: 6px; }
}
