/* China Export News — visual language derived from www.export.cn
   green #7dbd07 · white cards · 1200px grid · 6px radius */

:root {
    --green: #7dbd07;
    --green-d: #639503;
    --green-dd: #4b7400;
    --green-pale: #f1f8e1;
    --green-line: #dbe9bd;
    --ink: #171c14;
    --ink-2: #2f3a28;
    --muted: #66705f;
    --muted-2: #8a9383;
    --line: #e5e9df;
    --line-strong: #d5dbcc;
    --bg: #f7f8f4;
    --card: #ffffff;
    --dark: #1d2516;
    --orange: #ef5b13;
    --wrap: 1200px;
    --radius: 6px;
    --shadow: 0 8px 24px rgba(24, 39, 9, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */

.topbar { background: var(--dark); color: #e8eedd; font-size: 12px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 34px; gap: 20px; }
.topbar-note { display: flex; align-items: center; gap: 7px; color: #c9d3b9; min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: 0 0 6px; }
.topbar-note a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); }
.topbar-links { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.topbar-links a, .topbar-links button { color: #c9d3b9; font-size: 12px; }
.topbar-links a:hover, .topbar-links button:hover { color: #fff; }
.topbar-sub { color: #fff !important; background: var(--green); padding: 3px 10px; border-radius: 3px; font-weight: 600; }
.topbar-sub:hover { background: var(--green-d); }

/* ---------- header ---------- */

.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 18px; height: 66px; }

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-text strong { display: block; font-size: 17px; line-height: 1.15; letter-spacing: -.01em; font-weight: 700; }
.brand-text strong em { font-style: normal; color: var(--green-d); }
.brand-text small { display: block; font-size: 11px; color: var(--muted-2); letter-spacing: .02em; margin-top: 2px; }

.main-nav { display: flex; align-items: center; margin-left: auto; }
.nav-group { position: relative; }
.nav-link {
    display: inline-flex; align-items: center; gap: 5px;
    height: 66px; padding: 0 19px; font-size: 13.5px; color: #39432f; font-weight: 500;
    border-bottom: 2px solid transparent; transition: color .15s;
}
.nav-link:hover { color: var(--green-dd); }
.nav-group.on .nav-link, .main-nav .nav-link.on { color: var(--green-dd); border-bottom-color: var(--green); font-weight: 600; }
.caret { width: 6px; height: 6px; border-right: 1.5px solid #9aa48c; border-bottom: 1.5px solid #9aa48c; transform: rotate(45deg) translateY(-2px); }
.nav-group.on .caret { border-color: var(--green-d); }

.nav-drop {
    position: absolute; top: 100%; left: 0; min-width: 216px; padding: 6px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(20, 34, 8, .14);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease;
}
.nav-group:hover .nav-drop, .nav-group:focus-within .nav-drop, .nav-group.kb-open .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop a { display: block; padding: 9px 12px; border-radius: 4px; font-size: 13px; color: #3b4532; }
.nav-drop a:hover { background: var(--green-pale); color: var(--green-dd); }

.header-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.search-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #4c5741; }
.search-btn:hover { background: var(--green-pale); color: var(--green-dd); }
.search-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.menu-btn { display: none; width: 38px; height: 38px; flex-direction: column; justify-content: center; gap: 5px; padding: 0 8px; }
.menu-btn span { display: block; height: 2px; background: #4c5741; border-radius: 2px; }

.search-panel { border-top: 1px solid var(--line); background: #fbfcf8; padding: 16px 0 14px; }
.search-panel form { display: flex; gap: 8px; }
.search-panel input[type=search] {
    flex: 1; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; font-size: 15px;
}
.search-panel input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(125, 189, 7, .12); }
.search-panel button { height: 44px; padding: 0 26px; border-radius: 4px; background: var(--green); color: #fff; font-weight: 600; font-size: 14px; }
.search-panel button:hover { background: var(--green-d); }
.search-hints { margin-top: 9px; font-size: 12px; color: var(--muted-2); display: flex; gap: 10px; flex-wrap: wrap; }
.search-hints a { color: var(--green-d); }

.mobile-nav { border-top: 1px solid var(--line); padding: 6px 20px 18px; background: #fff; }
.m-link { display: block; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 600; }
.m-group { border-bottom: 1px solid var(--line); }
.m-group summary { padding: 12px 2px; font-size: 14.5px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.m-group summary::-webkit-details-marker { display: none; }
.m-group summary:after { content: "+"; color: var(--muted-2); }
.m-group[open] summary:after { content: "–"; }
.m-group a { display: block; padding: 8px 12px; font-size: 13.5px; color: #46513a; }
.m-cta { margin-top: 14px; background: var(--green); color: #fff !important; text-align: center; border-radius: 4px; border: 0; }

/* ---------- shared bits ---------- */

.kicker {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dd);
}
.kicker:before { content: ""; width: 14px; height: 2px; background: var(--green); }
.meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted-2); flex-wrap: wrap; }
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: #c3cbb6; }
.chip {
    display: inline-block; padding: 2px 7px; border-radius: 3px; background: var(--green-pale);
    color: var(--green-dd); font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.btn { display: inline-block; background: var(--green); color: #fff !important; padding: 11px 22px; border-radius: 4px; font-size: 14px; font-weight: 600; }
.btn:hover { background: var(--green-d); }
.btn-ghost { background: #fff; color: var(--green-dd) !important; border: 1px solid var(--green); }
.btn-ghost:hover { background: var(--green-pale); }
.link-more { font-size: 12px; color: var(--muted-2); display: inline-flex; align-items: center; gap: 4px; }
.link-more:hover { color: var(--green-dd); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: 21px; letter-spacing: -.01em; font-weight: 700; }
.section-head .sub { font-size: 12.5px; color: var(--muted-2); }

/* ---------- homepage ---------- */

.home { padding: 26px 0 8px; }

.lead-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.lead-main {
    position: relative; overflow: hidden; border-radius: var(--radius); padding: 34px 36px 30px;
    background:
        repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 26px),
        radial-gradient(900px 420px at 88% -10%, #3b5213 0%, transparent 62%),
        linear-gradient(140deg, #22300f 0%, #161e0d 100%);
    color: #fff; display: flex; flex-direction: column; min-height: 330px;
}
.lead-main .kicker { color: #cbe98d; }
.lead-main .kicker:before { background: var(--green); }
.lead-main h1 { font-size: 32px; line-height: 1.22; letter-spacing: -.015em; margin: 12px 0 12px; font-weight: 700; color: #fff; }
.lead-main h1 a:hover { color: #d8f0a4; }
.lead-main p.dek { color: #c8d2b7; font-size: 14.5px; line-height: 1.65; max-width: none; }
.lead-foot { margin-top: auto; padding-top: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.lead-main .meta { padding-top: 0; color: #9fae87; }
.lead-main .meta .sep { background: #5c6b49; }
.lead-more { font-size: 12.5px; font-weight: 600; color: #d8f0a4; letter-spacing: .02em; white-space: nowrap; position: relative; z-index: 2; }
.lead-more:hover { color: #fff; }
.lead-main:after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border: 1px solid rgba(125,189,7,.28); border-radius: 50%; pointer-events: none; }
.lead-main .lead-tag { position: absolute; top: 30px; right: 34px; font-size: 10.5px; letter-spacing: .12em; color: #94a87a; }

.lead-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.side-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px; display: flex; flex-direction: column;
}
.side-card h2 { font-size: 17.5px; line-height: 1.35; margin: 8px 0 8px; font-weight: 700; letter-spacing: -.01em; }
.side-card h2 a:hover { color: var(--green-dd); }
.side-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.side-card .meta { margin-top: auto; padding-top: 12px; }

/* snapshot */
.snapshot {
    margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    display: grid; grid-template-columns: 190px repeat(4, 1fr); align-items: stretch; overflow: hidden;
}
.snap-lead { padding: 16px 20px; background: var(--green-pale); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.snap-lead strong { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--green-dd); }
.snap-lead small { font-size: 11.5px; color: #7c8a63; margin-top: 3px; }
.snap-item { padding: 15px 20px; border-right: 1px solid var(--line); min-width: 0; }
.snap-item:last-child { border-right: 0; }
.snap-item b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.snap-item b.up { color: var(--green-dd); }
.snap-item span { font-size: 11.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; }
.snap-item i { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* latest river */
.band { margin-top: 34px; }
.river { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row {
    display: grid; grid-template-columns: 92px 1fr 40px; gap: 18px; align-items: start;
    padding: 18px 22px; border-bottom: 1px solid var(--line); transition: background .15s;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: #fbfcf6; }
.row-date { font-size: 11.5px; color: var(--muted-2); padding-top: 3px; line-height: 1.5; }
.row-date b { display: block; font-size: 15px; color: var(--ink-2); font-weight: 600; }
.row-body { min-width: 0; }
.row-body .kicker { margin-bottom: 4px; }
.row-body h3 { font-size: 18.5px; line-height: 1.38; letter-spacing: -.01em; }
/* list headlines must always show in full: wrap instead of clipping */
.row-body h3, .row-body h3 a, .mini h3, .feature-card h3, .side-card h2,
.acard h2, .acard h3, .rail-related a {
    max-height: none; -webkit-line-clamp: unset; overflow: visible;
    white-space: normal; text-overflow: clip; overflow-wrap: break-word;
}
.mini, .feature-card, .acard, .side-card, .rail-related a { min-width: 0; }
.row-body h3 a:hover { color: var(--green-dd); }
.row-body p { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.55; max-width: none; }
.row-arrow { color: #c3cbb6; padding-top: 10px; font-size: 18px; }

/* two-column watch */
.watch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 8px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.panel-head h2 { font-size: 16px; letter-spacing: .01em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.panel-head a { font-size: 11.5px; color: var(--muted-2); }
.panel-head a:hover { color: var(--green-dd); }
.mini { display: block; padding: 13px 0; border-top: 1px solid var(--line); }
.mini:first-of-type { border-top: 0; }
.mini .kicker { font-size: 10.5px; }
.mini h3 { font-size: 15px; line-height: 1.4; margin-top: 5px; font-weight: 600; }
.mini:hover h3 { color: var(--green-dd); }
.mini .meta { margin-top: 5px; font-size: 11px; }

/* duet band */
.duet { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.duet-col { display: grid; gap: 18px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.net-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.net-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px;
    display: flex; flex-direction: column;
}
.net-card .kicker { margin-bottom: 8px; }
.net-card h3 { font-size: 21px; letter-spacing: -.01em; }
.net-card h3 a:hover { color: var(--green-dd); }
.net-card p { font-size: 13px; line-height: 1.65; color: var(--muted); margin: 7px 0 18px; }
.net-link { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--green-dd); }
.net-link:hover { color: var(--green-d); }
.feature-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
    display: flex; flex-direction: column;
}
.feature-card .kicker { margin-bottom: 8px; }
.feature-card h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.01em; }
.feature-card h3 a:hover { color: var(--green-dd); }
.feature-card p { font-size: 13px; color: var(--muted); margin-top: 7px; }
.feature-card .meta { margin-top: 12px; }
.event-box { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 22px; }
.event-box .kicker { color: #cbe98d; }
.event-box h3 { font-size: 18px; margin: 8px 0 6px; }
.event-box p { font-size: 12.5px; color: #c3cfae; }
.event-box .ev-meta { display: flex; gap: 12px; margin-top: 14px; font-size: 11.5px; color: #a9b894; }
.event-box a.btn { margin-top: 16px; background: var(--green); }

/* newsletter */
.newsletter {
    margin: 34px 0 0; padding: 26px 30px; border-radius: var(--radius);
    background: repeating-linear-gradient(110deg, rgba(255,255,255,.03) 0 1px, transparent 1px 24px), #24300f;
    color: #fff; display: flex; align-items: center; gap: 30px; justify-content: space-between; flex-wrap: wrap;
}
.newsletter h2 { font-size: 20px; letter-spacing: -.01em; }
.newsletter p { font-size: 12.5px; color: #bccaa4; margin-top: 4px; }
.newsletter form { display: flex; gap: 8px; flex: 0 0 auto; }
.newsletter input[type=email] { width: 250px; height: 42px; border: 0; border-radius: 4px; padding: 0 14px; font-size: 14px; }
.newsletter button { height: 42px; padding: 0 20px; border-radius: 4px; background: var(--green); color: #fff; font-weight: 600; }
.newsletter .hp { position: absolute; left: -9999px; }

/* ---------- article ---------- */

.article-head { padding: 26px 0 0; }
.crumbs { font-size: 11.5px; color: var(--muted-2); display: flex; gap: 7px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--green-dd); }
.crumbs span { color: #b7c0aa; }
.article-head h1 { font-size: 36px; line-height: 1.2; letter-spacing: -.02em; margin: 14px 0 12px; font-weight: 700; }
.article-head .dek { font-size: 17px; line-height: 1.6; color: #4a5540; max-width: 46em; }
.byline { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 12.5px; color: var(--muted-2); flex-wrap: wrap; }
.byline .author { color: var(--ink-2); font-weight: 600; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; padding: 22px 0 50px; align-items: start; }

.transnote {
    display: flex; gap: 12px; align-items: flex-start; background: var(--green-pale); border: 1px solid var(--green-line);
    border-left: 3px solid var(--green); border-radius: 4px; padding: 11px 14px; margin: 18px 0 24px; font-size: 12.5px; color: #4d5c38;
}
.transnote b { color: var(--green-dd); font-weight: 700; letter-spacing: .02em; }
.transnote a { text-decoration: underline; color: #3f5320; }

.takeaways { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 26px; }
.takeaways h2 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-dd); margin-bottom: 10px; }
.takeaways li { display: flex; gap: 9px; font-size: 14px; line-height: 1.55; padding: 5px 0; color: #2c3524; }
.takeaways li:before { content: ""; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--green); flex: 0 0 6px; }

.prose { font-size: 16px; line-height: 1.78; color: #242c1d; }
.prose p { margin-bottom: 18px; }
.prose h2 { font-size: 21px; line-height: 1.35; margin: 32px 0 12px; letter-spacing: -.01em; }
.prose h3 { font-size: 17px; margin: 24px 0 10px; }
.prose a { color: var(--green-d); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose blockquote { border-left: 3px solid var(--green-line); padding: 4px 0 4px 16px; margin: 0 0 18px; color: #4d5a3f; font-style: italic; }
.prose small { color: var(--muted-2); }

.buyernote { margin: 26px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.buyernote h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.buyernote h2:before { content: ""; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }
.buyernote p { font-size: 14.5px; line-height: 1.7; color: #33402a; margin-bottom: 8px; }

.sourcebox { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 12.5px; color: var(--muted); }
.sourcebox b { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.sourcebox a { color: var(--green-d); text-decoration: underline; }
.tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 18px; }
.tags a { font-size: 11.5px; padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 3px; color: #4d583f; }
.tags a:hover { border-color: var(--green); color: var(--green-dd); background: var(--green-pale); }

.rail { display: grid; gap: 16px; position: sticky; top: 86px; }
.rail-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.rail-card h3 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); padding-bottom: 9px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.rail-card .kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 5px 0; color: #3e4a33; }
.rail-card .kv span { color: var(--muted-2); }
.rail-cta { background: var(--green-pale); border-color: var(--green-line); }
.rail-cta h3 { color: var(--green-dd); border-color: var(--green-line); }
.rail-cta p { font-size: 12.5px; color: #4c5b36; line-height: 1.55; }
.rail-cta .btn { display: block; text-align: center; margin-top: 12px; font-size: 13px; padding: 9px 0; }
.rail-related a { display: block; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.45; color: #2c3524; }
.rail-related a:first-of-type { border-top: 0; padding-top: 0; }
.rail-related a:hover { color: var(--green-dd); }
.rail-related small { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 3px; }

.related { border-top: 1px solid var(--line); padding: 26px 0 0; margin-top: 10px; }
.related h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 14px; }

/* ---------- section / tag / search ---------- */

.sec-head {
    background: #fff; border-bottom: 1px solid var(--line); padding: 34px 0 26px;
}
.sec-head .kicker { margin-bottom: 8px; }
.sec-head h1 { font-size: 34px; letter-spacing: -.02em; line-height: 1.2; }
.sec-head p { font-size: 14.5px; color: var(--muted); max-width: 68ch; margin-top: 10px; line-height: 1.65; }
.sec-head .count { font-size: 11.5px; color: var(--muted-2); margin-top: 12px; }

.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.subnav a { font-size: 12.5px; padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 20px; color: #48543b; background: #fff; }
.subnav a:hover { border-color: var(--green); color: var(--green-dd); }
.subnav a.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }

.list-wrap { padding: 26px 0 56px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.acard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; transition: .16s; }
.acard:hover { border-color: #bcd68a; box-shadow: var(--shadow); transform: translateY(-2px); }
.acard .kicker { font-size: 10.5px; }
.acard h2, .acard h3 { font-size: 17px; line-height: 1.4; margin: 8px 0; letter-spacing: -.01em; font-weight: 700; }
.acard p { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.acard .meta { margin-top: auto; padding-top: 14px; font-size: 11px; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.pager a, .pager span { min-width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 13px; background: #fff; }
.pager a:hover { border-color: var(--green); color: var(--green-dd); }
.pager .on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.pager .dis { color: #b8c0ac; }

.empty { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 24px; text-align: center; }
.empty h2 { font-size: 18px; margin-bottom: 6px; }
.empty p { font-size: 13.5px; color: var(--muted); }

/* ---------- about / static ---------- */

.page-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; padding: 34px 0 56px; align-items: start; }
.page-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; position: sticky; top: 86px; }
.page-nav a { display: block; padding: 9px 12px; border-radius: 4px; font-size: 13px; color: #42503a; }
.page-nav a:hover { background: var(--green-pale); color: var(--green-dd); }
.page-nav a.on { background: var(--green); color: #fff; font-weight: 600; }
.page-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px; }
.page-body h1 { font-size: 30px; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 10px; }
.page-body .lede { font-size: 15.5px; color: var(--muted); line-height: 1.65; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.page-body h2 { font-size: 19px; margin: 26px 0 10px; }
.page-body p { font-size: 14.5px; line-height: 1.75; color: #2b3423; margin-bottom: 14px; }
.page-body ul, .page-body ol { margin: 0 0 16px 20px; }
.page-body ul { list-style: disc; }
.page-body ol { list-style: decimal; }
.page-body li { font-size: 14.5px; line-height: 1.7; margin-bottom: 6px; }
.page-body a { color: var(--green-d); text-decoration: underline; }
.page-body .notice { background: var(--green-pale); border-left: 3px solid var(--green); padding: 12px 16px; font-size: 13px; color: #46552f; margin: 18px 0; border-radius: 3px; }

/* subscribe */
.sub-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; padding: 40px 0 60px; align-items: start; }
.sub-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 36px; }
.sub-card h1 { font-size: 30px; letter-spacing: -.02em; line-height: 1.25; }
.sub-card p { font-size: 14.5px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
.sub-form { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.sub-form input[type=email] { flex: 1; min-width: 220px; height: 46px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 14px; }
.sub-form button { height: 46px; padding: 0 26px; background: var(--green); color: #fff; border-radius: 4px; font-weight: 600; }
.sub-note { font-size: 11.5px; color: var(--muted-2); margin-top: 10px; }
.sub-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.sub-side h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 12px; }
.sub-side li { font-size: 13px; color: #3c4831; padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.sub-side li:last-child { border-bottom: 0; }
.sub-side li:before { content: "→"; color: var(--green); }
.flash { background: #eef7d8; border: 1px solid var(--green-line); color: #40531f; padding: 11px 14px; border-radius: 4px; font-size: 13px; margin-top: 16px; }
.flash.err { background: #fdf1ec; border-color: #f3cab9; color: #8a3a1c; }

/* ---------- footer ---------- */

.site-footer { background: var(--dark); color: #cfd8bf; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding: 44px 20px 30px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-name { font-size: 16px; color: #fff; font-weight: 700; }
.footer-desc { font-size: 12.5px; line-height: 1.65; color: #a9b695; max-width: 34em; }
.footer-note { font-size: 12px; color: #8d9b79; }
.footer-note a { color: #d8f0a4; }
.footer-col h3 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8d9b79; margin-bottom: 12px; }
.footer-col li { font-size: 12.5px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 20px 22px; display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; font-size: 11.5px; color: #8d9b79; }
.footer-bottom a { color: #c7d3b3; text-decoration: underline; }

/* ---------- 404 ---------- */
.nf { padding: 90px 0 100px; text-align: center; }
.nf h1 { font-size: 44px; letter-spacing: -.02em; }
.nf p { color: var(--muted); margin: 10px 0 22px; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
    .lead-main h1 { font-size: 27px; }
    .article-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
    .nav-link { padding: 0 10px; font-size: 13px; }
    .brand-text small { display: none; }
}

@media (max-width: 900px) {
    .main-nav { display: none; }
    .menu-btn { display: flex; margin-left: auto; }
    .header-actions { margin-left: auto; }
    .lead-grid { grid-template-columns: 1fr; }
    .lead-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .lead-main { min-height: 0; padding: 26px 24px; }
    .lead-main .lead-tag { display: none; }
    .snapshot { grid-template-columns: repeat(2, 1fr); }
    .snap-lead { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
    .snap-item:nth-child(3) { border-right: 0; }
    .watch-grid, .duet, .feature-grid, .net-grid { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .rail { position: static; grid-template-columns: 1fr 1fr; }
    .page-layout { grid-template-columns: 1fr; gap: 18px; }
    .page-nav { position: static; display: flex; flex-wrap: wrap; }
    .sub-layout { grid-template-columns: 1fr; }
    .grid3 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .topbar-note { font-size: 11px; }
    .topbar-links { gap: 10px; flex: 0 0 auto; }
    .topbar-links a:not(.topbar-sub) { display: none; }
    .topbar-in { justify-content: space-between; gap: 10px; }
    .brand-text strong { font-size: 15px; }
    .lead-main { padding: 22px 20px; }
    .lead-main h1 { font-size: 25px; }
    .snap-item { padding: 13px 14px; }
    .snap-item b { font-size: 18px; }
    .lead-side { grid-template-columns: 1fr; }
    .row { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
    .row-date { display: flex; gap: 8px; align-items: baseline; padding: 0; }
    .row-date b { font-size: 12px; }
    .row-arrow { display: none; }
    .article-head h1 { font-size: 26px; }
    .article-head .dek { font-size: 15px; }
    .prose { font-size: 15.5px; }
    .rail { grid-template-columns: 1fr; }
    .grid3 { grid-template-columns: 1fr; }
    .sec-head h1 { font-size: 26px; }
    .newsletter form { width: 100%; }
    .newsletter input[type=email] { flex: 1; width: auto; min-width: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .sub-card, .page-body { padding: 24px 20px; }
}

/* ---------- 404 ---------- */
.nf-hero { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--green-pale), #fff 70%); }
.nf-hero-in { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: center; padding: 54px 0 46px; }
.nf-code { font-size: 116px; line-height: .9; font-weight: 800; letter-spacing: -4px; color: var(--green); opacity: .9; }
.nf-copy h1 { font-size: clamp(24px, 3vw, 38px); line-height: 1.18; margin: 8px 0 12px; color: #212a18; }
.nf-copy p { max-width: 620px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.nf-search { display: flex; gap: 8px; margin: 22px 0 14px; max-width: 560px; }
.nf-search input { flex: 1; height: 46px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 14px; background: #fff; font: inherit; }
.nf-search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(125, 189, 7, .14); }
.nf-search .btn { height: 46px; }
.nf-back a { color: var(--green-dd); font-weight: 600; font-size: 13.5px; }

.nf-desks { padding: 44px 0 10px; }
.nf-desks h2, .nf-latest h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 16px; }
.nf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.nf-grid a { display: block; padding: 20px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, transform .15s; }
.nf-grid a:hover { border-color: var(--green); transform: translateY(-2px); }
.nf-grid b { display: block; font-size: 14.5px; color: #212a18; margin-bottom: 6px; }
.nf-grid span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.55; }

.nf-latest { padding: 28px 0 56px; }
.nf-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.nf-list li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.nf-list .kicker { flex: 0 0 auto; font-size: 11px; color: var(--green-dd); text-transform: uppercase; letter-spacing: .06em; }
.nf-list a { flex: 1 1 320px; font-size: 15px; color: #212a18; }
.nf-list a:hover { color: var(--green-dd); }
.nf-list small { color: var(--muted); font-size: 12px; }

@media (max-width: 860px) {
    .nf-hero-in { grid-template-columns: 1fr; gap: 18px; padding: 34px 0 30px; }
    .nf-code { font-size: 64px; }
    .nf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .nf-grid { grid-template-columns: 1fr; }
    .nf-search { flex-direction: column; }
    .nf-search .btn { width: 100%; }
}

