:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --soft: #f5f7fa;
    --soft-blue: #f2f7ff;
    --ink: #202124;
    --ink-strong: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --line-strong: #d1d5db;
    --primary: #2468f2;
    --primary-dark: #174fc2;
    --primary-soft: #eaf2ff;
    --accent: #ff6b57;
    --warm: #fff6e8;
    --shadow: 0 12px 35px rgba(34, 65, 117, .08);
    --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1240px, calc(100% - 40px));
    margin-inline: auto;
}

.article-container {
    width: min(780px, calc(100% - 40px));
    margin-inline: auto;
}

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

.skip-link {
    position: fixed;
    z-index: 999;
    top: 10px;
    left: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    background: var(--ink-strong);
    color: #fff;
    text-decoration: none;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

.site-header-inner {
    min-height: 72px;
    display: grid;
    grid-template-columns: auto minmax(240px, 460px) auto;
    align-items: center;
    gap: 28px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-strong);
    text-decoration: none;
    white-space: nowrap;
}

.site-brand-word {
    display: inline-block;
    color: #2468f2;
    background: linear-gradient(120deg, #1769f5 0%, #6157e8 58%, #d94686 115%);
    background-size: 150% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -.065em;
    transition: background-position .25s ease;
}

.site-brand:hover .site-brand-word {
    background-position: 100% center;
}

.header-search {
    height: 42px;
    display: flex;
    align-items: center;
    padding: 0 6px 0 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--soft);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.header-search:focus-within {
    border-color: #b7cef9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(52, 120, 246, .1);
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
}

.header-search input::placeholder {
    color: #9ca3af;
}

.header-search button {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.site-nav a {
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover {
    color: var(--primary);
}

.portal-hero {
    overflow: hidden;
    border-bottom: 1px solid #e8eef7;
    background:
        radial-gradient(circle at 16% 20%, rgba(111, 174, 255, .18), transparent 29%),
        radial-gradient(circle at 88% 74%, rgba(255, 203, 126, .18), transparent 26%),
        linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.portal-hero-inner {
    padding: 82px 0 74px;
    text-align: center;
}

.hero-badge,
.section-kicker {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 750;
}

.hero-badge {
    margin: 0 0 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(56, 96, 158, .08);
}

.portal-hero h1 {
    margin: 0;
    color: var(--ink-strong);
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.23;
    letter-spacing: -.055em;
}

.portal-hero h1 em {
    color: var(--primary);
    font-style: normal;
}

.hero-description {
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 17px;
}

.hero-search {
    width: min(680px, 100%);
    height: 60px;
    display: flex;
    align-items: center;
    margin: 34px auto 0;
    padding: 6px 7px 6px 22px;
    border: 1px solid #d7e2f3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(43, 83, 145, .11);
}

.hero-search:focus-within {
    border-color: #9bbbf5;
    box-shadow: 0 12px 34px rgba(52, 120, 246, .17);
}

.hero-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    font-size: 16px;
}

.hero-search input::placeholder {
    color: #9ca3af;
}

.hero-search button {
    height: 46px;
    flex: 0 0 auto;
    padding: 0 21px;
    border: 0;
    border-radius: 13px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 750;
}

.hero-search button:hover {
    background: var(--primary-dark);
}

.topic-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 13px;
}

.topic-links > span {
    margin-right: 2px;
    font-weight: 650;
}

.topic-links a {
    padding: 6px 11px;
    border: 1px solid #dce5f2;
    border-radius: 999px;
    background: rgba(255, 255, 255, .74);
    color: #4b5563;
    text-decoration: none;
}

.topic-links a:hover {
    border-color: #a9c3f2;
    color: var(--primary);
}

.featured-section,
.stories-section {
    padding: 76px 0 0;
}

.stories-section {
    padding-bottom: 90px;
}

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

.portal-section-heading h2 {
    margin: 7px 0 0;
    color: var(--ink-strong);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 780;
    letter-spacing: -.045em;
}

.portal-section-heading > a,
.portal-section-heading > span {
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.portal-section-heading > a:hover {
    color: var(--primary);
}

.featured-story {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.featured-story-link {
    min-height: 370px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    color: inherit;
    text-decoration: none;
}

.featured-story-copy {
    display: flex;
    flex-direction: column;
    padding: 50px;
}

.story-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.story-labels span {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.story-labels span + span {
    background: var(--soft);
    color: var(--muted);
}

.featured-story h3,
.story-card h3 {
    color: var(--ink-strong);
    font-weight: 780;
    letter-spacing: -.045em;
}

.featured-story h3 {
    max-width: 660px;
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.3;
}

.featured-story-copy > p {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.story-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 30px;
    color: #8a93a1;
    font-size: 12px;
}

.story-date span {
    color: var(--primary);
    font-size: 13px;
    font-weight: 750;
}

.featured-story-visual,
.story-card-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        radial-gradient(circle at 80% 18%, rgba(255, 255, 255, .52), transparent 24%),
        linear-gradient(145deg, #8ab6ff 0%, #4b83ea 52%, #2458bd 100%);
    color: #fff;
}

.featured-story-visual::before,
.story-card-visual::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -70px;
    right: -60px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
}

.featured-story-visual {
    padding: 42px;
}

.featured-story-visual small,
.story-card-visual small {
    position: absolute;
    top: 30px;
    left: 32px;
    color: rgba(255, 255, 255, .76);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .14em;
}

.featured-story-visual strong {
    font-size: clamp(50px, 7vw, 82px);
    line-height: 1;
    letter-spacing: -.07em;
}

.featured-story-visual span {
    margin-top: 12px;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.story-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.story-card:hover {
    border-color: #c6d7f4;
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.story-card > a {
    height: 100%;
    display: grid;
    grid-template-rows: 172px 1fr;
    color: inherit;
    text-decoration: none;
}

.story-card-visual {
    padding: 26px;
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 255, 255, .62), transparent 25%),
        linear-gradient(145deg, #ffd9a2 0%, #f2a65c 55%, #dc7e33 100%);
}

.story-card:nth-child(2n) .story-card-visual {
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 255, 255, .58), transparent 25%),
        linear-gradient(145deg, #a9e4da 0%, #55b9b0 55%, #288982 100%);
}

.story-card-visual strong {
    font-size: 40px;
    line-height: 1;
    letter-spacing: -.06em;
}

.story-card-copy {
    display: flex;
    flex-direction: column;
    padding: 26px;
}

.story-card h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.42;
}

.story-card-copy > p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.empty-state {
    padding: 70px 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--soft);
    text-align: center;
}

.empty-state h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 750;
    letter-spacing: -.035em;
}

.empty-state p {
    margin: 12px 0 22px;
    color: var(--muted);
}

.simple-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.portal-promise {
    padding: 80px 0;
    border-top: 1px solid #e8eef7;
    background: var(--soft-blue);
}

.portal-promise-inner {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 80px;
}

.portal-promise h2 {
    margin: 10px 0 0;
    color: var(--ink-strong);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 780;
    line-height: 1.35;
    letter-spacing: -.05em;
}

.portal-promise-inner > p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
}

.home-page {
    background: #f7f8fa;
}

.home-page .site-header-inner {
    grid-template-columns: auto 1fr auto;
}

.home-page .header-search {
    display: none;
}

.archive-home {
    padding: 52px 0 86px;
    background:
        radial-gradient(circle at 88% 6%, rgba(36, 104, 242, .07), transparent 25%),
        radial-gradient(circle at 10% 14%, rgba(255, 107, 87, .035), transparent 20%);
}

.archive-intro {
    padding-bottom: 34px;
}

.archive-intro > div > p {
    margin: 0 0 11px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.archive-intro h1 {
    margin: 0;
    color: var(--ink-strong);
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -.055em;
}

.archive-intro h1 em {
    color: var(--primary);
    font-style: normal;
}

.archive-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #dce2eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(45, 60, 85, .055);
}

.archive-query-field {
    min-width: 0;
    flex: 1 1 auto;
}

.archive-query-field input {
    width: 100%;
    height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
}

.archive-query-field input {
    padding: 0 10px;
}

.archive-query-field input::placeholder {
    color: #a0a7b2;
}

.archive-filter button {
    height: 44px;
    flex: 0 0 auto;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 750;
}

.archive-filter > a {
    flex: 0 0 auto;
    padding: 0 10px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.archive-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin: 52px 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-strong);
}

.archive-heading h2 {
    margin: 0;
    color: var(--ink-strong);
    font-size: 27px;
    font-weight: 780;
    letter-spacing: -.04em;
}

.archive-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.archive-heading > span {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

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

.archive-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.archive-card:hover {
    border-color: #c7d6ed;
    box-shadow: 0 10px 28px rgba(43, 61, 91, .08);
    transform: translateY(-2px);
}

.archive-card > a {
    min-height: 255px;
    display: flex;
    flex-direction: column;
    padding: 22px;
    color: inherit;
    text-decoration: none;
}

.archive-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.archive-card-meta > span {
    padding: 4px 8px;
    border-radius: 7px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 750;
}

.archive-card-meta time {
    color: #9aa1ac;
    font-size: 11px;
}

.archive-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--ink-strong);
    font-size: 20px;
    font-weight: 750;
    line-height: 1.48;
    letter-spacing: -.035em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.archive-card > a > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.archive-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 22px;
    color: #949ba6;
    font-size: 11px;
}

.archive-card-footer > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-card-footer strong {
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 12px;
}

.pagination {
    display: grid;
    grid-template-columns: 90px 1fr 90px;
    align-items: center;
    margin-top: 40px;
}

.pagination > div {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination a {
    min-width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    color: #687180;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.pagination a:hover {
    background: #e9edf3;
    color: var(--ink-strong);
}

.pagination a.is-current {
    background: var(--ink-strong);
    color: #fff;
}

.pagination-move:last-child {
    justify-self: end;
}

.preview-bar {
    position: sticky;
    z-index: 31;
    top: 72px;
    padding: 9px 20px;
    background: #fff2b8;
    color: #5c4700;
    text-align: center;
    font-size: 13px;
}

.preview-bar a {
    margin-left: 10px;
    font-weight: 750;
}

.reading-progress {
    position: fixed;
    z-index: 60;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--primary);
}

.article-hero {
    padding: 48px 0 44px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.story-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 34px;
    color: #8b94a2;
    font-size: 13px;
}

.story-breadcrumb a {
    text-decoration: none;
}

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

.article-category {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 750;
}

.article-hero h1 {
    margin: 0;
    color: var(--ink-strong);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -.055em;
}

.article-subtitle {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.article-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 24px;
    color: #8b94a2;
    font-size: 13px;
}

.article-meta-line span {
    display: inline-flex;
    align-items: center;
}

.article-meta-line span + span::before {
    content: "";
    width: 3px;
    height: 3px;
    margin: 0 10px;
    border-radius: 50%;
    background: #c4c9d0;
}

.article-shell {
    padding-top: 52px;
}

.article-content {
    min-width: 0;
}

.article-lead {
    margin: 0 0 36px;
    color: #343a45;
    font-size: 21px;
    font-weight: 550;
    line-height: 1.85;
    letter-spacing: -.025em;
}

.article-toc {
    margin: 0 0 64px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--soft);
}

.article-toc summary,
.sources-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    color: var(--ink-strong);
    font-size: 15px;
    font-weight: 750;
}

.article-toc summary::-webkit-details-marker,
.sources-details summary::-webkit-details-marker {
    display: none;
}

.article-toc summary::after,
.sources-details summary::after {
    content: "+";
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    margin-left: auto;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    font-size: 18px;
    line-height: 1;
}

.article-toc[open] summary::after,
.sources-details[open] summary::after {
    content: "−";
}

.article-toc summary small,
.sources-details summary small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.article-toc nav {
    display: grid;
    padding: 0 20px 18px;
}

.article-toc nav a {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}

.article-toc nav a span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.article-toc nav a strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

.article-section {
    scroll-margin-top: 92px;
    margin-bottom: 80px;
}

.section-label {
    margin-bottom: 16px;
}

.section-label p {
    display: inline-flex;
    margin: 0;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 750;
}

.introduction .section-label p {
    background: var(--soft);
    color: #58616f;
}

.section-body {
    min-width: 0;
}

.section-body h2 {
    margin: 0 0 18px;
    color: var(--ink-strong);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 780;
    line-height: 1.4;
    letter-spacing: -.045em;
}

.chapter-subheadline {
    margin: 0 0 24px;
    padding-left: 15px;
    border-left: 3px solid #bdd1f7;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 26px;
}

.brand-tags span {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #667085;
    font-size: 12px;
    font-weight: 650;
}

.article-paragraph {
    margin: 0 0 24px;
    color: #30343b;
    font-size: 18px;
    line-height: 1.95;
    letter-spacing: -.012em;
}

.source-refs {
    margin-left: 4px;
    vertical-align: super;
    color: #6d95df;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.source-refs a {
    color: inherit;
    text-decoration: none;
}

.source-refs a:hover {
    text-decoration: underline;
}

.media-heading {
    margin: 42px 0 14px;
    color: var(--ink-strong);
    font-size: 15px;
    font-weight: 750;
}

.video-block,
.ad-block {
    overflow: hidden;
    margin: 18px 0 34px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-block figcaption,
.ad-block figcaption {
    padding: 18px 20px 20px;
}

.video-block figcaption strong,
.video-block figcaption span,
.ad-block figcaption strong,
.ad-block figcaption > span {
    display: block;
}

.video-block figcaption strong,
.ad-block figcaption strong {
    color: var(--ink-strong);
    font-size: 15px;
}

.video-block figcaption span,
.ad-block figcaption > span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.video-block figcaption p,
.ad-block figcaption p {
    margin: 10px 0 0;
    color: #596170;
    font-size: 14px;
    line-height: 1.7;
}

.ad-block-label {
    display: flex;
    justify-content: space-between;
    padding: 11px 16px;
    background: var(--warm);
    color: #9b5a1b;
    font-size: 12px;
    font-weight: 700;
}

.ad-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ad-image {
    display: block;
}

.ad-image img {
    width: 100%;
    height: auto;
    display: block;
}

.closing-section {
    padding: 34px;
    border-radius: 18px;
    background: var(--soft-blue);
}

.closing-section blockquote {
    margin: 28px 0 0;
    padding: 22px 24px;
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    background: #fff;
    color: #2d4773;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.7;
}

.sources-section {
    scroll-margin-top: 90px;
    margin: 88px 0 72px;
}

.sources-details {
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.sources-details summary {
    padding: 20px 0;
}

.sources-details summary::after {
    background: var(--soft);
}

.source-list {
    margin: 0;
    padding: 0 0 16px;
    list-style: none;
}

.source-list li {
    position: relative;
    padding: 17px 108px 17px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.source-list strong,
.source-publisher,
.source-date {
    display: block;
}

.source-list strong {
    margin: 3px 0;
    color: #3a404a;
    font-size: 13px;
}

.source-list a {
    position: absolute;
    top: 18px;
    right: 0;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.article-end {
    padding: 52px 0 70px;
    border-top: 1px solid var(--line);
    background: var(--soft);
}

.article-end p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.article-end a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink-strong);
    font-size: 18px;
    font-weight: 750;
    text-decoration: none;
}

.article-end a span:last-child {
    color: var(--primary);
}

.not-found {
    min-height: 65vh;
    display: grid;
    align-items: center;
    text-align: center;
}

.not-found .eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 750;
}

.not-found h1 {
    margin: 0 0 26px;
    color: var(--ink-strong);
    font-size: clamp(36px, 6vw, 58px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.05em;
}

.not-found .text-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.site-footer {
    padding: 46px 0;
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: flex-end;
    gap: 52px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-strong);
    text-decoration: none;
}

.footer-brand strong {
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -.06em;
}

.footer-brand span {
    color: var(--primary);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .14em;
}

.footer-inner p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.footer-meta {
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .archive-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .site-header-inner {
        grid-template-columns: auto 1fr;
    }

    .header-search {
        order: 3;
        grid-column: 1 / -1;
        margin-bottom: 12px;
    }

    .site-nav {
        gap: 16px;
    }

    .featured-story-link,
    .portal-promise-inner {
        grid-template-columns: 1fr;
    }

    .featured-story-visual {
        min-height: 260px;
    }

    .portal-promise-inner {
        gap: 28px;
    }

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

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

@media (max-width: 640px) {
    body {
        word-break: normal;
    }

    .container,
    .article-container {
        width: min(100% - 28px, 1240px);
    }

    .site-header-inner {
        min-height: 62px;
        gap: 12px;
    }

    .site-brand {
        gap: 7px;
    }

    .site-brand-word {
        font-size: 20px;
    }

    .site-nav a:first-child {
        display: none;
    }

    .site-nav a {
        font-size: 13px;
    }

    .header-search {
        height: 40px;
    }

    .portal-hero-inner {
        padding: 58px 0 54px;
    }

    .portal-hero h1 {
        font-size: 37px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.7;
    }

    .hero-search {
        height: 54px;
        margin-top: 28px;
        padding-left: 16px;
    }

    .hero-search button {
        height: 42px;
        padding: 0 16px;
    }

    .featured-section,
    .stories-section {
        padding-top: 54px;
    }

    .stories-section {
        padding-bottom: 64px;
    }

    .portal-section-heading {
        align-items: start;
    }

    .portal-section-heading > a {
        display: none;
    }

    .featured-story-link {
        min-height: 0;
    }

    .featured-story-copy {
        padding: 28px 24px;
    }

    .featured-story h3 {
        font-size: 30px;
    }

    .featured-story-visual {
        min-height: 210px;
        padding: 28px;
    }

    .featured-story-visual small,
    .story-card-visual small {
        top: 22px;
        left: 24px;
    }

    .featured-story-visual strong {
        font-size: 58px;
    }

    .portal-promise {
        padding: 58px 0;
    }

    .portal-promise-inner > p {
        font-size: 15px;
    }

    .article-hero {
        padding: 32px 0 34px;
    }

    .story-breadcrumb {
        margin-bottom: 25px;
    }

    .article-hero h1 {
        font-size: 36px;
    }

    .article-subtitle {
        font-size: 16px;
    }

    .article-shell {
        padding-top: 38px;
    }

    .article-lead {
        font-size: 19px;
    }

    .article-toc {
        margin-bottom: 52px;
    }

    .article-toc nav a {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .article-section {
        margin-bottom: 64px;
    }

    .section-body h2 {
        font-size: 28px;
    }

    .article-paragraph {
        font-size: 17px;
        line-height: 1.9;
    }

    .closing-section {
        padding: 24px 20px;
    }

    .closing-section blockquote {
        padding: 18px;
        font-size: 18px;
    }

    .source-list li {
        padding-right: 0;
        padding-bottom: 48px;
    }

    .source-list a {
        top: auto;
        right: auto;
        bottom: 17px;
        left: 0;
    }

    .footer-inner {
        align-items: start;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-meta {
        grid-column: auto;
        text-align: left;
    }

    .archive-home {
        padding: 38px 0 62px;
    }

    .archive-intro {
        padding-bottom: 26px;
    }

    .archive-intro h1 {
        font-size: 34px;
    }

    .archive-filter {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .archive-query-field {
        flex-basis: 100%;
    }

    .archive-filter button {
        min-width: 76px;
    }

    .archive-filter > a {
        display: grid;
        place-items: center;
    }

    .archive-heading {
        align-items: start;
        margin-top: 38px;
    }

    .archive-heading h2 {
        font-size: 24px;
    }

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

    .archive-card > a {
        min-height: 220px;
        padding: 20px;
    }

    .pagination {
        grid-template-columns: 56px 1fr 56px;
    }

    .pagination a {
        min-width: 32px;
        height: 34px;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
