/* Custom Goban — "the site is the board". Tokens come from design/site/build.py. */

@font-face { font-family: Montserrat; src: url("/assets/fonts/montserrat-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Montserrat; src: url("/assets/fonts/montserrat-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; src: url("/assets/fonts/inter-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --night: #141512;
  --ink: #1a1613;
  --sand: #fed89a;
  --paper: #fff6e5;
  --board: #f7b658;
  --sun: #ffde77;
  --ember: #9c3d00;
  --cream: #fff6e5;
  --cream-dim: #bdb7aa;
  --ink-dim: #4c4131;
  --line-night: #3e3e38;
  --card-night: #22221f;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: Montserrat, var(--sans);
  --gutter: 20px;
  font-family: var(--sans);
  font-size: 100%;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
:lang(ja) { --sans: Inter, "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", "Noto Sans JP", Meiryo, sans-serif; }
:lang(ko) { --sans: Inter, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Noto Sans KR", sans-serif; }
:lang(zh-Hans) { --sans: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif; }
:lang(zh-Hant) { --sans: Inter, "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Noto Sans TC", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 26px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, .display { font-family: var(--head); color: inherit; overflow-wrap: break-word; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.on-night :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--sun); }
[id] { scroll-margin-top: 84px; } /* sticky header (60px) + 24px */

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: 12px; z-index: 30; padding: 10px 16px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 600; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* ---------- type ---------- */
.display { font-size: clamp(44px, 6.1vw, 88px); line-height: 1.045; font-weight: 800; letter-spacing: -0.025em; }
.h1, main h1 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; }
.h3 { font-size: clamp(20px, 1.6vw, 22px); line-height: 1.27; font-weight: 700; letter-spacing: -0.005em; }
.eyebrow { font-family: var(--head); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-dim); }
.dim { color: var(--ink-dim); }
.small { font-size: 14px; line-height: 22px; }
.strong { font-weight: 600; }
.text-link { font-weight: 600; color: var(--ember); text-decoration: underline; }
.text-link:hover { text-decoration-thickness: 3px; }
.on-night { background: var(--night); color: var(--cream); }
.on-night .eyebrow { color: var(--sun); }
.on-night .lead, .on-night .dim { color: var(--cream-dim); }
.on-night .text-link { color: var(--sun); }
@media (min-width: 700px) { .eyebrow { font-size: 13px; } body { font-size: 17px; line-height: 28px; } }

/* ---------- buttons, stones, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 16px 30px; border: 1.5px solid transparent; border-radius: 999px; font-size: 17px; line-height: 22px; font-weight: 600; text-decoration: none; text-align: center; transition: background-color .15s, color .15s; }
.btn-md { min-height: 44px; padding: 10px 20px; font-size: 15px; line-height: 20px; }
.btn-black { background: var(--ink); color: #fff; }
.btn-black:hover { background: #3a332c; }
.btn-white { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-white:hover { background: var(--paper); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #fff0b8; }
.btn-ghost { color: var(--cream); border-color: var(--cream-dim); }
.btn-ghost:hover { background: rgba(255, 246, 229, .1); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
@media (max-width: 699px) { .actions-stack { flex-direction: column; } .actions-stack .btn { width: 100%; } }

.stone { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; font-family: var(--head); font-size: 15px; font-weight: 700; line-height: 1; }
.stone-black { background: var(--ink); color: #fff; }
.stone-white { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.on-night .stone-black { background: #000; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--cream-dim); }
.on-night .stone-white { background: var(--cream); color: var(--ink); box-shadow: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 5px 12px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 13px; line-height: 18px; font-weight: 600; }
.on-night .chip { border-width: 1px; border-color: var(--line-night); }

.rule { border: 0; border-top: 1.5px solid var(--ink); margin: 0; }
.label { display: flex; align-items: center; gap: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--night); color: var(--cream); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.brand .icon { width: 36px; height: 36px; border-radius: 9px; }
.brand .wordmark { width: auto; height: 21px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--cream-dim); font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--cream); }
.site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.site-nav .btn { margin-left: 8px; }
.wide, .site-nav a.wide:not(.btn) { display: none; }
@media (min-width: 900px) {
  .site-header .wrap { min-height: 80px; }
  [id] { scroll-margin-top: 104px; }
  .brand { gap: 12px; }
  .brand .icon { width: 48px; height: 48px; border-radius: 12px; }
  .brand .wordmark { height: 28px; }
  .site-nav { gap: 16px; }
  .site-nav a.wide:not(.btn) { display: inline-flex; }
  span.wide { display: inline; }
  .narrow { display: none; }
  .site-nav .btn { margin-left: 4px; }
}

/* ---------- footer ---------- */
.site-footer { padding: 48px 0 32px; }
.footer-top { display: grid; gap: 36px; }
.footer-brand p { margin-top: 18px; max-width: 380px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 32px 24px; }
.footer-links h2 { margin-bottom: 4px; }
.footer-links a { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: var(--cream); font-size: 15px; line-height: 24px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line-night); }
@media (min-width: 900px) {
  .site-footer { padding-top: 72px; }
  .footer-top { grid-template-columns: 1fr auto; }
  .footer-links { grid-template-columns: repeat(3, auto); gap: 72px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; margin-top: 56px; }
}

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.bg-sand { background: var(--sand); }
.bg-paper { background: var(--paper); }
.section-head { display: grid; gap: 16px; margin-bottom: 36px; }
.section-head .title { display: grid; gap: 14px; }
@media (min-width: 900px) {
  .section { padding: 112px 0; }
  .section-head { gap: 24px; margin-bottom: 64px; }
  .section-head .title { gap: 18px; }
  .section-head.split { grid-template-columns: minmax(0, 620px) minmax(0, 500px); justify-content: space-between; align-items: end; }
  .section-head:not(.split) .lead { max-width: 640px; }
}

/* ---------- home: hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-art { position: relative; z-index: 0; height: 300px; overflow: hidden; }
.hero-art img { position: absolute; top: -10px; left: -150px; width: 592px; max-width: none; height: 340px; object-fit: cover; }
.hero-art::after { content: ""; position: absolute; inset: 160px 0 0; background: linear-gradient(to bottom, rgba(20, 21, 18, 0), var(--night)); }
.hero-content { position: relative; display: grid; gap: 20px; padding: 8px 0 48px; }
.hero .lead { color: var(--cream); }
@media (min-width: 700px) {
  .hero-art { height: 420px; }
  .hero-art img { left: 0; width: 100%; height: 100%; top: 0; object-position: 70% 30%; }
  .hero-art::after { inset: 220px 0 0; }
}
@media (min-width: 1000px) {
  .hero { min-height: 700px; }
  .hero-art { position: absolute; inset: 0; height: auto; }
  .hero-art img { left: auto; right: calc(50% - 734px); width: 1254px; height: 720px; top: 0; object-position: center; }
  .hero-art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, var(--night) 12%, rgba(20, 21, 18, .88) 30%, rgba(20, 21, 18, 0) 66%); }
  .hero-art::after { inset: 0 0 auto; height: 120px; z-index: 1; background: linear-gradient(to bottom, var(--night), rgba(20, 21, 18, 0)); }
  .hero-content { padding: 104px 0 96px; gap: 28px; }
  .hero-content > * { max-width: 640px; }
  .hero-content .lead { max-width: 540px; color: #e8e0d0; }
}

/* ---------- home: boards ---------- */
.board-types { display: grid; gap: 48px; }
.board-type img { width: 100%; height: 300px; object-fit: contain; margin-bottom: 24px; }
.board-type .text { display: grid; gap: 10px; padding-top: 20px; border-top: 1.5px solid var(--ink); }
@media (min-width: 900px) {
  .board-types { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .board-type img { height: 330px; }
}

.editor { display: grid; gap: 32px; align-items: center; padding-top: 48px; border-top: 1.5px solid var(--ink); }
.editor .text { display: grid; gap: 14px; }
.steps { padding-top: 14px; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1.5px solid var(--ink); font-weight: 600; }
.steps.closed li:last-child { border-bottom: 1.5px solid var(--ink); }
@media (min-width: 900px) {
  .editor { grid-template-columns: 520px minmax(0, 1fr); gap: 72px; padding-top: 96px; }
  .editor .text { gap: 18px; }
}
.section.editor-section { padding-top: 0; }

/* ---------- home: play online ---------- */
.ways { display: grid; gap: 20px; }
.way { display: grid; gap: 16px; align-content: start; padding: 24px; border: 1px solid var(--line-night); border-radius: 12px; background: var(--card-night); }
.way h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.28; letter-spacing: -0.01em; }
.way img { width: 100%; margin-top: 2px; border-radius: 6px; }
.more-ways { display: grid; margin-top: 32px; }
.more-ways > div { display: grid; gap: 10px; align-content: start; padding: 24px 0; }
.more-ways > div + div { border-top: 1px solid var(--line-night); }
.more-ways p { font-size: 16px; line-height: 26px; }
.note { margin-top: 8px; }
@media (min-width: 900px) {
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .way { gap: 18px; padding: 36px; }
  .way img { margin-top: 6px; }
  .more-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; }
  .more-ways > div { padding: 0 32px; }
  .more-ways > div:first-child { padding-left: 0; }
  .more-ways > div:last-child { padding-right: 0; }
  .more-ways > div + div { border-top: 0; border-left: 1px solid var(--line-night); }
  .note { margin-top: 56px; }
}

/* ---------- home: details ---------- */
.details { display: grid; gap: 14px; align-items: center; }
.details .text { display: grid; gap: 14px; }
.details dl { padding-top: 14px; }
.details dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1.5px solid var(--ink); }
.details dl div:last-child { border-bottom: 1.5px solid var(--ink); }
.details dd { font-weight: 600; }
.details .board-wide { display: none; }
@media (min-width: 900px) {
  .details { grid-template-columns: 440px minmax(0, 1fr); gap: 96px; }
  .details .text { gap: 18px; }
  .details .board-wide { display: block; }
  .details .board-narrow { display: none; }
  .details dl div { grid-template-columns: 150px minmax(0, 1fr); }
}

/* ---------- posts ---------- */
.post-grid { display: grid; gap: 40px; }
.post-card { position: relative; display: grid; gap: 10px; align-content: start; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover h3 a { text-decoration: underline; }
.post-card p.dim { margin-top: 0; }
.blog-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.blog-head .title { display: grid; gap: 14px; }
.all-posts-narrow { margin-top: 32px; }
.all-posts-wide { display: none; }
@media (min-width: 900px) {
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 32px; }
  .blog-head { margin-bottom: 48px; }
  .all-posts-narrow { display: none; }
  .all-posts-wide { display: inline; }
}

/* ---------- call to action band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; min-height: 420px; display: flex; align-items: center; }
.cta-band > img { position: absolute; top: 0; left: 50%; height: 100%; width: auto; max-width: none; transform: translateX(-62%); }
.cta-band::before { content: ""; position: absolute; z-index: 1; inset: 0; background: rgba(20, 21, 18, .72); }
.cta-band .wrap { position: relative; z-index: 2; display: grid; gap: 24px; padding: 56px 0; }
.cta-band h2 { max-width: 800px; }
@media (min-width: 900px) {
  .cta-band { min-height: 440px; }
  .cta-band > img { left: 0; width: 100%; height: 100%; object-fit: cover; transform: none; }
  .cta-band::before { background: linear-gradient(to right, rgba(20, 21, 18, .95) 5%, rgba(20, 21, 18, .6), rgba(20, 21, 18, .15) 95%); }
  .cta-band .wrap { padding: 104px 0; }
}

/* ---------- page heading (blog, simple pages, policies) ---------- */
.page { padding: 48px 0 64px; }
.page-head { display: grid; gap: 14px; }
.page-head .lead { max-width: 560px; }
@media (min-width: 900px) {
  .page { padding: 88px 0 112px; }
  .page-head { gap: 18px; }
}

/* blog list */
.featured { position: relative; display: grid; gap: 24px; align-items: center; margin: 40px 0; }
.featured img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 6px; }
.featured .text { display: grid; gap: 14px; }
.featured h2 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.24; letter-spacing: -0.01em; }
.featured h2 a { text-decoration: none; }
.featured h2 a:hover { text-decoration: underline; }
.blog-list { padding-top: 40px; border-top: 1.5px solid var(--ink); }
@media (min-width: 900px) {
  .featured { grid-template-columns: 680px minmax(0, 1fr); gap: 56px; margin: 64px 0; }
  .blog-list { padding-top: 64px; }
}

/* ---------- article ---------- */
.article { padding: 40px 0 64px; }
.article .col { width: min(720px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.article .col-wide { width: min(960px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.article-head { display: grid; gap: 16px; }
.article-head .back { justify-self: start; }
.article-cover { margin-block: 32px; }
.article-cover img { width: 100%; border-radius: 6px; }
.prose { font-size: 17px; line-height: 28px; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 48px; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.prose h3 { margin-top: 32px; font-size: clamp(20px, 1.6vw, 22px); line-height: 1.27; font-weight: 700; }
.prose h2 + *, .prose h3 + * { margin-top: 16px; }
.prose a { color: var(--ember); font-weight: 600; overflow-wrap: anywhere; }
.prose ul { display: grid; gap: 12px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.prose ul li:nth-child(even)::before { background: #fff; }
.prose ol { padding-left: 1.4em; list-style: decimal; display: grid; gap: 8px; }
.prose figure img { width: auto; max-height: 640px; margin-inline: auto; border-radius: 6px; }
.prose figure.board { padding: 24px; border-radius: 6px; background: var(--sand); }
.prose figcaption { margin-top: 10px; color: var(--ink-dim); font-size: 14px; line-height: 22px; }
.video { position: relative; display: block; overflow: hidden; border-radius: 6px; background: var(--night); color: var(--cream); text-decoration: none; }
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .72; transition: opacity .15s; }
.video:hover img { opacity: .85; }
.video .play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--sun); }
.video .play::before { content: ""; margin-left: 5px; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--ink); }
.video .caption { position: absolute; left: 20px; right: 20px; bottom: 16px; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.prose .video { color: var(--cream); font-weight: 400; }
.post-cta { display: grid; gap: 20px; justify-items: start; margin-top: 40px; padding: 28px; border-radius: 12px; }
.post-cta h2 { font-size: clamp(20px, 2vw, 28px); line-height: 1.28; font-weight: 700; letter-spacing: -0.01em; }
.keep-reading { margin-top: 48px; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.keep-reading .post-grid { margin-top: 24px; gap: 32px; }
@media (min-width: 700px) { .prose { font-size: 18px; line-height: 30px; } .prose > * + * { margin-top: 24px; } }
@media (min-width: 900px) {
  .article { padding: 72px 0 104px; }
  .article-head { gap: 20px; }
  .article-cover { margin-block: 48px 56px; }
  .prose figure.board { padding: 40px; }
  .video .play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
  .post-cta { margin-top: 64px; padding: 48px; }
  .keep-reading { margin-top: 80px; }
  .keep-reading .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- simple page (discord, about, contact) ---------- */
.simple { display: grid; gap: 40px; align-items: center; }
.simple .text { display: grid; gap: 16px; align-content: start; justify-items: start; }
.simple .text > :not(.btn) { justify-self: stretch; }
.simple figure img { width: 100%; border-radius: 8px; }
.simple figcaption { margin-top: 10px; }
.simple .steps { padding-block: 12px; }
@media (min-width: 900px) {
  .simple { grid-template-columns: minmax(0, 1fr) 440px; gap: 96px; }
  .simple .text { gap: 20px; }
  .page.simple-page { padding-top: 96px; }
}

/* ---------- policy ---------- */
.policy-head { display: grid; gap: 14px; padding-bottom: 32px; border-bottom: 1.5px solid var(--ink); }
.policy-head h1 { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; hyphens: auto; }
.languages { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.languages a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 13px; line-height: 18px; font-weight: 600; text-decoration: none; }
.languages a:hover { background: var(--sand); }
.languages a[aria-current] { background: var(--ink); color: #fff; }
.policy-head .note-original { max-width: 720px; }
.policy-layout { display: grid; gap: 32px; padding-top: 32px; }
.toc-details { border: 1.5px solid var(--ink); border-radius: 6px; }
.toc-details summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 16px; font-weight: 600; cursor: pointer; list-style: none; }
.toc-details summary::-webkit-details-marker { display: none; }
.toc-details summary::after { content: "↓"; color: var(--ink-dim); }
.toc-details[open] summary::after { content: "↑"; }
.toc-details ol { padding: 0 16px 16px; }
.toc ol { display: grid; gap: 12px; font-size: 15px; line-height: 22px; }
.toc a { color: var(--ink-dim); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.toc-side { display: none; }
.policy-text { font-size: 16px; line-height: 26px; min-width: 0; overflow-wrap: break-word; }
.policy-text > * + * { margin-top: 18px; }
.policy-text h2 { margin-top: 40px; font-size: clamp(22px, 2vw, 28px); line-height: 1.28; font-weight: 700; letter-spacing: -0.01em; }
.policy-text h3 { margin-top: 28px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.3; font-weight: 700; }
.policy-text h2 + *, .policy-text h3 + * { margin-top: 14px; }
.policy-text a { color: var(--ember); overflow-wrap: anywhere; }
.policy-text ul { display: grid; gap: 10px; }
.policy-text ul li { position: relative; padding-left: 24px; }
.policy-text ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
@media (min-width: 700px) { .policy-text { font-size: 17px; line-height: 28px; } .policy-text > * + * { margin-top: 22px; } }
@media (min-width: 1000px) {
  .policy-head { gap: 18px; padding-bottom: 56px; }
  .policy-layout { grid-template-columns: 280px minmax(0, 720px); gap: 120px; padding-top: 56px; }
  .toc-details { display: none; }
  .toc-side { display: block; position: sticky; top: 32px; align-self: start; max-height: calc(100vh - 64px); overflow: auto; }
  .toc-side .eyebrow { margin-bottom: 12px; }
  .policy-text > :first-child { margin-top: 0; }
}

/* ---------- 404 ---------- */
.not-found { display: grid; gap: 20px; justify-items: center; text-align: center; padding: 56px 0 72px; }
.not-found .board404 { width: min(624px, 100%); margin-bottom: 8px; }
.not-found .lead { max-width: 520px; }
@media (min-width: 900px) { .not-found { gap: 24px; padding: 96px 0 120px; } .not-found .board404 { margin-bottom: 24px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
