/* Torilo Tools: shared styles for every tool. Uses the theme's colours and shapes (base.css) with fallbacks.
   Layout: on a page that holds only a tool, the content widens to the site's 1160px column, in line with the
   page title. In an article, tools keep to the reading column. Layouts follow the width they're given. */
.tt{--tt-navy:var(--navy,#0B3954);--tt-navy-deep:var(--navy-deep,#072A3F);--tt-amber:var(--amber,#FFB128);--tt-amber-soft:var(--amber-soft,#FFF4DC);--tt-tint:var(--tint,#F5F8FF);--tt-line:var(--line,#E1E8F0);--tt-body:var(--body,#4A5A63);--tt-muted:var(--muted,#66757E);--tt-teal-soft:var(--teal-soft,#CBF2F7);--tt-coral-soft:var(--coral-soft,#FFEAE2);--tt-red:#B3261E;--tt-green:#1E7A4C;--tt-r:var(--r,16px);--tt-shadow:var(--shadow,0 10px 30px rgba(11,57,84,.10));
  color:var(--tt-body);font-size:17px;line-height:1.6;scroll-margin-top:120px;container:tt / inline-size}
.tt *{box-sizing:border-box}

/* A page that holds only a tool: full-width column, and no closing button row (tools have their own). */
.tt-page .basic .basic-wrap{max-width:var(--wrap,1160px)}
.tt-page .basic .entry{font-size:17px}
.tt-page .basic .sec-cta{display:none}

/* Page content styles add margins and underlines; tools set their own. */
.tt.tt h2,.tt.tt h3,.tt.tt h4,.tt.tt p,.tt.tt ul,.tt.tt ol,.tt.tt li{margin:0}
.tt.tt section{scroll-margin-top:120px}
.tt.tt section:not(.tt-card){padding:0} /* the theme pads every section for its own page layouts; cards keep their own padding */
.tt a.btn,.tt a.btn *,.tt a.tt-hub-card,.tt a.tt-hub-card *{text-decoration:none}
.tt .btn{white-space:normal;text-align:center}
.tt .btn:disabled{opacity:.5;cursor:not-allowed}
.tt .btn:focus-visible,.tt-opt:focus-within,.tt summary:focus-visible,.tt-hub-card:focus-visible,.tt-check:focus-within{outline:3px solid var(--tt-navy);outline-offset:3px}
.tt [tabindex="-1"]:focus{outline:none}
.tt .btn-small{min-height:42px;padding:0 18px;font-size:14px}

.tt-card{background:#fff;border:1px solid var(--tt-line);border-radius:var(--tt-r);box-shadow:var(--tt-shadow);padding:clamp(22px,4vw,44px);display:grid;grid-template-columns:minmax(0,1fr);gap:22px;min-width:0}
/* Cards and columns never grow wider than their space: wide tables and code scroll inside their own box. */
.tt-calc > *,.tt-result > *,.tt-top > *,.tt-guide-body > *{min-width:0}
.tt .tt-fields > *,.tt-checks > *{min-width:0}
.tt-days-grid{width:100%}
.tt-eyebrow{font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--tt-muted)}
.tt .tt-title{font-family:Sora,system-ui,sans-serif;font-weight:800;font-size:clamp(28px,3.8vw,42px);line-height:1.12;color:var(--tt-navy);text-wrap:balance}
.tt .tt-h{font-family:Sora,system-ui,sans-serif;font-weight:700;font-size:21px;line-height:1.3;color:var(--tt-navy)}
.tt .tt-h4{font-family:Sora,system-ui,sans-serif;font-weight:700;font-size:17px;color:var(--tt-navy)}
.tt .tt-lede{font-size:18px;max-width:64ch}
.tt .tt-note{font-size:15px;color:var(--tt-muted)}
.tt-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.tt-boot{max-width:880px}

/* Start card */
.tt-intro{max-width:880px}
.tt .tt-points{padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:10px 28px}
.tt .tt-points li{position:relative;padding-left:28px;color:var(--tt-navy);font-weight:500}
.tt-points li::before{content:"";position:absolute;left:4px;top:.45em;width:13px;height:7px;border-left:2.5px solid var(--tt-navy);border-bottom:2.5px solid var(--tt-navy);transform:rotate(-45deg)}

/* Questions */
.tt-q{gap:26px}
.tt-progress{display:grid;gap:10px}
.tt-bar{height:8px;border-radius:999px;background:var(--tt-tint);border:1px solid var(--tt-line);overflow:hidden}
.tt-bar i{display:block;height:100%;background:var(--tt-navy);border-radius:999px;transition:width .25s}
.tt fieldset{border:0;margin:0;padding:0;min-width:0}
.tt legend{padding:0;margin:0 0 20px;font-family:Sora,system-ui,sans-serif;font-weight:700;font-size:clamp(22px,3vw,30px);line-height:1.25;color:var(--tt-navy);text-wrap:balance}
.tt .tt-q-hint{margin:-10px 0 18px}
.tt-show{margin:0 0 20px;padding:18px 20px;border-radius:14px;background:var(--tt-tint);border:1px solid var(--tt-line);white-space:pre-wrap;font-size:16px;line-height:1.6;color:#1f2a30}
.tt .tt-show-label{font-size:12.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--tt-muted);margin-bottom:6px}
.tt-code{margin:0 0 20px;padding:18px 20px;border-radius:14px;background:#0B2230;color:#E6F1F7;font:15px/1.6 "JetBrains Mono",Consolas,monospace;overflow-x:auto;white-space:pre}
.tt-opts{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.tt-opts-compact{grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr))}
.tt-opt{display:flex;align-items:flex-start;gap:14px;padding:18px 20px;border:1.5px solid var(--tt-line);border-radius:14px;background:#fff;color:var(--tt-navy);font-weight:500;font-size:17px;line-height:1.45;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s;min-width:0}
.tt-opt:hover{border-color:var(--tt-navy);box-shadow:0 4px 14px rgba(11,57,84,.08)}
.tt-opt input{flex:none;width:20px;height:20px;margin:1px 0 0;accent-color:var(--tt-navy);cursor:pointer}
.tt-opt:has(input:checked){border-color:var(--tt-amber);background:var(--tt-amber-soft)}
.tt-error{color:var(--tt-red);font-weight:500}
.tt-nav{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* Results */
.tt-result{display:grid;gap:24px}
.tt-top{display:grid;gap:28px}
.tt .tt-badge{justify-self:start;padding:6px 14px;border-radius:999px;background:var(--tt-amber);color:var(--tt-navy-deep);font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.tt-match{border-top:6px solid var(--tt-amber)}
.tt-match.tt-card{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px 48px;align-items:start}
.tt-match-main,.tt-match-side{display:grid;gap:20px;min-width:0}
.tt .tt-pitch{font-size:19px;line-height:1.5;color:var(--tt-navy)}
.tt .tt-facts{padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tt .tt-facts li{background:var(--tt-tint);border-radius:12px;padding:12px 16px;display:grid;align-content:start;gap:4px;min-width:0}
.tt-facts b{font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--tt-muted)}
.tt-facts span{color:var(--tt-navy);font-weight:600;font-size:17px;line-height:1.35}
.tt .tt-why{padding-left:24px;display:grid;gap:8px;color:var(--tt-navy);font-size:17px}
.tt .tt-nest{background:var(--tt-teal-soft);border-radius:12px;padding:14px 18px;color:var(--tt-navy)}
.tt .tt-callout{background:var(--tt-tint);border-radius:12px;padding:14px 18px;color:var(--tt-navy)}
.tt .tt-warn{background:var(--tt-coral-soft);border-radius:12px;padding:14px 18px;color:var(--tt-navy)}

/* Score meter (checks and assessments) */
.tt-score{display:grid;gap:10px}
.tt-score-num{font-family:Sora,system-ui,sans-serif;font-weight:800;font-size:clamp(40px,6vw,60px);line-height:1;color:var(--tt-navy);font-variant-numeric:tabular-nums}
.tt-score-num small{font-size:.4em;font-weight:700;color:var(--tt-muted)}
.tt-meter{height:12px;border-radius:999px;background:var(--tt-tint);border:1px solid var(--tt-line);overflow:hidden}
.tt-meter i{display:block;height:100%;background:var(--tt-navy);border-radius:999px}

/* Course cards (runner-ups, suggestions): the whole card is the click target */
.tt-also{display:grid;gap:16px 20px;grid-template-columns:1fr 1fr}
.tt-also > .tt-h{grid-column:1 / -1}
.tt-alt{position:relative;display:flex;flex-direction:column;gap:12px;padding:24px;border:1.5px solid var(--tt-line);border-radius:var(--tt-r);background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
.tt-alt:hover{border-color:var(--tt-navy);box-shadow:var(--tt-shadow);transform:translateY(-2px)}
.tt .tt-alt-tag{align-self:flex-start;padding:4px 12px;border-radius:999px;background:var(--tt-amber-soft);color:var(--tt-navy);font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.tt .tt-alt-title{font-family:Sora,system-ui,sans-serif;font-weight:800;font-size:22px;line-height:1.2;color:var(--tt-navy)}
.tt .tt-alt-pitch{font-size:16.5px;line-height:1.5}
.tt .tt-alt-why{display:flex;gap:10px;align-items:flex-start;font-size:15.5px;color:var(--tt-navy);font-weight:500}
.tt-tick{flex:none;width:20px;height:20px;margin-top:2px;border-radius:50%;background:var(--tt-teal-soft);position:relative}
.tt-tick::after{content:"";position:absolute;left:6px;top:6px;width:8px;height:4.5px;border-left:2px solid var(--tt-navy);border-bottom:2px solid var(--tt-navy);transform:rotate(-45deg)}
.tt .tt-chips{padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.tt .tt-chips li{padding:4px 12px;border-radius:999px;background:var(--tt-tint);border:1px solid var(--tt-line);color:var(--tt-navy);font-size:14px;font-weight:600}
.tt-alt-cta{padding-top:4px;margin-top:auto}
.tt-alt-cta .btn{min-height:46px;padding:0 22px;font-size:15px}
.tt-alt-cta .btn,.tt-alt-cta .btn:hover{position:static;transform:none}
.tt-alt-cta .btn::after{content:"";position:absolute;inset:0;border-radius:var(--tt-r);z-index:1}
.tt-alt:hover .tt-alt-cta .btn{background:var(--tt-navy);border-color:var(--tt-navy);color:#fff}
.tt-alt:has(.btn:focus-visible){outline:3px solid var(--tt-navy);outline-offset:3px}
.tt .tt-alt-cta .btn:focus-visible{outline:none}

/* Accordion ("How we worked this out") */
.tt-working{border:1.5px solid var(--tt-line);border-radius:var(--tt-r);background:#fff;transition:border-color .15s}
.tt-working:hover{border-color:var(--tt-navy)}
.tt-working summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;cursor:pointer;font-family:Sora,system-ui,sans-serif;font-weight:700;font-size:18px;color:var(--tt-navy);border-radius:var(--tt-r)}
.tt-working summary::-webkit-details-marker{display:none}
.tt-working summary:hover{background:var(--tt-tint)}
.tt-plus{flex:none;position:relative;width:32px;height:32px;border-radius:50%;border:1.5px solid var(--tt-navy);transition:transform .2s,background .15s}
.tt-plus::before,.tt-plus::after{content:"";position:absolute;left:50%;top:50%;width:12px;height:2px;margin:-1px 0 0 -6px;background:var(--tt-navy)}
.tt-plus::after{transform:rotate(90deg)}
.tt-working summary:hover .tt-plus{background:var(--tt-navy)}
.tt-working summary:hover .tt-plus::before,.tt-working summary:hover .tt-plus::after{background:#fff}
.tt-working[open] .tt-plus{transform:rotate(45deg)}
.tt-working[open] summary{border-bottom:1px solid var(--tt-line);border-radius:var(--tt-r) var(--tt-r) 0 0}
.tt-working-body{display:grid;gap:14px;padding:20px 24px 24px}
.tt-working-body p{font-size:15.5px}
.tt-table{overflow-x:auto}
.tt-table table{border-collapse:collapse;width:100%;min-width:520px;font-size:15px}
/* A table of up to three columns (a label and one or two amounts) fits any width, so it never scrolls sideways. */
.tt-table table:not(:has(tr > :nth-child(4))){min-width:0}
/* "tr >" outranks the theme's article rule (.entry th, .entry td), which would box every cell and tint the header. */
.tt-table tr > th,.tt-table tr > td{text-align:left;padding:10px 12px;border:0;border-bottom:1px solid var(--tt-line);background:transparent;vertical-align:top}
.tt-table thead th{font-size:13px;color:var(--tt-muted);font-weight:600}
.tt-table tbody th{color:var(--tt-navy);font-weight:600}
.tt-table tfoot th,.tt-table tfoot td{font-weight:700;color:var(--tt-navy);border-bottom:0}
.tt-table tr.tt-strong th,.tt-table tr.tt-strong td{font-weight:700;color:var(--tt-navy);background:var(--tt-tint)}
.tt-compare table{min-width:640px;table-layout:fixed}
.tt-compare thead th:first-child{width:170px}
.tt-compare .tt-compare-h{font-family:Sora,system-ui,sans-serif;font-size:17px;color:var(--tt-navy);font-weight:700}
.tt-compare td{font-size:15.5px;color:var(--tt-navy)}
.tt-sr{position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.tt-table{position:relative}
.tt-steps li,.tt-why li,.tt-review-item p{overflow-wrap:anywhere}
.tt-num{text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}
.tt-pt{display:inline-block;margin:2px 4px 2px 0;padding:2px 10px;border-radius:999px;background:var(--tt-tint);border:1px solid var(--tt-line);font-size:13px;color:var(--tt-navy)}
.tt-pt.tt-neg{border-style:dashed}
.tt-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px}

/* Forms (calculators, templates) */
.tt-form{display:grid;gap:20px}
.tt-fields{display:grid;gap:18px 22px;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}
.tt-field{display:grid;gap:6px;align-content:start;min-width:0}
.tt-field-wide{grid-column:1 / -1}
.tt-field label{font-weight:600;color:var(--tt-navy);font-size:15.5px}
.tt-field input,.tt-field select,.tt-field textarea{width:100%;min-height:50px;padding:12px 14px;border:1.5px solid var(--tt-line);border-radius:12px;background:#fff;color:var(--tt-navy);font:inherit;font-size:16.5px;transition:border-color .15s}
.tt-field textarea{min-height:110px;resize:vertical;line-height:1.5}
.tt-field input:hover,.tt-field select:hover,.tt-field textarea:hover{border-color:var(--tt-muted)}
.tt-field input:focus,.tt-field select:focus,.tt-field textarea:focus{outline:none;border-color:var(--tt-navy);box-shadow:0 0 0 3px rgba(11,57,84,.15)}
.tt-field [aria-invalid="true"]{border-color:var(--tt-red)}
.tt-field select{cursor:pointer}
.tt-money{position:relative;display:block}
.tt-money > span{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--tt-muted);font-weight:600;pointer-events:none}
.tt-money input{padding-left:32px;font-variant-numeric:tabular-nums}
.tt .tt-help{font-size:14px;color:var(--tt-muted)}
.tt .tt-field-err{font-size:14px;color:var(--tt-red);font-weight:500}

/* Toggle chips */
.tt-chipset{display:flex;flex-wrap:wrap;gap:8px}
.tt-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border:1.5px solid var(--tt-line);border-radius:999px;background:#fff;color:var(--tt-navy);font:inherit;font-size:14.5px;font-weight:500;line-height:1.3;cursor:pointer;text-align:left;transition:border-color .15s,background .15s}
.tt-chip:hover{border-color:var(--tt-navy);background:var(--tt-tint)}
.tt-chip:focus-visible{outline:3px solid var(--tt-navy);outline-offset:2px}
.tt-chip.is-on{background:var(--tt-navy);border-color:var(--tt-navy);color:#fff}
.tt-chip.is-on:hover{background:var(--tt-navy-deep)}
.tt-chip-mark{font-weight:700;font-size:13px;opacity:.85}
.tt-chip-long{border-radius:12px;padding:9px 13px;font-size:14px}

/* Calculator layout: inputs beside the live result */
.tt-calc{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:24px;align-items:start}
.tt-calc > .tt-card{gap:20px}
.tt-calc .tt-fields{grid-template-columns:1fr}
.tt-tabs{display:inline-flex;flex-wrap:wrap;gap:6px;padding:5px;border-radius:999px;background:var(--tt-tint);border:1px solid var(--tt-line);justify-self:start}
.tt-tabs button{border:0;background:transparent;border-radius:999px;padding:9px 16px;font:inherit;font-size:15px;font-weight:600;color:var(--tt-navy);cursor:pointer}
.tt-tabs button:hover{background:#fff}
.tt-tabs button[aria-pressed="true"]{background:var(--tt-navy);color:#fff}
.tt-tabs button:focus-visible{outline:3px solid var(--tt-navy);outline-offset:2px}

/* Big figures (calculator results) */
.tt-figures{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}
.tt-figure{background:var(--tt-tint);border-radius:14px;padding:18px 20px;display:grid;gap:4px;min-width:0}
.tt-figure b{font-size:12.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--tt-muted)}
.tt-figure strong{font-family:Sora,system-ui,sans-serif;font-weight:800;font-size:clamp(24px,3vw,32px);line-height:1.15;color:var(--tt-navy);font-variant-numeric:tabular-nums}
.tt-figure span{font-size:14px}
.tt-figure-main{background:var(--tt-navy)}
.tt-figure-main b,.tt-figure-main span{color:rgba(255,255,255,.75)}
.tt-figure-main strong{color:#fff}

/* Document preview (letters, templates) */
.tt-doc{background:#fff;border:1px solid var(--tt-line);border-radius:12px;padding:clamp(18px,3vw,32px);font-size:16px;line-height:1.7;color:#1f2a30;white-space:pre-wrap;max-height:640px;overflow:auto}
.tt-doc h3,.tt-doc h4{font-family:Sora,system-ui,sans-serif;color:var(--tt-navy)}

/* Checklists */
.tt-checks{display:grid;gap:10px}
.tt-check{display:flex;gap:14px;align-items:flex-start;padding:14px 18px;border:1.5px solid var(--tt-line);border-radius:12px;background:#fff;cursor:pointer;color:var(--tt-navy);transition:border-color .15s,background .15s}
.tt-check:hover{border-color:var(--tt-navy)}
.tt-check input{flex:none;width:20px;height:20px;margin:2px 0 0;accent-color:var(--tt-navy);cursor:pointer}
.tt-check:has(input:checked){background:var(--tt-tint);border-color:var(--tt-line)}
.tt-check:has(input:checked) .tt-check-text{text-decoration:line-through;text-decoration-color:var(--tt-muted)}
.tt-check small{display:block;color:var(--tt-body);font-size:14.5px;margin-top:2px}

/* Code editor tasters (web page, SQL) */
.tt-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
.tt .tt-code-in{width:100%;min-height:340px;padding:14px;border:1.5px solid var(--tt-line);border-radius:12px;background:#0B2230;color:#E6F1F7;caret-color:#FFB128;font:14.5px/1.6 "JetBrains Mono",Consolas,monospace;resize:vertical;tab-size:2}
.tt .tt-code-in:focus{outline:none;border-color:var(--tt-amber);box-shadow:0 0 0 3px rgba(255,177,40,.25)}
.tt-preview{width:100%;min-height:340px;border:1.5px solid var(--tt-line);border-radius:12px;background:#fff}
.tt .tt-label{font-weight:600;color:var(--tt-navy);font-size:15.5px}
.tt-steps{padding-left:24px!important;display:grid;gap:8px;color:var(--tt-navy)}
.tt-step-done{color:var(--tt-muted);text-decoration:line-through}
.tt-step-done::marker{content:"\2713  ";color:var(--tt-navy)}
.tt-swatch{padding:22px;border-radius:14px;border:1px solid var(--tt-line)}
.tt-colour{display:flex;gap:10px;align-items:center}
.tt-colour input[type=color]{flex:none;width:54px;height:50px;padding:4px;border:1.5px solid var(--tt-line);border-radius:12px;background:#fff;cursor:pointer}
.tt-phrase{font:inherit;font-weight:700;background:#fff;padding:1px 6px;border-radius:6px}
/* A suggested passphrase on its own line, so it reads as one password; it only wraps (at a hyphen) on a narrow phone. */
.tt-phrase-line{display:block;width:fit-content;max-width:100%;margin:8px 0;padding:6px 10px}
.tt-callout > .tt-actions{margin-top:12px}
@container tt (max-width:780px){.tt-editor{grid-template-columns:1fr}}

.tt-flyer{padding:26px;border-radius:12px;background:#fff;border:1px solid var(--tt-line);box-shadow:var(--tt-shadow)}

.tt-canvas{width:100%;max-width:520px;height:auto;border-radius:12px;box-shadow:var(--tt-shadow);justify-self:center}

/* Streak tracker */
.tt-days-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;max-width:420px}
.tt-day{aspect-ratio:1;border-radius:8px;background:var(--tt-tint);border:1px solid var(--tt-line)}
.tt-day-on{background:var(--tt-amber);border-color:var(--tt-amber)}
.tt-day-today{outline:2px solid var(--tt-navy);outline-offset:1px}

/* CV builder */
.tt-cv{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.tt-cv-group{border:0;margin:0;padding:16px 0 0;border-top:1px solid var(--tt-line)}
.tt-cv-group .tt-fields{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr))}
.tt-cv-side{position:sticky;top:110px}
.tt-cv-paper{background:#fff;border:1px solid var(--tt-line);border-radius:6px;box-shadow:var(--tt-shadow);padding:28px 30px;max-height:780px;overflow:auto}
@container tt (max-width:900px){.tt-cv{grid-template-columns:1fr}.tt-cv-side{position:static}}

/* Design pairs */
.tt-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tt-design{flex-direction:column;align-items:stretch}
.tt-design input{position:absolute;opacity:0}
.tt-design{position:relative}
.tt-design-inner{display:grid;gap:10px}
.tt-design-inner b{font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--tt-muted)}
@container tt (max-width:560px){.tt-pair{grid-template-columns:1fr}}

/* Typing test */
.tt-type-target{padding:18px 20px;border-radius:14px;background:var(--tt-tint);font:18px/1.7 "JetBrains Mono",Consolas,monospace;color:var(--tt-muted)}
.tt-ok-ch{color:var(--tt-navy)}
.tt-bad-ch{color:var(--tt-red);background:var(--tt-coral-soft)}
.tt-cur{border-bottom:2px solid var(--tt-navy);color:var(--tt-navy)}
.tt-type-in{width:100%;padding:14px;border:1.5px solid var(--tt-line);border-radius:12px;font:17px/1.6 "JetBrains Mono",Consolas,monospace;color:var(--tt-navy)}
.tt-type-in:focus{outline:none;border-color:var(--tt-navy);box-shadow:0 0 0 3px rgba(11,57,84,.15)}

/* Timetable */
.tt-days{border:0;padding:0;margin:0}
.tt .tt-flegend{font-weight:600;color:var(--tt-navy);font-size:15.5px;margin:0 0 8px;padding:0;font-family:inherit}
.tt-daypick{display:flex;flex-wrap:wrap;gap:8px}
.tt-chipbox{position:relative;cursor:pointer}
.tt-chipbox input{position:absolute;opacity:0;inset:0;cursor:pointer}
.tt-chipbox span{display:inline-block;padding:8px 14px;border:1.5px solid var(--tt-line);border-radius:999px;font-weight:600;color:var(--tt-navy);background:#fff}
.tt-chipbox:hover span{border-color:var(--tt-navy)}
.tt-chipbox input:checked + span{background:var(--tt-navy);border-color:var(--tt-navy);color:#fff}
.tt-chipbox input:focus-visible + span{outline:3px solid var(--tt-navy);outline-offset:2px}
.tt-practice{display:grid;gap:8px}
.tt-prow{display:grid;grid-template-columns:110px 1fr;gap:10px;align-items:center;color:var(--tt-navy);font-weight:500}
.tt-prow select{min-height:42px;padding:8px 10px;border:1.5px solid var(--tt-line);border-radius:10px;background:#fff;color:var(--tt-navy);font:inherit;cursor:pointer}
.tt-pt-alt{background:var(--tt-amber-soft)}

/* Trivia answer review */
.tt-review{display:grid;gap:14px;padding-left:0!important;list-style:none}
.tt-review-item{display:grid;gap:6px;padding:14px 16px;border-radius:12px;border:1px solid var(--tt-line);background:#fff}
.tt-review-item p{font-size:15.5px}
.tt-review-q{display:flex;gap:10px;align-items:flex-start;color:var(--tt-navy)}
.tt-mark{flex:none;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:14px;font-weight:700}
.tt-ok .tt-mark{background:var(--tt-teal-soft);color:var(--tt-navy)}
.tt-miss .tt-mark{background:var(--tt-coral-soft);color:var(--tt-red)}

/* Guide pages: contents beside the reading column on wide screens */
.tt-guide-wrap{display:grid;gap:28px}
.tt-guide-head{max-width:none}
.tt-guide-body{display:grid;grid-template-columns:240px minmax(0,1fr);gap:40px;align-items:start}
/* A short guide has no contents list: the whole guide, intro card included, keeps to the reading width. */
.tt-guide-short{max-width:820px}
.tt-guide-short .tt-guide-body{grid-template-columns:minmax(0,1fr)}
.tt-toc{position:sticky;top:110px;display:grid;gap:10px;padding:18px 20px;border:1px solid var(--tt-line);border-radius:var(--tt-r);background:#fff}
.tt-toc ol{padding-left:20px!important;display:grid;gap:8px;font-size:15px}
.tt-toc a{color:var(--tt-navy);text-decoration:none}
.tt-toc a:hover{text-decoration:underline}
.tt-guide-sec{display:grid;gap:14px}
.tt-guide a:not(.btn){color:var(--tt-navy);text-decoration:underline;text-underline-offset:3px}
.tt-guide-end{margin-top:8px}
@container tt (max-width:900px){.tt-guide-body{grid-template-columns:1fr}.tt-toc{position:static}}

/* Guides */
.tt-guide{display:grid;gap:22px;max-width:820px}
.tt-guide .tt-h{margin-top:8px}
.tt-guide p,.tt-guide li{font-size:17px;line-height:1.7}
.tt-guide ul,.tt-guide ol{padding-left:22px;display:grid;gap:6px}
.tt .tt-source{font-size:14px;color:var(--tt-muted)}

.tt-admin-note{max-width:var(--wrap,1160px);margin:0 0 18px;padding:12px 16px;border-radius:12px;background:#FFF4DC;border:1px dashed #FFB128;color:#0B3954;font-size:15px}

/* ---------- Hub (/resources) ---------- */
/* The hub brings its own top section and heading, so the plain page title band goes. */
.tt-hub-page .basic-hero{display:none}
.tt-hub-page .basic > section:not(.basic-hero){padding-top:20px}
.tt-hub{display:grid;grid-template-columns:minmax(0,1fr);gap:36px}
.tt-hub > *{min-width:0} /* the one-line filter row scrolls inside itself instead of widening the page */
.tt.tt-hub a,.tt.tt-hub a *{text-decoration:none}
.tt.tt-hub li + li{margin-top:0}
.tt .th-h2{font-family:Sora,system-ui,sans-serif;font-weight:800;font-size:clamp(20px,2.6vw,24px);line-height:1.25;color:var(--tt-navy);margin:0}

/* Top section */
.th-hero{background:var(--tt-navy);color:#fff;border-radius:24px;padding:clamp(26px,5vw,56px);display:grid;grid-template-columns:minmax(0,1fr);gap:14px;position:relative;overflow:hidden}
/* The column is held to the box's width, so a phone with large text or an older browser can't push the
   heading, search and shortcuts past the right edge (they wrap instead). */
.th-hero > *{min-width:0;max-width:100%;overflow-wrap:break-word}
.th-search input{width:100%}
.th-hero::after{content:"";position:absolute;right:-90px;top:-90px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(255,177,40,.30),transparent 70%);pointer-events:none}
.th-hero > *{position:relative;z-index:1}
.tt .th-eyebrow{margin:0;font:700 13px Sora,system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--tt-amber)}
.tt .th-h1{margin:0;font-family:Sora,system-ui,sans-serif;font-weight:800;font-size:clamp(30px,5.2vw,52px);line-height:1.1;color:#fff;max-width:760px;text-wrap:balance}
.tt .th-lede{margin:0;max-width:640px;font-size:clamp(16px,1.8vw,18px);line-height:1.6;color:#CFE3EE}
.th-search{display:flex;align-items:center;gap:10px;max-width:620px;margin-top:6px;background:#fff;border-radius:999px;padding:0 8px 0 18px;color:var(--tt-navy);box-shadow:0 10px 30px rgba(0,0,0,.18)}
.th-search input{flex:1;min-width:0;min-height:54px;border:0;background:transparent;font:inherit;font-size:16.5px;color:var(--tt-navy)}
.th-search input:focus{outline:none}
.th-search:focus-within{box-shadow:0 0 0 3px var(--tt-amber),0 10px 30px rgba(0,0,0,.18)}
.tt .th-aud{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.tt .th-aud a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;border:1.5px solid rgba(255,255,255,.35);color:#fff;font-size:15px;font-weight:500;transition:background .15s,border-color .15s}
.tt .th-aud a:hover,.tt .th-aud a:focus-visible{background:rgba(255,255,255,.12);border-color:#fff}
.th-aud a:focus-visible{outline:3px solid var(--tt-amber);outline-offset:2px}

/* Start here */
.th-start{display:grid;gap:14px}
.th-start-grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.tt .th-start-card{display:flex;flex-direction:column;gap:8px;padding:22px;border-radius:var(--tt-r);background:var(--tt-amber-soft);border:1.5px solid transparent;color:var(--tt-body);transition:border-color .15s,box-shadow .15s,transform .15s}
.th-start-card:hover{border-color:var(--tt-amber);box-shadow:var(--tt-shadow);transform:translateY(-2px)}
.th-start-card b{font-family:Sora,system-ui,sans-serif;font-size:20px;line-height:1.25;color:var(--tt-navy)}
.th-start-card > span:not(.th-meta):not(.th-go){font-size:15.5px;line-height:1.5}
.tt .th-go{margin-top:auto;padding-top:6px;font-weight:700;color:var(--tt-navy)}

/* Labels on cards: type and speed */
.tt .th-meta{align-self:flex-start;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#0E5A64}

/* Section filters: stick under the site header while scrolling */
.th-filters{position:sticky;top:calc(var(--wp-admin--admin-bar--height,0px) + 68px);z-index:5;margin:0 -4px;padding:10px 4px;background:rgba(255,255,255,.96);backdrop-filter:blur(6px);border-bottom:1px solid var(--tt-line)}
.tt .th-filters ul{list-style:none;margin:0;padding:0 0 2px;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.th-filters ul::-webkit-scrollbar{display:none}
.tt .th-filters a{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:999px;border:1.5px solid var(--tt-line);background:#fff;color:var(--tt-navy);font-size:14px;font-weight:600;white-space:nowrap;transition:border-color .15s,background .15s}
.th-filters a span{font-weight:500;color:var(--tt-muted)}
.th-filters a:hover{border-color:var(--tt-navy)}
.tt .th-filters a.is-on{background:var(--tt-navy);border-color:var(--tt-navy);color:#fff}
.th-filters a.is-on span{color:#CBF2F7}
.th-filters a:focus-visible{outline:3px solid var(--tt-navy);outline-offset:2px}
/* More sections off to the right: the row fades out and a round arrow button sits on the edge. */
.th-filters.has-more ul{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 72px),transparent calc(100% - 20px));mask-image:linear-gradient(90deg,#000 calc(100% - 72px),transparent calc(100% - 20px))}
.th-scroll{position:absolute;right:2px;top:50%;transform:translateY(-50%);width:36px;height:36px;display:grid;place-items:center;border-radius:50%;border:1.5px solid var(--tt-line);background:#fff;color:var(--tt-navy);box-shadow:0 2px 8px rgba(11,57,84,.14);cursor:pointer;padding:0}
.th-scroll[hidden]{display:none}
.th-scroll:hover{border-color:var(--tt-navy)}
.th-scroll:focus-visible{outline:3px solid var(--tt-navy);outline-offset:2px}

/* Sections */
.th-shelves{display:grid;gap:44px}
.th-shelf{display:grid;gap:16px;scroll-margin-top:calc(var(--wp-admin--admin-bar--height,0px) + 140px)}
.th-shelf-head{display:flex;gap:14px;align-items:flex-start}
.th-shelf-head p{margin:4px 0 0;font-size:15.5px;color:var(--tt-muted)}
.th-icon{flex:none;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;color:var(--tt-navy);background:var(--th-tone)}
.th-tone-0{--th-tone:var(--teal-soft,#CBF2F7)}
.th-tone-1{--th-tone:var(--amber-soft,#FFF4DC)}
.th-tone-2{--th-tone:var(--pink-soft,#FDE7EF)}
.th-tone-3{--th-tone:var(--coral-soft,#FFEAE2)}
.th-grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}
.tt .th-card{position:relative;display:flex;flex-direction:column;gap:6px;padding:18px 58px 18px 20px;border-radius:var(--tt-r);background:#fff;border:1.5px solid var(--tt-line);border-top:5px solid var(--th-tone);color:var(--tt-body);transition:border-color .15s,box-shadow .15s,transform .15s}
.th-card:hover{border-color:var(--tt-navy);border-top-color:var(--th-tone);box-shadow:var(--tt-shadow);transform:translateY(-2px)}
.th-card b{font-family:Sora,system-ui,sans-serif;font-size:17.5px;line-height:1.3;color:var(--tt-navy)}
.th-card > span:not(.th-meta){font-size:15px;line-height:1.5}
.th-card:focus-visible,.th-start-card:focus-visible{outline:3px solid var(--tt-navy);outline-offset:3px}
/* Round arrow on every card, so it reads as something to tap. */
.th-arrow{position:absolute;right:16px;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--tt-tint,#EEF6F9);color:var(--tt-navy);font-style:normal;font-weight:700;font-size:15px;line-height:1;transition:background .15s,color .15s}
.th-card:hover .th-arrow,.th-card:focus-visible .th-arrow{background:var(--tt-navy);color:#fff}
.th-shelf.is-clamped .th-card:nth-child(n+7){display:none}
.th-card.is-out,.th-shelf.is-out{display:none}
.th-more{justify-self:center;min-height:46px;padding:0 22px;border-radius:999px;border:1.5px solid var(--tt-navy);background:#fff;color:var(--tt-navy);font:600 15px Sora,system-ui,sans-serif;cursor:pointer}
.th-more:hover{background:var(--tt-navy);color:#fff}
.th-more:focus-visible{outline:3px solid var(--tt-amber);outline-offset:2px}
.tt .th-none{margin:0;padding:18px 20px;border-radius:14px;background:var(--tt-tint);color:var(--tt-navy);font-weight:500}
.tt .th-none a{color:var(--tt-navy);text-decoration:underline!important}

/* Advisor band */
.th-advisor{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;padding:clamp(22px,4vw,36px);border-radius:24px;background:var(--tt-navy);color:#fff}
.th-advisor p{margin:0;max-width:620px;font:800 clamp(20px,2.4vw,26px)/1.25 Sora,system-ui,sans-serif;color:#fff}
.th-advisor p span{display:block;margin-top:6px;font:400 16px/1.55 Poppins,system-ui,sans-serif;color:#CFE3EE}
.th-advisor .btn{flex:none}
@media (max-width:600px){
  .th-advisor .btn{width:100%;justify-content:center}.th-hero{border-radius:18px}.th-filters{top:calc(var(--wp-admin--admin-bar--height,0px) + 64px)}
  /* Phones: 4 tools per section before "Show all", compact cards with a two-line description */
  .th-shelf.is-clamped .th-card:nth-child(n+5){display:none}
  /* Phones: a quieter top section (smaller heading and text, no glow) */
  .th-hero{padding:24px 20px;gap:12px}
  .th-hero::after{display:none}
  .tt .th-eyebrow{font-size:11.5px;letter-spacing:.1em}
  .tt .th-h1{font-size:clamp(24px,7vw,28px);line-height:1.2}
  .tt .th-lede{font-size:15px;line-height:1.55}
  .th-search{padding:0 6px 0 14px;box-shadow:none}
  .th-search input{min-height:48px;font-size:16px}
  .tt .th-aud{gap:8px}
  .tt .th-aud a{min-height:38px;padding:0 13px;font-size:13.5px;font-weight:400;border-color:rgba(255,255,255,.28)}
  .tt .th-h2{font-size:19px;font-weight:700}
  .th-start-card{padding:20px}
  .th-start-card b{font-size:18px}
  .th-filters a{font-size:13.5px}
  .th-filters{padding-right:44px}
  /* Phones: 4 tools per section before "Show all"; one card per row with room to breathe */
  .th-shelf.is-clamped .th-card:nth-child(n+5){display:none}
  .th-shelves{gap:48px}
  .th-shelf{gap:18px}
  .th-shelf-head p{font-size:14.5px}
  .th-icon{width:40px;height:40px;border-radius:12px}
  .th-grid{gap:14px}
  .tt .th-card{padding:18px 56px 18px 18px;gap:6px;border:1px solid var(--tt-line);border-top:1px solid var(--tt-line);border-left:4px solid var(--th-tone);box-shadow:0 1px 3px rgba(11,57,84,.06)}
  .th-card:hover{border-top-color:var(--tt-line)}
  .th-card b{font-size:16px;font-weight:700}
  .tt .th-meta{font-size:11px;font-weight:600;color:#3E7A83}
  .th-card > span:not(.th-meta){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;color:var(--tt-muted)}
}

/* Narrower than a full tool page (an article column, a tablet). */
@container tt (max-width:780px){.tt-match.tt-card,.tt-calc{grid-template-columns:1fr}}
/* Phone width: one column throughout. */
@container tt (max-width:560px){.tt-also{grid-template-columns:1fr}.tt-foot{display:grid}.tt-alt{padding:20px}.tt .tt-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@supports not (container-type:inline-size){
  @media (max-width:960px){.tt-match.tt-card{grid-template-columns:1fr}}
  @media (max-width:600px){.tt-also{grid-template-columns:1fr}.tt-foot{display:grid}.tt-alt{padding:20px}}
}
@media (prefers-reduced-motion:reduce){.tt-bar i,.tt-opt,.tt-alt,.tt-plus,.tt-working,.th-card,.th-start-card,.tt-check{transition:none}.tt-alt:hover,.th-card:hover,.th-start-card:hover{transform:none}}
