/* =====================================================================
   TOLD YA TOONS: shared visual world (loads last on every page)
   Collectible trading cards: warm card-stock ground, ink keylines,
   brand yellow as identity, category colors on card frames only.
   ===================================================================== */
@font-face { font-family: "Fredoka"; src: url("Fredoka-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bagel Fat One"; src: url("BagelFatOne-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --stock: #FBF4E4;        /* card-stock ground */
  --stock-2: #F3E7CC;      /* table felt edge */
  --paper: #FFFDF7;        /* card face */
  --ink: #1E1A22;          /* keyline + text */
  --ink-2: #4A3F45;        /* secondary text (warm, not gray) */
  --yellow: #FFE27A;       /* brand */
  --yellow-2: #F5C842;
  --red: #C63A2E;
  --blue: #2E6BB0;
  --olive: #5E6A3E;
  --plum: #6B3FA0;
  --amber: #E0A21A;
  --line: rgba(30, 26, 34, .14);
  --shadow-1: 0 2px 4px rgba(30, 26, 34, .10), 0 10px 24px -8px rgba(30, 26, 34, .28);
  --shadow-2: 0 4px 8px rgba(30, 26, 34, .12), 0 24px 48px -16px rgba(30, 26, 34, .42);
  --r-card: 16px;
  --r-ctl: 999px;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Bagel Fat One", "Fredoka", "Arial Rounded MT Bold", var(--ui);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --stock: #1B1520;
  --stock-2: #241C2B;
  --paper: #2A2131;
  --ink: #F6EEDD;
  --ink-2: #CDBFC6;
  --line: rgba(246, 238, 221, .14);
  --shadow-1: 0 2px 4px rgba(0, 0, 0, .35), 0 10px 24px -8px rgba(0, 0, 0, .6);
  --shadow-2: 0 4px 8px rgba(0, 0, 0, .4), 0 24px 48px -16px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--ui);
  color: var(--ink);
  background: var(--stock);
  background-image: none;
  line-height: 1.55;
  font-size: 17px;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--yellow); color: #1E1A22; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
html { scrollbar-color: var(--yellow-2) var(--stock); }

/* ---------- shared top bar (built by site.js); overrides every older header rule ---------- */
html body .sitebar, html body .sitebar.scrolled, html[data-theme="dark"] body .sitebar, html[data-theme="dark"] body .sitebar.scrolled {
  display: flex; align-items: center; gap: 8px;
  padding: 10px max(16px, calc((100vw - 1180px) / 2));
  background: color-mix(in srgb, var(--stock) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line); box-shadow: none;
}
html body .sitebar .brand { font-family: var(--display); color: var(--ink); font-size: 20px; margin-right: auto; }
html body .sitebar .brand img { border: 2px solid #1E1A22; background: var(--yellow); }
html body .sitebar .brand b { color: var(--red); }
html[data-theme="dark"] body .sitebar .brand b { color: var(--yellow); }
html body .sitebar .sitenav { display: flex; gap: 2px; margin: 0; }
html body .sitenav a, html body .sitenav a:hover, html body .sitenav a[aria-current="page"] {
  flex-direction: row; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 0; box-shadow: none;
  font: 600 15px var(--ui); color: var(--ink-2); background: none; text-decoration: none;
}
html body .sitenav a span { display: inline !important; font-size: 15px; }
html body .sitenav a .ic, html body .sitenav a:hover .ic, html body .sitenav a[aria-current="page"] .ic {
  width: 18px; height: 18px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; color: currentColor;
}
html body .sitenav a:hover { background: color-mix(in srgb, var(--yellow) 40%, transparent); color: var(--ink); }
html body .sitenav a[aria-current="page"] { background: var(--yellow); color: #1E1A22; }
html body .sitenav a.biz { color: var(--red); }
html[data-theme="dark"] body .sitenav a.biz { color: var(--yellow); }
html body .sitebar .sub {
  margin: 0; font: 700 15px var(--ui); color: #fff; background: var(--red); border: 0; border-radius: 999px;
  padding: 9px 15px; box-shadow: var(--shadow-1); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
html body .sitebar .sub:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
html body .sitebar .theme-toggle, html[data-theme="dark"] body .sitebar .theme-toggle {
  width: 40px; height: 40px; background: var(--paper); border: 1px solid var(--line); border-radius: 50%; color: var(--ink); box-shadow: none;
}
@media (max-width: 900px) {
  html body .sitebar, html body .sitebar.scrolled, html[data-theme="dark"] body .sitebar { flex-wrap: wrap; row-gap: 6px; padding: 8px 14px 6px; }
  html body .sitebar .brand { font-size: 18px; }
  html body .sitebar .sub span { display: none; }
  html body .sitebar .sub { padding: 9px 11px; }
  html body .sitebar .sitenav { order: 3; width: 100%; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  html body .sitenav a, html body .sitenav a:hover, html body .sitenav a[aria-current="page"] { flex-direction: column; gap: 2px; padding: 6px 8px; font-size: 12.5px; }
  html body .sitenav a span { font-size: 12.5px; }
}

/* the older dark theme painted its own background and panels: bring them into this world */
html[data-theme="dark"] body { background: var(--stock); background-image: none; color: var(--ink); }
html[data-theme="dark"] .card { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow-1); }
html[data-theme="dark"] ::selection { background: var(--yellow); color: #1E1A22; }
html body .btn.primary, html body .btn.primary:not(.yt) { color: #1E1A22; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--ui); font-weight: 700; font-size: 17px; gap: 10px;
  color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--r-ctl); padding: 13px 22px;
  box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn, .btn.primary { background: var(--paper); }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn.primary, .btn.go { background: var(--yellow); color: #1E1A22; border-color: #1E1A22; }
.btn.yt { background: var(--red); color: #fff; border-color: var(--red); }
.btn .ic { width: 22px; height: 22px; }

/* ---------- generic panels on inner pages ---------- */
.card {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 20px;
  box-shadow: var(--shadow-1);
}
footer, .site-foot { color: var(--ink-2); }
footer a { color: var(--ink); }

/* ---------- inner pages: titles, back links and the dark-mode header highlight in the new world ---------- */
html body h1:not(.hh-title) {
  font-family: var(--display); color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; transform: none;
  letter-spacing: -.015em; line-height: 1.02;
}
html body h1:not(.hh-title) span { color: var(--red); -webkit-text-stroke: 0; }
html[data-theme="dark"] body h1:not(.hh-title) span { color: var(--yellow); }
html body .back {
  font: 700 15px var(--ui); color: var(--ink); background: var(--paper); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; box-shadow: none;
}
html body .back:hover { background: var(--yellow); color: #1E1A22; }
html[data-theme="dark"] body .sitenav a[aria-current="page"], html[data-theme="dark"] body .sitenav a[aria-current="page"]:hover { background: var(--yellow); color: #1E1A22; }
html[data-theme="dark"] body .sitenav a, html[data-theme="dark"] body .brand { color: var(--ink-2); }
html[data-theme="dark"] body .brand { color: var(--ink); }
html[data-theme="dark"] body .sitenav a:hover { background: color-mix(in srgb, var(--yellow) 22%, transparent); color: var(--ink); }
html[data-theme="dark"] body .sitenav a .ic { border: 0; background: none; }
html body .sitebar .sub, html body .sitebar .theme-toggle { align-self: center; position: static; grid-row: auto; grid-column: auto; transform: none; }
html body .sitebar .sub, html body .sitebar .theme-toggle { margin: 0; }

/* ---------- brand slogan under the name (as on the video end card) ---------- */
html body .sitebar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
html body .sitebar .brand img { width: 44px; height: 44px; }
html body .sitebar .bname { display: grid; line-height: 1.05; }
html body .sitebar .bname small { font: 600 11.5px/1.2 var(--ui); color: var(--ink-2); letter-spacing: .01em; margin-top: 3px; }
@media (max-width: 980px) { html body .sitebar .bname small { display: none; } }

/* ---------- mascot side peek with a speech bubble (inner pages) ---------- */
.ty-peek { position: fixed; right: 0; bottom: 18vh; z-index: 40; width: 240px; height: 130px; overflow: hidden; pointer-events: none; }
.ty-row { position: absolute; right: 0; top: 50%; display: flex; align-items: center; gap: 8px;
  transform: translate(110%, -50%); transition: transform .55s var(--ease); }
.ty-peek.in .ty-row { transform: translate(30px, -50%); }
.ty-peek img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid #1E1A22; background: var(--yellow);
  box-shadow: 0 6px 14px rgba(30, 26, 34, .3); transform: rotate(-14deg); }
.ty-bubble { position: relative; font: 700 20px/1 var(--display); color: #1E1A22; background: #fff; border: 2.5px solid #1E1A22;
  border-radius: 999px; padding: 9px 16px; box-shadow: 0 4px 0 #1E1A22; white-space: nowrap;
  opacity: 0; transform: scale(.6); transform-origin: right center; transition: opacity .2s .45s, transform .35s .45s var(--ease); }
.ty-bubble::after { content: ""; position: absolute; right: -10px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-left: 10px solid #1E1A22; border-right: 0; }
.ty-peek.in .ty-bubble { opacity: 1; transform: none; }
@media (max-width: 600px) { .ty-peek img { width: 72px; height: 72px; } .ty-bubble { font-size: 17px; padding: 8px 13px; } .ty-peek { bottom: 12vh; width: 200px; height: 100px; } }

/* ---------- rubber "Told ya!" stamp (replaces the speech bubble) ---------- */
.ty-bubble, html body .table .say {
  font: 700 22px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
  color: #C63A2E; background: rgba(255, 253, 247, .94); border: 3px solid #C63A2E; border-radius: 10px; padding: 8px 14px 7px;
  box-shadow: inset 0 0 0 3px rgba(255, 253, 247, .94), inset 0 0 0 5px #C63A2E, 0 8px 18px -8px rgba(30, 26, 34, .45);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' seed='7'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1 1 1 1 0 1 1 1 0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); -webkit-mask-size: 160px 80px; mask-size: 160px 80px;
}
.ty-bubble::after { content: none; }
.ty-bubble { opacity: 0; transform: rotate(-11deg) scale(2.3); transition: opacity .12s .5s, transform .26s .5s cubic-bezier(.2, 1.4, .4, 1); }
.ty-peek.in .ty-bubble { opacity: 1; transform: rotate(-11deg) scale(1); }
html body .table .say { transform: rotate(-9deg); font-size: clamp(15px, 3.6vw, 21px); padding: 7px 12px 6px; animation: ty-stamp .3s 1s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes ty-stamp { from { opacity: 0; transform: rotate(-9deg) scale(2.3); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { html body .table .say { animation: none; } }
@media (max-width: 600px) { .ty-bubble { font-size: 18px; padding: 7px 11px 6px; } }

/* ---------- headline font: Bagel Fat One (user 11-21). One weight only: never fake-bold it; headings everywhere use it ---------- */
html { font-synthesis: none; }
h1, h2, h3, .display, .post-body h2, .post-body h3 { font-family: var(--display); }
html body .hh-title { font-size: clamp(44px, 6.6vw, 92px); line-height: .98; letter-spacing: -.005em; }
html body .sitebar .brand { letter-spacing: .01em; }
html body .hh-title { line-height: 1.16; }
html body .hh-title mark { padding-top: 0; padding-bottom: 0; }
html body .ty-bubble, html body .table .say, html body .peek-in, html body .peek-in *, html body .host-say { font-family: "Fredoka", "Arial Rounded MT Bold", var(--ui); font-weight: 700; font-synthesis: weight; }

/* ---------- shared footer ---------- */
html body footer.site-foot {
  position: relative; display: grid; gap: 28px; margin: 64px 0 24px; padding: 34px 26px 22px; border: 0; border-radius: 28px;
  background: #1E1A22; color: #E8DCCB; font: 400 15px/1.6 var(--ui); text-align: left;
  box-shadow: 0 0 0 2px #1E1A22, 0 0 0 5px #E2AC3C, 0 0 0 7px #1E1A22, 0 24px 40px -24px rgba(30,26,34,.6);
}
:root[data-theme="dark"] body footer.site-foot { background: #0F0B12; }
.site-foot a { color: #FBF4E4; text-decoration: none; }
.site-foot .sf-top { display: grid; gap: 16px; }
.site-foot .sf-brand { display: inline-flex; align-items: center; gap: 14px; justify-self: start; }
.site-foot .sf-brand img { width: 64px; height: auto; transform: rotate(-8deg); filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); transition: transform .3s cubic-bezier(.2,1.4,.4,1); }
.site-foot .sf-brand:hover img { transform: rotate(6deg) scale(1.06); }
.site-foot .sf-brand b { display: block; font: 400 26px/1 var(--display); color: #FBF4E4; }
.site-foot .sf-brand em { font-style: normal; color: #FFE27A; }
.site-foot .sf-brand small { display: block; margin-top: 4px; font: 700 12px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: #E2AC3C; }
.site-foot .sf-line { margin: 0; max-width: 46ch; color: #CFC2D2; }
.site-foot .sf-social { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.site-foot .sf-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(251,244,228,.08); border: 1px solid rgba(251,244,228,.2); transition: background .2s, transform .2s; }
.site-foot .sf-ic:hover { background: #FFE27A; color: #1E1A22; transform: translateY(-2px); }
.site-foot .sf-ic .ic { width: 20px; height: 20px; }
.site-foot .sf-sub { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: #C63A2E; font: 800 15px var(--ui); transition: transform .2s; }
.site-foot .sf-sub:hover { transform: translateY(-2px); }
.site-foot .sf-sub .ic { width: 20px; height: 20px; }
.site-foot .sf-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; padding-top: 24px; border-top: 1px solid rgba(251,244,228,.14); }
.site-foot .sf-col h2 { margin: 0 0 10px; font: 800 12px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: #E2AC3C; text-align: left; }
.site-foot .sf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-foot .sf-col a { display: inline-block; padding: 5px 0; font-weight: 600; color: #F6EEDD; background: linear-gradient(#FFE27A, #FFE27A) 0 100% / 0 2px no-repeat; transition: background-size .25s, color .2s; }
.site-foot .sf-col a:hover, .site-foot .sf-col a[aria-current] { color: #FFE27A; background-size: 100% 2px; }
.site-foot .sf-bottom { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid rgba(251,244,228,.14); font-size: 13px; color: #A99BAE; }
.site-foot .sf-up { font: 700 13px var(--ui); color: #FBF4E4; background: transparent; border: 1px solid rgba(251,244,228,.3); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: background .2s, color .2s; }
.site-foot .sf-up:hover { background: #FFE27A; color: #1E1A22; border-color: #FFE27A; }
.site-foot a:focus-visible, .site-foot button:focus-visible { outline: 3px solid #FFE27A; outline-offset: 3px; border-radius: 8px; }
@media (min-width: 720px) { .site-foot .sf-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  html body footer.site-foot { padding: 40px 44px 24px; }
  .site-foot .sf-top { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) { .site-foot * { transition: none !important; } }
@media (max-width: 719px) {
  .site-foot .sf-top { justify-items: center; text-align: center; }
  .site-foot .sf-brand { justify-self: center; }
  .site-foot .sf-line { margin-inline: auto; }
  .site-foot .sf-social { justify-content: center; }
  .site-foot .sf-bottom { flex-direction: column; justify-content: center; text-align: center; }
}
@media (max-width: 719px) { .site-foot .sf-brand { justify-content: center; } }
/* phones: footer links become big, easy-to-tap rows */
@media (max-width: 719px) {
  .site-foot .sf-cols { gap: 22px 12px; }
  .site-foot .sf-col h2 { font-size: 13px; margin-bottom: 8px; }
  .site-foot .sf-col ul { gap: 8px; }
  .site-foot .sf-col a { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 46px; padding: 0 12px;
    font: 700 15.5px/1.2 var(--ui); color: #FFFDF7; background: rgba(251,244,228,.09); border: 1px solid rgba(251,244,228,.18); border-radius: 12px; }
  .site-foot .sf-col a::after { content: "›"; font-size: 20px; line-height: 1; color: #FFE27A; }
  .site-foot .sf-col a:hover, .site-foot .sf-col a[aria-current] { color: #1E1A22; background: #FFE27A; border-color: #FFE27A; }
  .site-foot .sf-col a[aria-current]::after { color: #1E1A22; }
}
/* the footer beats older per-page footer rules (pages.css, style.css) on every page and theme */
:root[data-theme] body footer.site-foot { opacity: 1; color: #E8DCCB; font: 400 15px/1.6 var(--ui); margin: 64px 0 24px; padding-top: 34px; border: 0; }
:root[data-theme] body footer.site-foot a { color: #FBF4E4; font-weight: 700; text-decoration: none; }
:root[data-theme] body footer.site-foot .sf-col a { color: #FFFDF7; }
:root[data-theme] body footer.site-foot .sf-col a:hover, :root[data-theme] body footer.site-foot .sf-col a[aria-current] { color: #FFE27A; }
:root[data-theme] body footer.site-foot .sf-ic:hover { color: #1E1A22; }
:root[data-theme] body footer.site-foot .sf-sub { color: #FFFDF7; }
@media (max-width: 719px) {
  :root[data-theme] body footer.site-foot .sf-col a:hover, :root[data-theme] body footer.site-foot .sf-col a[aria-current] { color: #1E1A22; }
}
@media (min-width: 980px) { :root[data-theme] body footer.site-foot { padding-top: 40px; } }
@media (max-width: 719px) { :root[data-theme] body footer.site-foot .sf-col h2 { text-align: center; } }
/* ---------- footer on laptops and desktops: one width and one layout on every page ---------- */
:root[data-theme] body footer.site-foot { box-sizing: border-box; width: min(1180px, calc(100% - 32px)); margin: 72px auto 28px; }
@media (min-width: 980px) {
  :root[data-theme] body footer.site-foot { grid-template-columns: minmax(260px, 1fr) minmax(0, 1.9fr); column-gap: 56px; row-gap: 26px; padding: 44px 48px 26px; }
  .site-foot .sf-top { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 18px; }
  .site-foot .sf-brand img { width: 72px; }
  .site-foot .sf-brand b { font-size: 30px; }
  .site-foot .sf-line { font-size: 15px; max-width: 34ch; }
  .site-foot .sf-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 6px 0 0 44px; border-top: 0; border-left: 1px solid rgba(251,244,228,.14); }
  .site-foot .sf-col h2 { font-size: 13px; margin-bottom: 14px; }
  .site-foot .sf-col ul { gap: 6px; }
  .site-foot .sf-col a { font-size: 15.5px; }
  .site-foot .sf-bottom { grid-column: 1 / -1; }
}
@media (min-width: 720px) and (max-width: 979px) {
  :root[data-theme] body footer.site-foot { padding: 36px 34px 24px; }
  .site-foot .sf-top { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 24px; }
  .site-foot .sf-social { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .site-foot .sf-col a { white-space: nowrap; }
  .site-foot .sf-social { flex-wrap: nowrap; }
}
@media (min-width: 980px) and (max-width: 1199px) {
  :root[data-theme] body footer.site-foot { grid-template-columns: 250px minmax(0, 1fr); column-gap: 32px; padding: 38px 34px 24px; }
  .site-foot .sf-cols { gap: 16px; padding-left: 30px; }
  .site-foot .sf-col a { font-size: 14.5px; }
  .site-foot .sf-sub { padding: 0 14px; }
}

/* ---------- shared back bar under the header (all inner pages) ---------- */
.crumb { box-sizing: border-box; display: flex; align-items: center; gap: 14px; width: min(1180px, calc(100% - 32px)); margin: 14px auto 6px; min-height: 44px; }
.crumb-back { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 12px; border-radius: 999px;
  font: 800 15px var(--ui); color: #1E1A22; text-decoration: none; background: var(--yellow); border: 2px solid #1E1A22; box-shadow: 0 4px 0 #1E1A22;
  transition: transform .15s ease, box-shadow .15s ease; }
.crumb-back svg { width: 20px; height: 20px; transition: transform .2s ease; }
.crumb-back:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #1E1A22; }
.crumb-back:hover svg { transform: translateX(-3px); }
.crumb-back:active { transform: translateY(3px); box-shadow: 0 1px 0 #1E1A22; }
.crumb-back:focus-visible { outline: 3px solid var(--red, #C63A2E); outline-offset: 3px; }
:root[data-theme] body .crumb-back { color: #1E1A22; }
.crumb-trail { display: flex; align-items: center; min-width: 0; margin: 0; padding: 0; list-style: none; font: 600 14px var(--ui); color: var(--ink-2); }
.crumb-trail li { display: flex; align-items: center; min-width: 0; white-space: nowrap; }
.crumb-trail li + li::before { content: "›"; margin: 0 8px; color: var(--ink-2); opacity: .7; }
.crumb-trail a { color: var(--ink-2); text-decoration: none; }
.crumb-trail a:hover { color: var(--ink); text-decoration: underline; }
.crumb-trail [aria-current] span { overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 700; max-width: 46ch; }
.crumb-trail [aria-current] { min-width: 0; }
@media (max-width: 639px) {
  .crumb { margin-top: 12px; }
  .crumb-trail { display: none; }
  .crumb-back { height: 42px; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) { .crumb-back, .crumb-back svg { transition: none; } }
/* very small phones (320-360px): the five menu items share the width evenly so nothing runs off the edge */
@media (max-width: 360px) {
  html body .sitebar .sitenav { justify-content: stretch; }
  html body .sitenav a, html body .sitenav a:hover, html body .sitenav a[aria-current="page"] { flex: 1 1 0; min-width: 0; padding: 6px 2px; text-align: center; }
  html body .sitenav a span { font-size: 11px; white-space: nowrap; }
  html body .sitenav a.biz span { font-size: 0; }
  html body .sitenav a.biz span::after { content: "Work"; font-size: 11px; }
}

/* ---------- LIGHT MODE footer: warm paper instead of black (dark mode unchanged) ---------- */
:root[data-theme="light"] body footer.site-foot { color: #3A2F36;
  background: radial-gradient(rgba(198,58,46,.08) 1px, transparent 1.4px) 0 0 / 12px 12px, linear-gradient(180deg, #FFF8DC, #FFEFB8); }
:root[data-theme="light"] body footer.site-foot a { color: #1E1A22; }
:root[data-theme="light"] .site-foot .sf-brand b { color: #1E1A22; }
:root[data-theme="light"] .site-foot .sf-brand em { color: #C63A2E; }
:root[data-theme="light"] .site-foot .sf-brand small, :root[data-theme="light"] .site-foot .sf-col h2 { color: #C63A2E; }
:root[data-theme="light"] .site-foot .sf-line { color: #4A3F45; }
:root[data-theme="light"] .site-foot .sf-ic { color: #1E1A22; background: #FFFDF7; border: 2px solid #1E1A22; box-shadow: 0 3px 0 #1E1A22; }
:root[data-theme="light"] .site-foot .sf-ic:hover { background: #FFE27A; }
:root[data-theme="light"] body footer.site-foot .sf-sub { color: #FFFDF7; border: 2px solid #1E1A22; box-shadow: 0 3px 0 #1E1A22; }
:root[data-theme="light"] body footer.site-foot .sf-col a { color: #1E1A22; background-image: linear-gradient(#C63A2E, #C63A2E); }
:root[data-theme="light"] body footer.site-foot .sf-col a:hover, :root[data-theme="light"] body footer.site-foot .sf-col a[aria-current] { color: #C63A2E; }
:root[data-theme="light"] .site-foot .sf-cols { border-color: rgba(30,26,34,.18); }
:root[data-theme="light"] .site-foot .sf-bottom { color: #6B5E66; border-color: rgba(30,26,34,.18); }
:root[data-theme="light"] .site-foot .sf-up { color: #1E1A22; border-color: #1E1A22; background: #FFFDF7; }
:root[data-theme="light"] .site-foot .sf-up:hover { background: #FFE27A; }
@media (max-width: 719px) {
  :root[data-theme="light"] body footer.site-foot .sf-col a { color: #1E1A22; background: #FFFDF7; border: 2px solid #1E1A22; box-shadow: 0 3px 0 #1E1A22; }
  :root[data-theme="light"] body footer.site-foot .sf-col a::after { color: #C63A2E; }
  :root[data-theme="light"] body footer.site-foot .sf-col a:hover, :root[data-theme="light"] body footer.site-foot .sf-col a[aria-current] { background: #FFE27A; color: #1E1A22; }
  :root[data-theme="light"] body footer.site-foot .sf-col a[aria-current]::after { color: #1E1A22; }
}
@media (min-width: 980px) { :root[data-theme="light"] .site-foot .sf-cols { border-left-color: rgba(30,26,34,.18); } }
/* © line links home: same text color, underline on hover */
:root[data-theme] body footer.site-foot a.sf-copy { color: inherit; font-weight: 700; text-decoration: none; background: none; border: 0; padding: 0; box-shadow: none; display: inline; min-height: 0; }
:root[data-theme] body footer.site-foot a.sf-copy::after { content: none; }
:root[data-theme] body footer.site-foot a.sf-copy:hover { text-decoration: underline; text-underline-offset: 3px; }
/* ™ after the brand name: small, raised, never changes the line height */
sup.tm { font-family: var(--ui); font-weight: 700; font-size: .38em; line-height: 0; vertical-align: super; margin-left: .1em; letter-spacing: 0; color: inherit; opacity: .8; }
.sitebar .bname sup.tm { font-size: .55em; }
/* TM inside a small circle (drawn in CSS, scales with the name) */
sup.tm { display: inline-grid; place-items: center; width: 1.55em; height: 1.55em; box-sizing: border-box; border: .12em solid currentColor; border-radius: 50%;
  font: 800 .3em/1 var(--ui); letter-spacing: -.02em; vertical-align: super; margin-left: .18em; opacity: .85; transform: translateY(-.15em); }
.sitebar .bname sup.tm { font-size: .42em; }
.lk-hero .page-title sup.tm { font-size: .24em; }
.site-foot .sf-brand b sup.tm { font-size: .32em; }
/* roomier circle so "TM" sits inside with a margin */
sup.tm { width: 2.35em; height: 2.35em; font-size: .26em; letter-spacing: -.03em; border-width: .14em; }
.sitebar .bname .tm { font-size: .36em; }
.lk-hero .page-title .tm { font-size: .2em; }
.site-foot .sf-brand b .tm { font-size: .27em; }

/* ---------- ONE trademark mark for the whole site ----------
   Drawn as vector strokes (not font text), so "TM" sits exactly in the middle of the circle at any size.
   It takes the color of the text it follows. The letters stay in the HTML for screen readers. */
html body sup.tm {
  display: inline-block !important; box-sizing: border-box !important; width: var(--tm, 14px) !important; height: var(--tm, 14px) !important;
  margin: 0 0 0 .12em !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; transform: none !important;
  vertical-align: top !important; position: relative; top: .06em; opacity: .9;
  font-size: 0 !important; line-height: 0 !important; color: inherit; overflow: hidden; text-indent: -999px;
  background: currentColor !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10.6' stroke-width='1.8'/%3E%3Cpath d='M5.7 8.6h5M8.2 8.6v6.8' stroke-width='1.9'/%3E%3Cpath d='M12.7 15.4V8.6l2.8 4.2 2.8-4.2v6.8' stroke-width='1.9'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10.6' stroke-width='1.8'/%3E%3Cpath d='M5.7 8.6h5M8.2 8.6v6.8' stroke-width='1.9'/%3E%3Cpath d='M12.7 15.4V8.6l2.8 4.2 2.8-4.2v6.8' stroke-width='1.9'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
/* one size per spot, in proportion to the name next to it */
html body .sitebar .bname sup.tm { --tm: 13px; }
html body .site-foot .sf-brand sup.tm { --tm: 15px; }
html body .lk-hero .page-title sup.tm { --tm: 18px; }
html body .mt-brand sup.tm { --tm: 13px; }
html body .mt-sign-name sup.tm { --tm: 14px; }
html body .mt-sign-c sup.tm { --tm: 11px; top: .02em; }
/* the maintenance page name at the top uses exactly the same TM as the sign-off at the bottom */
html body .mt-brand sup.tm { --tm: 14px; }

/* ---------- UX polish pass (11-22): comfortable tap targets and readable small text on phones ---------- */
html body .sitebar .theme-toggle, html[data-theme="dark"] body .sitebar .theme-toggle { width: 44px; height: 44px; }
html body .sitebar .sub { min-height: 44px; }
html body .sitebar .brand { min-height: 44px; }
.sf-up { min-height: 44px; padding-inline: 14px; }
.site-foot a { display: inline-block; padding-block: 6px; }
.back-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 56px; padding: 0 12px; }
.sound { min-width: 44px; min-height: 44px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 900px) {
  html body .sitenav a, html body .sitenav a:hover, html body .sitenav a[aria-current="page"] { min-height: 48px; justify-content: center; font-size: 13px; }
  html body .sitenav a span { font-size: 13px; }
  .pg-kick { font-size: 12.5px; }
}
.sf-copy { display: inline-flex; align-items: center; min-height: 44px; }

/* 11-22 check: no sideways page wiggle on phones (clip keeps sticky headers working) */
html, body { overflow-x: clip; }
/* 11-22: the dark-mode box behind the current page icon made it unreadable; the yellow pill is enough */
html[data-theme] body .sitenav a[aria-current="page"] .ic { background: none !important; border-color: transparent !important; box-shadow: none !important; }
html[data-theme] body .sitenav a.biz[aria-current="page"], html[data-theme] body .sitenav a.biz[aria-current="page"] .ic { color: #1E1A22 !important; }
