/* Shared Tiny Hub chrome for every page on tinyhub.net: parent strip, nav
   bar, phone menu, footer, and the sign-in, help and 404 pages. Prefixed th-
   so it never collides with the landing page's own styles.
   Tiny Mammoth family kit (Rick, 2026-11-10; Tiny Hub colour 2026-11-15):
   white page, Ink text, black pill buttons, one product colour used small.
   The mammoth gradient lives only inside the marks. */
@font-face { font-family: "Aspekta"; font-weight: 400; font-display: swap; src: url(/assets/Aspekta-400.woff2) format("woff2"); }
@font-face { font-family: "Aspekta"; font-weight: 500; font-display: swap; src: url(/assets/Aspekta-500.woff2) format("woff2"); }
@font-face { font-family: "Aspekta"; font-weight: 600; font-display: swap; src: url(/assets/Aspekta-600.woff2) format("woff2"); }
@font-face { font-family: "Aspekta"; font-weight: 700; font-display: swap; src: url(/assets/Aspekta-700.woff2) format("woff2"); }

:root {
  /* The kit is light only: keep form controls, scrollbars and the video
     player light when the device is set to dark. */
  color-scheme: light;
  --th-ink: #0b0c0e;        /* text, outlines, buttons, the strip, the closing panel */
  --th-soft: #4a5560;       /* body text under headlines */
  --th-line: #e3e8ee;       /* borders and dividers */
  --th-white: #ffffff;      /* every page background */
  --th-hover: #f3f5f8;      /* hover fill on white */
  --th-blue: #3c539f;       /* Tiny Hub: label dots, links, small accents (7.2:1 on white) */
  --th-blue-tint: #eef1f8;  /* Tiny Hub cards and panels */
  --th-yellow: #ffbc00;     /* Tiny Mammoth: marker, fills, buttons on black. Never text on white */
  --th-yellow-tint: #fff6db;
  --th-gold-ink: #8a6400;   /* yellow's text colour on white */
  --th-font: "Aspekta", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --th-strip-h: 36px;
  --th-nav-h: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
.th-gutter { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

:focus-visible { outline: 3px solid var(--th-blue); outline-offset: 3px; border-radius: 4px; }
.th-strip :focus-visible { outline-color: var(--th-yellow); }

/* Parent strip: the family signal. Scrolls away; the nav below stays. */
/* Same column as every Tiny Mammoth tool site (1120px, 24px sides), so the
   strip does not jump when you move between tools. */
.th-strip { background: var(--th-ink); color: #c9ced4; font-family: var(--th-font); font-size: 12px; font-weight: 600; line-height: 16px; padding-top: env(safe-area-inset-top, 0px); }
.th-strip-in { max-width: 1120px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 18px; min-height: var(--th-strip-h); }
.th-strip a { color: inherit; text-decoration: none; }
.th-parent { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; min-height: var(--th-strip-h); }
.th-parent img { width: 18px; height: 18px; display: block; filter: brightness(0) invert(1); }
.th-sisters { display: flex; gap: 18px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.th-sisters a { display: inline-flex; align-items: center; min-height: var(--th-strip-h); }
.th-sisters a:hover { color: #fff; }
.th-sisters a[aria-current] { color: #fff; }

/* Nav */
.th-nav { position: sticky; top: 0; z-index: 50; background: var(--th-white); color: var(--th-ink); font-family: var(--th-font); display: flex; align-items: center; gap: 28px; height: var(--th-nav-h); border-bottom: 1px solid var(--th-line); }
/* Nav contents share the strip's 1120px column (1072px inside 24px sides). */
.th-nav.th-gutter { padding-left: max(24px, env(safe-area-inset-left, 0px), calc((100% - 1072px) / 2)); padding-right: max(24px, env(safe-area-inset-right, 0px), calc((100% - 1072px) / 2)); }
.th-nav a { color: inherit; text-decoration: none; }
.th-brand { display: flex; align-items: center; flex: none; }
.th-brand img { height: 32px; width: auto; display: block; }
.th-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.th-links > li { position: relative; }
.th-links a, .th-links summary { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; white-space: nowrap; }
.th-links summary::-webkit-details-marker { display: none; }
.th-links a:hover, .th-links summary:hover { background: var(--th-hover); }
.th-chev { width: 12px; height: 12px; flex: none; transition: transform .2s ease; }
details[open] > summary .th-chev { transform: rotate(180deg); }
.th-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; background: var(--th-white); border: 1px solid var(--th-line); border-radius: 16px; padding: 8px; display: grid; gap: 2px; box-shadow: 0 16px 40px rgba(11, 12, 14, .12); }
.th-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; line-height: 1.35; }
.th-menu a:hover { background: var(--th-hover); }
.th-menu b { font-weight: 600; font-size: 14px; }
.th-menu span { color: var(--th-soft); font-size: 13px; font-weight: 400; }
.th-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.th-signin { font-weight: 600; font-size: 14px; }
.th-signin:hover { text-decoration: underline !important; text-underline-offset: 5px; }
.th-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 18px; border: 1.5px solid var(--th-ink); border-radius: 999px; background: var(--th-ink); color: var(--th-white) !important; font-weight: 700; font-size: 13px; white-space: nowrap; transition: background .2s, border-color .2s; }
.th-cta:hover { background: var(--th-blue); border-color: var(--th-blue); }
.th-burger { display: none; width: 40px; height: 40px; border-radius: 10px; place-items: center; background: transparent; border: 1px solid var(--th-line); color: var(--th-ink); cursor: pointer; padding: 0; }
.th-burger svg { width: 18px; height: 18px; }
/* Phone menu: hangs from the bottom of the nav, so it lines up whether or
   not the strip above has scrolled away. */
.th-sheet { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--th-nav-h)); height: calc(100dvh - var(--th-nav-h)); z-index: 49; background: var(--th-white); padding: 8px max(20px, env(safe-area-inset-left, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)); display: grid; align-content: start; overflow: auto; overscroll-behavior: contain; }
.th-sheet[hidden] { display: none; }
.th-sheet a { color: var(--th-ink); padding: 15px 4px; font-weight: 700; font-size: 20px; border-bottom: 1px solid var(--th-line); }
.th-sheet-h { margin: 22px 4px 2px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--th-blue); }
.th-sheet .th-cta { margin-top: 24px; min-height: 52px; font-size: 16px; border-bottom: 1.5px solid var(--th-ink); }

/* Footer */
.th-foot { font-family: var(--th-font); font-size: 14px; color: var(--th-soft); border-top: 1px solid var(--th-line); background: var(--th-white); padding-top: 40px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.th-foot a { color: inherit; text-decoration: none; }
.th-foot-in { display: flex; align-items: flex-start; gap: 24px; padding-bottom: 28px; }
.th-made { display: flex; align-items: flex-start; gap: 12px; }
.th-made img { width: 28px; height: 28px; display: block; flex: none; filter: brightness(0); }
.th-made > span { display: grid; gap: 2px; }
.th-made b { color: var(--th-ink); font-size: 15px; font-weight: 700; }
.th-foot nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.th-foot nav a { color: var(--th-ink); font-weight: 600; }
.th-foot nav a:hover, .th-fine a:hover, .th-made:hover b { text-decoration: underline; text-underline-offset: 4px; }
.th-fine { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--th-line); padding-top: 18px; font-size: 13px; }

@media (max-width: 960px) {
  .th-links, .th-right .th-signin, .th-right .th-cta { display: none; }
  .th-burger { display: grid; }
  .th-sisters { display: none; }
  .th-foot-in { flex-direction: column; gap: 20px; }
  .th-foot nav { margin-left: 0; }
  /* Phone tap targets: 44px tall at least. */
  .th-brand { min-height: 44px; }
  .th-burger { width: 44px; height: 44px; }
  .th-foot nav a, .th-fine a { display: inline-flex; align-items: center; min-height: 44px; }
  details.th-help summary { min-height: 44px; }
  .th-help-links { gap: 0; }
  .th-help-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .th-note a { padding-block: 4px; }
}
@media (min-width: 961px) { .th-sheet { display: none !important; } }

/* Sign-in, help and 404 pages */
.th-body { margin: 0; background: var(--th-white); }
.th-page { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto auto 1fr auto; background: var(--th-white); color: var(--th-ink); font-family: var(--th-font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.th-page a { color: inherit; text-decoration: none; }
.th-main { display: grid; align-content: center; padding-block: 56px; }
.th-stage { width: 100%; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 72px; align-items: center; }
.th-card { border: 1px solid var(--th-line); border-radius: 22px; padding: 56px 64px 48px; }
.th-label { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--th-blue); }
.th-label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--th-blue); flex: none; }
.th-card h1 { font-weight: 700; font-size: 44px; line-height: 1.05; margin: 0 0 10px; letter-spacing: -.04em; text-wrap: balance; }
.th-card .th-sub { color: var(--th-soft); margin: 0 0 32px; font-size: 17px; }
.th-primary, .th-secondary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 12px 24px; border: 1.5px solid var(--th-ink); border-radius: 999px; font-weight: 700; font-size: 16px; transition: background .2s, border-color .2s, color .2s; }
.th-primary { background: var(--th-ink); color: var(--th-white) !important; }
.th-primary:hover { background: var(--th-blue); border-color: var(--th-blue); }
.th-secondary { background: var(--th-white); margin-top: 12px; }
.th-secondary:hover { background: var(--th-hover); }
details.th-help { margin-top: 28px; }
details.th-help summary { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; list-style: none; padding: 4px 0; }
details.th-help summary::-webkit-details-marker { display: none; }
.th-help-links { display: grid; gap: 10px; padding: 14px 0 0; }
.th-help-links a { width: fit-content; color: var(--th-blue); font-weight: 600; }
.th-help-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.th-quick { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--th-line); }
.th-quick li { border-bottom: 1px solid var(--th-line); }
.th-quick a { display: flex; align-items: center; gap: 16px; padding: 18px 16px; transition: background .15s; }
.th-quick a:hover { background: var(--th-hover); }
.th-quick .th-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.th-quick b { font-weight: 700; font-size: 16px; }
.th-quick span { color: var(--th-soft); font-size: 14px; }
.th-quick .th-arrow { width: 16px; height: 16px; color: var(--th-blue); flex: none; transition: transform .15s; }
.th-quick a:hover .th-arrow { transform: translateX(3px); }
.th-note { margin: 20px 0 0; color: var(--th-soft); font-size: 14px; }
.th-note a { color: var(--th-blue); text-decoration: underline; text-underline-offset: 2px; }
.th-email { user-select: all; font-weight: 600; }

/* What's new page: built from the public release intents (npm run whats-new) */
.th-news { width: 100%; max-width: 720px; margin: 0 auto; }
.th-news h1 { font-weight: 700; font-size: 44px; line-height: 1.05; margin: 0 0 10px; letter-spacing: -.04em; text-wrap: balance; }
.th-news .th-sub { color: var(--th-soft); margin: 0 0 40px; font-size: 17px; }
.th-news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--th-line); }
.th-news-item { padding: 28px 0; border-bottom: 1px solid var(--th-line); }
.th-news-item time { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--th-blue); }
.th-news-item h2 { margin: 0 0 6px; font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.th-news-item p { margin: 0; color: var(--th-soft); max-width: 62ch; }
.th-news-empty { color: var(--th-soft); }

@media (max-width: 900px) {
  .th-stage { grid-template-columns: 1fr; gap: 40px; max-width: 560px; }
  .th-card { padding: 40px 28px 36px; }
  .th-main { align-content: start; padding-block: 32px 48px; }
  .th-news h1 { font-size: 36px; }
}
@media (max-width: 640px) {
  :root { --th-nav-h: 60px; }
  .th-gutter { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .th-strip-in { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .th-nav.th-gutter { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .th-brand img { height: 28px; }
  .th-card { border: 0; padding: 16px 0 8px; }
  .th-card h1 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { .th-chev, .th-quick a, .th-quick .th-arrow, .th-primary, .th-secondary, .th-cta { transition: none; } }

/* The landing page styles bare details/summary (FAQ accordion); keep those
   rules out of the nav menus. */
.th-nav details { border: 0; margin: 0; }
.th-nav summary { justify-content: flex-start; font-weight: 600; padding: 8px 12px; font-size: 14px; }
/* The landing page's skip link must sit above the sticky nav when focused. */
.skip:focus { z-index: 100; }
