:root {
    color-scheme: light;
    --bg: #edf3fb;
    --bg-2: #e5eef9;
    --ink: #131b2f;
    --muted: #667085;
    --subtle: #8a96aa;
    --line: rgba(46, 64, 101, 0.18);
    --line-strong: rgba(46, 64, 101, 0.36);
    --panel: rgba(255, 255, 255, 0.88);
    --panel-solid: #ffffff;
    --glass: rgba(255, 255, 255, 0.84);
    --glass-strong: rgba(255, 255, 255, 0.94);
    --glass-edge: rgba(255, 255, 255, 0.94);
    --glass-shine: rgba(255, 255, 255, 0.56);
    --accent: #263a8f;
    --accent-dark: #1f2f78;
    --accent-soft: rgba(38, 58, 143, 0.10);
    --teal: #08756a;
    --teal-soft: rgba(8, 117, 106, 0.12);
    --gold: #caa75b;
    --gold-soft: rgba(202, 167, 91, 0.14);
    --coral: #d95d48;
    --navy: #111827;
    --soft: rgba(233, 241, 252, 0.88);
    --shadow: rgba(37, 57, 84, 0.16);
    --shadow-strong: rgba(37, 57, 84, 0.24);
    --source-title: #30394d;
    --source-url: #5c6980;
    --radius: 24px;
    --radius-sm: 16px;
    --blur: blur(26px) saturate(1.32);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0a1020;
    --bg-2: #101828;
    --ink: #f3f7ff;
    --muted: #a8b4c9;
    --subtle: #7d8aa3;
    --line: rgba(170, 188, 220, 0.24);
    --line-strong: rgba(190, 205, 235, 0.38);
    --panel: rgba(17, 25, 42, 0.82);
    --panel-solid: #111a2c;
    --glass: rgba(18, 29, 50, 0.72);
    --glass-strong: rgba(18, 29, 50, 0.92);
    --glass-edge: rgba(222, 232, 255, 0.34);
    --glass-shine: rgba(210, 232, 255, 0.16);
    --accent: #93a8ff;
    --accent-dark: #c3d1ff;
    --accent-soft: rgba(147, 168, 255, 0.16);
    --teal: #5eead4;
    --teal-soft: rgba(94, 234, 212, 0.13);
    --gold: #f3c464;
    --gold-soft: rgba(243, 196, 100, 0.15);
    --coral: #ff9a86;
    --navy: #f8fbff;
    --soft: rgba(34, 47, 76, 0.74);
    --shadow: rgba(0, 0, 0, 0.35);
    --shadow-strong: rgba(0, 0, 0, 0.48);
    --source-title: #e5ebf7;
    --source-url: #aebbd2;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 10% 2%, rgba(90, 132, 210, 0.22), transparent 26rem),
        radial-gradient(circle at 86% 5%, rgba(111, 165, 224, 0.18), transparent 31rem),
        linear-gradient(135deg, #eef3fb 0%, var(--bg-2) 46%, #eaf2fc 100%);
    color: var(--ink);
    font-family: Inter, Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    line-height: 1.58;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] body {
    background:
        radial-gradient(circle at 14% 4%, rgba(86, 118, 196, 0.16), transparent 28rem),
        radial-gradient(circle at 88% 6%, rgba(76, 139, 205, 0.16), transparent 30rem),
        linear-gradient(135deg, #101828 0%, #0b1426 48%, #070b16 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.wrap {
    margin: 0 auto;
    max-width: 1320px;
    padding: 0 24px;
}

.site-header {
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    position: sticky;
    top: 16px;
    z-index: 50;
}

:root[data-theme="dark"] .site-header {
    background: transparent;
}

@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
    .site-header,
    .card,
    .story-card,
    .list-item,
    .side-block,
    .article,
    .article-toc,
    .share-panel,
    .category-filters a,
    .site-search,
    .theme-toggle,
    .menu-button {
        -webkit-backdrop-filter: var(--blur);
        backdrop-filter: var(--blur);
    }
}

.nav {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
        var(--glass);
    border: 1px solid var(--glass-edge);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 var(--glass-shine),
        inset 0 -14px 30px rgba(46, 64, 101, 0.05),
        0 16px 58px var(--shadow);
    display: grid;
    gap: 18px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-top: 18px;
    min-height: 74px;
    padding: 10px 16px;
    position: relative;
}

.site-header .nav {
    max-width: 1272px;
    width: calc(100% - 48px);
}

:root[data-theme="dark"] .nav {
    background:
        linear-gradient(135deg, rgba(35, 52, 86, 0.92), rgba(15, 24, 44, 0.62)),
        var(--glass);
    border-color: var(--line);
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    display: block;
    height: 54px;
    width: 54px;
}

.brand-text {
    color: var(--ink);
    font-size: clamp(24px, 2.35vw, 32px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.menu-toggle,
.menu-button {
    display: none;
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    min-width: 0;
}

.nav-item {
    position: relative;
}

.nav-item::after {
    content: "";
    display: none;
    height: 10px;
    left: 0;
    position: absolute;
    right: 0;
    top: 100%;
}

.nav-links a,
.nav-item > a {
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    padding: 11px 12px;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-item:hover > a {
    background: var(--glass-strong);
    color: var(--accent-dark);
    transform: translateY(-1px);
}

.submenu {
    background: var(--glass-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 46px var(--shadow);
    display: none;
    left: 0;
    min-width: 168px;
    padding: 8px;
    position: absolute;
    top: calc(100% + 6px);
    z-index: 60;
}

.nav-item:hover::after,
.nav-item:focus-within::after {
    display: block;
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
    display: grid;
    gap: 2px;
}

.submenu a {
    border-radius: 8px;
    justify-content: flex-start;
    width: 100%;
}

.header-tools {
    align-items: center;
    display: flex;
    gap: 8px;
}

.site-search {
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: 999px;
    display: flex;
    gap: 5px;
    min-width: 208px;
    overflow: hidden;
    padding: 5px;
}

.site-search input {
    background: transparent;
    border: 0;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    min-width: 0;
    outline: 0;
    padding: 7px 4px 7px 10px;
    width: 124px;
}

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

.site-search button,
.search-page-form button,
.subscribe-form button {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: 0;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.site-search button {
    border-radius: 999px;
    font-size: 12px;
    min-width: 64px;
    padding: 8px 12px;
}

.theme-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    padding: 0;
    width: 40px;
}

.theme-toggle:hover,
.site-search button:hover,
.subscribe-form button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.theme-icon {
    display: none;
    height: 18px;
    width: 18px;
}

.theme-icon svg {
    fill: none;
    height: 100%;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 100%;
}

:root[data-theme="light"] .theme-icon-moon,
:root[data-theme="dark"] .theme-icon-sun {
    display: block;
}

.home-intro {
    align-items: stretch;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 280px;
    padding: 28px 0 18px;
}

.home-intro-copy,
.home-today {
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.96), transparent 35%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
        var(--glass);
    border: 1px solid var(--glass-edge);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 1px 0 0 rgba(255, 255, 255, 0.54),
        inset 0 -18px 36px rgba(46, 64, 101, 0.055),
        0 20px 54px rgba(37, 57, 84, 0.14);
    overflow: hidden;
    position: relative;
}

.home-intro-copy::before,
.home-today::before {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.76), transparent 32%),
        linear-gradient(300deg, transparent 66%, rgba(255, 255, 255, 0.32));
    border-radius: inherit;
    content: "";
    inset: 0;
    opacity: 0.78;
    pointer-events: none;
    position: absolute;
}

.home-intro-copy > *,
.home-today > * {
    position: relative;
    z-index: 1;
}

:root[data-theme="dark"] .home-intro-copy,
:root[data-theme="dark"] .home-today {
    background:
        radial-gradient(circle at 8% 0%, rgba(120, 145, 190, 0.18), transparent 35%),
        linear-gradient(135deg, rgba(30, 45, 76, 0.86), rgba(12, 21, 39, 0.62)),
        var(--glass);
    border-color: var(--line);
}

.home-intro-copy {
    border-radius: var(--radius);
    min-height: 132px;
    padding: 20px 24px 22px;
}

.home-intro-copy .kicker {
    color: var(--teal);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.home-intro-copy h1 {
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.14;
    margin: 8px 0 0;
    max-width: 850px;
    text-wrap: balance;
}

.home-intro-copy p {
    color: #596579;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.48;
    margin: 8px 0 0;
    max-width: 840px;
}

:root[data-theme="dark"] .home-intro-copy p {
    color: var(--muted);
}

.home-today {
    align-content: center;
    display: grid;
    height: 100%;
    min-height: 132px;
}

.top-stories {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.08fr .92fr .92fr;
    grid-template-rows: repeat(2, minmax(178px, 210px));
    padding: 0;
}

.story-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.64)),
        var(--glass);
    border: 1px solid var(--glass-edge);
    border-radius: 28px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 18px 48px rgba(37, 57, 84, 0.15);
    overflow: hidden;
    position: relative;
}

.story-card::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 42%);
    border-radius: inherit;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

:root[data-theme="dark"] .story-card {
    background:
        linear-gradient(135deg, rgba(37, 56, 90, 0.58), rgba(12, 20, 38, 0.34)),
        var(--glass);
    border-color: var(--line);
}

.story-main {
    grid-row: span 2;
}

.story-card a,
.story-image {
    display: block;
    height: 100%;
    width: 100%;
}

.story-image {
    aspect-ratio: 16 / 10;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 500ms ease;
}

.story-main .story-image {
    aspect-ratio: 4 / 5;
}

.story-card:hover .story-image {
    transform: scale(1.035);
}

.placeholder {
    background:
        linear-gradient(135deg, rgba(50, 85, 217, 0.22), rgba(13, 148, 136, 0.12)),
        var(--soft);
}

.story-overlay {
    background:
        linear-gradient(180deg, rgba(9, 15, 28, 0), rgba(9, 15, 28, 0.88)),
        linear-gradient(45deg, rgba(38, 58, 143, 0.28), transparent 52%);
    bottom: 0;
    color: #fff;
    display: grid;
    gap: 7px;
    left: 0;
    padding: 70px 18px 18px;
    position: absolute;
    right: 0;
    z-index: 3;
}

.story-overlay .kicker {
    color: #bdf5eb;
}

.story-overlay strong {
    font-size: clamp(16px, 1.7vw, 21px);
    line-height: 1.18;
    text-wrap: balance;
}

.story-main .story-overlay {
    padding: 96px 24px 24px;
}

.story-main .story-overlay strong {
    font-size: clamp(26px, 3.2vw, 40px);
}

.section-title {
    align-items: end;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin: 18px 0 20px;
    padding-bottom: 12px;
}

.section-title h2 {
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0;
}

.content-layout,
.page-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 280px;
}

.content-layout {
    margin-top: 0;
}

.home-main-column {
    min-width: 0;
}

.page-layout {
    margin: 30px 0 48px;
}

.card,
.list-item,
.side-block,
.article {
    background: var(--panel);
    border: 1px solid var(--glass-edge);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        inset 0 -12px 28px rgba(46, 64, 101, 0.035),
        0 16px 46px rgba(37, 57, 84, 0.12);
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .list-item,
:root[data-theme="dark"] .side-block,
:root[data-theme="dark"] .article {
    background:
        linear-gradient(135deg, rgba(31, 45, 74, 0.72), rgba(13, 22, 40, 0.78)),
        var(--panel);
    border-color: var(--line);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.card,
.list-item,
.side-block,
.article-toc,
.video-embed,
.share-panel {
    border-radius: var(--radius);
}

.article-list {
    display: grid;
    gap: 16px;
}

.list-item {
    display: grid;
    gap: 22px;
    grid-template-columns: 252px minmax(0, 1fr);
    overflow: hidden;
    padding: 18px;
    border-radius: 28px;
    position: relative;
    transition: border-color 160ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.list-item:hover {
    border-color: var(--line-strong);
    box-shadow: 0 18px 44px var(--shadow);
    transform: translateY(-2px);
}

.list-item:hover h3 a,
.rank-list a:hover {
    color: var(--accent);
}

.list-thumb,
.side-thumb,
.thumb {
    background: var(--soft);
    overflow: hidden;
    position: relative;
}

.list-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    display: block;
    width: 100%;
}

.list-thumb img,
.list-thumb .placeholder,
.side-thumb img,
.side-thumb .placeholder {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.image-link {
    overflow: hidden;
    position: relative;
}

.image-link img {
    transition: transform 380ms ease;
}

.image-link:hover img {
    transform: scale(1.035);
}

.read-more-overlay {
    align-items: center;
    background: rgba(9, 15, 28, 0.54);
    color: #fff;
    display: flex;
    font-size: 13px;
    font-weight: 900;
    inset: 0;
    justify-content: center;
    opacity: 0;
    position: absolute;
    transition: opacity 160ms ease;
}

.image-link:hover .read-more-overlay {
    opacity: 1;
}

.list-item h3 {
    font-size: clamp(24px, 2.35vw, 32px);
    line-height: 1.2;
    margin: 8px 0 10px;
    text-wrap: balance;
}

.list-item p {
    color: var(--muted);
    font-size: 17px;
    margin: 0 0 12px;
}

.read-more {
    color: var(--accent);
    display: inline-block;
    font-size: 14px;
    font-weight: 900;
    margin: 2px 0 8px;
}

.article-list-compact .list-item {
    grid-template-columns: 260px minmax(0, 1fr);
}

.article-list-compact .list-item h3 {
    font-size: clamp(22px, 2vw, 28px);
}

.sidebar {
    align-content: start;
    display: grid;
    gap: 16px;
    min-width: 0;
}

.side-block {
    border-radius: 28px;
    padding: 21px;
    position: relative;
}

.side-block::before,
.list-item::before,
.article::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), transparent 28%);
    border-radius: inherit;
    content: "";
    inset: 0;
    opacity: 0.72;
    pointer-events: none;
    position: absolute;
}

.side-block > *,
.list-item > *,
.article > * {
    position: relative;
    z-index: 1;
}

.side-block:first-child {
    border-top: 0;
}

.side-block h2 {
    font-size: 20px;
    margin: 0 0 13px;
}

.side-posts {
    display: grid;
    gap: 16px;
}

.side-post {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.side-post:first-child {
    border-top: 0;
    padding-top: 0;
}

.side-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    display: block;
    margin-bottom: 10px;
}

.side-post h3 {
    font-size: 16px;
    line-height: 1.32;
    margin: 0;
}

.today {
    color: var(--accent-dark);
    font-size: 20px;
    font-weight: 900;
    margin: 0;
}

.ad-slot {
    align-items: center;
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(46, 64, 101, 0.22);
    border-style: dashed;
    color: var(--muted);
    display: grid;
    font-size: 13px;
    font-weight: 850;
    justify-items: center;
    min-height: 188px;
    text-align: center;
}

:root[data-theme="dark"] .ad-slot {
    background: rgba(18, 29, 50, 0.42);
}

.rank-list {
    counter-reset: rank;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rank-list li {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 5px;
    grid-template-columns: 28px 1fr;
    padding: 11px 0;
}

.rank-list li:first-child {
    border-top: 0;
}

.rank-list li::before {
    color: var(--gold);
    content: counter(rank);
    counter-increment: rank;
    font-weight: 900;
}

.subscribe-muted p {
    color: var(--muted);
    margin: 0;
}

.subscribe-form {
    display: grid;
    gap: 11px;
}

.subscribe-form label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.subscribe-form span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.subscribe-form input,
.subscribe-form select {
    background: var(--glass-strong);
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink);
    font: inherit;
    min-width: 0;
    padding: 10px 11px;
    width: 100%;
}

.subscribe-form select {
    min-width: 68px;
    width: auto;
}

.subscribe-form button {
    border-radius: 9px;
    padding: 11px 12px;
}

.subscribe-message {
    border-radius: 9px;
    font-size: 13px;
    padding: 8px 10px;
}

.subscribe-message.is-success {
    background: var(--teal-soft);
    color: var(--teal);
}

.subscribe-message.is-error {
    background: rgba(217, 93, 72, 0.13);
    color: var(--coral);
}

.article-subscribe {
    margin: 34px 0;
}

.category-head {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: var(--radius);
    box-shadow: 0 10px 34px rgba(37, 57, 84, 0.06);
    margin: 30px 0 22px;
    padding: 24px;
}

:root[data-theme="dark"] .category-head {
    border-color: var(--line);
}

.category-head h1 {
    font-size: clamp(36px, 5.4vw, 62px);
    line-height: 1.05;
    margin: 0 0 12px;
    text-wrap: balance;
}

.category-head p {
    color: var(--muted);
    font-size: 18px;
    margin: 0;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.category-filters a {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
    padding: 9px 15px;
}

.category-filters a:hover,
.category-filters a.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.search-page-form {
    display: flex;
    gap: 10px;
    margin: 18px 0 10px;
    max-width: 620px;
}

.search-page-form input {
    background: var(--glass-strong);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    flex: 1;
    font: inherit;
    min-height: 48px;
    padding: 10px 13px;
}

.search-page-form button {
    border-radius: 12px;
    min-width: 96px;
    padding: 10px 16px;
}

.empty-search {
    color: var(--muted);
    font-weight: 800;
    padding: 20px;
}

.thumb {
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.card-body {
    padding: 18px;
}

.kicker {
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.article-breadcrumb {
    align-items: center;
    color: var(--accent-dark);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 900;
    gap: 4px 7px;
}

.article-breadcrumb a {
    color: inherit;
}

.card h3 {
    font-size: 20px;
    line-height: 1.18;
    margin: 8px 0 10px;
}

.card p,
.meta {
    color: var(--muted);
    font-size: 14px;
}

.article {
    border-radius: var(--radius);
    margin: 0;
    min-width: 0;
    overflow-wrap: break-word;
    padding: clamp(24px, 4vw, 44px);
    position: relative;
}

.article a,
.site-footer a {
    color: var(--accent);
    font-weight: 800;
}

.article h1 {
    font-size: clamp(34px, 4.2vw, 58px);
    letter-spacing: 0;
    line-height: 1.08;
    margin: 9px 0 18px;
    text-wrap: pretty;
    word-break: normal;
}

@supports not (word-break: auto-phrase) {
    .article h1 {
        word-break: normal;
    }
}

.article-meta-line {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: flex-start;
    min-width: 0;
    white-space: normal;
}

.article-meta-dates {
    display: inline-flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 8px 16px;
    min-width: 0;
}

.article-meta-editor {
    flex: 0 0 auto;
    margin-left: 0;
    text-align: left;
}

.meta-neighbors {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    margin: -4px 0 18px;
    min-width: 0;
    width: 100%;
}

.article .meta-neighbors a {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    flex: 0 1 auto;
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
}

.article .meta-neighbor-next {
    justify-content: flex-start;
    margin-left: 0;
    text-align: left;
}

.article .meta-neighbors a span {
    flex: 0 0 auto;
}

.article .meta-neighbors a strong {
    display: block;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article .meta-neighbors a:hover {
    color: var(--accent);
}

.article-neighbors {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 22px 0;
    padding: 12px 0;
}

.article .article-neighbor {
    color: var(--muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 500;
    gap: 6px;
    min-width: 0;
}

.article-neighbor strong {
    color: var(--ink);
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-neighbor:hover strong {
    color: var(--accent);
}

.article-neighbor-next {
    justify-content: flex-end;
    text-align: right;
}

.article-neighbors .article-neighbor:only-child {
    grid-column: 1 / -1;
}

.article-body {
    font-size: 18px;
}

.article-body h2,
.article-body h3 {
    scroll-margin-top: 110px;
    text-wrap: balance;
}

.article-body h2 {
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.18;
    margin-top: 36px;
}

.article-body h3 {
    font-size: clamp(22px, 2.4vw, 27px);
    line-height: 1.22;
    margin-top: 30px;
}

.article-body img {
    border-radius: 22px;
    height: auto;
    max-width: 100%;
}

.article-body blockquote {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    border-radius: 0 16px 16px 0;
    color: var(--muted);
    margin-left: 0;
    padding: 12px 16px;
}

.article-body pre {
    background: #101828;
    border-radius: 12px;
    color: #fff;
    overflow-x: auto;
    padding: 16px;
}

.article-body,
.article-disclosure,
.article-sources,
.share-panel {
    max-width: 100%;
}

.article-toc {
    background: var(--accent-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 26px 0 32px;
    padding: 20px 22px;
}

.article-toc-label {
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
    margin: 0 0 12px;
}

.article-toc-columns {
    align-items: start;
    display: grid;
    gap: 12px 38px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-toc-column {
    align-content: start;
    counter-reset: article-toc;
    display: grid;
    gap: 9px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-toc li {
    counter-increment: article-toc;
    margin: 0;
}

.article-toc a {
    align-items: baseline;
    color: var(--ink);
    display: grid;
    font-size: 14px;
    font-weight: 700;
    gap: 9px;
    grid-template-columns: auto minmax(0, 1fr);
    line-height: 1.45;
}

.article-toc a::before {
    color: var(--muted);
    content: counter(article-toc, decimal-leading-zero);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.article-toc a:hover {
    color: var(--accent);
}

.article-toc-level-3 {
    margin-left: 20px;
}

.video-embed {
    aspect-ratio: 16 / 9;
    background: var(--ink);
    margin: 22px 0;
    overflow: hidden;
}

.video-embed iframe {
    border: 0;
    height: 100%;
    width: 100%;
}

.article-disclosure {
    border-bottom: 1px solid var(--line);
    margin-top: 42px;
    padding-bottom: 14px;
}

.article-disclosure p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.article-sources {
    margin-top: 0;
    padding-top: 10px;
}

.article-sources h2 {
    font-size: 16px;
    margin: 0 0 10px;
}

.article-sources ul,
.source-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-sources li {
    color: var(--muted);
    margin: 7px 0;
    overflow-wrap: anywhere;
}

.article-sources a {
    display: inline;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.article-sources a span {
    color: var(--source-title);
}

.article-sources a:hover span {
    color: var(--accent);
}

.article-sources small {
    color: var(--source-url);
    font-size: 12px;
    font-weight: 400;
}

.source-more {
    margin-top: 8px;
}

.source-more summary {
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

.source-more .source-list {
    margin-top: 8px;
}

.share-panel {
    align-items: center;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    padding: 16px;
}

.share-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: relative;
    width: 34px;
}

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

.share-button img {
    display: block;
    height: 34px;
    width: 34px;
}

.share-button::after {
    background: rgba(17, 24, 39, 0.18);
    border-radius: 50%;
    content: "";
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 140ms ease;
}

.share-button:hover::after {
    opacity: 1;
}

.share-status {
    font-size: 14px;
    margin: 0 !important;
    width: 100%;
}

.site-footer {
    color: var(--muted);
    padding: 46px 0;
    text-align: center;
}

.site-footer p {
    border-top: 1px solid var(--line);
    margin: 0;
    padding-top: 26px;
}

.site-footer span {
    display: inline-block;
    margin: 0 8px;
}

@media (max-width: 1060px) {
    .nav {
        grid-template-columns: auto auto;
    }

    .nav-links {
        grid-column: 1 / -1;
        justify-content: flex-start;
        order: 3;
    }

    .header-tools {
        justify-content: flex-end;
    }
}

@media (max-width: 760px) {
    .wrap {
        padding: 0 16px;
        width: 100%;
    }

    .site-header {
        top: 8px;
    }

    .nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        min-height: 0;
        margin-top: 10px;
        padding: 10px 12px;
        width: calc(100% - 32px);
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-logo {
        height: 42px;
        width: 42px;
    }

    .brand-text {
        font-size: 23px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .menu-button {
        align-items: center;
        background: var(--glass);
        border: 1px solid var(--line);
        border-radius: 12px;
        cursor: pointer;
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        gap: 4px;
        height: 42px;
        justify-content: center;
        margin-left: auto;
        order: 2;
        padding: 0;
        width: 46px;
    }

    .menu-button span {
        background: var(--ink);
        border-radius: 999px;
        display: block;
        height: 2px;
        width: 21px;
    }

    .nav-links {
        background: var(--glass-strong);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: 0 18px 40px var(--shadow);
        display: none;
        gap: 0;
        left: 0;
        order: 4;
        padding: 8px 20px 18px;
        position: absolute;
        right: 0;
        top: calc(100% + 8px);
    }

    .menu-toggle:checked ~ .nav-links {
        display: grid;
    }

    .header-tools {
        order: 3;
        width: 100%;
    }

    .site-search {
        flex: 1;
        min-width: 0;
    }

    .site-search input {
        width: 100%;
    }

    .theme-toggle {
        flex: 0 0 40px;
    }

    .nav-item > a,
    .nav-links > a {
        display: block;
        justify-content: flex-start;
        padding: 12px 0;
    }

    .submenu {
        background: transparent;
        border: 0;
        box-shadow: none;
        display: grid;
        margin-left: 8px;
        min-width: 0;
        padding: 0 0 8px 14px;
        position: static;
    }

    .submenu a {
        color: var(--muted);
        display: block;
        font-size: 14px;
        padding: 7px 0;
    }

    .home-intro,
    .top-stories,
    .content-layout,
    .page-layout,
    .list-item,
    .article-list-compact .list-item {
        grid-template-columns: 1fr;
    }

    .content-layout,
    .page-layout {
        gap: 22px;
    }

    .top-stories {
        grid-template-rows: none;
        padding-top: 18px;
    }

    .home-intro {
        padding-top: 18px;
    }

    .story-card {
        min-height: 230px;
    }

    .story-main {
        grid-row: auto;
    }

    .list-item {
        gap: 16px;
        padding: 16px;
    }

    .list-item h3 {
        font-size: 24px;
    }

    .list-item p {
        font-size: 16px;
    }

    .section-title {
        margin-top: 26px;
    }

    .category-head h1 {
        font-size: clamp(38px, 16vw, 56px);
    }

    .article {
        border-radius: 22px;
        margin-left: -16px;
        margin-right: -16px;
        padding: 24px 16px;
    }

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

    .article .meta {
        flex-wrap: wrap;
        white-space: normal;
    }

    .meta-neighbors {
        flex-basis: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .article .meta-neighbors a {
        flex-basis: auto;
        max-width: 100%;
    }

    .article-toc {
        margin: 18px 0 24px;
        padding: 16px;
    }

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

    .article-toc a {
        font-size: 13px;
    }

    .search-page-form {
        flex-direction: column;
    }

    .share-panel {
        align-items: flex-start;
    }

    .share-actions {
        max-width: 100%;
    }
}

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