/* The subpage template: every page that is not a landing. /download/,
   /methodology/, /pricing/ and /security/ use the sectioned layout below;
   blog posts, the comparison pages and the legal/ops pages use .article at the
   end of the file. Loaded after /landing.css, which supplies the tokens, type,
   nav pill, buttons, footer and the dark palette. This file adds only what a
   reading page needs and the landing does not. */

.sub-hero{padding:clamp(124px,15vw,176px) 0 clamp(48px,6vw,72px);background:var(--wash);
  border-bottom:1px solid var(--line)}
.sub-hero h1{margin:0 0 20px;font-size:clamp(var(--fs-32),5.4vw,var(--fs-56));max-width:17ch;text-align:left}
.sub-hero h1 .ser{display:inline;font-size:1em}
html[lang=ko] .sub-hero h1{max-width:16ch}
.sub-hero .lead{margin:0 0 30px;max-width:640px;text-align:left}
.sub-hero .actions{justify-content:flex-start}
.sub-hero .meta{text-align:left;text-wrap:wrap}
@media (max-width:480px){.sub-hero .meta span{margin:0 18px 0 0}}

.sub .sec{padding:clamp(64px,8vw,104px) 0}
.sub .sec h2{font-size:clamp(var(--fs-24),3.4vw,var(--fs-32));max-width:22ch}
.sub .sec-head{margin-bottom:clamp(28px,4vw,44px)}

/* Download options: one card per way in. */
.opts{display:grid;grid-template-columns:1fr;gap:12px;list-style:none;margin:0;padding:0}
@media (min-width:760px){.opts{grid-template-columns:repeat(3,minmax(0,1fr))}}
.opt{display:flex;flex-direction:column;gap:8px;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);padding:24px}
.opt p{margin:0;font-size:var(--fs-14);color:var(--ink-2);line-height:1.5}
.opt .go{margin-top:auto;padding-top:8px;display:inline-flex;align-items:center;min-height:44px;
  font-size:var(--fs-14);font-weight:650;color:var(--accent);text-underline-offset:3px}

/* A checklist: what works, stated plainly. */
.checks{list-style:none;margin:0;padding:0;border-top:1px solid var(--line-2);max-width:820px}
.checks li{position:relative;padding:16px 0 16px 34px;border-bottom:1px solid var(--line-2);
  font-size:var(--fs-16);line-height:1.45}
.checks li::before{content:"";position:absolute;left:4px;top:1.45em;width:12px;height:7px;
  border-left:2px solid var(--accent-fill);border-bottom:2px solid var(--accent-fill);transform:translateY(-60%) rotate(-45deg)}
.checks li span{display:block;font-size:var(--fs-14);color:var(--ink-2);margin-top:2px}

.not{margin:28px 0 0;max-width:820px;padding:18px 20px;border-radius:var(--r-12);background:var(--card);
  border:1px solid var(--line-2);font-size:var(--fs-16);color:var(--ink-2);line-height:1.55}
.not b{color:var(--ink)}

/* Prose and numbered steps. */
.prose{max-width:720px}
.prose p,.prose li{font-size:var(--fs-16);color:var(--ink-2);line-height:1.65}
.prose p{margin:0 0 16px}
.prose a,.not a,.figs a{color:var(--accent);font-weight:600;text-underline-offset:3px}
.prose code,.figs code,.article code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;
  background:var(--wash);border:1px solid var(--line);border-radius:6px;padding:1px 6px;overflow-wrap:anywhere}
.steps{margin:0 0 20px;padding-left:22px}
.steps li{margin:0 0 10px;padding-left:4px}
.prose h3{margin:28px 0 8px}

/* Figures: a number, what it is, and where it comes from. */
.figs{display:grid;grid-template-columns:1fr;gap:12px;list-style:none;margin:0;padding:0}
@media (min-width:860px){.figs{grid-template-columns:repeat(3,minmax(0,1fr))}}
.fig{display:flex;flex-direction:column;gap:6px;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);padding:24px}
.fig .sv{font-size:clamp(var(--fs-32),4.4vw,var(--fs-56));font-weight:700;letter-spacing:-.05em;line-height:1}
.fig .sl{font-size:var(--fs-14);font-weight:650;letter-spacing:-.01em;margin-top:6px}
.fig p{margin:0;font-size:var(--fs-14);color:var(--ink-2);line-height:1.5}
.fig .src{margin-top:auto;padding-top:10px;font-size:var(--fs-14);color:var(--ink-3)}
.caveat{margin:24px 0 0;max-width:820px;font-size:var(--fs-16);color:var(--ink-2);line-height:1.6}
.caveat b{color:var(--ink)}
.checked{margin:clamp(40px,5vw,56px) 0 0;font-size:var(--fs-14);color:var(--ink-3)}
.checked a{color:inherit;text-underline-offset:3px}

/* Spec tables (/pricing/ plan by plan, /security/ guarantees). A table keeps
   its columns on phones and scrolls inside its own box, never the page. */
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border-top:1px solid var(--line-2);
  /* Scroll shadows: the edge darkens only on the side that has more table, so
     a clipped column reads as "scrolls", not as cut off. */
  background:linear-gradient(90deg,var(--sc-bg,var(--paper)) 30%,transparent) left/40px 100% no-repeat local,
    linear-gradient(270deg,var(--sc-bg,var(--paper)) 30%,transparent) right/40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%,var(--line-2),transparent) left/14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%,var(--line-2),transparent) right/14px 100% no-repeat scroll}
.sec-alt .table-scroll{--sc-bg:var(--wash)}
.spec td:last-child code{white-space:nowrap}
.spec{width:100%;min-width:600px;border-collapse:collapse;font-size:var(--fs-14);line-height:1.5}
.spec th,.spec td{text-align:left;vertical-align:top;padding:14px 16px 14px 0;border-bottom:1px solid var(--line-2)}
.spec thead th{font-size:var(--fs-12);font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.spec tbody th{font-weight:600;color:var(--ink);width:28%}
.spec td{color:var(--ink-2)}
.spec td strong{color:var(--ink)}
.spec a{color:var(--accent);font-weight:600;text-underline-offset:3px}
.spec code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em}

/* Key/value lists (/security/ assessment facts and scopes). */
.kv{margin:24px 0 32px;max-width:820px;border-top:1px solid var(--line-2)}
.kv > div{display:grid;grid-template-columns:minmax(0,27%) minmax(0,1fr);gap:4px 16px;padding:14px 0;
  border-bottom:1px solid var(--line-2);font-size:var(--fs-16);line-height:1.5}
.kv dt{color:var(--ink-3);font-weight:500}
.kv dd{margin:0;color:var(--ink)}
.kv-code dt{color:var(--ink)}
.kv code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;overflow-wrap:anywhere}
@media (max-width:600px){.kv > div{grid-template-columns:minmax(0,1fr)}}
.not p{margin:0 0 10px}.not p:last-child{margin:0}
.caveat a{color:var(--accent);font-weight:600;text-underline-offset:3px}
.actions-left{justify-content:flex-start;margin-top:clamp(32px,4vw,48px)}

/* ── Article ─────────────────────────────────────────
   One readable column for long-form pages: blog posts and the blog index,
   /vs/* (EN + KO), /open-source/, /self-host/, /status/, /gdpr/ and /dpa/.
   Text holds a ~68ch measure at 17.5px (halfway between --fs-16 and --fs-19);
   tables and code blocks take the full column and scroll inside their own box,
   never the page. Colours are tokens only, so dark mode comes from landing.css. */
.article{max-width:760px;margin:0 auto;padding:clamp(124px,15vw,168px) 0 clamp(64px,8vw,104px);
  font-size:calc((var(--fs-16) + var(--fs-19)) / 2);line-height:1.7;color:var(--ink-2)}
html[lang=ko] .article{word-break:keep-all;line-height:1.75}
.article article{display:block}
.article :is(p,ul,ol,h2,h3){max-width:68ch}
.sub .article h1{margin:0;color:var(--ink);max-width:20ch;text-align:left;font-size:clamp(var(--fs-32),4vw,var(--fs-56));
  line-height:1.08;letter-spacing:-.035em;text-wrap:balance}
.article h1 em{font-family:'Instrument Serif','Iowan Old Style',Georgia,serif;font-style:italic;font-weight:400;
  color:var(--accent);letter-spacing:-.01em}
html[lang=ko] .article h1 em{font-family:inherit;font-style:normal;font-weight:700;letter-spacing:inherit}
.sub .article h2{margin:2.4em 0 0;font-size:var(--fs-24);line-height:1.25;letter-spacing:-.02em;font-weight:650;
  color:var(--ink);text-wrap:balance}
.article h3{margin:1.8em 0 0;font-size:var(--fs-19);line-height:1.35;letter-spacing:-.01em;font-weight:650;color:var(--ink)}
.article p{margin:1em 0 0}
.article .thesis{margin:24px 0 0;font-size:var(--fs-19);line-height:1.55;color:var(--ink)}
.article .meta{margin:16px 0 0;font-size:var(--fs-14);line-height:1.55;color:var(--ink-3);letter-spacing:0;text-wrap:wrap}
.article strong{color:var(--ink);font-weight:650}
.article :is(ul,ol){margin:1em 0 0;padding-left:1.4em}
.article li{margin:.5em 0 0;padding-left:.2em}
.article li::marker{color:var(--ink-3)}
.article a:not(.btn){color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;
  text-underline-offset:.22em}
.article a:not(.btn):hover{text-decoration-thickness:2px}
.article pre{margin:1.4em 0 0;padding:16px 18px;overflow-x:auto;-webkit-overflow-scrolling:touch;background:var(--wash);
  border:1px solid var(--line);border-radius:var(--r-12);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:var(--fs-14);line-height:1.6;color:var(--ink)}
.article pre code{background:none;border:0;padding:0;font-size:inherit;overflow-wrap:normal}
.article .scroll{margin:28px 0 0;overflow-x:auto;-webkit-overflow-scrolling:touch;background:var(--card);
  border:1px solid var(--line-2);border-radius:var(--r-12)}
.article table{width:100%;min-width:560px;border-collapse:collapse;font-size:var(--fs-14);line-height:1.5}
/* Two-column question/answer tables (/gdpr/, /dpa/, /self-host/) fit a phone
   as they are; only three columns and up need the scroll box. */
.article table:not(:has(tr > :nth-child(3))){min-width:0}
.article th,.article td{text-align:left;vertical-align:top;padding:12px 14px;border-bottom:1px solid var(--line)}
.article tr:last-child > *{border-bottom:0}
.article thead th{font-size:var(--fs-12);font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);
  background:var(--wash);border-bottom:1px solid var(--line-2)}
html[lang=ko] .article thead th{letter-spacing:.02em}
.article tbody th{width:27%;font-weight:600;color:var(--ink)}
.article td{color:var(--ink-2)}
.article td.us{color:var(--ink);background:color-mix(in srgb,var(--accent-fill) 7%,transparent)}
.article .not{margin:40px 0 0;max-width:none}
.article .not p{margin:0 0 10px}
.article .not p:last-child{margin:0}
.article .checked{margin:clamp(40px,5vw,56px) 0 0;padding-top:20px;border-top:1px solid var(--line);
  font-size:var(--fs-14);line-height:1.6;color:var(--ink-3)}
.article .checked a:not(.btn){color:inherit}
/* The blog index: one row per post. The title is the target, so it gets a
   full 44px row of its own. */
.article .postlist{list-style:none;margin:40px 0 0;padding:0;max-width:none;border-top:1px solid var(--line-2)}
.article .postlist li{max-width:none;margin:0;padding:14px 0 20px;border-bottom:1px solid var(--line-2)}
.article .postlist a.pt{display:flex;align-items:center;min-height:44px;padding:6px 0 2px;font-size:var(--fs-19);line-height:1.35;font-weight:650;
  letter-spacing:-.01em;color:var(--ink);text-decoration:none}
.article .postlist a.pt:hover{color:var(--accent)}
.article .postlist .meta{display:block;margin:0}
.article .postlist p{margin:8px 0 0;font-size:var(--fs-16);line-height:1.6}
/* Blog index: the hero is the shared .sub-hero band and the list starts on
   the same left edge as the nav, the footer and every other subpage, instead
   of a centred post-width column. */
.article.article-index{margin:0;max-width:820px;padding-top:clamp(48px,6vw,72px)}
.article-index .postlist{margin-top:0;border-top:0}
.article-index .postlist li:first-child{padding-top:0}
.article-index .checked{max-width:none}
