/* BookLoop: warm cream, forest ink, one terracotta accent. Covers and photos carry the colour. */

@font-face { font-family: "Figtree"; src: url(/static/f/figtree.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Literata"; src: url(/static/f/literata.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Literata"; font-style: italic; src: url(/static/f/literata-italic.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --page: #FAF4EB;
  --surface: #FFFDF9;
  --sunken: #F2E8DA;
  --line: #E7DCCB;
  --line-2: #D6C9B4;
  --ink: #1D2622;
  --ink-2: #47524D;
  --ink-3: #5E6863;
  --forest: #1F3B33;
  --forest-dark: #16302A;
  --forest-soft: #E3ECE6;
  --on-forest: #FAF4EB;
  --on-forest-2: #BFCDC5;
  --accent: #D2401F;
  --accent-dark: #A8321A;
  --accent-text: #B4381C;
  --accent-soft: #FBE7DF;
  --peach: #F7E1CC;
  --wa: #25D366;
  --wa-ink: #08301A;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-book: 0 1px 2px rgba(29, 38, 34, .14), 0 10px 18px -10px rgba(29, 38, 34, .42);
  --shadow-lift: 0 2px 4px rgba(29, 38, 34, .14), 0 20px 28px -14px rgba(29, 38, 34, .5);
  --shadow-panel: 0 1px 2px rgba(29, 38, 34, .06), 0 18px 40px -22px rgba(29, 38, 34, .35);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --top-h: 56px;
  --tabs-h: 62px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--forest); color: var(--page); }

.ic { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--page); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.muted { color: var(--ink-3); font-size: 14px; }

/* ───────────── Page transitions ───────────── */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; animation-timing-function: var(--ease-out); }
::view-transition-group(cover) { animation-duration: 340ms; animation-timing-function: var(--ease-drawer); }
::view-transition-old(cover), ::view-transition-new(cover) { height: 100%; object-fit: cover; }
.top { view-transition-name: top; }
.tabs { view-transition-name: tabs; }
.gal-slide:first-child img { view-transition-name: cover; }

/* ───────────── Top bar ───────────── */

.top { position: sticky; top: 0; z-index: 40; background: rgba(250, 244, 235, .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { height: var(--top-h); max-width: 1232px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; height: var(--top-h); }
.mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand-name { display: grid; font: 600 22px/1 var(--serif); letter-spacing: -.015em; }
.brand-name small { margin-top: 3px; font: 600 8.5px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--ink-2); padding-left: 1px; }
.top-back, .top-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; margin-inline: -8px 0; transition: background-color .16s ease, transform .14s var(--ease-out); }
.top-icon { margin-inline: auto -8px; }
.top-back:active, .top-icon:active { transform: scale(.94); background: var(--sunken); }
.top-cancel { margin-left: auto; font-weight: 600; color: var(--ink-2); padding: 8px 0 8px 12px; }
.top-motto, .top-search, .top-nav, .top-acts { display: none; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; padding: 8px 0; border-radius: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .ic { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.menu[open] summary .ic { transform: rotate(180deg); }
.menu { position: relative; }
.menu-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 50; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 4px; width: 460px; max-width: calc(100vw - 32px); max-height: calc(100dvh - var(--top-h) - 24px); overflow-y: auto; padding: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 10px 32px rgba(29, 38, 34, .12), 0 2px 6px rgba(29, 38, 34, .04); }
.menu-panel a { display: flex; align-items: center; min-height: 40px; padding: 9px 12px; border-radius: 5px; font-size: 14px; line-height: 1.35; font-weight: 500; color: var(--ink-2); transition: background-color .14s ease; }
.menu-panel .menu-all { grid-column: 1 / -1; justify-content: space-between; min-height: 48px; margin: 0 4px 4px; padding-inline: 8px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--forest); font-size: 16px; font-weight: 650; }
.menu-all .ic { width: 18px; height: 18px; }
.menu-label { grid-column: 1 / -1; padding: 8px 12px 5px; font-size: 12px; color: var(--ink-3); }
.menu-panel a[aria-current="page"] { background: var(--forest-soft); color: var(--forest); font-weight: 650; }
.menu[open] summary { color: var(--forest); }

/* ───────────── Tab bar (phones) ───────────── */

.tabs { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 253, 249, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tab { height: var(--tabs-h); display: grid; align-content: center; justify-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--ink-3); position: relative; transition: color .16s ease; -webkit-tap-highlight-color: transparent; }
.tab .ic { width: 23px; height: 23px; transition: transform .16s var(--ease-out); }
.tab:active .ic { transform: scale(.9); }
.tab.on { color: var(--forest); }
.tab.on::before { content: ""; position: absolute; top: 0; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--forest); }
.tab-sell { color: var(--ink); }
.tab-sell.on::before { display: none; }
.tab-plus { width: 46px; height: 46px; margin-top: -20px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 5px var(--surface), 0 6px 14px -6px rgba(29, 38, 34, .35); transition: transform .16s var(--ease-out); }
.tab-plus .ic { width: 24px; height: 24px; stroke-width: 2.2; }
.tab-sell:active .tab-plus { transform: scale(.94); }
.has-cta .tabs { display: none; }

/* ───────────── Shell ───────────── */

main { flex: 1; width: 100%; max-width: 1232px; margin: 0 auto; padding: 0 var(--gutter) 40px; }
.is-focus main { padding-bottom: 130px; }
.has-cta main { padding-bottom: 110px; }
.notice { background: var(--forest); color: var(--page); text-align: center; font-size: 14px; font-weight: 500; padding: 9px 16px; }

.foot { margin-top: 56px; background: var(--forest); color: var(--on-forest); padding: 40px var(--gutter) calc(var(--tabs-h) + 28px + env(safe-area-inset-bottom)); }
.has-cta .foot { padding-bottom: 120px; }
.foot-in { max-width: 1168px; margin: 0 auto; display: grid; gap: 30px; }
.foot .brand { height: auto; }
.foot .mark { color: var(--on-forest); }
.foot .brand-name small { color: var(--on-forest-2); }
.foot-motto { margin-top: 12px; max-width: 17em; font: italic 400 15px/1.45 var(--serif); color: var(--on-forest-2); }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
.foot-cols div { display: grid; align-content: start; }
.foot h2 { margin-bottom: 8px; font: 600 16px/1.25 var(--serif); color: var(--on-forest); }
.foot-cols a { padding: 5px 0; font-size: 14.5px; color: var(--on-forest-2); transition: color .14s ease; }
.foot-cta p { margin-bottom: 14px; max-width: 22em; font-size: 14.5px; color: var(--on-forest-2); }
.foot-base { max-width: 1168px; margin: 30px auto 0; padding-top: 18px; border-top: 1px solid rgba(250, 244, 235, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-size: 13px; color: var(--on-forest-2); }
.foot-base a { color: var(--on-forest-2); }
.foot :focus-visible { outline-color: var(--on-forest); }

/* ───────────── Buttons ───────────── */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent; font: 600 16px/1 var(--sans); cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform .14s var(--ease-out), background-color .16s ease, border-color .16s ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-forest { background: var(--forest); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-wa { background: var(--wa); color: var(--wa-ink); font-weight: 700; }
.btn-wa .ic { width: 22px; height: 22px; }
.btn-off { background: var(--sunken); color: var(--ink-3); cursor: default; width: 100%; }
.btn-off:active { transform: none; }
.btn-s { height: 38px; padding: 0 13px; font-size: 14px; border-radius: 11px; gap: 6px; }
.btn-s .ic { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: var(--sunken); border-radius: 50%; cursor: pointer; flex: none; transition: transform .14s var(--ease-out); }
.icon-btn:active { transform: scale(.94); }
.link-btn { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 10px 0; margin-top: 8px; color: var(--ink-3); font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.link-btn .ic { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .btn-forest:hover { background: var(--forest-dark); }
  .btn-accent:hover { background: var(--accent-dark); }
  .btn-ghost:hover { background: var(--sunken); }
  .btn-wa:hover { background: #1FC25C; }
  .link-btn:hover { color: var(--ink); }
  .top-back:hover, .top-icon:hover { background: var(--sunken); }
  .top-nav > a:hover, .menu summary:hover, .top-link:hover { color: var(--ink); }
  .menu-panel a:hover { background: var(--sunken); }
  .foot-cols a:hover, .foot-base a:hover { color: var(--on-forest); }
  .cat-tiles a:hover { border-color: var(--line-2); transform: translateY(-2px); }
}

/* ───────────── Home: hero, search panel, value strip ───────────── */

.lede { margin-top: 12px; font-size: 17px; color: var(--ink-2); max-width: 30em; text-wrap: pretty; }
.hero { display: grid; }
/* Phones: the photo is a band on top that fades into the page; the headline overlaps the fade. */
.hero-photo { order: -1; position: relative; margin: 0 calc(var(--gutter) * -1); aspect-ratio: 4 / 3; overflow: hidden; }
.hero-photo picture, .hero-photo img { display: block; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.hero-text { position: relative; margin-top: -30px; }
.hero h1 { font: 600 clamp(36px, 10vw, 72px)/1.02 var(--serif); letter-spacing: -.025em; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.hero .lede { margin-top: 14px; }
.hero-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.hero-cta .btn { padding: 0 12px; }

.finder { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 6px 6px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-panel); }
.finder-q { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.finder-q .ic { color: var(--ink-3); }
.finder-q input { flex: 1; min-width: 0; height: 46px; font-size: 16px; }
.finder-sel, .finder-wide { display: none; }
.finder .btn { height: 46px; border-radius: 12px; padding: 0 16px; gap: .3em; }

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin-top: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.values li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.values .ic { width: 26px; height: 26px; color: var(--accent); }
.values p { display: grid; min-width: 0; }
.values strong { font: 600 16px/1.2 var(--serif); }
.values span { margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }

/* ───────────── Chips ───────────── */

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 20px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter) 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: transform .14s var(--ease-out), background-color .16s ease; }
.chip:active { transform: scale(.96); }
.chip.on { background: var(--forest); border-color: var(--forest); color: var(--page); }
.chips-s { margin-top: 0; margin-bottom: 14px; }
.chips-s .chip { height: 34px; font-size: 13.5px; padding: 0 13px; }

/* ───────────── Sections, grid, shelf ───────────── */

.sec { margin-top: 38px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font: 600 23px/1.2 var(--serif); letter-spacing: -.01em; }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.more .ic { width: 16px; height: 16px; }
.sec-head-rule { flex-wrap: wrap; align-items: center; row-gap: 2px; }
.sec-sub { order: 2; flex-basis: 100%; font: italic 400 15px/1.35 var(--serif); color: var(--ink-2); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
.shelf { display: flex; gap: 16px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px; scroll-snap-type: x proximity; scroll-padding-left: var(--gutter); scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf .card { flex: none; width: 138px; scroll-snap-align: start; }

/* ───────────── Book card ───────────── */

.card { position: relative; min-width: 0; }
.card-link { display: block; position: relative; -webkit-tap-highlight-color: transparent; }
.cover { position: relative; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; background: var(--sunken); box-shadow: var(--shadow-book); transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
/* The spine crease: what makes a flat photo read as a book. */
.cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(29, 38, 34, .08); background: linear-gradient(90deg, rgba(0, 0, 0, .16), rgba(255, 255, 255, .12) 2.6%, rgba(0, 0, 0, .05) 5.2%, transparent 9%); }
.cover-none { display: grid; place-items: center; color: var(--ink-3); }
.cover-none .ic { width: 30px; height: 30px; }
.card-link:active .cover { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .card-link:hover .cover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
}
/* The cover sits in a warm well, like a book on a table: titles are never cropped. */
.well { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; background: var(--sunken); display: grid; place-items: center; }
.well .cover { height: 76%; }
.card-title { margin-top: 12px; font: 600 15.5px/1.25 var(--serif); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.card-by { margin-top: 2px; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.005em; }
.card .price { color: var(--accent-text); font-size: 16px; }
.card .pill { height: 22px; padding: 0 8px; font-size: 11.5px; }
.card-seller { margin-top: 9px; display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; color: var(--ink-3); }
.avatar.avatar-s { width: 20px; height: 20px; font-size: 11px; }
.card-name { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink-2); }
.card-where { display: flex; align-items: center; gap: 2px; min-width: 0; margin-left: auto; }
.card-where .ic { width: 13px; height: 13px; }
.card-where span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-actions { display: none; }
.save-btn .ic { width: 16px; height: 16px; }
.save-btn .ic + .ic, .save-btn .save-on, .save-btn[aria-pressed="true"] .ic, .save-btn[aria-pressed="true"] .save-off { display: none; }
.save-btn[aria-pressed="true"] .ic + .ic { display: block; color: var(--accent); }
.save-btn[aria-pressed="true"] .save-on { display: inline; }
.is-sold .cover img { filter: grayscale(1); opacity: .55; }
.flag-sold, .flag-feat { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.flag-sold { background: var(--forest); color: var(--page); }
.flag-feat { background: var(--surface); color: var(--accent-dark); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.flag-big { top: 16px; left: 16px; font-size: 13px; padding: 6px 12px; }

.save { position: absolute; top: 6px; right: 6px; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(255, 253, 249, .94); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transition: transform .16s var(--ease-out); }
.save::before { content: ""; position: absolute; inset: -5px; }
.save .ic { width: 18px; height: 18px; grid-area: 1 / 1; transition: opacity .16s ease, transform .2s var(--ease-out); }
.save .ic + .ic { opacity: 0; transform: scale(.6); color: var(--accent); }
.save[aria-pressed="true"] .ic { opacity: 0; }
.save[aria-pressed="true"] .ic + .ic { opacity: 1; transform: scale(1); }
.save:active { transform: scale(.88); }

/* ───────────── Home: how it works, sell band, why, categories ───────────── */

.step-n { font: 600 30px/1 var(--serif); color: var(--accent); font-variant-numeric: lining-nums; }

.how { margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--line); display: grid; gap: 22px; }
.how-head h2 { font: 600 26px/1.15 var(--serif); letter-spacing: -.01em; }
.how-head p { margin-top: 6px; color: var(--ink-2); }
.steps { display: grid; gap: 20px; }
.steps li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.step-ic { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--sunken); display: grid; place-items: center; color: var(--accent); }
.step-ic .ic { width: 28px; height: 28px; }
.step-ic b { position: absolute; top: -2px; left: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 12px/1 var(--sans); }
.steps h3 { font: 600 17px/1.25 var(--serif); }
.steps p { margin-top: 3px; font-size: 14.5px; color: var(--ink-2); }
.step-arrow { display: none; }

/* The photo's own background is --peach, so its right edge melts into the panel. */
.sell-band { margin-top: 52px; display: grid; background: var(--peach); border-radius: 24px; overflow: hidden; }
.sell-photo { aspect-ratio: 16 / 9; -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent); mask-image: linear-gradient(180deg, #000 76%, transparent); }
.sell-photo picture, .sell-photo img { display: block; width: 100%; height: 100%; }
.sell-photo img { object-fit: cover; object-position: 18% 50%; }
.sell-text { padding: 20px 22px 0; }
.sell-text h2 { font: 600 30px/1.08 var(--serif); letter-spacing: -.015em; }
.sell-text p { margin-top: 10px; max-width: 30em; color: var(--ink-2); }
.sell-act { padding: 18px 22px 24px; }
.sell-act .btn { width: 100%; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
.ticks li { display: inline-flex; align-items: center; gap: 5px; }
.ticks .ic { width: 15px; height: 15px; color: var(--forest); }

.why { margin-top: 52px; display: grid; gap: 18px; }
.why h2 { font: 600 24px/1.15 var(--serif); letter-spacing: -.01em; }
.why ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.why li { display: grid; align-content: start; gap: 4px; }
.why li:last-child { grid-column: 1 / -1; }
.why .ic { width: 26px; height: 26px; margin-bottom: 4px; color: var(--accent); }
.why h3 { font: 700 14.5px/1.25 var(--sans); }
.why p { font-size: 13px; color: var(--ink-3); }

.cat-tiles { display: flex; gap: 10px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-snap-type: x proximity; scroll-padding-left: var(--gutter); scrollbar-width: none; }
.cat-tiles::-webkit-scrollbar { display: none; }
.cat-tiles a { flex: none; width: 110px; min-height: 108px; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 14px 8px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; scroll-snap-align: start; transition: transform .14s var(--ease-out), border-color .16s ease; }
.cat-tiles a:active { transform: scale(.97); }
.cat-tiles .ic { width: 26px; height: 26px; color: var(--accent); }
.cat-tiles span { font-size: 13px; font-weight: 600; line-height: 1.2; }
.cat-tiles small { font-size: 11.5px; color: var(--ink-3); }

/* ───────────── Browse ───────────── */

.browse { padding-top: 16px; }
.filters-bar { display: flex; gap: 10px; }
.search-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; transition: border-color .16s ease; }
.search-field:focus-within { border-color: var(--ink); }
.search-field .ic { color: var(--ink-3); }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: 0; font-size: 16px; }
.filters-open { padding: 0 14px; position: relative; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.filters-grid { display: grid; gap: 4px; padding-top: 8px; }
.browse .chips { margin-top: 14px; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 24px 0 16px; }
.results-head h1 { font: 600 27px/1.15 var(--serif); letter-spacing: -.015em; }
.results-head p { color: var(--ink-3); font-size: 14px; white-space: nowrap; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--forest-soft); color: var(--forest); font-size: 13px; font-weight: 600; }
.pill .ic { width: 14px; height: 14px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; }
.pager-n { font-size: 14px; color: var(--ink-3); }

/* ───────────── Empty states ───────────── */

.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 52px 12px 36px; }
.empty-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--sunken); display: grid; place-items: center; color: var(--ink-2); }
.empty-ic .ic { width: 26px; height: 26px; }
.empty h2 { font: 600 23px/1.2 var(--serif); letter-spacing: -.01em; margin-top: 6px; }
.empty p { color: var(--ink-2); max-width: 24em; }
.empty .btn { margin-top: 10px; }

/* ───────────── Book page ───────────── */

.gal-wrap { position: relative; margin: 0 calc(var(--gutter) * -1); background: var(--sunken); }
.gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline-offset: -2px; }
.gal::-webkit-scrollbar { display: none; }
.gal-slide { flex: none; width: 100%; aspect-ratio: 1 / 1; padding: 26px; display: grid; place-items: center; scroll-snap-align: center; scroll-snap-stop: always; }
.gal-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; min-height: 0; object-fit: contain; border-radius: 4px; box-shadow: var(--shadow-lift); }
.gal-none { color: var(--ink-3); }
.gal-none .ic { width: 48px; height: 48px; }
.gal-dots { position: absolute; inset: auto 0 10px 0; display: flex; justify-content: center; gap: 6px; }
.gal-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(29, 38, 34, .22); transition: background-color .2s ease, transform .2s var(--ease-out); }
.gal-dots i.on { background: var(--ink); transform: scale(1.25); }

.book-info { padding-top: 22px; }
.book-cat a { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); }
.book-info h1 { margin-top: 6px; font: 600 clamp(27px, 7.4vw, 40px)/1.1 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.book-by { margin-top: 6px; color: var(--ink-2); font-size: 16.5px; }
.book-by a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.book-price { margin-top: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.book-price .price { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--accent-text); }
.cta-desk { display: none; }
.facts { margin-top: 24px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-3); font-size: 14.5px; }
.facts dd { font-weight: 500; font-size: 15.5px; }
.facts small { display: block; margin-top: 1px; font-weight: 400; font-size: 13.5px; color: var(--ink-3); }
.note { margin-top: 24px; }
.note h2 { font: 700 15px/1.3 var(--sans); }
.note p { margin-top: 6px; white-space: pre-line; font-size: 16.5px; line-height: 1.55; overflow-wrap: anywhere; }
.seller-card { margin-top: 24px; display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: transform .14s var(--ease-out), border-color .16s ease; }
.seller-card:active { transform: scale(.985); }
.seller-txt { flex: 1; min-width: 0; display: grid; }
.seller-txt strong { font: 600 17px/1.3 var(--serif); }
.seller-txt span { font-size: 13.5px; color: var(--ink-3); }
.seller-card > .ic { color: var(--ink-3); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--forest); color: var(--on-forest); display: grid; place-items: center; font: 600 15px/1 var(--serif); flex: none; }
.avatar-l { width: 46px; height: 46px; font-size: 20px; }
.avatar-xl { width: 64px; height: 64px; font-size: 27px; }
.safety { margin-top: 18px; display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.safety .ic { width: 18px; height: 18px; margin-top: 2px; }
.safety a { text-decoration: underline; text-underline-offset: 3px; }
.book-info .link-btn { display: flex; }

.cta-bar { position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 253, 249, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); view-transition-name: cta; }
.cta-bar .wa-form { flex: 1; min-width: 0; }
.cta-bar .btn-wa, .cta-bar .btn-off { width: 100%; height: 54px; border-radius: 16px; font-size: 16.5px; }
.cta-bar .save, .cta-row .save, .icon-btn-l { position: relative; inset: auto; width: 54px; height: 54px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: none; flex: none; }
.cta-bar .save .ic, .cta-row .save .ic, .icon-btn-l .ic { width: 22px; height: 22px; }

.manage { margin-top: 20px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.manage-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--ink-2); }
.manage-status span { display: inline-flex; align-items: center; gap: 5px; }
.manage-status .ic { width: 16px; height: 16px; }
.manage-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.manage-actions .btn { height: 44px; padding: 0 15px; font-size: 15px; }

.status { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-active { background: #DDEEDD; color: #1C5428; }
.status-pending { background: #F8EBC8; color: #6E4A00; }
.status-sold { background: var(--forest); color: var(--page); }
.status-paused { background: var(--sunken); color: var(--ink-2); }
.status-removed { background: #F6DDD6; color: #7A2412; }
.status-feat { background: var(--accent-soft); color: var(--accent-dark); }

/* ───────────── Sheets (bottom on phones, centred on desktop) ───────────── */

dialog.sheet { width: 100%; max-width: 540px; max-height: 88dvh; margin: auto auto 0; border: 0; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); background: var(--surface); color: var(--ink); border-radius: 24px 24px 0 0; box-shadow: 0 -12px 44px rgba(0, 0, 0, .22); overflow: auto; transform: translateY(100%); transition: transform .34s var(--ease-drawer), overlay .34s allow-discrete, display .34s allow-discrete; }
dialog.sheet[open] { transform: translateY(0); }
@starting-style { dialog.sheet[open] { transform: translateY(100%); } }
dialog.sheet::backdrop { background: rgba(29, 38, 34, 0); transition: background-color .34s ease, overlay .34s allow-discrete, display .34s allow-discrete; }
dialog.sheet[open]::backdrop { background: rgba(29, 38, 34, .48); }
@starting-style { dialog.sheet[open]::backdrop { background: rgba(29, 38, 34, 0); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 8px; position: sticky; top: -10px; background: var(--surface); z-index: 1; }
.sheet-head h2 { font: 600 22px/1.2 var(--serif); letter-spacing: -.01em; }
.sheet-lede { color: var(--ink-2); font-size: 15px; margin-bottom: 14px; }
.sheet-foot { display: flex; gap: 10px; margin-top: 16px; }
.sheet-foot .btn { flex: 1; }
.share-text { width: 100%; height: auto; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--page); font-size: 15px; line-height: 1.45; resize: none; }
.share-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.share-actions .btn:first-child, .share-actions .btn:last-child { grid-column: 1 / -1; }
.radio-list { display: grid; gap: 2px; margin: 6px 0 16px; }
.radio { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 16px; cursor: pointer; }
.radio input, .opt input, .check input { width: 20px; height: 20px; accent-color: var(--forest); flex: none; margin: 0; }
.confirm p { font-size: 17px; margin: 14px 0 4px; }

/* ───────────── Toasts ───────────── */

.toasts { position: fixed; inset: auto 0 calc(var(--tabs-h) + 14px + env(safe-area-inset-bottom)) 0; z-index: 70; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.has-cta .toasts, .is-focus .toasts { bottom: calc(92px + env(safe-area-inset-bottom)); }
.toast { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 14px; background: var(--forest); color: var(--page); font-size: 15px; font-weight: 600; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55); transition: transform .4s var(--ease-out), opacity .25s ease; }
@starting-style { .toast { transform: translateY(24px); opacity: 0; } }
.toast.out { transform: translateY(12px); opacity: 0; }
.toast .ic { width: 18px; height: 18px; color: var(--on-forest-2); }

/* ───────────── Forms ───────────── */

.field { display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field label, .field > span { font-size: 14px; font-weight: 600; }
input[type="text"], input[type="tel"], input[type="password"], input[type="search"], input:not([type]), select, textarea, .copy-field {
  width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 16px; outline: 0; transition: border-color .16s ease, box-shadow .16s ease; -webkit-appearance: none; appearance: none; }
textarea { height: auto; padding: 12px 14px; line-height: 1.45; resize: vertical; min-height: 92px; }
input:focus, select:focus, textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(31, 59, 51, .14); }
/* Search boxes draw their own frame; the input inside is bare. */
.finder input, .search-field input, .top-search input { border: 0; border-radius: 0; background: none; padding: 0; box-shadow: none; }
.finder input:focus, .search-field input:focus, .top-search input:focus { box-shadow: none; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
::placeholder { color: #8D877C; opacity: 1; }
.input-wrap { display: flex; }
.input-prefix { display: flex; align-items: center; padding: 0 13px; border: 1px solid var(--line-2); border-right: 0; border-radius: 12px 0 0 12px; background: var(--sunken); color: var(--ink-2); font-weight: 600; }
.has-prefix input { border-radius: 0 12px 12px 0; }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 40px; cursor: pointer; }
.select-wrap .ic { position: absolute; right: 13px; top: 15px; pointer-events: none; color: var(--ink-3); }

/* Shared selects and suggestions. Paper surfaces, compact rows, one clear selection. */
.pick { position: relative; min-width: 0; width: 100%; }
.pick-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; }
.select-wrap:has(.pick) > .ic { display: none; }
.pick-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; height: 50px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font: 400 16px/1.35 var(--sans); text-align: left; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.pick-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-trigger > .pick-caret { position: static; width: 16px; height: 16px; color: var(--ink-3); transition: transform .15s ease; }
.pick-trigger[aria-expanded="true"] { border-color: var(--forest); background: var(--surface); box-shadow: 0 0 0 3px rgba(31, 59, 51, .08); }
.pick-trigger[aria-expanded="true"] .pick-caret { transform: rotate(180deg); }
.pick-trigger:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.pick-trigger[aria-invalid="true"] { border-color: var(--accent-dark); }
.pick-trigger:disabled { cursor: default; opacity: .55; }
.pick-panel { display: none; position: fixed; inset: auto; z-index: 80; flex-direction: column; min-width: 0; width: 280px; max-width: calc(100vw - 24px); max-height: 380px; margin: 0; padding: 6px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: 0 10px 32px rgba(29, 38, 34, .12), 0 2px 6px rgba(29, 38, 34, .04); font: 400 15px/1.35 var(--sans); }
.pick-panel:popover-open { display: flex; }
.pick-panel::backdrop { background: transparent; pointer-events: none; }
.pick-options { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; scroll-padding: 4px; }
.pick-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 42px; padding: 10px 12px; border: 0; border-radius: 5px; background: transparent; color: var(--ink-2); font: inherit; line-height: 1.4; text-align: left; cursor: pointer; }
.pick-option > span { min-width: 0; overflow-wrap: anywhere; }
.pick-option[aria-selected="true"] { background: var(--forest-soft); color: var(--forest); font-weight: 600; }
.pick-option.is-active { background: var(--sunken); color: var(--ink); box-shadow: inset 2px 0 var(--forest); }
.pick-option[aria-selected="true"].is-active { background: var(--forest-soft); color: var(--forest); }
.pick-option:disabled { opacity: .45; cursor: default; }
.pick-option > .pick-check { position: static; width: 16px; height: 16px; color: var(--forest); visibility: hidden; }
.pick-option[aria-selected="true"] > .pick-check { visibility: visible; }
.pick-search-wrap { display: flex; align-items: center; flex: none; gap: 9px; margin: 0 4px 6px; padding: 0 6px 0 8px; border-bottom: 1px solid var(--line); }
.pick-search-wrap > .ic { position: static; width: 17px; height: 17px; color: var(--ink-3); }
.pick-search-wrap input.pick-search { height: 44px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 16px; }
.pick-search::placeholder { color: var(--ink-3); }
.pick-empty { padding: 16px 12px; font-size: 14px; color: var(--ink-3); }
.filters-grid .pick-trigger { height: 44px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .pick-trigger:hover { border-color: var(--ink-3); }
  .menu-panel a:hover { background: var(--sunken); color: var(--ink); }
}
@media (max-width: 899px) {
  .pick-option { min-height: 46px; }
  .filters-grid .pick-trigger { height: 50px; font-size: 16px; }
}
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.field-msg { font-size: 13.5px; color: var(--ink-3); }
.field-msg.is-error, .sell-err { color: var(--accent-dark); font-weight: 600; }
.has-error input { border-color: var(--accent); }
.check { display: flex; align-items: flex-start; gap: 11px; margin: 2px 0 16px; font-size: 15.5px; cursor: pointer; }
.check input { margin-top: 2px; border-radius: 6px; }
.check a, .form-note a, .auth-alt a, .prose a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.form-error { margin: 16px 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: #6E2110; font-size: 15px; font-weight: 500; }
.form-note { font-size: 14px; color: var(--ink-3); margin: 0 0 16px; }

.auth { max-width: 440px; margin: 0 auto; padding-top: 30px; }
.auth h1 { font: 600 34px/1.1 var(--serif); letter-spacing: -.02em; }
.auth .lede { margin-bottom: 24px; }
.auth-alt { margin-top: 18px; text-align: center; color: var(--ink-2); font-size: 15px; }
.auth-wide { max-width: 560px; }
.auth-wide h1 { margin-bottom: 20px; }
.card-form { padding: 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; margin-bottom: 16px; }
.card-form h2 { font: 700 18px/1.3 var(--sans); margin-bottom: 14px; }
.card-form input, .card-form select, .step input[type="text"], .step select, .step textarea { background: var(--page); }

/* ───────────── Me ───────────── */

.who { display: flex; align-items: center; gap: 16px; padding-top: 26px; }
.who > div { flex: 1; min-width: 0; }
.who h1 { font: 600 27px/1.15 var(--serif); letter-spacing: -.015em; overflow-wrap: anywhere; }
.who p { color: var(--ink-3); font-size: 14.5px; margin-top: 2px; }
.who-stats { display: flex; gap: 16px; margin-top: 8px !important; }
.who-stats strong { color: var(--ink); }
.admin-link { margin-top: 18px; display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 14px; background: var(--forest); color: var(--page); font-weight: 600; }
.admin-link .ic:last-child { margin-left: auto; }
.seg { display: flex; gap: 4px; margin-top: 22px; padding: 4px; background: var(--sunken); border-radius: 14px; }
.seg a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background-color .16s ease, color .16s ease; }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(29, 38, 34, .12); }
.seg span { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: rgba(29, 38, 34, .09); font-size: 12px; display: inline-grid; place-items: center; }
.seg-scroll { overflow-x: auto; scrollbar-width: none; }
.seg-scroll a { flex: none; padding: 0 14px; }
.pane { margin-top: 22px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { display: grid; gap: 1px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.tile strong { font: 600 22px/1.2 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.tile span { font-size: 12.5px; color: var(--ink-3); }
.tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.list-more { margin: 14px 0 6px; }
.rows { display: grid; }
.row { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row.row-person { grid-template-columns: minmax(0, 1fr); }
.row h3 { font: 600 16.5px/1.25 var(--serif); overflow-wrap: anywhere; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 5px; }
.row-meta:empty { display: none; }
.row-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 7px; font-size: 13px; color: var(--ink-3); }
.row-stats span { display: inline-flex; align-items: center; gap: 4px; }
.row-stats .ic { width: 14px; height: 14px; }
.row-note { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.more-note { margin-top: 18px; text-align: center; color: var(--ink-3); font-size: 14px; }

/* ───────────── Sell ───────────── */

.sell { max-width: 640px; margin: 0 auto; }
.sell-head { padding-top: 24px; }
.sell-head h1 { font: 600 32px/1.1 var(--serif); letter-spacing: -.02em; }
.step { margin-top: 16px; padding: 20px 18px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.step > h2 { display: flex; align-items: baseline; gap: 10px; font: 700 18.5px/1.2 var(--sans); margin-bottom: 14px; }
.step > h2 .step-n { font-size: 26px; }
.step-hint { font-size: 14.5px; color: var(--ink-2); margin: -6px 0 14px; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.photo { position: relative; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--sunken); box-shadow: inset 0 0 0 1px rgba(29, 38, 34, .08); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tag { position: absolute; left: 6px; bottom: 6px; padding: 3px 7px; border-radius: 4px; background: var(--ink); color: var(--page); font-size: 11px; font-weight: 700; }
.photo-x, .photo-first { position: absolute; top: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(29, 38, 34, .78); color: #fff; cursor: pointer; }
.photo-x { right: 6px; }
.photo-first { left: 6px; }
.photo-x .ic, .photo-first .ic { width: 15px; height: 15px; }
.photo-add { position: relative; aspect-ratio: 2 / 3; display: grid; place-content: center; justify-items: center; gap: 6px; border: 1.5px dashed var(--line-2); border-radius: 8px; background: var(--page); color: var(--ink-2); font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; transition: transform .14s var(--ease-out), border-color .16s ease; }
.photo-add:active { transform: scale(.97); }
.photo-add:focus-within { border-color: var(--ink); }
.photo-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-add .ic { width: 24px; height: 24px; }
.framer { margin: 4px 0 16px; padding: 16px; border-radius: 16px; background: var(--page); border: 1px solid var(--line); text-align: center; }
.framer-title { font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.framer-box { position: relative; width: min(220px, 68%); aspect-ratio: 2 / 3; margin: 0 auto; overflow: hidden; border-radius: 5px; background: var(--sunken); box-shadow: var(--shadow-lift); touch-action: none; cursor: grab; }
.framer-box:active { cursor: grabbing; }
.framer-box img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; -webkit-user-drag: none; will-change: transform; }
.framer-zoom { display: flex; align-items: center; gap: 10px; max-width: 260px; margin: 16px auto 14px; color: var(--ink-2); }
.framer-zoom input { flex: 1; accent-color: var(--forest); height: 28px; }
.framer .step-hint { margin: 0; }
.lookup-list { max-height: 320px; margin: 4px 0 2px; padding: 6px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; box-shadow: 0 10px 32px rgba(29, 38, 34, .12), 0 2px 6px rgba(29, 38, 34, .04); }
.lookup-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.lookup-item:last-child { border-bottom: 0; }
.lookup-item:active, .lookup-item:focus-visible, .lookup-item.is-active { background: var(--sunken); border-radius: 5px; }
.lookup-item.is-active { box-shadow: inset 2px 0 var(--forest); }
.lookup-item img, .lookup-item i { width: 34px; height: 50px; border-radius: 2px; object-fit: cover; background: var(--sunken); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.lookup-item strong { display: block; font: 600 15px/1.25 var(--serif); }
.lookup-item span { font-size: 13px; color: var(--ink-3); }
.opts { display: grid; gap: 8px; margin-bottom: 16px; }
.opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--page); cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .14s var(--ease-out); }
.opt:active { transform: scale(.985); }
.opt input { margin-top: 2px; }
.opt:has(input:checked) { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); background: var(--surface); }
.opt-body { display: grid; }
.opt-body strong { font-size: 15.5px; }
.opt-body small { font-size: 13.5px; color: var(--ink-3); }
.sell-bar { position: fixed; inset: auto 0 0 0; z-index: 40; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(250, 244, 235, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.sell-bar > * { max-width: 640px; margin-inline: auto; }
.sell-bar .btn { display: flex; height: 54px; border-radius: 16px; }
.sell-err { margin-bottom: 8px; font-size: 14.5px; text-align: center; }

/* ───────────── Help pages ───────────── */

.prose { max-width: 720px; margin: 0 auto; padding-top: 30px; font-size: 16.5px; line-height: 1.6; }
.prose h1 { font: 600 clamp(30px, 7.6vw, 42px)/1.08 var(--serif); letter-spacing: -.02em; }
.prose h2 { font: 600 23px/1.2 var(--serif); letter-spacing: -.01em; margin: 34px 0 10px; }
.prose p { margin-top: 10px; }
.prose .lede { font-size: 18px; max-width: none; margin-top: 14px; }
.prose .meta { color: var(--ink-3); font-size: 14px; }
.prose ol, .prose ul { display: grid; gap: 8px; margin-top: 10px; }
.prose ul li { padding-left: 20px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; padding-left: 30px; position: relative; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: -1px; font: 600 19px/1.5 var(--serif); color: var(--accent); }
.two { display: grid; gap: 14px; margin: 24px 0; }
.two section { padding: 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.two h2 { margin-top: 0; }
.two .btn { margin-top: 16px; }
.faq dt { font-weight: 700; margin-top: 16px; }
.faq dd { color: var(--ink-2); }

/* ───────────── Admin ───────────── */

.admin { padding-top: 24px; }
.admin-head h1 { font: 600 30px/1.1 var(--serif); letter-spacing: -.02em; }
.admin-head .seg { margin-top: 16px; }
.admin-search { margin-top: 18px; }
.admin .chips { margin-top: 12px; margin-bottom: 14px; }
.admin-cols { display: grid; gap: 30px; margin-top: 30px; }
.admin-cols h2 { font: 600 21px/1.2 var(--serif); margin-bottom: 4px; }
.plain li { display: grid; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plain span { font-size: 13.5px; color: var(--ink-3); }
.admin-form { max-width: 560px; margin-top: 20px; }
.callout { margin-top: 18px; padding: 18px; border-radius: 18px; background: var(--accent-soft); }
.callout h2 { font: 600 20px/1.2 var(--serif); }
.callout p { font-size: 14.5px; color: #6E2110; margin: 4px 0 12px; }
.copy-field { background: var(--surface); font-size: 14px; }

/* ───────────── Wider screens ───────────── */

@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shelf .card { width: 158px; }
  dialog.sheet { margin: auto; border-radius: 24px; padding-bottom: 22px; transform: translateY(16px) scale(.98); opacity: 0; transition: transform .22s var(--ease-out), opacity .18s ease, overlay .22s allow-discrete, display .22s allow-discrete; }
  dialog.sheet[open] { transform: none; opacity: 1; }
  @starting-style { dialog.sheet[open] { transform: translateY(16px) scale(.98); opacity: 0; } }
}

@media (min-width: 820px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 22px; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; --top-h: 68px; }
  .tabs, .top-icon, .top-back, .cta-bar { display: none; }
  .top-search { align-items: center; gap: 8px; flex: 1; max-width: 340px; height: 42px; margin-left: 24px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; transition: border-color .16s ease; }
  .top-search:focus-within { border-color: var(--forest); }
  .top-search .ic { width: 18px; height: 18px; color: var(--ink-3); }
  .top-search input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: none; font-size: 15px; border-radius: 0; }
  .top-nav { display: flex; align-items: center; gap: 26px; margin-left: 32px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
  .top-acts { display: flex; align-items: center; gap: 20px; margin-left: auto; font-size: 15px; font-weight: 600; color: var(--ink-2); }
  .top-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; }
  .top-link .ic { width: 19px; height: 19px; }
  .top-acts .btn { color: #fff; }
  .top-me { display: grid; }
  .is-focus .top-motto, .is-focus .top-search, .is-focus .top-nav, .is-focus .top-acts { display: none; }
  .brand-name { font-size: 25px; }
  .mark { width: 34px; height: 34px; }
  .foot { padding: 56px var(--gutter) 30px; }
  .foot-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr) minmax(0, 1fr); gap: 44px; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* The card fills its grid row; the link takes the slack so every action row sits on one line. */
  .card { display: flex; flex-direction: column; }
  .card-link { flex: 1; }
  .card-actions { display: flex; gap: 8px; margin-top: 12px; }
  .card-actions .btn { height: 38px; padding: 0 12px; }
  .card-actions .btn-forest { flex: 1; min-width: 0; }
  .has-actions > .save { display: none; }
  main, .has-cta main { padding-bottom: 72px; }
  .foot, .has-cta .foot { padding-bottom: 40px; }
  .toasts, .has-cta .toasts { bottom: 28px; }

  .lede { font-size: 19px; margin-top: 18px; }

  /* Home, desktop: text left; the photo fills the right side to the window edge and
     fades into the page on its left; the search panel overlaps its bottom edge. */
  .hero { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); align-items: center; min-height: 560px; }
  .hero-photo { order: 0; grid-column: 2; grid-row: 1; align-self: stretch; aspect-ratio: auto; margin: 0 calc(-1 * (max(0px, (100vw - 1232px) / 2) + var(--gutter))) 0 -16%; }
  .hero-photo img { object-position: 62% 50%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 32%); mask-image: linear-gradient(90deg, transparent, #000 32%); }
  .hero-text { grid-column: 1; grid-row: 1; margin-top: 0; padding: 40px 0 104px; z-index: 1; }
  /* Scales with the text column so the headline keeps its three lines from 900px up. */
  .hero h1 { font-size: clamp(44px, 5.6vw, 72px); }
  .hero .lede { max-width: 27em; margin-top: 20px; font-size: 18.5px; }
  .hero-cta { display: flex; gap: 14px; margin-top: 30px; }
  .hero-cta .btn { height: 52px; padding: 0 24px; }

  .finder { margin-top: -56px; padding: 10px; gap: 0; border-radius: 12px; box-shadow: 0 3px 12px rgba(29, 38, 34, .04); }
  .finder-q { flex: 1.5; height: 54px; margin-right: 6px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; }
  .finder-q:focus-within { border-color: var(--forest); }
  .finder-sel { position: relative; flex: 1; display: grid; grid-template: "ic lab caret" auto "ic sel caret" auto / 22px minmax(0, 1fr) 16px; column-gap: 10px; align-items: center; height: 54px; padding: 0 14px; border-left: 1px solid var(--line); cursor: pointer; }
  .finder-q + .finder-sel { border-left: 0; }
  .finder-sel > .ic:first-child { grid-area: ic; width: 22px; height: 22px; color: var(--ink-2); }
  .finder-lab { grid-area: lab; align-self: end; font-size: 12.5px; font-weight: 700; line-height: 1.1; color: var(--ink); }
  .finder-sel select { grid-area: sel; align-self: start; height: 22px; padding: 0; border: 0; border-radius: 0; background: none; font-size: 14px; color: var(--ink-2); cursor: pointer; }
  .finder-sel select:focus { box-shadow: none; }
  .finder-sel:focus-within { border-radius: 12px; box-shadow: inset 0 0 0 2px var(--forest); }
  .finder-caret { grid-area: caret; width: 16px; height: 16px; color: var(--ink-3); }
  .finder-sel:has(.pick) { border-radius: 0; box-shadow: none; }
  .finder-sel:has(.pick) > .ic:first-child, .finder-sel:has(.pick) .finder-lab { position: relative; z-index: 1; pointer-events: none; }
  .finder-sel .pick { position: static; grid-column: 1 / -1; grid-row: 1 / 3; align-self: stretch; }
  .finder-sel .pick-trigger { height: 54px; margin: 0; padding: 24px 22px 5px 32px; border: 0; border-radius: 6px; background: transparent; font-size: 14px; color: var(--ink-2); }
  .finder-sel .pick-trigger .pick-caret { position: absolute; right: 14px; top: 19px; }
  .finder-sel .pick-trigger[aria-expanded="true"] { background: var(--page); box-shadow: 0 0 0 1px var(--forest); }
  .finder-sel:has(.pick) > .finder-caret { display: none; }
  .finder .btn { height: 54px; margin-left: 6px; padding: 0 24px; }
  .finder-wide { display: inline; }

  .values { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 30px; padding: 4px 0 26px; }
  .values li { align-items: center; padding: 0 22px; border-left: 1px solid var(--line); }
  .values li:first-child { padding-left: 6px; border-left: 0; }
  .values .ic { width: 30px; height: 30px; }
  .values strong { font-size: 19px; }
  .values span { font-size: 13.5px; }

  .sec-head-rule { flex-wrap: nowrap; }
  .sec-sub { order: 0; flex: 1; flex-basis: auto; display: flex; align-items: center; gap: 18px; margin-left: 10px; }
  .sec-sub::after { content: ""; flex: 1; max-width: 140px; height: 1px; background: var(--line-2); }

  .how { grid-template-columns: minmax(0, 270px) minmax(0, 1fr); align-items: center; gap: 40px; margin-top: 64px; padding-top: 38px; }
  .how-head { padding-right: 30px; border-right: 1px solid var(--line); }
  .how-head h2 { font-size: 32px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .steps li { grid-template-columns: 72px minmax(0, 1fr); padding-right: 34px; }
  .step-ic { width: 72px; height: 72px; }
  .step-arrow { position: absolute; right: 0; top: 50%; display: block; transform: translateY(-50%); color: var(--ink-3); }
  .step-arrow .ic { width: 20px; height: 20px; }

  .sell-band { grid-template-columns: minmax(0, 30%) minmax(0, 1fr) auto; align-items: center; margin-top: 72px; }
  .sell-photo { aspect-ratio: auto; align-self: stretch; min-height: 230px; -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent); mask-image: linear-gradient(90deg, #000 72%, transparent); }
  .sell-text { padding: 34px 24px 34px 6px; }
  .sell-text h2 { font-size: 40px; }
  .sell-act { padding: 34px 44px 34px 0; }
  .sell-act .btn { width: auto; height: 54px; padding: 0 28px; }

  .why { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); align-items: center; gap: 30px; margin-top: 64px; }
  .why h2 { padding-right: 26px; border-right: 1px solid var(--line); font-size: 26px; }
  .why ul { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
  .why li { justify-items: center; padding: 0 14px; text-align: center; border-left: 1px solid var(--line); }
  .why li:first-child { border-left: 0; }
  .why li:last-child { grid-column: auto; }

  .cat-tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .cat-tiles a { width: auto; }

  .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .sec { margin-top: 56px; }
  .sec-head h2 { font-size: 30px; }
  .shelf .card { width: 176px; }
  .shelf { gap: 22px; }

  .browse { padding-top: 28px; }
  .filters-open { display: none; }
  dialog.filters-sheet { display: block; position: static; width: auto; max-width: none; max-height: none; margin: 14px 0 0; padding: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; transform: none; opacity: 1; transition: none; }
  .filters-sheet .sheet-head, .filters-sheet .sheet-foot { display: none; }
  .filters-grid { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 0; }
  .filters-grid .field { margin: 0; width: 190px; }
  .filters-grid .field label { font-size: 13px; color: var(--ink-3); }
  .filters-grid select { height: 44px; }
  .filters-grid .select-wrap .ic { top: 12px; }
  .filters-grid .check { margin: 0 0 11px 6px; }
  .results-head h1 { font-size: 34px; }

  .book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: start; padding-top: 36px; }
  .gal-wrap { margin: 0; border-radius: 24px; overflow: hidden; position: sticky; top: calc(var(--top-h) + 24px); }
  .gal-slide { aspect-ratio: 5 / 4; padding: 40px; }
  .book-info { padding-top: 6px; }
  .cta-desk { display: grid; gap: 10px; margin-top: 22px; }
  .cta-desk .btn-wa { width: 100%; height: 56px; border-radius: 16px; font-size: 17px; }
  .cta-row { display: flex; gap: 10px; }
  .cta-row .btn { flex: 1; height: 54px; border-radius: 16px; }

  .who { padding-top: 44px; }
  .who h1 { font-size: 34px; }
  .seg { max-width: 480px; }
  .admin-head .seg { max-width: none; width: fit-content; }
  .tiles { max-width: 560px; }
  .tiles-4 { max-width: none; }
  .list-more { max-width: 280px; }
  .row { grid-template-columns: 76px minmax(0, 1fr); gap: 18px; }
  .admin-cols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .auth { padding-top: 56px; }
  .sell-head { padding-top: 40px; }
  .step { padding: 26px 26px 10px; }
  .photos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .prose { padding-top: 56px; }
}

/* Narrow desktop: the three selects drop their icons and the button its second word,
   so "All of Mauritius" still fits at 900px. */
@media (min-width: 900px) and (max-width: 1099px) {
  .menu-panel { left: 0; right: auto; }
  .finder-q { flex: 1.7; }
  .finder-sel { grid-template: "lab caret" auto "sel caret" auto / minmax(0, 1fr) 16px; padding: 0 12px; }
  .finder-sel > .ic:first-child, .finder-wide { display: none; }
  .finder-sel .pick-trigger { padding-left: 0; }
  .finder-sel .pick-trigger .pick-caret { right: 12px; }
}

@media (min-width: 1080px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .grid.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* The home header has room for the motto; inner pages swap the search icon for a field. */
@media (min-width: 1100px) {
  .page-home .top-motto { display: block; margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--line-2); max-width: 15em; font: italic 400 14px/1.35 var(--serif); color: var(--ink-2); }
}
@media (min-width: 1180px) {
  body:not(.page-home):not(.page-browse):not(.is-focus) .top-search { display: flex; }
  .top-find { display: none; }
}
@media (min-width: 900px) {
  .page-home .top-find, .page-browse .top-find { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
