/*
Theme Name: ChainView
Theme URI: https://btc577.com/
Author: ChainView
Description: A clear, responsive Chinese publication theme for global blockchain knowledge, overseas guides and wallet safety.
Version: 2.1.3
Text Domain: btc577
*/

:root {
  --navy: #10253f;
  --navy-deep: #0a1a2d;
  --orange: #e77b28;
  --orange-soft: #fff2e6;
  --cream: #fbfaf7;
  --paper: #ffffff;
  --ink: #172b42;
  --muted: #637287;
  --line: #e3e8ee;
  --blue-soft: #edf3f8;
  --max: 1160px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; font-size: 16px; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 8px 14px; background: var(--orange); color: #fff; border-radius: 5px; }
.skip-link:focus { top: 12px; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.topline { background: var(--navy-deep); color: #cbd7e4; font-size: 12px; }
.topline-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topline a { color: #fff; }
.masthead { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.brand-mark { width: 40px; height: 40px; flex: 0 0 40px; }
.brand-name { display: block; font-size: 23px; font-weight: 800; line-height: 1.1; letter-spacing: .03em; }
.brand-tagline { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .08em; line-height: 1.2; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.language-switcher { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 11px; line-height: 1; }
.language-switcher a, .language-switcher .language-current { display: inline-flex; min-width: 26px; min-height: 23px; align-items: center; justify-content: center; border-radius: 99px; color: inherit; }
.language-switcher a:hover { background: var(--orange-soft); color: var(--orange); }
.language-switcher .language-current { background: var(--navy); color: #fff; font-weight: 700; }
.search-link { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 99px; padding: 7px 13px; color: var(--muted); font-size: 13px; }
.search-link svg { width: 16px; height: 16px; }
.lang-link { font-size: 12px; color: var(--muted); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--navy); padding: 6px; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }
.nav-row { border-top: 1px solid #f0f2f5; }
.nav-inner { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.primary-menu, .primary-menu-list { display: flex; align-items: center; gap: 25px; list-style: none; padding: 0; margin: 0; }
.primary-menu a { display: block; padding: 12px 0 11px; color: #445872; font-size: 14px; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--navy); border-bottom-color: var(--orange); }
.nav-search { color: var(--muted); font-size: 13px; white-space: nowrap; }

.site-main { min-height: 60vh; }
.hero { padding: 58px 0 42px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr); gap: 52px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.eyebrow::before { content: ""; width: 25px; height: 2px; background: var(--orange); }
.hero h1 { max-width: 670px; margin: 15px 0 17px; color: var(--navy); font-size: clamp(34px, 5vw, 58px); line-height: 1.18; letter-spacing: -.045em; }
.hero-copy { max-width: 570px; margin: 0 0 25px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-languages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 22px 0 0; color: var(--muted); font-size: 12px; }
.hero-languages strong { color: var(--navy); font-size: 11px; letter-spacing: .08em; }
.hero-languages a { color: var(--orange); font-weight: 700; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.button-primary { background: var(--orange); color: #fff; }
.button-primary:hover { background: #ce661b; color: #fff; }
.button-quiet { border: 1px solid #cfdae5; color: var(--navy); background: var(--paper); }
.button-quiet:hover { border-color: var(--orange); color: var(--orange); }
.hero-art { position: relative; min-height: 300px; padding: 25px; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); border-radius: 18px; overflow: hidden; }
.hero-art::after { content: ""; position: absolute; width: 260px; height: 260px; top: -100px; right: -90px; border: 1px solid #d2dfeb; border-radius: 50%; box-shadow: 0 0 0 26px rgba(255,255,255,.28), 0 0 0 54px rgba(255,255,255,.20); }
.hero-art img { position: relative; z-index: 1; width: min(320px, 80%); }

.section { padding: 42px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: 28px; line-height: 1.3; letter-spacing: -.025em; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.section-heading a { color: var(--orange); font-size: 13px; font-weight: 700; white-space: nowrap; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 28px; }
.feature-card { min-width: 0; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-card .card-image { aspect-ratio: 16 / 9; }
.feature-card h3 { margin: 14px 0 8px; font-size: 25px; line-height: 1.45; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }
.card-image { display: block; margin: -20px -20px 0; overflow: hidden; background: var(--blue-soft); }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-kicker { display: inline-flex; margin-top: 15px; color: var(--orange); font-size: 12px; font-weight: 800; }
.card-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.card-meta span + span::before { content: "·"; margin-right: 14px; color: #afbac7; }
.compact-list { display: grid; gap: 14px; }
.compact-card { display: grid; grid-template-columns: 118px minmax(0,1fr); gap: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.compact-card:last-child { border-bottom: 0; padding-bottom: 0; }
.compact-card .card-image { margin: 0; aspect-ratio: 1 / .82; border-radius: 7px; }
.compact-card h3 { margin: 5px 0 6px; font-size: 17px; line-height: 1.55; }
.compact-card .card-kicker { margin-top: 0; }
.compact-card .card-meta { margin-top: 6px; }
.topics { display: flex; flex-wrap: wrap; gap: 10px; }
.topic-group + .topic-group { margin-top: 24px; }
.topic-group h3 { margin: 0 0 9px; color: var(--muted); font-family: inherit; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
.topic-link { padding: 9px 14px; color: var(--navy); background: var(--paper); border: 1px solid var(--line); border-radius: 99px; font-size: 13px; }
.topic-link:hover { color: var(--orange); border-color: var(--orange); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; min-width: 0; flex-direction: column; }
.post-card .card-image { margin: 0; aspect-ratio: 16 / 10; border-radius: 8px; }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding-top: 12px; }
.post-card h3 { margin: 6px 0 7px; font-size: 18px; line-height: 1.55; }
.post-card p { flex: 1; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.empty-state { padding: 42px 22px; text-align: center; background: var(--blue-soft); border-radius: var(--radius); }
.empty-state h2 { margin: 0 0 7px; color: var(--navy); font-size: 22px; }
.empty-state p { margin: 0; color: var(--muted); }

.archive-main, .single-main, .page-main { padding: 44px 0 72px; }
.archive-header { max-width: 760px; margin-bottom: 30px; }
.archive-header h1, .page-header h1 { margin: 0 0 10px; color: var(--navy); font-size: clamp(31px, 5vw, 45px); line-height: 1.25; letter-spacing: -.035em; }
.archive-header p { margin: 0; color: var(--muted); font-size: 16px; }
.archive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 50px; }
.archive-list { display: grid; gap: 0; }
.archive-card { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 22px; padding: 21px 0; border-top: 1px solid var(--line); }
.archive-card:first-child { border-top: 0; padding-top: 0; }
.archive-card .card-image { margin: 0; aspect-ratio: 16 / 10; border-radius: 8px; }
.archive-card h2 { margin: 6px 0 7px; font-size: 22px; line-height: 1.5; }
.archive-card p { margin: 0; color: var(--muted); font-size: 14px; }
.archive-sidebar { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); align-self: start; }
.archive-sidebar h2 { margin: 0 0 12px; color: var(--navy); font-size: 17px; }
.archive-sidebar ul { list-style: none; padding: 0; margin: 0; }
.archive-sidebar li + li { border-top: 1px solid var(--line); }
.archive-sidebar a { display: block; padding: 10px 0; color: var(--muted); font-size: 13px; }
.archive-sidebar a:hover { color: var(--orange); }
.pagination { margin-top: 30px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--navy); font-size: 13px; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

.breadcrumb { margin-bottom: 25px; color: var(--muted); font-size: 12px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; justify-content: space-between; gap: 50px; }
.article-header { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 10px 0 15px; color: var(--navy); font-size: clamp(31px, 5vw, 50px); line-height: 1.3; letter-spacing: -.04em; }
.article-summary { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.85; }
.article-meta { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-top: 17px; color: var(--muted); font-size: 12px; }
.article-meta span + span::before { content: "·"; margin-right: 15px; color: #afbac7; }
.article-featured { margin: 27px 0; border-radius: 9px; overflow: hidden; background: var(--blue-soft); }
.article-featured img { width: 100%; }
.article-featured figcaption { padding: 10px 14px; color: var(--muted); font-size: 12px; line-height: 1.6; background: #f3f5f6; }
.article-body { color: #263b52; font-size: 17px; line-height: 2; }
.article-body h2 { margin: 36px 0 13px; color: var(--navy); font-size: 27px; line-height: 1.45; }
.article-body h3 { margin: 28px 0 10px; color: var(--navy); font-size: 21px; }
.article-body p { margin: 0 0 21px; }
.article-body ul, .article-body ol { margin: 0 0 23px; padding-left: 27px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { margin: 27px 0; padding: 15px 20px; border-left: 3px solid var(--orange); background: var(--orange-soft); color: #526377; }
.article-body a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { border-radius: 8px; }
.article-aside { align-self: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.article-aside h2 { margin: 0 0 12px; color: var(--navy); font-size: 17px; }
.article-aside p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.article-aside a { color: var(--orange); font-size: 13px; font-weight: 700; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-navigation a { display: block; color: var(--navy); font-size: 14px; font-weight: 700; }
.post-navigation span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
.post-navigation .next { text-align: right; }

.search-box { display: flex; gap: 8px; max-width: 640px; margin: 23px 0 34px; }
.search-box input[type="search"] { min-width: 0; flex: 1; padding: 10px 13px; border: 1px solid #ccd6e0; border-radius: 6px; background: #fff; color: var(--ink); }
.search-box input[type="submit"] { padding: 10px 17px; border: 0; border-radius: 6px; background: var(--navy); color: #fff; cursor: pointer; }
.search-box input[type="submit"]:hover { background: var(--orange); }
.error-page { padding: 82px 0; text-align: center; }
.error-page h1 { margin: 12px 0; color: var(--navy); font-size: 38px; }
.error-page p { margin: 0 auto 24px; max-width: 540px; color: var(--muted); }

.site-footer { padding: 48px 0 0; background: var(--navy-deep); color: #c9d5e2; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); gap: 44px; padding-bottom: 42px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-tagline { color: #99aabc; }
.footer-brand p { max-width: 330px; margin: 18px 0 0; color: #aab8c8; font-size: 13px; }
.footer-col h2 { margin: 4px 0 12px; color: #fff; font-size: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li + li { margin-top: 6px; }
.footer-col a { color: #aebdcd; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding: 17px 0 22px; border-top: 1px solid #2b4056; color: #8fa2b7; font-size: 11px; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .hero-grid, .feature-grid, .archive-layout, .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding-top: 42px; }
  .hero-art { min-height: 230px; }
  .archive-sidebar, .article-aside { order: 2; }
  .post-grid { gap: 18px; }
  .primary-menu { gap: 17px; }
}
@media (max-width: 700px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .topline-inner { justify-content: flex-end; }
  .topline-inner > span { display: none; }
  .masthead { min-height: 72px; }
  .brand-mark { width: 35px; height: 35px; flex-basis: 35px; }
  .brand-name { font-size: 20px; }
  .brand-tagline { font-size: 10px; }
  .search-link span, .lang-link { display: none; }
  .language-switcher { font-size: 10px; }
  .language-switcher a, .language-switcher .language-current { min-width: 22px; min-height: 21px; }
  .js .menu-toggle { display: inline-flex; }
  .nav-inner { align-items: flex-start; }
  .primary-menu { width: 100%; flex-wrap: wrap; gap: 0 22px; padding: 4px 0 9px; }
  .js .primary-menu { display: none; }
  .primary-menu.is-open { display: flex; }
  .primary-menu-list { display: flex; width: 100%; flex-wrap: wrap; gap: 0 22px; }
  .nav-inner { flex-wrap: wrap; }
  .nav-search { display: none; }
  .hero-languages { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; align-items: center; }
  .hero-languages strong { grid-column: 1 / -1; }
  .hero-languages span, .hero-languages a { min-width: 0; }
  .section { padding: 32px 0; }
  .section-heading h2 { font-size: 23px; }
  .post-grid { grid-template-columns: 1fr; }
  .archive-card { grid-template-columns: 130px minmax(0,1fr); gap: 14px; }
  .archive-card h2 { font-size: 18px; }
  .archive-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 23px; }
  .post-navigation { gap: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 430px) {
  .hero h1 { font-size: 34px; }
  .hero-copy { font-size: 15px; }
  .compact-card { grid-template-columns: 100px minmax(0,1fr); }
  .compact-card h3 { font-size: 15px; }
  .archive-card { grid-template-columns: 1fr; }
  .archive-card .card-image { aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
.article-sources { margin-top: 34px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--blue-soft); }
.article-sources h2 { margin: 0 0 8px; color: var(--navy); font-size: 18px; }
.article-sources ul { margin: 0; padding-left: 20px; }
.article-sources a { color: var(--orange); font-size: 13px; }

/* Editorial magazine direction: clear desk, strong masthead, and calm reading rhythm. */
:root { --cream: #f6f3ed; --paper: #fffdf9; --navy: #10283e; --navy-deep: #091a2b; --orange: #c96b2c; --line: #d9dedf; --muted: #687685; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; letter-spacing: .005em; }
h1, h2, h3, .brand-name { font-family: Georgia, "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-weight: 700; }
.site-header { box-shadow: 0 1px 0 rgba(16,40,62,.05); }
.topline { background: var(--navy); letter-spacing: .06em; }
.topline-inner { min-height: 31px; }
.masthead { min-height: 96px; }
.brand { gap: 14px; }
.brand-mark { width: 44px; height: 44px; }
.brand-name { font-size: 28px; letter-spacing: .06em; }
.brand-tagline { letter-spacing: .12em; }
.nav-row { border-top: 1px solid var(--line); }
.nav-inner { min-height: 53px; }
.primary-menu a { padding: 15px 0 13px; font-size: 13px; letter-spacing: .03em; }
.hero { padding: 72px 0 55px; border-bottom: 1px solid var(--line); }
.hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: 70px; }
.hero h1 { margin-top: 18px; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.1; letter-spacing: -.055em; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-copy { max-width: 590px; font-size: 17px; line-height: 1.9; }
.hero-art { min-height: 340px; border-radius: 0; border: 1px solid #d4dce3; background: #e9eff1; }
.hero-art::before { content: "EDITORIAL DESK / 01"; position: absolute; z-index: 2; top: 16px; left: 19px; color: var(--muted); font-size: 10px; letter-spacing: .16em; }
.hero-art::after { border-radius: 0; transform: rotate(12deg); }
.section { padding: 58px 0; }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { font-size: 31px; }
.eyebrow { letter-spacing: .18em; }
.feature-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 38px; }
.feature-card { padding: 0 0 20px; border: 0; border-bottom: 3px solid var(--navy); border-radius: 0; background: transparent; }
.feature-card .card-image { margin: 0; border: 1px solid var(--line); }
.feature-card h3 { max-width: 720px; margin-top: 13px; font-size: clamp(26px, 3vw, 38px); line-height: 1.25; }
.compact-list { padding-left: 28px; border-left: 1px solid var(--line); }
.compact-card { padding-bottom: 18px; }
.compact-card h3 { font-family: inherit; font-weight: 700; }
.topics { gap: 0; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--navy); }
.topic-link { flex: 1 1 180px; padding: 16px 18px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; font-weight: 700; }
.topic-link span:last-child { color: var(--orange); font-size: 17px; }
.topic-link:last-child { border-right: 0; }
.post-grid { gap: 30px; }
.post-card { border-top: 2px solid var(--navy); padding-top: 13px; }
.post-card .card-image { border-radius: 0; }
.post-card h3 { font-family: inherit; }
.article-header h1, .archive-header h1, .page-header h1 { font-family: Georgia, "Songti SC", "STSong", "Noto Serif CJK SC", serif; }
.article-body { font-family: Georgia, "Songti SC", "STSong", "Noto Serif CJK SC", serif; }
.article-body p { letter-spacing: .02em; }
.article-featured { border-radius: 0; }
.article-sources { border-radius: 0; border-left: 3px solid var(--orange); }
.site-footer { border-top: 5px solid var(--orange); }
/* Keep the language choices readable on narrow screens after all editorial overrides. */
.hero-languages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 22px 0 0; color: var(--muted); font-size: 12px; }
@media (max-width: 700px) {
  .hero-languages { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; align-items: center; }
  .hero-languages strong { grid-column: 1 / -1; }
  .hero-languages span, .hero-languages a { min-width: 0; }
}
/* Keep the responsive rules after editorial desktop overrides. */
.brand-name span { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: .57em; letter-spacing: .05em; vertical-align: .12em; }
.brand-tagline { max-width: 240px; line-height: 1.5; letter-spacing: .035em; }
.hero-grid > *, .feature-grid > *, .archive-layout > *, .article-layout > * { min-width: 0; }
.article-body { overflow-wrap: anywhere; }
.article-body pre, .article-body table { display: block; max-width: 100%; overflow-x: auto; }
.article-body pre { padding: 16px; background: var(--blue-soft); font-size: 14px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
@media (max-width: 900px) {
  .hero-grid, .feature-grid, .archive-layout, .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero { padding: 48px 0 40px; }
  .hero-art { min-height: 260px; }
  .compact-list { padding-left: 0; border-left: 0; }
  .primary-menu, .primary-menu-list { gap: 17px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 700px) {
  .hero-grid, .feature-grid, .archive-layout, .article-layout { grid-template-columns: 1fr; }
  .masthead { min-height: 78px; }
  .brand-name { font-size: 23px; }
  .hero { padding: 45px 0 35px; }
  .hero-grid { gap: 30px; }
  .hero h1 { font-size: 42px; }
  .brand-mark { width: 35px; height: 35px; flex-basis: 35px; }
  .brand-tagline { max-width: 185px; font-size: 10px; }
  .primary-menu, .primary-menu-list { gap: 0 22px; }
  .nav-inner { min-height: 0; }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 36px 0; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 26px; }
  .compact-list { padding-left: 0; border-left: 0; }
  .topic-link { flex-basis: 50%; border-bottom: 1px solid var(--line); }
}
@media (max-width: 430px) {
  .masthead { gap: 10px; }
  .brand { gap: 10px; }
  .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .brand-name { font-size: 21px; }
  .brand-tagline { max-width: 160px; font-size: 9px; }
  .header-tools { gap: 6px; }
  .search-link { padding-inline: 9px; }
  .hero h1 { font-size: clamp(32px, 9.7vw, 40px); }
  .hero-copy { font-size: 15px; }
  .hero-languages { gap: 5px 10px; }
  .hero-art { min-height: 220px; padding: 20px; }
  .section-heading { flex-wrap: wrap; gap: 12px; }
  .section-heading h2 { font-size: 24px; }
}
