/* css/pages.css — The pages of the catalog (<lang>/<slug>/, <lang>/, the rules; made by _tools/catalog/build_pages.py): what a purpose is
   for, its kinds and their things, and the way into the app. Since v4.22.16 in the app's own coat (Martin, 2026-10-21 15:31: "change the
   colours and the design too, so that it matches"): the near-black of the page, wine, sand and grey (design/docs/design_tokens.css),
   Plus Jakarta Sans from this site, the line drawings of the kinds (js/glyphs.js, drawn into the page by the build). A page of the catalog
   loads this file only, so the tokens are repeated here. */
@font-face{font-family:'Plus Jakarta Sans'; font-style:normal; font-display:swap; font-weight:400 800;
  src:url(../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Plus Jakarta Sans'; font-style:normal; font-display:swap; font-weight:400 800;
  src:url(../fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2');
  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}
:root{
  --bg:#0E0C0D; --surface:#1A1719; --surface2:#272225; --line:#382E31; --line2:#4A3D41;
  --ivory:#F4ECE7; --text:#D8C8C1; --text2:#AA9FA3; --text3:#8F8387;
  --wine:#A8566B; --wine-light:#C57989; --wine-dark:#743B4B; --wine-hover:#D18E9D;
  --font:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --w:1040px; color-scheme:dark
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; text-size-adjust:100%; background:var(--bg)}
body{margin:0; min-height:100vh; display:flex; flex-direction:column; color:var(--text); font:400 17px/1.55 var(--font);
  background:radial-gradient(700px 460px at 88% -4%, rgba(168,86,107,.20), transparent 70%), var(--bg); background-repeat:no-repeat}
a{color:var(--wine-light)}
a:hover{color:var(--wine-hover)}
a:focus-visible{outline:2px solid var(--wine-light); outline-offset:3px; border-radius:8px}
/* the line drawings (a kind, a purpose) and a flag as its letters, as in the app */
.pg-gly{display:inline-block; flex:none; width:1em; height:1em; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round;
  color:var(--wine-light); vertical-align:-.14em}
.pg-flag{display:inline-flex; align-items:center; justify-content:center; flex:none; min-width:1.75em; height:1.2em; padding:0 .25em; border:1.5px solid currentColor;
  border-radius:.3em; color:var(--wine-light); font-size:.62em; font-weight:700; letter-spacing:.04em; line-height:1}

.pg-top{display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; max-width:var(--w); margin:0 auto;
  padding:calc(14px + env(safe-area-inset-top, 0px)) 20px 0}
.pg-brand{display:inline-flex; align-items:center; gap:12px; min-height:44px; color:var(--ivory); text-decoration:none; font:700 16px var(--font); letter-spacing:.16em; text-transform:uppercase}
.pg-brand:hover{color:var(--ivory)}
.pg-logo{flex:none; width:34px; height:34px; background:url(../img/brand/mark.svg) center/contain no-repeat}      /* (the app's mark) */
.pg-langs{display:inline-flex; flex-wrap:wrap; align-items:center; gap:4px 12px; color:var(--text3); font-weight:600; font-size:15px}
.pg-langs a{min-height:44px; display:inline-flex; align-items:center; color:var(--text2); text-decoration:none}
.pg-langs a:hover{color:var(--ivory)}
.pg-main{width:100%; max-width:var(--w); margin:0 auto; padding:12px 20px 40px}
.pg-crumbs{margin:8px 0 0; font-size:15px; font-weight:600}
.pg-crumbs a{text-decoration:none}

.pg-head{padding:20px 0 12px}
.pg-head h1{margin:0; display:flex; align-items:center; gap:14px; color:var(--ivory); font:800 clamp(34px, 7.5vw, 56px)/1.1 var(--font); letter-spacing:-.03em; text-wrap:balance}
.pg-head h1 .pg-gly{width:.82em; height:.82em; stroke-width:1.6}
.pg-q{margin:10px 0 0; color:var(--wine-light); font:650 clamp(19px, 3vw, 23px)/1.3 var(--font)}
.pg-lead{max-width:60ch; margin:14px 0 0; color:var(--text); font-size:clamp(17px, 2vw, 19px); line-height:1.6; text-wrap:pretty}
.pg-cta{display:flex; flex-wrap:wrap; align-items:center; gap:12px 18px; margin-top:26px}
.pg-btn{display:inline-flex; align-items:center; justify-content:center; min-height:52px; padding:0 28px; border-radius:13px; color:var(--ivory);
  background:linear-gradient(180deg, var(--wine-light) 0%, var(--wine) 100%); box-shadow:0 0 0 1px rgba(168,86,107,.45), 0 8px 24px rgba(168,86,107,.30);
  font:700 17px var(--font); text-decoration:none}
.pg-btn:hover{color:var(--ivory); background:linear-gradient(180deg, var(--wine-hover) 0%, var(--wine) 100%)}
.pg-note{color:var(--text2); font-size:15px}

.pg-toc{display:flex; flex-wrap:wrap; gap:8px; margin:24px 0 6px}
.pg-toc a{display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:0 15px; border:1px solid var(--line); border-radius:999px; background:var(--surface);
  color:var(--text); font-size:15px; font-weight:500; text-decoration:none}
.pg-toc a:hover{border-color:var(--line2); background:var(--surface2); color:var(--ivory)}
.pg-toc .pg-gly{width:17px; height:17px}

.pg-group{padding:28px 0 8px; border-top:1px solid var(--line); margin-top:26px; scroll-margin-top:12px}
.pg-group-head{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px}
.pg-group h2{margin:0; display:flex; align-items:center; gap:12px; color:var(--ivory); font:800 clamp(24px, 4.2vw, 30px)/1.2 var(--font); letter-spacing:-.02em}
.pg-group h2 .pg-gly{width:.9em; height:.9em}
.pg-spin{display:inline-flex; align-items:center; min-height:40px; padding:0 16px; border:1px solid rgba(197,121,137,.45); border-radius:999px; color:var(--wine-light);
  font:600 15px var(--font); text-decoration:none}
.pg-spin:hover{background:var(--surface2); color:var(--wine-hover)}
.pg-about{max-width:62ch; margin:8px 0 0; color:var(--text2)}
.pg-n{white-space:nowrap; color:var(--text3)}
.pg-more-n{margin:10px 0 0; font-size:15px}
.pg-items{list-style:none; margin:14px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px}
.pg-items li{padding:7px 13px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--text); font-size:15px; line-height:1.35}
.pg-sub{margin-top:20px}
.pg-sub :is(h3, h4){margin:0; display:flex; align-items:center; gap:8px; color:var(--ivory); font:650 18px/1.3 var(--font)}
.pg-sub h4{font-size:16px; color:var(--text)}
.pg-sub-about{margin-top:4px; font-size:15px; line-height:1.45}      /* (the line of a kind inside a kind, v4.22.17) */
.pg-sub .pg-items{margin-top:10px}

/* how the wheel works: three numbered steps */
.pg-how{margin-top:44px; padding:22px 22px 8px; border:1px solid var(--line); border-radius:16px; background:var(--surface)}
.pg-how h2{margin:0; color:var(--ivory); font:800 clamp(22px, 3.6vw, 26px)/1.2 var(--font); letter-spacing:-.02em}
.pg-how ol{margin:14px 0 0; padding:0; list-style:none; counter-reset:step}
.pg-how li{position:relative; margin:0 0 14px; padding-left:42px; max-width:62ch; counter-increment:step}
.pg-how li::before{content:counter(step); position:absolute; left:0; top:-.05em; width:28px; height:28px; display:grid; place-items:center; border-radius:50%;
  background:var(--wine); color:var(--ivory); font:700 14px/1 var(--font)}

.pg-more{margin-top:44px}
.pg-more h2{margin:0 0 16px; color:var(--ivory); font:800 clamp(24px, 4.2vw, 30px)/1.2 var(--font); letter-spacing:-.02em}
.pg-cards{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap:10px}
.pg-card{display:flex; align-items:flex-start; gap:14px; height:100%; padding:14px; border:1px solid var(--line); border-radius:16px; background:var(--surface);
  color:var(--text); text-decoration:none}
.pg-card:hover{border-color:rgba(197,121,137,.45); background:var(--surface2); color:var(--text)}
.pg-card-ic{flex:none; width:44px; height:44px; display:grid; place-items:center; border-radius:12px; background:var(--surface2); font-size:24px; line-height:1}
.pg-card-ic.pg-gly{padding:11px; stroke-width:1.6}
.pg-card b{display:block; color:var(--ivory); font:650 17px/1.3 var(--font)}
.pg-card span span{display:block; margin-top:3px; color:var(--text2); font-size:14.5px; line-height:1.4}

.pg-foot{margin-top:auto; padding:24px 20px calc(28px + env(safe-area-inset-bottom, 0px)); border-top:1px solid var(--line); color:var(--text2); font-size:14px; text-align:center}
.pg-foot p{margin:0}
/* the documents of the language under every page (v4.22.36: the rules, the terms of use, privacy, support) */
.pg-legal{display:flex; flex-wrap:wrap; justify-content:center; gap:0 20px; margin:-6px 0 10px}
.pg-legal a{min-height:40px; display:inline-flex; align-items:center; color:var(--text2); font-weight:600; text-decoration:none}
.pg-legal a:hover, .pg-legal a[aria-current]{color:var(--ivory)}
@media (min-width:860px){
  .pg-top{padding-left:32px; padding-right:32px}
  .pg-main{padding:20px 32px 56px}
}
/* the documents (the rules since v4.22; the terms of use, privacy and support since v4.22.36; _tools/catalog/docs_pages.py): readable lines,
   a section per rule, points as a list */
.pg-rules .pg-head h1{font-size:clamp(32px, 7vw, 50px)}
.pg-updated{margin:10px 0 0; color:var(--text3); font-size:14px}
.pg-rule{max-width:68ch; margin:22px 0 0; padding:18px 20px; border:1px solid var(--line); border-radius:16px; background:var(--surface); scroll-margin-top:16px}
.pg-rule h2{margin:0 0 8px; color:var(--ivory); font:700 20px/1.3 var(--font)}
.pg-rule p{margin:8px 0 0; color:var(--text); line-height:1.6; text-wrap:pretty}
.pg-list{margin:8px 0 0; padding-left:1.25em; color:var(--text); line-height:1.6}
.pg-list li{margin:6px 0 0; text-wrap:pretty}
.pg-list li::marker{color:var(--wine-light)}
.pg-rule a{overflow-wrap:anywhere}
