/* Neural network look from showcase v5, then page sections. */
/* Alliance neural network — light theme, accent #C77B4B.
   Canvas is decorative; nodes are real buttons (44px). Static SVG under
   reduced motion or when JS is off. Height is reserved to keep CLS ~0. */
.nn{
  margin:0;
  position:relative;
  width:100%;
  min-width:0;
}
.nn-stage{
  position:relative;
  width:100%;
  aspect-ratio:800 / 640;
  max-height:min(560px, 70vh);
  background:#F8F9F7;
  border:1px solid var(--gs-line);
  border-radius:20px;
  box-shadow:var(--gs-shadow-card);
  overflow:hidden;
}
.nn--hero .nn-stage{max-height:min(520px, 62vh)}
.nn--page .nn-stage{max-height:min(560px, 68vh)}
.nn-canvas,
.nn-static{
  position:absolute;inset:0;
  width:100%;height:100%;
  display:block;
}
.nn-static{object-fit:contain;background:#F8F9F7;z-index:0}
.nn-canvas{z-index:1;background:#F8F9F7}
.nn-static[hidden],
.nn-canvas[hidden]{display:none !important}
.nn-hits{position:absolute;inset:0;z-index:2;pointer-events:none}
.nn-hit{
  position:absolute;
  width:44px;height:44px;min-width:44px;min-height:44px;
  padding:0;margin:0;
  border:0;border-radius:50%;
  background:transparent;color:transparent;
  font:inherit;cursor:pointer;
  pointer-events:auto;
  transform:translate(-50%,-50%);
}
.nn-hit:focus{outline:none}
.nn-hit:focus-visible{
  outline:2px solid var(--gs-focus);
  outline-offset:2px;
  background:rgba(199,123,75,.12);
}
.nn-hit[aria-pressed="true"]{background:rgba(199,123,75,.16)}
.nn-card{
  position:absolute;z-index:3;
  min-width:180px;max-width:min(240px, calc(100% - 24px));
  background:var(--gs-surface);
  border:1px solid var(--gs-accent-soft-line);
  border-radius:14px;
  box-shadow:var(--gs-shadow-pop);
  padding:12px 14px;
  pointer-events:none;
}
.nn-card[hidden]{display:none}
.nn-card .nn-card-k{margin:0 0 2px;font-size:14px;font-weight:700;color:var(--gs-accent-text);letter-spacing:.04em;text-transform:uppercase}
.nn-card h3{margin:0 0 2px;font-size:14px;color:var(--gs-text)}
.nn-card p{margin:0;font-size:14px;color:var(--gs-text-2)}
.nn-caption{margin:10px 0 0}
.nn-caption h2,.nn-caption .nn-caption-title{margin:0 0 12px;font-size:16px;font-weight:750} /* mobile-fix2: 12px at every width (Reviewer / UIR) */
.nn-caption p{margin:0 0 8px;font-size:14px;color:var(--gs-text-soft)}
.nn-legend{
  display:flex;flex-wrap:wrap;gap:8px 14px;
  list-style:none;margin:0;padding:0;font-size:14px;color:var(--gs-text-2);
}
.nn-legend li{display:inline-flex;align-items:center;gap:6px}
.nn-swatch{width:12px;height:12px;border-radius:50%;flex:none;border:1px solid var(--gs-line)}
.nn-swatch--you{background:#C77B4B;border-color:#C77B4B}
.nn-swatch--ally{background:#F4E7DE;border-color:#C77B4B}
.nn-swatch--second{background:#E5E9E7;border-color:#D4DAD7}
.nn-swatch--pulse{background:#C77B4B;box-shadow:0 0 0 3px rgba(199,123,75,.25);border:0}
.nn-fallback{margin:8px 0 0}
.nn-fallback summary{
  min-height:44px;display:flex;align-items:center;
  font-size:14px;font-weight:700;cursor:pointer;color:var(--gs-accent-text);
}
.nn-fallback ul{margin:0;padding:0 0 8px 1.2em;font-size:14px}
.nn-fallback li{margin:4px 0}

/* Hero layout: text + network as the centrepiece, sticky while the section scrubs. */
.gs-hero--nn{
  display:block;
  min-height:200vh;
  padding:0;
  overflow:visible;
}
.gs-hero-nn-sticky{
  position:sticky;
  top:var(--gs-header-compact, 68px);
  min-height:calc(100vh - var(--gs-header-compact, 68px));
  display:flex;align-items:center;
  padding:24px 0 32px;
  background:var(--gs-bg, #f7f4f0);
}
.gs-hero-nn-grid{
  display:grid;gap:28px;align-items:center;
  width:min(var(--gs-maxw, 1120px),100% - 2*var(--gs-gutter, 20px));
  margin-inline:auto;
}
@media (min-width:1024px){
  .gs-hero-nn-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:40px}
  .gs-hero--nn .gs-hero-title{max-width:12ch}
}
@media (max-width:1023px){
  .gs-hero--nn{min-height:210vh}
  .gs-hero-nn-sticky{align-items:flex-start;padding-top:32px}
}

/* Alliance page: prominent graph, short sticky scrub, then the list. */
.nn-page-sec{margin:0 0 24px}
.nn-page-scrub{
  min-height:180vh;
  margin:0 0 8px;
}
.nn-page-sticky{
  position:sticky;
  top:calc(var(--rbs-top-h, 68px) + 8px);
  z-index:4;
  background:var(--gs-bg, #f7f4f0);
  padding:4px 0 12px;
}
@media (max-width:767px){
  .nn-page-sticky{top:calc(var(--rbs-top-h, 117px) + 4px)}
  .nn-page-scrub{min-height:170vh}
}
.nn-skip{
  display:inline-flex;align-items:center;min-height:44px;
  font-size:14px;font-weight:600;
}

@media (prefers-reduced-motion:reduce){
  .gs-hero--nn,
  .nn-page-scrub{min-height:0}
  .gs-hero-nn-sticky,
  .nn-page-sticky{position:relative;top:auto}
  .nn-canvas{display:none}
}
html.fx-reduced .gs-hero--nn,
html.fx-reduced .nn-page-scrub{min-height:0}
html.fx-reduced .gs-hero-nn-sticky,
html.fx-reduced .nn-page-sticky{position:relative;top:auto}
html.fx-reduced .nn-canvas{display:none}
/* No-JS: canvas empty, static image already in the document. */

/* v3: readable cards, depth-friendly stage */
.nn-card .nn-card-k{font-size:14px}
.nn-card h3{font-size:16px}
.nn-card p{font-size:14px;color:var(--gs-text-2)}
.nn-stage{background:
  radial-gradient(ellipse at 50% 48%, rgba(199,123,75,.08), transparent 42%),
  #F8F9F7}

@media (max-width:560px){
  .nn--hero .nn-stage{max-height:min(420px, 58vh)}
  .gs-hero--nn{min-height:190vh}
}


/* Home showcase page — scoped. Uses --gs-* from theme.css. No external fonts. */
.rb-hs{overflow-x:clip;color:var(--gs-text,#26302F);--gs-header-compact:var(--gs-header-h, 68px)}
.rb-hs *,.rb-hs *::before,.rb-hs *::after{box-sizing:border-box}
.rb-hs .sx-sec{padding:48px 0;position:relative}
.rb-hs .sx-sec--tint{background:var(--gs-surface,#F8F9F7)}
.rb-hs .gs-wrap{width:min(1120px,calc(100% - 32px));margin:0 auto}
@media (max-width:700px){
  .rb-hs .sx-sec{padding:36px 0}
  .rb-hs .gs-wrap{width:min(1120px,calc(100% - 24px))}
}
/* rb-demos keeps an inner .rbp-wrap (landing-p.css: 28px / 16px padding).
   That sits inside .gs-wrap and shifts the card grid off the section heading. */
.rb-hs #tools .rbp-wrap{width:100%;max-width:none;padding-left:0;padding-right:0;margin-left:0;margin-right:0}
.rb-hs .sx-kicker{margin:0 0 6px;font-size:14px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--gs-accent-text,#9A5732)}
.rb-hs .sx-h2{margin:0 0 10px;font-size:28px;line-height:1.2;letter-spacing:var(--gs-ls-heading,0);color:var(--gs-text,#26302F)}
.rb-hs .sx-lead{margin:0 0 18px;font-size:16px;line-height:1.5;color:var(--gs-text-soft,#45514E);max-width:62ch}
.rb-hs .sx-footnote,.rb-hs .sx-legend{margin:10px 0 0;font-size:14px;color:var(--gs-text-2,#5F6B69)}
.rb-hs .life-soon{margin:0 0 6px;font-size:14px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--gs-accent-text,#9A5732)}
.rb-hs .gs-hero--nn{padding-bottom:12px}
.rb-hs .gs-hero-nn-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:center}
@media (max-width:900px){.rb-hs .gs-hero-nn-grid{grid-template-columns:minmax(0,1fr);gap:20px}}
.rb-hs .gs-hero-copy .gs-hero-title{max-width:18ch}
.rb-hs .gs-hero-lead{margin:12px 0 0;font-size:16px;line-height:1.5;color:var(--gs-text-soft,#45514E)}
.rb-hs .gs-btn-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
/* Under about 400px the header "Create a free account" label is cropped.
   Show only Sign in in the header. Never use "Join". */
@media (max-width:400px){
  .rb-hs .gs-header-actions a[data-rbh="signup"]{display:none}
  /* Guest hero signup is the only filled button, and it stays visible at every width. */
  .rb-hs .gs-hero-copy a.gs-hero-signup{width:100%;flex:1 1 100%;box-sizing:border-box}
}
/* landing-p.css resets bare buttons, so copy theme.css .gs-btn rules onto <button class="gs-btn">.
   min-height is 44px (theme --gs-control-h-sm). Colours stay on the existing theme tokens. */
.rb-hs button.gs-btn,
.rb-hs a.gs-btn,
.rb-hs button.gs-btn--primary,
.rb-hs a.gs-btn--primary,
.rb-hs button.gs-btn--ghost,
.rb-hs a.gs-btn--ghost{
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:var(--gs-space-2);
  min-height:44px;
  padding:0 var(--gs-space-6);
  border-radius:var(--gs-radius-pill);
  border:1px solid transparent;
  font:inherit;
  font-weight:var(--gs-fw-semibold);
  font-size:var(--gs-fs-md);
  line-height:1.2;
  font-family: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);
}
.rb-hs button.gs-btn--primary,.rb-hs a.gs-btn--primary{background:var(--gs-accent);border-color:var(--gs-accent);color:var(--gs-surface)}
.rb-hs button.gs-btn--primary:hover,
.rb-hs a.gs-btn--primary:hover,
.rb-hs button.gs-btn--primary:focus,
.rb-hs a.gs-btn--primary:focus,
.rb-hs button.gs-btn--primary:focus-visible,
.rb-hs a.gs-btn--primary:focus-visible,
.rb-hs button.gs-btn--primary:active,
.rb-hs a.gs-btn--primary:active{background:var(--gs-accent-hover);border-color:var(--gs-accent-hover);color:var(--gs-surface)}
/* theme.css has no .gs-btn--ghost; the outlined theme rule is .gs-btn--secondary. */
.rb-hs button.gs-btn--ghost,.rb-hs a.gs-btn--ghost{background:var(--gs-surface);border-color:var(--gs-line-strong);color:var(--gs-accent-text)}
.rb-hs button.gs-btn--ghost:hover,
.rb-hs a.gs-btn--ghost:hover,
.rb-hs button.gs-btn--ghost:focus,
.rb-hs a.gs-btn--ghost:focus,
.rb-hs button.gs-btn--ghost:focus-visible,
.rb-hs a.gs-btn--ghost:focus-visible,
.rb-hs button.gs-btn--ghost:active,
.rb-hs a.gs-btn--ghost:active{background:var(--gs-accent-soft);border-color:var(--gs-accent-hover);color:var(--gs-accent-hover)}
.rb-hs button.gs-btn[disabled],
.rb-hs button.gs-btn[aria-disabled="true"],
.rb-hs button.gs-btn--primary[disabled],
.rb-hs button.gs-btn--primary[aria-disabled="true"],
.rb-hs button.gs-btn--ghost[disabled],
.rb-hs button.gs-btn--ghost[aria-disabled="true"]{background:var(--gs-surface-warm-2);border-color:var(--gs-surface-warm-2);color:var(--gs-text-2);cursor:not-allowed}
.rb-hs button.gs-btn:focus-visible,
.rb-hs button.gs-btn--primary:focus-visible,
.rb-hs button.gs-btn--ghost:focus-visible{outline:var(--gs-focus-width) solid var(--gs-focus);outline-offset:var(--gs-focus-offset)}
.rb-hs .rb-vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;word-wrap:normal;border:0}
.rb-hs .life-jumps{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.rb-hs .life-jumps a{min-height:44px;display:inline-flex;align-items:center;padding:0 12px;border-radius:999px;border:1px solid var(--gs-line,#D4DAD7);background:var(--gs-surface,#F8F9F7);color:var(--gs-text,#26302F);text-decoration:none;font-size:14px}

/* Chat */
.rb-hs .hs-chat{display:flex;flex-direction:column;gap:10px;min-width:0;background:var(--gs-surface,#F8F9F7);border:1px solid var(--gs-line,#D4DAD7);border-radius:16px;padding:14px}
.rb-hs .hs-chat-log{display:flex;flex-direction:column;gap:8px;max-height:min(420px,60vh);overflow:auto}
.rb-hs .hs-bubble{max-width:min(42ch,100%);padding:10px 12px;border-radius:14px;font-size:14px;line-height:1.45}
.rb-hs .hs-bubble--app{align-self:flex-start;background:var(--gs-dk-soft,#F4E7DE);color:var(--gs-text,#26302F)}
.rb-hs .hs-bubble--you{align-self:flex-end;background:#26302F;color:#F8F9F7}
.rb-hs .hs-chips{display:flex;flex-wrap:wrap;gap:8px}
.rb-hs .hs-chips button,.rb-hs .hs-send button,.rb-hs .life-actions .gs-btn{min-height:44px}
.rb-hs .hs-chips button{padding:0 12px;border-radius:999px;border:1px solid var(--gs-line,#D4DAD7);background:var(--gs-raised,#fff);font:inherit;font-size:14px;cursor:pointer}
.rb-hs .hs-chips button[aria-pressed="true"]{border-color:var(--gs-accent,#C77B4B);background:var(--gs-dk-soft,#F4E7DE)}
.rb-hs .hs-send{display:flex;gap:8px;align-items:center}
.rb-hs .hs-send input{flex:1 1 auto;min-width:0;min-height:44px;border:1px solid var(--gs-line,#D4DAD7);border-radius:12px;padding:0 12px;font:inherit;font-size:16px}
.rb-hs .hs-result{margin:0;padding:12px;border-radius:12px;background:var(--gs-raised,#fff);border:1px solid var(--gs-line,#D4DAD7)}
.rb-hs .hs-note{margin:8px 0 0;font-size:14px;color:var(--gs-accent-text,#9A5732)}

/* CV sheet */
.rb-hs .sx-cv{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
@media (max-width:860px){.rb-hs .sx-cv{grid-template-columns:minmax(0,1fr)}}
.rb-hs .cv-sheet{background:#fff;border:1px solid var(--gs-line,#D4DAD7);border-radius:12px;padding:16px;min-height:280px;box-shadow:0 8px 24px rgba(38,48,47,.06)}
.rb-hs .cv-face--sidebar{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px}
.rb-hs .cv-sheet[data-template="minimal"]{border:0;box-shadow:none}
.rb-hs .cv-name{margin:0 0 4px;font-size:22px}
.rb-hs .cv-role,.rb-hs .cv-meta{margin:0 0 6px;font-size:14px;color:var(--gs-text-2,#5F6B69)}
.rb-hs .cv-block{margin-top:12px}
.rb-hs .cv-block h3{margin:0 0 4px;font-size:14px;letter-spacing:.04em;text-transform:uppercase;color:var(--gs-accent-text,#9A5732)}
.rb-hs .cv-sheet[data-scheme="light1"]{--cv-a:#2563eb}
.rb-hs .cv-sheet[data-scheme="light2"]{--cv-a:#b45309}
.rb-hs .cv-sheet[data-scheme="light3"]{--cv-a:#15803d}
.rb-hs .cv-sheet[data-scheme="light4"]{--cv-a:#7c3aed}
.rb-hs .cv-sheet .cv-name{color:var(--cv-a,#b45309)}

/* Calc result */
.rb-hs .rbcalc-big{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 12px}
.rb-hs .rbcalc-big dt{font-size:14px;color:var(--gs-text-2,#5F6B69)}
.rb-hs .rbcalc-big dd{margin:0;font-size:20px;font-weight:700}
.rb-hs .rbcalc-lines,.rb-hs .rbcalc-periods{width:100%;border-collapse:collapse;font-size:14px;margin:0 0 12px}
.rb-hs .rbcalc-lines th,.rb-hs .rbcalc-lines td,.rb-hs .rbcalc-periods th,.rb-hs .rbcalc-periods td{text-align:left;padding:6px 0;border-bottom:1px solid var(--gs-line,#D4DAD7);vertical-align:top}
.rb-hs .rbcalc-lines td,.rb-hs .rbcalc-periods td{text-align:right;white-space:nowrap}
@media (max-width:360px){.rb-hs .rbcalc-big{grid-template-columns:minmax(0,1fr)}}
/* Showcase already provides the section heading, intro and footnote.
   display:none (not visually hidden) so they are not read twice.
   rb_calc_render() takes no args today; a render arg would mean shipping
   salary-calc web.php in this stamp. Standalone calculator pages are unchanged. */
.rb-hs #calculator .rbcalc-title,
.rb-hs #calculator .rbcalc-intro,
.rb-hs #calculator .rbcalc-disc{display:none}
.rb-hs #calculator .rbcalc-h:not(:has(.rbcalc-label:not([hidden]))){display:none}

/* Social walk-through */
.rb-hs .life-composer,.rb-hs .life-card,.rb-hs .life-person,.rb-hs .life-note{background:var(--gs-raised,#fff);border:1px solid var(--gs-line,#D4DAD7);border-radius:14px;padding:14px;margin:0 0 12px;min-width:0}
.rb-hs .life-card-h,.rb-hs .life-person,.rb-hs .life-note{display:flex;gap:10px;align-items:flex-start}
.rb-hs .life-av{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--gs-dk-soft,#F4E7DE);color:var(--gs-dk-link,#9A5732);font-size:14px;font-weight:700}
.rb-hs .life-name{margin:0;font-size:14px;font-weight:700}
.rb-hs .life-meta,.rb-hs .life-body{margin:0;font-size:14px;color:var(--gs-text-2,#5F6B69)}
.rb-hs .life-body{color:var(--gs-text,#26302F);margin-top:8px}
.rb-hs .life-aud{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.rb-hs .life-aud button{min-height:44px;padding:0 12px;border-radius:999px;border:1px solid var(--gs-line,#D4DAD7);background:var(--gs-raised,#fff);font:inherit;font-size:14px;cursor:pointer}
.rb-hs .life-aud button[aria-pressed="true"]{border-color:var(--gs-accent,#C77B4B);background:var(--gs-dk-soft,#F4E7DE)}
.rb-hs .life-aud-label{margin:10px 0 0;font-size:14px;font-weight:600}
.rb-hs .life-aud-live{
  border:0;clip:rect(0,0,0,0);clip-path:inset(50%);
  width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  position:absolute;white-space:nowrap;word-wrap:normal
}
.rb-hs .life-composer textarea,.rb-hs .life-comment-form input,.rb-hs .life-send input{width:100%;min-height:44px;border:1px solid var(--gs-line,#D4DAD7);border-radius:12px;padding:10px 12px;font:inherit;font-size:16px}
.rb-hs .life-composer textarea{min-height:88px;resize:vertical}
.rb-hs .life-composer-row,.rb-hs .life-actions,.rb-hs .life-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
.rb-hs .life-applaud{
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  align-items:center;
  gap:0;
  min-height:44px;
  min-width:44px;
  padding:0 12px;
  border:0;
  background:transparent;
  font:inherit;
  font-size:14px;
  line-height:1.2;
  color:inherit;
  cursor:pointer;
}
.rb-hs .life-applaud-ic{width:18px;height:18px;flex:none;display:block;color:inherit}
.rb-hs .life-applaud-ic + .life-applaud-n{margin-left:4px}
.rb-hs .life-applaud-n + .life-applaud-l{margin-left:2px}
.rb-hs .life-applaud-ic + .life-applaud-l{margin-left:4px}
.rb-hs .life-applaud-n,.rb-hs .life-applaud-l{font-size:14px}
.rb-hs .life-note .life-av{font-size:14px}
.rb-hs .life-comment{margin-top:8px;font-size:14px}
.rb-hs .life-comment b{margin-right:6px}
.rb-hs .life-comment-form{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.rb-hs .life-comment-form input{flex:1 1 160px}
.rb-hs .life-chat{display:grid;grid-template-columns:minmax(0,180px) minmax(0,1fr);gap:12px}
@media (max-width:700px){.rb-hs .life-chat{grid-template-columns:minmax(0,1fr)}}
.rb-hs .life-thread{display:flex;gap:8px;width:100%;text-align:left;border:0;background:transparent;padding:8px;border-radius:10px;cursor:pointer;font:inherit}
.rb-hs .life-thread[aria-current="true"]{background:var(--gs-dk-soft,#F4E7DE)}
.rb-hs .life-msgs{min-height:140px;display:flex;flex-direction:column;gap:8px}
.rb-hs .life-msg{max-width:min(36ch,100%);padding:8px 12px;border-radius:12px;font-size:14px}
.rb-hs .life-msg--them{align-self:flex-start;background:var(--gs-dk-surface-2,#E5E9E7)}
.rb-hs .life-msg--you{align-self:flex-end;background:#26302F;color:#F8F9F7}
.rb-hs .life-send{display:flex;gap:8px;margin-top:8px}
.rb-hs .life-send input{flex:1 1 auto}
.rb-hs .life-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (max-width:700px){.rb-hs .life-people{grid-template-columns:minmax(0,1fr)}}
.rb-hs .hs-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (max-width:800px){.rb-hs .hs-tools{grid-template-columns:minmax(0,1fr)}}

@media (prefers-reduced-motion:reduce){
  .rb-hs *{scroll-behavior:auto !important;animation:none !important;transition:none !important}
}

.rb-hs a.gs-btn{text-decoration:none;box-sizing:border-box}

/* No scrub track when the guest picture has nothing to animate, or when motion is reduced. */
.gs-hero--nn.gs-hero--static,
html.fx-reduced .gs-hero--nn{
  min-height:auto;
}
.gs-hero--nn.gs-hero--static .gs-hero-nn-sticky,
html.fx-reduced .gs-hero-nn-sticky{
  position:relative;
  top:auto;
  min-height:auto;
}
@media (prefers-reduced-motion:reduce){
  .gs-hero--nn{min-height:auto}
  .gs-hero-nn-sticky{position:relative;top:auto;min-height:auto}
  .nn-page-scrub{min-height:auto}
  .nn-page-sticky{position:relative;top:auto}
  .nn-canvas{display:none}
}

/* ---------- mobile-compact (13 Nov 2026) ----------
   1440: the calculator chat card starts at the heading's left edge (it was centred, about 212px in).
   Phones (max-width:600px) only below: 40px-looking buttons with a 44px tap area (::after, 2px above and below),
   15px button text, buttons as wide as their text, the hero's three "See" buttons as underlined links,
   tighter sections, a shorter showcase and the career tools as a list that opens in place. Nothing above 600px changes. */
.rb-hs #calculator .rbcalc{margin-left:0;margin-right:auto}

@media (max-width:600px){
  /* Spacing: 16px sides, 20px top and bottom per section, 12px between a heading and its text. */
  .rb-hs .gs-wrap,.rb-hs .gs-hero-nn-grid{width:calc(100% - 32px)}
  .rb-hs .sx-sec,.rb-hs #tools.sx-sec{padding:20px 0}
  .rb-hs .sx-kicker{margin:0 0 4px}
  .rb-hs .sx-h2{margin:0 0 12px;font-size:24px;line-height:1.25}
  .rb-hs .sx-lead{margin:0 0 12px;font-size:15px;line-height:1.5}
  .rb-hs .sx-footnote,.rb-hs .sx-legend{margin-top:8px}

  /* Hero: one filled button, then the three section links; picture 240px tall. */
  .rb-hs .gs-hero-nn-sticky{padding:16px 0 12px}
  .rb-hs .gs-hero--nn{padding-bottom:0}
  .rb-hs .gs-hero-nn-grid{gap:16px}
  .rb-hs .gs-hero-copy .gs-hero-title{font-size:30px;line-height:1.15;margin:4px 0 0}
  .rb-hs .gs-hero-lead{margin-top:10px;font-size:15px}
  .rb-hs .gs-hero .gs-hero-copy .gs-btn-row{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin-top:16px;column-gap:20px;row-gap:26px}
  :root .rb-hs .gs-hero .gs-btn-row a.gs-btn--primary{flex:0 0 auto;width:auto;min-height:40px;margin-bottom:4px}
  .rb-hs .gs-hero-copy .gs-btn-row a.gs-btn--ghost,
  .rb-hs .gs-hero-copy .gs-btn-row a.gs-btn--ghost:hover,
  .rb-hs .gs-hero-copy .gs-btn-row a.gs-btn--ghost:focus,
  .rb-hs .gs-hero-copy .gs-btn-row a.gs-btn--ghost:active{
    flex:0 0 auto;width:auto;min-height:0;padding:0;border:0;border-radius:4px;background:transparent;
    font-size:15px;font-weight:600;line-height:1.2;color:var(--gs-accent-text,#9a5230);
    text-decoration:underline !important;text-underline-offset:3px;white-space:nowrap;position:relative
  }
  .rb-hs .gs-hero-copy .gs-btn-row a.gs-btn--ghost::after{
    content:"";position:absolute;left:0;right:0;top:50%;height:44px;margin-top:-22px
  }
  .rb-hs .nn--hero .nn-stage{aspect-ratio:auto;height:240px;max-height:none}
  .rb-hs .nn-caption{margin-top:8px}
  .rb-hs .nn-caption p{margin-bottom:6px}
  .rb-hs .nn--hero .nn-legend{display:none} /* the "What this picture shows" list below stays */
  .rb-hs .nn-fallback{margin-top:4px}

  /* Buttons: 40px to look at, 44px to tap, 15px text, width set by the text. */
  :root .rb-hs a.gs-btn,:root .rb-hs button.gs-btn,
  :root .rb-hs #tools .dm-btn:not(summary),
  :root .rb-hs .rbcalc-btn{
    position:relative;min-height:40px;min-width:0;padding:0 16px;font-size:15px;line-height:1.2;width:auto;max-width:100%
  }
  .rb-hs a.gs-btn::after,.rb-hs button.gs-btn::after,
  .rb-hs #tools .dm-btn:not(summary)::after,
  .rb-hs .rbcalc-btn::after{content:"";position:absolute;left:0;right:0;top:-2px;bottom:-2px}
  .rb-hs .gs-header-actions .gs-btn--sm{min-height:40px;padding:0 14px}
  .rb-hs .gs-btn-row,.rb-hs #tools .dm-btns,.rb-hs .rbcalc-choices,.rb-hs #tools .dm-chat-choices,
  .rb-hs .life-actions,.rb-hs .life-acts,.rb-hs .life-composer-row{gap:12px 8px}
  .rb-hs .rbp-hero .gs-btn-row,.rb-hs #get-started .gs-btn-row{flex-direction:row;align-items:center}
  .rb-hs #get-started .gs-btn-row .gs-btn{width:auto}

  /* Showcase: one feed post, two people, two notifications. */
  .rb-hs #home-feed .life-card ~ .life-card,
  .rb-hs #home-network .life-person:nth-of-type(n+3),
  .rb-hs #home-notifications .life-note:nth-of-type(n+3){display:none}
  .rb-hs .life-composer,.rb-hs .life-card,.rb-hs .life-person,.rb-hs .life-note{padding:12px;margin-bottom:10px}
  .rb-hs .life-composer textarea{min-height:64px}
  .rb-hs .life-people{gap:10px}
  .rb-hs .life-msgs{min-height:0}
  .rb-hs .life-comment-form,.rb-hs .life-send,.rb-hs #tools .dm-add-row{align-items:center}
  .rb-hs .cv-sheet{min-height:0}

  /* Career tools: a list of rows (icon, name, chevron). The whole row is the existing summary, so the
     open/close behaviour, DOM order and Tab order stay the same. Open rows show the card text and the tool. */
  .rb-hs #tools .hm-grid{gap:8px;margin-top:12px}
  .rb-hs #tools .hm-card{
    position:relative;display:grid;grid-template-columns:32px minmax(0,1fr) 24px;grid-auto-rows:auto;
    column-gap:12px;row-gap:0;align-items:center;padding:12px 14px;min-height:58px;border-radius:12px
  }
  .rb-hs #tools .hm-card.cv{border-width:1px}
  .rb-hs #tools .hm-card > *{grid-column:1/-1;min-width:0}
  .rb-hs #tools .hm-card > .hm-ic{grid-column:1;grid-row:1;width:32px;height:32px;border-radius:8px}
  .rb-hs #tools .hm-card > .hm-ic svg{width:18px;height:18px}
  .rb-hs #tools .hm-card > .hm-t{grid-column:2;grid-row:1;margin:0;font-size:16px;line-height:1.3}
  .rb-hs #tools .hm-card:not(.is-open):not(:has(details[open])) > .hm-b,
  .rb-hs #tools .hm-card:not(.is-open):not(:has(details[open])) > .hm-d{display:none}
  .rb-hs #tools .hm-card > .hm-b{font-size:15px;margin-top:10px}
  .rb-hs #tools .hm-card > .hm-d{margin-top:8px}
  .rb-hs #tools .hm-card .hm-open{margin:0;padding:0}
  .rb-hs #tools .hm-card .hm-open > summary.dm-btn{
    position:absolute;left:0;right:0;top:0;height:58px;width:auto;max-width:none;min-height:0;min-width:0;
    margin:0;padding:0 14px;border:0;border-radius:12px;background:transparent;
    display:flex;align-items:center;justify-content:flex-end;color:var(--gs-accent-text,#9a5230)
  }
  .rb-hs #tools .hm-card:not(.is-open):not(:has(details[open])) .hm-open > summary.dm-btn{bottom:0;height:auto}
  .rb-hs #tools .hm-card .hm-open > summary.dm-btn:hover{background:var(--gs-accent-hover-tint,rgba(166,90,51,.06))}
  .rb-hs #tools .hm-card .hm-open > summary.dm-btn:focus-visible{outline-offset:-2px}
  .rb-hs #tools .hm-card .hm-open > summary.dm-btn > span{
    position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0
  }
  .rb-hs #tools .hm-card .hm-open > summary.dm-btn::after{
    content:"";width:9px;height:9px;margin-right:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;
    transform:translateY(-2px) rotate(45deg);transition:transform var(--gs-dur,200ms)
  }
  .rb-hs #tools .hm-card .hm-open[open] > summary.dm-btn::after{transform:translateY(2px) rotate(-135deg)}
  .rb-hs #tools .hm-card .hm-open[open]{margin-top:10px}
  .rb-hs #tools .hm-card .dm-panel{margin-top:0;padding-top:12px}
}

/* After Accept: the honest prompt sits full width under the buttons below 600px, not in a side column. */
@media (max-width:600px){
  .rb-hs .life-person{flex-wrap:wrap}
  .rb-hs .life-person > .hs-note,
  .rb-hs .life-person > [data-honest]{
    flex:1 0 100%;
    width:100%;
    max-width:100%;
    margin-top:8px
  }
}

/* mobile-fix: phone gutters, heading-to-text gaps and section spacing. Does not change 1440
   except via the UIR card rules and the period in “Not yet an ally.” (PHP). Hit areas were
   already 44px after mockup-match buttons.css, so they are left alone. */
@media (max-width:600px){
  /* 16px side gutter: stop .gs-wrap’s 16px width-margin stacking with theme padding.
     Header and footer follow --gs-gutter so they line up to the same 16px edge. */
  :root{--gs-gutter:16px}
  .rb-hs .gs-wrap,
  .rb-hs .gs-hero-nn-grid,
  .rb-hs .gs-hero-inner{width:100%;margin-left:0;margin-right:0}

  /* Heading-to-text at least 12px (hero was 10px). Caption title gap is 12px at every width (see base rule). */
  .rb-hs .gs-hero-lead{margin-top:12px}
  .rb-hs .nn-caption h2,
  .rb-hs .nn-caption .nn-caption-title{margin-bottom:12px}

  /* Section gap 24–32px (Reviewer ruled). 12px padding each side = 24px between section boxes. */
  .rb-hs .sx-sec,
  .rb-hs #tools.sx-sec{padding:12px 0}

  /* Hero to the first section: 12px hero pad-bottom + 12px cv pad-top = 24px. */
  .rb-hs .gs-hero--nn{padding-bottom:12px}
}

/* UIR card follow-up (on top of cards-stg): keep the avatar beside the text on phones;
   at 601px and up, when the honest prompt is present, keep Allies and Follow on one row. */
@media (max-width:600px){
  .rb-hs .life-person > div{flex:1 1 0;min-width:0}
}
@media (min-width:601px){
  .rb-hs .life-person:has(> .hs-note, > [data-honest]) .life-actions{flex-wrap:nowrap;min-width:max-content}
  .rb-hs .life-person > .hs-note,
  .rb-hs .life-person > [data-honest]{flex:1 1 12em;min-width:0;max-width:22em}
}

/* mobile-fix2 (Reviewer approved): visible gap between home sections on phones must be
   32px or less. Keep the 12px section padding; drop last-child margins inside sections
   that were stacking on it. Phones only — 1440 section spacing is unchanged.
   (The caption title gap is 12px at every width, including 1440; see the base rule.) */
@media (max-width:600px){
  .rb-hs .sx-sec > .gs-wrap > :last-child,
  .rb-hs .sx-sec > .gs-wrap > :last-child :last-child{
    margin-bottom:0
  }
  /* Last visible cards when later siblings are display:none on phones. */
  .rb-hs #home-feed .life-card,
  .rb-hs #home-network .life-person:nth-of-type(2),
  .rb-hs #home-notifications .life-note:nth-of-type(2),
  .rb-hs #home-feed .life-card :last-child,
  .rb-hs #home-network .life-person:nth-of-type(2) :last-child,
  .rb-hs #home-notifications .life-note:nth-of-type(2) :last-child{
    margin-bottom:0
  }
  /* Empty live region after the people list was adding a line box to the network gap. */
  .rb-hs #home-network .hs-note:empty{
    margin:0;padding:0;border:0;height:0;min-height:0;overflow:hidden;line-height:0
  }
  .rb-hs #cv .cv-face > :last-child,
  .rb-hs #cv .cv-block > :last-child,
  .rb-hs #cv .sx-cv,
  .rb-hs #calculator .sx-footnote,
  .rb-hs #members .sx-lead:last-child,
  .rb-hs #members .life-jumps,
  .rb-hs #home-messages .life-chat,
  .rb-hs #tools .hm-grid,
  .rb-hs #get-started .gs-btn-row{
    margin-bottom:0
  }
}

/* ---------- mobile CV showcase (14 Nov 2026): pinned scaled sheet + beat carousel below 900px.
   1440 / min-width 901px is unchanged: two columns, sticky sheet, 42vh beats. */
.rb-hs #cv .sx-cv-scale{width:100%;position:relative}
.rb-hs #cv .sx-cv-scale-inner{width:100%}
.rb-hs #cv .sx-beats-nav{display:none}
.rb-hs #cv .sx-beats-btn{position:relative;flex:0 0 auto;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid var(--gs-line,#D4DAD7);background:var(--gs-surface,#F8F9F7);color:var(--gs-text,#171719);border-radius:50%;cursor:pointer}
.rb-hs #cv .sx-beats-btn:focus-visible{outline:2px solid var(--gs-dk-focus,#A65A33);outline-offset:2px}
.rb-hs #cv .sx-beats-ico{display:block;width:8px;height:8px;margin:0 auto;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(1px,1px)}
.rb-hs #cv .sx-beats-ico--next{transform:rotate(-135deg) translate(1px,1px)}
.rb-hs #cv .sx-cv-controls .gs-btn{position:relative;min-height:44px}
.rb-hs #cv [data-cv-play]{display:inline-grid;justify-items:center;align-items:center;grid-template-columns:1fr}
.rb-hs #cv [data-cv-play] [data-cv-play-label]{grid-area:1/1}
.rb-hs #cv [data-cv-play] [data-cv-play-label]:not([data-cv-play-on]){visibility:hidden}
.rb-hs #cv [data-cv-play] [data-cv-play-label][data-cv-play-on]{visibility:visible}

@media (min-width:901px){
  .rb-hs #cv .sx-cv{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
    grid-template-areas:"controls sheet" "beats sheet";
    gap:28px;
    align-items:start
  }
  .rb-hs #cv .sx-cv-col:not(.sx-cv-sticky){grid-area:controls}
  .rb-hs #cv .sx-cv-sticky{grid-area:sheet}
  .rb-hs #cv .sx-beats-wrap{grid-area:beats}
}

@media (max-width:900px){
  .rb-hs #cv{touch-action:pan-y}
  .rb-hs #cv .sx-cv{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"controls" "sheet" "beats";
    gap:16px;
    align-items:start
  }
  .rb-hs #cv .sx-cv-col:not(.sx-cv-sticky){grid-area:controls}
  .rb-hs #cv .sx-cv-sticky{grid-area:sheet;position:static}
  .rb-hs #cv .sx-beats-wrap{grid-area:beats;min-width:0;max-width:100%}
  .rb-hs #cv .sx-cv-scale{
    width:100%;
    container-type:inline-size;
    aspect-ratio:360/680;
    overflow:hidden;
    position:relative
  }
  .rb-hs #cv .sx-cv-scale .sx-cv-stage{
    position:absolute;top:0;left:0;width:360px;height:680px;margin:0;
    transform:scale(var(--sx-cv-scale, .8));
    transform-origin:top left
  }
  .rb-hs #cv .sx-cv-scale-inner{width:100%;height:100%;overflow:hidden;position:relative}
  .rb-hs #cv ol.sx-beats{
    position:relative;
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:100%;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    scroll-behavior:auto;
    scroll-padding:0;
    gap:0;
    list-style:none;
    margin:0;
    padding:0;
    width:100%;
    max-width:100%;
    overscroll-behavior-x:contain;
    overscroll-behavior-y:auto;
    touch-action:pan-x pan-y;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch
  }
  .rb-hs #cv ol.sx-beats::-webkit-scrollbar{display:none}
  .rb-hs #cv .sx-beat{
    width:auto;
    min-width:0;
    max-width:none;
    scroll-snap-align:start;scroll-snap-stop:always;
    min-height:auto;
    padding:14px 16px;
    box-sizing:border-box
  }
  .rb-hs #cv ol.sx-beats{gap:0}
  .rb-hs #cv .sx-beats-nav{
    display:grid;
    grid-template-columns:44px minmax(0,1fr) 44px;
    align-items:center;
    column-gap:8px;
    margin-top:12px;
    max-width:100%
  }
  .rb-hs #cv .sx-beats-nav [data-cv-prev]{grid-column:1}
  .rb-hs #cv .sx-beats-count{grid-column:2;margin:0;text-align:center;font-size:14px;line-height:1.3;font-weight:600;color:var(--gs-dk-text,#171719);white-space:nowrap}
  .rb-hs #cv .sx-beats-nav [data-cv-next]{grid-column:3}
  .rb-hs #cv .sx-beat{scroll-snap-stop:always}
  .rb-hs #cv .sx-tpl{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px;max-width:100%;scrollbar-width:none;padding-inline:4px;scroll-padding-inline:4px}
  .rb-hs #cv .sx-tpl button{flex:0 0 auto;white-space:nowrap}
}

