/* ============================================================================
   GetWheelSpinner v8.0 — sitewide presentation layer (loaded LAST, after
   ui-v718.css, on every page except the embed renderer).
   PRESENTATION ONLY: no canvas size, wheel geometry, pointer position,
   rotation, colour meaning or tool logic is changed here.
   Sections: 1 tokens · 2 header/nav · 3 Find a tool · 4 tool stage ·
   5 results · 6 homepage discovery · 7 related tools · 8 Share button ·
   9 Share prompt · 10 Multi Wheel celebration · 11 contrast fixes · 12 motion
   ============================================================================ */

/* ── 1. TOKENS ───────────────────────────────────────────────────────────── */
:root{
  --v8-accent:#F59E0B;
  --v8-grad:linear-gradient(135deg,#F59E0B 0%,#F97316 45%,#EF4444 100%);
  --v8-indigo:#818CF8;
  --v8-panel:#12121F;
  --v8-panel-2:#171729;
  --v8-line:rgba(255,255,255,.1);
  --v8-line-2:rgba(255,255,255,.16);
  --v8-text-2:rgba(226,232,240,.86);
  --v8-ring:0 0 0 3px rgba(245,158,11,.35);
}
html[data-theme="light"]{
  --v8-panel:#FFFFFF;
  --v8-panel-2:#F8FAFC;
  --v8-line:rgba(15,23,42,.1);
  --v8-line-2:rgba(15,23,42,.18);
  --v8-text-2:#334155;
  --v8-indigo:#4338CA;
}

/* ── 2. HEADER / NAVIGATION (r2) ─────────────────────────────────────────────
   [☰ Menu] [brand] [six hero links, each with a SEPARATE tray chevron] [Find]
   The words are ordinary links; only the small chevron opens a tray. Phones and
   tablets get [☰] [brand] [🔍]: no squeezed labels, no sideways scroller.
   Without JavaScript the six links + "Browse all tools" show as plain links. */
html.gws-js .header-inner{overflow:visible}
.nav-hero{list-style:none;margin:0 0 0 6px;padding:0;display:flex;align-items:center;gap:2px}
.nav-item{position:relative;display:flex;align-items:center;border-radius:999px;border:1px solid transparent;transition:background .15s}
.nav-item:hover,.nav-item.is-open{background:rgba(255,255,255,.07)}
html[data-theme="light"] .nav-item:hover,html[data-theme="light"] .nav-item.is-open{background:rgba(15,23,42,.05)}
.nav-item:has(>a.current){background:rgba(245,158,11,.14);border-color:rgba(245,158,11,.4)}
#gws-nav .nav-item>a,#gws-nav .nav-item>a:hover,#gws-nav .nav-item>a.current{background:transparent;border-color:transparent;box-shadow:none}   /* the pill is on the item, not the link */
.nav-links .nav-item>a{padding:7px 12px}
html.gws-js .nav-links .nav-item>a{padding-right:2px}
.nav-links a.current{font-weight:700}
.nav-chev{display:none;align-items:center;justify-content:center;width:28px;height:34px;padding:0 6px 0 0;margin:0;border:0;border-radius:0 999px 999px 0;background:transparent;color:var(--v8-text-2);cursor:pointer}
html.gws-js .nav-chev{display:inline-flex}
.nav-chev::before{content:"";display:block;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .15s}
.nav-chev[aria-expanded="true"]::before{transform:translateY(2px) rotate(-135deg)}
.nav-chev:hover,.nav-chev[aria-expanded="true"]{color:#FCD34D}
html[data-theme="light"] .nav-chev:hover,html[data-theme="light"] .nav-chev[aria-expanded="true"]{color:#92400E}
.nav-chev:focus-visible{outline:3px solid var(--ui-focus,#F59E0B);outline-offset:-3px}
html.gws-js .nav-all-li{display:none}
.nav-tools{margin-left:auto;display:flex;align-items:center;gap:8px;flex-shrink:0}
html:not(.gws-js) .nav-tools,html:not(.gws-js) .nav-menu{display:none}
.nav-find{
  display:inline-flex;align-items:center;gap:9px;height:40px;min-width:200px;
  padding:0 8px 0 14px;border-radius:999px;cursor:pointer;
  font:600 13.5px var(--font);color:var(--text);
  background:rgba(255,255,255,.06);border:1px solid var(--v8-line-2);
  transition:background .15s,border-color .15s;
}
.nav-find:hover{background:rgba(255,255,255,.1);border-color:rgba(245,158,11,.55)}
.nav-find-ico{font-size:14px;line-height:1}
.nav-find-label{flex:1 1 auto;text-align:left;color:var(--v8-text-2)}
.nav-kbd{font:700 11px var(--font);min-width:22px;text-align:center;padding:2px 6px;border-radius:6px;border:1px solid var(--v8-line-2);color:var(--v8-text-2);background:rgba(255,255,255,.04)}
.nav-menu{
  display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px 0 12px;border-radius:999px;cursor:pointer;flex-shrink:0;
  font:700 13.5px var(--font);color:var(--text);background:rgba(255,255,255,.06);border:1px solid var(--v8-line-2);
}
.nav-menu:hover,#site-header.menu-open .nav-menu{border-color:rgba(245,158,11,.55)}
.nav-menu-bars,.nav-menu-bars::before,.nav-menu-bars::after{display:block;width:16px;height:2px;border-radius:2px;background:currentColor;position:relative;transition:transform .2s,opacity .2s}
.nav-menu-bars::before,.nav-menu-bars::after{content:"";position:absolute;left:0}
.nav-menu-bars::before{top:-5px}.nav-menu-bars::after{top:5px}
#site-header.menu-open .nav-menu-bars{background:transparent}
#site-header.menu-open .nav-menu-bars::before{transform:translateY(5px) rotate(45deg)}
#site-header.menu-open .nav-menu-bars::after{transform:translateY(-5px) rotate(-45deg)}
html[data-theme="light"] .nav-find,html[data-theme="light"] .nav-menu{background:#FFFFFF;color:#0F172A}
html[data-theme="light"] .nav-find:hover{background:#FFFBEB}
html[data-theme="light"] .nav-kbd{background:#F8FAFC}
/* Widths: 1240+ full labels · 1024–1239 icon-only Menu/Find · ≤1023 the hero links live in the Menu */
@media(min-width:1024px) and (max-width:1239px){
  .nav-menu-label,.nav-find-label,.nav-kbd{display:none}
  .nav-menu,.nav-find{width:42px;min-width:0;height:42px;padding:0;justify-content:center}
  .logo{font-size:18px}
}
@media(max-width:1023px){html.gws-js .nav-links{display:none}}
@media(max-width:560px){
  .header-inner{padding:0 12px;gap:8px}
  .logo{font-size:17px}
  .nav-find{min-width:0;width:44px;height:44px;padding:0;justify-content:center}
  .nav-find-label,.nav-kbd{display:none}
  .nav-find-ico{font-size:17px}
  .nav-menu{width:44px;height:44px;padding:0;justify-content:center}
  .nav-menu-label{display:none}
}
@media(pointer:coarse){.nav-kbd{display:none}}

/* Hero trays: a compact floating card of 5–6 tools; opened only by the chevron */
.nav-tray{position:absolute;top:calc(100% + 10px);left:-4px;z-index:5;width:340px;max-width:calc(100vw - 24px);padding:8px;border-radius:18px;
  background:var(--v8-panel);border:1px solid var(--v8-line-2);box-shadow:0 26px 50px -18px rgba(0,0,0,.75);text-align:left}
.nav-tray[hidden]{display:none}
.nav-tray.is-end{left:auto;right:-4px}
.nav-tray ul{list-style:none;margin:0;padding:0}
.nav-links .nav-tray a{display:flex;align-items:center;gap:11px;padding:8px 10px;border-radius:12px;border:0;white-space:normal;font-size:14px;font-weight:600;color:var(--text);background:transparent}
.nav-links .nav-tray a:hover,.nav-links .nav-tray a:focus-visible{background:rgba(245,158,11,.1);color:var(--text)}
.nav-links .nav-tray a[aria-current="page"]{background:rgba(245,158,11,.12)}
.nav-tray .ico{flex:0 0 34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.06);font-size:18px}
.nav-tray .tx{display:flex;flex-direction:column;min-width:0}
.nav-tray .t{font-weight:700;font-size:14px;line-height:1.3}
.nav-tray .d{font-weight:500;font-size:12.5px;line-height:1.35;color:var(--v8-text-2)}
.nav-links .nav-tray a.nav-tray-more{display:block;margin:6px 0 0;padding:10px 10px 6px;border-top:1px solid var(--v8-line);border-radius:0;font-weight:800;font-size:13px;color:#FCD34D}
html[data-theme="light"] .nav-tray .ico{background:#F1F5F9}
html[data-theme="light"] .nav-links .nav-tray a{color:#0F172A}
html[data-theme="light"] .nav-links .nav-tray a:hover,html[data-theme="light"] .nav-links .nav-tray a:focus-visible{background:#FFFBEB}
html[data-theme="light"] .nav-links .nav-tray a.nav-tray-more{color:#92400E}

/* Menu panel: orientation, not a directory (Find · 6 quick · 7 tasks · 2 utilities) */
.nav-panel{position:absolute;left:0;right:0;top:100%;padding:0 20px;pointer-events:none}
.nav-panel[hidden]{display:none}
.np-card{pointer-events:auto;box-sizing:border-box;width:min(440px,100%);margin:8px auto 0 max(0px,calc((100% - 1160px)/2));
  max-height:calc(100vh - 84px);max-height:calc(100dvh - 84px);overflow-y:auto;overscroll-behavior:contain;
  padding:14px;border-radius:20px;background:var(--v8-panel);border:1px solid var(--v8-line-2);box-shadow:0 30px 60px -20px rgba(0,0,0,.8)}
.np-find{display:flex;align-items:center;gap:12px;width:100%;min-height:54px;padding:0 16px;border-radius:14px;cursor:pointer;text-align:left;
  font:inherit;color:var(--text);background:rgba(255,255,255,.06);border:1.5px solid rgba(245,158,11,.55)}
.np-find:hover{background:rgba(245,158,11,.1)}
.np-find-ico{font-size:18px}
.np-find-tx,.np-card .tx{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.np-find-t{font-weight:800;font-size:15px}
.np-find-d{font-size:12.5px;color:var(--v8-text-2)}
.np-h{margin:16px 2px 8px;font-size:11px;font-weight:800;letter-spacing:1.3px;text-transform:uppercase;color:var(--v8-text-2)}
.np-quick,.np-cats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.np-card a{display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 10px;border-radius:12px;border:1px solid var(--v8-line);background:rgba(255,255,255,.03);color:var(--text)}
.np-card a:hover,.np-card a:focus-visible{border-color:rgba(245,158,11,.55);background:rgba(245,158,11,.08)}
.np-card a[aria-current="page"]{border-color:rgba(245,158,11,.55)}
.np-card .ico{flex:0 0 auto;width:26px;text-align:center;font-size:18px}
.np-card .t{font-weight:700;font-size:14px;line-height:1.25}
.np-card .d{font-size:12px;color:var(--v8-text-2);line-height:1.3}
.np-utils{display:flex;flex-direction:column;gap:6px}
.np-utils .ico{font:800 13px var(--font);color:#FCD34D}
html[data-theme="light"] .np-find{background:#FFFFFF;border-color:#D97706;color:#0F172A}
html[data-theme="light"] .np-card a{background:#F8FAFC;color:#0F172A}
html[data-theme="light"] .np-card a:hover,html[data-theme="light"] .np-card a:focus-visible{background:#FFFBEB}
html[data-theme="light"] .np-utils .ico{color:#92400E}
@media(max-width:560px){
  .nav-panel{padding:0}
  .np-card{width:100%;margin:0;border-radius:0 0 20px 20px;border-left:0;border-right:0;max-height:calc(100vh - 64px);max-height:calc(100dvh - 64px);padding:12px 12px 16px}
}

/* ── 3. FIND A TOOL DIALOG ───────────────────────────────────────────────── */
html.gws-find-open,html.gws-find-open body{overflow:hidden}
.gws-find-back{position:fixed;inset:0;z-index:400;background:rgba(3,3,10,.66);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;justify-content:center;align-items:flex-start;padding:9vh 16px 16px}
.gws-find-back[hidden]{display:none}
.gws-find{
  width:min(700px,100%);max-height:min(640px,82vh);display:flex;flex-direction:column;
  background:#101020;color:var(--text);border:1px solid var(--v8-line-2);border-radius:22px;
  box-shadow:0 40px 90px -30px rgba(0,0,0,.9),0 0 0 1px rgba(0,0,0,.3);overflow:hidden;font-family:var(--font);
}
.gws-find-head{padding:16px 16px 10px}
.gws-find-title{font-size:12px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;color:#FCD34D;margin:0 0 8px 4px}
.gws-find-row{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.06);border:1.5px solid rgba(245,158,11,.55);border-radius:14px;padding:0 8px 0 14px}
.gws-find-ico{font-size:18px}
.gws-find-input{flex:1 1 auto;min-width:0;height:52px;background:transparent;border:0;outline:0;color:var(--text);font:600 18px var(--font)}
.gws-find-input::placeholder{color:rgba(203,213,225,.62);font-weight:500}
.gws-find-close{flex:0 0 auto;height:34px;padding:0 10px;border-radius:9px;border:1px solid var(--v8-line-2);background:transparent;color:var(--v8-text-2);font:700 12px var(--font);cursor:pointer}
.gws-find-chips{display:flex;gap:6px;padding:4px 16px 10px;overflow-x:auto;scrollbar-width:none}
.gws-find-chips::-webkit-scrollbar{display:none}
.gws-find-chip{flex:0 0 auto;min-height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--v8-line-2);background:transparent;color:var(--v8-text-2);font:600 12.5px var(--font);cursor:pointer;white-space:nowrap}
.gws-find-chip[aria-pressed="true"]{background:rgba(245,158,11,.16);border-color:rgba(245,158,11,.6);color:#FDE68A}
.gws-find-list{flex:1 1 auto;overflow-y:auto;padding:4px 10px 10px;border-top:1px solid var(--v8-line)}
.gws-find-group{font-size:11px;font-weight:800;letter-spacing:1.3px;text-transform:uppercase;color:var(--v8-text-2);margin:12px 8px 6px}
.gws-find-opt{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:12px;padding:10px 10px;border-radius:12px;border:1px solid transparent;color:var(--text)}
.gws-find-opt-ico{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;font-size:20px;background:rgba(255,255,255,.06)}
.gws-find-opt-text{display:flex;flex-direction:column;min-width:0}
.gws-find-opt-title{font-weight:700;font-size:15px;line-height:1.3}
.gws-find-opt-desc{font-size:13px;color:var(--v8-text-2);line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gws-find-opt-cat{font-size:11px;font-weight:700;color:var(--v8-text-2);border:1px solid var(--v8-line);border-radius:999px;padding:2px 8px;white-space:nowrap}
.gws-find-opt[aria-selected="true"]{background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.45)}
.gws-find-opt:focus-visible{outline:3px solid var(--ui-focus,#F59E0B);outline-offset:1px}
.gws-find-none{padding:22px 12px;color:var(--v8-text-2);font-size:14px}
.gws-find-none a{color:#FCD34D;font-weight:700;text-decoration:underline}
.gws-find-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 16px;border-top:1px solid var(--v8-line);font-size:12px;color:var(--v8-text-2)}
.gws-find-foot kbd{font:700 11px var(--font);padding:1px 6px;border:1px solid var(--v8-line-2);border-radius:5px;margin:0 2px}
.gws-find-browse{color:#FCD34D;font-weight:700}
html[data-theme="light"] .gws-find-back{background:rgba(15,23,42,.42)}
html[data-theme="light"] .gws-find{background:#FFFFFF;color:#0F172A}
html[data-theme="light"] .gws-find-title,html[data-theme="light"] .gws-find-browse,html[data-theme="light"] .gws-find-none a{color:#92400E}
html[data-theme="light"] .gws-find-row{background:#FFFFFF;border-color:#D97706}
html[data-theme="light"] .gws-find-input{color:#0F172A}
html[data-theme="light"] .gws-find-input::placeholder{color:#64748B}
html[data-theme="light"] .gws-find-opt{color:#0F172A}
html[data-theme="light"] .gws-find-opt-ico{background:#F1F5F9}
html[data-theme="light"] .gws-find-opt[aria-selected="true"]{background:#FFFBEB;border-color:#F59E0B}
html[data-theme="light"] .gws-find-chip[aria-pressed="true"]{background:#FEF3C7;border-color:#D97706;color:#78350F}
@media(max-width:560px){
  .gws-find-back{padding:10px}
  .gws-find{max-height:calc(100dvh - 20px);border-radius:18px}
  .gws-find-opt{grid-template-columns:36px 1fr}
  .gws-find-opt-cat{display:none}
  .gws-find-opt-ico{width:36px;height:36px}
  .gws-find-foot>span{display:none}
}

/* ── 4. TOOL STAGE: spin, then one tidy toolbar row ──────────────────────── */
/* The engine injects Theme / Sound / View buttons one per line under the spin
   button. v8 lays the existing buttons out as one toolbar row (same DOM, same
   handlers) so the result and options sit higher on the page. */
.wheel-col{flex-direction:row;flex-wrap:wrap;justify-content:center;align-content:flex-start;column-gap:8px;row-gap:14px}
.wheel-col>*{flex:0 0 100%;order:7}
.wheel-col>.canvas-wrap{order:1;margin-left:auto;margin-right:auto}
.wheel-col>#spin-btn{order:2;flex:0 0 auto}
.wheel-col::after{content:"";order:3;flex:0 0 100%;height:0}
.wheel-col>#theme-toggle,.wheel-col>#sound-toggle,.wheel-col>#mode-toggle{order:4;flex:0 0 auto;margin:0;align-self:center}
.wheel-col>#spin-hint{order:5;text-align:center}
.wheel-col>#result-card{order:6}
#theme-toggle,#sound-toggle,#mode-toggle{
  display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 13px !important;
  font:700 12.5px var(--font) !important;border-radius:999px !important;line-height:1 !important;
}
#theme-toggle::after{content:"Theme"}
#sound-toggle::after{content:"Sound"}
#spin-btn{font-size:19px;padding:17px 58px;border-radius:20px;letter-spacing:.6px}
@media(max-width:720px){#spin-btn{font-size:17px;padding:16px 40px}}
.spin-hint{font-size:13px}

/* Phones: editing the options matters more than the history list, so it comes
   first; "Try another wheel" goes last. Same elements, same handlers. */
@media(max-width:900px){
  .controls-col>#history-panel{order:5}
}

/* ── 5. RESULTS ──────────────────────────────────────────────────────────── */
#result-panel.has-result{
  border-color:rgba(245,158,11,.6);
  background:radial-gradient(420px 180px at 50% 0%,rgba(245,158,11,.16),transparent 70%),var(--card);
  box-shadow:0 0 0 1px rgba(245,158,11,.2),0 18px 40px -20px rgba(245,158,11,.45);
}
.rp-label{color:#FCD34D;font-weight:800}
.rp-winner{font-size:clamp(30px,4.4vw,46px);font-weight:900;line-height:1.1;overflow-wrap:anywhere}
.rp-note{font-size:12.5px}
.rp-empty-text{font-size:14px;line-height:1.5}
html[data-theme="light"] #result-panel.has-result{background:radial-gradient(420px 180px at 50% 0%,rgba(245,158,11,.14),transparent 70%),#FFFFFF;border-color:#D97706}
html[data-theme="light"] .rp-label{color:#92400E}
.hist-item{border-radius:10px}
#overlay-winner{font-weight:900}

/* ── 6. HOMEPAGE DISCOVERY ───────────────────────────────────────────────── */
.v8-section{margin:0 0 30px}
.v8-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 14px}
.v8-section-head h2{font-size:24px;letter-spacing:-.6px;line-height:1.15}
.v8-section-head p{color:var(--v8-text-2);font-size:14.5px;max-width:620px;margin-top:4px}
.v8-eyebrow{display:inline-block;font-size:11px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;color:#FCD34D;margin-bottom:6px}
html[data-theme="light"] .v8-eyebrow{color:#92400E}
.v8-link{font-weight:700;color:#FCD34D;font-size:14px}
html[data-theme="light"] .v8-link{color:#92400E}

/* Featured tools */
.featured-section .featured-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
@media(max-width:1000px){.featured-section .featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.featured-section .featured-grid{grid-template-columns:1fr}}
.featured-section .featured-card{
  position:relative;display:flex;flex-direction:column;gap:6px;min-height:150px;padding:18px 18px 16px;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));border:1px solid var(--v8-line);
  border-radius:18px;transition:transform .15s,border-color .15s,box-shadow .15s;
}
.featured-section .featured-card:hover{transform:translateY(-2px);border-color:rgba(245,158,11,.55);box-shadow:0 16px 32px -20px rgba(245,158,11,.5)}
.featured-section .featured-icon{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;font-size:24px;background:rgba(255,255,255,.07);margin-bottom:6px}
.featured-section .featured-name{font-size:16px;font-weight:800;line-height:1.25;color:var(--text)}
.featured-section .featured-desc{font-size:13.5px;line-height:1.45;color:var(--v8-text-2)}
.featured-badge{position:absolute;top:14px;right:14px;font-size:10.5px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;padding:3px 8px;border-radius:999px;background:rgba(245,158,11,.16);color:#FDE68A;border:1px solid rgba(245,158,11,.45)}
.featured-badge.is-new{background:rgba(129,140,248,.16);color:#C7D2FE;border-color:rgba(129,140,248,.45)}
.featured-card.is-flagship{background:linear-gradient(135deg,rgba(245,158,11,.16),rgba(239,68,68,.08) 60%,rgba(255,255,255,.02));border-color:rgba(245,158,11,.45)}
html[data-theme="light"] .featured-section .featured-card{background:#FFFFFF;border-color:var(--v8-line)}
html[data-theme="light"] .featured-card.is-flagship{background:linear-gradient(135deg,#FFFBEB,#FFFFFF 70%)}
html[data-theme="light"] .featured-section .featured-icon{background:#F1F5F9}
html[data-theme="light"] .featured-badge{background:#FEF3C7;color:#78350F;border-color:#F59E0B}
html[data-theme="light"] .featured-badge.is-new{background:#EEF2FF;color:#3730A3;border-color:#A5B4FC}

/* Seasonal picks + new tools strip */
.v8-seasonal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media(max-width:700px){.v8-seasonal{grid-template-columns:1fr}}
.v8-season-card{display:flex;align-items:center;gap:16px;padding:18px 20px;border-radius:18px;border:1px solid var(--v8-line);background:linear-gradient(135deg,rgba(129,140,248,.14),rgba(255,255,255,.02) 70%)}
.v8-season-card.is-halloween{background:linear-gradient(135deg,rgba(249,115,22,.18),rgba(255,255,255,.02) 70%)}
.v8-season-card:hover{border-color:rgba(245,158,11,.55)}
.v8-season-ico{font-size:34px;line-height:1;flex:0 0 auto}
.v8-season-name{display:block;font-weight:800;font-size:16.5px;color:var(--text)}
.v8-season-desc{display:block;font-size:13.5px;color:var(--v8-text-2);margin-top:2px}
.v8-season-go{margin-left:auto;font-weight:800;color:#FCD34D;font-size:18px}
html[data-theme="light"] .v8-season-card{background:linear-gradient(135deg,#EEF2FF,#FFFFFF 70%)}
html[data-theme="light"] .v8-season-card.is-halloween{background:linear-gradient(135deg,#FFEDD5,#FFFFFF 70%)}
html[data-theme="light"] .v8-season-go{color:#92400E}
.v8-newstrip{display:flex;flex-wrap:wrap;gap:8px}
.v8-newstrip a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--v8-line-2);background:rgba(255,255,255,.04);font-weight:700;font-size:14px}
.v8-newstrip a:hover{border-color:rgba(245,158,11,.55)}
html[data-theme="light"] .v8-newstrip a{background:#FFFFFF}

/* Directory by job */
.v8-dir{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.v8-dir-cat{background:var(--ui-surface,rgba(255,255,255,.03));border:1px solid var(--v8-line);border-radius:18px;padding:18px 18px 14px}
.v8-dir-cat h3{display:flex;align-items:center;gap:10px;font-size:17px;margin:0 0 2px}
.v8-dir-cat h3 span{font-size:22px}
.v8-dir-blurb{font-size:13px;color:var(--v8-text-2);margin:0 0 10px}
.v8-dir-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.v8-dir-list a{display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 10px;border-radius:10px;font-size:14.5px;font-weight:600;color:var(--text)}
.v8-dir-list a:hover{background:rgba(245,158,11,.1);color:#FDE68A}
.v8-dir-list .ico{width:22px;text-align:center;flex:0 0 auto}
.v8-dir-list .tag{margin-left:auto;font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:#C7D2FE;border:1px solid rgba(129,140,248,.45);border-radius:999px;padding:1px 7px}
html[data-theme="light"] .v8-dir-cat{background:#FFFFFF}
html[data-theme="light"] .v8-dir-list a{color:#0F172A}
html[data-theme="light"] .v8-dir-list a:hover{background:#FFFBEB;color:#78350F}
html[data-theme="light"] .v8-dir-list .tag{color:#3730A3;border-color:#A5B4FC}
.v8-find-cta{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;border:1.5px solid rgba(245,158,11,.6);background:rgba(245,158,11,.1);color:#FDE68A;font:800 14px var(--font);cursor:pointer}
html[data-theme="light"] .v8-find-cta{background:#FFFBEB;color:#78350F;border-color:#D97706}
html:not(.gws-js) .v8-find-cta{display:none}

/* Hero discovery (homepage) */
.v8-hero-find{max-width:760px;margin:22px auto 0;display:flex;flex-direction:column;align-items:center;gap:12px}
.v8-hero-search{
  width:100%;display:flex;align-items:center;gap:12px;min-height:58px;padding:0 12px 0 20px;border-radius:18px;cursor:pointer;
  font:600 16px var(--font);color:var(--text);text-align:left;
  background:rgba(255,255,255,.07);border:1.5px solid rgba(245,158,11,.55);
  box-shadow:0 18px 40px -24px rgba(245,158,11,.55),inset 0 1px 0 rgba(255,255,255,.06);
}
.v8-hero-search:hover{background:rgba(255,255,255,.1);border-color:#F59E0B}
.v8-hs-ico{font-size:19px}
.v8-hs-text{flex:1 1 auto;min-width:0}
.v8-hs-eg{color:var(--v8-text-2);font-weight:500}
.v8-hero-search kbd{font:700 12px var(--font);padding:3px 8px;border-radius:7px;border:1px solid var(--v8-line-2);color:var(--v8-text-2)}
html:not(.gws-js) .v8-hero-search{display:none}
html[data-theme="light"] .v8-hero-search{background:#FFFFFF;border-color:#D97706;box-shadow:0 16px 36px -24px rgba(180,83,9,.55)}
@media(max-width:600px){
  .v8-hero-search{min-height:54px;font-size:15px;padding:0 14px}
  .v8-hs-eg,.v8-hero-search kbd{display:none}
}
/* Category breadcrumb on tool pages */
.v8-crumb{display:flex;justify-content:center;align-items:center;gap:8px;margin:0 0 12px;font-size:13px;font-weight:700;color:var(--v8-text-2)}
.v8-crumb a{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:0 10px;border-radius:999px;border:1px solid var(--v8-line);color:var(--v8-text-2)}
.v8-crumb a:hover{color:var(--text);border-color:rgba(245,158,11,.55)}
.v8-crumb>span{opacity:.6}
html[data-theme="light"] .v8-crumb a{background:#FFFFFF;color:#334155}

/* ── 7. RELATED TOOLS ────────────────────────────────────────────────────── */
.v8-related{margin:0 0 30px}
.v8-related h2{font-size:20px;letter-spacing:-.4px;margin-bottom:12px}
.v8-related-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.v8-related-grid a{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:16px;border:1px solid var(--v8-line);background:var(--ui-surface,rgba(255,255,255,.03));min-height:64px}
.v8-related-grid a:hover{border-color:rgba(245,158,11,.55)}
.v8-related-grid .ico{font-size:22px;flex:0 0 auto}
.v8-related-grid .t{display:block;font-weight:700;font-size:14.5px;color:var(--text);line-height:1.3}
.v8-related-grid .d{display:block;font-size:12.5px;color:var(--v8-text-2);line-height:1.35}
html[data-theme="light"] .v8-related-grid a{background:#FFFFFF}

/* ── 8. PERMANENT SHARE BUTTON (share.js) ────────────────────────────────── */
/* Footprint kept at the v7.1.8 reservation (46px + 24px desktop, 50px + 24px
   phones) so the layout-shift reservation in ui-v718.css stays exact. */
.gws-share{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.gws-share-btn{
  display:inline-flex;align-items:center;gap:10px;height:46px;padding:0 22px 0 8px;
  border-radius:999px;cursor:pointer;font:800 15px var(--font);letter-spacing:.1px;
  color:#FFFFFF;background:linear-gradient(135deg,#4F46E5 0%,#7C3AED 100%);
  border:1.5px solid rgba(199,210,254,.35);
  box-shadow:0 10px 26px -12px rgba(99,102,241,.8),inset 0 1px 0 rgba(255,255,255,.18);
  transition:transform .15s,box-shadow .15s,filter .15s;
}
.gws-share-btn:hover{transform:translateY(-1px);filter:brightness(1.08);box-shadow:0 14px 30px -12px rgba(99,102,241,.9)}
.gws-share-btn span[aria-hidden="true"]{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.18);font-size:15px}
.gws-share-btn[aria-expanded="true"]{box-shadow:0 0 0 3px rgba(165,180,252,.45)}
html[data-theme="light"] .gws-share-btn,html[data-theme="light"] .gws-share-btn:hover{background:linear-gradient(135deg,#4338CA 0%,#6D28D9 100%);border-color:#4338CA;color:#FFFFFF}
.gws-share-btn:hover{color:#FFFFFF;background:linear-gradient(135deg,#5B52F0 0%,#8B4CF7 100%);border-color:rgba(199,210,254,.55)}
.gws-share-btn{animation:none}
html[data-theme="light"] .gws-share-btn:focus-visible,.gws-share-btn:focus-visible{outline:3px solid #A5B4FC;outline-offset:3px}
.gws-share-panel{margin-top:10px}
@media(max-width:600px){.gws-share-btn{height:50px;width:100%;max-width:360px;justify-content:center;padding:0 20px 0 10px}}
/* Result-panel Share buttons now open this same flow: make them read as share. */
.btn-share{font-weight:800}

/* ── 9. SHARE PROMPT v8 ──────────────────────────────────────────────────── */
.gws-sp{
  width:min(440px,calc(100% - 24px));grid-template-columns:auto 1fr;gap:4px 14px;
  padding:18px 18px 16px;border-radius:22px;border:1.5px solid rgba(245,158,11,.7);
  background:linear-gradient(160deg,#1C1B33 0%,#15152A 60%,#1A1428 100%);
  box-shadow:0 30px 70px -20px rgba(0,0,0,.85),0 0 0 1px rgba(0,0,0,.25),0 0 40px -10px rgba(245,158,11,.35);
}
@media(min-width:901px){.gws-sp{left:auto;right:24px;transform:none}.gws-sp.gws-sp-in{animation:gws-v8-rise-r .34s cubic-bezier(.2,.9,.3,1.2) both,gws-v8-glow 1.6s ease-out .35s 1}}
.gws-sp-icon{grid-row:1/3;align-self:start;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;font-size:26px;background:var(--v8-grad);box-shadow:0 10px 24px -10px rgba(245,158,11,.8)}
.gws-sp-text{font-size:14.5px;line-height:1.5;color:rgba(226,232,240,.9)}
.gws-sp-head{display:block;font-size:19px;font-weight:900;letter-spacing:-.3px;color:#FFFFFF;margin-bottom:2px}
.gws-sp-actions{grid-column:1/-1;display:flex;gap:10px;margin-top:12px}
.gws-sp-go{flex:1 1 auto;min-height:48px;border-radius:14px;font-size:15.5px;font-weight:900;background:var(--v8-grad);color:#1A0B00;box-shadow:0 12px 26px -12px rgba(249,115,22,.9)}
.gws-sp-go:hover{filter:brightness(1.06)}
.gws-sp-later{flex:0 0 auto;min-height:48px;padding:0 18px;border-radius:14px;cursor:pointer;font:700 14.5px var(--font);color:rgba(226,232,240,.92);background:transparent;border:1.5px solid rgba(255,255,255,.22)}
.gws-sp-later:hover{background:rgba(255,255,255,.06)}
.gws-sp-later:focus-visible{outline:3px solid var(--ui-focus);outline-offset:2px}
.gws-sp-x{display:none}
html[data-theme="light"] .gws-sp{background:linear-gradient(160deg,#FFFFFF 0%,#FFFBEB 100%);border-color:#D97706;box-shadow:0 26px 60px -22px rgba(15,23,42,.45),0 0 0 1px rgba(15,23,42,.04)}
html[data-theme="light"] .gws-sp-text{color:#334155}
html[data-theme="light"] .gws-sp-head{color:#0F172A}
html[data-theme="light"] .gws-sp-later{color:#0F172A;border-color:rgba(15,23,42,.25)}
html[data-theme="light"] .gws-sp-later:hover{background:rgba(15,23,42,.05)}
.gws-sp.gws-sp-in{animation:gws-sp-rise .34s cubic-bezier(.2,.9,.3,1.2) both,gws-v8-glow 1.6s ease-out .35s 1}
.gws-sp.gws-sp-still{animation:none}
@keyframes gws-v8-rise-r{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@keyframes gws-v8-glow{
  0%{box-shadow:0 30px 70px -20px rgba(0,0,0,.85),0 0 0 0 rgba(245,158,11,.55)}
  100%{box-shadow:0 30px 70px -20px rgba(0,0,0,.85),0 0 0 14px rgba(245,158,11,0)}
}
@media(max-width:520px){
  .gws-sp{grid-template-columns:auto 1fr;padding:16px 14px 14px}
  .gws-sp-icon{display:grid;width:44px;height:44px;font-size:22px;border-radius:13px}
  .gws-sp-text{grid-column:auto}
  .gws-sp-go{grid-column:auto}
  .gws-sp-head{font-size:17.5px}
}

/* ── 10. MULTI WHEEL CELEBRATION v8 (reacts to the engine; never selects) ── */
.mw-wheel.mw-x-won{border-color:rgba(245,158,11,.85);box-shadow:var(--ui-shadow),0 0 0 3px rgba(245,158,11,.35),0 0 46px -6px rgba(245,158,11,.55)}
.mw-wheel.mw-x-won .mw-result{border-color:rgba(245,158,11,.75);background:radial-gradient(260px 110px at 50% 0%,rgba(245,158,11,.22),transparent 72%),var(--card2,#161628)}
.mw-wheel.mw-x-won .mw-result-name{text-shadow:0 0 22px rgba(245,158,11,.55)}
html[data-theme="light"] .mw-wheel.mw-x-won .mw-result{background:radial-gradient(260px 110px at 50% 0%,rgba(245,158,11,.2),transparent 72%),#FFFFFF}
html[data-theme="light"] .mw-wheel.mw-x-won .mw-result-name{text-shadow:none}
.mw-x-burst.v8{top:40%}
.mw-x-burst.v8 .mw-x-bit{width:9px;height:9px;animation-duration:1.45s;animation-timing-function:cubic-bezier(.15,.75,.35,1)}
.mw-x-burst.v8 .mw-x-bit.sq{border-radius:2px}
.mw-x-burst.v8 .mw-x-bit.ln{width:4px;height:12px;border-radius:2px}
.mw-x-burst.v8 .mw-x-bit.dot{border-radius:50%}
.mw-x-c5{background:#FDE68A}
.mw-list-glow{pointer-events:none}

/* ── 11. CONTRAST FIXES (measured light-mode failures, v7.1.8 B5) ────────── */
html[data-theme="light"] .hist-empty{color:#475569}                 /* was 3.41:1 */
html[data-theme="light"] .nav-links a.current{color:#92400E}       /* was 2.21:1 */
html[data-theme="light"] .hh-btn-danger{color:#B91C1C}             /* #gs-reset was 3.76:1 */
html[data-theme="light"] .legal-content strong{color:#92400E}      /* was 1.99:1 */
html[data-theme="light"] .back-link{color:#92400E}                 /* was 1.99:1 */

/* ── 11b. HOUSEHOLD TOOLS: first-load layout reservations ──────────────────
   These containers ship EMPTY and are filled by script just after first paint,
   which pushed everything below them down (measured CLS 0.07–0.36, v7.1.8).
   Each reserves its measured filled height (rounded DOWN within each layout
   step, so it can never overshoot) only while it is empty AND only until the
   page's load event; a container emptied later by the visitor is unaffected. */
html.gws-js:not(.gws-ready) #gs-rows:empty{min-height:263px}
html.gws-js:not(.gws-ready) #br-rows:empty{min-height:707px}
html.gws-js:not(.gws-ready) #ht-rows:empty{min-height:909px}
html.gws-js:not(.gws-ready) #ht-members:empty{min-height:65px}
html.gws-js:not(.gws-ready) #wa-filters:empty{min-height:541px}
html.gws-js:not(.gws-ready) #wa-results:empty{min-height:890px}
html.gws-js:not(.gws-ready) #wa-slots:empty{min-height:198px}
@media(max-width:999px){
  html.gws-js:not(.gws-ready) #gs-rows:empty{min-height:417px}
  html.gws-js:not(.gws-ready) #br-rows:empty{min-height:939px}
  html.gws-js:not(.gws-ready) #wa-filters:empty{min-height:593px}
}
@media(max-width:800px){html.gws-js:not(.gws-ready) #wa-results:empty{min-height:1470px}}
@media(max-width:700px){
  html.gws-js:not(.gws-ready) #br-rows:empty{min-height:1170px}
  html.gws-js:not(.gws-ready) #ht-rows:empty{min-height:1140px}
  html.gws-js:not(.gws-ready) #wa-slots:empty{min-height:302px}
}
@media(max-width:600px){
  html.gws-js:not(.gws-ready) #gs-rows:empty{min-height:880px}
  html.gws-js:not(.gws-ready) #br-rows:empty{min-height:1865px}
  html.gws-js:not(.gws-ready) #ht-rows:empty{min-height:1835px}
  html.gws-js:not(.gws-ready) #ht-members:empty{min-height:142px}
  html.gws-js:not(.gws-ready) #wa-filters:empty{min-height:697px}
  html.gws-js:not(.gws-ready) #wa-results:empty{min-height:2187px}
  html.gws-js:not(.gws-ready) #wa-slots:empty{min-height:614px}
}
@media(max-width:480px){html.gws-js:not(.gws-ready) #wa-filters:empty{min-height:853px}}

/* ── 12. MOTION ──────────────────────────────────────────────────────────── */
@media(prefers-reduced-motion:reduce){
  .gws-sp,.gws-sp.gws-sp-in{animation:none !important}
  .featured-section .featured-card,.gws-share-btn{transition:none}
  .featured-section .featured-card:hover,.gws-share-btn:hover{transform:none}
  .mw-x-burst,.mw-x-burst.v8{display:none}
}

/* ── 13. HOMEPAGE: one "New & in season" band (v8.0 polish) ─────────────── */
.v8-fresh-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px;align-items:start}
@media(max-width:900px){.v8-fresh-grid{grid-template-columns:1fr}}
.v8-fresh .v8-seasonal{grid-template-columns:1fr;gap:10px}
.v8-fresh-label{font-size:12px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:var(--v8-text-2);margin:0 0 10px}
.v8-fresh .v8-newstrip a{min-height:44px}
.v8-404-find{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:16px}

/* ── 14. r2 FINAL DISCOVERY POLISH ───────────────────────────────────────── */
/* Find a tool: capped broad results + "Show all"; readable phone results */
.gws-find-more{display:block;width:calc(100% - 4px);margin:8px 2px 4px;min-height:44px;border-radius:12px;border:1.5px dashed rgba(245,158,11,.6);background:transparent;color:#FCD34D;font:800 13.5px var(--font);cursor:pointer}
.gws-find-more:hover{background:rgba(245,158,11,.08)}
.gws-find-more:focus-visible{outline:3px solid var(--ui-focus,#F59E0B);outline-offset:2px}
html[data-theme="light"] .gws-find-more{color:#92400E;border-color:#D97706}
@media(max-width:560px){
  .gws-find-opt{grid-template-columns:36px 1fr;grid-template-areas:"ico text" "ico cat";row-gap:2px;align-items:start}
  .gws-find-opt-ico{grid-area:ico;align-self:center}
  .gws-find-opt-text{grid-area:text}
  .gws-find-opt-cat{display:inline-block;grid-area:cat;justify-self:start;font-size:10.5px;line-height:1.5;padding:0 7px}
  .gws-find-opt-desc{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}

/* Homepage Quick Tools: the six hero destinations (homepage only) */
.v8-quick{width:100%;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.v8-quick a{display:grid;grid-template-columns:1fr;justify-items:center;align-content:center;row-gap:2px;min-height:68px;padding:8px 6px;border-radius:14px;
  border:1px solid var(--v8-line-2);background:rgba(255,255,255,.04);color:var(--text);text-align:center}
.v8-quick a:hover{border-color:rgba(245,158,11,.6);background:rgba(245,158,11,.1)}
.v8-quick .ico{font-size:20px;line-height:1.1}
.v8-quick .t{font-weight:800;font-size:14px;line-height:1.2}
.v8-quick .d{font-size:11.5px;line-height:1.25;color:var(--v8-text-2)}
.v8-quick-all{font-weight:700;font-size:13.5px;color:#FCD34D;text-decoration:underline;text-underline-offset:3px}
html[data-theme="light"] .v8-quick a{background:#FFFFFF;color:#0F172A}
html[data-theme="light"] .v8-quick-all{color:#92400E}
@media(max-width:760px){.v8-quick{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){
  .v8-hero-find{gap:10px}
  .v8-quick{gap:6px}
  .v8-quick a{min-height:60px;padding:6px 4px;border-radius:13px}
  .v8-quick .ico{font-size:18px}
  .v8-quick .t{font-size:13.5px}
  .v8-quick .d{font-size:11px}
}
@media(max-width:359px){
  .v8-quick{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v8-quick a{grid-template-columns:auto minmax(0,1fr);justify-items:start;column-gap:9px;row-gap:0;min-height:48px;padding:6px 10px;text-align:left}
  .v8-quick .ico{grid-row:1/3;align-self:center}
}

/* Featured tools: denser on phones (2 columns; 1 compact column at ≤360px) */
@media(max-width:600px){
  .featured-section .featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .featured-section .featured-card{min-height:0;padding:12px;gap:3px;border-radius:16px}
  .featured-section .featured-icon{width:36px;height:36px;font-size:19px;border-radius:10px;margin-bottom:3px}
  .featured-section .featured-name{font-size:14.5px}
  .featured-section .featured-desc{font-size:12.5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .featured-badge{top:10px;right:10px;font-size:9.5px;padding:2px 6px}
}
@media(max-width:360px){
  .featured-section .featured-grid{grid-template-columns:1fr;gap:8px}
  .featured-section .featured-card{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:12px;row-gap:1px;align-items:center}
  .featured-section .featured-icon{grid-row:1/3;margin:0}
  .featured-section .featured-name{padding-right:64px}
}

/* The info pages and 404 append its own light/dark switch to the nav; r2 shows it in the Menu (v8-site.js) */
html.gws-js #gws-nav>#theme-toggle,html.gws-js #site-header .header-inner>#theme-toggle{display:none}
.np-utils #theme-toggle{display:flex;align-items:center;width:100%;min-height:48px;padding:6px 12px;border-radius:12px;font:700 14px var(--font);text-align:left}

/* Directory by job: <details> per category (closed in HTML; opened on wide screens by v8-site.js) */
.v8-dir-cat{padding:0;scroll-margin-top:80px}   /* land below the sticky header (was missing in r1) */
.v8-dir-cat>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:8px;row-gap:3px;padding:16px 18px;border-radius:18px}
.v8-dir-cat>summary::-webkit-details-marker{display:none}
.v8-dir-cat>summary::after{content:"";grid-column:3;grid-row:1/3;width:9px;height:9px;margin-right:4px;border-right:2px solid var(--v8-text-2);border-bottom:2px solid var(--v8-text-2);transform:rotate(45deg) translateY(-3px);transition:transform .15s}
.v8-dir-cat[open]>summary::after{transform:rotate(-135deg) translateY(-3px)}
.v8-dir-cat>summary:focus-visible{outline:3px solid var(--ui-focus,#F59E0B);outline-offset:-3px}
.v8-dir-cat>summary h3{grid-column:1/3;margin:0}
.v8-dir-n{grid-column:1;justify-self:start;font-size:11px;font-weight:800;letter-spacing:.4px;padding:1px 8px;border-radius:999px;border:1px solid var(--v8-line-2);color:var(--text)}
.v8-dir-cat>summary .v8-dir-blurb{grid-column:2;margin:0;font-size:13px;color:var(--v8-text-2);min-width:0}
.v8-dir-cat>.v8-dir-list{padding:0 12px 12px}
html[data-theme="light"] .v8-dir-n{color:#0F172A}
.v8-dir{grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr))}
@media(max-width:700px){
  .v8-dir{gap:8px}
  .v8-dir-cat>summary{padding:13px 14px;min-height:48px}
  .v8-dir-cat>summary h3{font-size:16px}
}

/* One related-tools system: category + "all tools" follow-on links */
.v8-related-more{display:flex;flex-wrap:wrap;gap:6px 20px;margin:12px 2px 0;font-size:13.5px;font-weight:700}
.v8-related-more a{color:#FCD34D;min-height:24px;display:inline-flex;align-items:center}
.v8-related-more a::after{content:"\00a0→"}
html[data-theme="light"] .v8-related-more a{color:#92400E}

/* "</> Embed a wheel": a secondary link in the tool toolbar (a generic custom-wheel builder) */
.wheel-col>.v8-embed-link{order:5;flex:0 0 auto;align-self:center}
.wheel-col>#spin-hint{order:6}
.v8-embed-link{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 13px;border-radius:999px;border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.05);color:rgba(255,255,255,.92);font:700 12.5px var(--font);white-space:nowrap}
.v8-embed-link:hover{background:rgba(255,255,255,.1);border-color:rgba(245,158,11,.55);color:var(--text)}
.v8-embed-ico{font:800 12px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#FCD34D}
html[data-theme="light"] .v8-embed-link{background:rgba(15,23,42,.04);border-color:rgba(15,23,42,.12);color:#0F172A}
html[data-theme="light"] .v8-embed-ico{color:#92400E}

@media(prefers-reduced-motion:reduce){
  .nav-item,.nav-chev::before,.nav-menu-bars,.nav-menu-bars::before,.nav-menu-bars::after,.v8-dir-cat>summary::after{transition:none}
}

/* v9.0 Stage 9 A11Y-SW-GEN-1: "Generate Sweepstake" is white on the amber gradient = 2.15:1 (AA 4.5:1). The same burnt-orange gradient as the v8 primary action. */
.sw-generate{background:linear-gradient(135deg,#B45309 0%,#C2410C 50%,#B91C1C 100%)}

/* v9.0 Stage 11A A11Y-STICKY-OBSCURE-1 (WCAG 2.2 SC 2.4.11 Focus Not Obscured): the site header is sticky (65 px). Without scroll-padding, a keyboard Tab / Shift+Tab stop could be scrolled to a
   position under it (reproduced in Chromium on the untouched Stage 10 tree: 1-7 stops per page on /, /prize-wheel/ and the guides; 0 with this rule). 84 px = the offset the existing anchors
   already used (an 80 px margin under the 65 px header) and the guides use. The two scroll-margin-top rules that duplicated that offset are neutralised so an in-page anchor
   (/#browse-wheels, #cat-*) does not land twice as far down: scroll-padding + scroll-margin ADD. */
html{scroll-padding-top:84px}
.browse-wheels-section,.v8-dir-cat{scroll-margin-top:0}

/* v9.0 Stage 11A PRINT-LEGAL-1: About, Contact, Privacy Policy and Terms are documents; the global print sheet (style.css) hides main>* so they printed a blank page (0 visible characters,
   reproduced in Chromium print emulation). Reveal the document and print it black on white; scoped to .legal-content. Tool pages are unchanged (they print generated results only, by design). */
@media print{
  main>.legal-content{display:block!important;max-width:none;margin:0;padding:0;color:#000;background:#fff}
  .legal-content h1,.legal-content h2,.legal-content h3,.legal-content p,.legal-content li,.legal-content strong,.legal-content em{color:#000!important}
  .legal-content a{color:#000!important;text-decoration:underline}
  .legal-content .back-link{display:none!important}
  .legal-content h1,.legal-content h2,.legal-content h3{break-after:avoid;page-break-after:avoid}
}

/* v9.0 Stage 11A MOB-7-1: iOS Safari zooms the page when a text-entry control whose computed font-size is under 16px receives focus. Measured on the untouched Stage 10 tree at 390 px (Chromium):
   31 of 76 pages carry 181 visible controls at 12.5-15 px (inputs 15, selects 15, textareas 14). One rule for phones and small tablets; !important is needed because the page CSS sets sizes by id.
   This fixes the CSS contract only - iOS behaviour itself is NOT verified on a physical iPhone. */
@media (max-width:768px){
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]):not([type=button]):not([type=submit]):not([type=reset]):not([type=image]),select,textarea{font-size:16px!important}
}

/* v9.0 Stage 11A PRINT-WC-FAINT-1: the World Cup sweepstake printout shows "Draw mode: ..." in the SCREEN amber (#F59E0B = 2.1:1 on white paper; browsers do not print backgrounds). Reproduced in Chromium print
   emulation in the dark theme (the light theme colour #92400E is 6.9:1 and was already fine); the Premier League page already prints the same line black through .plss-draw-mode. Print only; screen unchanged. */
@media print{
  .sw-draw-mode{color:#000!important}
}

/* BF05 P02-06: style.css / new-tools.css give the sports export toolbars display:flex, which beat the HTML hidden attribute,
   so their Copy / Print / CSV / Reset buttons stayed visible and in the Tab order with no result (the export guards refused).
   Hidden must mean hidden. Premier League (P02-06) + the same conflict found by the BF05 sweep on five more pages. */
.plss-actions[hidden],.nfl-actions[hidden],.nba-actions[hidden],.fd-actions[hidden],.fbd-actions[hidden],.sw-actions[hidden]{display:none}

/* BF05 N02 / N03: multi-wheel.css gives .mw-result display:flex and household-tools.css gives .hh-field display:flex, which beat
   the HTML hidden attribute: an empty "Result" box showed on every Multi Wheel before any spin and after a shuffle, and the Energy
   cost tool showed the input fields of the usage mode not chosen. Hidden must mean hidden. */
.mw-result[hidden],.hh-field[hidden]{display:none}
