/* Free tools, ideas and guides (/tools, /ideas, /guides). Builds on ui.css and site.css. Mobile first.
   Motion and spacing come from custom-property tokens; the design system (public/ds) can override
   them by defining --ds-* (fallbacks below). Only transform and opacity animate. */
:root {
  --l-ease: var(--ds-ease-out, cubic-bezier(.2, .8, .2, 1));
  --l-spring: var(--ds-ease-spring, linear(0, .28 8%, .76 20%, 1.03 32%, 1.1 40%, 1.06 52%, .99 66%, 1));
  --l-fast: var(--ds-dur-fast, 140ms);
  --l-med: var(--ds-dur-med, 320ms);
  --l-tap: 44px;
}
.l-main { padding-bottom: 10px; }
.learn .section h2 { text-align: left; }

/* Icons are painted by script (paint.js); hold their space until then so nothing shifts. */
.learn [data-ic]:not([data-ic-done]):not(.fd-stat):not(.hub-ic)::before { content: ""; display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }

/* breadcrumbs */
.crumbs { margin: 14px 0 0; font-size: .9rem; font-weight: 700; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; opacity: .6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

/* hero */
.l-hero { padding: 16px 0 6px; display: grid; gap: 18px; align-items: center; }
.l-hero h1 { font-size: clamp(1.85rem, 7.4vw, 2.9rem); margin: 0 0 .25em; overflow-wrap: anywhere; }
.l-hero .kicker [data-ic], .l-hero .kicker[data-ic] { display: inline-flex; align-items: center; gap: 6px; }
.l-lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; margin: 0; }
@media (min-width: 860px) { .l-hero.has-art { grid-template-columns: 1.15fr 1fr; padding-top: 26px; } }

/* article */
.l-article, .tool, .l-sec { min-width: 0; }
.l-sec { padding: 22px 0 6px; max-width: 820px; scroll-margin-top: 76px; }
.l-sec h2 { font-size: clamp(1.4rem, 5vw, 1.85rem); margin-bottom: .5em; }
.l-sec h3 { font-size: 1.15rem; margin: 1.1em 0 .4em; }
/* comfortable reading: about 70 characters a line on wide screens (62ch of Nunito digits) */
.l-sec p, .l-intro p, .l-sec > ul, .l-sec > ol, .l-list, .l-steps, .l-lede, .l-faq { max-width: 62ch; }
.l-intro { max-width: 820px; font-size: 1.05rem; }
.l-list { padding-left: 1.2em; margin: .4em 0 1em; display: grid; gap: 6px; }
.l-list.ticks { list-style: none; padding: 0; }
.l-list.ticks li { position: relative; padding-left: 30px; }
.l-list.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 7px; background: var(--accent3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1f4f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.6 4.4 4.4L19 7.4'/%3E%3C/svg%3E") center / 14px no-repeat; }
.l-steps { padding-left: 1.4em; display: grid; gap: 8px; margin: .4em 0 1em; }
.l-cards { display: grid; gap: 12px; grid-template-columns: 1fr; margin: .4em 0 1em; }
@media (min-width: 620px) { .l-cards { grid-template-columns: 1fr 1fr; } }
.l-card { background: var(--card); border-radius: 18px; padding: 14px 16px; box-shadow: 0 3px 12px rgba(40, 20, 90, .07); }
.l-card h3 { font-size: 1.05rem; margin: 0 0 4px; }
.l-card p { margin: 0; color: var(--muted); }
.l-tip { background: color-mix(in srgb, var(--gold) 28%, #fff); border-radius: 16px; padding: 12px 16px; margin: 12px 0; max-width: 68ch; }
.l-tip b { margin-right: 4px; }
.l-note { font-size: .92rem; color: var(--muted); }
.l-more { font-weight: 800; }
.l-quote { margin: 10px 0; padding: 12px 16px; border-left: 5px solid var(--accent2); background: var(--card); border-radius: 0 14px 14px 0; font-style: italic; }
.l-table { overflow-x: auto; margin: .6em 0; -webkit-overflow-scrolling: touch; }
.l-table table { border-collapse: collapse; width: 100%; min-width: 300px; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 3px 12px rgba(40, 20, 90, .07); }
.l-table th, .l-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.l-table thead th { background: var(--bg2); font-family: var(--font-display); font-weight: 600; }
.l-table tbody tr:last-child > * { border-bottom: 0; }

/* at a glance */
.glance { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 14px 0 6px; max-width: 820px; }
@media (min-width: 560px) { .glance { grid-template-columns: 1fr 1fr; } }
.glance > div { background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: 0 3px 12px rgba(40, 20, 90, .07); }
.glance dt { font-weight: 800; color: var(--accent); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 6px; }
.glance dd { margin: 4px 0 0; font-weight: 700; }

/* table of contents */
.l-toc { margin: 14px 0 4px; background: var(--bg2); border-radius: 18px; padding: 12px 16px; max-width: 820px; }
.l-toc ol { margin: 6px 0 0; padding-left: 1.3em; columns: 2 160px; column-gap: 24px; }
.l-toc li { margin: 2px 0; break-inside: avoid; }
.l-toc a { font-weight: 700; color: var(--ink); }

/* run of show */
.runshow { list-style: none; padding: 0; margin: .4em 0 1em; display: grid; gap: 0; max-width: 680px; }
.runshow li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 10px 0; border-bottom: 2px dashed var(--line); }
.runshow.plain li { grid-template-columns: 1fr; }
.runshow time { font-family: var(--font-display); font-weight: 600; color: var(--accent); white-space: nowrap; }
.runshow b { display: block; }
.runshow span { color: var(--muted); }

/* FAQ */
.l-faq { margin: 0; max-width: 820px; }
.l-faq details[open] summary { color: var(--accent); }
.l-faq p { margin: 0 0 12px; }

/* CTA */
.cta-band { position: relative; overflow: hidden; display: grid; gap: 14px; align-items: center; margin: 30px 0 10px; padding: 22px 20px; border-radius: 26px; color: #fff;
  background: linear-gradient(135deg, #7b5cff 0%, #a77bff 55%, #ff8fc0 100%); box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; font-size: clamp(1.35rem, 5vw, 1.8rem); margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .95; max-width: 60ch; }
.cta-band .btn { background: #fff; color: #4a2fd6; justify-self: start; }
.cta-band .cta-txt { position: relative; z-index: 1; }
.cta-art { position: absolute; inset: 0; pointer-events: none; }
.cta-art span { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.cta-art span:nth-child(1) { width: 160px; height: 160px; right: -40px; top: -60px; }
.cta-art span:nth-child(2) { width: 70px; height: 70px; right: 90px; bottom: -30px; background: rgba(255, 209, 102, .35); }
.cta-art span:nth-child(3) { width: 26px; height: 26px; right: 40px; bottom: 30px; background: rgba(141, 227, 198, .6); }
@media (min-width: 760px) { .cta-band { grid-template-columns: 1fr auto; padding: 28px 30px; } .cta-band .btn { justify-self: end; } }

/* related */
.l-related { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .l-related { grid-template-columns: 1fr 1fr; } }
.l-related a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 16px; border-radius: 16px; background: var(--card); text-decoration: none; color: var(--ink); box-shadow: 0 3px 12px rgba(40, 20, 90, .07); transition: transform var(--l-fast) var(--l-ease); }
.l-related a:hover { transform: translateY(-2px); }
.l-related b { color: var(--accent); }
.l-related span { font-size: .92rem; color: var(--muted); }

/* hubs */
.hub-grid { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .hub-grid { grid-template-columns: repeat(3, 1fr); } }
.hub-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border-radius: 22px; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 0 4px 14px rgba(40, 20, 90, .08); transition: transform var(--l-fast) var(--l-ease); }
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hub-card b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.hub-card > span:last-child { color: var(--muted); }
.hub-card .kicker { align-self: flex-start; margin: 0; }
.hub-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--bg2); color: var(--accent); }
.hub-ic .ic { width: 26px; height: 26px; }
.age-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
@media (min-width: 620px) { .age-grid { grid-template-columns: repeat(8, 1fr); } }
.age-grid a { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 16px; background: var(--card); text-decoration: none; color: var(--ink); box-shadow: 0 3px 10px rgba(40, 20, 90, .07); }
.age-grid b { font-family: var(--font-display); font-size: 1.7rem; color: var(--accent); line-height: 1.1; }
.age-grid span { font-size: .78rem; font-weight: 700; color: var(--muted); }

/* theme art */
.th-frame { border-radius: 22px; overflow: hidden; aspect-ratio: 360 / 170; background: radial-gradient(120% 90% at 50% 0%, var(--bg2), var(--bg)); box-shadow: var(--shadow); }
.th-frame svg { display: block; width: 100%; height: 100%; }
.th-frame.sm { border-radius: 18px 18px 0 0; box-shadow: none; }
.l-hero-art { min-width: 0; }
.th-squad { display: flex; justify-content: center; gap: 2px; margin-top: -26px; position: relative; }
.th-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .th-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .th-grid { grid-template-columns: repeat(3, 1fr); } }
.th-tile { display: flex; flex-direction: column; border-radius: 18px; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 0 3px 12px rgba(40, 20, 90, .08); transition: transform var(--l-fast) var(--l-ease); }
.th-tile:hover { transform: translateY(-3px); }
.th-tile-b { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.th-tile b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--accent); }
.th-tile small { color: var(--muted); font-size: .9rem; font-weight: 600; }
.th-invite { display: grid; gap: 22px; align-items: start; }
@media (min-width: 800px) { .th-invite { grid-template-columns: 340px 1fr; } }
.th-invite .phone-mock { height: 520px; }

/* ---------------------------------------------------------------- tools */
.tool { display: grid; gap: 14px; margin: 14px 0 0; }
@media (min-width: 960px) { .tool { grid-template-columns: minmax(320px, 400px) 1fr; align-items: start; } .tool .t-bar { grid-column: 2; } .tool .tool-in { position: sticky; top: 76px; } }
.tool .card { margin: 0; color: var(--cardInk); }
.t-form { display: grid; gap: 6px; }
.t-field { margin: 0 0 10px; min-width: 0; }
.t-field > label, .t-field legend { display: block; font-weight: 800; font-size: .95rem; margin-bottom: 6px; }
.t-hint { display: block; color: var(--muted); font-weight: 600; margin-top: 4px; font-size: .85rem; }
.t-row2 { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.t-row2 > * { min-width: 0; }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t-chip { position: relative; }
.t-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.t-chip span { display: inline-flex; align-items: center; gap: 5px; min-height: var(--l-tap); padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 800; font-size: .92rem; cursor: pointer; transition: transform var(--l-fast) var(--l-ease); user-select: none; }
.t-chip span .ic { color: var(--accent); }
.t-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.t-chip input:checked + span .ic { color: #fff; }
.t-chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.t-chip:active span { transform: scale(.96); }
.t-stepper { display: flex; align-items: stretch; gap: 6px; }
.t-stepper input { flex: 1; min-width: 0; text-align: center; min-height: 46px; border: 2px solid var(--line); border-radius: 14px; font-weight: 800; font-size: 1.1rem; background: #fff; color: var(--cardInk); -moz-appearance: textfield; }
.t-stepper input::-webkit-inner-spin-button, .t-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.t-stepper input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.t-sb { width: 46px; flex: none; border: 0; border-radius: 14px; background: var(--bg2); color: var(--accent); font-size: 1.4rem; font-weight: 800; cursor: pointer; display: none; }
.js .t-sb { display: block; }
.t-sb:active { transform: scale(.93); }
.t-checks { display: grid; gap: 0 10px; grid-template-columns: 1fr 1fr; }
.t-check { font-weight: 700; font-size: .95rem; min-height: var(--l-tap); }
.t-check .box svg { display: block; }
.t-bar { display: flex; flex-wrap: wrap; gap: 8px; min-height: 0; }
.t-out-title { font-size: 1.3rem; margin: 0 0 8px; }
.t-out-title small { font-family: var(--font-body); font-size: .9rem; color: var(--muted); font-weight: 700; margin-left: 6px; }
.t-est { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }
.t-x { border: 0; background: none; font-size: 1.4rem; color: var(--muted); cursor: pointer; width: var(--l-tap); height: var(--l-tap); }
.print-only { display: none; }
.pop { animation: t-pop var(--l-med) var(--l-spring); }
@keyframes t-pop { 0% { transform: scale(.82); } 100% { transform: scale(1); } }

/* checklist */
.ck-head { margin-bottom: 8px; }
.ck-prog { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ck-prog span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent3), #5fd3a8); border-radius: 99px; transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform var(--l-med) var(--l-ease); }
.ck-count { margin: 6px 0 0; font-weight: 700; color: var(--muted); }
.ck-group { margin-top: 14px; }
.ck-group h3 { display: flex; align-items: baseline; gap: 8px; font-size: 1.08rem; margin: 0 0 4px; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
.ck-group h3 span { flex: 1; }
.ck-group h3 time { font-family: var(--font-body); font-size: .85rem; font-weight: 800; color: var(--accent); }
.ck-group h3 small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); }
.ck-group.all h3 { color: #19a974; }
.ck-list { list-style: none; padding: 0; margin: 0; }
.ck-list .chk { align-items: flex-start; font-weight: 600; padding: 6px 0; }
.ck-list .chk .box { margin-top: 1px; }
.ck-list .chk > span:last-child { padding-top: 3px; }
.ck-list input:checked ~ span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.ck-list a { font-weight: 800; }

/* food */
.fd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (min-width: 700px) { .fd-stats { grid-template-columns: repeat(4, 1fr); } }
.fd-stat { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 12px; border-radius: 16px; background: var(--bg2); min-width: 0; }
.fd-stat > .ic { position: absolute; right: 10px; top: 10px; color: var(--accent); width: 22px; height: 22px; }
.fd-n { font-family: var(--font-display); font-size: 2.2rem; line-height: 1.05; color: var(--accent); display: inline-block; }
.fd-l { font-weight: 800; }
.fd-stat small { color: var(--muted); font-weight: 600; font-size: .82rem; }
.fd-list { padding-left: 1.2em; display: grid; gap: 4px; }
.tool-out h3 { font-size: 1.1rem; margin: 12px 0 6px; }

/* budget */
.bd-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 16px; border-radius: 18px; background: var(--bg2); margin-bottom: 12px; }
.bd-total span { font-weight: 800; }
.bd-total b { font-family: var(--font-display); font-size: 2.2rem; color: var(--accent); line-height: 1; display: inline-block; }
.bd-total small { color: var(--muted); font-weight: 700; flex-basis: 100%; }
.bd-table { display: grid; }
.bd-row { display: grid; grid-template-columns: 1fr 118px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bd-row.edited .bd-amt input { border-color: var(--accent); }
.bd-name { min-width: 0; }
.bd-name label { font-weight: 800; display: block; }
.bd-name small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.bd-amt { display: flex; align-items: center; gap: 4px; font-weight: 800; }
.bd-amt input { min-height: 42px; text-align: right; padding: 6px 10px; margin: 0; }
.bd-row.custom .bd-amt { grid-template-columns: auto 1fr auto; }
.bd-row.custom .bd-amt input { width: 100%; }
.bd-row.custom { grid-template-columns: 1fr 150px; }

/* how many kids */
.ic-n { color: var(--accent); display: inline-block; font-size: 1.4em; }
.ic-dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; align-items: center; }
.ic-dots i { width: 18px; height: 18px; border-radius: 50%; background: var(--line); animation: ic-in .35s backwards; animation-delay: calc(var(--d) * 18ms); }
.ic-dots i.on { background: var(--accent); }
.ic-dots em { font-weight: 800; color: var(--muted); font-style: normal; }
@keyframes ic-in { from { transform: scale(0); } }

/* packing */
.pk-groups { display: grid; gap: 4px 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .pk-groups { grid-template-columns: 1fr 1fr; } }
.pk-group h3 { margin: 10px 0 2px; color: var(--accent); }

/* timeline */
.tl-rows { list-style: none; padding: 0; margin: 0; }
.tl-row { display: grid; grid-template-columns: 74px 1fr; gap: 4px 10px; padding: 10px 0; border-bottom: 2px dashed var(--line); align-items: start; }
.tl-row time { font-family: var(--font-display); font-weight: 600; color: var(--accent); padding-top: 8px; white-space: nowrap; }
.tl-main { min-width: 0; }
.tl-name { width: 100%; border: 2px solid transparent; border-radius: 10px; padding: 6px 8px; margin-left: -8px; font-weight: 800; font-size: 1.02rem; background: transparent; color: var(--cardInk); }
.tl-name:hover { border-color: var(--line); }
.tl-name:focus { border-color: var(--accent); outline: none; background: #fff; }
.tl-main small { display: block; color: var(--muted); font-weight: 600; }
.tl-ctl { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tl-ctl button { min-width: var(--l-tap); min-height: var(--l-tap); border-radius: 10px; border: 0; background: var(--bg2); color: var(--accent); font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.tl-min { display: inline-flex; align-items: center; gap: 6px; }
.tl-min b { min-width: 42px; text-align: center; display: inline-block; }
.tl-move { display: inline-flex; gap: 4px; margin-left: auto; }

/* flyer */
.fl-warn { background: color-mix(in srgb, var(--gold) 30%, #fff); border-radius: 14px; padding: 10px 14px; font-weight: 700; margin: 0 0 12px; }
.fl-sheet { display: grid; justify-items: center; }
.fl { width: 100%; max-width: 420px; border-radius: 22px; overflow: hidden; background: var(--bg); color: var(--ink); box-shadow: var(--shadow); font-family: var(--font-body); }
.fl-art { aspect-ratio: 360 / 170; background: radial-gradient(120% 90% at 50% 0%, var(--bg2), var(--bg)); }
.fl-art svg { display: block; width: 100%; height: 100%; }
.fl-body { padding: 14px 18px 18px; text-align: center; }
.fl-eyebrow { margin: 0; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.fl-title { font-family: var(--font-display); color: var(--ink); font-size: clamp(1.6rem, 7vw, 2.2rem); margin: 4px 0 2px; overflow-wrap: anywhere; }
.fl-sub { margin: 0 0 10px; font-weight: 700; opacity: .9; }
.fl-facts { margin: 0 0 12px; display: grid; gap: 6px; background: var(--card); color: var(--cardInk); border-radius: 16px; padding: 10px 14px; text-align: left; }
.fl-facts div { display: grid; grid-template-columns: 58px 1fr; gap: 8px; }
.fl-facts dt { font-weight: 800; color: var(--muted); font-size: .85rem; padding-top: 1px; }
.fl-facts dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.fl-rsvp { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: center; text-align: left; background: var(--card); color: var(--cardInk); border-radius: 16px; padding: 10px; }
.fl-qr { background: #fff; border-radius: 8px; line-height: 0; }
.fl-qr svg { width: 104px; height: 104px; }
.fl-rsvp p { margin: 0; }
.fl-rsvp b { display: block; font-size: 1.05rem; }
.fl-rsvp span { font-size: .88rem; color: var(--muted); font-weight: 600; }
.fl-note { margin: 10px 0 0; font-weight: 800; }

/* class kit note */
.kit-note { background: var(--card); border: 2px dashed var(--line); border-radius: 18px; padding: 16px 20px; max-width: 68ch; }
.kit-sign { margin-top: 24px; }

/* ---------------------------------------------------------------- print */
@media print {
  @page { margin: 12mm; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body.site { background: #fff !important; color: #000; }
  .sitebar, .sitefoot, .crumbs, .no-print, .cta-band, #related, .l-toc, .tool-in, #toast, #confetti, .t-sb { display: none !important; }
  .print-only { display: block !important; }
  .tool { display: block; margin: 0; }
  .tool .card { box-shadow: none; padding: 0; }
  .l-hero { padding: 0 0 6px; }
  .l-hero h1 { font-size: 20pt; }
  .l-hero .kicker { display: none; }
  .l-lede { font-size: 11pt; }
  a { color: inherit !important; text-decoration: none; }
  .ck-group, .pk-group, .l-card, .tl-row, details { break-inside: avoid; }
  .chk .box { border-color: #888 !important; }
  .tl-name { border: 0 !important; padding: 0; margin: 0; }
  details > *:not(summary) { display: block; }
  /* tool pages print only the result (not the article below it) */
  .tool-page .l-main > :not(.tool):not(.l-hero) { display: none !important; }
  .tool-page .l-lede { display: none; }
  /* the flyer prints alone, N per page */
  .tool-flyer .l-hero { display: none; }
  .tool-flyer .fl-sheet { display: grid; gap: 6mm; height: 100%; }
  .fl-sheet .fl, .fl-copy .fl { box-shadow: none; max-width: none; border: 1px dashed #999; border-radius: 6mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; break-inside: avoid; }
  .fl-sheet.fl-n1 .fl { max-width: 150mm; margin: 0 auto; }
  .fl-sheet.fl-n2 { grid-template-columns: 1fr; }
  .fl-sheet.fl-n2 .fl { max-width: 120mm; margin: 0 auto; }
  .fl-sheet.fl-n2 .fl-art { aspect-ratio: 360 / 120; }
  .fl-sheet.fl-n4 { grid-template-columns: 1fr 1fr; }
  .fl-sheet.fl-n4 .fl-body { padding: 8px 10px; }
  .fl-sheet.fl-n4 .fl-title { font-size: 15pt; }
  .fl-sheet.fl-n4 .fl-art { aspect-ratio: 360 / 110; }
  .fl-sheet.fl-n4 .fl-rsvp { grid-template-columns: 70px 1fr; }
  .fl-sheet.fl-n4 .fl-qr svg { width: 70px; height: 70px; }
  .fl-sheet.fl-n4 .fl-facts, .fl-sheet.fl-n4 .fl-rsvp span { font-size: 8pt; }
  .fl-copy { display: block !important; }
  .fl-copy .fl { width: 100%; }
}

/* ---------------------------------------------------------------- touch targets */
.learn .btn.sm { min-height: var(--l-tap); }
.learn .chk { min-height: var(--l-tap); }
.l-toc a { display: inline-block; padding: 6px 0; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs a, .crumbs [aria-current] { display: inline-flex; align-items: center; min-height: var(--l-tap); padding: 0 2px; }
.l-faq summary { min-height: var(--l-tap); }

/* ---------------------------------------------------------------- container queries */
.tool-out { container-type: inline-size; }
@container (min-width: 560px) { .fd-stats { grid-template-columns: repeat(4, 1fr); } .bd-row { grid-template-columns: 1fr 140px; } }

/* ---------------------------------------------------------------- motion (enhancement only) */
@media (prefers-reduced-motion: no-preference) {
  /* the hero and first cards rise in once, staggered */
  .l-hero-txt > *, .l-hero-art, .tool > .card, .hub-grid > li, .age-grid > li { animation: l-rise var(--l-med) var(--l-ease) backwards; }
  .l-hero-txt > :nth-child(2) { animation-delay: 40ms; } .l-hero-txt > :nth-child(3) { animation-delay: 80ms; }
  .l-hero-art, .tool > .card:nth-child(2) { animation-delay: 120ms; }
  .hub-grid > li:nth-child(2), .age-grid > li:nth-child(2) { animation-delay: 80ms; }
  .hub-grid > li:nth-child(3), .age-grid > li:nth-child(3) { animation-delay: 120ms; }
  .hub-grid > li:nth-child(4), .age-grid > li:nth-child(4) { animation-delay: 160ms; }
  .hub-grid > li:nth-child(5), .age-grid > li:nth-child(5) { animation-delay: 200ms; }
  .hub-grid > li:nth-child(6), .age-grid > li:nth-child(6) { animation-delay: 240ms; }
  .hub-grid > li:nth-child(7), .age-grid > li:nth-child(7) { animation-delay: 280ms; }
  .hub-grid > li:nth-child(8), .age-grid > li:nth-child(8) { animation-delay: 320ms; }
  @supports (animation-timeline: view()) {
    /* sections and cards fade up as they scroll in (scroll-driven, compositor only) */
    .l-sec > h2, .l-card, .th-tile, .l-related li, .runshow li {
      animation: l-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%;
    }
  }
  .th-frame.lg svg { animation: l-float 6s ease-in-out infinite; }
  /* page to page within the site: a quick cross-document crossfade where the browser supports it */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
}
@keyframes l-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes l-float { 50% { transform: translateY(-4px); } }

/* ---------------------------------------------------------------- polish */
.learn h1, .learn h2, .learn h3, .cta-band h2, .fl-title { text-wrap: balance; }
.learn p, .learn li, .l-card p { text-wrap: pretty; }
.t-chip:hover span { border-color: var(--accent2); }
.t-sb:hover, .tl-ctl button:hover, .t-x:hover { filter: brightness(.96); }
.t-sb:active, .tl-ctl button:active, .t-x:active { transform: scale(.92); }
.t-sb:disabled, .tl-ctl button:disabled { opacity: .45; cursor: default; transform: none; }
.t-sb, .tl-ctl button, .t-x, .t-chip span { -webkit-tap-highlight-color: transparent; transition: transform var(--l-fast) var(--l-ease); }
.l-related a:focus-visible, .hub-card:focus-visible, .th-tile:focus-visible, .age-grid a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.l-related a:active, .hub-card:active, .th-tile:active, .age-grid a:active { transform: scale(.98); }
.age-grid a { transition: transform var(--l-fast) var(--l-ease); }
.age-grid a:hover { transform: translateY(-2px); }
