/*
Theme Name: byseona
Theme URI: https://byseona.com
Description: Data-driven investing & disclosures — an English/Korean, ad-ready magazine theme for byseona.com. Renders DART (Korea) and SEC (US) filing analysis in a clean, tabular, finance-journal style. Polylang-compatible, dark-mode aware, AdSense-ready widget areas.
Author: byseona
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: byseona
Tags: blog, news, two-columns, right-sidebar, custom-menu, featured-images, translation-ready, full-width-template
*/

:root {
  --paper: #FCFCFA; --card: #FFFFFF; --ink: #111614; --ink-2: #48524E; --ink-3: #838C88;
  --line: #E7E9E4; --line-2: #F0F1EC; --accent: #0E9F6E; --accent-ink: #0A7A54; --accent-tint: #E4F5EE;
  --up: #12A150; --up-tint: #E5F5EC; --down: #E5484D; --down-tint: #FCEBEC; --band: #0C1A15;
  --amber: #B9791C; --amber-tint: #FBF1E0; --amber-line: #EAD4A8;
  --ad-bg: #F6F7F3; --ad-line: #D9DDD3; --ad-ink: #A8AEA3;
  --radius: 15px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17,22,20,.04), 0 10px 26px rgba(17,22,20,.05);
  --shadow-lift: 0 2px 8px rgba(17,22,20,.06), 0 20px 44px rgba(17,22,20,.10);
  --mono: "SF Mono", "JetBrains Mono", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Pretendard", -apple-system, "Inter", "Segoe UI", system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Iowan Old Style", Georgia, "Times New Roman", "Nanum Myeongjo", serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0B0F0D; --card: #141917; --ink: #EAEDEA; --ink-2: #A3ACA7; --ink-3: #6B746F;
    --line: #232926; --line-2: #1C211E; --accent: #34D399; --accent-ink: #5CE0AF; --accent-tint: #10261D;
    --up: #34D399; --up-tint: #10261D; --down: #FF6166; --down-tint: #2A1618; --band: #060A08;
    --amber: #E0B268; --amber-tint: #241C0F; --amber-line: #3D3320;
    --ad-bg: #101512; --ad-line: #262C28; --ad-ink: #5A625C;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px rgba(0,0,0,.45);
    --shadow-lift: 0 2px 8px rgba(0,0,0,.5), 0 24px 50px rgba(0,0,0,.6); }
}
:root[data-theme="dark"] { --paper: #0B0F0D; --card: #141917; --ink: #EAEDEA; --ink-2: #A3ACA7; --ink-3: #6B746F;
  --line: #232926; --line-2: #1C211E; --accent: #34D399; --accent-ink: #5CE0AF; --accent-tint: #10261D;
  --up: #34D399; --up-tint: #10261D; --down: #FF6166; --down-tint: #2A1618; --band: #060A08;
  --amber: #E0B268; --amber-tint: #241C0F; --amber-line: #3D3320;
  --ad-bg: #101512; --ad-line: #262C28; --ad-ink: #5A625C;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px rgba(0,0,0,.45); --shadow-lift: 0 2px 8px rgba(0,0,0,.5), 0 24px 50px rgba(0,0,0,.6); }
:root[data-theme="light"] { --paper: #FCFCFA; --card: #FFFFFF; --ink: #111614; --ink-2: #48524E; --ink-3: #838C88;
  --line: #E7E9E4; --line-2: #F0F1EC; --accent: #0E9F6E; --accent-ink: #0A7A54; --accent-tint: #E4F5EE;
  --up: #12A150; --up-tint: #E5F5EC; --down: #E5484D; --down-tint: #FCEBEC; --band: #0C1A15;
  --amber: #B9791C; --amber-tint: #FBF1E0; --amber-line: #EAD4A8;
  --ad-bg: #F6F7F3; --ad-line: #D9DDD3; --ad-ink: #A8AEA3;
  --shadow: 0 1px 2px rgba(17,22,20,.04), 0 10px 26px rgba(17,22,20,.05); --shadow-lift: 0 2px 8px rgba(17,22,20,.06), 0 20px 44px rgba(17,22,20,.10); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* reading progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 60; transition: width .1s linear; }

/* back-to-top button */
.to-top { position: fixed; right: 18px; bottom: 22px; z-index: 55; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-lift); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s, background .15s; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-ink); }
.to-top:active { transform: scale(.94); }

/* Ad slots */
.ad { background: var(--ad-bg); border: 1px dashed var(--ad-line); border-radius: 10px; display: grid; place-items: center; text-align: center; color: var(--ad-ink); min-height: 90px; overflow: hidden; }
.ad .lab { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.ad .dim { font-family: var(--mono); font-size: 12px; margin-top: 3px; }
.ad ins, .ad .textwidget, .ad iframe { max-width: 100%; }
.ad-leader { margin: 16px 0 4px; }
.ad-inarticle { margin: 30px 0; }
.ad-side { min-height: 250px; }
.ad-anchor { display: none; }

/* Header */
header.site { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; position: relative; flex: none; }
.brand .logo span { color: var(--paper); font-weight: 800; font-size: 16px; font-family: var(--mono); }
.brand .logo::after { content: ""; position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); clip-path: polygon(0 100%, 100% 100%, 100% 0); }
.brand .brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--ink); }
.brand .brand-name .dot { color: var(--accent); }
.brand img.custom-logo { max-height: 30px; width: auto; }
nav.menu ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; font-weight: 500; }
nav.menu a { color: var(--ink-2); padding: 4px 0; display: block; }
nav.menu a:hover { color: var(--ink); }
nav.menu li.current-menu-item > a, nav.menu li.current-menu-parent > a, nav.menu li.byseona-active > a { color: var(--accent-ink); font-weight: 700; position: relative; }
nav.menu li.current-menu-item > a::after, nav.menu li.current-menu-parent > a::after, nav.menu li.byseona-active > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.langtog { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.langtog ul { display: flex; list-style: none; margin: 0; padding: 0; }
.langtog a, .langtog button { border: none; background: transparent; font-family: var(--sans); font-size: 12.5px; font-weight: 700; color: var(--ink-3); padding: 7px 12px; cursor: pointer; display: block; }
.langtog .current-lang a, .langtog button.on { background: var(--ink); color: var(--paper); }
.theme-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.theme-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.menu-toggle { display: none; }

/* Home hero */
.hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin: 8px 0 6px; }
.lead { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: linear-gradient(160deg, var(--band), color-mix(in srgb, var(--band) 66%, #000)); color: #fff; padding: 32px 34px 30px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; transition: box-shadow .16s; }
.lead:hover { box-shadow: var(--shadow-lift); }
.lead .flags { display: flex; gap: 8px; margin-bottom: 14px; }
.flagtag { font-size: 11.5px; font-family: var(--mono); background: var(--line-2); padding: 4px 9px; border-radius: 6px; color: var(--ink-2); font-weight: 600; }
.flagtag.accent { background: var(--accent-tint); color: var(--accent-ink); }
.lead .flagtag { background: rgba(255,255,255,.15); color: #EAF4EF; }
.lead .flagtag.accent { background: var(--accent); color: #04150E; }
.lead h2 { font-size: clamp(23px, 2.8vw, 33px); line-height: 1.18; letter-spacing: -.03em; font-weight: 800; margin: 0 0 10px; text-wrap: balance; color: #fff; }
.lead p { color: #D6E0DA; font-size: 15px; margin: 0 0 16px; max-width: 50ch; }
.lead .meta { font-size: 12.5px; color: #A9B9B1; font-family: var(--mono); }
.side-lead { display: flex; flex-direction: column; gap: 12px; }
.mini { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); padding: 14px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: flex-start; flex: 1; transition: border-color .15s; }
.mini:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.mini .cat { font-family: var(--mono); font-size: 10.5px; font-weight: 700; background: var(--ink); color: var(--paper); padding: 3px 7px; border-radius: 5px; flex: none; }
.mini h3 { font-size: 14.5px; font-weight: 700; line-height: 1.34; margin: 0 0 4px; letter-spacing: -.01em; }
.mini .m { font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); }

/* Category rail */
.rail { display: flex; gap: 9px; flex-wrap: wrap; padding: 22px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.chip .n { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.on .n { color: color-mix(in srgb, var(--paper) 70%, transparent); }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 34px; margin-top: 12px; align-items: start; }
.layout.single-col { grid-template-columns: minmax(0,1fr) 300px; gap: 40px; margin-top: 26px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 0 16px; padding-bottom: 11px; border-bottom: 2px solid var(--ink); }
.sec-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.sec-head .more { font-size: 13px; color: var(--ink-2); font-weight: 600; }

/* Post feed */
.feed { display: flex; flex-direction: column; gap: 16px; }
.post { display: grid; grid-template-columns: 360px 1fr; gap: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s, border-color .16s; }
.post:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.post .thumb { background-color: var(--line-2); aspect-ratio: 1 / 1; background-size: contain; background-repeat: no-repeat; background-position: center; display: flex; align-items: flex-end; padding: 4px; }
.post .thumb .cat { font-family: var(--mono); font-size: 11px; font-weight: 700; background: rgba(0,0,0,.6); color: #fff; padding: 3px 8px; border-radius: 5px; }
.post .pb { padding: 16px 18px 15px 0; display: flex; flex-direction: column; gap: 7px; }
.post .kick { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); }
.post h3 { font-size: 17px; font-weight: 700; line-height: 1.32; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.post h3 a:hover { color: var(--accent-ink); }
.post p { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.post .pm { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--ink-3); font-family: var(--mono); }

/* Pager */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.pager .page-numbers { min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--card); font-family: var(--mono); }
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager a.page-numbers:hover { border-color: var(--ink-3); color: var(--ink); }

/* Sidebar */
aside.rail-col { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 76px; align-self: start; }
.widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; padding: 16px 18px 18px; }
.widget .widget-title, .widget h2.widgettitle { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 12px; font-weight: 700; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a:hover { color: var(--accent-ink); }
.widget select, .widget input[type=search] { width: 100%; height: 40px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper); padding: 0 12px; color: var(--ink); font-family: var(--sans); }
.widget.ad { padding: 0; }

/* Trending (manual widget markup) */
.trend a { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.trend a:last-child { border-bottom: none; }
.trend .rank { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--accent-ink); flex: none; width: 20px; }
.trend .tt { font-size: 13.5px; font-weight: 600; line-height: 1.34; letter-spacing: -.01em; }
.trend .ts { font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); margin-top: 3px; }

/* Single article */
.breadcrumb { font-size: 12.5px; color: var(--ink-3); font-family: var(--mono); display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb .cat { color: var(--accent-ink); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent-ink); }
.art-head .tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.art-head .tags .flagtag { color: var(--accent-ink); background: var(--accent-tint); }
h1.title { font-size: clamp(28px, 4vw, 42px); line-height: 1.14; letter-spacing: -.035em; font-weight: 800; margin: 0 0 16px; text-wrap: balance; }
.lede { font-size: 19px; line-height: 1.62; color: var(--ink-2); margin: 0 0 22px; font-family: var(--serif); }
.byline { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.byline .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--band); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 700; flex: none; }
.byline .who b { font-size: 14px; font-weight: 700; }
.byline .who .sub { font-size: 12.5px; color: var(--ink-3); font-family: var(--mono); }
.byline .share { margin-left: auto; display: flex; gap: 7px; }
.byline .share a { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); background: var(--card); }
.byline .share a:hover { border-color: var(--ink-3); color: var(--ink); }

/* Post content typography */
.body { max-width: 720px; }
.body p { font-size: 17px; line-height: 1.75; color: var(--ink); margin: 0 0 18px; }
.body h2 { font-size: 24px; font-weight: 800; letter-spacing: -.025em; margin: 40px 0 12px; text-wrap: balance; }
.body h3 { font-size: 19px; font-weight: 700; margin: 30px 0 10px; letter-spacing: -.02em; }
.body ul, .body ol { font-size: 17px; line-height: 1.7; padding-left: 22px; margin: 0 0 18px; }
.body li { margin-bottom: 6px; }
.body a { color: var(--accent-ink); border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.body blockquote { border-left: 3px solid var(--accent); margin: 20px 0; padding: 4px 0 4px 18px; color: var(--ink-2); font-family: var(--serif); font-size: 18px; }
.body img { border-radius: var(--radius-sm); }
.body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.body table th, .body table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.body table th { background: var(--paper); font-weight: 700; }
.body figure { margin: 24px 0; }
.body figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; text-align: center; }

/* Reusable content blocks (paste inside post) */
.radar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); overflow: hidden; margin: 26px 0; }
.radar .top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.radar .top .badge { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent-ink); background: var(--accent-tint); padding: 3px 8px; border-radius: 6px; }
.radar .rows { padding: 8px 18px; }
.radar .drow { display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.radar .drow:last-child { border-bottom: none; }
.radar .drow .from { font-family: var(--mono); color: var(--ink-3); }
.radar .drow .to { font-family: var(--mono); font-weight: 700; }
.chgpill { font-family: var(--mono); font-weight: 700; font-size: 11.5px; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.chgpill.up { background: var(--up-tint); color: var(--up); }
.chgpill.down { background: var(--down-tint); color: var(--down); }
.estimate { border: 1px solid var(--amber-line); background: var(--amber-tint); border-radius: var(--radius-sm); padding: 18px 20px; margin: 24px 0; }
.estimate .lab { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.estimate p { font-size: 15.5px !important; line-height: 1.68; margin: 0 !important; }
.source { border-top: 2px solid var(--ink); margin-top: 44px; padding-top: 20px; }
.source h3 { font-size: 15px; font-weight: 800; margin: 0 0 12px; }
.source p { font-size: 13.5px !important; color: var(--ink-2); margin: 0 0 6px !important; line-height: 1.6; }
.source .disc { font-size: 12px !important; color: var(--ink-3); }

/* Related */
.related { margin-top: 44px; }
.related h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rel { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s, border-color .16s; }
.rel:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.rel .rc { min-height: 120px; background-color: var(--line-2); background-size: contain; background-repeat: no-repeat; background-position: center; }
.rel .rb { padding: 12px 14px 14px; }
.rel .rb .kk { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); margin-bottom: 5px; }
.rel .rb h4 { font-size: 14.5px; font-weight: 700; line-height: 1.34; letter-spacing: -.01em; margin: 0; }

/* Footer */
footer.site { margin-top: 56px; border-top: 1px solid var(--line); background: var(--card); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 26px; padding: 42px 0 30px; }
.foot-grid .widget { background: none; border: none; box-shadow: none; padding: 0; }
.foot-grid h4, .foot-grid .widget-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 12px; }
.foot-grid a { display: block; font-size: 14px; color: var(--ink-2); padding: 4px 0; }
.foot-grid a:hover { color: var(--accent-ink); }
.foot-grid ul.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-grid ul.foot-links li { margin: 0; padding: 0; }
.foot-brand p { font-size: 13.5px; color: var(--ink-2); max-width: 40ch; margin: 12px 0 14px; }
.sister { font-size: 12.5px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: inline-block; }
.sister b { color: var(--ink); } .sister a { color: var(--accent-ink); font-weight: 600; }
.foot-bottom { border-top: 1px solid var(--line); padding: 18px 0; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; gap: 10px; }
.site-disclaimer { font-size: 11.5px; color: var(--ink-3); background: var(--paper); border-top: 1px solid var(--line); }
.site-disclaimer .wrap { padding: 14px 24px; line-height: 1.6; }

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

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .layout, .layout.single-col { grid-template-columns: 1fr; }
  .ad-side { position: static; }
  aside.rail-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: static; top: auto; }
  nav.menu { display: none; }
  .menu-toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; }
  nav.menu.open { display: block; position: absolute; top: 62px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 24px 16px; }
  nav.menu.open ul { flex-direction: column; gap: 4px; }
}
@media (max-width: 600px) {
  .post { grid-template-columns: 1fr; }
  .post .thumb { aspect-ratio: 4 / 3; }
  .post .pb { padding: 0 16px 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  aside.rail-col { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: 1fr; }
  h1.title { font-size: 27px; } .lede { font-size: 17px; } .body p { font-size: 16px; }
  .ad-anchor { display: grid; position: fixed; left: 0; right: 0; bottom: 0; min-height: 0; height: 62px; z-index: 50; border-radius: 0; border-left: none; border-right: none; border-bottom: none; }
  body.has-anchor-ad { padding-bottom: 62px; }
  body.has-anchor-ad .to-top { bottom: 76px; }
  .body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .radar .drow { grid-template-columns: 1fr auto auto; }
  .radar .drow .from, .radar .drow .arr { display: none; }
}
