/* =========================================================
   TaskCreations version 34: the hubs.
   Loaded last on every page, after theme.css. It adds:
     - the slim header every page shares: the five-color logo, Hubs / Printables & Shop / About on a PC, and the
       menu button on every screen. The menu (a dialog from the right) holds the current hub's tools, every hub and
       the site links. The EN / ES switch lives in the footer only.
     - the home page: the hub launcher (one resume pill, five hub cards, a sheet per hub, the free printables rail,
       one shop banner, About, Privacy and How the templates are made as details); assets/home-hubs.js runs it
     - the hub pages (Operations, Safety, Projects)
   Hub colors are the shop's: Home Office #63B3ED, School #6BCB77, Projects #B89CFF, Operations #F2B705,
   Safety #F47C66. Text on a hub color is always ink, in light and dark.
   Like theme.css, everything sits inside @media screen, so printed pages are untouched.
   ========================================================= */
@media screen {

:root {
  --dot: #c6ccc6;
  --ink-fixed: #1b2125;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-tc-theme="light"]) { --dot: #2b353b; }
}
:root[data-theme="dark"]:not([data-tc-theme="light"]), :root[data-tc-theme="dark"] { --dot: #2b353b; }

/* ---------- header: slim, so the tools get the room ---------- */
:root { --head-h: 58px; }
@media (max-width: 720px) { :root { --head-h: 52px; } }
.site-head .head-in { position: relative; gap: 16px; }
.logo { gap: 10px; }
.logo-mark { width: 32px; height: 32px; display: block; flex: none; color: var(--ink); }
.hub-nav { display: flex; align-items: center; justify-content: flex-end; gap: 2px; flex: 1 1 auto; min-width: 0; }
.hub-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  font: 600 15px/1 var(--f-ui); color: var(--ink); text-decoration: none; white-space: nowrap; }
.hub-nav a:hover { background: var(--surface-2); }
.hub-nav a[aria-current] { background: var(--ink); color: var(--surface); }
.site-head .menu-btn { display: grid; flex: none; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 2px solid var(--edge);
  border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.site-head .menu-btn:hover { background: var(--surface-2); }
.site-head .logo + .menu-btn { margin-left: auto; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .hub-nav { display: none; }
  /* the home page has no menu: its one header link stays on phones */
  [data-page="home"] .hub-nav { display: flex; }
  [data-page="home"] .hub-nav a { min-height: 44px; padding: 0 12px; font-size: 14.5px; white-space: nowrap; }
  .site-head .head-in { justify-content: space-between; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-word { font-size: 19px; }
}
@media (max-width: 380px) {
  /* the smallest phones: logo and the one link side by side, in Spanish too */
  [data-page="home"] .logo { gap: 8px; }
  [data-page="home"] .logo-mark { width: 28px; height: 28px; }
  [data-page="home"] .logo-word { font-size: 17px; }
  [data-page="home"] .hub-nav a { padding: 0 8px; font-size: 13.5px; }
}

/* the round close button the home page's hub sheets use */
.tc-x { display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid var(--edge); border-radius: 999px;
  background: var(--surface); color: var(--ink); cursor: pointer; }
.tc-x:hover { background: var(--surface-2); }
.tc-x svg { width: 18px; height: 18px; }

/* ---------- the menu (version 44): a card that drops in under the top bar, below the menu button ----------
   A native popover: Esc, a tap outside and the menu button close it. Only the site's own tokens: surface for the card,
   surface-2 for hover and the page you're on, line for hairlines, muted for quiet text, --shadow for the lift, and each
   hub's --hub (set from build.py's HUBS) for the dots. */
.site-head .menu-btn { anchor-name: --tc-menu-btn; }
/* while it's open the button shows an x (site.css swaps the icons on aria-expanded; this covers a page whose script
   hasn't run), and the top bar stays in view, above the dimmed page */
:root:has(#tc-menu:popover-open) .menu-btn .bars { display: none; }
:root:has(#tc-menu:popover-open) .menu-btn .x { display: block; }
:root:has(#tc-menu:popover-open) .site-head { translate: none !important; }
:root:has(#tc-menu:popover-open) { --stick-top: calc(env(safe-area-inset-top, 0px) + var(--head-h)) !important; }

/* the layer under the top bar: it dims the page and takes any tap on it (site.js closes the menu), so nothing under
   it gets pressed or scrolled; the top bar stays clear above it */
.tc-pop { box-sizing: border-box; position: fixed; inset: auto 0 0 0; top: calc(env(safe-area-inset-top, 0px) + var(--head-h) + 2px);
  width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: var(--ink);
  background-color: color-mix(in srgb, var(--ink-fixed) 35%, transparent); overflow: hidden; overscroll-behavior: contain;
  opacity: 0; transition-property: opacity, display, overlay; transition-duration: .18s; transition-timing-function: ease-out;
  transition-behavior: allow-discrete; }
.tc-pop:is(:popover-open, .tc-open) { display: block; opacity: 1; }
@starting-style { .tc-pop:is(:popover-open, .tc-open) { opacity: 0; } }
.tc-pop::backdrop { display: none; }
/* the card: 8px under the top bar (its 2px bottom line included), 12px from the right edge on a phone; on wider screens
   it lines up under the menu button (anchor positioning; where a browser lacks it, the 12px stays) */
.tc-card { box-sizing: border-box; position: fixed; top: calc(env(safe-area-inset-top, 0px) + var(--head-h) + 10px);
  right: 12px; right: max(12px, calc(anchor(--tc-menu-btn right) - 4px));
  display: flex; flex-direction: column; width: min(80vw, 312px); height: auto; max-height: calc(100dvh - env(safe-area-inset-top, 0px) - var(--head-h) - 26px);
  overflow: hidden; overscroll-behavior: contain; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  /* a faint hairline edge (it keeps the card's shape clear in the dark look, and shows in Windows high contrast) */
  outline: 1px solid color-mix(in srgb, var(--line) 70%, transparent); outline-offset: -1px;
  transform-origin: top right; transition-property: scale, translate; transition-duration: .18s; transition-timing-function: cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: no-preference) {
  .tc-card { scale: .97; translate: 0 -6px; }
  .tc-pop:is(:popover-open, .tc-open) .tc-card { scale: 1; translate: 0 0; }
  @starting-style { .tc-pop:is(:popover-open, .tc-open) .tc-card { scale: .97; translate: 0 -6px; } }
  @starting-style { .menu-btn[aria-expanded="true"] .x { rotate: -90deg; opacity: 0; } }
  .menu-btn .x { transition: rotate .18s cubic-bezier(.2, .8, .2, 1), opacity .18s; }
}
@media (prefers-reduced-motion: reduce) { .tc-pop { transition-duration: .1s; } }
/* a browser without popovers: the menu stays out of the header until site.js opens it */
@supports not selector(:popover-open) { .tc-pop:not(.tc-open) { display: none; } }

/* top: Home */
.dr-home { flex: none; display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 8px 8px 0; padding: 0 12px; border-radius: 10px;
  font: 500 16px/1.2 var(--f-ui); color: var(--ink); text-decoration: none; }
.dr-ico { flex: none; width: 20px; height: 20px; color: var(--muted); }
/* middle: the hubs between two hairlines; only this part scrolls when the screen is short */
.dr-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-top: 8px; padding: 12px 8px 10px;
  border-block: 1px solid var(--line); }
.dr-h { margin: 0 0 4px; padding: 0 12px; font: 600 12px/1.4 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dr-hubs { list-style: none; margin: 0; padding: 0; }
.dr-hub + .dr-hub { margin-top: 2px; }
.dr-sum { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; margin: 0; padding: 0 12px; border: 0; border-radius: 10px;
  background: transparent; font: 600 16px/1.2 var(--f-ui); color: var(--ink); text-align: start; cursor: pointer; }
.dr-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--hub); }
.dr-chev { flex: none; width: 16px; height: 16px; margin-left: auto; color: var(--muted); }
.dr-sum[aria-expanded="true"] .dr-chev { rotate: 180deg; }
/* a hub's tools sit behind one faint guide line, lined up under the hub's dot */
.dr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.dr-hub > .dr-list { margin: 2px 0 6px 15.5px; padding-left: 8px; border-left: 1px solid var(--line); }
.dr-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  font: 500 15px/1.25 var(--f-ui); color: var(--ink-2); text-decoration: none; }
.dr-link .dr-ico { width: 16px; height: 16px; }
/* the page you're on: a soft pill, a little bolder, and the hub's dot at the right edge */
.dr-link[aria-current] { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.dr-link[aria-current]::after { content: ""; flex: none; width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--hub); }
.dr-link[aria-current] .dr-ico { color: var(--ink); }
.dr-link.soon { justify-content: space-between; color: var(--muted); }
.dr-soon { font: 500 12.5px/1 var(--f-ui); color: var(--muted); }
.dr-tag { margin-left: auto; padding: 4px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font: 600 11.5px/1 var(--f-ui); }
/* opening and closing a hub slides (where the browser can size to auto); otherwise it snaps, which works the same */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .dr-hub > .dr-list { interpolate-size: allow-keywords; block-size: auto; clip-path: inset(-6px);
      transition: block-size .22s ease-in-out, margin .22s ease-in-out, content-visibility .22s; transition-behavior: allow-discrete; }
    .dr-hub > .dr-list[hidden] { display: flex !important; block-size: 0; margin-block: 0; content-visibility: hidden; }
    .dr-chev { transition: rotate .2s; }
  }
}
/* bottom: Printables & Shop, then About (version 46), under the second hairline */
.dr-foot { flex: none; display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.dr-shop { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 10px;
  font: 500 16px/1.2 var(--f-ui); color: var(--ink); text-decoration: none; }
.dr-about { min-height: 44px; }
.dr-shop[aria-current] { background: var(--surface-2); font-weight: 600; }
.dr-go { flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--muted); }
/* hover tints only where there's a real pointer, so a tap on a phone doesn't leave a row tinted */
@media (hover: hover) {
  .dr-home:hover, .dr-sum:hover, .dr-shop:hover { background: var(--surface-2); }
  a.dr-link:hover { background: var(--surface-2); color: var(--ink); }
}
/* Windows high contrast: the page you're on keeps an outline, and the dots keep their color */
@media (forced-colors: active) {
  .dr-link[aria-current], .dr-shop[aria-current] { outline: 1px solid CanvasText; }
  .dr-dot, .dr-link[aria-current]::after { forced-color-adjust: none; }
}

/* the phone bottom bar is gone, so nothing needs room under the page any more */
@media (max-width: 900px) {
  body { padding-bottom: 0; }
  .msg { bottom: max(20px, env(safe-area-inset-bottom, 0px)); }
}

/* ---------- footer ---------- */
.site-foot::before { height: 6px; background: linear-gradient(90deg, #63b3ed 0 20%, #6bcb77 20% 40%, #b89cff 40% 60%, #f2b705 60% 80%, #f47c66 80%); }
.foot-set { display: flex; align-items: center; gap: 12px; }
.site-foot .lang { border-color: #ffffff; background: transparent; }
.site-foot .lang button { color: #ffffff; }
.site-foot .lang button[aria-pressed="true"] { background: #ffffff; color: #1b2125; }

/* ---------- shared pieces: buttons, hub colors ---------- */
.hh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 2px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink);
  font: 700 15px/1 var(--f-ui); text-decoration: none; box-shadow: 3px 3px 0 var(--drop); cursor: pointer; white-space: nowrap; }
.hh-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--drop); }
.hh-shop { display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; color: var(--ink); }
.chev { width: 18px; height: 18px; flex: none; }
.hh-soon { flex: none; font: 600 12.5px/1 var(--f-ui); color: var(--muted); }

/* ---------- folder pieces the hub pages use (tab, card, band, tool rows, characters) ---------- */
main.hh { background: var(--surface); }
.hh-badge { background: var(--ink); color: var(--surface); font: 600 13px/1 var(--f-ui); padding: 8px 13px; border-radius: 999px; transform: rotate(-2deg); }
.hh-tab { position: absolute; top: 0; left: 0; z-index: 2; height: 34px; padding: 0 24px 0 16px; border: 2px solid var(--edge); border-bottom: 0;
  border-right: 0; border-radius: 11px 0 0 0; background: var(--hub); color: var(--ink-fixed); font: 700 17px/32px var(--f-cond); white-space: nowrap; }
.hh-slant { position: absolute; z-index: -1; top: -2px; right: -26px; width: 30px; height: 36px; border-top: 2px solid var(--edge);
  border-right: 2px solid var(--edge); border-top-right-radius: 7px; background: var(--hub); transform: skewX(32deg); transform-origin: bottom left; }
.hh-card { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--edge);
  border-radius: 0 16px 16px 16px; overflow: hidden; }
.hh-band { flex: none; height: 12px; background: var(--hub); border-bottom: 2px solid var(--edge); }
.hh-tools { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hh-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 6px 10px 6px 12px;
  border-radius: 10px; color: var(--ink); text-decoration: none; }
a.hh-row { background: var(--surface-2); }
a.hh-row:hover { background: var(--seg-track-canvas); }
.hh-row.soon { color: var(--muted); border: 2px dashed var(--line-2); }
.hh-row-n { display: flex; flex-direction: column; min-width: 0; font: 700 16px/1.2 var(--f-ui); }
.hh-row.soon .hh-row-n { font-weight: 600; }
.hh-row-d { display: block; margin-top: 2px; font: 400 13.5px/1.35 var(--f-ui); color: var(--muted); }
.hh-char { position: absolute; width: 56px; height: 56px; pointer-events: none; }
.hh-on-band { top: -8px; right: 28px; z-index: 0; width: 62px; height: 62px; transform: translateY(-6px); }
.hh-on-band.hh-mid { left: 56%; right: auto; }
/* version 45: pieces only the PC layout shows (the tool card preview and bottom line, the tab's shoulder, the header pills) */
.hh-prev, .hh-go, .hh-shoulder, .hh-outline, .hb-stats { display: none; }
/* the folder's outline, drawn by site.js as one SVG path at every size (version 47; PC only in version 46), so its lines
   meet cleanly at any screen scale. Once it's drawn (data-drawn) the CSS borders go clear (they keep their 2 px for
   spacing), the tab's slanted side gives way to the drawn one, and the hard shadow starts under the lip, where the
   top-right corner's curve ends. Without the script the folder keeps its CSS borders. */
.hb-folder[data-drawn] .hh-tab, .hb-folder[data-drawn] .hh-card, .hb-folder[data-drawn] .hh-band { border-color: transparent; }
.hb-folder[data-drawn] .hh-tab, .hb-folder[data-drawn] .hh-card { background-clip: padding-box; }
.hb-folder[data-drawn] .hh-slant, .hb-folder[data-drawn] .hh-shoulder { display: none; }
.hb-folder[data-drawn] .hh-outline { display: block; position: absolute; z-index: 4; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hb-folder[data-drawn] .hh-card { box-shadow: none; }
.hb-folder[data-drawn]::after { content: ""; position: absolute; z-index: 0; top: calc(var(--fold-p) + 16px); left: 6px; right: -6px; bottom: -6px;
  border-radius: 0 0 16px 16px; background: var(--drop); pointer-events: none; }
.hh-ol-f { fill: var(--hub); }
.hh-ol-s { fill: none; stroke: var(--edge); stroke-width: 2; }

/* ---------- home (version 33): the hub launcher ---------- */
.hl-top-zone { background-color: var(--steel); background-image: radial-gradient(var(--dot) 1.3px, transparent 1.3px); background-size: 22px 22px;
  border-bottom: 2px solid var(--edge); padding: 40px 0 56px; }
.hl-hero { max-width: 780px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hl-hero h1 { margin: 14px 0 0; font: 700 clamp(36px, 5.2vw, 60px)/1.02 var(--f-cond); letter-spacing: -.01em; text-wrap: balance; }
/* one pill back to the last tool that holds work on this device; the script in <head> names it, first visits see none */
.hl-pick { display: contents; }
.hl-resume { display: none; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; padding: 0 16px 0 12px; border: 2px solid var(--edge);
  border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: 3px 3px 0 var(--drop); font: 700 15px/1 var(--f-ui);
  text-decoration: none; white-space: nowrap; }
:root[data-tc-saved="tasks"] .hl-resume[data-pick="tasks"], :root[data-tc-saved="talk"] .hl-resume[data-pick="talk"],
:root[data-tc-saved="breaks"] .hl-resume[data-pick="breaks"], :root[data-tc-saved="cards"] .hl-resume[data-pick="cards"],
:root[data-tc-saved="desk"] .hl-resume[data-pick="desk"], :root[data-tc-saved="items"] .hl-resume[data-pick="items"],
:root[data-tc-saved="schedule"] .hl-resume[data-pick="schedule"], :root[data-tc-saved="cross"] .hl-resume[data-pick="cross"],
:root[data-tc-saved="awards"] .hl-resume[data-pick="awards"], :root[data-tc-saved="focus"] .hl-resume[data-pick="focus"],
:root[data-tc-saved="assign"] .hl-resume[data-pick="assign"], :root[data-tc-saved="onepager"] .hl-resume[data-pick="onepager"] { display: inline-flex; }
.hl-resume-i { width: 18px; height: 18px; flex: none; color: var(--ink); }
.hl-resume:hover { background: var(--surface-2); }
.hl-resume:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--drop); }
/* the other language, small and quiet: Caveat, one line, so it never re-wraps when its font arrives */
/* "Pick up where you left off": one link per tool; the script in <head> names the tool with saved data, if any */
.hl-pick { display: contents; }

/* the five hub cards: 3 + 2 on a PC (the second row centered), 2 + 2 + 1 on a tablet, a list on a phone */
.hl-hubs { margin-top: 36px; }
.hl-h2 { margin: 0 0 16px; font: 700 28px/1.05 var(--f-cond); }
.hl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.hl-grid > li { grid-column: span 2; display: flex; min-width: 0; }
.hl-grid > li:nth-child(4) { grid-column: 2 / span 2; }
.hl-card { position: relative; flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  width: 100%; min-height: 128px; margin: 0; padding: 26px 16px 18px 18px; border: 2px solid var(--edge); border-radius: 16px; background: var(--surface);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer; overflow: hidden; box-shadow: 4px 4px 0 var(--drop); }
.hl-card:hover { background: var(--surface-2); }
.hl-card:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--drop); }
.hl-card:focus-visible { outline-offset: 3px; }
.hl-band { position: absolute; top: 0; left: 0; right: 0; height: 10px; background: var(--hub); border-bottom: 2px solid var(--edge); }
.hl-ico { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border: 2px solid var(--edge); border-radius: 14px; background: var(--hub-soft); }
.hl-char { display: block; width: 42px; height: 42px; }
.hl-txt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.hl-name { font: 700 25px/1.05 var(--f-cond); }
.hl-count { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border: 2px solid var(--edge); border-radius: 999px;
  background: var(--hub); color: var(--ink-fixed); font: 700 12.5px/1 var(--f-ui); white-space: nowrap; }
.hl-count.soon { border-style: dashed; border-color: var(--line-2); background: transparent; color: var(--muted); font-weight: 600; }
.hl-for { flex-basis: 100%; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.hl-card .chev { color: var(--ink); }

/* the hub sheet: a centered dialog on a PC, a bottom sheet on a phone (below) */
dialog.hl-sheet { box-sizing: border-box; width: min(560px, calc(100% - 40px)); max-width: none; max-height: min(86dvh, 760px); margin: auto; padding: 0;
  border: 2px solid var(--edge); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 8px 8px 0 var(--drop);
  opacity: 0; transition-property: opacity, transform, display, overlay; transition-duration: .22s; transition-timing-function: cubic-bezier(.2, .8, .2, 1);
  transition-behavior: allow-discrete; }
dialog.hl-sheet:modal { overscroll-behavior: contain; }
dialog.hl-sheet[open]:not([data-closing]) { opacity: 1; }
@starting-style { dialog.hl-sheet[open]:not([data-closing]) { opacity: 0; } }
dialog.hl-sheet::backdrop { overflow: hidden; overscroll-behavior: contain; background-color: rgb(27 33 37 / 0);
  transition-property: background-color, display, overlay; transition-duration: .22s; transition-behavior: allow-discrete; }
dialog.hl-sheet[open]:not([data-closing])::backdrop { background-color: rgb(27 33 37 / .55); }
@starting-style { dialog.hl-sheet[open]:not([data-closing])::backdrop { background-color: rgb(27 33 37 / 0); } }
@media (prefers-reduced-motion: no-preference) {
  dialog.hl-sheet { transform: translateY(14px) scale(.97); }
  dialog.hl-sheet[open]:not([data-closing]) { transform: none; }
  @starting-style { dialog.hl-sheet[open]:not([data-closing]) { transform: translateY(14px) scale(.97); } }
}
@media (prefers-reduced-motion: reduce) { dialog.hl-sheet, dialog.hl-sheet::backdrop { transition-duration: .1s; } }
dialog.hl-sheet.is-dragging { transition: none; }
dialog.hl-sheet { overflow-y: auto; }
.hl-sheet-in { padding: 0 22px 22px; }
.hl-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: flex-end; min-height: 50px;
  margin: 0 -22px; padding: 0 12px; background: var(--surface); }
.hl-grab { display: none; }
.hl-head { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.hl-head h1 { margin: 0; font: 700 34px/1 var(--f-cond); }
.hl-head p { margin: 4px 0 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.hl-tools { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hl-tool { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 12px 8px 14px; border-radius: 12px;
  color: var(--ink); text-decoration: none; }
a.hl-tool { background: var(--surface-2); border-left: 6px solid var(--hub); }
a.hl-tool:hover { background: var(--seg-track-canvas); }
.hl-tool.soon { color: var(--muted); border: 2px dashed var(--line-2); }
.hl-tool-n { display: flex; flex-direction: column; min-width: 0; font: 700 17px/1.2 var(--f-ui); }
.hl-tool.soon .hl-tool-n { font-weight: 600; }
.hl-tool-d { display: block; margin-top: 3px; font: 400 14px/1.35 var(--f-ui); color: var(--muted); }
.hl-soon { flex: none; font: 600 12.5px/1 var(--f-ui); color: var(--muted); }
.hl-dl { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-weight: 700; color: var(--ink-fixed); text-underline-offset: 3px; }
.hl-dl-i { width: 17px; height: 17px; flex: none; }
.hl-dl-m { color: #4d5960; white-space: nowrap; }
.hl-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; margin-top: 20px; padding-top: 16px;
  border-top: 2px dashed var(--line-2); }
.hl-open { background: var(--hub); color: var(--ink-fixed); }
.hl-shoplink { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ink); text-underline-offset: 3px; }

/* Resources (version 46): six listing cards like the hub pages', three across on a PC and a tablet, so each row is a free
   sample, its full version and one more listing; a swipe rail on a phone (below) keeps each sample next to its full version */
.hl-res { padding-block: 52px 8px; }
.hl-res-grid.rs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* each card holds its own hidden screen-reader text, so in the phone rail it scrolls with the card instead of widening the page */
.hl-res-grid > li { position: relative; }

/* one shop banner */
.hl-shop { padding-block: 44px 8px; }
.hl-shop-in { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px;
  padding: 34px 30px 30px; border-radius: 18px; background: var(--ink); color: var(--surface); overflow: hidden; }
.hl-shop-in::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background: linear-gradient(90deg, #63b3ed 0 20%, #6bcb77 20% 40%, #b89cff 40% 60%, #f2b705 60% 80%, #f47c66 80%); }
.hl-shop h2 { margin: 0 0 6px; font: 700 30px/1.05 var(--f-cond); color: var(--surface); }
.hl-shop p { margin: 0; max-width: 54ch; font-size: 15.5px; line-height: 1.5; color: var(--surface); }
.hl-shop-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 2px solid var(--surface); border-radius: 12px;
  background: var(--surface); color: var(--ink); font: 700 16px/1 var(--f-ui); text-decoration: none; white-space: nowrap; }
.hl-shop-btn .ext { width: 16px; height: 16px; }
.hl-shop-btn:hover { background: transparent; color: var(--surface); }

/* About, a little tighter than the old home */
.hl-about { padding-block: 72px 28px; }
.hl-about .hm-route h3 { margin: 16px 0 12px; font: 700 21px/1.2 var(--f-cond); letter-spacing: 0; text-transform: none; color: var(--ink); }

/* Privacy and How the templates are made: plain details, then the contact line */
.hl-trust { display: flex; flex-direction: column; gap: 12px; padding-block: 30px 60px; }
.hl-det { border: 2px solid var(--edge); border-radius: 14px; background: var(--surface); }
.hl-det > summary { list-style: none; display: flex; align-items: center; gap: .7ch; min-height: 54px; padding: 0 18px; font: 700 19px/1.2 var(--f-cond);
  cursor: pointer; border-radius: 12px; }
.hl-det > summary::-webkit-details-marker { display: none; }
.hl-det > summary::before { content: ""; flex-shrink: 0; width: 14px; height: 14px; background-color: currentColor; rotate: -90deg;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 5l4.5 4.5L11.5 5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.hl-det > summary:dir(rtl)::before { rotate: 90deg; }
.hl-det[open] > summary::before { rotate: 0deg; }
.hl-det > summary:hover { background: var(--surface-2); }
.hl-det-body { max-width: 72ch; padding: 0 18px 16px calc(18px + 14px + .7ch); }
.hl-det-body p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.hl-det-body p:last-child { margin-bottom: 0; }
.hl-det::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.hl-det:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hl-det > summary::before { transition: rotate .2s; }
  .hl-det::details-content { transition: block-size, content-visibility; transition-duration: .25s; transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete; }
}
.hl-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 18px; padding-top: 24px;
  border-top: 2px dashed var(--line-2); }
.hl-contact h2 { margin: 0 0 4px; font: 700 23px/1.15 var(--f-cond); }
.hl-contact p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.hl-contact .ext { width: 15px; height: 15px; }

/* ---------- section heads on the hub pages and home ---------- */
.hh-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 24px; margin-bottom: 18px; }
.hh-sec-head h2, .hb-sec > h2 { margin: 0 0 4px; font: 700 30px/1.05 var(--f-cond); }
.hh-sec-head p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- hub pages ---------- */
main.hb { background: var(--steel); }
.hb-hero { background-color: var(--steel); background-image: radial-gradient(var(--dot) 1.3px, transparent 1.3px); background-size: 22px 22px;
  border-bottom: 2px solid var(--edge); padding: 14px 0 44px; }
.hb-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 0 0 22px; }
.hb-title h1 { margin: 0; font: 700 clamp(34px, 4vw, 52px)/1 var(--f-cond); }
.hb-title p { margin: 0; font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.hb-folder { --fold-p: 34px; position: relative; padding-top: var(--fold-p); }
.hb-folder .hh-tab { height: 36px; font-size: 19px; line-height: 34px; }
.hb-folder .hh-slant { height: 38px; }
.hb-folder .hh-card { box-shadow: 6px 6px 0 var(--drop); }
.hb-in { padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 16px; }
.hb-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.hb-tools .hh-row { min-height: 64px; padding: 10px 14px; }
.hb-tools .hh-row-n { font-size: 17px; }
.hb-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 18px; padding-top: 14px;
  border-top: 2px dashed var(--line-2); }
.hb-foot p { margin: 0; font-size: 14px; color: var(--muted); }
.hb-sec { padding-block: 40px 8px; }
.hb-sec:last-child { padding-bottom: 56px; }

/* ---------- tool pages: the hub bar on top of each tool ---------- */

/* ---------- tablets and phones ---------- */
@media (max-width: 1023px) {
  .hl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hl-grid > li, .hl-grid > li:nth-child(4) { grid-column: span 2; }
  .hl-grid > li:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 767px) {
  .hl-top-zone { padding: 16px 0 28px; }
  .hh-badge { font-size: 12px; padding: 6px 11px; }
  .hl-hero h1 { margin-top: 10px; font-size: clamp(28px, 8vw, 34px); line-height: 1.04; }
  .hl-resume { margin-top: 12px; }
  /* the quick launch row scrolls sideways under the hero */
  .hl-hubs { margin-top: 22px; }
  .hl-h2 { font-size: 24px; margin-bottom: 12px; }
  .hl-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hl-grid > li, .hl-grid > li:nth-child(4), .hl-grid > li:nth-child(5) { grid-column: auto; }
  .hl-card { min-height: 0; gap: 12px; padding: 20px 12px 14px 14px; border-radius: 14px; box-shadow: 3px 3px 0 var(--drop); }
  .hl-band { height: 8px; }
  .hl-ico { width: 48px; height: 48px; border-radius: 12px; }
  .hl-char { width: 36px; height: 36px; }
  .hl-name { font-size: 22px; }
  .hl-for { font-size: 14px; }
  /* the hub sheet slides up from the bottom */
  dialog.hl-sheet { width: 100%; max-height: 88dvh; margin: auto 0 0; border-width: 2px 0 0; border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 30px -14px rgb(0 0 0 / .4); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .hl-sheet-in { padding: 0 16px 18px; }
  .hl-top { justify-content: flex-end; min-height: 56px; margin: 0 -16px; padding: 0 10px; border-radius: 20px 20px 0 0; touch-action: none; cursor: grab; }
  .hl-grab { display: block; position: absolute; left: 50%; top: 9px; width: 44px; height: 5px; margin-left: -22px; border-radius: 99px; background: var(--line-2); }
  .hl-head { margin: -4px 0 16px; }
  .hl-head h1 { font-size: 30px; }
  .hl-act { flex-direction: column; align-items: stretch; }
  .hl-open { width: 100%; min-height: 50px; }
  .hl-shoplink { justify-content: center; }
  /* Resources: a swipe rail, about 1.3 cards in view */
  .hl-res { padding-block: 40px 4px; }
  .hl-res-grid.rs-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 12px; scroll-padding-inline: var(--gutter); }
  .hl-res-grid > li { flex: 0 0 76%; scroll-snap-align: start; }
  .hl-shop { padding-block: 32px 4px; }
  .hl-shop-in { padding: 28px 20px 22px; }
  .hl-shop h2 { font-size: 26px; }
  .hl-shop-btn { width: 100%; justify-content: center; }
  .hl-about { padding-block: 48px 12px; gap: 48px; }
  .hl-about .hm-me p { font-size: 16px; line-height: 1.6; }
  .hl-trust { padding-block: 24px 44px; }
  .hl-det-body { padding-left: 18px; }
  .hl-contact .hh-btn { width: 100%; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  dialog.hl-sheet { transform: translateY(100%); transition-duration: .3s; }
  dialog.hl-sheet[open]:not([data-closing]) { transform: translateY(var(--drag, 0px)); }
  @starting-style { dialog.hl-sheet[open]:not([data-closing]) { transform: translateY(100%); } }
}
@media (max-width: 760px) {
  .hb-tools { grid-template-columns: minmax(0, 1fr); }
  .hb-in { padding: 14px 14px 16px; }
  .hh-on-band { top: -2px; right: 18px; width: 48px; height: 48px; }
}

/* ---------- tool pages: a slimmer title area on phones, so the tool starts higher ---------- */
@media (max-width: 760px) {
  [data-tool] .tool-head { padding-block: 12px 10px; }
  [data-tool] .tool-head h1 { font-size: 24px; }
  [data-tool] .tool-head .lead { margin-top: 4px; font-size: 14px; line-height: 1.4; }
  .hb-hero { padding-top: 18px; }
}

/* ---------- version 41: the shop listings live on the hub pages, after the free printables (tool pages are only the tool) ---------- */
/* four across on a computer and two on a phone, so four or eight cards always fill their rows (the shared grid goes 3 across at 1000 px and 5 on wide screens) */
.hb-shop-grid.rs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .hb-shop-grid.rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- version 45: the hub pages on a PC (1024 px and up only; phones and tablets keep the layout above) ----------
   A wider page, header pills, the folder's tab drawn as one shape into the lip, and each tool as a tall card. */
@media (min-width: 1024px) {
  .hb .wrap { max-width: min(94vw, 1460px); padding-inline: 0; }
  .hb-hero { padding: 26px 0 64px; }
  .hb-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h s" "p s"; align-items: end; gap: 8px 32px; margin-bottom: 30px; }
  .hb-title h1 { grid-area: h; }
  .hb-title p { grid-area: p; font-size: 17px; }
  .hb-stats { grid-area: s; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .hb-stat { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border: 2px solid var(--line-2); border-radius: 999px;
    background: var(--surface); color: var(--ink-2); font: 600 14px/1 var(--f-ui); white-space: nowrap; }
  .hb-stat-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--hub); box-shadow: 0 0 0 2px var(--edge); }

  /* the folder: a 40 px tab. Until site.js draws the outline (or without it), the CSS borders show with this shoulder */
  .hb-folder { --fold-p: 40px; }
  .hb-folder .hh-tab { height: 42px; padding: 0 4px 0 20px; font-size: 20px; line-height: 38px; }
  .hb-folder .hh-slant { display: none; }
  .hh-shoulder { display: block; position: absolute; top: -2px; left: calc(100% - 1px); width: 50px; height: 42px; overflow: visible; }
  .hh-sh-f { fill: var(--hub); }
  .hh-sh-s { fill: none; stroke: var(--edge); stroke-width: 2; }
  .hb-folder[data-drawn] .hh-shoulder { display: none; }
  /* the hard shadow starts under the lip here even before the outline is drawn */
  .hb-folder .hh-card { box-shadow: none; }
  .hb-folder::after { content: ""; position: absolute; z-index: 0; top: calc(var(--fold-p) + 16px); left: 6px; right: -6px; bottom: -6px;
    border-radius: 0 0 16px 16px; background: var(--drop); pointer-events: none; }
  .hb-folder .hh-on-band, .hb-folder .hh-on-band.hh-mid { top: -4px; left: auto; right: 34px; width: 64px; height: 64px; }
  .hb-in { padding: 28px 30px 26px; gap: 26px; }

  /* the tools: three tall cards (two on Home Office), all the same height */
  .hb-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .hb-tools.hb-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-tools > li { display: flex; min-width: 0; }
  .hb-tools .hh-row { position: relative; flex: 1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; min-height: 0;
    padding: 0; overflow: hidden; border: 2px solid var(--edge); border-radius: 14px; background: var(--surface); }
  .hb-tools a.hh-row { box-shadow: 3px 3px 0 var(--drop); }
  .hb-tools a.hh-row:hover { background: var(--surface); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--drop); }
  .hb-tools a.hh-row:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--drop); }
  .hb-tools .hh-row.soon { border: 2px dashed var(--line-2); background: transparent; }
  .hb-tools .hh-row > .chev { display: none; }
  .hh-prev { display: block; flex: none; height: 176px; padding: 10px; border-bottom: 2px solid var(--edge); background: var(--hub-soft); }
  .hh-prev svg { display: block; width: 100%; height: 100%; }
  .hh-row.soon .hh-prev { border-bottom: 2px dashed var(--line-2); filter: grayscale(1); opacity: .5; }
  .hb-tools .hh-row-n { padding: 18px 20px 20px; font-size: 20px; line-height: 1.2; }
  /* the live dot: a no-break space keeps it on the line with the title's last word */
  .hb-tools a.hh-row .hh-row-n > span:first-child::after { content: "\202F"; padding-right: 16px;
    background: radial-gradient(circle closest-side, var(--hub) 58%, var(--edge) 62% 94%, transparent 100%) no-repeat right 1px center / 12px 12px; }
  .hb-tools .hh-row.soon .hh-row-n { padding-right: 84px; }
  .hb-tools .hh-row-d { margin-top: 6px; font-size: 15px; line-height: 1.45; }
  .hb-tools .hh-soon { position: absolute; top: 194px; right: 18px; display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px;
    border: 2px dashed var(--line-2); border-radius: 999px; }
  .hh-go { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; min-height: 42px; margin: auto 20px 20px; padding: 0 16px;
    border: 2px solid var(--edge); border-radius: 12px; background: var(--hub); color: var(--ink-fixed); font: 700 15px/1 var(--f-ui); white-space: nowrap; }
  .hh-go svg { width: 18px; height: 18px; flex: none; }
  .hh-go.soon { border: 2px dashed var(--line-2); background: transparent; color: var(--muted); font-weight: 600; }
  .hb-foot { padding-top: 18px; }
  .hb-foot p { font-size: 15px; }

  /* the drawings: paper stays white in both themes (--paper), the hub color does the rest */
  .hh-prev .pv-p { fill: var(--paper); stroke: var(--pk); stroke-width: 2; vector-effect: non-scaling-stroke; }
  .hh-prev .pv-k { fill: var(--pk); }
  .hh-prev .pv-m { fill: var(--pm); }
  .hh-prev .pv-r { fill: var(--pr); }
  .hh-prev .pv-s { fill: var(--ps); }
  .hh-prev .pv-h { fill: var(--hub); }
  .hh-prev .pv-hk, .hh-prev .pv-hsk, .hh-prev .pv-sk, .hh-prev .pv-ks { stroke: var(--pk); stroke-width: 2; vector-effect: non-scaling-stroke; }
  .hh-prev .pv-hk { fill: var(--hub); }
  .hh-prev .pv-hsk { fill: var(--hub-soft); }
  .hh-prev .pv-sk { fill: var(--ps); }
  .hh-prev .pv-o, .hh-prev .pv-ol, .hh-prev .pv-hs { fill: none; stroke: var(--pk); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .hh-prev .pv-ol { stroke: var(--pr); }
  .hh-prev .pv-hs { stroke: var(--hub); stroke-width: 2.5; }
  .hh-prev .pv-ring, .hh-prev .pv-arc { fill: none; stroke-width: 10; vector-effect: non-scaling-stroke; }
  .hh-prev .pv-ring { stroke: var(--ps); }
  .hh-prev .pv-arc { stroke: var(--hub); stroke-linecap: round; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hb-tools a.hh-row { transition: transform .15s ease, box-shadow .15s ease; }
  .hh-go svg { transition: transform .15s ease; }
  .hb-tools a.hh-row:hover .hh-go svg { transform: translateX(3px); }
}
/* version 39: a hub sheet whose hub has a tool keeps its free PDF as one download line under the tools (Projects) */
.hl-alsofree { margin: 12px 0 0; font-size: 14.5px; }
.hl-alsofree .hl-dl { color: var(--ink); } .hl-alsofree .hl-dl-m { color: var(--muted); }

/* ---------- version 43: shared by the Desk Board, Action Items and Class Schedule phone tabs (each tool page now
   loads only its own style sheet): the tab row fades out at an edge with more past it ---------- */
@property --fade-start { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-end { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes db-fade-start { to { --fade-start: var(--fade-size); } }
@keyframes db-fade-end { from { --fade-end: var(--fade-size); } }

/* ---------- version 47: the hub filter on Printables & Shop; each hub chip has its hub's dot. Version 49: one row with the
   kinds, a thin line between the hubs and the kinds ---------- */
.rs-hub { display: inline-flex; align-items: center; gap: 8px; }
.rs-sep { flex: none; width: 2px; margin: 7px 3px; border-radius: 2px; background: var(--line-2); }
/* One line where it fits: from 1180 px up in English and Spanish. Narrower, a phone (touch) swipes the row sideways (hub.css,
   720 px and under) with an edge fade; anything with a mouse wraps it instead, because a row with no scrollbar can't be
   scrolled with a mouse wheel and the last chips would be cut off (version 50). */
@media (max-width: 720px) and (hover: hover) and (pointer: fine) {
  .rs-filters { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}
@supports (animation-timeline: scroll()) {
  @media (max-width: 720px) and (pointer: coarse) {
    .rs-filters { --fade-size: 2rem; scroll-padding-inline: var(--gutter);
      mask: linear-gradient(black, black) no-clip subtract,
        linear-gradient(to right, black, transparent) 0 0 / var(--fade-start) 100% no-repeat no-clip,
        linear-gradient(to right, transparent, black) 100% 0 / var(--fade-end) 100% no-repeat no-clip;
      animation: db-fade-start linear both, db-fade-end linear both; animation-timeline: scroll(self inline);
      animation-range: 0 var(--fade-size), calc(100% - var(--fade-size)) 100%; }
  }
}

.rs-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--hub); }
.rs-hub[aria-pressed="true"] .rs-dot { box-shadow: 0 0 0 2px var(--surface); }
@media (forced-colors: active) { .rs-dot { forced-color-adjust: none; } }
