/* Festidy free tools (/tools). Builds on site.css (tokens, .btn, .prose, .cta, .crumbs, .out).
   One widget pattern for every tool: .tool holds the form (.t-form), the answer (.t-out), actions (.t-actions) and the
   plan link (.t-cta). Printables put what prints inside .t-print; everything else is hidden when printing. */

.t-page { max-width: 820px; }
.t-page h1 { margin-bottom: .3rem; }
.t-page > .lead { margin-top: 0; }

/* ---------- the widget ---------- */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(16px, 3.5vw, 26px); box-shadow: var(--shadow); margin: 1.4rem 0 2rem; display: grid; gap: 18px; }
.t-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 16px; align-items: end; margin: 0; }
.t-form .wide { grid-column: 1 / -1; }
.t-field { display: grid; gap: 6px; min-width: 0; }
.t-field > label, .t-seg legend, .t-lab { font: 600 .8rem/1.2 var(--sans); letter-spacing: .02em; color: var(--ink-2); }
.t-field input[type="number"], .t-field input[type="text"], .t-field input[type="date"], .t-field input[type="time"], .t-field select, .t-field textarea {
  width: 100%; font: 500 1rem/1.3 var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; min-height: 46px; }
.t-field textarea { min-height: 84px; resize: vertical; }
.t-field input:focus, .t-field select:focus, .t-field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-soft); }
.t-hint { font-size: .8rem; color: var(--ink-3); margin: 0; }

/* number with - and + */
.t-step { display: grid; grid-template-columns: 46px 1fr 46px; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.t-step:focus-within { border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-soft); }
.t-step button { border: 0; background: transparent; color: var(--ink); font: 500 1.35rem/1 var(--sans); cursor: pointer; min-height: 46px; }
.t-step button:hover { background: var(--paper-2); }
.t-step input { border: 0 !important; box-shadow: none !important; text-align: center; border-radius: 0 !important; background: transparent !important; min-width: 0; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.t-step input::-webkit-outer-spin-button, .t-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* chips: a radio or checkbox group that looks like pills */
.t-seg { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; min-width: 0; }
.t-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.t-chips label { position: relative; cursor: pointer; }
.t-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.t-chips span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; font: 500 .92rem/1.2 var(--sans); background: var(--paper); color: var(--ink); transition: background .15s, border-color .15s; }
.t-chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.t-chips input:focus-visible + span { outline: 3px solid var(--clay); outline-offset: 2px; }
.t-chips span:hover { border-color: var(--ink-3); }

/* the theme picked, shown as a banner */
.t-theme { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--paper-2); }
.t-theme img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.t-theme b { font: 600 1rem/1.2 var(--serif); display: block; }
.t-theme span { font-size: .85rem; color: var(--ink-3); }

/* answers: big numbers in tiles (the same look as the site's .out) */
.t-out { min-width: 0; }
.t-out:empty { display: none; }
.t-res { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.t-res > div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 2px; align-content: start; }
.t-res b { font: 600 clamp(1.6rem, 4vw, 2.1rem)/1.05 var(--serif); font-variant-numeric: tabular-nums; }
.t-res span { font-weight: 600; font-size: .95rem; }
.t-res small { color: var(--ink-3); font-size: .8rem; line-height: 1.35; }
.t-res > div.big { grid-column: 1 / -1; background: var(--clay-soft); border-color: transparent; }
.t-res > div.big b { font-size: clamp(2.2rem, 7vw, 3rem); }
.t-res > div.txt b { font: 600 1.12rem/1.3 var(--serif); }
.t-res > div.wide { grid-column: 1 / -1; }
.t-err { color: #b42318; font-size: .9rem; margin: 0; }
.t-note { background: var(--sage-bg); color: var(--ink); border-radius: 12px; padding: 10px 14px; font-size: .92rem; margin: 0; }

/* lists the tools produce (checklists, games, songs, schedules) */
.t-list, .prose .t-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.prose .t-list > li { margin: 0; }
.prose .t-list > li::marker { content: none; }
.t-list > li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.t-list > li h3 { font: 600 1.08rem/1.25 var(--serif); margin: 0; }
.t-list > li p { margin: 0; font-size: .95rem; }
.t-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .78rem; color: var(--ink-3); }
.t-meta span { background: var(--paper-2); border-radius: 999px; padding: 2px 9px; }
.t-group { display: grid; gap: 10px; }
.t-group + .t-group { margin-top: 18px; }
.t-group > h3 { font: 600 .82rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.t-check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.t-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--clay); }

/* actions and the plan link */
.t-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.t-actions:empty { display: none; }
.t-actions button, .t-actions a { font: 600 .9rem/1 var(--sans); padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.t-actions button:hover, .t-actions a:hover { border-color: var(--ink); }
.t-actions svg { width: 16px; height: 16px; }
.t-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.t-cta p { margin: 0; font-size: .92rem; color: var(--ink-2); max-width: 46ch; }

/* sections below the tool */
.t-how { background: var(--paper-2); border-radius: var(--r-card); padding: 18px 20px; margin: 1.5rem 0; }
.t-how h2 { margin-top: 0; }
.t-updated { font-size: .82rem; color: var(--ink-3); margin: .6rem 0 0; }
.t-planlink { margin: .8rem 0 0; } .t-planlink a { color: var(--ink); text-decoration-color: var(--clay); }  /* v130 */
.t-faq { display: grid; gap: 8px; margin: .6rem 0 1.6rem; }
details.faq { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 0 16px; }
details.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font: 400 1.3rem/1 var(--sans); color: var(--ink-3); }
details.faq[open] summary::after { content: "\2212"; }
details.faq > p, details.faq > ul { margin: 0 0 14px; }
.t-draft { border: 1.5px dashed var(--clay); background: var(--clay-soft); color: var(--ink); border-radius: 12px; padding: 8px 12px; font-size: .85rem; margin: 0; }

/* cards: the hub and "More free tools" */
.t-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.t-card { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto 1fr; column-gap: 12px; row-gap: 2px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; min-width: 0; }
.t-card:hover { border-color: var(--ink-3); transform: translateY(-1px); text-decoration: none; }
.t-card .t-ic { grid-row: 1 / span 3; }
.t-card b { font: 600 1.05rem/1.25 var(--serif); }
.t-card span:not(.t-ic) { font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.t-card small { font: 600 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; align-self: end; }
.t-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--clay-soft); color: var(--ink); display: grid; place-items: center; }
.t-ic svg { width: 22px; height: 22px; }
.t-ic.big { width: 48px; height: 48px; }
.t-ic.big svg { width: 26px; height: 26px; }
.t-related { margin: 2.2rem 0 1rem; }
.t-related h2 { margin-bottom: .8rem; }

.t-hub { max-width: 1080px; }
.t-hub-head { margin: 1rem 0 1.4rem; }
.t-hub-head h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: .2rem 0 .4rem; }
.t-hub-head .lead { max-width: 62ch; }
.t-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.t-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font: 600 .9rem/1 var(--sans); background: var(--card); }
.t-jump a:hover { border-color: var(--ink-3); }
.t-jump svg { width: 18px; height: 18px; }
.t-cat { margin: 2.2rem 0; scroll-margin-top: 80px; }
.t-cat-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.t-cat-head h2 { margin: 0; font-size: 1.5rem; }
.t-cat-head p { margin: 2px 0 0; color: var(--ink-3); font-size: .95rem; }

/* printables: what prints sits in .t-print */
.t-print { display: grid; gap: 12px; }
@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; color: #000 !important; }
  .nav, .foot, .crumbs, .skip, .t-form, .t-actions, .t-cta, .t-how, .t-faq, .t-related, .t-updated, .t-planlink, h2, .lead, .t-draft, .no-print, main > *:not(.tool), .tool > *:not(.t-out) { display: none !important; }
  main, .t-page { max-width: none !important; padding: 0 !important; margin: 0 !important; }
  .tool { box-shadow: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; background: none !important; }
  .t-print .card-break { break-inside: avoid; }
}

@media (max-width: 520px) {
  .t-form { grid-template-columns: 1fr 1fr; }
  .t-form .t-seg, .t-form .t-field.full { grid-column: 1 / -1; }
  .t-res { grid-template-columns: 1fr 1fr; }
  .t-cta .btn { width: 100%; text-align: center; justify-content: center; }
}

/* Structure deploy (SEO's brief, Part 2): the answer, written into the page, right under the calculator */
.t-answer { margin: 20px 0 4px; min-width: 0; max-width: 100%; }
.t-answer h2 { font-size: 1.15rem; margin: 0 0 8px; }
.t-ans { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0 0 14px; }
.t-ans caption { text-align: left; color: var(--ink-3); font-size: .84rem; padding: 0 0 6px; caption-side: top; }
.t-ans th, .t-ans td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t-ans thead th { font-weight: 600; color: var(--ink-2); background: var(--paper-2); }
.t-ans tbody th { font-weight: 600; white-space: nowrap; }
.t-examples { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.t-examples li { background: var(--paper-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.t-examples small { color: var(--ink-3); font-size: .78rem; }
.t-pl { border-bottom: 1px solid var(--line); padding: 8px 0; }
.t-pl summary { cursor: pointer; font-weight: 600; }
.t-pl ol { margin: 8px 0 4px; padding-left: 1.4em; columns: 2 240px; font-size: .92rem; }
@media print { .t-answer { display: none !important; } }
.t-answer .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
@media (max-width: 640px) { .t-ans { font-size: .85rem; } .t-ans th, .t-ans td { padding: 6px 7px; } .t-ans tbody th { white-space: normal; } }
/* Anu (Nov 23): quick answers as 3 or 4 small cards, two to a row on a phone */
.t-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tq { background: var(--paper-2); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tq .tq-for { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.tq b { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tq .tq-what { font-size: .9rem; color: var(--ink-2); margin-bottom: 4px; }
.tq small { font-size: .8rem; color: var(--ink-3); line-height: 1.35; }
@media (max-width: 720px) { .t-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tq b { font-size: 1.35rem; } }

/* ==================================================================================================
   v158 (U49, Anu, Nov 25 2026): the tools page with a logo per tool (Fable's cut-paper set, picked in the
   bake-off) and a colour per group. Design files: docs/design/tools-page-2026-11/fable-r2/.
   Six groups, each with its own colour (--g), a deep text colour (--g-ink) and a tint (--g-tint).
   ================================================================================================== */
.g { --g-ink: var(--g-ink-l); --g-mix: var(--g-mix-l); --g-tint: color-mix(in srgb, var(--g) var(--g-mix), var(--paper)); }
.g-food  { --g: #DD5F28; --g-ink-l: #A9420D; --g-ink-d: #F0895A; --g-mix-l: 13%; }
.g-plan  { --g: #3D6FD1; --g-ink-l: #2A54A8; --g-ink-d: #9DB9F5; --g-mix-l: 11%; }
.g-theme { --g: #E4528C; --g-ink-l: #AD265C; --g-ink-d: #F593B8; --g-mix-l: 11%; }
.g-games { --g: #7B55C7; --g-ink-l: #5B3AA6; --g-ink-d: #BBA4EE; --g-mix-l: 11%; }
.g-decor { --g: #1F9D7A; --g-ink-l: #0F6046; --g-ink-d: #63CDAC; --g-mix-l: 13%; }
.g-day   { --g: #F5B82E; --g-ink-l: #7A5200; --g-ink-d: #F5C451; --g-mix-l: 24%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .g { --g-ink: var(--g-ink-d); --g-mix: 15%; } }
:root[data-theme="dark"] .g { --g-ink: var(--g-ink-d); --g-mix: 15%; }
.t-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- the hub (/tools) ---------- */
.t-hub2 { max-width: 1120px; }
.t-hub2 .crumbs { margin: 14px 0 0; }
.t-hero { margin: 22px 0 30px; }
.t-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: .98; letter-spacing: -.025em; margin: 0 0 .32em; }
.t-hero h1 em { color: var(--clay-text); }
.t-hero .lead { font-size: 1.12rem; line-height: 1.6; max-width: 40em; margin: 0; }
.t-hub2 .t-jump { gap: 8px; margin-top: 24px; }
.t-hub2 .t-jump a { gap: 8px; min-height: 42px; padding: 6px 8px; color: var(--ink); transition: border-color .15s, background .15s; }
.t-hub2 .t-jump a:hover { border-color: var(--g); background: var(--g-tint); }
.t-hub2 .t-jump svg { width: 24px; height: 24px; flex: none; }
.t-jump .n { font: 600 .74rem/1 var(--sans); color: var(--g-ink); background: var(--g-tint); padding: 5px 8px; border-radius: 999px; margin-left: 2px; }
.t-hub2 .t-cat { margin: 0; padding: 22px; border-radius: 30px; background: var(--g-tint); scroll-margin-top: 84px; }
.t-hub2 .t-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.t-hub2 .t-cat-head { display: grid; grid-template-columns: minmax(0, 1fr); align-content: space-between; align-items: start; gap: 16px; margin: 0; padding: 8px 4px 6px 8px; min-width: 0; }
.t-emblem svg { display: block; width: 84px; height: 84px; }
.t-hub2 .t-cat-head h2 { font-size: 1.9rem; line-height: 1.04; letter-spacing: -.02em; }
.t-hub2 .t-cat-head p { color: var(--ink-2); font-size: .95rem; line-height: 1.45; margin: 10px 0 0; }
.t-hub2 .t-cat-head .t-count { display: block; margin-top: 14px; font: 600 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--g-ink); }
.t-hub2 .t-card { grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: 104px auto 1fr; grid-template-areas: "logo kind" "name name" "desc desc"; gap: 0;
  padding: 16px 16px 18px; border-radius: 22px; border-color: color-mix(in srgb, var(--g) 22%, var(--card)); transition: border-color .15s, transform .15s, box-shadow .15s; }
.t-logo { grid-area: logo; display: block; width: 104px; height: 104px; transition: transform .2s ease; }
.t-logo img { display: block; width: 100%; height: 100%; }
.t-hub2 .t-card b { grid-area: name; margin-top: 14px; font: 600 1.14rem/1.2 var(--serif); }
.t-hub2 .t-card span:not(.t-logo) { grid-area: desc; margin-top: 5px; font-size: .9rem; line-height: 1.42; color: var(--ink-2); }
.t-hub2 .t-card small { grid-area: kind; justify-self: end; align-self: start; margin: 0; padding: 6px 9px; border-radius: 999px; background: var(--g-tint); color: var(--g-ink); font: 600 .64rem/1 var(--sans); letter-spacing: .08em; white-space: nowrap; }
.t-hub2 .t-card:hover { border-color: var(--g); transform: translateY(-2px); box-shadow: 0 16px 28px -20px color-mix(in srgb, var(--g) 80%, #181512); }
.t-hub2 .t-card:hover .t-logo { transform: rotate(-4deg) scale(1.04); }
.t-hub2 .t-card:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.t-sep { height: 72px; margin: 14px 0 12px; color: var(--ink-3); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.t-sep svg { display: block; width: 100%; height: 100%; }
/* the closing box in all six group colours (everything in one plan) */
.t-hub2 .cta2 { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px 48px;
  margin-top: 56px; padding: 40px 40px 34px; border-radius: 30px; color: var(--ink); background: var(--card); border: 1px solid var(--line); }
.t-hub2 .cta2::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 10px;
  background: linear-gradient(90deg, #DD5F28 0 16.66%, #3D6FD1 0 33.33%, #E4528C 0 50%, #7B55C7 0 66.66%, #1F9D7A 0 83.33%, #F5B82E 0); }
.t-hub2 .cta2 h2 { color: var(--ink); font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0 0 8px; }
.t-hub2 .cta2 p { color: var(--ink-2); margin: 0 0 18px; max-width: 36em; font-size: 1.04rem; }
.t-hub2 .cta2 .btn { background: var(--clay); color: var(--on-clay); }
.cta2-tiles { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; }
.cta2-tiles svg { display: block; width: 76px; height: 76px; }
.cta2-tiles svg:nth-child(odd) { transform: rotate(-6deg); } .cta2-tiles svg:nth-child(even) { transform: rotate(5deg) translateY(6px); }
@media (max-width: 1040px) {
  .t-hub2 .t-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .t-hub2 .t-cat-head { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 4px 4px 8px; }
  .t-emblem svg { width: 68px; height: 68px; }
  .t-hub2 .t-cat-head p { margin-top: 4px; } .t-hub2 .t-cat-head .t-count { margin-top: 8px; }
}
@media (max-width: 760px) {
  .t-hub2 .t-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .t-hub2 .t-cat { padding: 14px; border-radius: 24px; }
  .t-hub2 .t-card { grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: 88px auto 1fr; }
  .t-logo { width: 88px; height: 88px; }
  .t-hub2 .cta2 { grid-template-columns: minmax(0, 1fr); padding: 30px 22px 24px; }
  .cta2-tiles { order: -1; grid-template-columns: repeat(6, minmax(0, 46px)); gap: 8px; }
  .cta2-tiles svg { width: 100%; height: auto; }
}
@media (max-width: 540px) {
  .t-hero { margin: 14px 0 26px; }
  .t-hero .lead { font-size: 1.02rem; }
  .t-hub2 .t-jump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-hub2 .t-jump a { font-size: .86rem; line-height: 1.15; border-radius: 16px; min-height: 50px; padding: 6px 8px; }
  .t-jump .n { margin-left: auto; }
  .t-hub2 .t-cards { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .t-hub2 .t-cat { padding: 12px; margin: 0 -6px; border-radius: 22px; }
  .t-hub2 .t-cat-head { padding: 6px 4px 8px; gap: 12px; } .t-emblem svg { width: 58px; height: 58px; }
  .t-hub2 .t-cat-head h2 { font-size: 1.55rem; } .t-hub2 .t-cat-head p { font-size: .9rem; line-height: 1.4; } .t-hub2 .t-cat-head .t-count { display: none; }
  .t-hub2 .t-card { grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto 1fr; grid-template-areas: "logo name" "logo desc" "logo kind"; column-gap: 14px; padding: 12px 14px 12px 12px; border-radius: 18px; align-items: start; }
  .t-logo { width: 72px; height: 72px; align-self: center; }
  .t-hub2 .t-card b { margin-top: 2px; font-size: 1.06rem; } .t-hub2 .t-card span:not(.t-logo) { margin-top: 3px; font-size: .88rem; line-height: 1.38; }
  .t-hub2 .t-card small { justify-self: start; background: none; padding: 0; margin-top: 7px; font-size: .62rem; }
  .t-sep { height: 60px; margin: 10px 0 8px; }
}

/* ---------- a tool page: the group's banner, the tool, big "More free tools" cards ---------- */
.tp2 { max-width: 1000px; padding-top: 12px; }
.tp2 .crumbs { margin: 0 0 14px; }
.tp-top { position: relative; overflow: hidden; display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 12px 36px;
  min-height: 290px; padding: 56px 44px 24px; border-radius: 34px; background: var(--g-tint); color: var(--ink); }
.tp-bunting { position: absolute; inset: 0 0 auto 0; height: 58px; color: var(--ink-3); }
.tp-bunting svg { display: block; width: 100%; height: 100%; }
.tp-logo { justify-self: center; position: relative; }
.tp-logo img { display: block; width: 210px; height: 210px; transform: rotate(-5deg); filter: drop-shadow(0 18px 16px rgba(24,21,18,.2)); }
.tp-eyebrow { margin: 0 0 10px; font: 700 .76rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--g-ink); }
.tp-eyebrow a { color: inherit; text-decoration: none; } .tp-eyebrow a:hover { text-decoration: underline; }
.tp2 .tp-top h1 { font-size: clamp(2.3rem, 5.2vw, 3.5rem); line-height: 1.02; letter-spacing: -.022em; margin: 0; text-wrap: balance; max-width: 14em; }
.tp2 .tp-top .lead { margin: 14px 0 0; font-size: 1.14rem; line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.tp2 .tool { margin: 14px 0 2rem; padding: 20px 26px; border: 1.5px solid color-mix(in srgb, var(--g) 22%, var(--line)); border-radius: 30px; gap: 14px; }
.tp2 .t-chips input:checked + span { background: var(--g-ink); border-color: var(--g-ink); color: var(--paper); }
.tp2 .t-res > div.big { background: var(--g-tint); }
.tp2 > h2, .tp2 > ul, .tp2 > ol, .tp2 > p, .tp2 > .t-how, .tp2 > .t-faq, .tp2 > noscript, .tp2 > section:not(.tool):not(.tp-related) { max-width: 46rem; }
/* "More options": a fold for the rarely changed choices */
.tp-more { grid-column: 1 / -1; margin: -2px 0 0; }
.tp-more summary { cursor: pointer; font: 600 .86rem/1.2 var(--sans); color: var(--ink-2); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.tp-more summary::-webkit-details-marker { display: none; }
.tp-more summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); font-size: .9rem; }
.tp-more[open] summary::before { content: "\2212"; }
.tp-more .t-seg { margin-top: 10px; }
/* the pizza calculator's answer: the count big, the slices under it, the split as pills */
.t-form.pz { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px 18px; }
.t-res.pz { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: center; padding: 12px 20px; border-radius: 22px; background: var(--g-tint); }
.t-res.pz > div { background: none; border: 0; padding: 0; }
.t-res.pz > div.big { grid-column: auto; display: block; }
.t-form.pz .t-seg { display: block; } .t-form.pz .t-seg > legend { float: left; width: 100%; margin-bottom: 6px; } .t-form.pz .t-seg > legend + * { clear: both; }
.t-res.pz > div.big b, .t-res.pz > div.big > span { display: inline; font: 600 clamp(2.15rem, 5.6vw, 3.15rem)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.t-res.pz > div.big small { display: block; font-size: .95rem; font-weight: 600; color: var(--ink); margin-top: 4px; }
.t-res.pz > div.split b { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; font: 400 .86rem/1.2 var(--sans); }
.t-res.pz > div.split b i { font-style: normal; background: var(--card); border-radius: 12px; padding: 7px 12px; }
.t-res.pz > div.split b i em { font: 600 1.12rem/1 var(--serif); font-style: normal; }
.t-res.pz > div.split > span, .t-res.pz .t-sep2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.t-res.pz > div.cost { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 .3em; font-size: .84rem; color: var(--ink-2); }
.t-res.pz > div.cost b, .t-res.pz > div.cost span, .t-res.pz > div.cost small { display: inline; font: inherit; color: inherit; }
.t-res.pz > div.cost span { order: -1; } .t-res.pz > div.cost span::after { content: ":"; }
.t-res.pz > div.cost small::before { content: "("; } .t-res.pz > div.cost small::after { content: ")"; }
/* more free tools */
.tp-related { margin: 46px 0 0; }
.tp-related h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 6px; }
.tp-related > p { margin: 0 0 18px; color: var(--ink-2); }
.tp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tp-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; background: var(--card); border: 1.5px solid var(--line); border-radius: 24px; color: var(--ink); text-decoration: none; min-width: 0; transition: transform .18s, border-color .18s; }
.tp-card:hover { transform: translateY(-3px); border-color: var(--g); text-decoration: none; }
.tp-card img { display: block; width: 104px; height: 104px; margin: 0 0 10px -4px; }
.tp-card b { font: 600 1.12rem/1.22 var(--serif); }
.tp-card span { font-size: .9rem; line-height: 1.42; color: var(--ink-2); margin-bottom: 12px; }
.tp-card small { margin-top: auto; align-self: flex-start; justify-self: start; width: fit-content; font: 700 .64rem/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--g-ink); background: var(--g-tint); padding: 6px 10px 5px; border-radius: 999px; }
.tp-all { display: inline-block; margin-top: 18px; font-weight: 600; }
@media (max-width: 860px) { .tp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tp-top { min-height: 0; grid-template-columns: 88px minmax(0, 1fr); padding: 40px 16px 16px; border-radius: 24px; margin: 0 -6px; gap: 4px 12px; }
  .tp-top > div:not(.tp-bunting) { display: contents; }
  .tp-logo { grid-row: 1 / span 2; align-self: center; } .tp-logo img { width: 88px; height: 88px; }
  .tp-eyebrow { grid-column: 2; align-self: end; margin: 0; font-size: .62rem; letter-spacing: .1em; }
  .tp2 .tp-top h1 { grid-column: 2; align-self: start; font-size: min(2.05rem, 8vw); line-height: 1.02; }
  /* at most two lines under the title on a phone (Anu) */
  .tp2 .tp-top .lead { grid-column: 1 / -1; margin: 6px 0 0; font-size: .92rem; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .tp2 .crumbs { margin-bottom: 8px; }
  .tp-bunting { height: 38px; }
  .tp2 .tool { margin: 10px -6px 1.6rem; padding: 14px 14px 16px; border-radius: 22px; gap: 10px; }
  .t-form.pz { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; } .t-form.pz fieldset { grid-column: 1 / -1; }
  .t-res.pz { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; gap: 6px; }
  .t-res.pz > div.big small { font-size: .88rem; margin-top: 2px; }
  .t-res.pz > div.split b { justify-content: flex-start; gap: 6px; } .t-res.pz > div.split b i { padding: 6px 10px; font-size: .82rem; border-radius: 10px; } .t-res.pz > div.split b i em { font-size: 1.05rem; }
  .tp2 .t-cta .btn { width: 100%; text-align: center; }
  .tp-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tp-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 14px; row-gap: 2px; padding: 12px 14px 12px 10px; border-radius: 20px; }
  .tp-card img { grid-row: 1 / span 3; width: 76px; height: 76px; margin: 0; align-self: center; }
  .tp-card span { margin-bottom: 4px; } .tp-card small { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .t-logo, .t-hub2 .t-card, .tp-card { transition: none; } .t-hub2 .t-card:hover, .t-hub2 .t-card:hover .t-logo, .tp-card:hover { transform: none; } }
@media print { .t-sep, .tp-top, .tp-related { display: none !important; } .t-hub2 .t-cat { background: none; padding: 0; } }
