/* =====================================================================
   resume.gs: unified site theme ("Cream + Terracotta") · v2
   Single source of truth for colours, type, spacing, radii, shadows,
   focus and the shared components on every page (home, /cv-builder/,
   /sign-in/, /sign-up/, /account/, reset, legal pages, 404).
   Base values come from the live homepage stylesheet
   (wp-content/mu-plugins/rb-landing/landing-p.css, ".rbp" tokens).
   Changes vs. live are marked [fix]. See SPEC.md for why.
   Prefixes: --gs-* (tokens) and .gs-* (components), so nothing collides
   with the existing .rb-* / .rbp-* / .rbw-* / .rbc-* plugin classes.
   Every token defined here is used by a component below or by
   theme-bridge.css / patches/. Unused tokens were removed in v2.
   ===================================================================== */

/* Inter variable, already self-hosted by the plugin ("RBP Sans" on live). The only web font. */
@font-face{
  font-family:"RBP Sans";
  src:url("/wp-content/plugins/resume-builder/assets/fonts/inter-567244.woff2") format("woff2");
  font-weight:100 900;font-style:normal;font-display:swap;
}

/* Metric-matched swap fallbacks. local() only; never a CDN or Google Fonts.
   One face per weight the shipping home actually renders (400, 600, 650, 700, 750).
   size-adjust from fontTools hmtx average of a-zA-Z0-9; ascent/descent are
   (1984/2048) and (494/2048) divided by size-adjust (fontaine / next/font).
   See tests/FALLBACK-METRICS.md and tests/results/fallback-metrics.json. */
@font-face{font-family:"Inter-fallback-roboto";src:local("Roboto Regular"),local("Roboto-Regular"),local("Roboto");font-weight:400;font-style:normal;size-adjust:107.142%;ascent-override:90.417%;descent-override:22.513%;line-gap-override:0%}
@font-face{font-family:"Inter-fallback-roboto";src:local("Roboto SemiBold"),local("Roboto-SemiBold"),local("Roboto Medium"),local("Roboto-Medium");font-weight:600;font-style:normal;size-adjust:108.721%;ascent-override:89.104%;descent-override:22.186%;line-gap-override:0%}
@font-face{font-family:"Inter-fallback-roboto";src:local("Roboto SemiBold"),local("Roboto-SemiBold"),local("Roboto Bold"),local("Roboto-Bold");font-weight:650;font-style:normal;size-adjust:109.439%;ascent-override:88.52%;descent-override:22.041%;line-gap-override:0%}
@font-face{font-family:"Inter-fallback-roboto";src:local("Roboto Bold"),local("Roboto-Bold"),local("Roboto");font-weight:700;font-style:normal;size-adjust:108.9%;ascent-override:88.958%;descent-override:22.150%;line-gap-override:0%}
@font-face{font-family:"Inter-fallback-roboto";src:local("Roboto Bold"),local("Roboto-Bold"),local("Roboto");font-weight:750;font-style:normal;size-adjust:110.633%;ascent-override:87.565%;descent-override:21.803%;line-gap-override:0%}
@font-face{font-family:"Inter-fallback-arial";src:local("Arial"),local("Arial MT"),local("ArialMT"),local("Liberation Sans"),local("LiberationSans"),local("Arimo Regular"),local("Arimo-Regular");font-weight:400;font-style:normal;size-adjust:104.707%;ascent-override:92.52%;descent-override:23.037%;line-gap-override:0%}
@font-face{font-family:"Inter-fallback-arial";src:local("Arial Bold"),local("Arial Bold MT"),local("Arial-BoldMT"),local("Liberation Sans Bold"),local("LiberationSans-Bold"),local("Arimo Bold"),local("Arimo-Bold");font-weight:600;font-style:normal;size-adjust:103.013%;ascent-override:94.042%;descent-override:23.416%;line-gap-override:0%}
@font-face{font-family:"Inter-fallback-arial";src:local("Arial Bold"),local("Arial Bold MT"),local("Arial-BoldMT"),local("Liberation Sans Bold"),local("LiberationSans-Bold"),local("Arimo Bold"),local("Arimo-Bold");font-weight:650;font-style:normal;size-adjust:103.693%;ascent-override:93.424%;descent-override:23.262%;line-gap-override:0%}
@font-face{font-family:"Inter-fallback-arial";src:local("Arial Bold"),local("Arial Bold MT"),local("Arial-BoldMT"),local("Liberation Sans Bold"),local("LiberationSans-Bold"),local("Arimo Bold"),local("Arimo-Bold");font-weight:700;font-style:normal;size-adjust:101.85%;ascent-override:95.115%;descent-override:23.683%;line-gap-override:0%}
@font-face{font-family:"Inter-fallback-arial";src:local("Arial Bold"),local("Arial Bold MT"),local("Arial-BoldMT"),local("Liberation Sans Bold"),local("LiberationSans-Bold"),local("Arimo Bold"),local("Arimo-Bold");font-weight:750;font-style:normal;size-adjust:105.157%;ascent-override:92.124%;descent-override:22.938%;line-gap-override:0%}
@font-face{font-family:"Inter-fallback-hero-roboto";src:local("Roboto Bold"),local("Roboto-Bold"),local("Roboto");font-weight:750;font-style:normal;size-adjust:118.8%;ascent-override:81.545%;descent-override:20.304%;line-gap-override:0%}
@font-face{font-family:"Inter-fallback-hero-arial";src:local("Arial Bold"),local("Arial Bold MT"),local("Arial-BoldMT"),local("Liberation Sans Bold"),local("LiberationSans-Bold"),local("Arimo Bold"),local("Arimo-Bold");font-weight:750;font-style:normal;size-adjust:122.863%;ascent-override:78.848%;descent-override:19.633%;line-gap-override:0%}

:root{
  /* ---------- Surfaces ---------- */
  --gs-bg:            #f7f4f0;  /* page background (cream) */
  --gs-surface:       #ffffff;  /* cards, header, forms, footer */
  --gs-surface-warm:  #f1ede8;  /* hover fills, table heads, inset blocks */
  --gs-surface-warm-2:#ebe6df;  /* disabled fills */
  --gs-surface-tint:  #fffaf6;  /* the single highlight card */

  /* ---------- Lines ---------- */
  --gs-line:          #e4ded6;  /* decorative dividers + card borders */
  --gs-line-2:        #d3cbc1;  /* decorative, panels */
  --gs-line-strong:   #8a8076;  /* [fix] control borders: >=3:1 on white and cream (WCAG 1.4.11) */

  /* ---------- Text ---------- */
  --gs-text:          #2f2b27;
  --gs-text-2:        #6b645c;  /* secondary, helper, switched-off labels */

  /* ---------- Brand (terracotta) ---------- */
  --gs-accent:        #a65a33;  /* fills: primary button, checked controls, logo. Never text on tinted surfaces. */
  --gs-accent-rgb:    166,90,51;/* for rgba() tints in patched plugin CSS */
  --gs-accent-hover:  #8f4d2b;  /* hover fill, pill text, focus ring */
  --gs-accent-text:   #9a5230;  /* links and accent text */
  --gs-accent-soft:   #f6e7dc;  /* pills, icon tiles, banner, user chat bubble */
  --gs-accent-soft-line:#ebcdb7;
  --gs-accent-deco:   #c8774a;  /* decoration only: link underline, highlight-card border. Never text, never focus. */

  /* ---------- Highlight (purple): AI marks ONLY. Never a button, link, focus ring or large fill. No blue. ---------- */
  --gs-highlight:     #5b4a8f;
  --gs-highlight-soft:#f1edf8;
  --gs-highlight-line:#d9d0ee;

  /* ---------- Status ---------- */
  --gs-success:       #2f6b43;
  --gs-success-soft:  #e7f1ea;
  --gs-danger:        #b42318;
  --gs-danger-rgb:    180,35,24;   /* for translucent danger borders (v2.2) */
  --gs-danger-hover:  #912018;
  --gs-danger-soft:   #fbeae6;
  --gs-danger-line:   #e7b4ab;

  /* ---------- Focus ---------- */
  --gs-focus:         #a65a33;  /* v2.2.2: one focus ring token = accent, 2px, 2px offset (was accent-hover 3px) */
  --gs-focus-width:   2px;
  --gs-focus-offset:  2px;

  /* ---------- Type: one family, eight sizes ---------- */
  --gs-font-sans:"RBP Sans","Inter-fallback-roboto","Inter-fallback-arial",system-ui,sans-serif;
  --gs-fs-xs:      12px;  /* DECORATIVE ONLY: icon glyphs, media overlay labels. Never for information you need. */
  --gs-fs-sm:      14px;  /* [fix v2] text floor: helper text, errors, hints, pills, labels, nav, captions, legal meta */
  --gs-fs-md:      16px;  /* default body + UI text, buttons, inputs (no iOS zoom), legal prose */
  --gs-fs-lg:      18px;  /* lead paragraphs, legal h3 */
  --gs-fs-xl:      22px;  /* h3, card/section titles, legal h2, modal title */
  --gs-fs-2xl:     28px;  /* h2 (22 on phones) */
  --gs-fs-3xl:     36px;  /* page h1: account, legal, 404 (28 on phones) */
  --gs-fs-display: 46px;  /* home hero h1 only (36 on phones) */
  --gs-fw-regular:400; --gs-fw-semibold:600; --gs-fw-bold:700; --gs-fw-heavy:750;
  --gs-lh-tight:1.1; --gs-lh-heading:1.2; --gs-lh-ui:1.45; --gs-lh-body:1.55; --gs-lh-prose:1.7;
  --gs-ls-display:-.025em; --gs-ls-heading:-.015em;

  /* ---------- Spacing (4px base) ---------- */
  --gs-space-1:4px;  --gs-space-2:8px;  --gs-space-3:12px; --gs-space-4:16px;
  --gs-space-5:20px; --gs-space-6:24px; --gs-space-7:32px; --gs-space-8:40px;
  --gs-space-9:56px; --gs-space-10:80px;
  --gs-gutter:28px;
  --gs-maxw:1200px;
  --gs-maxw-form:560px;
  --gs-maxw-prose:45rem;     /* [fix v2] = 72ch of Inter at 16px (720px). Fixed so a 36px h1 in the same column is not 72ch of 36px type. */
  --gs-maxw-feed:640px;      /* future feed column (.gs-wrap--feed) */
  --gs-maxw-profile:960px;   /* future profile page (.gs-wrap--profile) */
  --gs-header-h:66px;

  /* ---------- Radii ---------- */
  --gs-radius-xs:6px;   /* checkbox box, small labels */
  --gs-radius-sm:8px;   /* nav items, TOC links */
  --gs-radius-md:12px;  /* inputs, icon tiles, logo hit area, alerts */
  --gs-radius-lg:16px;  /* cards */
  --gs-radius-xl:20px;  /* auth panel, modal */
  --gs-radius-pill:999px;

  /* ---------- Shadows: exactly three. Flat system: no card shadows, no glass, no gradients. ---------- */
  --gs-shadow-pop:  0 1px 2px rgba(47,43,39,.06), 0 8px 24px -12px rgba(47,43,39,.22); /* menus, popovers, toasts */
  --gs-shadow-modal:0 12px 32px -12px rgba(47,43,39,.22), 0 1px 3px rgba(47,43,39,.06);  /* dialogs (v2.1: softer) */
  --gs-shadow-sheet:0 8px 32px rgba(47,43,39,.14);                                       /* the A4 CV preview page only */

  /* ---------- Controls: two heights only ---------- */
  --gs-control-h:48px;       /* standard: buttons, inputs, any control next to an input */
  --gs-control-h-sm:44px;    /* small: header/toolbar rows where EVERY control is small. Minimum touch target. */
  --gs-check-size:20px;
  --gs-toggle-w:44px; --gs-toggle-h:24px;

  /* ---------- Scalability (profiles, feed, messages) ---------- */
  --gs-avatar-sm:32px; --gs-avatar-md:40px; --gs-avatar-lg:56px; --gs-avatar-xl:96px;
  --gs-z-header:60; --gs-z-modal:400; --gs-z-skip:500;

  --gs-ease:cubic-bezier(.2,.7,.2,1);
  --gs-dur:200ms;
}

/* Short aliases agreed with the team (same values). */
:root{
  --bg:var(--gs-bg); --surface:var(--gs-surface); --text:var(--gs-text); --text-2:var(--gs-text-2);
  --brand:var(--gs-accent); --brand-hover:var(--gs-accent-hover); --brand-text:var(--gs-accent-text); --brand-soft:var(--gs-accent-soft);
  --line:var(--gs-line); --focus:var(--gs-focus); --danger:var(--gs-danger); --highlight:var(--gs-highlight);
  --radius-btn:var(--gs-radius-pill);
}

@media (max-width:700px){ :root{ --gs-gutter:20px; --gs-fs-display:36px; --gs-fs-3xl:28px; --gs-fs-2xl:22px; } }
@media (max-width:380px){ :root{ --gs-gutter:16px; } }

/* =====================================================================
   Base
   ===================================================================== */
html:has(body.gs-page){background:var(--gs-bg)}
body.gs-page{margin:0}  /* [fix v2] no 8px UA frame */
.gs-page{
  background:var(--gs-bg);color:var(--gs-text);
  font:var(--gs-fw-regular) var(--gs-fs-md)/var(--gs-lh-body) var(--gs-font-sans);
  -webkit-font-smoothing:antialiased;overflow-x:clip;
}
.gs-page *,.gs-page *::before,.gs-page *::after{box-sizing:border-box}
.gs-wrap{max-width:var(--gs-maxw);margin:0 auto;padding:0 var(--gs-gutter)}
.gs-wrap--feed{max-width:calc(var(--gs-maxw-feed) + 2 * var(--gs-gutter))}
.gs-wrap--profile{max-width:calc(var(--gs-maxw-profile) + 2 * var(--gs-gutter))}

/* Focus: one ring everywhere. */
.gs-page :focus-visible{outline:var(--gs-focus-width) solid var(--gs-focus);outline-offset:var(--gs-focus-offset)}
.gs-page :focus:not(:focus-visible){outline:none}

.gs-skip{position:absolute;left:var(--gs-space-2);top:-80px;z-index:var(--gs-z-skip);display:inline-flex;align-items:center;
  min-height:var(--gs-control-h);padding:0 var(--gs-space-4);border-radius:var(--gs-radius-sm);
  background:var(--gs-text);color:var(--gs-surface);font-weight:var(--gs-fw-semibold);text-decoration:none}
.gs-skip:focus{top:var(--gs-space-2)}
.gs-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Headings */
.gs-display{font-size:var(--gs-fs-display);line-height:var(--gs-lh-tight);font-weight:var(--gs-fw-heavy);letter-spacing:var(--gs-ls-display);text-wrap:balance;margin:0}
.gs-h1{font-size:var(--gs-fs-3xl);line-height:var(--gs-lh-heading);font-weight:var(--gs-fw-bold);letter-spacing:var(--gs-ls-heading);text-wrap:balance;margin:0}
.gs-h2{font-size:var(--gs-fs-2xl);line-height:var(--gs-lh-heading);font-weight:var(--gs-fw-bold);letter-spacing:var(--gs-ls-heading);text-wrap:balance;margin:0}
.gs-h3{font-size:var(--gs-fs-xl);line-height:1.3;font-weight:var(--gs-fw-bold);margin:0}
.gs-lead{font-size:var(--gs-fs-lg);line-height:var(--gs-lh-body);color:var(--gs-text-2);margin:0}
.gs-muted{color:var(--gs-text-2)}
.gs-eyebrow{font-size:var(--gs-fs-sm);font-weight:var(--gs-fw-semibold);color:var(--gs-accent-text);margin:0}

/* Links */
.gs-link{border-radius:var(--gs-radius-xs);color:var(--gs-accent-text);font-weight:var(--gs-fw-semibold);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:var(--gs-accent-deco)}
.gs-link:hover{color:var(--gs-accent-hover);text-decoration-thickness:2px}
.gs-link--target{display:inline-flex;align-items:center;min-height:var(--gs-control-h-sm)} /* standalone links get a 44px target */
/* v2.2.3: builder slow-load notice (rb-theme.php: p.rb-cv-boot-slow[hidden] > a.gs-link "Reload the page"): the link is an
   outlined pill on its own line under the text. [hidden] still hides the notice (display is only set when not hidden). */
:root:root .rb-cv-boot-slow:not([hidden]){display:flex;flex-direction:column;align-items:center}
:root:root .rb-cv-boot-slow a{display:inline-flex;align-items:center;justify-content:center;min-height:var(--gs-control-h-sm);min-width:var(--gs-control-h-sm);margin-top:var(--gs-space-3);padding:0 var(--gs-space-5);border:1px solid var(--gs-accent);border-radius:var(--gs-radius-pill);background:var(--gs-surface);color:var(--gs-accent-text);font-weight:var(--gs-fw-semibold);text-decoration:none;white-space:nowrap}
:root:root .rb-cv-boot-slow a:hover{background:var(--gs-accent-soft);color:var(--gs-accent-hover)}
:root:root .rb-cv-boot-slow a:focus-visible{outline:var(--gs-focus-width) solid var(--gs-focus);outline-offset:var(--gs-focus-offset)}

/* =====================================================================
   Header / logo / footer
   ===================================================================== */
.gs-header{position:sticky;top:0;z-index:var(--gs-z-header);background:var(--gs-surface);border-bottom:1px solid var(--gs-line)} /* [fix v2] solid */
.gs-header-in{display:flex;align-items:center;gap:var(--gs-space-6);max-width:none;height:var(--gs-header-h);margin:0 auto;padding:0 var(--gs-gutter)}
/* Logo: identical everywhere. Terracotta SVG icon (assets/logo-terracotta.svg), 36px in a 48px hit area. Icon only;
   the image carries alt="resume.gs home" (v2.1; the link has no separate aria-label). Never filtered, never next to the words "resume.gs". */
.gs-brand{display:inline-grid;place-items:center;width:var(--gs-control-h);height:var(--gs-control-h);margin-left:calc(-1 * var(--gs-space-2) + 2px);border-radius:var(--gs-radius-md);flex:none}
.gs-brand img,.gs-brand svg{display:block;width:36px;height:36px;filter:none}
.gs-brand:hover{background:var(--gs-surface-warm)}
.gs-header-actions{display:flex;align-items:center;gap:var(--gs-space-2);margin-left:auto}
.gs-nav{display:flex;gap:var(--gs-space-1);margin-left:auto}
.gs-nav a{display:inline-flex;align-items:center;min-height:var(--gs-control-h-sm);padding:0 var(--gs-space-3);border-radius:var(--gs-radius-sm);font-size:var(--gs-fs-sm);color:var(--gs-text-2);text-decoration:none}
.gs-nav a:hover,.gs-nav a[aria-current="page"]{background:var(--gs-surface-warm);color:var(--gs-text)}
@media (max-width:700px){.gs-header-in{gap:var(--gs-space-3)}.gs-nav{display:none}}
@media (max-width:420px){.gs-header-actions .gs-btn--sm{padding:0 var(--gs-space-3)}}
.gs-backhome{display:inline-flex;align-items:center;gap:var(--gs-space-2);white-space:nowrap;flex:none;margin-left:auto;min-height:var(--gs-control-h-sm);padding:0 var(--gs-space-3);border-radius:var(--gs-radius-pill);font-size:var(--gs-fs-sm);font-weight:var(--gs-fw-semibold);color:var(--gs-accent-text);text-decoration:none}
.gs-backhome:hover{background:var(--gs-accent-soft);color:var(--gs-accent-hover)}
/* v2.2.2 one header pattern: the legal "← Back to home" leaves the header (logo left, Sign in / Create a free account right,
   as on home and 404) and sits in the page body above the title as a plain text link */
.gs-backhome.gs-backhome--inline{margin:0 0 var(--gs-space-4);padding:0;min-height:var(--gs-control-h-sm);background:none;border:0;color:var(--gs-accent-text);text-decoration:underline;text-underline-offset:3px;font-weight:600}
.gs-backhome.gs-backhome--inline:hover{background:none;color:var(--gs-accent-hover)}
/* [v2.2.3] legal pages' in-body "← Back to home": a real 44px target even if WP block/global styles reset links to display:inline or padding:0. Padding-block (12+20+12) gives the height; arrow + underline kept; same 44px box as v2.2.2, so no layout shift. justify-self:start keeps it from stretching across the 720px legal grid column at >=1100px (the whole row was clickable). */
:root:root .gs-backhome.gs-backhome--inline{display:inline-flex;align-items:center;justify-self:start;align-self:start;width:auto;box-sizing:border-box;min-height:var(--gs-control-h-sm);padding-block:var(--gs-space-3);padding-inline:0;line-height:20px;text-decoration:underline;text-underline-offset:3px}

.gs-footer{border-top:1px solid var(--gs-line);background:var(--gs-surface);color:var(--gs-text-2);font-size:var(--gs-fs-sm)}
.gs-footer-in{display:flex;flex-wrap:wrap;gap:var(--gs-space-3) var(--gs-space-6);align-items:center;justify-content:space-between;max-width:var(--gs-maxw);margin:0 auto;padding:var(--gs-space-6) var(--gs-gutter)}
.gs-footer-org{margin:0;color:var(--gs-text-2)} /* required on every public page: "Run by Goeaseservices, Co. Meath, Ireland" */
.gs-footer nav{display:flex;flex-wrap:wrap;gap:var(--gs-space-1)}
@media (max-width:560px){.gs-footer nav{display:grid;grid-template-columns:repeat(2,max-content);gap:0 var(--gs-space-4)}} /* v2.1: 4 links in a 2x2 grid, never one alone on a row */
.gs-footer nav a{display:inline-flex;align-items:center;min-height:var(--gs-control-h-sm);padding:0 var(--gs-space-2);color:var(--gs-text);text-decoration:none;border-radius:var(--gs-radius-sm)}
.gs-footer nav a:hover{background:var(--gs-surface-warm)}
/* v2.2.2: ONE footer pattern for the plugin footers too (layout and colour only; link height is the Developer's footer rule).
   Desktop: org line left, links right. Phones (<=560px): org line, then the links in a 2-column grid (no orphan, no link
   broken over two lines). Auth/welcome .rbw-foot, legal/builder p.rb-legal-footer + nav.rb-legal-footer (dots hidden, left aligned). */
:root:root .rbw-foot{flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:center;text-align:left;gap:var(--gs-space-3) var(--gs-space-6);color:var(--gs-text-2);font-size:var(--gs-fs-sm)}
:root:root .rbw-foot nav,:root:root nav.rb-legal-footer{display:flex;flex-wrap:wrap;gap:0 var(--gs-space-2)}
:root:root :is(.rbw-foot nav,nav.rb-legal-footer,.gs-footer nav) a{white-space:nowrap;color:var(--gs-text);font-weight:600;text-decoration:none}
:root:root :is(.rbw-foot nav,nav.rb-legal-footer,.gs-footer nav) a:hover{text-decoration:underline;text-underline-offset:3px}
:root:root nav.rb-legal-footer > span[aria-hidden="true"]{display:none}
:root:root body:not(.rb-landing-page) :is(p,nav).rb-legal-footer{max-width:var(--gs-maxw);margin-inline:auto;text-align:left;padding-inline:var(--gs-gutter)}
/* v2.2.3: auth pages print the canonical footer INSIDE .rbw-page (centred, max-width 1120px, 16px side padding): full-bleed
   out of it (same surface + top border as home/404), 40px under the card. body already has overflow-x:clip. */
:root:root .rbw-page > footer.gs-footer{width:100vw;max-width:none;margin:var(--gs-space-8) calc(50% - 50vw) 0;box-sizing:border-box}
@media (max-width:560px){
  :root:root .rbw-foot{flex-direction:column;align-items:flex-start}
  :root:root .rbw-foot nav,:root:root nav.rb-legal-footer{display:grid;grid-template-columns:repeat(2,max-content);gap:0 var(--gs-space-4)}
}

/* =====================================================================
   Buttons: two heights (48 standard / 44 small). Never mix them in one row.
   ===================================================================== */
.gs-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--gs-space-2);min-height:var(--gs-control-h);padding:0 var(--gs-space-6);
  border-radius:var(--gs-radius-pill);border:1px solid transparent;font:var(--gs-fw-semibold) var(--gs-fs-md)/1.2 var(--gs-font-sans);
  text-decoration:none;white-space:nowrap;cursor:pointer;transition:background var(--gs-dur),color var(--gs-dur),border-color var(--gs-dur)}
.gs-btn--primary{background:var(--gs-accent);border-color:var(--gs-accent);color:var(--gs-surface)}
.gs-btn--primary:hover,.gs-btn--primary:focus,.gs-btn--primary:focus-visible,.gs-btn--primary:active{background:var(--gs-accent-hover);border-color:var(--gs-accent-hover);color:var(--gs-surface)}
.gs-btn--secondary{background:var(--gs-surface);border-color:var(--gs-line-strong);color:var(--gs-accent-text)}
.gs-btn--secondary:hover{background:var(--gs-accent-soft);border-color:var(--gs-accent-hover);color:var(--gs-accent-hover)}
.gs-btn--quiet{background:transparent;color:var(--gs-text);padding:0 var(--gs-space-4)}
.gs-btn--quiet:hover{background:var(--gs-surface-warm)}
/* Destructive: never the brand colour; always apart from the primary action. */
.gs-btn--danger{background:var(--gs-danger);border-color:var(--gs-danger);color:var(--gs-surface)}
.gs-btn--danger:hover{background:var(--gs-danger-hover);border-color:var(--gs-danger-hover)}
.gs-btn--danger-outline{background:var(--gs-surface);border-color:var(--gs-danger);color:var(--gs-danger)}
.gs-btn--danger-outline:hover{background:var(--gs-danger-soft);color:var(--gs-danger-hover);border-color:var(--gs-danger-hover)}
.gs-btn--sm{min-height:var(--gs-control-h-sm);padding:0 var(--gs-space-5);font-size:var(--gs-fs-sm)}
.gs-btn--block{width:100%}
.gs-btn[disabled],.gs-btn[aria-disabled="true"]{background:var(--gs-surface-warm-2);border-color:var(--gs-surface-warm-2);color:var(--gs-text-2);cursor:not-allowed}
.gs-btn-row{display:flex;flex-wrap:wrap;gap:var(--gs-space-3);align-items:center}

/* =====================================================================
   Pills (14px; the floor for anything informative)
   ===================================================================== */
.gs-pill{display:inline-flex;align-items:center;gap:var(--gs-space-2);padding:var(--gs-space-1) var(--gs-space-3);border-radius:var(--gs-radius-pill);border:1px solid transparent;
  font-size:var(--gs-fs-sm);font-weight:var(--gs-fw-semibold);line-height:1.4;white-space:nowrap;vertical-align:middle}
.gs-pill--ai{background:var(--gs-highlight-soft);border-color:var(--gs-highlight-line);color:var(--gs-highlight)}
.gs-title-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--gs-space-2) var(--gs-space-3)}

/* =====================================================================
   Cards (one shading model for every feature card)
   ===================================================================== */
.gs-section{padding:var(--gs-space-10) 0}
.gs-section--surface{background:var(--gs-surface);border-block:1px solid var(--gs-line)}
.gs-card{display:flex;flex-direction:column;align-items:flex-start;gap:var(--gs-space-2);padding:var(--gs-space-5);
  background:var(--gs-surface);border:1px solid var(--gs-line);border-radius:var(--gs-radius-lg);color:var(--gs-text)}
.gs-section--surface .gs-card{background:var(--gs-bg)} /* same pair, inverted, inside a white band */
.gs-card--highlight{background:var(--gs-surface-tint);border:2px solid var(--gs-accent-deco)}
.gs-card-icon{display:grid;place-items:center;width:var(--gs-space-8);height:var(--gs-space-8);border-radius:var(--gs-radius-md);background:var(--gs-accent-soft);color:var(--gs-accent-text)}
.gs-card-title{font-size:var(--gs-fs-md);font-weight:var(--gs-fw-semibold);line-height:1.35;margin:0}
.gs-card-body{font-size:var(--gs-fs-sm);color:var(--gs-text-2);line-height:var(--gs-lh-body);margin:0}
a.gs-card{text-decoration:none;transition:border-color var(--gs-dur)}
a.gs-card:hover{border-color:var(--gs-line-strong)}
.gs-grid{display:grid;gap:var(--gs-space-4);grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}

.gs-panel{background:var(--gs-surface);border:1px solid var(--gs-line-2);border-radius:var(--gs-radius-xl);padding:var(--gs-space-8)}
@media (max-width:700px){.gs-panel{padding:var(--gs-space-6) var(--gs-space-5);border-radius:var(--gs-radius-lg)}}

/* =====================================================================
   Form fields
   ===================================================================== */
.gs-field{display:flex;flex-direction:column;gap:var(--gs-space-2);margin-bottom:var(--gs-space-5)}
.gs-label{font-size:var(--gs-fs-sm);font-weight:var(--gs-fw-semibold);color:var(--gs-text)}
.gs-help{font-size:var(--gs-fs-sm);line-height:var(--gs-lh-ui);color:var(--gs-text-2);margin:0}           /* [fix v2] 12 -> 14 */
.gs-input,.gs-select,.gs-textarea{width:100%;min-height:var(--gs-control-h);padding:var(--gs-space-3) var(--gs-space-4);border:1px solid var(--gs-line-strong);border-radius:var(--gs-radius-md);
  background:var(--gs-surface);color:var(--gs-text);font:var(--gs-fs-md)/1.4 var(--gs-font-sans);transition:border-color var(--gs-dur)}
.gs-textarea{min-height:120px;resize:vertical}
.gs-input::placeholder,.gs-textarea::placeholder{color:var(--gs-text-2);opacity:1}
.gs-input:hover,.gs-select:hover,.gs-textarea:hover{border-color:var(--gs-text-2)}
.gs-input:focus-visible,.gs-select:focus-visible,.gs-textarea:focus-visible{border-color:var(--gs-focus);outline:var(--gs-focus-width) solid var(--gs-focus);outline-offset:1px}
.gs-field--error .gs-input{border:2px solid var(--gs-danger);padding:11px 15px} /* 1px thicker border, padding compensates */
.gs-error{display:flex;gap:var(--gs-space-2);font-size:var(--gs-fs-sm);font-weight:var(--gs-fw-semibold);color:var(--gs-danger);margin:0} /* [fix v2] 12 -> 14 */
.gs-input-group{display:flex;gap:var(--gs-space-2)}
.gs-input-group .gs-input{flex:1}
.gs-input-group .gs-btn{min-height:var(--gs-control-h)} /* a button beside an input always matches it: 48px */

.gs-fieldset{border:0;margin:0 0 var(--gs-space-5);padding:0}
.gs-fieldset legend{font-size:var(--gs-fs-sm);font-weight:var(--gs-fw-semibold);margin-bottom:var(--gs-space-2);padding:0}
/* Checkbox row: 20px box, whole row is the label, 44px min target. */
.gs-check{display:flex;align-items:flex-start;gap:var(--gs-space-3);min-height:var(--gs-control-h-sm);padding:var(--gs-space-3);margin:0 calc(-1 * var(--gs-space-3));border-radius:var(--gs-radius-md);cursor:pointer;
  font-size:var(--gs-fs-md);line-height:var(--gs-lh-ui);color:var(--gs-text)}
.gs-check:hover{background:var(--gs-surface-warm)}
.gs-check input[type=checkbox]{appearance:none;-webkit-appearance:none;flex:none;display:grid;place-items:center;width:var(--gs-check-size);height:var(--gs-check-size);margin:1px 0 0;
  border:2px solid var(--gs-line-strong);border-radius:var(--gs-radius-xs);background:var(--gs-surface);cursor:pointer;transition:background var(--gs-dur),border-color var(--gs-dur)}
.gs-check input[type=checkbox]::after{content:"";width:6px;height:11px;margin-top:-2px;border:solid var(--gs-surface);border-width:0 2.5px 2.5px 0;transform:rotate(45deg) scale(0);transition:transform 120ms var(--gs-ease)}
.gs-check input[type=checkbox]:checked{background:var(--gs-accent);border-color:var(--gs-accent)}
.gs-check input[type=checkbox]:checked::after{transform:rotate(45deg) scale(1)}
.gs-check input[type=checkbox]:focus-visible{outline:var(--gs-focus-width) solid var(--gs-focus);outline-offset:var(--gs-focus-offset)}
.gs-check a{color:var(--gs-accent-text);font-weight:var(--gs-fw-semibold);text-underline-offset:3px}

/* Toggle switch (role="switch"). Off track #8a8076 = 3.87:1 on white (live #9ca3af was 2.54:1). */
.gs-toggle{display:flex;align-items:center;justify-content:space-between;gap:var(--gs-space-4);min-height:var(--gs-control-h-sm);cursor:pointer;font-size:var(--gs-fs-md);color:var(--gs-text)}
.gs-toggle input{appearance:none;-webkit-appearance:none;position:relative;flex:none;width:var(--gs-toggle-w);height:var(--gs-toggle-h);margin:0;border-radius:var(--gs-radius-pill);
  background:var(--gs-line-strong);border:0;cursor:pointer;transition:background var(--gs-dur)}
.gs-toggle input::after{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:var(--gs-surface);transition:transform var(--gs-dur) var(--gs-ease)}
.gs-toggle input:checked{background:var(--gs-accent)}
.gs-toggle input:checked::after{transform:translateX(20px)}
.gs-toggle input:focus-visible{outline:var(--gs-focus-width) solid var(--gs-focus);outline-offset:var(--gs-focus-offset)}
/* Switched-off row: solid secondary colour, NOT opacity (live used opacity:.6 -> ~2.6:1). #6b645c on white = 5.83:1. */
.gs-toggle.is-off > span{color:var(--gs-text-2)}

.gs-avatar{display:inline-grid;place-items:center;flex:none;width:var(--gs-avatar-md);height:var(--gs-avatar-md);border-radius:50%;background:var(--gs-accent-soft);color:var(--gs-accent-hover);font-weight:var(--gs-fw-semibold);font-size:var(--gs-fs-sm);overflow:hidden}
.gs-avatar--sm{width:var(--gs-avatar-sm);height:var(--gs-avatar-sm)}
.gs-avatar--lg{width:var(--gs-avatar-lg);height:var(--gs-avatar-lg);font-size:var(--gs-fs-lg)}
.gs-avatar--xl{width:var(--gs-avatar-xl);height:var(--gs-avatar-xl);font-size:var(--gs-fs-2xl)}
.gs-avatar img{width:100%;height:100%;object-fit:cover}

/* =====================================================================
   Alerts, banner, modal
   ===================================================================== */
.gs-alert{margin:0;padding:var(--gs-space-3) var(--gs-space-4);border-radius:var(--gs-radius-md);border:1px solid var(--gs-line);background:var(--gs-surface-warm);font-size:var(--gs-fs-sm);color:var(--gs-text)}
.gs-alert strong{display:block;font-size:var(--gs-fs-md);margin-bottom:2px}
.gs-alert--info{background:var(--gs-surface);border-color:var(--gs-line-2);border-left:4px solid var(--gs-text-2)} /* neutral: lockout, paused */
.gs-alert--success{background:var(--gs-success-soft);border-color:var(--gs-success-soft)}
.gs-alert--success strong{color:var(--gs-success)}
.gs-alert--danger{background:var(--gs-danger-soft);border-color:var(--gs-danger-line)}
.gs-alert--danger strong{color:var(--gs-danger)}
/* v2.2.2: the sign-in lockout (429, "Sign-in paused for a few minutes.", markup .rb-acc-notice.gs-alert.gs-alert--info, role=status)
   uses the same error tokens as every other sign-in error; it was green (success) with a thick focus box. */
:root:root .rb-acc .rb-acc-notice.gs-alert--info{background:var(--gs-danger-soft);border:1px solid var(--gs-danger-line);color:var(--gs-danger-hover)}

.gs-banner{border-bottom:1px solid var(--gs-accent-soft-line);background:var(--gs-accent-soft);color:var(--gs-text)}
.gs-banner-in{display:flex;flex-wrap:wrap;align-items:center;gap:var(--gs-space-2) var(--gs-space-4);max-width:var(--gs-maxw);margin:0 auto;padding:var(--gs-space-3) var(--gs-gutter);font-size:var(--gs-fs-sm)}
.gs-banner-in p{margin:0;flex:1 1 260px}
.gs-banner-in strong{font-weight:var(--gs-fw-semibold)}
/* Explained-disabled action: aria-disabled (still focusable) + reason linked via aria-describedby. */
.gs-action-note{display:flex;flex-direction:column;align-items:flex-start;gap:var(--gs-space-2)}

.gs-modal{max-width:440px;background:var(--gs-surface);border:1px solid var(--gs-line-2);border-radius:var(--gs-radius-xl);box-shadow:var(--gs-shadow-modal);padding:var(--gs-space-6)}
.gs-modal h2{font-size:var(--gs-fs-xl);margin:0 0 var(--gs-space-2)}
.gs-modal p{margin:0 0 var(--gs-space-5);color:var(--gs-text-2);font-size:var(--gs-fs-md)}
.gs-modal-foot{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--gs-space-3)}
@media (max-width:480px){.gs-modal-foot .gs-btn{flex:1 1 100%}}
.gs-scrim{position:fixed;inset:0;z-index:var(--gs-z-modal);display:grid;place-items:center;padding:var(--gs-space-4);background:rgba(47,43,39,.45)}
.gs-menu{background:var(--gs-surface);border:1px solid var(--gs-line);border-radius:var(--gs-radius-md);box-shadow:var(--gs-shadow-pop);padding:var(--gs-space-1)}

/* =====================================================================
   Legal pages (privacy, terms, community rules)
   Mobile order: title -> TOC (collapsed) -> text. Desktop: TOC left, title + text share one 45rem column.
   ===================================================================== */
.gs-legal{display:grid;grid-template-columns:minmax(0,var(--gs-maxw-prose));grid-template-areas:"head" "toc" "body";justify-content:start;
  gap:var(--gs-space-6);max-width:calc(var(--gs-maxw-prose) + 2 * var(--gs-gutter));margin:0 auto;padding:var(--gs-space-8) var(--gs-gutter) var(--gs-space-10)}
.gs-legal-head{grid-area:head}
.gs-toc{grid-area:toc}
.gs-legal .gs-prose{grid-area:body}
@media (min-width:1100px){
  .gs-legal{grid-template-columns:240px minmax(0,var(--gs-maxw-prose));grid-template-areas:"toc head" "toc body";column-gap:var(--gs-space-9);row-gap:var(--gs-space-6);
    max-width:calc(240px + var(--gs-space-9) + var(--gs-maxw-prose) + 2 * var(--gs-gutter));justify-content:center;align-items:start}
  .gs-toc{position:static} /* v2.1: shown whole, never cut off; sticky only where it fits (below) */
}
.gs-legal-head h1{font-size:var(--gs-fs-3xl);line-height:var(--gs-lh-heading);font-weight:var(--gs-fw-bold);letter-spacing:var(--gs-ls-heading);margin:0;max-width:none}
.gs-legal-meta{font-size:var(--gs-fs-sm);color:var(--gs-text-2);margin:var(--gs-space-2) 0 0}  /* 14px everywhere */
.gs-toc{font-size:var(--gs-fs-sm)}
@media (min-width:1100px) and (min-height:1200px){.gs-legal .gs-toc{position:sticky;top:calc(var(--gs-header-h) + var(--gs-space-6))}}
.gs-legal .gs-prose > *{margin-inline:0;text-align:start}
@media (max-width:699px){.gs-prose :is(th,td){min-width:10rem;vertical-align:top;overflow-wrap:normal}.gs-prose :is(th,td):first-child{min-width:8rem}}
.gs-nowrap{white-space:nowrap}
/* v2.2: WordPress theme presets are purple (#4A3AFD primary etc., printed as :root{} in global-styles); point them at
   the brand so nothing that reads them (e.g. .rbc-brand link colour) turns purple. :root:root beats :root. */
:root:root{--wp--preset--color--primary:var(--gs-accent);--wp--preset--color--secondary:var(--gs-accent);--wp--preset--color--primary-shade-one:var(--gs-accent-hover);--wp--preset--color--primary-shade-2:var(--gs-text);--wp--preset--color--secondary-shade-1:var(--gs-accent-hover);--wp--preset--color--secondary-shade-2:var(--gs-text);--wp--preset--color--vivid-purple:var(--gs-accent)}
.gs-brand{color:var(--gs-accent-text)}
@media (min-width:641px){.gs-hero .gs-btn-row{display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr}} /* v2.2: equal widths on desktop */
@media (max-width:640px){.gs-hero .gs-btn-row{flex-direction:column;align-items:stretch}.gs-hero .gs-btn-row .gs-btn{width:100%;min-height:var(--gs-control-h)}} /* v2.1: hero buttons stacked, equal width and height */
.gs-toc details{background:var(--gs-surface);border:1px solid var(--gs-line);border-radius:var(--gs-radius-lg);padding:0 var(--gs-space-4)}
.gs-toc summary{display:flex;align-items:center;min-height:var(--gs-control-h);font-weight:var(--gs-fw-bold);cursor:pointer;color:var(--gs-text);list-style:none}
.gs-toc summary::-webkit-details-marker{display:none}
.gs-toc summary::after{content:"";margin-left:auto;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform var(--gs-dur)}
.gs-toc details[open] summary::after{transform:translateY(2px) rotate(-135deg)}
.gs-toc ol{list-style:none;margin:0 0 var(--gs-space-3);padding:0;counter-reset:toc}
.gs-toc li{counter-increment:toc}
.gs-toc a{display:flex;gap:var(--gs-space-2);align-items:center;min-height:var(--gs-control-h-sm);padding:var(--gs-space-2) var(--gs-space-3);margin:0 calc(-1 * var(--gs-space-3));border-radius:var(--gs-radius-sm);color:var(--gs-text-2);text-decoration:none;line-height:1.35} /* [fix v2] 44px */
.gs-toc a::before{content:counter(toc) ".";min-width:1.6em;font-variant-numeric:tabular-nums}
.gs-toc a:hover{background:var(--gs-surface-warm);color:var(--gs-text)}
.gs-toc a[aria-current]{background:var(--gs-accent-soft);color:var(--gs-accent-hover);font-weight:var(--gs-fw-semibold)}

.gs-prose{max-width:var(--gs-maxw-prose);font-size:var(--gs-fs-md);line-height:var(--gs-lh-prose);color:var(--gs-text)}
.gs-prose > :first-child{margin-top:0}
.gs-prose > * + *{margin-top:1em}
.gs-prose .gs-summary{background:var(--gs-surface);border:1px solid var(--gs-line);border-left:4px solid var(--gs-accent);border-radius:var(--gs-radius-md);padding:var(--gs-space-4) var(--gs-space-5)}
.gs-prose h2{font-size:var(--gs-fs-xl);line-height:1.3;font-weight:var(--gs-fw-bold);margin-top:2.2em;scroll-margin-top:calc(var(--gs-header-h) + var(--gs-space-4))}
.gs-prose h3{font-size:var(--gs-fs-lg);line-height:1.35;font-weight:var(--gs-fw-bold);margin-top:1.6em;scroll-margin-top:calc(var(--gs-header-h) + var(--gs-space-4))}
.gs-prose h2 + *,.gs-prose h3 + *{margin-top:.5em}
.gs-prose ul,.gs-prose ol{padding-left:1.4em}
.gs-prose li + li{margin-top:.4em}
.gs-prose a{color:var(--gs-accent-text);font-weight:var(--gs-fw-semibold);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--gs-accent-deco)}
.gs-prose a:hover{color:var(--gs-accent-hover);text-decoration-thickness:2px}
.gs-prose strong{font-weight:var(--gs-fw-semibold)}
.gs-prose table{width:100%;border-collapse:collapse;font-size:var(--gs-fs-sm);display:block;overflow-x:auto}
.gs-prose th,.gs-prose td{text-align:left;vertical-align:top;padding:var(--gs-space-3);border-bottom:1px solid var(--gs-line)}
.gs-prose th{background:var(--gs-surface-warm);font-weight:var(--gs-fw-semibold)}
.gs-legal-top{margin:var(--gs-space-8) 0 0}
.gs-backtop{display:inline-flex;align-items:center;min-height:var(--gs-control-h-sm);font-size:var(--gs-fs-sm)}

/* =====================================================================
   CV builder shell (chat + Studio). The A4 sheet keeps its own print styles.
   ===================================================================== */
.gs-builder-bar{display:flex;align-items:center;gap:var(--gs-space-3);min-height:var(--gs-header-h);padding:0 var(--gs-gutter);background:var(--gs-surface);border-bottom:1px solid var(--gs-line)}
.gs-builder-bar .gs-spacer{flex:1}
.gs-bubble{max-width:62ch;padding:var(--gs-space-3) var(--gs-space-4);border-radius:var(--gs-radius-lg);font-size:var(--gs-fs-md);line-height:var(--gs-lh-body);margin:0}
.gs-bubble--bot{background:var(--gs-surface);border:1px solid var(--gs-line);border-top-left-radius:var(--gs-radius-xs);color:var(--gs-text)}
.gs-bubble--user{background:var(--gs-accent-soft);border:1px solid var(--gs-accent-soft-line);border-top-right-radius:var(--gs-radius-xs);color:var(--gs-text);margin-left:auto}
.gs-sheet{background:var(--gs-surface);box-shadow:var(--gs-shadow-sheet)}

/* =====================================================================
   404
   ===================================================================== */
/* Home hero. Headline text lives in one place (see SPEC §6.1); size comes from the scale: display 46 desktop, 36 phone. */
.gs-hero{padding:var(--gs-space-10) 0}
.gs-hero .gs-eyebrow{margin:0 0 var(--gs-space-3)}
.gs-hero-title,h1#rbh-title{max-width:502.77px;overflow-wrap:break-word;font-family:"RBP Sans","Inter-fallback-hero-roboto","Inter-fallback-hero-arial",system-ui,sans-serif}
.gs-hero .gs-lead{margin-top:var(--gs-space-4);max-width:52ch}
.gs-hero .gs-btn-row{margin-top:var(--gs-space-6)}
@media (max-width:700px){.gs-hero{padding:var(--gs-space-7) 0 var(--gs-space-8)}.gs-hero-title,h1#rbh-title{max-width:393.47px}}
.gs-404{display:grid;place-items:center;min-height:calc(100vh - var(--gs-header-h) - 120px);padding:var(--gs-space-10) var(--gs-gutter)}
/* v2.2.2: the footer sits at the bottom of the window (no cream strip under it on tall screens): the page is a flex column */
body.gs-page:is(.error404,:has(> main.gs-404)){min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body.gs-page:is(.error404,:has(> main.gs-404)) .gs-404{flex:1 0 auto;min-height:0}
/* v2.2.4: short pages (auth, account, legal, 404): the footer sits on the bottom of the window, no cream strip under it.
   The page is a flex column at least one window tall (100vh, then 100dvh where supported); the content box grows; the footer
   takes margin-top:auto. Auth pages print their footer inside .rbw-page (in main > post-content), so that chain is a column
   too, and the 40px gap under the card moves to the card's side (margin-bottom) so it is still the minimum.
   Not on the home page or the CV builder (app view, own height rules). */
:root:root body.gs-page:not(.rb-landing-page):not(.page-template-wp-custom-template-cv-builder-canvas):not(:has(.rb-app,.rb-cv-boot)){min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
:root:root body.gs-page:not(.rb-landing-page):not(.page-template-wp-custom-template-cv-builder-canvas):not(:has(.rb-app,.rb-cv-boot)) > .wp-site-blocks{flex:1 0 auto;display:flex;flex-direction:column;width:100%;min-width:0}
:root:root body.gs-page:not(.rb-landing-page):not(.page-template-wp-custom-template-cv-builder-canvas):not(:has(.rb-app,.rb-cv-boot)) > .wp-site-blocks > main{flex:1 0 auto;min-width:0;width:100%;box-sizing:border-box} /* width/min-width: its auto side margins switch off flex stretch, so a wide legal table would size it and widen the page */
/* v2.2.4: legal tables (privacy: "What it holds") are 381px wide at 360 (also on v2.2.2); they scroll inside themselves like .gs-prose tables, the page does not. */
:root:root .wp-site-blocks > main :is(.entry-content,.wp-block-post-content) table{display:block;max-width:100%;overflow-x:auto}
/* v2.2.5: phones (<=600px): the two privacy tables (both two columns: "Key | What it holds", "What we do | Lawful basis
   (GDPR Article 6)") stack: one bordered block per row, each cell a block with its column header shown above it. The thead
   stays in the page for screen readers (visually hidden); the shown labels are hidden from them (content alt ""), so
   nothing is read twice. CSS only: the markup has no data-label, so the labels are the real header texts, per table
   (nth-of-type among the tables of the legal body / post content, and only when the table has exactly two header cells). Desktop unchanged. */
@media (max-width:600px){
:root:root:not(#gs-bridge) .wp-site-blocks > main :is(.entry-content,.wp-block-post-content,.gs-legal-body) > table:is(:nth-of-type(1),:nth-of-type(2)):has(> thead > tr > th:nth-child(2):last-child){display:block;overflow:visible;max-width:none;border:0;border-collapse:separate}
:root:root:not(#gs-bridge) .wp-site-blocks > main :is(.entry-content,.wp-block-post-content,.gs-legal-body) > table:is(:nth-of-type(1),:nth-of-type(2)):has(> thead > tr > th:nth-child(2):last-child) > thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* v2.2.6: the visually-hidden thead is 1px, but its th cells still laid out at min-width 8rem/10rem, so
   "Lawful basis (GDPR Article 6)" extended 11.1px past the viewport at 360 (Junior QA; clipped by thead overflow,
   page scrollWidth stayed 360). Keep the cells inside the 1px box. Tokens only; desktop unchanged. */
:root:root:not(#gs-bridge) .wp-site-blocks > main :is(.entry-content,.wp-block-post-content,.gs-legal-body) > table:is(:nth-of-type(1),:nth-of-type(2)):has(> thead > tr > th:nth-child(2):last-child) > thead :is(tr,th){min-width:0;max-width:1px;width:1px;height:1px;padding:0;border:0;overflow:hidden;white-space:nowrap}
:root:root:not(#gs-bridge) .wp-site-blocks > main :is(.entry-content,.wp-block-post-content,.gs-legal-body) > table:is(:nth-of-type(1),:nth-of-type(2)):has(> thead > tr > th:nth-child(2):last-child) > tbody{display:block}
:root:root:not(#gs-bridge) .wp-site-blocks > main :is(.entry-content,.wp-block-post-content,.gs-legal-body) > table:is(:nth-of-type(1),:nth-of-type(2)):has(> thead > tr > th:nth-child(2):last-child) > tbody > tr{display:block;margin:0 0 var(--gs-space-3);padding:var(--gs-space-3) var(--gs-space-4);border:1px solid var(--gs-line);border-radius:var(--gs-radius-md);background:var(--gs-surface)}
:root:root:not(#gs-bridge) .wp-site-blocks > main :is(.entry-content,.wp-block-post-content,.gs-legal-body) > table:is(:nth-of-type(1),:nth-of-type(2)):has(> thead > tr > th:nth-child(2):last-child) > tbody > tr > td{display:block;min-width:0;padding:0;border:0;background:none;font-size:var(--gs-fs-sm);line-height:var(--gs-lh-ui);color:var(--gs-text);overflow-wrap:anywhere}
:root:root:not(#gs-bridge) .wp-site-blocks > main :is(.entry-content,.wp-block-post-content,.gs-legal-body) > table:is(:nth-of-type(1),:nth-of-type(2)):has(> thead > tr > th:nth-child(2):last-child) > tbody > tr > td + td{margin-top:var(--gs-space-2)}
:root:root:not(#gs-bridge) .wp-site-blocks > main :is(.entry-content,.wp-block-post-content,.gs-legal-body) > table:is(:nth-of-type(1),:nth-of-type(2)):has(> thead > tr > th:nth-child(2):last-child) > tbody > tr > td::before{display:block;margin:0 0 2px;font-size:var(--gs-fs-sm);font-weight:var(--gs-fw-semibold);color:var(--gs-text-2)}
:root:root:not(#gs-bridge) .wp-site-blocks > main :is(.entry-content,.wp-block-post-content,.gs-legal-body) > table:is(:nth-of-type(1),:nth-of-type(2)):has(> thead > tr > th:nth-child(2):last-child):nth-of-type(1) > tbody > tr > td:nth-child(1)::before{content:"Key" / ""}
:root:root:not(#gs-bridge) .wp-site-blocks > main :is(.entry-content,.wp-block-post-content,.gs-legal-body) > table:is(:nth-of-type(1),:nth-of-type(2)):has(> thead > tr > th:nth-child(2):last-child):nth-of-type(1) > tbody > tr > td:nth-child(2)::before{content:"What it holds" / ""}
:root:root:not(#gs-bridge) .wp-site-blocks > main :is(.entry-content,.wp-block-post-content,.gs-legal-body) > table:is(:nth-of-type(1),:nth-of-type(2)):has(> thead > tr > th:nth-child(2):last-child):nth-of-type(2) > tbody > tr > td:nth-child(1)::before{content:"What we do" / ""}
:root:root:not(#gs-bridge) .wp-site-blocks > main :is(.entry-content,.wp-block-post-content,.gs-legal-body) > table:is(:nth-of-type(1),:nth-of-type(2)):has(> thead > tr > th:nth-child(2):last-child):nth-of-type(2) > tbody > tr > td:nth-child(2)::before{content:"Lawful basis (GDPR Article 6)" / ""}
:root:root:not(#gs-bridge) .wp-site-blocks > main :is(.entry-content,.wp-block-post-content,.gs-legal-body) > table:is(:nth-of-type(1),:nth-of-type(2)):has(> thead > tr > th:nth-child(2):last-child) code{overflow-wrap:anywhere;word-break:break-word;white-space:normal}
}
/* v2.2.6 (Designer, theme-footer pre-check 173700Z §4): on the default SaaSLauncher
   template (salary-calculator / page 2184) theme.css was not loaded, and when it is
   (this stamp adds the slug to rb_theme_is_public()) the footer must sit on its own
   row. Otherwise it shrinks beside the 300px column and overflows 61px at 360 / 46px at 390. */
:root:root body:has(> footer.gs-footer),:root:root body.gs-has-site-footer{flex-wrap:wrap}
:root:root body > footer.gs-footer{flex:1 0 100%;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
:root:root body.gs-page > footer.gs-footer,:root:root .wp-site-blocks > footer:has(.gs-footer){margin-top:auto}
:root:root body.gs-page:not(.rb-landing-page):not(.page-template-wp-custom-template-cv-builder-canvas) .wp-site-blocks > main:has(.rbw-page > footer.gs-footer){display:flex;flex-direction:column}
:root:root .wp-site-blocks > main :is(.wp-block-post-content,.entry-content):has(> .rbw-page > footer.gs-footer){flex:1 0 auto;display:flex;flex-direction:column;min-width:0}
:root:root .rbw-page:has(> footer.gs-footer){flex:1 0 auto;display:flex;flex-direction:column;padding-bottom:0!important} /* site.css .rbw has padding-bottom 4px !important on phones;  its 8px (4px phones) bottom padding was a cream strip under the footer */
:root:root .rbw-page > :has(+ footer.gs-footer){margin-bottom:var(--gs-space-8)}
:root:root .rbw-page > footer.gs-footer{margin-top:auto}
.gs-404-in{max-width:var(--gs-maxw-form);text-align:center}
.gs-404-code{background:var(--gs-accent-soft);border-color:var(--gs-accent-soft-line);color:var(--gs-accent-hover);margin-bottom:var(--gs-space-4)} /* "Error 404" pill (staging rb-404.php markup) */
.gs-404 .gs-h1{margin-bottom:var(--gs-space-3)}
.gs-404 .gs-lead{margin:0 auto var(--gs-space-7);max-width:44ch}
.gs-404 .gs-btn-row{justify-content:center}
.gs-404-links{display:flex;flex-wrap:wrap;justify-content:center;gap:0 var(--gs-space-5);margin-top:var(--gs-space-5);font-size:var(--gs-fs-md)}
.gs-404-links a{display:inline-flex;align-items:center;min-height:var(--gs-control-h-sm)}

/* =====================================================================
   Windows High Contrast / forced colours
   ===================================================================== */
@media (forced-colors:active){
  .gs-page :focus-visible{outline:3px solid Highlight!important;outline-offset:2px}
  .gs-btn{border:2px solid ButtonText;forced-color-adjust:none;background:ButtonFace;color:ButtonText}
  .gs-btn--primary,.gs-btn--danger{background:ButtonText;color:ButtonFace;border-color:ButtonText}
  .gs-btn[disabled],.gs-btn[aria-disabled="true"]{color:GrayText;border-color:GrayText;background:ButtonFace}
  .gs-toggle input{forced-color-adjust:none;background:Canvas;border:2px solid CanvasText}
  .gs-toggle input::after{background:CanvasText;top:0;left:0}
  .gs-toggle input:checked{background:Highlight;border-color:Highlight}
  .gs-toggle input:checked::after{background:HighlightText}
  .gs-check input[type=checkbox]{forced-color-adjust:none;border-color:CanvasText;background:Canvas}
  .gs-check input[type=checkbox]:checked{background:Highlight;border-color:Highlight}
  .gs-check input[type=checkbox]::after{border-color:HighlightText}
  .gs-pill,.gs-card,.gs-panel,.gs-alert,.gs-banner,.gs-modal,.gs-toc details{border:1px solid CanvasText}
  .gs-toc a[aria-current]{outline:2px solid Highlight}
  .gs-brand img{forced-color-adjust:auto}
}

/* =====================================================================
   Motion + print
   ===================================================================== */
@media (prefers-reduced-motion:reduce){.gs-page *,.gs-page *::before,.gs-page *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{.gs-header,.gs-footer,.gs-toc,.gs-skip{display:none!important}.gs-page{background:var(--gs-surface)}.gs-prose{max-width:none;font-size:11pt}}

/* mobile-compact (13 Nov 2026): phone footer as one thin block. 14px text, the © line then the four links,
   which wrap neatly at 320. Links have a 28px tap area and 12px between them. Short labels on phones only
   ("Privacy", "Rules"); .gs-ft-long holds the rest of the label and shows above 600px. */
/* theme-bridge.css greys every footer span; the label part keeps the link colour. */
:root:not(#gs-bridge):not(#gs-ft) footer.gs-footer nav a .gs-ft-long{color:inherit !important}
@media (max-width:600px){
  :root:root:root footer.gs-footer .gs-footer-in{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:2px 12px;padding:10px 16px}
  :root:root:root footer.gs-footer .gs-footer-org{margin:0;font-size:14px;line-height:20px}
  :root:root:root footer.gs-footer nav{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;margin:0 -4px}
  :root:root:root footer.gs-footer nav a{display:inline-flex;align-items:center;min-height:28px;padding:0 4px;font-size:14px;line-height:20px;font-weight:600}
  :root:root:root footer.gs-footer .gs-ft-long{display:none}
}
