/* Can I? May I? — simple, white, quiet */
:root {
  --bg: #ffffff;
  --ink: #1a1f24;
  --muted: #667085;
  --line: #e7e9ec;
  --soft: #f6f7f8;
  --accent: #0f5e5a;
  --accent-soft: #e6f1f0;
  --mark: #fdf3d0;
  --warn: #fdeee6;
  --danger: #b3412f;
  --font: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: .5rem; }
h2 { font-size: 1.1rem; font-weight: 700; margin: 2.25rem 0 .75rem; }
h3 { font-size: .95rem; font-weight: 700; margin: 1.25rem 0 .5rem; }
.h2-sub { font-weight: 500; color: var(--muted); font-size: .9rem; margin-left: .35rem; }
p { margin: 0 0 .75rem; }
.lead { color: var(--muted); font-size: 1.02rem; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.select { user-select: all; }
.error { color: var(--danger); font-size: .9rem; margin: 0; min-height: 0; }
.error:empty { display: none; }
.ok { color: var(--accent); font-weight: 600; margin: 0 0 .4rem; }
.empty { color: var(--muted); padding: 10px 0; margin: 0; }
.eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .4rem; }

.demo-bar { background: var(--mark); text-align: center; font-size: .85rem; font-weight: 600; padding: 7px 16px; }

/* Header + tabs */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-inner, .tabs-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.header-inner { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 12px; }
.site-header:has(.tabs:not([hidden])) .header-inner { padding-bottom: 0; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo span { color: var(--accent); }
.school-name { color: var(--muted); font-size: .9rem; }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs-inner { display: flex; gap: 2px; white-space: nowrap; }
.tabs a { display: block; padding: 12px 12px 11px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* Layout: ad rail | content | ad rail */
.layout { max-width: 1240px; margin: 0 auto; padding: 28px 20px 48px; display: grid; grid-template-columns: 160px minmax(0, 1fr) 160px; gap: 64px; }
.content { min-width: 0; max-width: 680px; width: 100%; justify-self: center; }
.rail .ad-slot { position: sticky; top: 130px; }

/* Ads */
.ad-slot a { display: block; }
.ad-slot img { display: block; width: 100%; height: auto; border-radius: 6px; }
.ad-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.ad-placeholder { display: grid; place-content: center; text-align: center; border: 1px dashed #c9ced4; border-radius: 6px; color: var(--muted); font-size: .9rem; }
.ad-tall .ad-placeholder { height: 600px; }
.ad-wide { display: none; margin: 28px auto; max-width: 320px; }
.ad-wide .ad-label { text-align: center; }
.ad-wide .ad-placeholder { height: 100px; }

/* Buttons + forms */
.btn { appearance: none; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: 600 .95rem var(--font); padding: .7em 1.2em; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
.btn.ghost { background: #fff; color: var(--ink); border-color: #d3d7dc; }
.btn.small { font-size: .85rem; padding: .45em .9em; }
.btn.wide { width: 100%; }
.text-btn { border: 0; background: none; color: var(--accent); font: 600 .9rem var(--font); padding: 6px 0; cursor: pointer; }
.text-btn.small { font-size: .82rem; padding: 2px 4px; }
.text-btn.danger { color: var(--muted); }
.text-btn.danger:hover, .text-btn.danger[data-armed] { color: var(--danger); }
.icon-btn { border: 0; background: none; font-size: 1.1rem; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 6px; }
label { display: block; font-size: .85rem; font-weight: 600; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: .6em .7em; font: 400 1rem var(--font); color: var(--ink); background: #fff; border: 1px solid #d3d7dc; border-radius: 8px; }
input:disabled { background: var(--soft); color: var(--muted); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: .85rem; font-weight: 600; padding: 0; margin-bottom: 6px; }
.stack-form { display: grid; gap: 14px; }
.narrow { max-width: 420px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1.4fr 1fr .7fr; gap: 10px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; margin-bottom: 6px; }
.check input { width: auto; margin: 0; accent-color: var(--accent); }
.toggles { display: grid; }

/* Sign in */
.auth-box { max-width: 420px; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-top: 1.5rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 8px; padding: 3px; margin-bottom: 16px; }
.seg button { border: 0; background: none; font: 600 .9rem var(--font); color: var(--muted); padding: 8px; border-radius: 6px; cursor: pointer; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.fine { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }

/* Hours card */
.hours-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.hours-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hours-num { font-size: 3rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hours-of { color: var(--muted); font-size: 1.05rem; }
.bar { height: 10px; background: var(--soft); border-radius: 999px; overflow: hidden; margin: 14px 0 10px; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .5s; }
.hours-left { font-size: 1rem; margin: 0 0 16px; }
.hours-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hours-actions .btn { font-size: 1rem; padding: .8em 1.6em; }
.log { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.log summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--accent); }
.log-list { list-style: none; margin: 10px 0; padding: 0; }
.log-list li { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.log-list li.muted { display: block; }
.log-name { min-width: 0; overflow-wrap: anywhere; }
.log-actions { display: flex; gap: 4px; }

/* Accordion items (opportunities, calendar) */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary { list-style: none; display: grid; grid-template-columns: 56px 1fr 20px; gap: 14px; align-items: center; padding: 14px 0; cursor: pointer; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-main { display: grid; gap: 2px; min-width: 0; }
.acc-main b { font-size: 1rem; }
.acc-sum { color: var(--muted); font-size: .9rem; }
.chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); justify-self: center; transition: transform .15s; }
.acc-item[open] .chev { transform: rotate(225deg); }
.acc-body { padding: 0 0 16px 70px; display: grid; gap: 10px; font-size: .93rem; }
.acc-body p { margin: 0; }
.kv span { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.when { text-align: center; background: var(--soft); border-radius: 8px; padding: 6px 0; line-height: 1.15; }
.when .m { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.when .d { font-weight: 800; font-size: 1.3rem; }
.when .any { font-weight: 700; font-size: .78rem; padding: 4px 0; }
.cal-date { font-weight: 700; font-size: .85rem; text-align: center; background: var(--soft); border-radius: 8px; padding: 8px 2px; line-height: 1.2; }
.tag { display: inline-block; justify-self: start; font-size: .72rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: .1em .55em; border-radius: 4px; }

/* Week */
.days { border-top: 1px solid var(--line); }
.day { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.day-name { font-weight: 700; }
.day-name span { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; min-width: 0; }
.day .club { color: var(--muted); font-size: .86rem; }
.time { font-weight: 600; font-variant-numeric: tabular-nums; margin-right: .35rem; }
.day-tag { display: inline-block; background: var(--mark); font-weight: 600; font-size: .8rem; padding: .05em .5em; border-radius: 4px; }
.notes { display: grid; gap: 8px; }
.note { background: var(--soft); border-radius: 8px; padding: 12px 14px; font-size: .93rem; }
.note.important { background: var(--warn); }
.note b { display: block; }
.note p { margin: 0; }
.plain-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; font-size: .95rem; }

/* Swap */
.search-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.results { margin-top: 14px; display: grid; gap: 10px; }
.listing { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 8px; }
.listing.focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.listing-top { display: flex; justify-content: space-between; gap: 10px; }
.price { font-weight: 700; white-space: nowrap; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .88rem; }
.listing-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.listing-actions:empty { display: none; }
.listing-actions .status { width: 100%; margin: 0; font-size: .88rem; color: var(--muted); }
.contact { width: 100%; background: var(--accent-soft); border-radius: 8px; padding: 10px 12px; display: grid; gap: 1px; }
.contact span:first-child { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.focus-box { background: var(--soft); border-radius: 12px; padding: 14px; margin-bottom: 8px; }
.focus-box .listing { background: #fff; }
.focus-box p:last-child { margin: 0; }
.conditions { display: grid; gap: 8px; }
.cond { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 400; cursor: pointer; }
.cond input { margin: 3px 0 0; width: auto; accent-color: var(--accent); }
.cond b { display: block; font-size: .92rem; }
.cond span { font-size: .87rem; color: var(--muted); }
.cond span b { color: var(--ink); }
.cond:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--soft); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: .88rem; font-weight: 500; }
.chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .8rem; padding: 2px 6px; border-radius: 999px; }
.chip button:hover { background: #e7e9ec; color: var(--ink); }

/* Guide */
.guide-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.guide-item p { margin: 0; font-size: .93rem; }

/* Upload dialog */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 24px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--ink); }
dialog::backdrop { background: rgba(20, 24, 28, .45); }
.dlg { padding: 20px 22px 22px; max-height: 88vh; overflow: auto; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dlg-head h2 { margin: 0; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.drop { display: grid; gap: 4px; justify-items: center; text-align: center; border: 2px dashed #d3d7dc; border-radius: 12px; padding: 34px 16px; cursor: pointer; font-weight: 400; }
.drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop b { font-size: 1rem; overflow-wrap: anywhere; }
.reading { text-align: center; padding: 36px 0; }
.spinner { width: 34px; height: 34px; border: 4px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 12px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-note { background: var(--accent-soft); border-radius: 8px; padding: 10px 12px; font-size: .9rem; }
.ai-note.warn { background: var(--mark); }
#up-entries { display: grid; gap: 12px; }
.entry { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
#up-entries.single .entry { border: 0; padding: 0; }
.entry-body { display: grid; gap: 10px; }
.include { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.include input { width: auto; margin: 0; accent-color: var(--accent); }
.entry.skipped .entry-body { display: none; }
.entry.skipped .include { margin: 0; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .92rem; z-index: 20; max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

.site-footer { margin-top: 3rem; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.site-footer p { margin-bottom: .4rem; }

/* Smaller screens: drop side rails, show in-page banners */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .ad-wide { display: block; }
}
@media (max-width: 560px) {
  .header-inner, .tabs-inner { padding-left: 16px; padding-right: 16px; }
  .layout { padding: 22px 16px 40px; }
  h1 { font-size: 1.5rem; }
  .row, .row3 { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr 1fr; }
  .search-row .btn { grid-column: 1 / -1; }
  .day { grid-template-columns: 1fr; gap: 2px; }
  .acc-body { padding-left: 0; }
  .hours-card { padding: 18px; }
  .hours-actions .btn { flex: 1; }
  .log-list li { grid-template-columns: 54px 1fr auto; }
  .log-actions { grid-column: 2 / -1; }
}
@media (prefers-reduced-motion: reduce) { .bar span, .chev { transition: none; } .spinner { animation-duration: 2s; } }

/* Uniform swap: how it works */
.how { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 18px; }
.how summary { cursor: pointer; padding: 12px 14px; font-weight: 600; color: var(--accent); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.how summary::-webkit-details-marker { display: none; }
.how summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.how[open] summary::after { transform: rotate(225deg); }
.how-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 14px 14px; font-size: .92rem; }
.how-body h3 { margin: 0 0 6px; }
.how-body ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; }
@media (max-width: 560px) { .how-body { grid-template-columns: 1fr; } }

/* Sell or trade */
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg3 label { margin: 0; }
.seg3 input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg3 span { display: block; text-align: center; border: 1px solid #d3d7dc; border-radius: 8px; padding: .6em .4em; font-weight: 600; font-size: .9rem; cursor: pointer; }
.seg3 input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.seg3 input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.trade-hint { margin: 0 0 8px; }
.price.trade { color: var(--accent); }
.wants { font-size: .9rem; background: var(--mark); border-radius: 6px; padding: 4px 8px; justify-self: start; }

.proof-btn { margin-left: auto; }
@media (max-width: 560px) { .proof-btn { margin-left: 0; width: 100%; } }

/* Sign-in hero */
.hero-title { font-size: clamp(2.4rem, 7vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; margin: .25rem 0 .6rem; }
.hero-title span { color: var(--accent); }
.hero-punch { font-size: clamp(1.15rem, 3.2vw, 1.4rem); font-weight: 600; margin: 0 0 1rem; }

/* Open ad spot: styled like a hall pass ticket */
.ad-slot .pass, .pass { --pass-bg: #0f5e5a; --pass-ink: #ffffff; --pass-soft: #cfe6e3; --pass-cta: #f6c445;
  position: relative; display: flex !important; flex-direction: column; text-decoration: none; color: var(--pass-ink);
  background: radial-gradient(circle at 85% 8%, rgba(255,255,255,.14) 0 60px, transparent 61px), var(--pass-bg);
  border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(15, 94, 90, .25); transition: transform .15s, box-shadow .15s; }
.pass:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 94, 90, .32); }
.pass:focus-visible { outline: 3px solid var(--pass-cta); outline-offset: 3px; }
.pass > span, .pass-left > span { display: block; }
.pass-tag { line-height: 1.2; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pass-soft); }
.pass-big { font-weight: 800; letter-spacing: -.02em; line-height: .95; }
.pass-text { color: var(--pass-soft); font-size: .82rem; line-height: 1.35; }
.pass-cta { display: inline-block; align-self: flex-start; background: var(--pass-cta); color: #2a2205; font-weight: 800; font-size: .82rem; padding: .55em .9em; border-radius: 999px; }
.pass-mail { font-size: .7rem; color: var(--pass-soft); overflow-wrap: anywhere; }
/* Perforated tear line with notches, like a ticket */
.pass-tear { position: relative; display: block; border-top: 2px dashed rgba(255,255,255,.35); }
.pass-tear::before, .pass-tear::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); }

.pass-tall { height: 600px; padding: 22px 16px 20px; gap: 16px; }
.pass-tall .pass-big { font-size: 2.9rem; margin-top: 6px; }
.pass-tall .pass-tear { margin: 4px -16px; }
.pass-tall .pass-tear::before { left: -8px; } .pass-tall .pass-tear::after { right: -8px; }
.pass-list { display: grid; gap: 8px; margin-top: auto; }
.pass-list span { font-size: .78rem; font-weight: 600; padding-left: 18px; position: relative; }
.pass-list span::before { content: ""; position: absolute; left: 0; top: .35em; width: 9px; height: 9px; border-radius: 50%; background: var(--pass-cta); }
.pass-tall .pass-cta { margin-top: 4px; align-self: stretch; text-align: center; }
.pass-tall .pass-text { font-size: .86rem; }

.ad-slot .pass-wide, .pass-wide { flex-direction: row; align-items: center; height: 100px; padding: 0 14px; gap: 12px; }
.pass-left { display: grid; gap: 3px; flex: 1; min-width: 0; }
.pass-wide .pass-big { font-size: 1.35rem; }
.pass-wide .pass-text { font-size: .75rem; }
.pass-wide .pass-tear { align-self: stretch; border-top: 0; border-left: 2px dashed rgba(255,255,255,.35); }
.pass-wide .pass-tear::before { top: -8px; left: -9px; } .pass-wide .pass-tear::after { top: auto; bottom: -8px; left: -9px; }
.pass-wide .pass-cta { align-self: center; white-space: nowrap; }
.pass-wide .pass-tear { display: block; }
@media (prefers-reduced-motion: reduce) { .pass { transition: none; } .pass:hover { transform: none; } }
.pass .pass-list { display: grid; gap: 10px; margin-top: auto; }
.pass .pass-list > span { display: block; }

/* Moving barbershop stripes */
.pass::before { content: ""; position: absolute; inset: -40px; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 12px, transparent 12px 24px);
  animation: pass-pole 1.6s linear infinite; }
@keyframes pass-pole { to { transform: translateY(-33.94px); } } /* one stripe period: 24px / sin(45deg) */
.pass > span { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .pass::before { animation: none; } }
.demo-reset { margin-left: 8px; border: 1px solid #c9a227; background: #fff; color: #2a2205; font: 700 .8rem var(--font); padding: 3px 10px; border-radius: 999px; cursor: pointer; }

/* ---------------- Sponsor page ---------------- */
.sp-top { max-width: 900px; margin: 0 auto; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sp-back { text-decoration: none; display: inline-block; }
.sp-main { max-width: 900px; margin: 0 auto; padding: 32px 20px 56px; }
.sp-hero { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 40px; align-items: center; }
.sp-title { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: .2rem 0 .8rem; }
.sp-hero .btn { text-decoration: none; display: inline-block; margin-top: .5rem; }
.sp-demo-pass { height: 420px !important; cursor: default; }
.sp-demo-pass .pass-big { font-size: 2.6rem; }
.sp-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.why { background: var(--soft); border-radius: 12px; padding: 16px; }
.why b { display: block; margin-bottom: 4px; }
.why p { margin: 0; font-size: .92rem; color: var(--muted); }
.sp-h2 { font-size: 1.35rem; margin-top: 2.8rem; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.tier { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px; }
.tier.featured { border: 2px solid var(--accent); box-shadow: 0 8px 24px rgba(15, 94, 90, .14); }
.tier-badge { position: absolute; top: -11px; left: 16px; margin: 0; background: #f6c445; color: #2a2205; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.tier-name { font-weight: 700; margin: 0 0 4px; }
.tier-price { font-size: 2.2rem; font-weight: 800; color: var(--accent); margin: 0 0 10px; letter-spacing: -.02em; }
.tier-price span { font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tier ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; font-size: .9rem; }
.sp-offer { margin-top: 16px; }
.specs { display: grid; gap: 12px; }
.spec { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: center; }
.spec p { margin: 0; color: var(--muted); font-size: .92rem; }
.spec-box { display: block; justify-self: center; background: var(--accent-soft); border: 2px dashed var(--accent); border-radius: 4px; }
.spec-box.tall { width: 20px; height: 70px; }
.spec-box.wide { width: 64px; height: 20px; }
.spec-box.line { width: 64px; height: 8px; }
.steps { margin: 0 0 20px; padding-left: 1.3rem; display: grid; gap: 8px; }
.sp-form { border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.sp-sent { background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; }
.sp-sent p { margin: 4px 0 0; }
@media (max-width: 720px) {
  .sp-hero { grid-template-columns: 1fr; }
  .sp-hero-pass { display: none; }
  .sp-why, .tiers { grid-template-columns: 1fr; }
  .sp-top, .sp-main { padding-left: 16px; padding-right: 16px; }
}
.sp-offer { background: var(--mark); border-radius: 10px; padding: 12px 16px; }

/* Banner rotation fade */
.ad-slot { transition: opacity .3s; }
.ad-slot.ad-out { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ad-slot { transition: none; } }

/* Ads stay out of the way: phone spot sits at the end of the page, above the footer */
.ad-end { margin: 48px auto 0; padding-top: 20px; border-top: 1px solid var(--line); }

/* Spots-left counter on the open ad spot */
.pass .pass-count { display: grid; gap: 0; margin-top: 4px; }
.pass-count b { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--pass-cta); letter-spacing: -.02em; }
.pass-count > span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--pass-soft); margin-top: 2px; }
.pass > .pass-right { display: grid; gap: 6px; justify-items: center; }
.pass-count.small { text-align: center; margin: 0; }
.pass-count.small b { font-size: 1.25rem; }
.pass-count.small > span { font-size: .55rem; margin-top: 0; }

/* "Add your ad here" link under a sponsor banner */
.ad-slot .ad-add { display: block; width: max-content; margin: 3px auto 0; color: #111; text-decoration: none;
  font-size: .7rem; font-weight: 700; letter-spacing: .02em; padding: 0; }
.ad-slot .ad-add:hover { text-decoration: underline; }
.sp-design { border: 1px dashed var(--accent); border-radius: 10px; padding: 12px 16px; margin-top: 10px; }

/* ---------------- Sponsor checkout ---------------- */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.co-step { margin-top: 24px; }
.co-step legend { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.co-levels { display: grid; gap: 10px; }
.co-level { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; font-weight: 400; position: relative; }
.co-level input { position: absolute; opacity: 0; }
.co-level:has(input:checked) { border: 2px solid var(--accent); background: var(--accent-soft); padding: 13px 15px; }
.co-level:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.co-level-top { display: flex; justify-content: space-between; gap: 10px; }
.co-level-top b { font-size: 1rem; }
.co-price { font-weight: 800; color: var(--accent); }
.co-desc { font-size: .88rem; color: var(--muted); }
.co-status { font-size: .78rem; font-weight: 700; color: var(--accent); }
.co-status.full { color: #b3412f; }
.co-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; font-weight: 400; cursor: pointer; }
.co-check input { width: auto; margin: 3px 0 0; accent-color: var(--accent); }
.co-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.co-tag { display: inline-block; font-size: .75rem; font-weight: 700; background: var(--mark); padding: 1px 8px; border-radius: 999px; margin-left: 4px; }
.co-cat-note { background: #fdeee6; border-radius: 8px; padding: 10px 12px; font-size: .88rem; margin: 0; }
.co-summary { position: sticky; top: 20px; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-top: 60px; }
.co-summary h2 { margin: 0 0 12px; font-size: 1.1rem; }
.co-line { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; padding: 6px 0; border-bottom: 1px solid var(--line); }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 4px; }
.co-total b { font-size: 1.6rem; font-weight: 800; }
.co-founding { font-size: .82rem; background: var(--mark); border-radius: 8px; padding: 8px 10px; }
.co-go { margin-top: 6px; font-size: 1rem; padding: .85em 1em; }
.co-go.wait { background: #1a1f24; border-color: #1a1f24; }
.co-fine { margin: 10px 0 0; text-align: center; }
.co-done { max-width: 620px; }
.co-done .btn { text-decoration: none; display: inline-block; margin-top: 8px; }
@media (max-width: 780px) {
  .co-grid { grid-template-columns: 1fr; gap: 8px; }
  .co-summary { position: static; margin-top: 16px; }
}
.tier-go { display: block; text-align: center; text-decoration: none; margin-top: 14px; }
.sp-q { margin-top: 28px; }
.sp-main > p > .btn { text-decoration: none; display: inline-block; }
.co-line span:last-child { white-space: nowrap; }

/* Calendar months */
.cal-month { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.6rem 0 .2rem; }
#cal > .cal-month:first-child { margin-top: .4rem; }
.acc-item.off .cal-date { background: var(--warn); }

/* Fingerprinting / volunteer clearance */
.fp-q legend { font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.fp-yn { display: flex; gap: 16px; margin-bottom: 10px; }
.fp-yn label { display: flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; }
.fp-yn input { width: auto; margin: 0; accent-color: var(--accent); }
.fp-card { margin-top: 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--mark); border-radius: 12px; padding: 14px 16px; }
.fp-card.renew { background: #fdeee6; }
.fp-card p { margin: 0; font-size: .92rem; flex: 1; min-width: 220px; }
.fp-card .btn { white-space: normal; }
.fp-steps { margin: 6px 0 12px; }
.fp-drop { padding: 22px 14px; margin-top: 12px; }
.fp-line { font-size: .95rem; }
.results-count { font-size: .82rem; color: var(--muted); margin: 0; }
.results-count:empty { display: none; }

/* Uniform exchange: jump to "Sell or trade" */
.jump-row { margin: 4px 0 16px; }
#sell-head { scroll-margin-top: 110px; }

/* Lost & found: lost on the left, found on the right */
.lf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 8px; }
.lf-col { padding: 14px; min-width: 0; }
.lf-col + .lf-col { border-left: 1px solid var(--line); }
.lf-col-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.lf-col-head h2 { margin: 0; font-size: 1.15rem; }
.lf-list { display: grid; gap: 10px; }
.lf-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 6px; }
.lf-card.is-mine { border-color: var(--accent); background: var(--accent-soft); }
.lf-msg { margin: 0; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.lf-when { margin: 0; font-size: .78rem; color: var(--muted); }
.lf-card .btn { justify-self: start; }
.lf-mine { display: grid; gap: 6px; }
.lf-mine .tag { background: #fff; }
.lf-reply { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: .88rem; overflow-wrap: anywhere; }
.lf-actions { margin-top: 2px; }
.lf-quote { margin: 0 0 4px; border-left: 3px solid var(--accent); padding: 6px 12px; background: var(--soft); border-radius: 0 8px 8px 0; font-size: .93rem; }
#lf-msg { width: 100%; font: inherit; resize: vertical; }
@media (max-width: 560px) {
  .lf-col { padding: 10px 8px; }
  .lf-card { padding: 10px; }
  .lf-msg { font-size: .86rem; }
}

/* Phone/tablet banner docks to the bottom of the screen and stays visible */
@media (max-width: 1180px) {
  .ad-end { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; max-width: none; margin: 0;
    padding: 6px 16px calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line);
    background: var(--bg, #fff); box-shadow: 0 -6px 18px rgba(16, 24, 40, .08); }
  .ad-end > * { max-width: 320px; margin-left: auto; margin-right: auto; }
  .ad-end .ad-label { margin-bottom: 2px; font-size: .58rem; }
  .ad-end .ad-add { margin-top: 2px; }
  /* Fade only the banner on rotation, not the white bar behind it */
  .ad-end.ad-out { opacity: 1; }
  .ad-end > * { transition: opacity .3s; }
  .ad-end.ad-out > * { opacity: 0; }
  /* Keep the end of the page and pop-up messages above the docked banner */
  body { padding-bottom: var(--dock-h, 140px); }
  .toast { bottom: calc(var(--dock-h, 140px) + 12px); }
  /* Out of the way while typing, so it never covers a form field */
  body.typing .ad-end { display: none; }
  body.typing { padding-bottom: 0; }
}

/* Local guide: search + cards */
.guide-filter { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; margin: 6px 0 10px; }
.guide-filter input[type=search] { width: 100%; }
.g-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 6px; }
.g-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 6px; align-content: start; }
.g-card p { margin: 0; font-size: .93rem; }
.g-top { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.g-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.g-name:hover { text-decoration: underline; }
.g-type { font-size: .78rem; color: var(--muted); }
.g-deal { background: #fdf3d7; border-radius: 6px; padding: 4px 8px; justify-self: start; font-weight: 600; font-size: .86rem !important; }
.g-links { display: flex; gap: 14px; font-size: .9rem; font-weight: 600; }
.g-sample { background: #fff4d6; color: #7a5a00; }
.guide-add { margin: -.4rem 0 .8rem; font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) { .guide-filter { grid-template-columns: 1fr; } }

/* Local guide: each business is a full-width bar; photos on the left (top on phones) */
.g-card { padding: 0; overflow: hidden; gap: 0; }
.g-card.has-photos { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.g-info { padding: 16px 18px; display: grid; gap: 6px; align-content: center; }
.g-name { font-size: 1.1rem; }
.g-photos { position: relative; background: var(--soft); overflow: hidden; min-width: 0; }
/* width:100% keeps the photos inside their column. (With only height + aspect-ratio, a tall card made the
   photo strip wider than its column and it covered the text.) */
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; width: 100%; height: 100%; aspect-ratio: 4 / 3; }
.g-card.has-photos .g-track { min-height: 220px; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; scroll-snap-align: center; }
.g-slide img, .g-track > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.g-arrow.prev { left: 8px; } .g-arrow.next { right: 8px; }
.g-arrow[hidden] { display: none; }
.g-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.g-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 2px rgba(0,0,0,.4); }
.g-dots span.on { background: #fff; }
@media (max-width: 640px) {
  .g-card.has-photos { grid-template-columns: 1fr; }
  .g-arrow { display: none; } /* swipe on phones */
}

/* Legal pages: Privacy, Terms, Sponsor Terms */
body.legal { background: var(--bg, #fff); }
.legal-main { max-width: 760px; margin: 0 auto; padding: 24px 20px 60px; line-height: 1.6; }
.legal-back { display: inline-block; margin-bottom: 18px; text-decoration: none; }
.legal-main h1 { margin: 0 0 .4rem; }
.legal-main h2 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
.legal-main p, .legal-main li { font-size: .97rem; }
.legal-main ul { padding-left: 1.2rem; }
.legal-main li { margin: .3rem 0; }
.legal-table { overflow-x: auto; margin: .6rem 0 1rem; }
.legal-table table { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 480px; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--soft); }
.legal-foot { margin-top: 3rem; }

/* Signed out: what's on each page, then the sign-in box */
.locked-list { list-style: none; padding: 0; margin: 4px 0 14px; display: grid; gap: 8px; }
.locked-list li { position: relative; padding-left: 26px; font-size: .97rem; }
.locked-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: .72rem; font-weight: 800; display: grid; place-items: center; margin-top: 3px; }
.locked-note { font-weight: 600; margin: 0 0 4px; }

/* "I agree" checkboxes at sign-up and sponsor checkout */
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; font-weight: 400; line-height: 1.45; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--accent); }
.co-agree { margin: 12px 0 4px; }

/* ---------------- Claim page ---------------- */
.claim-view { max-width: 560px; margin: 0 auto; }
.claim-back { display: inline-block; margin: 4px 0 12px; font-weight: 600; text-decoration: none; }
.claim-card, .claim-result, .claim-wait { border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 12px; }
.claim-card .listing { border: 0; padding: 0; }
.claim-card .listing-top b { font-size: 1.15rem; }
.claim-go { font-size: 1.05rem; padding: .85em 1.2em; }
.claim-wait { text-align: center; justify-items: center; padding: 44px 22px; }
.claim-wait-msg { font-size: 1.3rem; font-weight: 800; margin: 0; }
.claim-bar { width: 100%; max-width: 280px; height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.claim-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; animation-name: claimFill; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes claimFill { to { width: 100%; } }
.claim-result { text-align: center; justify-items: center; }
.claim-result h1 { margin: 0; font-size: 1.6rem; }
.claim-result.win { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.claim-emoji { font-size: 2.4rem; margin: 0; line-height: 1; }
.claim-what { font-weight: 600; margin: 0; }
.claim-contact { display: grid; gap: 2px; background: var(--accent-soft); border-radius: 10px; padding: 14px 18px; min-width: min(100%, 300px); }
.claim-contact span:first-child { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.claim-contact b { font-size: 1.15rem; }
.claim-contact .select { font-size: 1.1rem; font-weight: 600; }
.claim-result .listing { text-align: left; width: 100%; }
/* Ads on the claim page: computer = left + right + one under the box; phone = one above + the docked one below */
.claim-view .claim-ad-top { margin: 0 auto 14px; }
.claim-view .claim-ad-bottom { display: block; margin: 22px auto 0; max-width: 320px; }
@media (max-width: 1180px) { .claim-view .claim-ad-bottom { display: none; } }
@media (prefers-reduced-motion: reduce) { .claim-bar span { animation-duration: 0s !important; } }

/* Claim results: keep the search going, or turn the emails off */
.search-opts { width: 100%; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; justify-items: center; }
.search-opts p { margin: 0; }
.search-q { font-weight: 700; }
.search-state { font-size: .9rem; color: var(--muted); }
.search-state.on { color: var(--accent); font-weight: 600; }
.search-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.search-btns .btn.picked { box-shadow: 0 0 0 3px var(--accent-soft); }
.claim-card .lf-card { background: var(--soft); border: 0; }
.claim-card label { text-align: left; }

/* Stick figure between "Can I?" and "May I?" */
.logo, .hero-title { display: inline-flex; align-items: center; gap: .18em; flex-wrap: nowrap; }
.logo-fig { height: 1.7em; width: 1.04em; flex: none; color: var(--ink); overflow: visible; }
.logo .logo-fig { height: 1.75em; width: 1.07em; margin: -.3em 0; }
.hero-title .logo-fig { height: 1.45em; width: .885em; margin: -.1em 0; }

/* ---------------- Sponsor dashboard + admin ---------------- */
.sd-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sd-nav { display: flex; gap: 16px; align-items: center; font-weight: 600; font-size: .92rem; }
.sd-nav a { text-decoration: none; }
.sd-main { max-width: 960px; }
.sd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sd-title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin: .1rem 0 .4rem; }
.sd-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.sd-status.active { background: #e3f4e8; color: #1d6b3a; }
.sd-status.paused { background: #fdf3d7; color: #7a5a00; }
.sd-status.canceled { background: #f6e3e3; color: #8a2a2a; }
.sd-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 18px; display: grid; gap: 14px; }
.sd-card h2 { margin: 0; font-size: 1.2rem; }
.sd-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sd-range { margin: 0; grid-template-columns: repeat(3, auto); }
.sd-range button { border: 0; background: none; font: 600 .85rem var(--font); padding: .45em .9em; border-radius: 6px; cursor: pointer; color: var(--muted); }
.sd-range button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.sd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .sd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sd-tile { background: var(--soft); border-radius: 10px; padding: 14px; display: grid; gap: 2px; }
.sd-tile b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.sd-tile span { font-size: .82rem; color: var(--muted); }
.sd-chart-title { margin: 0 0 6px; font-size: .85rem; font-weight: 600; }
.sd-chart { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 140px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sd-bar { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-width: 2px; opacity: .85; }
.sd-bar:hover { opacity: 1; }
.sd-axis { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }
.sd-axis i { font-style: normal; }
.sd-note { border-radius: 10px; padding: 12px 14px; font-size: .92rem; }
.sd-note.pending { background: #fdf3d7; }
.sd-note.rejected { background: #f6e3e3; }
.sd-live-label { margin: 0 0 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.sd-banner-pair { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: start; }
.sd-tall { width: 110px; border-radius: 6px; display: block; border: 1px solid var(--line); }
.sd-wide { width: 100%; max-width: 320px; border-radius: 6px; display: block; border: 1px solid var(--line); margin-bottom: 8px; }
.sd-banner-pair p { margin: 4px 0; overflow-wrap: anywhere; }
.sd-edit summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 6px 0; }
.sd-edit[open] summary { margin-bottom: 10px; }
.sd-previews { display: flex; flex-wrap: wrap; gap: 14px; }
.sd-previews figure { margin: 0; }
.sd-previews img { max-height: 160px; max-width: 100%; border-radius: 6px; border: 1px solid var(--line); display: block; }
.sd-previews figcaption { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.sd-previews .warn { color: #a05a00; }
.sd-guide-preview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.sd-guide-preview p { margin: 4px 0; }
.sd-guide-pics { display: flex; gap: 6px; overflow-x: auto; }
.sd-guide-pics .ph-thumb { flex: 0 0 auto; }
.sd-photos-label { font-weight: 600; font-size: .92rem; }
.sd-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.sd-photos figure { position: relative; margin: 0; }
.sd-photos .ph-edit { cursor: pointer; padding: 0; border: 0; background: none; }
.sd-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: .8rem; }
.sd-add-photo { justify-self: start; cursor: pointer; }
.sd-switch { font-size: .88rem; }
.sd-count { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8rem; text-align: center; vertical-align: middle; }
.sd-count:empty { display: none; }
.ad-review { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 12px; margin-bottom: 12px; }
.ad-review-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ad-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ad-old { opacity: .7; }
.ad-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ad-note { flex: 1 1 220px; }
.ad-table-wrap { overflow-x: auto; }
.ad-table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 640px; }
.ad-table th, .ad-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ad-table th { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ad-biz { width: 100%; min-width: 160px; font-weight: 600; }
@media (max-width: 560px) {
  .sd-banner-pair { grid-template-columns: 80px minmax(0, 1fr); }
  .sd-tall { width: 80px; }
  .sd-card { padding: 16px; }
}

/* Text alerts (Account) */
.sms-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; max-width: 560px; }
.sms-box p { margin: 0; }
.sms-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
@media (max-width: 560px) { .sms-row { grid-template-columns: 1fr; } }

/* Framed photos (Local Guide): a fixed 4:3 box; the photo inside can be moved and zoomed */
.ph-thumb { position: relative; display: block; width: 120px; height: 90px; overflow: hidden; border-radius: 8px; background: var(--soft); }
.ph-thumb img { width: 100%; height: 100%; display: block; }
.ph-tag { position: absolute; left: 4px; bottom: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-size: .72rem; font-weight: 600; }
.ph-edit:hover img, .ph-edit:focus-visible img { filter: brightness(.9); }
.ph-dialog { width: min(560px, calc(100vw - 32px)); border: 0; border-radius: 14px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.ph-dialog::backdrop { background: rgba(0,0,0,.45); }
.ph-dialog h2 { margin: 0 0 4px; }
.ph-frame { margin: 12px 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--soft); cursor: grab; touch-action: none; user-select: none; }
.ph-frame.dragging { cursor: grabbing; }
.ph-frame img { width: 100%; height: 100%; display: block; pointer-events: none; }
.ph-zoom { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; font-weight: 600; }
.ph-zoom input { width: 100%; accent-color: var(--accent); }
.ph-btns { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; margin-top: 14px; }

/* Account: sponsor login / become a sponsor */
.acc-sponsor { margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft);
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; max-width: 560px; }
.acc-sponsor h2 { margin: 0 0 4px; }
.acc-sponsor p { margin: 0; }
.texts-demo { margin: .8rem 0 1rem; background: #fff; }
.texts-demo input:disabled, .texts-demo button:disabled { opacity: 1; cursor: default; }
.sms-soon { margin: 0; }
/* Seller warning: the parent who claimed this has claimed a lot today */
.claim-warn { background: #fff4d6; border: 1px solid #f0d58a; border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; margin: 4px 0 6px; }
.claim-warn p { margin: 0; }
.claim-warn-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.claim-result.held h1 { font-size: 1.45rem; }
/* Family linking */
.fam-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; max-width: 560px; justify-items: start; }
.fam-box p { margin: 0; }
.fam-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.fam-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 10px; background: var(--soft); border-radius: 8px; }
.fam-acts { margin-left: auto; display: flex; gap: 10px; }
.fam-row { width: 100%; }
.join-note { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: #e7f4f1; font-size: .93rem; }
.who-tag { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: .74rem; color: var(--muted); vertical-align: middle; }
#family-wrap .hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 4px; }
/* Sponsor dashboard: Featured Sponsors' Sunday email ad */
.sd-sunday { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; margin: 0; }
.sd-sunday legend { font-weight: 700; padding: 0 6px; }
.sd-sunday-live { margin-top: 12px; }
.sd-sunday-img { width: 100%; max-width: 420px; border-radius: 8px; display: block; }
#acc-kids-hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 4px; }
/* Local Guide levels: Featured (gold ★) first, then Sponsors (silver ◆) */
.g-featured { border: 2px solid #d4a52a; box-shadow: 0 0 0 3px rgba(212, 165, 42, .14); }
.g-sponsored { border: 2px solid #aab3bd; }
.g-pinned { margin-bottom: 14px; }
.g-title { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.g-badge { flex: none; font-size: 1rem; line-height: 1; }
.g-badge.gold { color: #c9971c; }
.g-badge.silver { color: #8a949e; }
.g-tier-label { justify-self: start; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a6510; background: #fbf1d4; border-radius: 999px; padding: 2px 8px; }
/* Account: sign out / delete account */
.acc-out { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.danger { color: #b42318; border-color: #f1b8b2; }
.btn.danger:hover { background: #fdf0ee; }
.btn.danger-fill { background: #b42318; border-color: #b42318; color: #fff; }
.btn.danger-fill:hover { background: #912018; }
.del-save { background: var(--soft); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; justify-items: start; margin: 4px 0 8px; }
.del-save p { margin: 0; }
.tier-billed { margin: -6px 0 10px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.tier.featured .tier-price { margin-bottom: 10px; }
/* Uniform alerts: place in line */
.line-place { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: #e7f4f1; color: #0f5e5a; font-size: .75rem; font-weight: 700; }
.line-note { max-width: 640px; margin-top: 6px; }
/* Launch prices: regular price crossed out, launch price "until May 1, 2027" */
.tier-was { margin: 0; font-size: 1rem; font-weight: 700; color: var(--muted); }
.tier-was s { text-decoration-thickness: 2px; text-decoration-color: #c0392b; }
.tier .tier-price { margin-bottom: 2px; }
.tier-until { margin: 0 0 12px; font-size: .82rem; font-weight: 700; color: #8a6510; }
.co-was { color: var(--muted); font-weight: 600; text-decoration-thickness: 2px; text-decoration-color: #c0392b; margin-right: 2px; }
.co-until { font-size: .78rem; font-weight: 700; color: #8a6510; }
.co-until[hidden] { display: none; }
.sms-send { display: grid; gap: 10px; } .sms-consent { font-weight: 400; font-size: .85rem; line-height: 1.45; align-items: flex-start; } .sms-consent input { margin-top: 3px; }
/* Uniform claim: "This exchange is sponsored by" (Featured Sponsor) */
.xs-sponsor { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin: 0 0 12px; padding: 10px 12px; border: 2px solid #d4a52a; border-radius: 12px; background: #fffaf0; text-align: center; }
.xs-sponsor[hidden] { display: none; }
.xs-label { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a6510; flex-basis: 100%; }
.xs-link { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; }
.xs-link:hover .xs-name { text-decoration: underline; }
.xs-img { width: 320px; max-width: 100%; height: auto; border-radius: 8px; display: block; }
.xs-name { font-size: .95rem; }
.xs-open { font-weight: 700; font-size: .9rem; }
.tier-preview { display: block; text-align: center; font-weight: 700; font-size: .9rem; margin: 14px 0 8px; }

/* Local Deals: claim button, coupons, and the redeem screen */
:root { --go: #1f8a4c; --go-dark: #166b3a; --go-soft: #e7f5ec; }
.g-deal-box { display: grid; gap: 6px; justify-items: start; margin-top: 2px; }
.g-terms { font-size: .8rem !important; color: var(--muted); }
.g-every { font-size: .75rem !important; color: var(--muted); }
.btn.g-claim { background: var(--go); border-color: var(--go); color: #fff; min-width: 120px; }
.btn.g-claim:hover:not(:disabled) { background: var(--go-dark); border-color: var(--go-dark); }
.btn.g-claim.mine { background: #fff; color: var(--go-dark); border: 2px solid var(--go); }
.btn.g-claim:disabled { background: var(--soft); border-color: var(--line); color: var(--muted); }
.my-coupons { margin: 4px 0 14px; }
.my-coupons h2 { margin: 0 0 8px; }
.coupon-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.coupon-chip { display: grid; gap: 2px; border: 2px dashed var(--go); background: var(--go-soft); border-radius: 10px; padding: 10px 12px; text-decoration: none; color: var(--ink); }
.coupon-chip b { color: var(--go-dark); }
.coupon-card { border: 2px dashed var(--go); border-radius: 14px; padding: 22px 18px; text-align: center; display: grid; gap: 4px; justify-items: center; max-width: 460px; margin: 0 auto; }
.coupon-card p { margin: 0; }
.coupon-deal { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.coupon-biz { font-weight: 700; }
.coupon-addr { color: var(--muted); font-size: .92rem; }
.coupon-code { font: 700 1.6rem/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; color: var(--go-dark); margin: 10px 0 2px !important; }
#coupon-act { width: 100%; display: grid; gap: 8px; margin: 14px 0 6px; }
.coupon-how { font-size: .92rem; }
.btn.go-green { background: var(--go); border-color: var(--go); color: #fff; font-size: 1.1rem; padding-block: 14px; }
.btn.go-green:hover:not(:disabled) { background: var(--go-dark); border-color: var(--go-dark); }
.coupon-confirm { display: grid; gap: 8px; background: var(--go-soft); border-radius: 10px; padding: 16px; }
.coupon-confirm p { margin: 0; }
.coupon-q { font-size: 1.25rem; font-weight: 800; }

.claim-view.redeemed-mode .ad-slot, .claim-view.redeemed-mode .claim-back { display: none; }
.redeemed { background: var(--go); color: #fff; border-radius: 18px; padding: 28px 20px 24px; text-align: center; display: grid; justify-items: center; gap: 6px; min-height: 70vh; align-content: center; }
.redeemed p { margin: 0; }
.redeemed h1 { color: #fff; font-size: 1.9rem; margin: 6px 0 0; }
.redeemed-check { width: 120px; height: 120px; animation: rc-pulse 1.6s ease-in-out .9s infinite; }
.redeemed-check circle { fill: rgba(255,255,255,.14); stroke: #fff; stroke-width: 6; stroke-dasharray: 330; stroke-dashoffset: 330; animation: rc-draw .6s ease-out forwards; }
.redeemed-check path { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: rc-draw .4s .5s ease-out forwards; }
@keyframes rc-draw { to { stroke-dashoffset: 0; } }
@keyframes rc-pulse { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.08) rotate(-4deg); } }
.redeemed-deal { font-size: 1.5rem; font-weight: 800; background: rgba(255,255,255,.16); border-radius: 10px; padding: 6px 14px; margin-top: 6px !important; }
.redeemed-biz { font-size: 1.05rem; line-height: 1.4; }
.redeemed-code { font: 700 1.3rem/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .14em; opacity: .95; }
.redeemed-clock { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 8px !important; }
.redeemed-at { font-size: .9rem; opacity: .9; }
.btn.redeemed-done { background: #fff; color: var(--go-dark); border-color: #fff; margin-top: 12px; min-width: 160px; }
@media (prefers-reduced-motion: reduce) { .redeemed-check { animation: none; } .redeemed-check circle, .redeemed-check path { animation-duration: .01s; } }

/* Business-only login */
.biz-box { display: grid; gap: 12px; text-align: center; }
.biz-box p { margin: 0; }
.biz-also .text-btn { font-weight: 700; }
.redeemed-clock { display: grid; line-height: 1.15; }
#redeemed-today { font-size: 1rem; font-weight: 600; opacity: .95; }
body.redeemed-open .ad-end { display: none; }
.sd-deal-pitch { display: grid; gap: 4px; background: #e7f5ec; border: 1px solid #bfe3cc; border-radius: 10px; padding: 12px 14px; font-size: .92rem; }
.sd-deal-pitch b:first-child { color: #166b3a; }
a.btn { text-decoration: none; text-align: center; }
.acc-admin { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 2px solid var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; margin: 4px 0 18px; }
.acc-admin p { margin: 2px 0 0; }
@media (max-width: 560px) { .acc-admin { flex-direction: column; align-items: stretch; } }
/* Website banners off until the start date (data/ads.js) */
body.ads-off .ad-slot, body.ads-off .xs-sponsor { display: none !important; }
@media (max-width: 1180px) { body.ads-off { padding-bottom: 0; } }

/* Sneak peeks for signed-out visitors */
.peek-sample { background: #fff6dd; border: 1px solid #ecd28a; border-radius: 10px; padding: 10px 14px; margin: 6px 0 16px; font-size: .95rem; }
.peek-form select:disabled { opacity: .7; }
#peek .listing-actions { display: flex; align-items: center; gap: 10px; }
#peek .results { margin-bottom: 8px; }
#peek h2 { margin-top: 26px; }
#auth-view.peeking .auth-box { margin-top: 34px; }
.peek-hours { margin-top: 18px; }
.acc-admin-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ad-jump { font-size: .92rem; margin: -6px 0 14px; }
#u-detail { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
#u-detail h3 { margin: 16px 0 6px; font-size: 1rem; }
.u-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.u-head h3 { margin: 0; font-size: 1.15rem; }
.u-head p { margin: 2px 0 0; }
.u-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: .92rem; }
.u-facts dt { font-weight: 700; color: var(--muted); }
.u-facts dd { margin: 0; }
.u-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: .92rem; }
@media (max-width: 560px) { .u-facts { grid-template-columns: 1fr; } .u-facts dt { margin-top: 6px; } }
