:root {
  --bg: #F1F3EB;
  --surface: #FFFFFB;
  --white: #FFFFFF;
  --ink: #1F2A22;
  --ink-2: #435047;
  --ink-3: #4A574D;
  --line: #D9DED0;
  --line-2: #BFC7B4;
  --line-3: #E3E7DB;
  --hover: #E4E8DC;
  --seg: #E1E6D8;
  --bubble: #E6EADF;
  --muted-btn: #7E8A7F;
  --track-off: #9AA392;
  --accent: oklch(0.42 0.07 150);
  --accent-hover: oklch(0.37 0.07 150);
  --accent-ink: oklch(0.34 0.06 150);
  --accent-soft: oklch(0.93 0.035 150);
  --accent-softer: oklch(0.95 0.025 150);
  --accent-deep: oklch(0.28 0.05 150);
  --scrim: rgba(24, 36, 28, .38);
  --font: 'Atkinson Hyperlegible', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
input::placeholder, textarea::placeholder { color: #5E6A60; }
h1, h2, h3, p { margin: 0; }

.app { position: relative; height: 100dvh; display: flex; flex-direction: column; background: var(--bg); overflow: clip; }
.wrap { max-width: 912px; margin: 0 auto; }
.narrow { max-width: 752px; margin: 0 auto; }

/* Buttons */
.ghost { min-height: 48px; padding: 0 16px; background: none; border: none; border-radius: 10px; font: 700 17px var(--font); color: var(--ink); display: flex; align-items: center; gap: 10px; }
.ghost:hover { background: var(--hover); }
.ghost.accent { color: var(--accent); }
.primary { min-height: 50px; padding: 0 20px; border: none; border-radius: 12px; background: var(--accent); color: var(--surface); font: 700 17px var(--font); }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.primary.off { background: var(--muted-btn); }
.primary:disabled { background: #A3ADA1; cursor: default; }
.outline { min-height: 48px; padding: 0 18px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); font: 700 17px var(--font); }
.outline:hover { background: var(--bg); }
.link-btn { align-self: flex-start; min-height: 44px; padding: 0 2px; background: none; border: none; font: 700 17px var(--font); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.back-chev { width: 10px; height: 10px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); }
.chev { flex: none; width: 9px; height: 9px; border-top: 2px solid var(--ink-3); border-right: 2px solid var(--ink-3); transform: rotate(45deg); margin-right: 6px; }

/* Header */
.header { position: relative; z-index: 30; background: var(--bg); }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 4px 2px; }
.topbar h1 { font: 700 24px var(--font); }
.topbar .ghost:first-child { justify-self: start; }
.topbar .ghost:last-child { justify-self: end; }
.bars { transition: height .25s ease, opacity .2s ease; height: 128px; }
.bars.hidden { height: 0; opacity: 0; overflow: hidden; }
.bars-inner { padding: 8px 16px 0; }
.searchrow { position: relative; height: 48px; max-width: 600px; }
.closed-row { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.filter-btn { width: 75%; height: 48px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 12px; font: 700 17px var(--font); }
.filter-btn.open { background: var(--bubble); border-color: var(--accent); }
.badge { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: var(--surface); font: 700 14px var(--font); display: inline-flex; align-items: center; justify-content: center; }
.caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--ink); transition: transform .2s; }
.open .caret { transform: rotate(180deg); }
.search-btn { flex: 1; justify-content: center; }
.open-row { position: absolute; inset: 0; display: flex; align-items: center; gap: 4px; opacity: 0; pointer-events: none; }
.open-row.on { opacity: 1; pointer-events: auto; }
.open-row input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 2px solid var(--accent); border-radius: 12px; background: var(--white); font: 400 17px var(--font); outline: none; }
.open-row button { height: 48px; padding: 0 6px 0 10px; background: none; border: none; font: 700 17px var(--font); color: var(--accent); }

.filter-panel { position: absolute; top: 56px; left: 0; width: 100%; z-index: 31; display: flex; flex-direction: column; max-height: min(64dvh, 560px); background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 16px; box-shadow: 0 12px 32px rgba(24,36,28,.18); overflow: hidden; }
.fp-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 10px 18px; gap: 12px; min-height: 64px; }
.fp-head h2 { font: 700 19px var(--font); }
.fp-head button { min-height: 40px; padding: 0 10px; background: none; border: none; font: 700 16px var(--font); color: var(--accent); }
.local-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 10px; padding: 12px 10px; min-height: 64px; background: var(--bg); border: none; border-radius: 12px; text-align: left; }
.local-row.on { background: var(--accent-softer); }
.local-row b { display: block; font: 700 18px var(--font); }
.local-row small { display: block; font: 400 15px var(--font); color: var(--ink-2); margin-top: 2px; }
.switch { flex: none; width: 52px; height: 32px; border-radius: 999px; background: var(--track-off); position: relative; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(20px); }
.divider { height: 1px; background: var(--line); margin: 12px 0 0; }
.eyebrow { font: 700 14px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.fp-eyebrow { padding: 14px 20px 6px; }
.fp-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.fp-body > * { flex: none; }
.cat-grid { padding: 0 10px 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-content: start; gap: 2px; }
.cat { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 6px 10px; background: transparent; border: none; border-radius: 10px; text-align: left; font: 400 17px/1.25 var(--font); }
.cat.on { background: var(--accent-softer); font-weight: 700; }
.box { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--muted-btn); background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--surface); font: 700 16px/1 var(--font); }
.cat.on .box { border-color: var(--accent); background: var(--accent); }
.fp-foot { padding: 10px 12px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.fp-foot .primary { width: 100%; }

.viewbar { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.seg { display: flex; background: var(--seg); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { min-height: 40px; padding: 0 18px; border: none; border-radius: 9px; background: transparent; font: 400 15px var(--font); }
.seg button.on { background: var(--surface); box-shadow: 0 1px 2px rgba(30,50,30,.14); font-weight: 700; }
.result-count { font: 400 16px var(--font); color: var(--ink-2); }
.filter-scrim { position: absolute; inset: 0; z-index: 20; background: rgba(24,36,28,.14); }

/* List */
.list-scroll { flex: 1; min-height: 0; overflow: auto; }
.list-inner { padding: 0 16px 40px; }
.tiles { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 10px; }
.card { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.card:hover { border-color: #9FAA95; }
.card-title { font: 700 20px/1.25 var(--font); }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 700 15px var(--font); }
.card-desc { font: 400 16px/1.45 var(--font); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pill { align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font: 700 14px var(--font); }
.grid .card { border-radius: 14px; padding: 14px; }
.grid .card-title { font-size: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid .card-desc { font-size: 15px; line-height: 1.4; -webkit-line-clamp: 3; }
.grid .pill { padding: 4px 8px; border-radius: 8px; line-height: 1.25; }
.stats { flex: none; display: flex; gap: 16px; align-items: center; font: 700 15px var(--font); }
.grid .stats { margin-top: auto; gap: 14px; }
.stat { display: flex; gap: 6px; align-items: center; }
.up { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 8px solid var(--accent); }
.play { width: 20px; height: 20px; border: 1.5px solid var(--ink-3); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.play::after { content: ""; width: 0; height: 0; margin-left: 2px; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid var(--ink-3); }
.empty { padding: 32px 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.empty h2 { font: 700 20px var(--font); }
.empty p { font: 400 17px/1.45 var(--font); color: var(--ink-2); }

/* Sliding pages */
.page { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
.page.on { transform: translateX(0); visibility: visible; }
.page.detail { z-index: 50; }
.page.sub { z-index: 70; }
.page-head { flex: none; border-bottom: 1px solid var(--line); }
.page-head .narrow { padding: 10px 4px 6px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.page-head .ghost { justify-self: start; }
.page-head h2 { font: 700 24px var(--font); }
.page-body { flex: 1; min-height: 0; overflow: auto; }
.page-body > .narrow { padding: 28px 20px 40px; display: flex; flex-direction: column; gap: 20px; }
.page-body p.lead { font: 400 18px/1.55 var(--font); text-wrap: pretty; }

/* Detail */
.detail-article { max-width: 752px; margin: 0 auto; padding: 20px 20px 56px; display: flex; flex-direction: column; gap: 22px; }
.photo { aspect-ratio: 16/9; border-radius: 16px; background: repeating-linear-gradient(135deg, var(--seg) 0 10px, #EAEDE3 10px 20px); display: flex; align-items: center; justify-content: center; font: 400 14px 'Atkinson Hyperlegible Mono', monospace; color: var(--ink-2); }
.detail-title { display: flex; flex-direction: column; gap: 12px; }
.detail-title .pill { padding: 5px 12px; font-size: 15px; }
.detail-title h2 { font: 700 30px/1.2 var(--font); text-wrap: balance; }
.facts { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.fact { flex: 1 1 100px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.fact small { font: 400 15px var(--font); color: var(--ink-2); }
.fact b { font: 700 19px var(--font); }
.vote { flex: 1 1 140px; flex-direction: row; align-items: center; gap: 12px; border: 2px solid var(--accent); color: var(--accent-ink); transition: background .2s, transform .15s; }
.vote small, .vote b { color: inherit; }
.vote .tri { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 12px solid currentColor; }
.vote .col { display: flex; flex-direction: column; gap: 2px; }
.vote.on { background: var(--accent); color: var(--surface); }
.vote.bump { transform: scale(1.04); }
.body-text { display: flex; flex-direction: column; gap: 10px; }
.body-text p { font: 400 18px/1.6 var(--font); text-wrap: pretty; }
.phone { position: relative; white-space: nowrap; }
.phone a { color: var(--accent); font-weight: 700; }
.copy-tip { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); z-index: 5; padding: 6px 12px; border-radius: 10px; background: var(--ink, #1F2A22); color: #fff; font: 700 14px/1.3 var(--font); white-space: nowrap; box-shadow: 0 6px 18px rgba(24,36,28,.2); pointer-events: none; }
.body-text p.source { font: 400 15px/1.45 var(--font); color: var(--ink-2); }
.section { display: flex; flex-direction: column; gap: 10px; }
.section .eyebrow { font-size: 15px; }
.section .value { font: 400 18px/1.45 var(--font); }
.visit { align-self: flex-start; min-height: 50px; padding: 0 20px; display: flex; align-items: center; gap: 10px; border-radius: 12px; background: var(--accent); color: var(--surface); text-decoration: none; font: 700 17px var(--font); }
.visit:hover { color: var(--surface); background: var(--accent-hover); }
.visit::after { content: ""; width: 9px; height: 9px; border-top: 2.5px solid var(--surface); border-right: 2.5px solid var(--surface); }
.hint { font: 400 15px var(--font); color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font: 700 16px var(--font); }
.h3 { font: 700 22px var(--font); }
.video { display: flex; gap: 14px; align-items: flex-start; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.thumb { flex: none; width: 128px; aspect-ratio: 16/10; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, var(--seg) 0 8px, #EAEDE3 8px 16px); }
.thumb.audio { background: #D5D9D1; font: 700 15px var(--font); }
.thumb .btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,251,.92); border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.thumb .btn::after { content: ""; width: 0; height: 0; margin-left: 3px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid var(--ink); }
.video-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.video-text b { font: 700 17px/1.3 var(--font); }
.video-text span { font: 400 15px/1.4 var(--font); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comments { display: flex; flex-direction: column; gap: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.comments-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
.tag { padding: 5px 10px; border-radius: 8px; background: var(--seg); font: 700 14px var(--font); }
.comments > p { font: 400 16px/1.5 var(--font); color: var(--ink-2); }
.comment { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 6px; }
.comment-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.comment-top b { font: 700 16px var(--font); }
.comment-top span { font: 400 15px var(--font); color: var(--ink-2); }
.comment p { font: 400 17px/1.5 var(--font); }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font: 700 16px var(--font); }
.textarea, .text-input { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--white); font: 400 17px/1.45 var(--font); resize: vertical; outline-color: var(--accent); }
.text-input { height: 52px; padding: 0 16px; font-size: 18px; }
.field .primary { align-self: flex-start; min-height: 48px; }
.notice { padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); font: 400 17px/1.45 var(--font); color: var(--accent-deep); }
.labeled { display: flex; flex-direction: column; gap: 6px; }
.labeled span { font: 400 15px var(--font); color: var(--ink-2); padding-left: 4px; }
.select { width: 100%; height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--white); font: 400 18px var(--font); }
.select::after { content: ""; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid var(--ink); }

/* Drawers */
.scrim { position: absolute; inset: 0; z-index: 60; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: absolute; top: 0; bottom: 0; z-index: 61; background: var(--surface); display: flex; flex-direction: column; visibility: hidden; transition: transform .28s ease, visibility .28s; }
.drawer.on { transform: translateX(0); visibility: visible; }
.drawer.menu { left: 0; width: min(85%, 420px); box-shadow: 8px 0 24px rgba(24,36,28,.16); transform: translateX(-100%); }
.drawer.help { right: 0; width: min(85%, 484px); box-shadow: -8px 0 24px rgba(24,36,28,.16); transform: translateX(100%); }
.drawer.on { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 8px 20px; }
.drawer.help .drawer-head { border-bottom: 1px solid var(--line-3); }
.drawer-head h2 { font: 700 22px var(--font); }
.drawer-head .close { min-height: 48px; padding: 0 12px; background: none; border: none; font: 700 17px var(--font); color: var(--accent); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { display: block; width: 39px; height: 39px; border-radius: 8px; }
.menu-body { flex: 1; min-height: 0; overflow: auto; padding: 8px 12px 24px; display: flex; flex-direction: column; gap: 22px; }
.menu-group { display: flex; flex-direction: column; gap: 4px; }
.menu-group > .eyebrow { padding: 0 8px 6px; }
.menu-row { min-height: 56px; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: none; border: none; border-bottom: 1px solid var(--line-3); font: 400 18px var(--font); text-align: left; white-space: nowrap; }
.menu-row:hover { background: var(--bg); }
.menu-row .value { display: flex; align-items: center; gap: 10px; font: 700 17px var(--font); }
.font-row { padding: 10px 8px 14px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line-3); font: 400 18px var(--font); }
.font-row .seg button { flex: 1; min-height: 44px; font-weight: 700; }
.menu-foot { flex: none; padding: 14px 20px 18px; display: flex; align-items: center; gap: 24px; border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -6px 14px rgba(24,36,28,.06); }
.menu-foot .outline { min-height: 52px; padding: 0 16px; }
.menu-foot .link-btn { margin-left: auto; align-self: center; }

/* Help chat */
.thread { flex: 1; min-height: 0; overflow: auto; padding: 16px 14px 20px; display: flex; flex-direction: column; gap: 14px; }
.bot { align-self: flex-start; max-width: 92%; padding: 12px 16px; border-radius: 4px 16px 16px 16px; background: var(--bubble); font: 400 17px/1.45 var(--font); display: flex; flex-direction: column; gap: 10px; }
.user { align-self: flex-end; max-width: 85%; padding: 12px 16px; border-radius: 16px 4px 16px 16px; background: var(--accent); color: var(--surface); font: 400 17px/1.45 var(--font); }
.typing { font-weight: 700; color: var(--ink-2); letter-spacing: .2em; }
.presets-wrap { position: relative; }
.presets { max-height: 292px; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding-bottom: 28px; }
.preset { flex: none; min-height: 48px; padding: 10px 14px; text-align: left; background: var(--surface); border: 1.5px solid var(--accent); border-radius: 14px; font: 700 16px/1.3 var(--font); color: var(--accent-ink); }
.preset:hover { background: var(--accent-softer); }
.more-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: linear-gradient(rgba(255,255,251,0), var(--surface) 70%); pointer-events: none; display: flex; align-items: flex-end; justify-content: center; font: 400 14px var(--font); color: var(--ink-2); }
.bot-tool { min-height: 48px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; font: 700 16px/1.3 var(--font); }
.bot-tool::after { content: ""; flex: none; width: 8px; height: 8px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); }
.composer { flex: none; display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-3); background: var(--surface); }
.composer input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--white); font: 400 17px var(--font); outline-color: var(--accent); }
.composer .primary { flex: none; padding: 0 16px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill.review { background: #F3E7C9; color: #5C4410; }
.review-notice { background: #F3E7C9; color: #4A370D; }
img.photo { display: block; width: 100%; object-fit: cover; }
.tiles .card-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.source a { color: var(--accent); }
img.photo[hidden] { display: none; }

/* Crisis resources at the top of Help */
.crisis-wrap { flex: none; padding: 12px 14px; border-bottom: 1px solid var(--line-3); }
.crisis { border: 1.5px solid oklch(0.78 0.05 150); border-radius: 14px; background: oklch(0.96 0.02 150); overflow: hidden; }
.crisis-toggle { width: 100%; min-height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: none; border: none; font: 700 17px var(--font); text-align: left; }
.crisis-arrow { flex: none; width: 9px; height: 9px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); margin: 0 4px 4px 0; transition: transform .2s; }
.crisis-toggle.open .crisis-arrow { transform: rotate(-135deg); margin: 4px 4px 0 0; }
.crisis-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; font: 400 17px/1.5 var(--font); }
.crisis-body p { text-wrap: pretty; }
.crisis-body strong { font-weight: 700; }
.crisis-body a { color: oklch(0.38 0.07 150); font-weight: 700; }

/* "Need to talk?" link and dialog */
.talk-link { min-height: 44px; padding: 0 2px; margin-right: auto; background: none; border: none; font: 700 16px var(--font); color: oklch(0.38 0.07 150); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.result-count { white-space: nowrap; }
@media (max-width: 439px) { .preview-tag { display: none; } }
.count-short { display: none; }
@media (max-width: 599px) { .count-full { display: none; } .count-short { display: inline; } }
.talk-scrim { position: absolute; inset: 0; z-index: 80; background: var(--scrim); display: flex; align-items: center; justify-content: center; padding: 20px; }
.talk { position: relative; width: 100%; max-width: 440px; border: 1.5px solid oklch(0.78 0.05 150); border-radius: 16px; background: oklch(0.96 0.02 150); box-shadow: 0 12px 32px rgba(24,36,28,.2); padding: 20px 20px 22px; }
.talk > p:first-of-type { padding-right: 36px; }
.talk-close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: none; border-radius: 10px; font: 700 26px/1 var(--font); color: oklch(0.38 0.07 150); }
.talk-close:hover { background: oklch(0.92 0.03 150); }

/* Tool enhancement request */
.enh-link { margin-left: auto; min-height: 48px; padding: 0 16px; background: none; border: none; font: 700 16px var(--font); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-align: right; }
.sheet { position: absolute; inset: 0; z-index: 90; background: var(--bg); display: flex; flex-direction: column; transform: translateY(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
.sheet.on { transform: translateY(0); visibility: visible; }
.sheet-body { padding: 28px 20px 40px; display: flex; flex-direction: column; gap: 16px; }
.sheet-head { position: relative; display: flex; flex-direction: column; gap: 4px; padding-right: 48px; }
.sheet-head h2 { font: 700 26px/1.2 var(--font); }
.sheet-sub { font: 400 18px/1.4 var(--font); color: var(--ink-2); }
.sheet-close { position: absolute; top: -8px; right: -10px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: none; border: none; border-radius: 10px; font: 700 26px/1 var(--font); color: var(--accent); }
.sheet-close:hover { background: var(--hover); }
.sheet-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 4px; }
.primary.send-btn:disabled { background: var(--muted-btn); }
.send-error { font: 400 17px/1.5 var(--font); color: oklch(0.42 0.13 28); }
.send-error a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Related media (videos, images, audio) on the tool page */
.media { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.media-row { width: 100%; display: flex; gap: 14px; align-items: flex-start; padding: 10px; background: none; border: none; text-align: left; }
.media-row:hover { background: var(--bg); }
.media .thumb { background-size: cover; background-position: center; position: relative; }
.media .thumb.kind-image, .media .thumb.kind-link { border: 1px solid var(--line); }
.media .badge-audio { position: absolute; left: 6px; bottom: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(31,42,34,.85); color: var(--surface); font: 700 13px var(--font); }
.media-meta { font: 700 14px/1.3 var(--font) !important; color: var(--ink-2); -webkit-line-clamp: 1 !important; }
.media-player { position: relative; margin: 0 10px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; }
.media-player.audio { aspect-ratio: auto; height: 152px; background: none; }
.media-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-full { display: block; width: calc(100% - 20px); margin: 0 10px; border-radius: 10px; background: var(--white); }
.media-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 8px 12px 12px; font: 400 14px/1.4 var(--font); color: var(--ink-2); }
.media-foot a { margin-left: auto; font: 700 15px var(--font); color: var(--accent); text-underline-offset: 3px; }
.media-foot a::after { content: " ↗"; }

/* "+ Tool" button, Recommend a Tool form and thank-you toast */
.fab { position: absolute; right: 20px; bottom: 24px; z-index: 40; min-height: 52px; padding: 0 20px 0 16px; display: flex; align-items: center; gap: 8px; border: none; border-radius: 999px; background: var(--accent); color: var(--surface); font: 700 18px var(--font); box-shadow: 0 6px 18px rgba(24,36,28,.28); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.fab span { font: 700 24px/1 var(--font); margin-top: -2px; }
.fab.on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab:hover { background: var(--accent-hover); }
.attach { display: flex; flex-direction: column; gap: 10px; }
.attach-btn { align-self: flex-start; min-height: 50px; padding: 0 18px; display: flex; align-items: center; gap: 10px; border: 1.5px dashed #9AA698; border-radius: 12px; background: var(--surface); font: 700 17px var(--font); }
.attach-btn:hover { background: #F7F8F3; }
.attach-btn span { font: 700 22px/1 var(--font); color: var(--accent); }
.attach-preview { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.attach-thumb { flex: none; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--seg); }
.attach-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.attach-name { min-width: 0; flex: 1; font: 400 16px/1.35 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-wrap { position: absolute; left: 0; right: 0; top: 62px; z-index: 95; height: 0; display: flex; justify-content: center; pointer-events: none; }
.toast { margin-top: 8px; padding: 6px 6px 6px 20px; display: flex; align-items: center; gap: 8px; height: fit-content; max-width: min(88vw, 420px); border: 1.5px solid oklch(0.78 0.05 150); border-radius: 14px; background: oklch(0.96 0.02 150); box-shadow: 0 8px 24px rgba(24,36,28,.16); font: 700 17px/1.35 var(--font); text-align: center; opacity: 0; transform: translateY(-8px); transition: opacity .5s ease, transform .25s ease; }
.toast span { padding: 8px 0; }
.toast.on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast-close { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: none; border-radius: 10px; font: 700 22px/1 var(--font); color: var(--accent); }
.toast-close:hover { background: oklch(0.92 0.03 150); }

/* Location dropdown (Filter panel and Menu > Location) */
.loc { margin: 0 10px; display: flex; flex-direction: column; gap: 8px; }
.page .loc { margin: 0; }
.loc-btn { width: 100%; min-height: 64px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--white); border: 1.5px solid var(--line-2); border-radius: 12px; text-align: left; }
.loc.open .loc-btn { border-color: var(--accent); }
.loc-btn > span:first-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.loc-btn b { font: 700 18px/1.25 var(--font); }
.loc-btn small { font: 400 15px/1.3 var(--font); color: var(--ink-2); }
.loc-btn .caret { flex: none; border-left-width: 6px; border-right-width: 6px; border-top-width: 7px; }
.loc.open .loc-btn .caret { transform: rotate(180deg); }
.loc-panel { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 14px; }
.loc-search { display: flex; align-items: center; gap: 4px; }
.loc-search input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 2px solid var(--accent); border-radius: 12px; background: var(--white); font: 400 17px var(--font); outline: none; }
.loc-search button { height: 48px; padding: 0 6px 0 10px; background: none; border: none; font: 700 17px var(--font); color: var(--accent); }
.loc-list { max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.page .loc-list { max-height: min(52dvh, 440px); }
.loc-row { display: flex; flex-direction: column; border-radius: 12px; }
.loc-row.in { background: var(--accent-softer); }
.loc-city { display: flex; align-items: stretch; }
.loc-name { flex: 1; min-width: 0; min-height: 52px; padding: 0 10px; display: flex; align-items: center; gap: 10px; background: none; border: none; text-align: left; font: 400 18px var(--font); }
.loc-row.in .loc-name { font-weight: 700; }
.loc-mark { flex: none; width: 18px; font: 700 18px var(--font); color: var(--accent); }
.loc-toggle { flex: none; min-width: 52px; min-height: 52px; padding: 0 12px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; background: none; border: none; border-left: 1px solid var(--line-3); border-radius: 0 12px 12px 0; font: 400 15px var(--font); color: var(--ink-2); white-space: nowrap; }
.loc-toggle:hover { background: var(--hover); }
.loc-chev { width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin: 0 2px 4px 0; transition: transform .2s; }
.loc-toggle.open .loc-chev { transform: rotate(-135deg); margin: 4px 2px 0 0; }
.loc-zips { margin: 0 8px 10px 38px; padding: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; background: var(--bg); border: 1px solid var(--line-3); border-radius: 10px; }
.loc-zip { min-height: 44px; padding: 0 6px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--white); color: var(--ink); font: 700 16px var(--font); }
.loc-zip.on { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.loc-empty { padding: 16px 10px; font: 400 17px/1.45 var(--font); color: var(--ink-2); }
[hidden] { display: none !important; }
.future-btn { align-self: flex-start; min-height: 44px; padding: 0 2px; background: none; border: none; font: 700 17px var(--font); color: var(--accent); cursor: default; }
.future-btn span { font-weight: 400; color: #5A665C; font-size: 15px; }
.place { display: flex; flex-direction: column; font: 400 18px/1.45 var(--font); font-style: normal; }
.place + .place { margin-top: 10px; }
.directions { align-self: flex-start; min-height: 44px; display: flex; align-items: center; font: 700 17px var(--font); color: var(--accent); text-underline-offset: 3px; }
.submitted-by { margin: -4px 0 0; font: 400 16px/1.4 var(--font); color: var(--ink-2); }
.submitted-by strong { color: var(--ink); }
.credit { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.credit-check { align-self: flex-start; min-height: 48px; padding: 0 4px; display: flex; align-items: center; gap: 12px; background: none; border: none; text-align: left; font: 400 17px/1.35 var(--font); color: var(--ink); }
.credit-check .box { width: 26px; height: 26px; border-radius: 7px; }
.credit-check.on .box { border-color: var(--accent); background: var(--accent); }
.local-row.local-only { margin-top: 8px; min-height: 56px; padding: 10px; }
.local-row.local-only b { font: 700 18px var(--font); }
.empty.no-local { padding: 4px 0; }
.no-local-msg { align-self: stretch; min-height: 76px; padding: 16px 18px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1.5px dashed oklch(0.62 0.05 150); border-radius: 16px; text-align: center; font: 400 17px/1.4 var(--font); color: oklch(0.36 0.06 150); }
/* A small frowning face: two eyes and a downturned mouth */
.frown { position: relative; flex: none; width: 22px; height: 22px; border: 1.6px solid currentColor; border-radius: 50%; }
.frown::before { content: ""; position: absolute; top: 5px; left: 5.5px; width: 2.4px; height: 2.4px; border-radius: 50%; background: currentColor; box-shadow: 5.4px 0 0 currentColor; }
.frown::after { content: ""; position: absolute; left: 5.2px; top: 10.5px; width: 8.4px; height: 4.6px; border: 1.6px solid currentColor; border-bottom: none; border-radius: 5px 5px 0 0; box-sizing: border-box; }
.add-tool-wrap { position: absolute; left: 0; right: 0; bottom: 32px; z-index: 20; display: flex; justify-content: center; pointer-events: none; }
.add-tool-wrap .add-tool { pointer-events: auto; box-shadow: 0 6px 18px rgba(24,36,28,.22); }
.add-tool { margin-top: 4px; min-height: 50px; padding: 0 22px; display: flex; align-items: center; gap: 8px; font-size: 18px; }
.add-tool span { font: 700 22px/1 var(--font); }

/* ---------- White-label skin: New Obsession (newobsession.toro.menu, see brand.js) ----------
   Their site: black and paper-white sections, aqua pill buttons with black uppercase text,
   pink uppercase eyebrows, a heavy grotesk for headings and Inter for text. Their own display
   fonts are licensed to their site, so headings use the close, free Space Grotesk. */
:root[data-brand="newobsession"] {
  --bg: #F3F1EA;
  --surface: #FFFFFF;
  --ink: #000003;
  --ink-2: #2E2E2E;
  --ink-3: #565D66;
  --line: #DCD8CC;
  --line-2: #BEB9AB;
  --line-3: #E8E4D9;
  --hover: #ECE8DD;
  --seg: #E9E5DA;
  --bubble: #EEEAE0;
  --muted-btn: #8A8A8A;
  --track-off: #A9A69C;
  --aqua: #A2E1E0;
  --aqua-hover: #8FD6D5;
  --aqua-soft: #DEF4F3;
  --pink: #EB5ACE;
  --accent: #B0279A;        /* deeper pink: readable as text and under white text */
  --accent-hover: #93207F;
  --accent-ink: #000003;
  --accent-soft: var(--aqua-soft);
  --accent-softer: #FBE8F7;
  --accent-deep: #000003;
  --scrim: rgba(0, 0, 3, .45);
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
}
[data-brand="newobsession"] .topbar h1,
[data-brand="newobsession"] .drawer-head h2,
[data-brand="newobsession"] .card-title,
[data-brand="newobsession"] .h3,
[data-brand="newobsession"] .detail h2,
[data-brand="newobsession"] h1, [data-brand="newobsession"] h2 { font-family: var(--display); letter-spacing: .01em; }
[data-brand="newobsession"] .eyebrow { font-family: var(--display); color: var(--accent); letter-spacing: .08em; }
/* Aqua pill buttons with black uppercase text, like their "Connect with us" button. */
[data-brand="newobsession"] .primary,
[data-brand="newobsession"] .visit,
[data-brand="newobsession"] .fab { background: var(--aqua); color: #000003; border-radius: 999px; font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; }
[data-brand="newobsession"] .primary:hover:not(:disabled),
[data-brand="newobsession"] .visit:hover,
[data-brand="newobsession"] .fab:hover { background: var(--aqua-hover); color: #000003; }
[data-brand="newobsession"] .visit::after { border-color: #000003; }
[data-brand="newobsession"] .primary:disabled,
[data-brand="newobsession"] .primary.send-btn:disabled { background: #D5D3CC; color: #6B6B6B; }
[data-brand="newobsession"] .pill { background: var(--aqua-soft); color: #000003; }
[data-brand="newobsession"] .card:hover { border-color: var(--line-2); }
[data-brand="newobsession"] .brand img { width: auto; height: 23px; border-radius: 0; }
/* Crisis box, talk dialog and toast use Toro greens directly; give them the aqua/pink palette. */
[data-brand="newobsession"] .crisis,
[data-brand="newobsession"] .talk,
[data-brand="newobsession"] .toast { border-color: var(--aqua); background: #F2FBFB; }
[data-brand="newobsession"] .crisis-body a,
[data-brand="newobsession"] .talk-link { color: var(--accent); }
[data-brand="newobsession"] .talk-close:hover,
[data-brand="newobsession"] .toast-close:hover { background: var(--aqua-soft); }
/* Black header band with white type, like the dark sections of their site. */
[data-brand="newobsession"] .header { background: linear-gradient(#000003 0 64px, var(--bg) 64px); }
[data-brand="newobsession"] .topbar { padding: 8px 4px; }
[data-brand="newobsession"] .topbar h1,
[data-brand="newobsession"] .topbar .ghost { color: #FFFFFF; }
[data-brand="newobsession"] .topbar .ghost.accent { color: var(--aqua); }
[data-brand="newobsession"] .topbar .ghost:hover { background: #2E2E2E; }
[data-brand="newobsession"] .bars-inner { padding-top: 14px; }
