/* TAB website system: "Keycap + The step" (Sal picked his mix of directions 1 and 3 on 2026-10-25, review page
   x_branding/tools/review/tab-widget.html; the rulebook is x_branding/tools/review/tab-rulebook.html). It styles every TAB
   page on the website: the TAB News hub and issue pages (core/post-renderer.js, template "tab"), /tab-news, the strategy
   landing and /academy.

   The idea: the TAB block is a key. So everything you PRESS is a key: iris with graphite letters (the logo's own colours) and a
   deep iris lower edge that presses down. The step inside the B (capability going up) marks WHERE YOU ARE: a rising underline
   under the active nav item and section titles, and the iris staircase from the kit's collages on lead images and the join box.

   Colour jobs (kit chapter 03): graphite and chalk carry the page; iris is the signature (the keys, the step, the collage);
   deep iris is links and highlighted words in light mode (#C1B3FF in dark); fog orders quiet bands. Text is graphite/chalk and
   the kit's tinted greys (#423A50, #635B73 / #DDD5E9, #C0B8D1), never a neutral grey.
   Type (kit chapter 04): Space Grotesk only, 300 to 700 (never 800): display 700 at -3.5%, headings 700 at -2%, body 400,
   labels 700 caps at 12%.

   Four deliberate website decisions that differ from the kit (recorded on the rulebook and in doc 141):
   1. The primary button is iris with a graphite label (the kit's "on accent" pair, 5.37:1) in both themes; the kit gives
      actions to deep iris (light) and #B5A5FF (dark). Text links keep the kit's link colours.
   2. Iris appears more than "once per surface": on every key, the step and the collage. Body text never uses it.
   3. Light pages sit on the kit's elevated tone #EEEAF5 with fog bands and firmer card edges #CBC2DA (Sal's contrast
      decision for the TAB landings, 2026-10-25); chalk #F6F4FA is the paper inside cards and fields.
   4. The key's lower edge is a depth cue on buttons and cards only, never on the logo (kit: no 3D or shadows on the mark).

   Dark is the default; light follows body.light-mode (the class the site's clock theme sets) or [data-theme="light"].
   Every class is prefixed tb- so it never collides with page or agent CSS. Fonts load separately: /files/tab-brand/fonts/
   fonts.css on the site, ../fonts/fonts.css in the kit. No em dashes in copy. */

/* ---------- Part 1: tokens ---------- */
:root, [data-theme="dark"]{
  --tb-bg:#17151F; --tb-paper:#17151F; --tb-surface:#24212F; --tb-surface-2:#302A3D; --tb-band:#24212F;
  --tb-line:#40394E; --tb-divider:#40394E; --tb-control:#9389A4;
  --tb-text:#F6F4FA; --tb-text-2:#DDD5E9; --tb-muted:#C0B8D1;
  --tb-link:#C1B3FF; --tb-hl:#C1B3FF; --tb-focus:#C1B3FF; --tb-tint:#33284F;
  --tb-success:#99DFB2; --tb-warning:#F2CC80; --tb-error:#FFABB7;
  --tb-shadow-1:0 1px 2px rgba(0,0,0,.35); --tb-shadow-2:0 1px 2px rgba(0,0,0,.35),0 12px 32px rgba(0,0,0,.38); --tb-shadow-3:0 24px 60px rgba(0,0,0,.5);
  /* the join panel: iris by night with a graphite key; graphite by day with the iris key */
  --tb-panel:#8C78FF; --tb-on-panel:#17151F; --tb-on-panel-2:#17151F; --tb-panel-stair:#17151F;
  --tb-panel-key:#17151F; --tb-panel-key-hover:#24212F; --tb-panel-on-key:#F6F4FA; --tb-panel-key-edge:#000000;
  --tb-panel-field:#F6F4FA; --tb-panel-field-line:#17151F; --tb-panel-field-text:#17151F; --tb-panel-field-ph:#423A50;
  --tb-panel-hl:#17151F;
  --tb-day:none; --tb-night:block;
  color-scheme:dark;
}
body.light-mode, [data-theme="light"]{
  --tb-bg:#EEEAF5; --tb-paper:#F6F4FA; --tb-surface:#FFFFFF; --tb-surface-2:#F6F4FA; --tb-band:#E5E0F0;
  --tb-line:#CBC2DA; --tb-divider:#D2CADF; --tb-control:#857A94;
  --tb-text:#17151F; --tb-text-2:#423A50; --tb-muted:#635B73;
  --tb-link:#5938C6; --tb-hl:#5938C6; --tb-focus:#5938C6; --tb-tint:#EAE4FF;
  --tb-success:#25603B; --tb-warning:#805000; --tb-error:#AA283A;
  --tb-shadow-1:0 1px 2px rgba(23,21,31,.06); --tb-shadow-2:0 1px 2px rgba(23,21,31,.06),0 10px 28px rgba(23,21,31,.08); --tb-shadow-3:0 24px 60px rgba(23,21,31,.16);
  --tb-panel:#17151F; --tb-on-panel:#F6F4FA; --tb-on-panel-2:#DDD5E9; --tb-panel-stair:#8C78FF;
  --tb-panel-key:#8C78FF; --tb-panel-key-hover:#9D8BFF; --tb-panel-on-key:#17151F; --tb-panel-key-edge:#5938C6;
  --tb-panel-field:#24212F; --tb-panel-field-line:#9389A4; --tb-panel-field-text:#F6F4FA; --tb-panel-field-ph:#C0B8D1;
  --tb-panel-hl:#8C78FF;
  --tb-day:block; --tb-night:none;
  color-scheme:light;
}
:root{
  --tb-graphite:#17151F; --tb-chalk:#F6F4FA; --tb-iris:#8C78FF; --tb-deep:#5938C6; --tb-fog:#E5E0F0;
  --tb-key:#8C78FF; --tb-key-hover:#9D8BFF; --tb-on-key:#17151F; --tb-key-edge:#5938C6;
  --tb-font:'Space Grotesk',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
  /* type (px): 12 label, 13 meta, 14.5 small, 17 body, 18 lead / prose, 22 card title, 28-40 section, 34-52 page title, 40-64 display */
  /* radius: 6 chips, 7 number keys, 10 keys and fields, 16 cards and panels, 999 avatars only */
  --tb-r-chip:6px; --tb-r-key:10px; --tb-r-card:16px;
  --tb-ease:cubic-bezier(.25,0,.5,1);
  /* the step from the B: three rising bars, used as an underline */
  --tb-step:linear-gradient(var(--tb-iris),var(--tb-iris)) left bottom/34% 2px no-repeat,linear-gradient(var(--tb-iris),var(--tb-iris)) 50% bottom/33% 3.5px no-repeat,linear-gradient(var(--tb-iris),var(--tb-iris)) right bottom/34% 5px no-repeat;
}

/* ---------- Part 2: type ---------- */
.tb-display{font-family:var(--tb-font);font-size:clamp(40px,5.4vw,64px);font-weight:700;letter-spacing:-.035em;line-height:1.02;color:var(--tb-text);text-wrap:balance;margin:0}
.tb-h1{font-family:var(--tb-font);font-size:clamp(34px,4.2vw,52px);font-weight:700;letter-spacing:-.03em;line-height:1.06;color:var(--tb-text);text-wrap:balance;margin:0}
.tb-h2{font-family:var(--tb-font);font-size:clamp(28px,3.2vw,40px);font-weight:700;letter-spacing:-.02em;line-height:1.1;color:var(--tb-text);text-wrap:balance;margin:0}
.tb-h3{font-family:var(--tb-font);font-size:22px;font-weight:700;letter-spacing:-.02em;line-height:1.25;color:var(--tb-text);margin:0}
.tb-h4{font-family:var(--tb-font);font-size:17px;font-weight:700;letter-spacing:-.01em;line-height:1.35;color:var(--tb-text);margin:0}
.tb-display em,.tb-h1 em,.tb-h2 em,.tb-h3 em{font-style:normal;color:var(--tb-hl)}   /* the highlight: the words after the colon */
.tb-lead{font-size:18px;line-height:1.6;color:var(--tb-text-2);margin:0}
.tb-text{font-size:17px;line-height:1.65;color:var(--tb-text);margin:0}
.tb-small{font-size:14.5px;line-height:1.6;color:var(--tb-text-2);margin:0}
.tb-meta{font-size:13px;line-height:1.5;color:var(--tb-muted);margin:0}
.tb-label{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--tb-muted)}
.tb-label b{color:var(--tb-link);font-weight:700}                                    /* split label: "TAB News · Weekly" */
.tb-label svg{width:16px;height:12px;color:var(--tb-iris);flex:0 0 auto}

/* ---------- Part 3: actions (the keys) ---------- */
.tb-key,.tb-key-2,.tb-iconbtn,.tb-chip,.tb-num,.tb-kbd{box-sizing:border-box}   /* links default to content-box: without this an <a> key is 66 px tall, not 44 */
.tb-key{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border:0;border-radius:var(--tb-r-key);
  background:var(--tb-key);color:var(--tb-on-key);font:700 15px/1.2 var(--tb-font);text-decoration:none;white-space:nowrap;cursor:pointer;
  box-shadow:0 3px 0 var(--tb-key-edge);transition:transform .12s var(--tb-ease),box-shadow .12s var(--tb-ease),background-color .12s}
.tb-key svg{width:17px;height:17px;flex:0 0 auto;color:currentColor;transition:transform .2s var(--tb-ease)}
.tb-key:hover{background:var(--tb-key-hover);transform:translateY(1px);box-shadow:0 2px 0 var(--tb-key-edge)}
.tb-key:hover svg:last-child{transform:translateX(2px)}
.tb-key:active{transform:translateY(3px);box-shadow:0 0 0 var(--tb-key-edge)}
.tb-key[disabled]{opacity:.5;cursor:not-allowed;transform:none;box-shadow:0 3px 0 var(--tb-key-edge)}
.tb-key--sm{min-height:36px;padding:7px 13px;font-size:14px}
.tb-key--lg{min-height:52px;padding:14px 24px;font-size:16px}
.tb-key--ink{background:var(--tb-graphite);color:var(--tb-chalk);box-shadow:0 3px 0 #000}   /* on iris panels */
.tb-key--ink:hover{background:#24212F;box-shadow:0 2px 0 #000}
.tb-key-2{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 17px;border-radius:var(--tb-r-key);
  background:var(--tb-surface);color:var(--tb-text);border:1px solid var(--tb-control);border-bottom-width:3px;font:700 15px/1.2 var(--tb-font);text-decoration:none;white-space:nowrap;cursor:pointer;
  transition:transform .12s var(--tb-ease),border-bottom-width .12s}
.tb-key-2 svg{width:17px;height:17px}
.tb-key-2:hover{transform:translateY(1px);border-bottom-width:2px;margin-bottom:1px}
.tb-key-2:active{transform:translateY(2px);border-bottom-width:1px;margin-bottom:2px}
.tb-link{display:inline-flex;align-items:center;gap:6px;font:700 15px/1.3 var(--tb-font);color:var(--tb-link);text-decoration:none;background:none;border:0;padding:0;cursor:pointer}
.tb-link svg{width:16px;height:16px;transition:transform .2s var(--tb-ease)}
.tb-link:hover svg{transform:translateX(3px)}
.tb-link--inline{display:inline;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px;text-decoration-color:color-mix(in srgb,var(--tb-link) 45%,transparent)}
.tb-iconbtn{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:var(--tb-r-key);border:1px solid var(--tb-line);border-bottom-width:3px;background:var(--tb-surface);color:var(--tb-text);cursor:pointer}
.tb-iconbtn svg{width:18px;height:18px}
.tb-iconbtn:hover{transform:translateY(1px);border-bottom-width:2px;margin-bottom:1px}
.tb-key:focus-visible,.tb-key-2:focus-visible,.tb-link:focus-visible,.tb-iconbtn:focus-visible,.tb-chip:focus-visible,.tb-nav a:focus-visible,.tb-issue:focus-visible{outline:2px solid var(--tb-focus);outline-offset:3px}

/* ---------- Part 4: inputs ---------- */
.tb-field{display:grid;gap:6px}
.tb-field label,.tb-field-label{font-size:14px;font-weight:600;color:var(--tb-text)}
.tb-input,.tb-select,.tb-textarea{display:block;width:100%;box-sizing:border-box;min-height:44px;padding:10px 14px;border:1px solid var(--tb-control);border-radius:var(--tb-r-key);
  background:var(--tb-surface);font:15px/1.4 var(--tb-font);color:var(--tb-text);transition:border-color .2s,box-shadow .2s}
.tb-textarea{min-height:120px;resize:vertical}
.tb-input::placeholder,.tb-textarea::placeholder{color:var(--tb-muted)}
.tb-input:focus,.tb-select:focus,.tb-textarea:focus{outline:0;border-color:var(--tb-focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--tb-focus) 22%,transparent)}
.tb-join{display:flex;gap:8px;align-items:stretch}                                    /* email field + key in one row */
.tb-join .tb-input{flex:1;min-width:0}
.tb-hint{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:13px;color:var(--tb-muted);margin-top:10px}
.tb-kbd{display:inline-block;font:700 11px/1.5 var(--tb-font);border:1px solid var(--tb-control);border-bottom-width:2px;border-radius:4px;padding:0 6px;background:var(--tb-surface);color:var(--tb-text)}
.tb-status{display:none;align-items:flex-start;gap:8px;margin-top:12px;font:600 14px/1.45 var(--tb-font)}
.tb-status.is-visible{display:flex}
.tb-status svg{width:18px;height:18px;flex:0 0 auto;margin-top:1px}
.tb-status[data-status="ok"]{color:var(--tb-success)}
.tb-status[data-status="error"]{color:var(--tb-error)}

/* ---------- Part 5: chips (keys you can press, or labels shaped like keys) ---------- */
.tb-chip{display:inline-flex;align-items:center;gap:6px;min-height:26px;padding:3px 9px;border:1px solid var(--tb-control);border-bottom-width:3px;border-radius:var(--tb-r-chip);
  background:var(--tb-surface);color:var(--tb-text);font:700 11px/1.2 var(--tb-font);letter-spacing:.1em;text-transform:uppercase;text-decoration:none;white-space:nowrap}
.tb-chip--iris{background:var(--tb-tint);border-color:var(--tb-link);color:var(--tb-link)}
a.tb-chip:hover{transform:translateY(1px);border-bottom-width:2px;margin-bottom:1px}
.tb-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}

/* ---------- Part 6: numbers (tiny iris keys) ---------- */
.tb-num{display:inline-grid;place-items:center;flex:0 0 auto;width:40px;height:30px;border-radius:7px;background:var(--tb-key);color:var(--tb-on-key);
  font:700 13px/1 var(--tb-font);font-variant-numeric:tabular-nums;box-shadow:0 3px 0 var(--tb-key-edge)}

/* ---------- Part 7: the step (where you are) and the collage ---------- */
.tb-step{position:relative;display:inline-block;padding-bottom:9px}
.tb-step::after{content:'';position:absolute;left:0;bottom:0;width:66px;height:5px;background:var(--tb-step)}
.tb-step--full::after{width:100%}
.tb-collage{position:relative;overflow:hidden}
.tb-stair{position:absolute;right:0;bottom:0;width:150px;height:86px;color:var(--tb-iris);pointer-events:none}   /* <svg viewBox="0 0 150 86" preserveAspectRatio="none"><path d="M0 86V62H38V40H76V18H114V0H150V86Z" fill="currentColor"/></svg> */
.tb-stair--sm{width:96px;height:56px}
.tb-stair--top{top:0;bottom:auto;width:112px;height:64px}                                                       /* path d="M112 0V64H84V44H56V22H28V0Z" */
.tb-disc{position:absolute;right:118px;bottom:58px;width:30px;height:30px;border-radius:50%;background:var(--tb-chalk);box-shadow:0 0 0 6px rgba(140,120,255,.35);pointer-events:none}

/* ---------- Part 8: cards, panels, lists ---------- */
.tb-card{position:relative;background:var(--tb-surface);border:1px solid var(--tb-line);border-bottom-width:4px;border-radius:var(--tb-r-card);box-shadow:var(--tb-shadow-2);padding:24px;box-sizing:border-box}
.tb-card--flat{box-shadow:var(--tb-shadow-1)}
.tb-card--lift{transition:transform .2s var(--tb-ease),box-shadow .2s var(--tb-ease)}
.tb-card--lift:hover{transform:translateY(-2px);box-shadow:var(--tb-shadow-3)}
.tb-tile{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:var(--tb-r-key);background:var(--tb-tint);color:var(--tb-link);flex:0 0 auto}
.tb-tile svg{width:20px;height:20px}
.tb-feature{display:grid;gap:12px;align-content:start}
.tb-feature .tb-h4{margin-top:4px}
/* issue card (the archive grid) */
.tb-issue{display:flex;flex-direction:column;overflow:hidden;padding:0;text-decoration:none;color:inherit}
.tb-issue-img{aspect-ratio:16/9;overflow:hidden;background:var(--tb-surface-2)}
.tb-issue-img img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s var(--tb-ease)}
.tb-issue:hover .tb-issue-img img{transform:scale(1.03)}
.tb-issue-body{display:grid;gap:10px;padding:18px 20px 20px;flex:1;align-content:start}
.tb-issue-body .tb-h4{font-size:18px;line-height:1.3}
.tb-issue-body .tb-meta{margin-top:auto}
/* the lead story */
.tb-lead-story{overflow:hidden;padding:0}
.tb-lead-story .tb-collage{aspect-ratio:16/8.2;background:var(--tb-surface-2)}
.tb-lead-story .tb-collage img{display:block;width:100%;height:100%;object-fit:cover}
.tb-lead-body{display:grid;gap:12px;padding:22px 26px 24px}
.tb-byline{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--tb-muted)}
.tb-byline b{color:var(--tb-text);font-weight:600}
.tb-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.tb-row{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
/* the latest list */
.tb-list{display:grid}
.tb-list-item{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 0;border-top:1px solid var(--tb-divider);text-decoration:none;color:inherit}
.tb-list-item b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14.5px;font-weight:600;line-height:1.35;color:var(--tb-text)}
.tb-list-item:hover b{color:var(--tb-link)}
.tb-list-item small{display:block;font-size:12.5px;color:var(--tb-muted);margin-top:3px}
.tb-thumb{width:58px;height:44px;border-radius:8px;overflow:hidden;background:var(--tb-surface-2)}
.tb-thumb img{display:block;width:100%;height:100%;object-fit:cover}
/* bands and the join panel */
.tb-band{background:var(--tb-band)}
.tb-panel{position:relative;overflow:hidden;border-radius:var(--tb-r-card);padding:26px;background:var(--tb-panel);color:var(--tb-on-panel);box-shadow:0 4px 0 var(--tb-key-edge)}
.tb-panel .tb-stair{color:var(--tb-panel-stair)}
.tb-panel .tb-h2,.tb-panel .tb-h3,.tb-panel .tb-h4{color:var(--tb-on-panel)}
.tb-panel p{color:var(--tb-on-panel-2)}
.tb-panel .tb-display em,.tb-panel .tb-h1 em,.tb-panel .tb-h2 em,.tb-panel .tb-h3 em{color:var(--tb-panel-hl)}   /* iris on graphite by day (5.37:1), graphite on iris by night */
.tb-panel .tb-label{color:var(--tb-on-panel-2)}
.tb-panel .tb-label b,.tb-panel .tb-link{color:var(--tb-panel-hl)}
.tb-panel .tb-chip,.tb-panel .tb-kbd{background:transparent;border-color:currentColor;color:inherit}
.tb-panel .tb-hint{color:var(--tb-on-panel-2)}
.tb-panel .tb-key{background:var(--tb-panel-key);color:var(--tb-panel-on-key);box-shadow:0 3px 0 var(--tb-panel-key-edge)}
.tb-panel .tb-key:hover{background:var(--tb-panel-key-hover);box-shadow:0 2px 0 var(--tb-panel-key-edge)}
.tb-panel .tb-key:active{box-shadow:0 0 0 var(--tb-panel-key-edge)}
.tb-panel .tb-input{background:var(--tb-panel-field);border-color:var(--tb-panel-field-line);color:var(--tb-panel-field-text)}
.tb-panel .tb-input::placeholder{color:var(--tb-panel-field-ph)}

/* ---------- Part 9: the frame (nav, footer, page wrap) ---------- */
.tb-wrap{max-width:1180px;margin:0 auto;padding:0 32px;box-sizing:border-box}
.tb-nav{display:flex;align-items:center;gap:22px;padding:8px 8px 8px 16px;background:var(--tb-surface);border:1px solid var(--tb-line);border-radius:var(--tb-r-card);box-shadow:var(--tb-shadow-2)}
.tb-nav .tb-logo{display:inline-flex;flex:0 0 auto}
.tb-nav .tb-logo svg,.tb-nav .tb-logo img{height:30px;width:auto;display:block}
.tb-nav-links{display:flex;gap:22px;margin-right:auto}
.tb-nav-links a{position:relative;font:600 14px/1.2 var(--tb-font);color:var(--tb-text-2);text-decoration:none;padding:6px 0}
.tb-nav-links a:hover{color:var(--tb-text)}
.tb-nav-links a.is-active,.tb-nav-links a[aria-current="page"]{color:var(--tb-text)}
.tb-nav-links a.is-active::after,.tb-nav-links a[aria-current="page"]::after{content:'';position:absolute;left:0;bottom:-2px;width:100%;height:5px;background:var(--tb-step)}
.tb-footer{text-align:center;padding:56px 0 40px;border-top:1px solid var(--tb-divider);margin-top:72px}
.tb-footer .tb-lockup{height:66px;width:auto;margin:0 auto}                     /* kit: the full-name lockup only at 320 px wide or more */
.tb-footer .tb-meta{margin-top:18px}
.tb-footer .tb-meta a{color:var(--tb-text-2);text-decoration:none}
.tb-footer .tb-meta a:hover{color:var(--tb-link)}
.tb-day{display:var(--tb-day)!important}.tb-night{display:var(--tb-night)!important}                /* day/dusk image pairs and the light/dark lockups */
@media (max-width:760px){
  .tb-wrap{padding:0 18px}
  .tb-nav-links{display:none}
  .tb-nav{gap:12px;justify-content:space-between}
  .tb-nav .tb-key{margin-left:auto}
  .tb-join{flex-direction:column}
  .tb-lead-body{padding:20px 18px}
  .tb-footer .tb-lockup{height:auto;width:min(320px,100%)}
}

/* ---------- Part 10: the issue page ---------- */
.tb-article-head{display:grid;gap:14px;max-width:820px}
.tb-prose{max-width:68ch;font:400 18px/1.75 var(--tb-font);color:var(--tb-text)}
.tb-prose > * + *{margin-top:1.1em}
.tb-prose h2{font-size:28px;font-weight:700;letter-spacing:-.02em;line-height:1.2;margin-top:2em;color:var(--tb-text)}
.tb-prose h3{font-size:21px;font-weight:700;letter-spacing:-.01em;line-height:1.3;margin-top:1.6em;color:var(--tb-text)}
.tb-prose h4{font-size:18px;font-weight:700;margin-top:1.4em}
.tb-prose a{color:var(--tb-link);font-weight:600;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,var(--tb-link) 45%,transparent)}
.tb-prose a:hover{text-decoration-color:var(--tb-link)}
.tb-prose strong{font-weight:700}
.tb-prose ul,.tb-prose ol{padding-left:1.4em}
.tb-prose li + li{margin-top:.45em}
.tb-prose li::marker{color:var(--tb-iris);font-weight:700}
.tb-prose blockquote{margin-left:0;padding:4px 0 4px 20px;border-left:4px solid var(--tb-iris);color:var(--tb-text-2);font-size:20px;line-height:1.55}
.tb-prose code{font:500 .88em/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--tb-tint);color:var(--tb-text);border-radius:5px;padding:.12em .38em}
.tb-prose pre{background:#17151F;color:#F6F4FA;border-radius:var(--tb-r-key);padding:16px 18px;overflow:auto;font:14px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;border:1px solid #40394E}
.tb-prose pre code{background:none;padding:0;color:inherit}
.tb-prose img{display:block;max-width:100%;height:auto;border-radius:12px;border:1px solid var(--tb-line)}
.tb-prose figcaption{font-size:13px;color:var(--tb-muted);margin-top:8px;text-align:center}
.tb-prose table{width:100%;border-collapse:collapse;font-size:15px}
.tb-prose th,.tb-prose td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--tb-divider)}
.tb-prose th{font-weight:700;color:var(--tb-text);border-bottom:2px solid var(--tb-line)}
.tb-prose hr{border:0;height:5px;width:66px;background:var(--tb-step);margin:2.4em 0}
.tb-end{display:grid;gap:12px;justify-items:start}                                      /* the box at the end of an issue */

/* ---------- Part 11: dialogs and drawers (join pop-up, contact panel) ---------- */
.tb-overlay{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(23,21,31,.55);backdrop-filter:blur(6px)}
.tb-overlay.is-open{display:flex}
.tb-dialog{position:relative;width:min(460px,100%);background:var(--tb-surface);color:var(--tb-text);border:1px solid var(--tb-line);border-bottom-width:4px;border-radius:var(--tb-r-card);box-shadow:var(--tb-shadow-3);padding:28px;box-sizing:border-box}
.tb-dialog .tb-iconbtn{position:absolute;top:14px;right:14px}
.tb-drawer{position:fixed;top:0;right:0;bottom:0;z-index:1001;width:min(440px,100%);background:var(--tb-surface);border-left:1px solid var(--tb-line);box-shadow:var(--tb-shadow-3);padding:28px;overflow:auto;box-sizing:border-box;transform:translateX(100%);transition:transform .3s var(--tb-ease)}
.tb-drawer.is-open{transform:none}

/* ---------- Part 12: motion and access ---------- */
.tb-reveal{opacity:0;transform:translateY(16px);transition:opacity .7s var(--tb-ease),transform .7s var(--tb-ease)}
.tb-reveal.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .tb-key,.tb-key-2,.tb-iconbtn,.tb-link svg,.tb-issue-img img,.tb-card--lift,.tb-drawer,.tb-reveal{transition:none}
  .tb-reveal{opacity:1;transform:none}
}
