/* Static public pages (/about, /blog, /blog/<slug>), rendered by site/ (Astro, site/src/lib/doc-pages.ts).
   Values follow the landing page (landing/style.css) and the app tokens (styles/tokens.css). */
:root{
  color-scheme:light;
  /* Values that equal a design token (styles/tokens.css, inlined in each page's <style> before this sheet) refer to it, with the old value as fallback (this file is fetched separately from the HTML, so a page and its CSS can come from different releases). */
  --ink:var(--nw-user-message-foreground,#1F1F1F); --t2:hsl(var(--muted-foreground,0 0% 40%)); --t3:var(--nw-text-3,#767676); --ph:var(--nw-placeholder,#8A8A8A);
  --line-1:var(--nw-line-1,#EDEDED); --line-2:var(--nw-line-2,#E0E0E0); --soft:var(--nw-selected,#F2F2F2); --desk:#F7F7F7;  /* no exact hex token: hsl(0 0% 97%) rounds to 247.35, which antialiases 1 level off */
  --serif:"Newsreader","Iowan Old Style","Palatino Linotype",Georgia,serif;
  --sans:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --gutter:32px;
  --header:56px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--header) + 24px)}
body{margin:0;background:#FFFFFF;color:var(--ink);font:400 16px/1.6 var(--sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
a{color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:4px}
/* Same thin scrollbar as the app (styles/utilities.css) and the landing page (landing/style.css). */
:root ::-webkit-scrollbar{width:10px;height:10px}
:root ::-webkit-scrollbar-track{background:transparent}
:root ::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:5px;background:rgba(31,31,31,.1);background-clip:content-box}
:root ::-webkit-scrollbar-thumb:hover{background:var(--t2);background-clip:content-box}
h1,h2,h3{text-wrap:balance}
p,li,dd{text-wrap:pretty}

/* ---------- shared type ---------- */
h1{margin:0;font:400 48px/1.15 var(--serif);letter-spacing:-.01em}
.lead{font-size:18px;line-height:28px;color:var(--t2)}
.eyebrow{margin:0;font-size:13px;line-height:18px;color:var(--t3)}
.article-heading .eyebrow,.posts>h2,.about-toc p,aside summary{font:600 12px/16px var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--t3)}

/* Links inside running text: ink, hairline underline that darkens on hover. */
.about-content a,.reading-layout article a,.about-useful-links a,.about-text-link{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:rgba(31,31,31,.28);text-underline-offset:3px;transition:text-decoration-color .15s}
.about-content a:hover,.reading-layout article a:hover,.about-useful-links a:hover,.about-text-link:hover{text-decoration-color:var(--ink)}

/* ---------- buttons ---------- */
.about-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;padding:0 20px;border-radius:999px;background:var(--ink);color:#FFFFFF;font:600 15px/1 var(--sans);text-decoration:none;white-space:nowrap;transition:background .15s}
.about-button:hover{background:#3A3A3A}

/* ---------- header (same as the landing page) ---------- */
.skip{position:absolute;left:-9999px;top:8px;z-index:40;padding:8px 16px;border-radius:999px;background:#FFFFFF;color:var(--ink);font:500 14px/20px var(--sans);text-decoration:none;box-shadow:0 1px 4px rgba(2,4,26,.08)}
.skip:focus{left:16px}
.site-header{position:sticky;top:0;z-index:20;height:var(--header);display:flex;align-items:center;justify-content:space-between;padding:0 var(--gutter);background:rgba(255,255,255,.85);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}
.nw-logo{display:inline-flex;align-items:center;color:var(--ink);text-decoration:none}
.nw-logo svg{display:block;height:19px;width:auto;fill:currentColor}
/* Navigation, dropdowns, phone menu, Sign in / Start buttons: styles/site-header.css (inlined by layouts/Page.astro). */

/* ---------- footer: the landing page's own, styles/site-footer.css (inlined by site/) ---------- */
main{padding-bottom:64px}

/* ---------- writing guides: index ---------- */
.hero{max-width:800px;margin:0 auto;padding:80px var(--gutter) 64px;text-align:center}
.hero .lead{max-width:640px;margin:16px auto 0}
.posts{width:calc(100% - 2 * var(--gutter));max-width:800px;margin:0 auto}
.posts>h2{margin:0 0 12px}
.topics{margin-bottom:48px}
.topics ul{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.topics a{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 14px;border:1px solid var(--line-1);border-radius:999px;font-size:14px;line-height:20px;color:var(--t2);text-decoration:none}
.topics a:hover{color:var(--ink);border-color:var(--line-2)}
.topics a span{color:var(--t3)}
.post-row{display:grid;grid-template-columns:40px minmax(0,1fr) 20px;gap:16px;padding:24px 0;border-top:1px solid var(--line-1);color:inherit;text-decoration:none}
.post-row:last-child{border-bottom:1px solid var(--line-1)}
.number{font-size:13px;line-height:18px;color:var(--t3);font-variant-numeric:tabular-nums}
.post-row h2{margin:6px 0;font:400 24px/1.3 var(--serif);letter-spacing:-.005em}
.post-row p{margin:0;font-size:15px;line-height:24px;color:var(--t2)}
.post-row>span:last-child{font-size:16px;line-height:18px;color:var(--t3);transition:color .15s,transform .15s}
.post-row:hover h2{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.post-row:hover>span:last-child{color:var(--ink);transform:translate(2px,-2px)}

/* ---------- writing guides: article ---------- */
.article-heading,.reading-layout{width:calc(100% - 2 * var(--gutter));max-width:964px;margin:0 auto}
/* The heading lines up with the article column (TOC 220px + gap 64px). */
.article-heading{padding:48px 0 48px 284px}
.article-heading>a:first-child{display:inline-flex;align-items:center;min-height:32px;font-size:14px;color:var(--t2);text-decoration:none}
.article-heading>a:first-child:hover{color:var(--ink)}
.article-heading .eyebrow{margin-top:24px}
.article-heading h1{margin-top:12px;font-size:40px;line-height:1.2}
.article-heading .lead{margin:16px 0 0}
.meta{margin:16px 0 0;font-size:13px;line-height:18px;color:var(--t3)}
.disclosure{margin:20px 0 0;padding:12px 16px;border-radius:12px;background:var(--desk);font-size:14px;line-height:22px;color:var(--t2)}
.reading-layout{display:grid;grid-template-columns:220px minmax(0,680px);gap:64px;padding-top:48px;border-top:1px solid var(--line-1)}
aside{position:sticky;top:calc(var(--header) + 32px);align-self:start}
aside summary{display:flex;align-items:center;gap:8px;padding:4px 0 8px;cursor:pointer;list-style:none}
aside summary::-webkit-details-marker{display:none}
aside summary::after,.about-faq summary::after{content:"";flex:none;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s}
aside details[open] summary::after,.about-faq details[open] summary::after{transform:translateY(1px) rotate(-135deg)}
aside a{display:block;padding:6px 0;font-size:14px;line-height:20px;color:var(--t2);text-decoration:none}
aside a:hover{color:var(--ink)}
.reading-layout article{min-width:0;font-size:17px;line-height:28px;overflow-wrap:anywhere}
.reading-layout article h2{margin:56px 0 16px;font:400 30px/1.25 var(--serif);letter-spacing:-.01em}
.reading-layout article>h2:first-child{margin-top:0}
.reading-layout article h3{margin:36px 0 12px;font:600 18px/26px var(--sans)}
.reading-layout article p{margin:16px 0}
.reading-layout article ul,.reading-layout article ol{margin:16px 0;padding-left:24px}
.reading-layout article li{margin:8px 0;padding-left:4px}
.reading-layout article li::marker{color:var(--t3)}
.reading-layout article strong{font-weight:600}
.reading-layout article blockquote{margin:24px 0;padding:2px 0 2px 20px;border-left:2px solid var(--line-2);color:var(--t2)}
.reading-layout article hr{margin:40px 0;border:0;border-top:1px solid var(--line-1)}
.reading-layout article code{padding:1px 5px;border-radius:4px;background:var(--soft);font:.88em var(--mono)}
.table-scroll{margin:24px 0;overflow:auto}
.table-scroll:focus-visible{outline-offset:4px}
table{width:100%;min-width:560px;border-collapse:collapse;font-size:14px;line-height:22px;overflow-wrap:normal}
th,td{padding:12px 14px;border-bottom:1px solid var(--line-1);text-align:left;vertical-align:top;overflow-wrap:break-word}
th:first-child,td:first-child{padding-left:0}
th:last-child,td:last-child{padding-right:0}
th{font-size:13px;font-weight:600;color:var(--t2);border-bottom-color:var(--line-2)}
.related{margin-top:64px;padding-top:40px;border-top:1px solid var(--line-1)}
.reading-layout article .related h2{margin:0 0 12px;font-size:24px}
.reading-layout article .related a{display:block;width:fit-content;margin:10px 0;font-size:16px;line-height:24px}

/* ---------- breadcrumbs and shared blocks of the content pages (site/src/lib/sections/blocks.ts) ---------- */
.breadcrumbs{width:calc(100% - 2 * var(--gutter));max-width:964px;margin:0 auto;padding-top:24px}
.breadcrumbs ol{display:flex;flex-wrap:wrap;gap:4px 8px;margin:0;padding:0;list-style:none;font-size:13px;line-height:18px;color:var(--t3)}
.breadcrumbs li{display:flex;align-items:center;min-height:24px}
.breadcrumbs li+li::before{content:"/";margin-right:8px;color:var(--line-2)}
.breadcrumbs a{display:inline-flex;align-items:center;min-height:24px;color:var(--t2);text-decoration:none}
.breadcrumbs a:hover{color:var(--ink);text-decoration:underline}
.reading-layout.single{display:block;max-width:720px;padding-top:0;border-top:0}
.card-section,.faq-block,.related-links,.page-cta{width:calc(100% - 2 * var(--gutter));max-width:964px;margin:56px auto 0}
.card-section>h2,.faq-block>h2,.related-links>h2{margin:0 0 16px;font:400 28px/1.25 var(--serif)}
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.card{display:block;padding:20px;border:1px solid var(--line-1);border-radius:16px;color:inherit;text-decoration:none;transition:border-color .15s}
.card:hover{border-color:var(--line-2)}
.card h3{margin:0;font:600 16px/24px var(--sans)}
.card p{margin:6px 0 0;font-size:14px;line-height:22px;color:var(--t2)}
.faq-list details{border-top:1px solid var(--line-1)}
.faq-list details:last-child{border-bottom:1px solid var(--line-1)}
.faq-list summary{padding:16px 0;font:500 16px/24px var(--sans);cursor:pointer}
.faq-list details p{margin:0 0 16px;font-size:15px;line-height:24px;color:var(--t2)}
.related-links ul{margin:0;padding-left:20px}
.related-links li{margin:8px 0}
.page-cta{text-align:center}

/* ---------- about ---------- */
.about-hero{max-width:800px;margin:0 auto;padding:48px var(--gutter) 64px;text-align:center}
.about-hero h1{margin:8px 0 0}
.about-definition{max-width:680px;margin:16px auto 0;font-size:18px;line-height:28px;color:var(--t2)}
.about-operator{margin:12px 0 0;font-size:14px;line-height:20px;color:var(--t3)}
.about-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:32px}
.about-actions a:not(.about-button){display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 20px;border:1px solid var(--line-2);border-radius:999px;font:500 15px/1 var(--sans);color:var(--ink);text-decoration:none;white-space:nowrap;transition:background .15s}
.about-actions a:not(.about-button):hover{background:var(--desk)}
.about-layout{width:calc(100% - 2 * var(--gutter));max-width:964px;margin:0 auto;display:grid;grid-template-columns:220px minmax(0,680px);gap:64px;padding-top:56px;border-top:1px solid var(--line-1)}
.about-toc{position:sticky;top:calc(var(--header) + 32px);align-self:start;display:flex;flex-direction:column}
.about-toc p{margin:4px 0 8px}
.about-toc a{display:flex;align-items:baseline;gap:12px;padding:6px 0;font-size:14px;line-height:20px;color:var(--t2);text-decoration:none}
.about-toc a:hover{color:var(--ink)}
.about-toc span{flex:none;min-width:16px;font-size:12px;color:var(--ph);font-variant-numeric:tabular-nums}
.about-content{min-width:0;font-size:17px;line-height:28px}
.about-content section+section{margin-top:72px}
.about-content h2{margin:0 0 16px;font:400 30px/1.25 var(--serif);letter-spacing:-.01em}
.about-content p{margin:16px 0}
.about-content h2+p{margin-top:0}
.about-content h3{margin:0;font:600 17px/26px var(--sans)}
.about-content .about-principle{margin:24px 0 0;padding:20px 24px;border-radius:16px;background:var(--desk);font-size:16px;line-height:26px;color:var(--t2)}
.about-features{margin:24px 0 20px;padding:0;list-style:none;counter-reset:feature;border-top:1px solid var(--line-1)}
.about-features li{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:8px;padding:20px 0;border-bottom:1px solid var(--line-1);counter-increment:feature}
.about-features li::before{content:counter(feature,decimal-leading-zero);grid-row:1 / span 2;font-size:13px;line-height:26px;color:var(--t3);font-variant-numeric:tabular-nums}
.about-features h3,.about-content .about-features p{grid-column:2}
.about-content .about-features p{margin:4px 0 0;font-size:16px;line-height:26px;color:var(--t2)}
.about-text-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:15px}
.about-scenarios{margin:24px 0 0;border-bottom:1px solid var(--line-1)}
.about-scenarios>div{display:grid;grid-template-columns:160px minmax(0,1fr);gap:24px;padding:18px 0;border-top:1px solid var(--line-1)}
.about-scenarios dt{font-weight:600;font-size:16px;line-height:26px}
.about-scenarios dd{margin:0;font-size:16px;line-height:26px;color:var(--t2)}
.about-steps{margin:16px 0 24px;padding-left:22px}
.about-steps li{margin:10px 0;padding-left:6px}
.about-steps li::marker{color:var(--t3)}
.about-useful-links{display:flex;align-items:center;flex-wrap:wrap;gap:0 24px;font-size:15px}
.about-content .about-useful-links a{display:inline-flex;align-items:center;gap:6px;min-height:44px}
.about-faq{margin-top:40px}
.about-faq h3{margin-bottom:8px}
.about-faq details{border-top:1px solid var(--line-1)}
.about-faq details:last-child{border-bottom:1px solid var(--line-1)}
.about-faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 4px 16px 0;font:500 16px/24px var(--sans);cursor:pointer;list-style:none}
.about-faq summary::-webkit-details-marker{display:none}
.about-faq summary::after{color:var(--t2)}
.about-content .about-faq details p{margin:0 0 20px;padding-right:40px;font-size:16px;line-height:26px;color:var(--t2)}
.about-contact{margin:16px 0 0}
.about-contact>div{display:grid;grid-template-columns:96px minmax(0,1fr);gap:16px;align-items:baseline;margin:12px 0}
.about-contact dt{font-size:14px;color:var(--t3)}
.about-contact dd{margin:0;font-size:16px;overflow-wrap:anywhere}
.about-content .about-updated{margin-top:24px;font-size:13px;line-height:18px;color:var(--t3)}

/* ---------- responsive ---------- */
@media (max-width:1000px){
  .about-layout,.reading-layout{grid-template-columns:180px minmax(0,1fr);gap:40px}
  .article-heading{padding-left:220px}
}
@media (max-width:760px){
  .about-layout,.reading-layout{display:block;padding-top:32px}
  .article-heading{padding-left:0}
  .about-toc,aside{position:static;margin-bottom:40px;padding-bottom:12px;border-bottom:1px solid var(--line-1)}
}
@media (max-width:640px){
  :root{--gutter:16px}
  h1{font-size:34px;line-height:1.2}
  .lead,.about-definition{font-size:16px;line-height:26px}
  .hero{padding-top:48px;padding-bottom:48px}
  .about-hero{padding-top:24px;padding-bottom:48px}
  .article-heading{padding-top:32px;padding-bottom:32px}
  .article-heading h1{font-size:30px;line-height:1.25}
  .about-content,.reading-layout article{font-size:16px;line-height:26px}
  .about-content h2,.reading-layout article h2{font-size:26px}
  .about-content section+section{margin-top:56px}
  .reading-layout article h2{margin-top:48px}
  .about-content .about-principle{padding:16px 18px}
  .about-scenarios>div{grid-template-columns:minmax(0,1fr);gap:4px;padding:16px 0}
  .about-contact>div{grid-template-columns:64px minmax(0,1fr)}
  .about-contact dd{font-size:15px}
  .about-content .about-faq details p{padding-right:8px}
  .post-row{grid-template-columns:28px minmax(0,1fr) 16px;gap:12px}
  .post-row h2{font-size:21px}
  main{padding-bottom:40px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}

/* ---------- Simplified Chinese: named CJK fallbacks; no Latin-only tracking or caps on labels ---------- */
:root:lang(zh-Hans){--serif:"Newsreader","Iowan Old Style","Palatino Linotype",Georgia,"Noto Serif SC","Source Han Serif SC","Songti SC","STSong",serif;--sans:"Inter","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
:lang(zh-Hans) .article-heading .eyebrow,:lang(zh-Hans) .posts>h2,:lang(zh-Hans) .about-toc p,:lang(zh-Hans) aside summary{letter-spacing:0;text-transform:none}

/* Visually hidden (a footnote's heading keeps its text for assistive technology). */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- Japanese: named Japanese fallbacks; strict kinsoku; no Latin-only tracking or caps on labels; phrase-aware breaks in headings, the index lead, questions, the article contents list and table cells ---------- */
:root:lang(ja){--serif:"Newsreader","Iowan Old Style","Palatino Linotype",Georgia,"Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif;--sans:"Inter","Hiragino Kaku Gothic ProN","Yu Gothic","Noto Sans JP",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;line-break:strict}
:lang(ja) .article-heading .eyebrow,:lang(ja) .posts>h2,:lang(ja) .about-toc p,:lang(ja) aside summary{letter-spacing:0;text-transform:none}
:lang(ja) h1,:lang(ja) h2,:lang(ja) h3,:lang(ja) .hero .lead,:lang(ja) summary,:lang(ja) aside a,:lang(ja) th,:lang(ja) td{word-break:auto-phrase}

/* ---------- Korean: named Hangul fallbacks; break lines between words (keep-all); no Latin-only tracking or caps on labels ---------- */
:root:lang(ko){--serif:"Newsreader","Iowan Old Style","Palatino Linotype",Georgia,"AppleMyungjo","Noto Serif KR",serif;--sans:"Inter","Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;word-break:keep-all;overflow-wrap:break-word}
:lang(ko) .article-heading .eyebrow,:lang(ko) .posts>h2,:lang(ko) .about-toc p,:lang(ko) aside summary{letter-spacing:0;text-transform:none}
