/* RehomeFish Classifieds. Same tokens as the app: navy wayfinding, one blue for actions,
   white surfaces, Figtree. Phone first; at 1024px the area page becomes a Craigslist board. */

@font-face {
  font-family: "Figtree";
  src: url("/assets/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #f3f4f8;
  --surface: #ffffff;
  --ink: #141820;
  --muted: #5b6471;
  --faint: #8a93a0;
  --line: #e8eaef;
  --field-border: #d3d8e0;
  --navy: #0d2b45;
  --navy-soft: rgba(255, 255, 255, 0.14);
  --blue: #0276b1;
  --blue-ink: #01557f;
  --blue-wash: #e4f0f8;
  --ok: #1a7f37;
  --ok-wash: #e6f4ea;
  --amber-wash: #fbf1e1;
  --danger: #b4321f;
  --t-blue: #0a84c6; --t-teal: #0e9488; --t-amber: #c27a12; --t-coral: #e0552f; --t-violet: #6b5bd6; --t-pink: #d6336c; --t-green: #2f9e44;
  --r-s: 10px;
  --r: 14px;
  --gutter: 20px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 16px/1.45 var(--font); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 680px; margin: 0 auto; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 14px; line-height: 20px; }
.t-center { text-align: center; }
.spread { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.plain { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plain .muted { white-space: nowrap; font-size: 15px; }
.strong-link { display: inline-block; margin-top: 10px; font-weight: 700; }
.eyebrow { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.lede { color: var(--muted); font-size: 17px; line-height: 25px; margin-top: 8px; }
.opt { color: var(--faint); font-weight: 500; font-size: 14px; }

/* Icons */
.ic { display: inline-flex; width: 18px; height: 18px; flex-shrink: 0; }
.ic svg { width: 100%; height: 100%; }
.ic-xs { width: 13px; height: 13px; }
.ic-ok { color: var(--ok); }
.ic-muted { color: var(--muted); }
.ic-blue { color: var(--blue); }

/* Header */
.top { background: var(--navy); color: #fff; padding: calc(10px + env(safe-area-inset-top)) 0 12px; }
.top-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo area" "switch switch"; gap: 12px 12px; align-items: center; padding: 0 16px; max-width: 1400px; margin: 0 auto; }
.logo { grid-area: logo; display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo-fish { display: inline-flex; width: 27px; height: 17px; color: #fff; --eye: var(--navy); }
.logo-fish svg { width: 100%; height: 100%; }
.area-switch { grid-area: area; display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 700; font-size: 15px; padding: 7px 12px; border-radius: var(--r-s); background: var(--navy-soft); white-space: nowrap; }
.area-switch:hover { text-decoration: none; background: rgba(255, 255, 255, 0.2); }
.top-search, .top-links { display: none; }
.switch { grid-area: switch; display: flex; gap: 4px; padding: 4px; border-radius: var(--r); background: var(--navy-soft); }
.switch a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border-radius: var(--r-s); color: #fff; font-weight: 600; font-size: 15px; }
.switch a:hover { text-decoration: none; background: rgba(255, 255, 255, 0.08); }
.switch a .ic { width: 15px; height: 15px; }
.switch a[aria-current="page"] { background: #fff; color: var(--navy); font-weight: 800; }

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: var(--r); border: 1.5px solid transparent; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); }
.btn-primary .ic { width: 18px; height: 18px; }
.btn-soft { background: var(--blue-wash); color: var(--blue); min-height: 38px; padding: 0 14px; font-size: 15px; border-radius: var(--r-s); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; min-height: 42px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; cursor: pointer; font-size: inherit; }

input, select, textarea { width: 100%; border: 1.5px solid var(--field-border); border-radius: var(--r); background: #fff; padding: 0 16px; min-height: 50px; font-size: 16px; }
textarea { padding: 14px 16px; line-height: 23px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
label, legend { display: block; font-weight: 700; font-size: 15px; margin: 18px 0 6px; }
fieldset { border: 0; padding: 0; margin: 0; }
.form .btn-primary[type="submit"] { margin-top: 22px; }
.form-error { color: var(--danger); font-weight: 600; font-size: 15px; margin-top: 12px; min-height: 0; }
.form-error:empty { display: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.two { display: flex; gap: 12px; }
.two > div { flex: 1; min-width: 0; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; }

/* Chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.chip { flex-shrink: 0; white-space: nowrap; border: 1.5px solid var(--field-border); background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.chip-check { margin: 0; font-weight: 600; font-size: 14px; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chip-check span { display: inline-block; border: 1.5px solid var(--field-border); padding: 9px 13px; border-radius: 999px; cursor: pointer; }
.chip-check input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.chip-check input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent); }

/* Home */
.hero { max-width: 680px; margin: 0 auto; padding-top: 28px; padding-bottom: 22px; }
.hero h1 { font-size: 34px; line-height: 38px; font-weight: 800; letter-spacing: -0.025em; }
.where { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.where .btn-primary { min-height: 52px; font-size: 17px; }
.zip-form { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--field-border); border-radius: var(--r); padding: 0 6px 0 4px; background: #fff; }
.zip-form input { border: 0; box-shadow: none; min-height: 48px; padding: 0 12px; }
.zip-form-inline { margin: 10px 0; }
.where-msg { color: var(--muted); font-size: 15px; }
.where-msg:empty { display: none; }
.every { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 4px 2px 0; }
.every .ic { width: 15px; height: 15px; }
.every a { font-weight: 700; }
.band { border-top: 8px solid var(--bg); padding-top: 18px; padding-bottom: 20px; }
.band.narrow { max-width: none; }
.band-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; max-width: 680px; margin: 0 auto; }
.band > *:not(.band-head) { max-width: 680px; margin-left: auto; margin-right: auto; }
.band-head a { font-weight: 600; font-size: 15px; }
.states { list-style: none; }
.state-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.state-name { width: 96px; flex-shrink: 0; font-weight: 700; }
.state-areas { flex: 1; }
.state-areas a { font-weight: 500; }
.state-areas a.quiet { color: var(--faint); }
.band .fine { margin-top: 12px; }
.show-strip { list-style: none; display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.show-chip { display: flex; flex-direction: column; gap: 4px; min-width: 220px; padding: 14px 16px; border-radius: var(--r); background: var(--blue-wash); color: var(--ink); }
.show-chip:hover { text-decoration: none; background: color-mix(in srgb, var(--blue-wash) 80%, var(--blue) 8%); }
.show-chip-name { font-weight: 800; color: var(--blue-ink); }
.show-chip-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.show-chip-count { font-size: 13px; font-weight: 700; color: var(--ok); }

/* Area page */
.board { max-width: 1400px; margin: 0 auto; }
.area-title { padding: 22px 0 14px; }
.area-title h1 { font-size: 30px; line-height: 34px; font-weight: 800; letter-spacing: -0.025em; }
.area-title .muted { margin-top: 4px; font-size: 15px; }
.area-search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: var(--r); background: var(--bg); margin: 6px 0 12px; color: var(--muted); }
.area-search input { border: 0; background: transparent; box-shadow: none; min-height: 46px; padding: 0; }
.rail-left .rail-block { padding: 0 0 12px; }
.rail-left .rail-block h2 { display: none; }
.rail-right { border-top: 8px solid var(--bg); margin: 0 calc(-1 * var(--gutter)); padding: 18px var(--gutter) 28px; display: flex; flex-direction: column; gap: 24px; }
.rail-block .eyebrow { margin-bottom: 10px; }
.sellers li { display: flex; flex-direction: column; gap: 1px; }
.sellers a { font-weight: 600; font-size: 15px; word-break: break-all; }
.sellers .muted { font-size: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 0 8px; border-top: 8px solid var(--bg); margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
.section-head a { font-weight: 600; font-size: 15px; white-space: nowrap; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding-bottom: 18px; }
.kind-head { display: flex; justify-content: space-between; font-weight: 600; font-size: 16px; }
.kind-head .count { color: var(--muted); font-weight: 400; }
.kind-links { display: none; }
.want-box { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r); background: var(--blue-wash); margin: 8px 0 18px; }
.want-box h2 { color: var(--blue-ink); font-size: 17px; font-weight: 800; }
.want-box p { font-size: 15px; line-height: 21px; }
.want-box input { min-height: 42px; border: 0; }
.want-box .btn { min-height: 42px; }
.want-wide { margin-top: 24px; }
.empty { padding: 16px 0; color: var(--muted); }

/* Listing rows */
.rows { list-style: none; }
.row a { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.row a:hover { text-decoration: none; }
.row a:hover .row-name { color: var(--blue); }
.row .photo { width: 72px; height: 72px; flex-shrink: 0; border-radius: 12px; }
.row-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.row-name { font-weight: 700; line-height: 21px; }
.row-meta { color: var(--muted); font-size: 14px; }
.row-price { width: 56px; flex-shrink: 0; text-align: right; font-weight: 800; font-size: 17px; }
.ships { color: var(--ok); font-weight: 600; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; vertical-align: 2px; }
.tag-wanted { background: var(--amber-wash); color: #8a5a08; }
.lines { display: none; }
[hidden], .is-hidden { display: none !important; }

/* Photo placeholders */
.photo { display: flex; align-items: center; justify-content: center; position: relative; background: var(--wash); color: var(--fish); }
.photo-fish { display: inline-flex; width: 46%; max-width: 120px; aspect-ratio: 26 / 16; opacity: 0.55; --eye: #fff; }
.photo-fish svg { width: 100%; height: 100%; }
.photo-count { position: absolute; right: 12px; bottom: 12px; color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(13, 43, 69, 0.75); }
.tint-blue { --wash: #e4f0f8; --fish: var(--t-blue); }
.tint-green { --wash: #e6f4ea; --fish: var(--t-green); }
.tint-amber { --wash: #fbf1e1; --fish: var(--t-amber); }
.tint-teal { --wash: #e0f3f1; --fish: var(--t-teal); }
.tint-coral { --wash: #fdece6; --fish: var(--t-coral); }
.tint-pink { --wash: #fbe9ef; --fish: var(--t-pink); }
.tint-violet { --wash: #eeebfb; --fish: var(--t-violet); }

/* Listing page */
.crumbs { display: flex; gap: 6px; padding: 14px 0; font-size: 14px; font-weight: 600; color: var(--faint); flex-wrap: wrap; }
.crumbs-light, .crumbs-light a { color: #c9d6e2; }
.listing-media { margin: 0 calc(-1 * var(--gutter)); }
.photo-big { height: 260px; }
.listing-info h1 { font-size: 26px; line-height: 30px; font-weight: 800; letter-spacing: -0.02em; margin-top: 20px; }
.common { color: var(--muted); margin-top: 4px; }
.price-line { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 16px; color: var(--muted); font-weight: 500; flex-wrap: wrap; }
.price-line strong { color: var(--ink); font-size: 24px; font-weight: 800; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ok); background: var(--ok-wash); padding: 6px 12px; border-radius: 999px; }
.privacy-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin: 10px 2px 18px; }
.privacy-note .ic { width: 13px; height: 15px; }
.details { margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter) 8px; border-top: 8px solid var(--bg); }
.details div { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.details div:last-child { border-bottom: 0; }
.details dt { width: 96px; flex-shrink: 0; color: var(--muted); font-weight: 500; }
.details dd { margin: 0; font-weight: 600; flex: 1; }
.seller { margin: 0 calc(-1 * var(--gutter)); padding: 20px var(--gutter) 16px; border-top: 8px solid var(--bg); display: flex; flex-direction: column; gap: 14px; }
.seller-head { display: flex; align-items: center; gap: 12px; }
.seller-head > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.ok-line { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 14px; font-weight: 600; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; }
.avatar-lg { width: 64px; height: 64px; font-size: 24px; }
.store-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: var(--r); border: 1.5px solid var(--field-border); color: var(--ink); }
.store-link:hover { text-decoration: none; border-color: var(--blue); }
.store-link > span { display: flex; flex-direction: column; gap: 2px; }
.store-link .muted { font-size: 14px; }
.listing .fine { padding: 4px 0 28px; }

/* Storefront */
.store { max-width: 960px; margin: 0 auto; }
.store-head { display: flex; flex-direction: column; gap: 14px; padding: 26px 0 20px; }
.store-id { display: flex; align-items: center; gap: 14px; }
.store-id h1 { font-size: 28px; line-height: 32px; font-weight: 800; letter-spacing: -0.025em; }
.store-note { line-height: 24px; max-width: 560px; }
.trust { list-style: none; display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: 15px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .ic { width: 15px; height: 15px; }
.store-actions { display: flex; gap: 10px; }
.store-actions .btn { flex: 1; }
.store-fish { border-top: 8px solid var(--bg); margin: 0 calc(-1 * var(--gutter)); padding: 18px var(--gutter) 28px; }
.grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; margin-top: 12px; }
.card-fish a { display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.card-fish a:hover { text-decoration: none; }
.card-fish a:hover .card-name { color: var(--blue); }
.card-fish .photo { height: 132px; border-radius: var(--r); }
.card-name { font-weight: 700; font-size: 15px; line-height: 20px; margin-top: 2px; }
.card-meta { color: var(--muted); font-size: 14px; }
.card-meta strong { color: var(--ink); font-weight: 800; }

.founding { background: var(--navy); color: #fff; padding: 24px 0 30px; }
.founding h2 { font-size: 20px; line-height: 25px; font-weight: 800; letter-spacing: -0.01em; }
.founding p { color: #c9d6e2; margin: 8px 0 14px; line-height: 22px; }

/* Search, message, post, want */
.where-inline { margin: 6px 0; font-size: 15px; color: var(--muted); }
.result-group { margin-top: 18px; }
.result-group .eyebrow { border-top: 8px solid var(--bg); margin: 0 calc(-1 * var(--gutter)); padding: 18px var(--gutter) 6px; }
.want-band { background: var(--blue-wash); padding: 22px 0 30px; margin-top: 10px; }
.want-band h2 { color: var(--blue-ink); font-size: 17px; font-weight: 800; }
.want-band p { margin: 6px 0 12px; }
.about-fish { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--bg); margin-top: 16px; color: var(--ink); }
.about-fish .photo { width: 52px; height: 52px; border-radius: var(--r-s); flex-shrink: 0; }
.about-fish strong { display: block; line-height: 20px; }
.asks { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 10px; }
.ask { border: 1.5px solid var(--field-border); background: #fff; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; text-align: left; }
.ask.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.form > .eyebrow { margin-top: 22px; }
.note-ok { display: flex; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--ok-wash); font-size: 14px; line-height: 20px; margin-top: 12px; }
.note-ok .ic { width: 14px; height: 16px; margin-top: 2px; }
.done { padding: 30px 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.done h2 { font-size: 24px; font-weight: 800; }
.signin-gate { margin-top: 20px; padding: 20px; border-radius: var(--r); background: var(--bg); }
.signin-gate h2 { font-size: 19px; font-weight: 800; }
.signin-gate .form label { margin-top: 14px; }
.ta { position: relative; }
.ta-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; list-style: none; background: #fff; border: 1.5px solid var(--blue); border-top: 0; border-radius: 0 0 var(--r) var(--r); overflow: hidden; box-shadow: 0 10px 24px rgba(20, 30, 50, 0.12); }
.ta-list li { padding: 10px 16px; cursor: pointer; }
.ta-list li[aria-selected="true"], .ta-list li:hover { background: var(--blue-wash); }
.ta-list strong { display: block; font-size: 15px; }
.ta-list span { color: var(--muted); font-size: 13px; }
.photos { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-add { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 12px; border: 1.5px dashed #9aa3b2; color: var(--blue); font-size: 13px; font-weight: 700; cursor: pointer; }
.photo-add span:first-of-type { font-size: 24px; line-height: 24px; font-weight: 400; }
.photo-add input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.photo-thumb { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; }
.zip-line { display: flex; align-items: center; gap: 12px; }
.zip-line input { width: 140px; }
.app-nudge { background: var(--bg); padding: 18px 0 32px; margin-top: 24px; }
.app-nudge p { color: var(--muted); margin-top: 4px; font-size: 15px; }
.human:empty { display: none; }

/* Shows */
.show-hero { background: var(--navy); color: #fff; padding: 6px 0 24px; }
.show-hero h1 { font-size: 30px; line-height: 34px; font-weight: 800; letter-spacing: -0.025em; }
.show-title { color: #c9d6e2; font-size: 17px; margin-top: 4px; }
.show-facts { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.show-facts li { display: flex; align-items: center; gap: 8px; }
.show-facts a { color: #fff; text-decoration: underline; }
.show-facts .ic { width: 16px; height: 16px; color: #c9d6e2; }
.show-hero + .narrow > .eyebrow { margin-top: 22px; }
.show-list { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.show-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r); border: 1.5px solid var(--line); color: var(--ink); }
.show-list a:hover { text-decoration: none; border-color: var(--blue); }
.show-list strong { font-size: 18px; color: var(--blue-ink); }
.show-list span { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.follow-show { margin: 22px 0 30px; padding: 18px; border-radius: var(--r); background: var(--bg); }
.follow-show label { margin-top: 0; font-weight: 600; line-height: 21px; }
.follow-form { padding: 14px; border-radius: var(--r); background: var(--bg); }
.follow-form label { margin-top: 0; }
.prose h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 26px 0 8px; }
.prose h2 { font-size: 20px; margin: 26px 0 6px; }
.prose p { line-height: 25px; }
.steps { padding-left: 22px; display: flex; flex-direction: column; gap: 12px; margin-top: 14px; line-height: 24px; }
.wrap > h1, .narrow > h1 { font-size: 30px; line-height: 34px; font-weight: 800; letter-spacing: -0.025em; margin-top: 24px; }
.narrow > .crumbs + h1 { margin-top: 0; }

/* Footer */
.foot { background: var(--bg); margin-top: 0; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.foot-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--navy); color: #fff; padding: 20px var(--gutter); }
.foot-cta div { display: flex; flex-direction: column; gap: 2px; }
.foot-cta span { color: #c9d6e2; font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 18px var(--gutter) 6px; max-width: 1400px; margin: 0 auto; }
.foot-links a { font-weight: 600; font-size: 15px; }
.foot-note { color: var(--muted); font-size: 13px; padding: 0 var(--gutter); max-width: 1400px; margin: 0 auto; }

/* Phone only vs wide only */
.only-wide, .only-wide-block { display: none !important; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.kinds { grid-template-columns: 1fr; gap: 0; }
.kinds .kind-head { padding: 11px 0; border-bottom: 1px solid var(--line); }
.only-phone-block .want-box { margin-top: 18px; }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .listing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  .listing-media { margin: 20px 0 0; }
  .photo-big { height: 380px; border-radius: var(--r); }
  .details, .seller { margin: 0; padding-left: 0; padding-right: 0; }
}

@media (min-width: 1024px) {
  :root { --gutter: 40px; }
  .top { padding: 14px 0; }
  .top-row { grid-template-columns: auto auto 1fr auto auto; grid-template-areas: "logo area search links switch"; gap: 24px; padding: 0 40px; }
  .top-search { grid-area: search; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: var(--r-s); background: #fff; color: var(--muted); }
  .top-search input { border: 0; min-height: 40px; padding: 0; box-shadow: none; }
  .top-every { font-weight: 700; font-size: 14px; white-space: nowrap; }
  .top-links { grid-area: links; display: flex; gap: 22px; }
  .top-links a { color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap; }
  .switch { padding: 3px; gap: 3px; border-radius: 12px; }
  .switch a { flex: none; height: 36px; padding: 0 14px; border-radius: 9px; }
  .switch a .ic { display: none; }

  .board { display: grid; grid-template-columns: 240px 1fr 220px; gap: 48px; padding-top: 36px; padding-bottom: 40px; }
  .board .area-title { padding: 0 0 22px; }
  .rail-left { display: flex; flex-direction: column; gap: 26px; }
  .rail-left .rail-block h2 { display: block; }
  .rail-left .chips { flex-direction: column; align-items: flex-start; gap: 7px; }
  .rail-left .chip { border: 0; padding: 0; background: none; color: var(--blue); font-weight: 500; font-size: 16px; }
  .rail-left .chip.is-on { color: var(--ink); font-weight: 800; background: none; }
  .rail-right { border-top: 0; margin: 0; padding: 0; }
  .board .area-search { display: none; }
  .board .section-head { border-top: 0; border-bottom: 2px solid var(--ink); margin: 0 0 14px; padding: 0 0 10px; }
  .board .section-head .eyebrow { color: var(--ink); font-weight: 800; }
  .board .section-head ~ .section-head { margin-top: 16px; }
  .kinds { grid-template-columns: repeat(3, 1fr); gap: 26px 36px; }
  .kind-head { font-weight: 800; font-size: 18px; color: var(--ink); }
  .kind-head .count { font-size: 15px; font-weight: 600; }
  .kind-links { display: block; color: var(--blue); font-size: 15px; line-height: 25px; margin-top: 6px; }
  .kind-links a { font-weight: 500; }
  .only-phone, .only-phone-flex, .only-phone-block { display: none !important; }
  .only-wide { display: table !important; }
  .only-wide-block { display: block !important; }
  .chips-scroll { margin: 4px 0 6px; padding: 0; overflow: visible; }
  .kinds .kind-head { padding: 0; border-bottom: 0; }
  .lines { width: 100%; border-collapse: collapse; font-size: 15px; }
  .lines td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
  .t-date { width: 70px; color: var(--muted); font-weight: 500; }
  .t-name a { font-weight: 600; }
  .t-place { width: 160px; color: var(--muted); }
  .t-pickup { width: 140px; color: var(--muted); }
  .t-price { width: 64px; text-align: right; font-weight: 800; }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: 52px; line-height: 54px; }
}

/* Late additions */
.stack { display: flex; flex-direction: column; gap: 1px; }
.stack .muted { font-size: 14px; }
.kind-head { gap: 10px; }
.foot-cta .btn { white-space: nowrap; flex-shrink: 0; }
.store-actions .btn { padding: 0 12px; white-space: nowrap; font-size: 15px; }
.store-fish .chips-scroll { margin-top: 0; }
.mine { list-style: none; margin: 18px 0 24px; }
.mine li { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mine-main { display: flex; flex-direction: column; gap: 3px; }
.mine-main .muted { font-size: 14px; }
.mine-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mine-actions .link-btn { color: var(--danger); margin-left: 6px; }
fieldset legend { margin-top: 22px; }
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 6px; padding: 14px; border-radius: var(--r); background: var(--bg); }

@media (min-width: 1024px) {
  .band-head, .band > *:not(.band-head) { max-width: 1100px; }
  .hero { max-width: 1100px; display: grid; grid-template-columns: 1fr 420px; column-gap: 64px; align-items: end; padding-bottom: 40px; }
  .hero h1, .hero .lede { grid-column: 1; }
  .hero .where { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .states { columns: 3; column-gap: 48px; }
  .state-row { break-inside: avoid; }
}

.tag-kind { background: var(--blue-wash); color: var(--blue-ink); }
.show-group { margin: 26px 0 10px; }
.plans { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.plans th, .plans td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plans thead th { font-size: 16px; font-weight: 800; }
.plans tbody th { font-weight: 600; color: var(--muted); width: 38%; }
.plans td:last-child { font-weight: 700; }
.plan-price { display: block; font-weight: 600; font-size: 14px; color: var(--blue-ink); }
.plan-actions { display: flex; flex-direction: column; gap: 14px; margin-bottom: 10px; }
.redeem label { margin-top: 0; }
.plan-box { padding: 16px; border-radius: var(--r); background: var(--bg); margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.plan-box h2 { font-size: 17px; font-weight: 800; }
.plan-box label { margin: 4px 0 0; }

.prefix { align-self: center; white-space: nowrap; font-size: 15px; }
.danger { color: var(--danger) !important; }
.codes { font: 15px/1.6 ui-monospace, Menlo, monospace; margin: 0; white-space: pre-wrap; }
.codes:empty { display: none; }
.plan-box select { min-height: 44px; }
.plans { table-layout: fixed; }
.plans tbody th { width: 34%; }
.plans td, .plans th { overflow-wrap: anywhere; }
@media (max-width: 480px) { .plans th, .plans td { padding: 11px 6px; font-size: 14px; } }
.plan-box input[type="number"] { flex: 0 0 76px; padding: 0 10px; }
.plan-box .inline select { flex: 1; }

/* Public preview only */
.preview-bar { margin: 0; padding: 10px 16px; background: #fff3d6; color: #4a3500; font-size: 14px; font-weight: 600; text-align: center; }
