/* ==========================================================================
   Ohemi · inner pages (legal, blog, blog post)
   Loaded after styles.css, which holds the tokens, header, footer and buttons.
   ========================================================================== */

.page-hero { position: relative; padding: 64px 0 56px; overflow: clip; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 85% -10%, #e9e1ff, transparent 70%), radial-gradient(500px 260px at 0% 100%, #fde6ef, transparent 70%); }
.page-hero h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -0.04em; }
.page-hero .sub { max-width: 640px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--purple); }
.crumbs span[aria-hidden] { color: #c9c3d6; }

/* ---------- Reading progress ---------- */
.read-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 60; transform-origin: left; transform: scaleX(0); background: var(--purple); }

/* ---------- Table of contents (legal + post) ---------- */
.toc { position: sticky; top: 96px; align-self: start; }
.toc-title { font-family: var(--font-head); font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; border-left: 2px solid var(--line); }
.toc a { position: relative; display: block; padding: 7px 12px 7px 16px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; font-size: 14.5px; color: var(--muted); line-height: 1.35; transition: color .2s, border-color .2s, background .2s; border-radius: 0 8px 8px 0; }
.toc a:hover { color: var(--ink); background: #f6f4fa; }
.toc a.on { color: var(--purple-700); border-left-color: var(--purple); font-weight: 600; background: var(--purple-50); }
.toc-num a::before { counter-increment: toc; content: counter(toc) ". "; color: #b9b2c8; font-variant-numeric: tabular-nums; }
.toc-num a.on::before { color: var(--purple); }

/* ==========================================================================
   LEGAL
   ========================================================================== */
.legal-switch { display: inline-flex; gap: 4px; padding: 5px; margin-top: 28px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.legal-switch a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 9px 18px; border-radius: 10px; color: var(--muted); transition: background .2s, color .2s; }
.legal-switch a:hover { color: var(--ink); }
.legal-switch a[aria-current="page"] { background: var(--ink); color: #fff; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.legal-meta b { color: var(--ink-2); font-weight: 700; }

.template-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--butter); color: var(--st-warm-d); font-size: 15px; margin-bottom: 36px; }
.template-note strong { display: block; color: #4d3b07; }
.template-note .tn-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fff; font-weight: 800; }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; padding: 20px 0 110px; }
.legal-body { max-width: 760px; }
.legal-body .legal-intro { font-size: 18px; color: var(--ink); margin-bottom: 40px; }
.legal-body .contact-card + p { margin-top: 18px; }
.legal-body h2 + p, .legal-body h2 + ul { margin-top: 14px; }
.legal-body section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.legal-body section:last-of-type { border-bottom: 0; }
.legal-body h2 { font-size: 28px; display: flex; gap: 14px; align-items: baseline; }
.legal-body h2 .n { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--lilac); color: var(--purple-700); font-size: 15px; letter-spacing: 0; transform: translateY(-3px); }
.legal-body h3 { font-size: 18px; margin: 24px 0 8px; letter-spacing: -0.015em; }
.legal-body p, .legal-body li { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.legal-body p + p, .legal-body ul + p, .legal-body table + p { margin-top: 16px; }
.legal-body ul { padding-left: 0; list-style: none; margin: 14px 0 0; display: grid; gap: 8px; }
.legal-body ul li { position: relative; padding-left: 22px; }
.legal-body ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--st-practice); }
.legal-body a { color: var(--purple); font-weight: 600; }
.in-short { display: flex; gap: 12px; margin: 16px 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--purple-50); box-shadow: inset 0 0 0 1px #e7e0fb; }
.in-short b { flex: none; font-family: var(--font-head); font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--purple); padding-top: 3px; }
.in-short p { color: var(--ink) !important; font-weight: 500; margin: 0 !important; }
.ph { background: #fff3c4; color: #6b5310; border-radius: 5px; padding: 0 5px; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.legal-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 16px; font-size: 15px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: #f7f6fa; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table td:first-child { font-weight: 700; color: var(--ink); }
.contact-card { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: 20px; background: #fff; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); margin-top: 18px; }
.contact-card img { width: 52px; height: 52px; }
.contact-card p { margin: 0 !important; }
.legal-actions { display: flex; gap: 10px; margin-top: 18px; }
.legal-actions .btn { --bh: 40px; font-size: 14.5px; }

/* ==========================================================================
   BLOG LIST
   ========================================================================== */
.blog-hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: end; }
.search { position: relative; }
.search input { width: 100%; height: 54px; border: 0; border-radius: 16px; padding: 0 18px 0 48px; font: inherit; font-size: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm); transition: box-shadow .2s; }
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--purple), 0 0 0 4px rgba(112,86,200,.12); }
.search svg { position: absolute; left: 17px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 36px; }
.cat-chips button { border: 0; background: #fff; border-radius: 99px; padding: 9px 16px; font-weight: 700; font-size: 14.5px; box-shadow: inset 0 0 0 1.5px var(--line); transition: all .25s var(--ease-out); }
.cat-chips button:hover { transform: translateY(-1px); }
.cat-chips button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }

.bcover { position: relative; overflow: hidden; background: var(--bg-c, var(--lilac)); display: grid; place-items: center; }
.bcover > img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.bcover > img.art { width: 34%; max-width: 120px; filter: drop-shadow(0 14px 22px rgba(74,53,150,.22)); transition: transform .6s var(--ease-spring); }
.bcover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.5) 1.2px, transparent 1.2px); background-size: 18px 18px; opacity: .6; pointer-events: none; }
.bcover:has(img.photo)::after { display: none; }

.featured { display: grid; grid-template-columns: 1.15fr 1fr; border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); text-decoration: none; margin-bottom: 40px; transition: transform .4s var(--ease-out), box-shadow .4s; }
.featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featured:hover .bcover > img.photo { transform: scale(1.04); }
.featured .bcover { min-height: 380px; }
.featured-body { padding: 44px 42px; display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 14px; }
.featured-body p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.featured-flag { position: absolute; top: 18px; left: 18px; z-index: 1; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 99px; box-shadow: var(--shadow); }

.cat-tag { display: inline-flex; align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 4px 10px; border-radius: 99px; background: var(--lilac); color: var(--purple-700); }
.cat-tag[data-c="Lesson ideas"] { background: var(--butter); color: var(--st-warm-d); }
.cat-tag[data-c="Mixed levels"] { background: var(--mint); color: var(--st-input-d); }
.cat-tag[data-c="Online teaching"] { background: #e5ecfb; color: #2c4f9e; }
.cat-tag[data-c="Business English"] { background: var(--peach); color: var(--st-prod-d); }
.cat-tag[data-c="Product news"] { background: #fde3ee; color: #a4104f; }

.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; white-space: nowrap; margin-top: 22px; font-size: 14px; color: var(--muted); }
.byline .av-o { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fde3ee; }
.byline .av-o img { width: 22px; }
.byline b { color: var(--ink); font-weight: 700; }
.byline .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: #c9c3d6; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); text-decoration: none; transition: transform .35s var(--ease-out), box-shadow .35s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.post-card:hover .bcover > img.photo { transform: scale(1.05); }
.post-card:hover .bcover > img.art { transform: scale(1.1) rotate(-6deg); }
.post-card .bcover { aspect-ratio: 16 / 10; }
.post-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 20px; margin-top: 12px; line-height: 1.2; }
.post-card p { color: var(--muted); font-size: 15px; margin-top: 8px; line-height: 1.5; }
.post-card .byline { margin-top: auto; padding-top: 18px; font-size: 13px; }
.post-card[hidden] { display: none; }
.post-card.pop { animation: tilePop .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
.blog-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.blog-empty img { width: 72px; margin: 0 auto 14px; }
.blog-empty b { display: block; color: var(--ink); font-family: var(--font-head); font-size: 20px; margin-bottom: 4px; }
.load-more { display: flex; justify-content: center; margin-top: 40px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; font-weight: 700; color: var(--ink-2); transition: all .2s; }
.pagination a:hover { box-shadow: inset 0 0 0 1.5px #d2c7f3; color: var(--purple); }
.pagination a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; }

.newsletter { margin: 100px 0 110px; }
.nl-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 48px 52px; border-radius: 32px; background: var(--ink); color: #fff; overflow: hidden; }
.nl-card::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(112,86,200,.55), transparent 65%); }
.nl-card h2 { color: #fff; font-size: clamp(28px, 3vw, 38px); position: relative; }
.nl-card p { color: #bdb6cc; margin-top: 10px; position: relative; }
.nl-form { position: relative; display: flex; gap: 10px; }
.nl-form input { flex: 1; min-width: 0; height: 54px; border: 0; border-radius: 14px; padding: 0 18px; font: inherit; background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.2); }
.nl-form input::placeholder { color: #a9a1bb; }
.nl-form input:focus { outline: none; box-shadow: inset 0 0 0 2px #fff; }
.nl-form input.invalid { box-shadow: inset 0 0 0 2px #ffb3d4; animation: shake .35s; }
.nl-msg { position: relative; margin-top: 10px; font-size: 14px; color: #cfc5f3; min-height: 1.4em; }

/* ==========================================================================
   BLOG POST
   ========================================================================== */
.post-head { max-width: 820px; }
.post-head h1 { font-size: clamp(36px, 4.8vw, 58px); margin-top: 16px; }
.post-dek { font-size: 21px; color: var(--ink-2); margin-top: 18px; line-height: 1.5; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.post-meta .byline { margin: 0; font-size: 15px; }
.share { display: flex; gap: 8px; }
.share a, .share button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; transition: all .2s; }
.share a:hover, .share button:hover { color: var(--purple); box-shadow: inset 0 0 0 1.5px #d2c7f3; transform: translateY(-2px); }
.post-hero-img { margin: 0 0 56px; }
.post-hero-img img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--lilac); }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 72px; padding-bottom: 40px; }
.prose { max-width: 700px; font-size: 18.5px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: 30px; margin-top: 52px; color: var(--ink); scroll-margin-top: 96px; }
.prose h3 { font-size: 21px; margin-top: 34px; color: var(--ink); }
.prose h3 { scroll-margin-top: 96px; }
.article-toc { padding: 22px 24px; border-radius: 18px; background: var(--purple-50); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.5; }
.article-toc summary { color: var(--ink); font-family: var(--font-head); font-weight: 800; cursor: pointer; }
.article-toc nav { margin-top: 16px; }
.prose .article-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.prose .article-toc li { padding-left: 0; counter-increment: none; }
.prose .article-toc li::before { content: none; }
.article-toc a { display: block; text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }
.article-toc a:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 2px; }
.prose a { color: var(--purple); font-weight: 600; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--st-practice); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 42px; counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--lilac); color: var(--purple-700); font-family: var(--font-head); font-weight: 800; font-size: 14px; }
.lead-p { font-size: 21px; color: var(--ink); line-height: 1.6; }
.prose blockquote { margin: 40px 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--pink); font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.35; letter-spacing: -0.02em; color: var(--ink); }
.callout { display: flex; gap: 14px; padding: 20px 22px; border-radius: 18px; background: var(--mint); color: var(--st-input-d); font-size: 16.5px; line-height: 1.6; }
.callout img { flex: none; width: 36px; height: 36px; }
.callout b { color: #1d4535; }
.prose figure { margin: 36px 0; }
.prose figure img { width: 100%; height: auto; border-radius: 20px; aspect-ratio: 16 / 10; object-fit: cover; background: var(--lilac); }
.prose figure img[src$=".svg"] { aspect-ratio: auto; object-fit: contain; }
.prose figcaption { font-size: 14.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.plan-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 16px; }
.plan-table th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--muted); padding: 0 14px; }
.plan-table td { background: #fff; padding: 12px 14px; box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); color: var(--ink); }
.plan-table td:first-child { border-radius: 12px 0 0 12px; box-shadow: inset 1px 1px 0 var(--line), inset 0 -1px 0 var(--line), inset 4px 0 0 var(--c); padding-left: 18px; }
.plan-table td:last-child { border-radius: 0 12px 12px 0; box-shadow: inset -1px 1px 0 var(--line), inset 0 -1px 0 var(--line); text-align: right; font-weight: 700; white-space: nowrap; }
/* Markdown output (compiled blog posts) */
.blog-table-wrap { overflow-x: auto; margin: 30px 0; }
.blog-table-wrap table { min-width: 540px; }
.blog-table-wrap table:has(thead th:nth-child(2):last-child) { min-width: 0; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: #f7f6fa; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 700; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose h2 + p, .prose h3 + p, .prose h3 + ul { margin-top: 14px; }
.prose em { font-style: italic; }
.prose img { width: 100%; border-radius: 20px; }

.takeaways { padding: 26px 28px; border-radius: 22px; background: var(--purple-50); box-shadow: inset 0 0 0 1px #e7e0fb; }
.takeaways h3 { margin: 0 0 12px !important; font-size: 19px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.post-tags a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: #f3f1f7; color: var(--ink-2); }
.post-tags a:hover { background: var(--lilac); color: var(--purple-700); }
.author-box { display: flex; gap: 18px; align-items: center; margin-top: 36px; padding: 24px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.author-box .av-o { display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 50%; background: #fde3ee; }
.author-box .av-o img { width: 38px; }
.author-box b { font-family: var(--font-head); font-size: 18px; }
.author-box p { color: var(--muted); font-size: 15px; margin-top: 2px; }

.side { position: sticky; top: 96px; align-self: start; display: grid; gap: 28px; }
.side-cta { padding: 24px; border-radius: 22px; background: var(--purple); color: #fff; box-shadow: var(--shadow); }
.side-cta img { width: 48px; margin-bottom: 10px; }
.side-cta h3 { color: #fff; font-size: 20px; }
.side-cta p { color: #ddd5fb; font-size: 14.5px; margin: 8px 0 16px; }
.side-cta .btn { --bh: 44px; font-size: 15px; width: 100%; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.post-nav a { display: block; padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: all .25s var(--ease-out); }
.post-nav a:hover { box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transform: translateY(-2px); }
.post-nav small { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.prose .post-nav a { font-weight: inherit; }
.post-nav b { color: var(--ink); display: block; font-family: var(--font-head); font-size: 16.5px; margin-top: 4px; line-height: 1.3; letter-spacing: -0.01em; }
.post-nav a:last-child { text-align: right; }
.related { padding: 90px 0 0; }
.related h2 { font-size: 34px; margin-bottom: 30px; }

.copy-toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; z-index: 80; background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px; padding: 11px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .3s, translate .4s var(--ease-spring); }
.copy-toast.show { opacity: 1; translate: -50% 0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .legal-layout .toc { position: static; margin-bottom: 36px; padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
  .legal-layout .toc ol { grid-template-columns: 1fr 1fr; border-left: 0; }
  .legal-layout .toc a { border-left: 0; margin: 0; border-radius: 8px; }
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .side { position: static; grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured .bcover { min-height: 280px; }
  .blog-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .nl-card { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .page-hero { padding: 40px 0 36px; }
  .legal-layout .toc ol { grid-template-columns: 1fr; }
  .legal-body h2 { font-size: 23px; }
  .legal-table { font-size: 14px; }
  .legal-table th, .legal-table td { padding: 10px; }
  .legal-table th:last-child, .legal-table td:last-child { display: none; }
  .legal-meta { flex-direction: column; gap: 4px; }
  .legal-switch a { padding: 9px 12px; font-size: 14px; }
  .post-grid { grid-template-columns: 1fr; }
  .featured-body { padding: 28px 24px; }
  .side { grid-template-columns: 1fr; }
  .side .toc { display: none; }
  .prose .article-toc ol { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .prose blockquote { font-size: 22px; }
  .post-dek { font-size: 18px; }
  .post-hero-img img { aspect-ratio: 4 / 3; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a:last-child { text-align: left; }
  .nl-card { padding: 34px 24px; border-radius: 26px; }
  .nl-form { flex-direction: column; }
  .contact-card { flex-direction: column; align-items: flex-start; }
}
@media print {
  .site-header, .site-footer, .toc, .legal-switch, .legal-actions, .template-note, .read-progress { display: none !important; }
  .legal-layout { display: block; padding: 0; }
  .page-hero::before { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
