/* =============================================================================
   Ask Ashe — mobile-first, app-like. One accent for action (Porch Light yellow),
   Blue Ridge navy for structure, mist-grey surfaces. Rows, not cards.
   ========================================================================== */
:root {
  --ridge-night: #17304a;   /* mountains at dusk — app bar, primary text on light */
  --ridge-deep: #0f2238;
  --dusk: #4e7ea3;          /* mid ridge — links, concert chips */
  --dusk-soft: #dbe7f0;
  --porch: #f3b640;         /* Ashe's beanie — the one action color */
  --porch-ink: #2a1f06;
  --mist: #f1f4f6;          /* page surface */
  --paper: #ffffff;         /* rows, bubbles */
  --ink: #1d2733;
  --ink-2: #4b5665;
  --ink-3: #7b8694;
  --line: #e2e7ec;
  --rhodo: #c9456b;         /* comedy */
  --moss: #5c8a63;          /* sports, free */
  --plum: #7b4f9d;          /* theatre, dance */
  --cedar: #a06a2f;         /* classical */
  --flannel: #b8392f;
  --flannel-dark: #5b1a14;
  --skin: #f2c9a1;
  --beard: #6b4a2b;
  --radius-bubble: 18px;
  --radius-pill: 999px;
  --shadow-bubble: 0 1px 0 rgba(23, 48, 74, 0.06), 0 6px 18px -12px rgba(23, 48, 74, 0.25);
  --composer-h: 76px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --mist: #0f1c2b;
    --paper: #182a3d;
    --ink: #eef3f7;
    --ink-2: #b9c6d3;
    --ink-3: #8a9bae;
    --line: #27405a;
    --dusk-soft: #22435f;
    --ridge-night: #0b1724;
    --ridge-deep: #060f1a;
    --shadow-bubble: 0 1px 0 rgba(0, 0, 0, 0.3), 0 8px 20px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --mist: #0f1c2b;
  --paper: #182a3d;
  --ink: #eef3f7;
  --ink-2: #b9c6d3;
  --ink-3: #8a9bae;
  --line: #27405a;
  --dusk-soft: #22435f;
  --ridge-night: #0b1724;
  --ridge-deep: #060f1a;
  --shadow-bubble: 0 1px 0 rgba(0, 0, 0, 0.3), 0 8px 20px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body::before { content: ''; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: #0e2036; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--mist);
  min-height: 100dvh;
  padding-bottom: calc(var(--composer-h) + var(--safe-b) + 12px);
  overscroll-behavior-y: contain;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--dusk); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--porch); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- header */
.sky {
  position: relative;
  background: linear-gradient(180deg, #0e2036 0%, var(--ridge-night) 55%, #2a4d6e 100%);
  color: #fff;
  overflow: hidden;
  padding-block: max(14px, env(safe-area-inset-top, 0px)) 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.sky::before { /* porch light glow */
  content: '';
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 70%;
  background: radial-gradient(60% 55% at 50% 100%, rgba(243, 182, 64, 0.35), rgba(243, 182, 64, 0) 70%);
  pointer-events: none;
}
.ridges {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 92px;
  pointer-events: none;
}
.ridges .r1 { fill: #244b6d; }
.ridges .r2 { fill: #1b3a55; }
.ridges .r3 { fill: #122a42; }
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark small { font-weight: 600; font-size: 13px; color: #cfe0ef; }
.status-pill {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 700;
  color: #cfe0ef;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 8px;
  align-items: end;
  min-height: 190px;
  padding-top: 6px;
  transition: min-height 0.35s ease, padding 0.35s ease;
}
.hero-ashe { width: 148px; height: 160px; margin-bottom: 0; }
.hero-ashe svg { width: 100%; height: 100%; overflow: visible; }
.bubble-hero {
  position: relative;
  align-self: center;
  margin: 0 0 54px 2px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-bubble);
  border-bottom-left-radius: 6px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: var(--shadow-bubble);
}
.bubble-hero::after {
  content: '';
  position: absolute;
  left: -8px; bottom: 10px;
  border: 8px solid transparent;
  border-right-color: var(--paper);
  border-left: 0;
}
/* collapsed header after first question */
.app.compact .hero { min-height: 0; grid-template-columns: 56px 1fr; align-items: center; padding: 4px 0 10px; }
.app.compact .hero-ashe { width: 56px; height: 60px; }
.app.compact .bubble-hero { display: none; }
.app.compact .ridges { height: 40px; }
.app.compact .sky::before { display: none; }
.compact-line { display: none; font-size: 14px; color: #cfe0ef; font-weight: 600; }
.app.compact .compact-line { display: block; }

/* ----------------------------------------------------------------- chips */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 12px 6px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip:active { transform: scale(0.96); }
.chip.primary { background: var(--porch); border-color: var(--porch); color: var(--porch-ink); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dusk); }
.chip[data-cat='comedy'] .dot { background: var(--rhodo); }
.chip[data-cat='sports'] .dot { background: var(--moss); }
.chip[data-cat='theatre'] .dot { background: var(--plum); }
.chip[data-cat='country'] .dot, .chip[data-cat='rock'] .dot { background: var(--cedar); }

/* ---------------------------------------------------------------- thread */
.thread { padding-block: 6px 24px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 8px; align-items: flex-end; animation: pop 0.22s ease-out both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .msg { animation: none; } }
.msg.user { justify-content: flex-end; }
.msg.user .bubble {
  background: var(--ridge-night);
  color: #fff;
  border-bottom-right-radius: 6px;
  max-width: 82%;
}
.msg.ashe .bubble { background: var(--paper); border-bottom-left-radius: 6px; box-shadow: var(--shadow-bubble); max-width: 100%; width: 100%; }
.bubble { border-radius: var(--radius-bubble); padding: 11px 14px; font-weight: 500; }
.bubble p { margin: 0; }
.bubble p + p { margin-top: 6px; }
.avatar { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #e6eef5; overflow: hidden; display: grid; place-items: center; }
.avatar svg { width: 52px; height: 52px; margin-top: 14px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: dotty 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotty { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-4px); opacity: 1; } }

/* ----------------------------------------------------------------- results */
.results { margin: 10px -14px -11px; border-top: 1px solid var(--line); }
.day { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1; background: var(--paper); padding: 10px 14px 6px; font-weight: 800; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.day span { color: var(--ink-3); font-weight: 600; margin-left: 6px; }
.row { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: start; }
.row:last-child { border-bottom: 0; }
.when { font-weight: 800; font-size: 14px; line-height: 1.2; color: var(--ink); padding-top: 2px; }
.when small { display: block; font-weight: 600; font-size: 11px; color: var(--ink-3); }
.what { min-width: 0; }
.title { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.25; letter-spacing: -0.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.title a { color: inherit; text-decoration: none; }
.sub { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.where { margin: 3px 0 0; font-size: 13px; color: var(--ink-2); }
.where b { font-weight: 700; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--dusk-soft); color: var(--ridge-night); line-height: 1.2; }
.tag.cat-comedy { background: #f8dde6; color: #8e2a4a; }
.tag.cat-sports { background: #dcebdf; color: #2f5a36; }
.tag.cat-theatre, .tag.cat-dance { background: #e8ddf3; color: #52327a; }
.tag.cat-classical { background: #f1e5d3; color: #6a4517; }
.tag.cat-festival, .tag.cat-family, .tag.cat-holiday, .tag.cat-film { background: #e4ecd9; color: #3f5a1f; }
.tag.free { background: #dcebdf; color: #2f5a36; }
.tag.sold { background: #eee; color: #777; text-decoration: line-through; }
.tag.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-3); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .tag.cat-comedy { background: #4a1f2d; color: #ffd0dd; }
  :root:not([data-theme='light']) .tag.cat-sports { background: #1f3a25; color: #cfe8d3; }
  :root:not([data-theme='light']) .tag.cat-theatre, :root:not([data-theme='light']) .tag.cat-dance { background: #35244b; color: #e5d6f5; }
  :root:not([data-theme='light']) .tag.cat-classical { background: #4a3317; color: #f5e2c6; }
  :root:not([data-theme='light']) .tag.cat-festival, :root:not([data-theme='light']) .tag.cat-family, :root:not([data-theme='light']) .tag.cat-holiday, :root:not([data-theme='light']) .tag.cat-film { background: #2c3d1f; color: #dbeac6; }
  :root:not([data-theme='light']) .tag.free { background: #1f3a25; color: #cfe8d3; }
  :root:not([data-theme='light']) .tag.sold { background: #2a3442; color: #8a9bae; }
}
.actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.btn-tix {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--porch); color: var(--porch-ink);
  border: 0; border-radius: var(--radius-pill);
  padding: 9px 13px; font-weight: 800; font-size: 13px; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}
.btn-tix:active { transform: translateY(1px); box-shadow: none; }
.btn-tix.ghost { background: var(--paper); color: var(--dusk); border: 1.5px solid var(--line); box-shadow: none; }
.btn-tix.sold { background: #ddd; color: #666; box-shadow: none; pointer-events: none; }
.mini-actions { display: flex; gap: 2px; }
.mini-actions button, .mini-actions a { background: transparent; border: 0; color: var(--ink-3); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.mini-actions button:hover, .mini-actions a:hover { background: var(--dusk-soft); color: var(--ridge-night); }
.mini-actions svg { width: 18px; height: 18px; }
.more { display: block; width: 100%; padding: 12px; background: transparent; border: 0; color: var(--dusk); font-weight: 800; cursor: pointer; }
.followups { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.followups .chip { font-size: 13px; padding: 8px 12px; }
.empty-art { text-align: center; padding: 8px 0 2px; color: var(--ink-3); font-weight: 600; }

/* ------------------------------------------------------------- composer */
.composer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  padding-block: 10px calc(10px + var(--safe-b));
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
  background: color-mix(in srgb, var(--mist) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.composer form { display: flex; gap: 8px; align-items: center; max-width: 720px; margin: 0 auto; }
.composer input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 16px; font-weight: 600;
  padding: 13px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.composer input::placeholder { color: var(--ink-3); font-weight: 500; }
.composer .send {
  flex: 0 0 48px; width: 48px; height: 48px;
  border-radius: 50%; border: 0;
  background: var(--porch); color: var(--porch-ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}
.composer .send:active { transform: translateY(1px); box-shadow: none; }
.composer .send svg { width: 22px; height: 22px; }
.composer .dates {
  flex: 0 0 44px; width: 44px; height: 44px;
  border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer;
}
.composer .dates svg { width: 20px; height: 20px; }

/* ----------------------------------------------------------------- sheet */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 30, 0.45); z-index: 30; display: none; }
.sheet-backdrop.open { display: block; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 31;
  background: var(--paper); color: var(--ink);
  border-radius: 22px 22px 0 0;
  padding-block: 10px calc(18px + var(--safe-b));
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
  transform: translateY(105%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: 720px; margin: 0 auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
}
.sheet.open { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.sheet h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.sheet p { margin: 0 0 12px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.sheet .quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sheet label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-top: 8px; }
.sheet input[type='date'] { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--mist); color: var(--ink); margin-top: 4px; }
.sheet .go { margin-top: 16px; width: 100%; padding: 14px; border: 0; border-radius: var(--radius-pill); background: var(--porch); color: var(--porch-ink); font-weight: 800; font-size: 16px; cursor: pointer; }
.sheet .cat-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ----------------------------------------------------------------- footer */
.foot { padding-block: 10px 24px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); font-size: 12px; color: var(--ink-3); text-align: center; line-height: 1.5; }
.foot a { color: var(--ink-3); }
.foot .contact { user-select: all; -webkit-user-select: all; font-weight: 700; color: var(--ink-2); }

/* --------------------------------------------------------------- toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--composer-h) + var(--safe-b) + 14px); transform: translateX(-50%) translateY(20px); background: var(--ridge-night); color: #fff; padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 700; font-size: 14px; opacity: 0; transition: opacity 0.2s, transform 0.2s; z-index: 40; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* phones: give the title the full width, put Tickets + icons on their own line */
@media (max-width: 719px) {
  .status-pill .upd { display: none; }
  .row { grid-template-columns: 48px 1fr; row-gap: 8px; }
  .actions { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 6px; }
  .mini-actions { margin-left: auto; }
  .title { -webkit-line-clamp: 3; }
}

/* -------------------------------------------------------------- desktop */
@media (min-width: 720px) {
  .sky { padding-left: max(16px, calc((100vw - 760px) / 2 + 16px)); padding-right: max(16px, calc((100vw - 760px) / 2 + 16px)); }
  .chips, .thread, .foot { max-width: 760px; margin-left: auto; margin-right: auto; }
  .hero { grid-template-columns: 300px 1fr; min-height: 340px; gap: 16px; }
  .hero-ashe { width: 300px; height: 324px; }
  .bubble-hero { font-size: 19px; padding: 16px 20px; margin-bottom: 120px; }
  .ridges { height: 130px; }
  .app.compact .hero { grid-template-columns: 72px 1fr; min-height: 0; }
  .app.compact .hero-ashe { width: 72px; height: 78px; }
  .app.compact .ridges { height: 44px; }
  .msg.ashe .bubble { max-width: 100%; }
}

/* =============================================================================
   Ashe — the mascot. Colors are literal (he's a drawing, not a theme token),
   states drive transforms + path swaps.
   ========================================================================== */
.ashe { overflow: visible; }
.ashe .skin { fill: var(--skin); }
.ashe .flannel { fill: var(--flannel); }
.ashe .plaid path { stroke: var(--flannel-dark); fill: none; }
.ashe .tee { fill: #efe6d3; }
.ashe .pin { fill: #3f7d5a; stroke: #ffffff; stroke-width: 1.2; }
.ashe .cup-body { fill: #f7f1e4; stroke: #c9b89a; stroke-width: 1.2; }
.ashe .cup-sleeve { fill: #8c5a34; }
.ashe .cup-lid { fill: #5a4632; }
.ashe .steam { fill: none; stroke: #ffffff; stroke-width: 1.6; stroke-linecap: round; opacity: 0.7; animation: steam 2.4s infinite ease-in-out; }
@keyframes steam { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 0.8; transform: translateY(-2px); } }
.ashe .hair { fill: var(--beard); }
.ashe .beard { fill: var(--beard); }
.ashe .stache { fill: #553920; }
.ashe .mouth { fill: #3a1d14; stroke: #3a1d14; stroke-width: 3; stroke-linecap: round; transition: d 0.2s; }
.ashe .teeth { fill: #fff; opacity: 0; transition: opacity 0.15s; }
.ashe .nose { fill: none; stroke: #c9906a; stroke-width: 2.5; stroke-linecap: round; }
.ashe .eye-white { fill: #fff; }
.ashe .pupil { fill: #2b2b2b; }
.ashe .glint { fill: #fff; }
.ashe .pupil-wrap { transition: transform 0.12s ease-out; }
.ashe .lid { fill: var(--skin); opacity: 0; transition: opacity 0.06s; } /* opacity, not a transform: transforms on clipped SVG parts leave repaint artifacts in some browsers */
.ashe.blink .lid { opacity: 1; }
.ashe .lid-line { fill: none; stroke: #553920; stroke-width: 2; stroke-linecap: round; opacity: 0; transition: opacity 0.06s; }
.ashe.blink .lid-line { opacity: 1; }
.ashe .glasses circle, .ashe .glasses path { fill: none; stroke: #2a2420; stroke-width: 3; }
.ashe .glasses circle { fill: rgba(255, 255, 255, 0.08); }
.ashe .brow { fill: none; stroke: #553920; stroke-width: 4; stroke-linecap: round; transition: transform 0.2s ease; transform-origin: 120px 104px; }
.ashe .beanie-crown { fill: var(--porch); }
.ashe .beanie-band { fill: #d99a2b; }
.ashe .beanie-rib { stroke: #c78b21; fill: none; stroke-linecap: round; }
.ashe .pom { fill: #fbe7b7; }
.ashe .dots circle { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; opacity: 0; transition: opacity 0.2s; }
.ashe .ashe-head { transform-origin: 120px 150px; animation: breathe 3.4s ease-in-out infinite; }
.ashe .ashe-torso { transform-origin: 120px 258px; animation: torso 3.4s ease-in-out infinite; }
.ashe .ashe-arm-r { transform-origin: 176px 210px; transition: transform 0.25s ease; }
.ashe .ashe-arm-l { transform-origin: 66px 212px; transition: transform 0.25s ease; }
@keyframes breathe { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-2px) rotate(-1deg); } }
@keyframes torso { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.012); } }

/* wave */
.ashe.is-wave .ashe-arm-r { animation: wave 0.55s ease-in-out 3; transform-origin: 176px 210px; }
@keyframes wave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-70deg) translate(6px, -4px); } }
.ashe.is-wave .brow { transform: translateY(-3px); }

/* thinking: sip coffee, look up, brow quirk, dots */
.ashe.is-thinking .ashe-arm-l { transform: rotate(38deg) translate(14px, -22px); }
.ashe.is-thinking .pupil-wrap { transform: translate(3px, -3px) !important; }
.ashe.is-thinking .brow-r { transform: translateY(-5px) rotate(-6deg); }
.ashe.is-thinking .dots circle { opacity: 1; animation: dots 1.2s infinite ease-in-out; }
.ashe.is-thinking .dots circle:nth-child(2) { animation-delay: 0.2s; }
.ashe.is-thinking .dots circle:nth-child(3) { animation-delay: 0.4s; }
@keyframes dots { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* happy: bounce + grin */
.ashe.is-happy .ashe-body { animation: bounce 0.5s ease-out 2; transform-origin: 120px 258px; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-9px) scaleY(1.02); } }
.ashe.is-happy .brow { transform: translateY(-4px); }
.ashe.is-happy .ashe-arm-r { transform: rotate(-25deg) translate(2px, -2px); }

/* shrug: shoulders up, hands out, flat mouth */
.ashe.is-shrug .ashe-arm-r { transform: rotate(-95deg) translate(14px, 2px); }
.ashe.is-shrug .ashe-arm-l { transform: rotate(95deg) translate(-14px, 2px); }
.ashe.is-shrug .ashe-torso { animation: none; transform: translateY(-4px); }
.ashe.is-shrug .ashe-head { animation: none; transform: translateY(-3px) rotate(4deg); }
.ashe.is-shrug .brow-l { transform: translateY(-5px) rotate(8deg); }
.ashe.is-shrug .brow-r { transform: translateY(-5px) rotate(-8deg); }

.ashe--avatar .dots { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ashe .ashe-head, .ashe .ashe-torso, .ashe .steam, .ashe.is-wave .ashe-arm-r, .ashe.is-happy .ashe-body, .ashe.is-thinking .dots circle { animation: none; }
}

/* ----------------------------------------------------------------- guides (blog) */
.reading .thread { max-width: 760px; }
.post { background: var(--paper); border-radius: var(--radius-bubble); box-shadow: var(--shadow-bubble); padding: 0 0 8px; overflow: hidden; }
.post-head picture, .post-hero { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.post-head, .post-body, .post-foot, .post-toc { padding-inline: 18px; }
.post-kicker { margin: 16px 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dusk); }
.post-kicker a { color: inherit; text-decoration: none; }
.post h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
.post-dek { margin: 0 0 10px; font-size: 17px; line-height: 1.5; color: var(--ink-2); font-weight: 600; }
.post-meta { margin: 0 0 14px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.post-toc { background: var(--mist); border-radius: 14px; margin: 0 18px 16px; padding: 12px 16px; font-size: 14px; }
.post-toc b { display: block; margin-bottom: 4px; }
.post-toc ol { margin: 0; padding-left: 20px; columns: 1; }
.post-toc li { margin: 2px 0; }
.post-body { font-size: 17px; line-height: 1.65; color: var(--ink); }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 1.1em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: .35em; }
.post-body h2 { font-size: 23px; line-height: 1.2; margin: 1.6em 0 .6em; color: var(--ink); scroll-margin-top: 16px; }
.post-body h3 { font-size: 18.5px; line-height: 1.25; margin: 1.3em 0 .5em; color: var(--ink); scroll-margin-top: 16px; }
.post-body a { color: var(--dusk); font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.post-body blockquote { margin: 0 0 1.1em; padding: 10px 16px; border-left: 4px solid var(--porch); background: var(--mist); border-radius: 0 12px 12px 0; font-weight: 600; }
.post-body strong { font-weight: 800; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 1.2em; }
.post-body th, .post-body td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body th { font-weight: 800; color: var(--ink-2); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.post-fig { margin: 1.2em -18px; }
.post-fig img { display: block; width: 100%; height: auto; }
.post-fig figcaption { font-size: 13px; color: var(--ink-3); padding: 6px 18px 0; font-weight: 600; }
.venue-card { margin: 0 0 1.2em; padding: 12px 14px; border: 1.5px solid var(--line); border-left: 5px solid var(--porch); border-radius: 12px; background: var(--mist); font-size: 15px; line-height: 1.5; }
.venue-card-name { font-weight: 800; font-size: 16px; }
.venue-card-addr a { color: var(--ink-2); font-weight: 600; }
.venue-card-links { margin-top: 2px; }
.venue-card-links a { white-space: nowrap; }
.venue-card-note { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.post-events { margin: 0 0 1.4em; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; background: var(--paper); }
.post-events h3 { margin: 0 0 4px; font-size: 17px; }
.post-events .results { margin: 8px -14px 0; }
.post-events .row .title { font-size: 15px; }
.post-events-more { margin: 12px 0 0; text-align: center; }
.post-events-more .btn-tix { display: inline-flex; }
.post-cta { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; margin: 0 0 1.4em; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, var(--ridge-night), #2a4d6e); color: #fff; }
.post-cta p { margin: 0 0 8px; font-weight: 700; color: #fff; }
.post-cta .btn-tix { display: inline-flex; }
.post-cta-ashe img { width: 56px; height: 56px; border-radius: 50%; background: #fff; }
.post-faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.post-faq details:last-child { border-bottom: 1px solid var(--line); }
.post-faq summary { cursor: pointer; font-weight: 800; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: '+'; color: var(--dusk); font-size: 20px; line-height: 1; flex: none; }
.post-faq details[open] summary::after { content: '–'; }
.post-faq details > div { padding-top: 6px; font-size: 16px; }
.post-faq details > div p:last-child { margin-bottom: 0; }
.post-foot { font-size: 15px; color: var(--ink-2); }
.post-note { background: var(--mist); border-radius: 12px; padding: 10px 14px; line-height: 1.5; }
.post-foot h2 { font-size: 18px; margin: 1.2em 0 .4em; color: var(--ink); }
.post-related { margin: 0; padding-left: 1.2em; }
.post-related li { margin-bottom: .35em; }
.post-related a { color: var(--dusk); font-weight: 700; }
.post-grid { list-style: none; margin: 10px -14px -11px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.post-card a { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; align-items: center; }
.post-card img { width: 112px; height: 72px; object-fit: cover; border-radius: 10px; grid-row: span 3; }
.post-card-k { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dusk); }
.post-card-t { font-size: 16.5px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.post-card-d { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.post-card a:active { background: var(--mist); }
@media (min-width: 720px) {
  .post h1 { font-size: 36px; }
  .post-head, .post-body, .post-foot { padding-inline: 40px; }
  .post-toc { margin-inline: 40px; }
  .post-toc ol { columns: 2; column-gap: 24px; }
  .post-fig { margin-inline: -40px; }
  .post-fig figcaption { padding-inline: 40px; }
  .post-body { font-size: 18px; }
  .post-grid { grid-template-columns: 1fr 1fr; border-top: 0; margin: 10px -14px -11px; }
  .post-card a { grid-template-columns: 1fr; align-content: start; padding: 14px; }
  .post-card img { width: 100%; height: 150px; grid-row: auto; margin-bottom: 4px; }
}
