/*
  v18-guides.css · the Guides page (build_v18_guides.py), on top of v18.css (canon: tokens --blue,
  --navy, --grey, --g, --w, --mono, --sans, header, footer, buttons) and v18-std.css (the standard
  pages: .st-top, .st-pills, .st-lede, .st-sec, .st-view, .st-none, .st-end).
  What is here: the head (flat Stobox blue; its main element is a ruled board of the twelve
  jurisdictions, each with its regulator and each a link to its row), the jurisdiction table with its
  controls, the numbered list of step guides, the sources.
  Manner: ruled lists and tables, mono for meta, underlined links; no cards, no icons, no flags.
  Check: http://localhost:8250/v18-guides.html at 1440 and at 375 (no sideways scroll at 375).
  Undo: delete this file together with build_v18_guides.py, v18-guides.js and v18-guides.html.
*/

/* Text for screen readers only (the table caption, the header of the arrow column). */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---- head ----
   Flat blue, no fade to navy: the other heads are light grey, a blue-to-navy split with a cover, pale
   blue and dark navy, so this one is told apart by its ground as well as by its board. */
.st-top.h-gd{background:var(--blue);display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(24px,3vw,44px) clamp(28px,5vw,96px);align-items:end;padding-bottom:clamp(28px,3vw,44px)}
.st-top.h-gd h1{max-width:13ch;font-size:clamp(40px,5.2vw,80px);line-height:.98;letter-spacing:-.045em}
.h-gd .st-pills a{color:#fff}
.h-gd .st-lede{margin-top:0;max-width:44ch;font-size:clamp(19px,1.5vw,22px);line-height:1.45;color:#f0f5ff}
.gd-acts{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px;margin:clamp(20px,2.2vw,30px) 0 0}
.gd-link{font-size:18px;font-weight:600;color:#fff;text-decoration:underline;text-underline-offset:5px;text-decoration-color:rgba(255,255,255,.55)}
.gd-link:after{content:"\00a0↓"}
.h-gd a:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* The board. Twelve cells, four to a row: code (mono), name, the regulator as published. Ruled like the
   table below (one strong rule on top, hairlines between), no fills: it is the table's contents list.
   The two words over it are the names of the two table columns the board shows. */
.gd-draw{grid-column:1/-1;margin-top:clamp(16px,2.4vw,36px)}
.gd-key{display:flex;gap:10px;margin:0 0 12px;font:500 12px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:#e9f0ff}
.gd-key span+span:before{content:"/";margin-right:10px;opacity:.6}
.gd-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:2px solid #fff}
.gd-col{position:relative;display:flex;flex-direction:column;padding:16px 20px 20px;color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.3);border-left:1px solid rgba(255,255,255,.3);transition:background-color .2s,opacity .2s}
.gd-col:nth-child(4n+1){border-left:0;padding-left:0}
.gd-col b{font:500 13px/1 var(--mono);letter-spacing:.06em;color:#e9f0ff;margin-bottom:10px}
.gd-col strong{font-size:clamp(21px,1.75vw,26px);line-height:1.12;letter-spacing:-.025em;font-weight:600;text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:1.5px;text-underline-offset:5px;transition:text-decoration-color .2s}
.gd-col span{margin-top:6px;font-size:17px;line-height:1.35;color:#e6efff;text-wrap:pretty}
.gd-col.off{opacity:.3}  /* a jurisdiction that the search or the filter below has put away */
/* the hover ground reaches the cell's edges; the first cell of a row has no left padding, so its ground starts at the text */
@media (hover:hover){.gd-col:hover{background:rgba(255,255,255,.1)}.gd-col:hover strong{text-decoration-color:currentColor}}
.h-gd .gd-col:focus-visible{outline-offset:-3px}

/* ---- section heads (the same numbered head as the glossary groups) ---- */
.gd-sec{padding-block:clamp(48px,6vw,96px)}
.gd-sec+.gd-sec{border-top:1px solid #dfe4ee}
.gd-h{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:16px clamp(28px,5vw,96px);align-items:end;margin-bottom:clamp(28px,3.4vw,48px)}
.gd-h h2{margin:0;max-width:20ch;font-size:clamp(30px,3.4vw,52px);line-height:1.05;letter-spacing:-.04em;font-weight:600;text-wrap:balance}
.gd-h h2 .n{display:block;font:500 14px/1 var(--mono);letter-spacing:.06em;color:var(--blue);margin-bottom:14px}
.gd-h p{margin:0;max-width:50ch;font-size:19px;line-height:1.5;color:#2c3a58}
/* a caveat is read, not scanned: sans, not mono */
.gd-note{margin:22px 0 0;font:400 15.5px/1.5 var(--sans);color:#566683}

/* ---- table controls ---- */
/* Search takes the first line whole (its placeholder must be readable); the filter, the order and the count share the second. */
.gd-tools{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:18px clamp(20px,2.6vw,40px);align-items:end;padding-bottom:20px;border-bottom:2px solid var(--navy)}
.gd-q{display:flex;flex-direction:column;gap:8px;grid-column:1/-1}
.gd-q span,.gd-f>span{font:500 12px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:#566683}
.gd-q input{font:500 clamp(20px,1.9vw,27px)/1.25 var(--sans);letter-spacing:-.02em;color:#0b1430;border:0;outline:0;background:none;padding:6px 0;width:100%;border-radius:0}
.gd-q input::placeholder{color:#7a859c}
.gd-q:focus-within span{color:var(--blue)}
.gd-f{display:flex;flex-direction:column;gap:8px}
.gd-chips{display:flex;flex-wrap:wrap;gap:6px}
.gd-chips button{all:unset;cursor:pointer;box-sizing:border-box;display:inline-flex;align-items:center;height:44px;padding:0 16px;border-radius:999px;background:var(--grey);font-size:16px;color:#0b1430;transition:background-color .2s}
.gd-chips sup{font:500 11px/1 var(--mono);color:#566683;margin-left:5px;position:relative;top:-4px}
.gd-chips button[aria-pressed=true]{background:var(--navy);color:#fff}.gd-chips button[aria-pressed=true] sup{color:#e9f0ff}
.gd-chips button:focus-visible,.gd-tools .st-view button:focus-visible,#gd-clear:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.gd-tools .st-view{height:44px;box-sizing:border-box;justify-self:start;align-self:start}.gd-tools .st-view button{padding:0 16px;height:36px;display:inline-flex;align-items:center}
.gd-count{margin:0;font:500 14px/44px var(--mono);color:#566683;min-width:8ch;text-align:right}
#gd-clear{all:unset;cursor:pointer;color:var(--blue);text-decoration:underline;text-underline-offset:4px}

/* ---- the table ----
   The jurisdiction's link is stretched over its whole row (a:after), so the row is one link. */
.gd-t{width:100%;border-collapse:collapse;table-layout:fixed}
.gd-t thead th{text-align:left;font:500 12px/1.3 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:#566683;padding:16px 20px 12px 0;border-bottom:1px solid #dfe4ee;position:sticky;top:0;background:#fff;z-index:2}
.gd-t thead th:nth-child(1){width:20%}.gd-t thead th:nth-child(2){width:22%}.gd-t thead th:nth-child(3){width:15%}.gd-t thead th:nth-child(4){width:23%}.gd-t thead th.go{width:44px;padding-right:0}
.gd-t tbody tr{position:relative;transition:background-color .2s;scroll-margin-top:60px}
.gd-t tbody tr[hidden]{display:none}
.gd-t tbody th,.gd-t tbody td{padding:22px 20px 22px 0;border-bottom:1px solid #dfe4ee;vertical-align:top;text-align:left;font-size:18px;line-height:1.42;color:#16203a;font-weight:400}
.gd-t tbody th{display:flex;flex-direction:column;gap:8px;border-bottom:0}
.gd-t tbody tr{border-bottom:1px solid #dfe4ee}
.gd-t tbody th .n{font:500 13px/1 var(--mono);color:var(--blue)}
.gd-t tbody th a{font-size:clamp(21px,1.7vw,25px);line-height:1.12;letter-spacing:-.025em;font-weight:600;color:var(--navy);text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:1.5px;text-underline-offset:5px;transition:text-decoration-color .2s}
.gd-t tbody th a:after{content:"";position:absolute;inset:0}
.gd-t tbody th a:focus-visible{outline:0}.gd-t tbody tr:focus-within{outline:2px solid var(--blue);outline-offset:-2px}
.gd-t td.go{padding-right:0;text-align:right;color:var(--blue)}
.gd-t td.go span{font-size:0}.gd-t td.go span:after{content:"→";font-size:22px;line-height:1;display:inline-block;transition:transform .25s cubic-bezier(.23,1,.32,1)}
.gd-t tbody tr:target{background:#eef4ff}
@media (hover:hover){.gd-t tbody tr:hover{background:var(--grey)}.gd-t tbody tr:hover th a{text-decoration-color:currentColor}.gd-t tbody tr:hover td.go span:after{transform:translateX(4px)}}
/* a little air on the left of every row, so the hover ground does not touch the text */
.gd-t tbody th{padding-left:14px}.gd-t thead th:first-child{padding-left:14px}.gd-t td.go{padding-right:14px}

/* ---- step guides: a numbered ruled list ---- */
.gd-steps{list-style:none;margin:0;padding:0;border-top:2px solid var(--navy)}
.gd-steps li{border-bottom:1px solid #dfe4ee}
.gd-steps a{display:grid;grid-template-columns:64px minmax(0,1fr) minmax(0,1.15fr) 32px;gap:8px clamp(20px,3vw,48px);align-items:baseline;padding:24px 14px;color:#0b1430;text-decoration:none;transition:background-color .2s}
.gd-steps .n{font:500 14px/1 var(--mono);color:var(--blue)}
.gd-steps h3{margin:0;font-size:clamp(22px,1.9vw,28px);line-height:1.15;letter-spacing:-.025em;font-weight:600;color:var(--navy);text-wrap:balance;text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:1.5px;text-underline-offset:5px;transition:text-decoration-color .2s}
.gd-steps p{margin:0;font-size:18px;line-height:1.5;color:#2c3a58}
.gd-steps .go{font-size:22px;line-height:1;color:var(--blue);text-align:right;transition:transform .25s cubic-bezier(.23,1,.32,1)}
.gd-steps a:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
@media (hover:hover){.gd-steps a:hover{background:var(--grey)}.gd-steps a:hover h3{text-decoration-color:currentColor}.gd-steps a:hover .go{transform:translateX(4px)}}

/* ---- primary sources: plain underlined links ---- */
.gd-src{list-style:none;margin:0;padding:0;columns:2;column-gap:clamp(28px,5vw,96px);border-top:2px solid var(--navy)}
.gd-src li{break-inside:avoid;padding:16px 0;border-bottom:1px solid #dfe4ee}
.gd-src a{font-size:18px;line-height:1.45;color:var(--navy);text-decoration:underline;text-underline-offset:4px;text-decoration-color:rgba(10,43,109,.35)}
.gd-src a:after{content:"\00a0↗";color:var(--blue)}
.gd-src a:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@media (hover:hover){.gd-src a:hover{color:var(--blue);text-decoration-color:currentColor}}

/* ---- narrower screens ---- */
@media (max-width:1100px){
.gd-tools{grid-template-columns:minmax(0,1fr) auto}.gd-count{text-align:left;grid-column:1/-1;line-height:1.2}
}
@media (max-width:900px){
.st-top.h-gd,.gd-h{grid-template-columns:minmax(0,1fr)}
.st-top.h-gd h1{max-width:none}
/* The board: two cells to a row. */
.gd-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.gd-col,.gd-col:nth-child(4n+1){padding:14px 14px 16px;border-left:1px solid rgba(255,255,255,.3)}
.gd-col:nth-child(2n+1){border-left:0;padding-left:0}
.gd-col span{font-size:16px}
/* The table becomes stacked rows: the jurisdiction as a title, then each fact under its column name. */
.gd-t,.gd-t tbody,.gd-t tbody tr,.gd-t tbody td{display:block}
.gd-t thead{display:none}
.gd-t tbody tr{padding:26px 0 24px;scroll-margin-top:12px}
.gd-t tbody th{padding:0 0 6px;flex-direction:row;align-items:baseline;gap:12px}
.gd-t tbody th a{font-size:26px}
.gd-t tbody td{border:0;padding:12px 0 0;font-size:18px}
.gd-t tbody td[data-label]:before{content:attr(data-label);display:block;font:500 12px/1.3 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:#566683;margin-bottom:4px}
.gd-t td.go{text-align:left;padding:16px 0 0}
.gd-t td.go span{font-size:17px;font-weight:600;text-decoration:underline;text-underline-offset:4px}.gd-t td.go span:after{font-size:17px;margin-left:6px}
.gd-steps a{grid-template-columns:44px minmax(0,1fr) 24px;padding:22px 0}
.gd-steps p{grid-column:2/3}
.gd-steps .go{grid-column:3;grid-row:1}
.gd-src{columns:1}
}
@media (max-width:640px){
.gd-tools{grid-template-columns:minmax(0,1fr)}
.gd-steps a{grid-template-columns:36px minmax(0,1fr)}.gd-steps .go{display:none}
}
@media (prefers-reduced-motion:reduce){.gd-col,.gd-col strong,.gd-t tbody tr,.gd-t tbody th a,.gd-t td.go span:after,.gd-steps a,.gd-steps h3,.gd-steps .go,.gd-chips button{transition:none}}

/* ---- Learn final pass (21.11.2026) ---- */
.gd-h p a,.gd-rel a,.gd-fund a,.gd-words a{color:var(--blue);text-decoration:underline;text-underline-offset:4px}
/* The investor words, defined once under the filter (founder reader). */
.gd-words{grid-column:1/-1;margin:0;font-size:16px;line-height:1.55;color:#2c3a58;max-width:none}
.gd-words b{color:var(--navy);font-weight:600}
.gd-rel{margin:clamp(22px,2.6vw,34px) 0 0;font-size:18px;line-height:1.5;color:#2c3a58}
.gd-sh{margin:clamp(22px,2.6vw,34px) 0 12px;font:500 13px/1.3 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:#566683}
.gd-key .cue{margin-left:auto;letter-spacing:.06em;text-transform:none;font-size:13px}
.gd-key .cue:before{content:none!important}
/* Touch: the head link and the jurisdiction names in the table get a 44px tap area. */
@media (pointer:coarse){.gd-link,.gd-rel a,.gd-h p a{display:inline-block;padding-block:10px}.gd-t tbody th a{min-height:44px;display:inline-flex;align-items:center}}
/* Phone: the board would repeat the table right under it (about 850px); it becomes a compact grid of codes
   and names, three to a row, still jump links (art director, 21.11.2026). */
@media (max-width:760px){
  .gd-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .gd-col,.gd-col:nth-child(4n+1),.gd-col:nth-child(2n+1){padding:12px 8px 12px;border-left:1px solid rgba(255,255,255,.3)}
  .gd-col:nth-child(3n+1){border-left:0;padding-left:0}
  .gd-col span{display:none}
  .gd-col b{margin-bottom:6px}
  .gd-col strong{font-size:17px}
  .gd-key{flex-wrap:wrap}.gd-key .cue{margin-left:0;flex-basis:100%;margin-top:6px}
  .gd-key span:nth-child(2){display:none}
  /* The step guides are a swipe rail here: the link is the card, its arrow is not needed. */
  .gd-steps.swr > li > a{padding:0;grid-template-columns:none}
  .gd-steps.swr .go{display:none}
}
/* Below 420px three names to a row do not fit ("Liechtenstein" broke mid-word): two to a row. */
@media (max-width:420px){.gd-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gd-col:nth-child(3n+1){border-left:1px solid rgba(255,255,255,.3);padding-left:8px}
  .gd-col:nth-child(2n+1){border-left:0;padding-left:0}}
/* Contrast (final QA items 20 and 64, 22.11.2026): grey #8a93a8 text is #5d6673 on light grounds, and the
   pale labels on blue or navy are #e9f0ff, so every label reaches 4.5:1. */
/* A visible keyboard focus on the search field (final QA item 64): outline:0 left no ring. */
.gd-q input:focus-visible{outline:3px solid var(--blue);outline-offset:4px;border-radius:4px}

/* Arrows after link text are written content:"\00a0→" (a no-break space), not " →": inside a flex or
   inline-flex link (the 44px touch boxes) a leading plain space in ::after is dropped, so "See the
   Terminal→" lost its gap; the no-break space also keeps the arrow from wrapping alone onto a new line.
   Final QA 22.11.2026, round 3, item 8. */

/* Touch: the guides search field is 44px tall. Final QA 22.11.2026, round 3, item 6: on a touch screen (pointer:coarse) a control is at least 44px tall; desktop with a mouse is unchanged. An inline link keeps display:inline and gets vertical padding, which grows its hit area without moving the line. */
@media (pointer:coarse){#gd-q{min-height:44px}}
