/* The free tools under /english/: one stylesheet for the frame every tool page
   shares (header, category tabs, breadcrumb, related tools, footer), the layout
   pieces a page is built from (two-column hero and sections, card grids,
   category panels, one purple band) and the shared components (microphone
   screen, result card, email box). Usage and examples: english/FRAME.md.

   Rules this file keeps, and every page under /english/ keeps with it:
   - Solid colour only. No gradients, glows or fades, anywhere.
   - Colour comes from big solid surfaces: a white page, light category bands
     and panels, and one saturated purple for buttons and the one full-width
     band a page may have.
   - Sentence case. Nothing is set in capitals with text-transform.
   - No inline styles: the /english/* Content-Security-Policy forbids them.
   - Page-specific rules live in the page's own stylesheet, not here. */

@font-face{font-family:"Manrope";font-style:normal;font-weight:500 800;font-display:swap;src:url(/assets/fonts/manrope-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Manrope";font-style:normal;font-weight:500 800;font-display:swap;src:url(/assets/fonts/manrope-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/inter-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/inter-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root{
  /* the home page's tokens */
  --purple:#7E22FF; --purple-hover:#6D18DF; --purple-deep:#5B10CC;
  --purple-14:rgba(126,34,255,.14); --purple-10:rgba(126,34,255,.10);
  --ink:#17121d; --ink-soft:#4a4053; --muted:#6d6377; --muted-2:#8b8194;
  --line:#ece9ef; --line-strong:#dcd6e2; --surface:#fbfafd; --tint:#f4edff;
  --field:#f4f4f5;          /* the grey fill of an input, a stepper, a segment track */
  --ok:#047857; --ok-bg:#dcfce7; --bad:#b4232c; --bad-bg:#fee2e2;
  --font-display:"Manrope",ui-sans-serif,system-ui,sans-serif;
  --font-body:"Inter",ui-sans-serif,system-ui,sans-serif;
  --ease-out:cubic-bezier(.23,1,.32,1);
  --r-lg:22px; --r-md:14px; --r-sm:10px;
  --r-card:16px; --r-panel:24px;
  --space-section:clamp(64px,8vw,96px);
  --top-h:64px;

  /* Category colour pairs (taken from the home page's practice panels):
     a light surface for bands, panels and icon tiles, and a dark ink for text,
     icons and lines on it. --*-btn is a button colour on that surface. */
  --tests-bg:#f4edff;    --tests-ink:#5B10CC;    --tests-btn:#7E22FF;
  --exam-bg:#d4ddff;     --exam-ink:#3730a3;     --exam-btn:#3730a3;
  --practice-bg:#bcf7db; --practice-ink:#065f46; --practice-btn:#047857;
  --words-bg:#fed6d6;    --words-ink:#991b1b;    --words-btn:#991b1b;

  /* The current category. The frame sets data-cat on <body>; any element can
     set its own data-cat to switch the three tokens below for its subtree. */
  --cat-bg:var(--tests-bg); --cat-ink:var(--tests-ink); --cat-btn:var(--tests-btn);
}
[data-cat="tests"]{--cat-bg:var(--tests-bg);--cat-ink:var(--tests-ink);--cat-btn:var(--tests-btn)}
[data-cat="exam"]{--cat-bg:var(--exam-bg);--cat-ink:var(--exam-ink);--cat-btn:var(--exam-btn)}
[data-cat="practice"]{--cat-bg:var(--practice-bg);--cat-ink:var(--practice-ink);--cat-btn:var(--practice-btn)}
[data-cat="words"]{--cat-bg:var(--words-bg);--cat-ink:var(--words-ink);--cat-btn:var(--words-btn)}

/* ── Base ────────────────────────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--top-h) + 16px)}
html.tt-lock{overflow:hidden}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body.tt-body{margin:0;overflow-x:clip;background:#fff;color:var(--ink-soft);font:400 16px/1.6 var(--font-body);-webkit-font-smoothing:antialiased}
:where(.tt-body) :where(h1,h2,h3,h4){margin:0;color:var(--ink);font-family:var(--font-display);text-wrap:balance}
:where(.tt-body) p{margin:0;text-wrap:pretty}
:where(.tt-body) :where(ul,ol){margin:0;padding:0;list-style:none}
:where(.tt-body) a{color:inherit}
:where(.tt-body) :where(button,input,select,textarea){font:inherit}
.tt-body :focus-visible{outline:2px solid var(--purple);outline-offset:3px}
.tt-body :where(a:not([class]),label,.faq summary):focus-visible{border-radius:4px}
.tt-body [hidden]{display:none!important}
.tt-wrap{width:min(1152px,100%);margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.tt-narrow{width:min(780px,100%)}
.tt-skip{position:absolute;left:12px;top:-60px;z-index:60;padding:10px 16px;border-radius:12px;background:#fff;color:var(--ink);font-weight:600;text-decoration:none;box-shadow:0 0 0 1px var(--line)}
.tt-skip:focus{top:12px}
.tt-vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Line icons from /english/shared/icons.svg: <svg class="tt-i"><use href="…#name"/></svg> */
.tt-i{display:block;flex:none;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tt-i-sm{width:18px;height:18px}
.tt-i-lg{width:32px;height:32px}

/* ── Header (frame) ──────────────────────────────────────────────────────── */
.tt-top{position:sticky;top:env(safe-area-inset-top,0px);z-index:50;height:var(--top-h);background:#fff;border-bottom:1px solid var(--line)}
.tt-top-row{height:100%;display:flex;align-items:center;gap:24px}
.tt-brand{flex:none;display:inline-flex;align-items:center;gap:8px;color:var(--purple)!important;text-decoration:none}
.tt-brand img{display:block;width:32px;height:32px;object-fit:contain}
.tt-brand span{font:600 22px/1 var(--font-body);letter-spacing:-.5px}
.tt-nav{flex:1;min-width:0;display:flex;justify-content:center}
.tt-nav-list{display:flex;align-items:center;gap:4px}
.tt-nav-list>li{position:relative}
.tt-nav-link,.tt-dd>summary{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 12px;border-radius:999px;color:var(--ink);font:500 15px/1 var(--font-body);text-decoration:none;white-space:nowrap;cursor:pointer;transition:color .18s,background-color .18s}
.tt-dd>summary{list-style:none}
.tt-dd>summary::-webkit-details-marker{display:none}
.tt-dd>summary .tt-i{width:16px;height:16px;color:var(--muted);transition:transform .2s var(--ease-out)}
.tt-dd[open]>summary{color:var(--purple);background:var(--tint)}
.tt-dd[open]>summary .tt-i{transform:rotate(180deg);color:var(--purple)}
.tt-nav-link[aria-current]{color:var(--purple)}
.tt-dd[data-current]>summary{font-weight:600}
.tt-dd>summary:focus-visible,.tt-nav-link:focus-visible{border-radius:999px}
@media (hover:hover) and (pointer:fine){.tt-nav-link:hover,.tt-dd>summary:hover{color:var(--purple)}}
.tt-top-end{flex:none;margin-left:auto;display:flex;align-items:center;gap:8px}
.tt-nav+.tt-top-end{margin-left:0}

/* A menu: the category's tools with icon, name and one line each */
.tt-dd-panel{position:absolute;top:calc(100% + 10px);left:50%;z-index:60;width:400px;padding:10px;transform:translateX(-50%);background:#fff;border:1px solid var(--line-strong);border-radius:var(--r-card);box-shadow:0 18px 46px rgba(33,19,41,.12)}
.tt-dd-list{display:grid;gap:2px}
.tt-dd-item{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:center;padding:10px;border-radius:12px;text-decoration:none}
.tt-dd-item b{display:block;color:var(--ink);font:600 15px/1.3 var(--font-body)}
.tt-dd-item small{display:block;margin-top:2px;color:var(--muted);font-size:13px;line-height:1.4}
.tt-dd-item[aria-current]{background:var(--cat-bg)}
@media (hover:hover) and (pointer:fine){.tt-dd-item:hover{background:var(--surface)}.tt-dd-item[aria-current]:hover{background:var(--cat-bg)}}
.tt-dd-all{display:flex;align-items:center;justify-content:space-between;margin-top:6px;padding:12px 10px 4px;border-top:1px solid var(--line);color:var(--purple);font:600 14px/1 var(--font-body);text-decoration:none}
.tt-dd-all .tt-i{width:18px;height:18px}

/* The phone menu: a full sheet under the bar */
.tt-mnav{display:none}
.tt-mnav>summary{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border-radius:999px;color:var(--ink);font:600 14px/1 var(--font-body);list-style:none;cursor:pointer;box-shadow:inset 0 0 0 1px var(--line-strong)}
.tt-mnav>summary::-webkit-details-marker{display:none}
.tt-mnav>summary .tt-i{width:20px;height:20px}
.tt-mnav .tt-mnav-x{display:none}
.tt-mnav[open] .tt-mnav-x{display:block}
.tt-mnav[open] .tt-mnav-burger{display:none}
.tt-mnav-panel{position:fixed;left:0;right:0;top:calc(var(--top-h) + env(safe-area-inset-top,0px));bottom:0;z-index:55;overflow-y:auto;overscroll-behavior:contain;padding:20px max(16px,env(safe-area-inset-left,0px)) calc(32px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--line)}
.tt-mnav-group+.tt-mnav-group{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}
.tt-mnav-h{display:flex;align-items:center;gap:10px;margin-bottom:6px;color:var(--ink);font:700 16px/1.2 var(--font-display);text-decoration:none}
.tt-mnav-h .tt-ico{width:32px;height:32px;border-radius:10px}
.tt-mnav-h .tt-ico .tt-i{width:18px;height:18px}
.tt-mnav-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:0 16px}
.tt-mnav-list a{display:flex;align-items:center;min-height:44px;padding:0 0 0 42px;color:var(--ink-soft);font-size:15px;text-decoration:none}
.tt-mnav-list a[aria-current]{color:var(--cat-ink);font-weight:600}
.tt-mnav-foot{display:grid;gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.tt-mnav-foot .tt-pill{width:100%}

@media (max-width:1023px){
  .tt-nav{display:none}
  .tt-mnav{display:block}
}
@media (max-width:420px){
  :root{--top-h:60px}
  .tt-top-row{gap:12px}
  .tt-brand img{width:28px;height:28px}
  .tt-brand span{font-size:20px}
  .tt-top-end .tt-pill-sm{padding:0 12px;font-size:13px}
  .tt-mnav>summary{padding:0 10px}
  .tt-mnav>summary span{display:none}
}

/* ── Category tabs (frame): the tools of this page's category ─────────────── */
.tt-tabs{position:relative;z-index:1;background:#fff;border-bottom:1px solid var(--line)}
.tt-tabs-row{display:flex;align-items:stretch;gap:28px;min-height:52px;overflow-x:auto;scrollbar-width:none}
.tt-tabs-row::-webkit-scrollbar{display:none}
.tt-tabs a{position:relative;display:inline-flex;align-items:center;flex:none;color:var(--ink-soft);font:500 14px/1.2 var(--font-body);text-decoration:none;white-space:nowrap}
.tt-tabs a::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:transparent}
.tt-tabs a[aria-current]{color:var(--ink);font-weight:600}
.tt-tabs a[aria-current]::after{background:var(--cat-ink)}
@media (hover:hover) and (pointer:fine){.tt-tabs a:hover{color:var(--ink)}}
.tt-tabs .tt-tabs-cat{gap:8px;color:var(--cat-ink);font-weight:700}
.tt-tabs .tt-tabs-cat .tt-ico{width:28px;height:28px;border-radius:8px}
.tt-tabs .tt-tabs-cat .tt-ico .tt-i{width:16px;height:16px}
.tt-tabs .tt-tabs-cat::after{display:none}
.tt-tabs-sep{flex:none;align-self:center;width:1px;height:20px;background:var(--line-strong)}
@media (max-width:767px){.tt-tabs-row{gap:22px;min-height:48px}.tt-tabs a{font-size:13.5px}}

/* ── Breadcrumb (frame) ──────────────────────────────────────────────────── */
.tt-crumbbar{padding-top:20px}
.tt-bc{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:14px;line-height:1.4;color:var(--muted)}
.tt-bc li{display:inline-flex;align-items:center;gap:8px;min-width:0}
.tt-bc li+li::before{content:"›";color:var(--muted);font-size:16px;line-height:1}
.tt-bc a{color:var(--ink-soft);text-decoration:none;text-underline-offset:3px}
.tt-bc [aria-current]{color:var(--ink);font-weight:500}
@media (hover:hover){.tt-bc a:hover{color:var(--purple);text-decoration:underline}}
.tt-crumbbar:has(+ main>.tt-sky:first-child)+main>.tt-sky:first-child{padding-top:clamp(20px,3vw,40px)}

/* The old in-hero breadcrumb (pages that have not moved to the frame yet) */
.tt-crumbs{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;font-size:13px;color:var(--muted);margin-bottom:22px}
.tt-crumbs li+li::before{content:"›";margin-right:6px}
.tt-crumbs a{text-decoration:none}

/* ── Pills (buttons) ─────────────────────────────────────────────────────── */
.tt-pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 26px;border:0;border-radius:999px;background:var(--purple);color:#fff!important;text-decoration:none;white-space:nowrap;font:600 15px/1 var(--font-body);cursor:pointer;transition:transform .16s var(--ease-out),background-color .2s,box-shadow .2s}
.tt-pill:active{transform:scale(.97)}
.tt-pill[disabled],.tt-pill[aria-disabled="true"]{background:var(--field);color:var(--muted)!important;cursor:default;transform:none}
@media (hover:hover) and (pointer:fine){.tt-pill:not([disabled]):hover{background:var(--purple-hover)}}
.tt-pill .tt-i{width:18px;height:18px}
.tt-pill-sm{min-height:38px;padding:0 16px;font-size:14px;font-weight:500}
.tt-pill-lg{min-height:56px;padding:0 32px;font-size:16px}
.tt-pill-wide{width:100%}
.tt-pill-ghost{background:transparent;color:var(--purple)!important;box-shadow:inset 0 0 0 1px var(--purple-14)}
@media (hover:hover) and (pointer:fine){.tt-pill-ghost:not([disabled]):hover{background:var(--purple-10)}}
.tt-pill-line{background:#fff;color:var(--ink)!important;box-shadow:inset 0 0 0 1px var(--line-strong)}
@media (hover:hover) and (pointer:fine){.tt-pill-line:not([disabled]):hover{background:var(--surface);box-shadow:inset 0 0 0 1px var(--ink-soft)}}
.tt-pill-white{background:#fff;color:var(--purple)!important}
@media (hover:hover) and (pointer:fine){.tt-pill-white:not([disabled]):hover{background:var(--tint)}}
.tt-pill-cat{background:var(--cat-btn)}
@media (hover:hover) and (pointer:fine){.tt-pill-cat:not([disabled]):hover{background:var(--cat-ink)}}
.tt-cta-row{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.tt-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.tt-link{display:inline-flex;align-items:center;gap:6px;color:var(--purple);font-weight:600;text-decoration:none;text-underline-offset:3px}
.tt-link .tt-i{width:18px;height:18px;transition:transform .2s var(--ease-out)}
@media (hover:hover){.tt-link:hover{text-decoration:underline}.tt-link:hover .tt-i{transform:translateX(3px)}}

/* ── Headline (the centred hero most pages still use) ────────────────────── */
.tt-hero{padding-block:clamp(36px,6vw,72px) clamp(44px,6vw,72px);text-align:center}
/* The hero sits on white: colour comes from panels, cards and the tool itself, never a tinted page top. */
.tt-sky{background:#fff}
main>.tt-band-cat:first-child{background:#fff}
.tt-h1{font-size:clamp(2.3rem,5.2vw,4.4rem);line-height:1;font-weight:700;letter-spacing:-.055em}
.tt-h1 em,.tt-title em{font-style:normal;color:var(--cat-ink)}
.tt-lede{max-width:56ch;margin:18px auto 0!important;color:var(--ink-soft);font-size:clamp(1rem,1.3vw,1.12rem)}
.tt-facts{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 26px;margin-top:20px!important;font-size:14px;color:var(--ink-soft)}
.tt-facts li{display:inline-flex;align-items:center;gap:8px}

/* ── Layout primitives ───────────────────────────────────────────────────── */
/* A section: generous vertical rhythm, no hairline. --tt-block-pad overrides. */
.tt-block{padding-block:var(--space-section)}
.tt-block-sm{padding-block:clamp(40px,5vw,56px)}
.tt-band-cat{background:var(--cat-bg)}          /* a full-width light band in the category colour */
.tt-band-soft{background:var(--surface)}

/* Two-column hero: copy on the left (5/12), the tool itself on the right (7/12). */
.tt-hero2{padding-block:clamp(32px,5vw,64px) clamp(48px,6vw,80px)}
.tt-hero2-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(32px,5vw,64px);align-items:center}
.tt-hero2-copy{min-width:0}
.tt-hero2-copy .tt-bc{margin-bottom:20px}
.tt-hero2-tool{min-width:0}
.tt-title{font-size:clamp(2.25rem,4.4vw,3.5rem);line-height:1.04;font-weight:700;letter-spacing:-.05em}
.tt-hero2-copy .tt-lede,.tt-lede-left{max-width:52ch;margin:18px 0 0!important}
.tt-hero2-copy .tt-actions{margin-top:28px}
.tt-hero2-copy .tt-facts-row{grid-template-columns:repeat(2,minmax(0,1fr));max-width:480px}
@media (max-width:1023px){.tt-hero2-grid{grid-template-columns:1fr;gap:28px}}

/* Two-column section: heading and short lede on the left, content on the right. */
.tt-cols{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(28px,5vw,72px);align-items:start}
.tt-cols-head{position:sticky;top:calc(var(--top-h) + 32px)}
.tt-cols-head .tt-sub{margin-top:14px!important}
.tt-cols-head .tt-actions{margin-top:24px}
.tt-cols-even{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:899px){.tt-cols,.tt-cols-even{grid-template-columns:1fr}.tt-cols-head{position:static}}

/* Card grids: 3 across on a desktop, 2 on a tablet, 1 on a phone. */
.tt-grid{display:grid;gap:24px}
.tt-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.tt-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tt-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1023px){.tt-grid-3,.tt-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:639px){.tt-grid-2,.tt-grid-3,.tt-grid-4{grid-template-columns:1fr;gap:12px}}
/* .tt-grid-fill: an odd last card takes the whole row instead of sitting alone. */
@media (min-width:640px){.tt-grid-2.tt-grid-fill>:last-child:nth-child(odd){grid-column:1/-1}}

/* A category panel: a solid light box, radius 24. */
.tt-panel{padding:clamp(24px,4vw,40px);border-radius:var(--r-panel);background:var(--cat-bg);color:var(--ink)}
.tt-panel-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px 18px;align-items:center;margin-bottom:28px}
.tt-panel-head .tt-ico{width:52px;height:52px;border-radius:14px;background:#fff}
.tt-panel-head h2,.tt-panel-head h3{font-size:clamp(1.5rem,2.6vw,2rem);line-height:1.1;font-weight:700;letter-spacing:-.045em}
.tt-panel-head p{grid-column:2;max-width:60ch;color:var(--ink-soft)}
.tt-panel-head .tt-link{grid-column:3;grid-row:1/span 2;color:var(--cat-ink)}
@media (max-width:767px){
  .tt-panel{border-radius:20px}
  .tt-panel-head{grid-template-columns:auto minmax(0,1fr)}
  .tt-panel-head p{grid-column:1/-1}
  .tt-panel-head .tt-link{grid-column:1/-1;grid-row:auto}
}
/* .tt-panel-split: the heading in a left column, the cards in two columns beside it. */
.tt-panel-split{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:28px clamp(28px,4vw,56px);align-items:start}
.tt-panel-split .tt-panel-head{display:grid;grid-template-columns:1fr;gap:14px;margin:0;position:sticky;top:calc(var(--top-h) + 32px)}
.tt-panel-split .tt-panel-head p,.tt-panel-split .tt-panel-head .tt-link{grid-column:auto;grid-row:auto}
.tt-panel-split .tt-panel-head h2,.tt-panel-split .tt-panel-head h3{font-size:clamp(1.6rem,2.8vw,2.25rem)}
@media (max-width:899px){
  .tt-panel-split{grid-template-columns:1fr}
  .tt-panel-split .tt-panel-head{position:static;grid-template-columns:auto minmax(0,1fr);gap:8px 16px}
  .tt-panel-split .tt-panel-head p{grid-column:1/-1}
}

/* The one full-width saturated band a page may have (usually its closing call). */
.tt-band{padding-block:var(--space-section);background:var(--purple);color:#fff}
.tt-band :where(h2,h3){color:#fff}
.tt-band p{color:rgba(255,255,255,.88)}
.tt-band-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:32px 64px;align-items:center}
.tt-band-grid .tt-actions{justify-content:flex-end}
.tt-band .tt-h2{font-size:clamp(1.9rem,3.6vw,2.9rem);font-weight:700}
.tt-band .tt-sub{color:rgba(255,255,255,.88)}
.tt-band-art{display:flex;justify-content:flex-end}
.tt-band :focus-visible{outline-color:#fff}
@media (max-width:899px){.tt-band-grid{grid-template-columns:1fr}.tt-band-grid .tt-actions{justify-content:flex-start}}

/* Small type pieces */
.tt-eyebrow{display:block;margin-bottom:12px!important;color:var(--cat-ink);font:600 15px/1.3 var(--font-body)}
.tt-meta{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:13px;line-height:1.3}
.tt-meta .tt-i{width:16px;height:16px}

/* An icon tile: a category-coloured square holding a line icon. */
.tt-ico{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:12px;background:var(--cat-bg);color:var(--cat-ink)}
.tt-ico-lg{width:56px;height:56px;border-radius:16px}
.tt-ico-lg .tt-i{width:28px;height:28px}
.tt-ico-white{background:#fff}

/* A tool card: white, the whole card a link. Used on the hub, in menus' big
   sibling (the related block) and anywhere a page points at another tool. */
.tt-tool{position:relative;display:grid;grid-template-rows:auto auto 1fr auto;gap:8px;height:100%;padding:24px;border:1px solid var(--line);border-radius:var(--r-card);background:#fff;color:var(--ink-soft);text-decoration:none;transition:border-color .2s,transform .2s var(--ease-out)}
.tt-tool .tt-ico{margin-bottom:10px}
.tt-tool h3,.tt-tool-name{color:var(--ink);font:600 19px/1.25 var(--font-display);letter-spacing:-.02em}
.tt-tool p{font-size:15px;line-height:1.5}
.tt-tool .tt-meta{margin-top:6px}
.tt-tool-go{position:absolute;top:24px;right:22px;color:var(--muted);transition:color .2s,transform .2s var(--ease-out)}
.tt-panel .tt-tool{border-color:transparent}
@media (hover:hover) and (pointer:fine){
  .tt-tool:hover{border-color:var(--cat-ink);transform:translateY(-2px)}
  .tt-tool:hover .tt-tool-go{color:var(--cat-ink);transform:translateX(3px)}
}
/* On a phone a tool card is a compact row: icon on the left, words beside it. */
@media (max-width:639px){
  .tt-tool{grid-template-columns:44px minmax(0,1fr);grid-template-rows:none;gap:2px 14px;padding:16px 40px 16px 16px;align-items:start}
  .tt-tool .tt-ico{grid-row:1/span 3;margin:0}
  .tt-tool h3,.tt-tool-name{font-size:17px}
  .tt-tool p{font-size:14.5px}
  .tt-tool .tt-meta{margin-top:4px}
  .tt-tool-go{top:18px;right:14px}
}
/* Compact row version: icon on the left (the hub's "Start here" card). */
.tt-tool-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 16px;align-items:center;padding:16px 18px;border-radius:var(--r-card);background:#fff;color:var(--ink-soft);text-decoration:none;border:1px solid var(--line);transition:border-color .2s}
.tt-tool-row .tt-ico{grid-row:1/span 2}
.tt-tool-row b{color:var(--ink);font:600 17px/1.25 var(--font-display);letter-spacing:-.02em}
.tt-tool-row small{grid-column:2;font-size:14px;color:var(--muted)}
.tt-tool-row .tt-i-go{grid-column:3;grid-row:1/span 2;color:var(--muted)}
@media (hover:hover) and (pointer:fine){.tt-tool-row:hover{border-color:var(--cat-ink)}.tt-tool-row:hover .tt-i-go{color:var(--cat-ink)}}

/* Goal chips: a coloured art icon and a short goal. */
.tt-chips{display:flex;flex-wrap:wrap;gap:10px}
.tt-chip{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:6px 18px 6px 8px;border-radius:999px;background:#fff;color:var(--ink);font:600 15px/1.2 var(--font-body);text-decoration:none;box-shadow:inset 0 0 0 1px var(--line-strong);transition:box-shadow .2s,transform .16s var(--ease-out)}
.tt-chip img{width:36px;height:36px;flex:none}
.tt-chip:active{transform:scale(.98)}
@media (hover:hover) and (pointer:fine){.tt-chip:hover{box-shadow:inset 0 0 0 2px var(--purple)}}

/* A row of facts with line icons (the level test redesign's fact row). */
.tt-facts-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 28px;margin-top:32px!important}
.tt-fact{display:flex;align-items:center;gap:14px;min-width:0;color:var(--ink);font:600 15px/1.35 var(--font-display);letter-spacing:-.01em}
.tt-fact .tt-i{width:36px;height:36px;stroke-width:1.75;color:var(--ink)}
.tt-fact strong{display:block;font-size:20px;font-weight:800;letter-spacing:-.02em}
@media (max-width:899px){.tt-facts-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:640px) and (max-width:1023px){.tt-hero2-copy .tt-facts-row{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}}
@media (max-width:420px){.tt-fact{gap:10px;font-size:14px}.tt-fact .tt-i{width:28px;height:28px}.tt-fact strong{font-size:17px}}

/* Columns of plain links (the hub's popular pages). */
.tt-linkcols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
.tt-linkcols h3{margin-bottom:14px;font:700 17px/1.3 var(--font-display);letter-spacing:-.02em}
.tt-linkcols ul{display:grid;gap:10px}
.tt-linkcols a{color:var(--ink-soft);text-decoration:none;text-underline-offset:3px}
@media (hover:hover){.tt-linkcols a:hover{color:var(--purple);text-decoration:underline}}
@media (max-width:1023px){.tt-linkcols{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:479px){.tt-linkcols{grid-template-columns:1fr;gap:28px}}

/* ── Sections (the older pieces most pages still use) ─────────────────────── */
.tt-section{padding-block:clamp(48px,7vw,88px);border-top:1px solid var(--line)}
.tt-tint{background:var(--surface)}
.tt-h2{font-size:clamp(1.6rem,3vw,2.25rem);line-height:1.12;font-weight:600;letter-spacing:-.045em;font-optical-sizing:auto}
.tt-sub{max-width:62ch;margin-top:12px!important;color:var(--ink-soft)}
.tt-sub a{color:var(--purple);text-underline-offset:3px}
.tt-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:clamp(24px,5vw,64px);align-items:center}
@media (max-width:860px){.tt-split{grid-template-columns:1fr}}

/* FAQ: plain rows. The plus is two bars, so no gradient is needed to draw it. */
.faq{margin-top:28px;border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{position:relative;display:flex;align-items:center;gap:16px;padding:20px 36px 20px 0;cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary h3{font-size:17px;font-weight:600;letter-spacing:-.02em}
.faq summary::before,.faq summary::after{content:"";position:absolute;right:4px;top:50%;width:14px;height:2px;margin-top:-1px;border-radius:2px;background:var(--ink);transition:transform .2s var(--ease-out)}
.faq summary::after{transform:rotate(90deg)}
.faq details[open] summary::before{transform:rotate(45deg)}
.faq details[open] summary::after{transform:rotate(135deg)}
.faq details p{padding:0 0 22px;color:var(--ink-soft);max-width:66ch}

/* Closing call */
.tt-end-box{display:grid;justify-items:center;text-align:center;gap:6px}
.tt-end-box img{margin-bottom:10px}
.tt-end-box .tt-cta-row{margin-top:22px}

/* Topic cards: the home page's hero cards, fanned three at a time. The label
   sits on a solid ink strip (it was a dark fade). */
.tt-cards{display:flex;justify-content:center;align-items:flex-end;margin:0 auto 18px;padding-top:10px}
.tt-card{position:relative;display:block;width:132px;aspect-ratio:3/4;overflow:hidden;border:4px solid #fff;border-radius:24px;background:#fff;
  box-shadow:0 0 0 1px rgba(0,0,0,.2),0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);transition:translate .3s ease-out,box-shadow .3s ease-out}
.tt-card:nth-child(1){rotate:-8deg;translate:8px 10px}
.tt-card:nth-child(2){z-index:1;width:148px}
.tt-card:nth-child(3){rotate:8deg;translate:-2px 10px}
@media (hover:hover) and (pointer:fine){.tt-card:hover{translate:0 -12px;box-shadow:0 0 0 1px rgba(0,0,0,.2),0 25px 50px -12px rgba(0,0,0,.25)}}
.tt-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tt-card span{position:absolute;z-index:1;left:0;right:0;bottom:0;padding:8px 10px 9px;background:var(--ink);color:#fff;text-align:left}
.tt-card small{display:block;font-size:.66rem;font-weight:600;color:rgba(255,255,255,.82)}
.tt-card b{display:block;margin-top:1px;font:800 1rem/1.05 var(--font-display);letter-spacing:-.03em}
@media (max-width:520px){
  .tt-card{width:96px;border-width:3px;border-radius:16px}
  .tt-card:nth-child(2){width:108px}
  .tt-card span{padding:6px 7px}
  .tt-card small{display:none}
  .tt-card b{font-size:.76rem;letter-spacing:-.02em}
}

/* The faceted globe on the test pages (english/globe.js draws it) */
.tt-globe{width:min(100%,360px);aspect-ratio:356/183;margin:0 auto 6px}
.tt-globe-svg{display:block;width:100%;height:auto}
.tt-globe .pwin-g-flag{opacity:0;transition:opacity .5s ease}
.tt-globe .pwin-landed .pwin-g-flag{opacity:1}
@media (max-width:520px){.tt-globe{width:min(100%,250px)}}

/* ── Related tools (frame) ───────────────────────────────────────────────── */
.tt-related{padding-block:var(--space-section);border-top:1px solid var(--line);background:#fff}
.tt-related-head{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:12px 24px;margin-bottom:32px}

/* ── Footer (frame): five link columns on solid purple ───────────────────── */
.tt-foot{background:var(--purple);color:#fff;padding-block:clamp(56px,7vw,88px) calc(28px + env(safe-area-inset-bottom,0px))}
.tt-foot a{color:rgba(255,255,255,.86);text-decoration:none;text-underline-offset:4px}
@media (hover:hover){.tt-foot a:hover{color:#fff;text-decoration:underline}}
.tt-foot :focus-visible{outline-color:#fff}
.tt-foot-grid{display:grid;grid-template-columns:minmax(0,1.3fr) repeat(5,minmax(0,1fr));gap:40px 32px}
.tt-foot-brand{display:grid;align-content:start;justify-items:start;gap:16px}
.tt-foot-brand .tt-brand{color:#fff!important}
.tt-foot-brand .tt-brand img{filter:brightness(0) invert(1)}
.tt-foot-brand p{max-width:30ch;color:rgba(255,255,255,.86);font-size:15px}
.tt-foot-h{margin-bottom:16px!important;color:#fff!important;font:700 15px/1.3 var(--font-body)!important;letter-spacing:0}
.tt-foot-h a{color:#fff}
.tt-foot ul{display:grid;gap:10px;font-size:14.5px;line-height:1.4}
.tt-foot-base{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 24px;margin-top:clamp(40px,5vw,64px);padding-top:20px;border-top:1px solid rgba(255,255,255,.24);font-size:13.5px;color:rgba(255,255,255,.78)}
@media (max-width:1023px){.tt-foot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tt-foot-brand{grid-column:1/-1}}
@media (max-width:599px){.tt-foot-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 20px}}

/* ── Result card (shared/result-cta.js) ──────────────────────────────────── */
.tt-result-cta{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px 40px;align-items:center;padding:clamp(24px,4vw,40px);border-radius:var(--r-panel);background:var(--purple);color:#fff;overflow:hidden}
.tt-result-cta h3{color:#fff;font:700 clamp(1.4rem,2.6vw,1.9rem)/1.12 var(--font-display);letter-spacing:-.04em}
.tt-result-cta p{margin-top:10px!important;color:rgba(255,255,255,.88);max-width:46ch}
.tt-result-cta .tt-eyebrow{color:#fff;opacity:.88;margin-bottom:8px!important}
.tt-result-cta .tt-actions{margin-top:22px}
.tt-result-cta :focus-visible{outline-color:#fff}
.tt-result-fan{display:flex;align-items:flex-end;padding:8px 12px 0}
.tt-result-fan img{display:block;width:96px;height:auto;aspect-ratio:3/4;object-fit:cover;border:4px solid #fff;border-radius:18px;background:#fff}
.tt-result-fan img:nth-child(1){rotate:-8deg;translate:10px 8px}
.tt-result-fan img:nth-child(2){position:relative;z-index:1;width:112px}
.tt-result-fan img:nth-child(3){rotate:8deg;translate:-10px 8px}
@media (max-width:639px){.tt-result-cta{grid-template-columns:1fr}.tt-result-fan{order:-1;justify-content:center}.tt-result-fan img{width:76px}.tt-result-fan img:nth-child(2){width:88px}}

/* ── Email box (shared/email-capture.js): only after a result ────────────── */
.tt-email{padding:clamp(22px,3vw,32px);border:1px solid var(--line-strong);border-radius:var(--r-card);background:#fff}
.tt-email-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 16px;align-items:center;margin-bottom:18px}
.tt-email-head .tt-ico{grid-row:1/span 2;background:var(--tint);color:var(--purple)}
.tt-email-head h3{font:700 19px/1.25 var(--font-display);letter-spacing:-.02em}
.tt-email-head p{font-size:15px;color:var(--ink-soft)}
.tt-email-row{display:flex;gap:10px}
.tt-email-row input{flex:1;min-width:0;height:52px;padding:0 18px;border:1px solid var(--line-strong);border-radius:999px;background:#fff;color:var(--ink);font-size:16px}
.tt-email-row input:focus{outline:2px solid var(--purple);outline-offset:1px;border-color:transparent}
.tt-email-row .tt-pill{min-height:52px}
.tt-check{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;margin-top:14px;font-size:14.5px;line-height:1.45;color:var(--ink-soft);cursor:pointer}
.tt-check input{width:20px;height:20px;margin:1px 0 0;accent-color:var(--purple);cursor:pointer}
.tt-email-fine{margin-top:12px!important;font-size:13px;color:var(--muted)}
.tt-email-fine a{color:var(--ink-soft);text-underline-offset:3px}
.tt-email-msg{margin-top:12px!important;font-size:14.5px;font-weight:500}
.tt-email-msg.is-bad{color:var(--bad)}
.tt-email.is-done .tt-email-form{display:none}
.tt-email-done{display:none;align-items:center;gap:12px;color:var(--ok);font-weight:600}
.tt-email.is-done .tt-email-done{display:flex}
.tt-hp{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden}
@media (max-width:479px){.tt-email-row{flex-direction:column}.tt-email-row .tt-pill{width:100%}}

/* ── Microphone screen (shared/speech.js) ────────────────────────────────── */
.tt-mic{padding:clamp(22px,3vw,32px);border:1px solid var(--line-strong);border-radius:var(--r-card);background:#fff}
.tt-mic-ask{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 18px;align-items:start}
.tt-mic-ask .tt-ico{grid-row:1/span 3;width:56px;height:56px;border-radius:50%;background:var(--tint);color:var(--purple)}
.tt-mic-ask .tt-ico .tt-i{width:28px;height:28px}
.tt-mic h3{font:700 20px/1.25 var(--font-display);letter-spacing:-.02em}
.tt-mic-why{color:var(--ink-soft)}
.tt-mic-points{display:grid;gap:8px;margin-top:10px!important;font-size:14.5px}
.tt-mic-points li{display:flex;gap:10px;align-items:flex-start}
.tt-mic-points .tt-i{width:18px;height:18px;margin-top:2px;color:var(--ok)}
.tt-mic .tt-actions{margin-top:20px}
.tt-mic-note{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:12px;background:var(--bad-bg);color:#7f1d1d;font-size:15px}
.tt-mic-note .tt-i{width:20px;height:20px;margin-top:1px}
.tt-mic-note b{display:block;color:#7f1d1d}
.tt-mic-note.is-info{background:var(--tint);color:var(--ink)}
.tt-mic-note.is-info b{color:var(--ink)}
.tt-mic-live{display:grid;justify-items:center;gap:14px;text-align:center}
.tt-mic-btn{position:relative;display:grid;place-items:center;width:80px;height:80px;border:0;border-radius:50%;background:var(--purple);color:#fff;cursor:pointer;transition:transform .16s var(--ease-out),background-color .2s}
.tt-mic-btn .tt-i{width:34px;height:34px}
.tt-mic-btn:active{transform:scale(.96)}
.tt-mic-btn::after{content:"";position:absolute;inset:-8px;border-radius:50%;border:3px solid var(--purple);opacity:0}
.tt-mic[data-state="listening"] .tt-mic-btn{background:var(--bad)}
.tt-mic[data-state="listening"] .tt-mic-btn::after{border-color:var(--bad);animation:tt-ring 1.4s var(--ease-out) infinite}
@keyframes tt-ring{0%{transform:scale(.9);opacity:.7}100%{transform:scale(1.25);opacity:0}}
@media (prefers-reduced-motion:reduce){.tt-mic[data-state="listening"] .tt-mic-btn::after{animation:none;opacity:.6}}
.tt-mic-status{font-weight:600;color:var(--ink)}
.tt-mic-text{width:100%;min-height:64px;padding:14px 16px;border-radius:12px;background:var(--surface);border:1px solid var(--line);color:var(--ink);font-size:17px;line-height:1.45;text-align:left}
.tt-mic-text:empty::before{content:attr(data-empty);color:var(--muted)}
.tt-mic-text .is-interim{color:var(--muted)}
.tt-mic-type{display:grid;gap:10px;margin-top:16px}
.tt-mic[data-state="typing"] .tt-mic-type{margin-top:0}
.tt-mic-type textarea{width:100%;min-height:96px;padding:14px 16px;border:1px solid var(--line-strong);border-radius:12px;color:var(--ink);font-size:16px;line-height:1.45;resize:vertical}
.tt-mic-type textarea:focus{outline:2px solid var(--purple);outline-offset:1px;border-color:transparent}
.tt-mic-type .tt-actions{margin-top:0;justify-content:flex-end}
.tt-mic-switch{margin-top:14px!important;font-size:14px;color:var(--muted);text-align:center}
.tt-mic-switch button{padding:0;border:0;background:none;color:var(--purple);font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:3px}

/* ── Listen buttons (shared/audio.js): [data-audio] ───────────────────────── */
.tt-say{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--cat-bg);color:var(--cat-ink);cursor:pointer;transition:background-color .2s,color .2s,transform .16s var(--ease-out)}
.tt-say .tt-i{width:22px;height:22px}
.tt-say:active{transform:scale(.94)}
@media (hover:hover) and (pointer:fine){.tt-say:not([data-state]):hover{background:var(--cat-ink);color:#fff}}
.tt-band-cat .tt-say,.tt-panel .tt-say,.tt-sky .tt-say{background:#fff}
.tt-say[data-state="playing"]{background:var(--cat-btn);color:#fff}
.tt-say[data-state="loading"]{animation:tt-say-wait 1s ease-in-out infinite alternate}
@keyframes tt-say-wait{from{opacity:1}to{opacity:.45}}
@media (prefers-reduced-motion:reduce){.tt-say[data-state="loading"]{animation:none;opacity:.6}}
.tt-say-pill{display:inline-flex;align-items:center;gap:8px;width:auto;height:40px;padding:0 16px 0 10px;border-radius:999px;font:600 14px/1 var(--font-body)}
.tt-say-pill .tt-i{width:20px;height:20px}
.tt-say-sm{width:36px;height:36px}
.tt-say-sm .tt-i{width:18px;height:18px}

/* ── Print: the page, without the frame ──────────────────────────────────── */
@media print{
  .tt-top,.tt-tabs,.tt-crumbbar,.tt-related,.tt-foot,.tt-band,.tt-skip,.tt-email,.tt-result-cta{display:none!important}
}
