/* ═══════════════════════════════════════════════════════════════
   TrustAlbania — public stylesheet
   Warm paper, ink and a little Albanian red. Always light.
   No web fonts or CDNs on purpose: the platform promises anonymity,
   so no third party gets to see who visits.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper:      #fbf7f0;
  --paper-2:    #f3ece1;
  --card:       #fffdf9;
  --ink:        #2b2522;
  --ink-2:      #574d45;
  --muted:      #6f655c;
  --line:       #e7ddcf;
  --line-2:     #d5c8b7;
  --red:        #c8161d;
  --red-ink:    #9d1016;
  --red-soft:   #fbeceb;
  --tape:       rgba(224, 168, 46, .38);
  --marker:     #fbe3a0;
  --green:      #4f6528;
  --green-soft: #eef2e2;
  --amber:      #8f5409;
  --amber-soft: #fcf1dc;
  --blue:       #2b5797;
  --blue-soft:  #e9f0fb;
  --star-empty: #e4d9ca;

  --shadow-sm: 0 1px 0 rgba(43, 37, 34, .05);
  --shadow:    0 1px 1px rgba(43, 37, 34, .05), 0 8px 18px -12px rgba(43, 37, 34, .3);

  --r: 12px;
  --font-display: Charter, "Bitstream Charter", "Iowan Old Style", Constantia, "Palatino Linotype", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  /* Handwriting already installed on most devices — used only for small notes in the margins. */
  --font-hand: "Bradley Hand", "Ink Free", Noteworthy, "Segoe Print", "Chalkboard SE", cursive;
  --wrap: 1160px;
  --header-h: 64px;

  --kilim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='8'%3E%3Cpath d='M0 4 4 0l4 4-4 4z' fill='%23c8161d'/%3E%3Cpath d='M14 4l4-4 4 4-4 4z' fill='%23e0a82e'/%3E%3Cpath d='M8 4h6M22 4h6' stroke='%23d5c8b7' stroke-width='1.2'/%3E%3C/svg%3E");
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c22-6 40 5 64 0s42-6 66 0 44 4 64-2' fill='none' stroke='%23c8161d' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.35 6.76 7.16.15-5.71 4.33 2.08 6.85L12 16.5l-5.88 4.09 2.08-6.85-5.71-4.33 7.16-.15z'/%3E%3C/svg%3E");
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f655c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  color-scheme: light;
}

/* ── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); background: var(--paper); }
body {
  margin: 0;
  font-variant-numeric: lining-nums;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.62 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-ink); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(200, 22, 29, .45); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--marker); color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.1em; height: 1.1em; flex-shrink: 0; display: inline-block; vertical-align: -.18em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--red); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.muted { color: var(--muted); }
.mt-2 { margin-top: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.marker { background: linear-gradient(transparent 55%, var(--marker) 55%, var(--marker) 92%, transparent 92%); padding: 0 .06em; }
.scribble { background: var(--squiggle) no-repeat left bottom / 100% .34em; padding-bottom: .14em; }

/* ── Header ───────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.header-bar { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-size: 1.36rem; letter-spacing: -.01em; font-weight: 600;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; transition: transform .3s ease; }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.brand-word b { color: var(--red); font-weight: 700; }
.main-nav { display: flex; gap: .15rem; margin-left: auto; }
.main-nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: .45rem .75rem; border-radius: 8px;
}
.main-nav a:hover { color: var(--ink); background: var(--paper-2); }
.main-nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  color: var(--ink); border: 1px solid var(--line-2); background: var(--card);
}
.icon-btn:hover { color: var(--ink); background: var(--paper-2); }
.kilim { height: 8px; background: var(--kilim) repeat-x left center; }

/* ── Buttons (tactile, like a real key) ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .97rem; line-height: 1.1;
  padding: .82rem 1.25rem; border-radius: 9px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(2px); box-shadow: none !important; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 2px 0 var(--red-ink); }
.btn-primary:hover { background: #b3141a; color: #fff; }
.btn-ghost, .btn-dark, .btn-light { background: var(--card); color: var(--ink); border-color: var(--line-2); box-shadow: 0 2px 0 var(--line-2); }
.btn-ghost:hover, .btn-dark:hover, .btn-light:hover { border-color: #bfae98; color: var(--ink); background: #fff; }
.btn-sm { padding: .56rem .9rem; font-size: .88rem; border-radius: 8px; }
.btn-lg { padding: .98rem 1.5rem; font-size: 1.04rem; }
.btn-block { width: 100%; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(1.8rem, 4vw, 3rem); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; }
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.55rem); line-height: 1.1; letter-spacing: -.015em;
  margin: 0 0 1.1rem; max-width: 18ch;
}
.hero-mos { display: inline-block; color: var(--red); font-family: var(--font-hand); font-weight: 400; font-size: .9em; transform: rotate(-6deg) translateY(-.08em); }
.hero-lead { font-size: clamp(1.04rem, 1.5vw, 1.17rem); color: var(--ink-2); max-width: 36rem; margin-bottom: 1.5rem; }
.hero-links { margin: .95rem 0 .3rem; color: var(--muted); }
.hero-links a { font-weight: 600; }
.hero-small { display: flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--muted); margin: 0; }
.hero-small .i { color: var(--red); }
.hero-art { position: relative; min-height: 330px; }
.doodle-cup { position: absolute; left: 2%; top: 2%; width: 72%; color: var(--ink-2); }
.doodle-arrow { position: absolute; left: -14%; bottom: 3%; width: 118px; color: var(--red); transform: rotate(6deg); }
.pinned {
  position: absolute; right: 0; bottom: 6%; width: min(265px, 86%); margin: 0;
  background: #fffdf5; border: 1px solid #efe3cc; padding: 1.15rem 1.15rem .95rem;
  box-shadow: 0 1px 1px rgba(43, 37, 34, .07), 0 14px 22px -14px rgba(43, 37, 34, .4);
  transform: rotate(-2.5deg);
}
.pinned::before, .review-grid--board .review::before, .why-note::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 82px; height: 22px;
  background: var(--tape); transform: translateX(-50%) rotate(2.5deg);
}
.pinned blockquote { margin: .35rem 0 .5rem; font-family: var(--font-hand); font-size: 1.1rem; line-height: 1.45; color: var(--ink); }
.pinned figcaption { font-size: .82rem; color: var(--muted); font-style: italic; }

/* ── Search bar ───────────────────────────────────────────────── */
.search-bar {
  display: flex; align-items: center; gap: .6rem;
  background: var(--card); border: 1.5px solid var(--line-2); border-radius: 12px;
  padding: .35rem .35rem .35rem 1rem; max-width: 620px;
  box-shadow: 0 2px 0 var(--line);
}
.search-bar:focus-within { border-color: var(--red); }
.search-bar > .i { color: var(--muted); width: 19px; height: 19px; }
.search-bar input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 1.03rem; color: var(--ink); padding: .6rem 0;
}
.search-bar input::placeholder { color: var(--muted); }
.search-bar .btn { box-shadow: none; }

/* ── Sections ─────────────────────────────────────────────────── */
.section { padding: clamp(2.4rem, 5vw, 4rem) 0; }
.section--first { padding-top: .8rem; }
.section--tight { padding: clamp(1.6rem, 3vw, 2.4rem) 0 clamp(2.4rem, 5vw, 3.8rem); }
.section--paper { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.section-head--center { justify-content: center; text-align: center; }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: -.01em; margin: 0; }
.section-title--gap { margin-bottom: 1rem; }
.section-title--sm { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.section-aside { font-family: var(--font-hand); font-weight: 400; font-size: .56em; color: var(--muted); margin-left: .45rem; letter-spacing: 0; display: inline-block; transform: rotate(-2deg); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .4rem;
  font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--muted);
}
.eyebrow .i { color: var(--red); }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; color: var(--red); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .i { transition: transform .2s ease; }
.link-arrow:hover .i { transform: translateX(3px); }
.more-link { margin: 1rem 0 0; }
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3.2rem; }
.split--notes { grid-template-columns: 1.3fr 1fr; align-items: start; }

/* ── Categories as a directory ────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 2rem; }
.cat-grid--compact { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cat-grid--wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.cat-tile {
  display: grid; grid-template-columns: 2rem 1fr; column-gap: .55rem; align-items: baseline;
  padding: .7rem 0; border-bottom: 1px dashed var(--line-2);
  color: var(--ink); text-decoration: none;
}
.cat-tile:hover { color: var(--ink); }
.cat-tile:hover .cat-name { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.cat-tile.is-empty .cat-name { color: var(--ink-2); }
.cat-emoji { grid-row: span 3; font-size: 1.3rem; line-height: 1.2; text-align: center; }
.cat-name { font-weight: 600; line-height: 1.35; }
.cat-count { font-size: .82rem; color: var(--muted); }
.cat-text { display: flex; flex-direction: column; gap: .15rem; }
.cat-tile--wide { grid-template-columns: 2.4rem 1fr; padding: 1rem 0; }
.cat-tile--wide .cat-emoji { font-size: 1.6rem; }
.cat-desc { font-size: .9rem; color: var(--ink-2); line-height: 1.45; }

/* ── Stars (exact fill via CSS mask) ──────────────────────────── */
.stars {
  --size: 18px;
  display: inline-block; flex-shrink: 0; vertical-align: middle;
  width: calc(var(--size) * 5); height: var(--size);
  background: linear-gradient(90deg, var(--red) var(--p, 0%), var(--star-empty) var(--p, 0%));
  -webkit-mask: var(--star-mask) 0 0 / var(--size) var(--size) repeat-x;
  mask: var(--star-mask) 0 0 / var(--size) var(--size) repeat-x;
}
.stars--xs { --size: 13px; }
.stars--sm { --size: 15px; }
.stars--lg { --size: 26px; }

/* ── Review cards ─────────────────────────────────────────────── */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.3rem 1.2rem; }
.review-stack { display: flex; flex-direction: column; gap: 1rem; }
.review {
  position: relative; display: flex; flex-direction: column; gap: .5rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.15rem 1.2rem 1rem; box-shadow: var(--shadow-sm);
}
.review:target { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
/* On the homepage the latest reviews hang like notes on a board. */
.review-grid--board { padding-top: .6rem; }
.review-grid--board .review { border-radius: 3px; box-shadow: var(--shadow); transition: transform .2s ease; }
.review-grid--board .review:nth-child(3n+1) { transform: rotate(-.6deg); }
.review-grid--board .review:nth-child(3n+2) { transform: rotate(.45deg); }
.review-grid--board .review:nth-child(3n) { transform: rotate(-.2deg); }
.review-grid--board .review:hover { transform: none; }
.review-grid--board .review:nth-child(2n)::before { transform: translateX(-40%) rotate(-3deg); }
.review-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.review-label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.review-head time { margin-left: auto; font-size: .82rem; color: var(--muted); }
.review-place {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; max-width: 100%;
  font-weight: 600; font-size: .92rem; color: var(--ink); text-decoration: none;
}
.review-place:hover { color: var(--red); text-decoration: underline; }
.review-city { color: var(--muted); font-weight: 400; }
.review-city::before { content: "·"; margin-right: .4rem; }
.review-title { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.review-title a { color: inherit; text-decoration: none; }
.review-title a:hover { color: var(--red); }
.review-body { color: var(--ink-2); margin: 0; overflow-wrap: anywhere; }
.review-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
  margin-top: .3rem; padding-top: .75rem; border-top: 1px dashed var(--line-2);
}
.review-actions { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }

.author { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.author-tag { margin-left: .3rem; font-size: .82rem; font-weight: 400; font-style: italic; color: var(--muted); }
.author-tag::before { content: "· "; font-style: normal; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: inline-grid; place-items: center; background: var(--a, var(--muted));
  color: #fff; font-weight: 700; font-size: .8rem;
}
.avatar--lg { width: 48px; height: 48px; font-size: 1.2rem; }

/* ── Chips & actions ──────────────────────────────────────────── */
.chip-btn {
  display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; text-decoration: none;
  font-size: .85rem; font-weight: 600; color: var(--ink-2);
  background: transparent; border: 1px solid var(--line-2); border-radius: 8px; padding: .36rem .7rem;
  transition: background .15s, color .15s, border-color .15s;
}
.chip-btn:hover { color: var(--ink); background: var(--paper-2); }
.chip-btn.is-active { background: var(--red-soft); color: var(--red-ink); border-color: rgba(200, 22, 29, .35); }
.chip-btn.is-active .i { animation: pop .35s ease; }
.chip-btn--quiet { border-color: transparent; color: var(--muted); }
.chip-stat { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--muted); }
.vote-form { display: inline; margin: 0; }
.vote-count { font-variant-numeric: tabular-nums; padding-left: .4rem; border-left: 1px solid var(--line-2); }

.report { position: relative; display: inline-block; }
.report > summary { list-style: none; }
.report > summary::-webkit-details-marker { display: none; }
.report[open] > summary { color: var(--red); background: var(--red-soft); }
.report-form {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 25;
  width: min(330px, 86vw); padding: 1rem; text-align: left;
  display: flex; flex-direction: column; gap: .65rem;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 18px 36px -18px rgba(43, 37, 34, .45);
  font-size: .92rem; color: var(--ink); font-weight: 400;
}
.report-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.report-form legend { font-weight: 700; margin-bottom: .4rem; }
.report-form textarea { font-size: .9rem; padding: .55rem .7rem; min-height: 0; }
.report-note { font-size: .78rem; color: var(--muted); margin: 0; }
.report-done { margin: 0; color: var(--green); font-weight: 600; }
.radio { display: flex; align-items: center; gap: .55rem; cursor: pointer; }
.radio input { width: 17px; height: 17px; accent-color: var(--red); margin: 0; }

/* ── Places: rows in a list, cards in a grid ──────────────────── */
.place-list {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.place-card {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.place-card:last-child { border-bottom: 0; }
.place-card:hover { background: var(--paper); color: var(--ink); }
.place-list--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .9rem; background: none; border: 0; overflow: visible; }
.place-list--grid .place-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.place-list--grid .place-card:hover { border-color: var(--line-2); background: #fff; }
.place-icon {
  width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.45rem;
  background: var(--paper-2); border: 1px solid var(--line);
}
.place-body { display: flex; flex-direction: column; gap: .12rem; min-width: 0; flex: 1; }
.place-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.place-card:hover .place-name { color: var(--red); }
.place-meta { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.place-meta .i { width: .95em; height: .95em; }
.nowrap { display: inline-flex; align-items: center; gap: .2rem; white-space: nowrap; }
.place-address { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { margin: 0 .2rem; color: var(--line-2); }
.place-score { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; text-align: right; flex-shrink: 0; }
.score-num { font-size: 1.5rem; font-weight: 700; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.score-count, .score-none { font-size: .78rem; color: var(--muted); }

/* ── Questions ────────────────────────────────────────────────── */
.question-list {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.question {
  display: flex; gap: .9rem; padding: 1rem 1.15rem;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.question:last-child { border-bottom: 0; }
.question:hover { background: var(--paper); color: var(--ink); }
.question-mark {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--red); border: 1.5px solid var(--red); transform: rotate(-6deg);
}
.question-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.question-title { font-weight: 600; line-height: 1.38; font-size: 1.02rem; overflow-wrap: anywhere; }
.question:hover .question-title { color: var(--red); }
.question-excerpt { color: var(--ink-2); font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.question-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; font-size: .8rem; color: var(--muted); }
.question-meta > span { display: inline-flex; align-items: center; gap: .3rem; }
.question-answers { font-weight: 600; color: var(--ink-2); }
.question-answers.is-empty { font-weight: 400; font-style: italic; color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600;
  padding: .16rem .55rem; border-radius: 6px; text-decoration: none;
  color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line);
}
a.tag:hover { color: var(--red); border-color: var(--line-2); }

/* ── City index (table of contents with dotted leaders) ───────── */
.city-index { list-style: none; margin: 0; padding: 0; }
.city-index a {
  display: flex; align-items: baseline; gap: .55rem; padding: .5rem 0;
  color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--line-2);
}
.city-index a:hover .city-name { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.city-emoji { width: 1.6rem; text-align: center; font-size: 1.02rem; }
.city-name { font-weight: 600; }
.leader { flex: 1; min-width: 1rem; border-bottom: 2px dotted var(--line-2); transform: translateY(-4px); }
.city-count { font-weight: 600; font-variant-numeric: lining-nums tabular-nums; color: var(--ink-2); font-size: .92rem; }
.county-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2.2rem 2.8rem; }
.county-title { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-bottom: .2rem; }

/* ── Page heads ───────────────────────────────────────────────── */
.page-head { padding: clamp(1.3rem, 3vw, 2.2rem) 0 clamp(1.5rem, 3vw, 2.1rem); border-bottom: 1px solid var(--line); }
.page-head-row { display: flex; align-items: flex-start; gap: 1.1rem; }
.head-emoji { font-size: 2.8rem; line-height: 1; }
.head-emoji--tile {
  width: 70px; height: 70px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 2.2rem;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line);
}
.display { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4.3vw, 2.9rem); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 .5rem; overflow-wrap: anywhere; }
.display--place { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-top: .45rem; }
.display-sub { display: block; font-size: .5em; font-weight: 400; font-style: italic; letter-spacing: 0; color: var(--muted); margin-top: .3rem; }
.lead { font-size: clamp(1rem, 1.4vw, 1.1rem); color: var(--ink-2); max-width: 46rem; margin: 0; }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.25rem; }
.inline-filter { margin-left: auto; min-width: 230px; }

.crumbs { margin-bottom: 1rem; font-size: .84rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; }
.crumbs li + li::before { content: "›"; color: var(--line-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }
.crumbs [aria-current] { max-width: 30ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Tabs, sorting, pager ─────────────────────────────────────── */
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; overflow-x: auto; }
.tabs a {
  display: inline-flex; align-items: center; gap: .45rem; padding: .75rem .95rem; margin-bottom: -1px;
  color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); border-color: var(--red); }
.tab-count { font-size: .76rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: .02rem .45rem; color: var(--ink-2); }
.sort-bar { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; margin-bottom: .9rem; font-size: .9rem; color: var(--muted); }
.sort-bar label { display: inline-flex; align-items: center; gap: .35rem; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.list-head .section-title { margin: 0; }
.pill-tabs { display: flex; flex-wrap: wrap; gap: .35rem; }
.pill-tabs a {
  font-size: .84rem; font-weight: 600; padding: .38rem .75rem; border-radius: 8px;
  border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; background: var(--card);
}
.pill-tabs a:hover { color: var(--ink); background: var(--paper-2); }
.pill-tabs a[aria-current] { background: var(--red-soft); color: var(--red-ink); border-color: rgba(200, 22, 29, .35); }
.count-pill {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: 0;
  background: var(--red); color: #fff; border-radius: 6px; padding: .1rem .5rem;
}

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem; margin-top: 1.8rem; }
.pager-num, .pager-step {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  padding: 0 .8rem; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.pager-num:hover, .pager-step:hover { color: var(--red); background: #fff; }
.pager-num.is-current { background: var(--red); color: #fff; border-color: var(--red); }
.pager-step.is-disabled { opacity: .45; pointer-events: none; }
.pager-gap { color: var(--muted); padding: 0 .2rem; }

/* ── Layout with sidebar ──────────────────────────────────────── */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 2.2rem; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: calc(var(--header-h) + 22px); }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.side-card p { font-size: .92rem; color: var(--ink-2); }
.side-card p:last-child { margin-bottom: 0; }
.side-card--accent { border-left: 3px solid var(--red); }
.side-title { display: flex; align-items: center; gap: .45rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin: 0 0 .55rem; }
.side-title .i { color: var(--red); }
.side-note { display: flex; gap: .45rem; align-items: flex-start; font-size: .84rem; color: var(--muted); margin: 0; }
.side-note .i { margin-top: .2rem; }
.side-report { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding: 0 .3rem; }
.mini-reviews { list-style: none; margin: 0; padding: 0; }
.mini-reviews li + li { border-top: 1px dashed var(--line-2); }
.mini-reviews a { display: flex; flex-direction: column; gap: .2rem; padding: .65rem 0; text-decoration: none; color: var(--ink); }
.mini-reviews a:hover .mini-title { color: var(--red); }
.mini-title { font-weight: 600; font-size: .92rem; line-height: 1.38; }
.mini-meta { font-size: .78rem; color: var(--muted); }
.facts { margin: 0 0 .9rem; display: flex; flex-direction: column; gap: .5rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 600; }

/* ── Place page ───────────────────────────────────────────────── */
.place-hero { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 2.2rem; align-items: start; }
.place-id { display: flex; gap: 1.1rem; align-items: flex-start; }
.place-where { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; color: var(--ink-2); margin: 0 0 .6rem; }
.score-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; box-shadow: var(--shadow); }
.score-main { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.score-big { font-size: 3.4rem; font-weight: 700; line-height: .9; letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.score-sub { margin: .4rem 0 0; font-size: .88rem; color: var(--muted); }
.dist { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-direction: column; gap: .38rem; }
.dist li { display: grid; grid-template-columns: 2.6rem 1fr 2.6rem; align-items: center; gap: .6rem; font-size: .85rem; color: var(--ink-2); }
.dist-label { display: inline-flex; align-items: center; gap: .22rem; font-weight: 600; }
.dist-label .i { width: .85em; height: .85em; color: var(--red); }
.dist-bar { height: 8px; background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.dist-bar span { display: block; height: 100%; background: var(--red); border-radius: 4px; }
.dist-pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.score-empty { text-align: center; padding: .4rem 0 1rem; color: var(--muted); }
.score-empty .stars { margin: 0 auto .6rem; }

/* ── Post page & thread ───────────────────────────────────────── */
.post-page { padding-top: 1.5rem; padding-bottom: 3.2rem; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.2rem, 3vw, 1.9rem); box-shadow: var(--shadow-sm); }
.post-place {
  display: flex; align-items: center; gap: .8rem; padding: .65rem .85rem; margin-bottom: 1.1rem;
  border-radius: 10px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.post-place .place-icon { width: 42px; height: 42px; font-size: 1.3rem; }
.post-place > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.post-place > span span { font-size: .82rem; color: var(--muted); }
.post-place:hover { color: var(--ink); border-color: var(--line-2); }
.post-place:hover strong { color: var(--red); }
.post-rating { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.post-kind { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; font-weight: 600; color: var(--ink-2); margin-bottom: .8rem; }
.post-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.18; letter-spacing: -.01em; margin: 0 0 1rem; overflow-wrap: anywhere; }
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem;
  font-size: .86rem; color: var(--muted); padding-bottom: 1rem; margin-bottom: 1.1rem; border-bottom: 1px dashed var(--line-2);
}
.post-meta > span { display: inline-flex; align-items: center; gap: .35rem; }
.prose { font-size: 1.04rem; line-height: 1.75; overflow-wrap: anywhere; }
.post-content p:last-child { margin-bottom: 0; }
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 1.3rem; }

.thread { margin-top: 2.2rem; }
.thread-empty { color: var(--muted); font-style: italic; background: var(--card); border: 1px dashed var(--line-2); border-radius: 12px; padding: 1.05rem 1.2rem; }
.bubbles { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.bubble { display: flex; gap: .7rem; align-items: flex-end; }
.bubble-body { max-width: min(84%, 580px); display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.bubble-name { margin: 0; font-size: .78rem; font-weight: 700; color: var(--muted); padding-left: .9rem; display: flex; align-items: center; gap: .4rem; }
.author-badge { font-size: .7rem; font-weight: 600; font-style: italic; color: var(--red); }
.author-badge::before { content: "· "; color: var(--muted); font-style: normal; }
.bubble-text {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 18px 5px;
  padding: .72rem 1rem; box-shadow: var(--shadow-sm); overflow-wrap: anywhere; line-height: 1.58;
}
.bubble-meta { margin: 0; display: flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--muted); padding-left: .9rem; }
.bubble-meta .chip-btn { font-size: .75rem; padding: .2rem .5rem; }
.bubble--author { flex-direction: row-reverse; }
.bubble--author .bubble-body { align-items: flex-end; }
.bubble--author .bubble-text { background: #fdf0e3; border-color: #efd9c0; border-radius: 18px 18px 5px 18px; }
.bubble--author .bubble-name, .bubble--author .bubble-meta { padding: 0 .9rem 0 0; }
.bubble:target .bubble-text { box-shadow: 0 0 0 3px var(--red-soft); border-color: var(--red); }

.composer { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow-sm); }
.composer-as { display: flex; align-items: center; gap: .45rem; font-size: .86rem; color: var(--ink-2); margin: 0 0 .7rem; }
.composer-as .i { color: var(--red); }
.composer-row {
  display: flex; align-items: flex-end; gap: .6rem;
  background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 12px;
  padding: .45rem .45rem .45rem 1rem; transition: border-color .15s, background .15s;
}
.composer-row:focus-within { border-color: var(--red); background: #fff; }
.composer-row textarea {
  flex: 1; border: 0; outline: 0; background: transparent; resize: none;
  font: inherit; font-size: 1rem; color: var(--ink); min-height: 2.6rem; max-height: 220px; padding: .55rem 0; line-height: 1.5;
}
.composer-send {
  width: 44px; height: 44px; border-radius: 10px; border: 0; cursor: pointer; flex-shrink: 0;
  display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 2px 0 var(--red-ink);
  transition: transform .08s, background .15s;
}
.composer-send:hover { background: #b3141a; }
.composer-send:active { transform: translateY(2px); box-shadow: none; }

/* ── Forms ────────────────────────────────────────────────────── */
.field input, .field select, .field textarea,
.search-filters select, .inline-filter select, .sort-bar select, .report-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 9px; padding: .72rem .88rem;
  transition: border-color .15s, box-shadow .15s;
}
.field select, .search-filters select, .inline-filter select, .sort-bar select {
  -webkit-appearance: none; appearance: none;
  background: #fff var(--chevron) no-repeat right .8rem center / 16px;
  padding-right: 2.4rem;
}
.sort-bar select { width: auto; padding-block: .48rem; font-size: .9rem; }
.field input:focus, .field select:focus, .field textarea:focus,
.search-filters select:focus, .inline-filter select:focus, .sort-bar select:focus, .report-form textarea:focus {
  outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft);
}
.field textarea { resize: vertical; line-height: 1.58; }
::placeholder { color: #9a8f84; opacity: 1; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .95rem; }
.req { color: var(--red); }
.opt { font-weight: 400; font-size: .85rem; color: var(--muted); }
.hint { font-size: .83rem; color: var(--muted); margin: 0; }
.field-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.counter { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.counter.is-warn { color: var(--amber); font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field--full { grid-column: 1 / -1; }

.form-page { padding-top: 1.5rem; padding-bottom: 3.5rem; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 2.6rem; align-items: start; }
.form-head { margin-bottom: 1.4rem; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.2rem, 3vw, 1.9rem); box-shadow: var(--shadow); }
.form-step { border: 0; margin: 0; padding: 0 0 1.5rem; border-bottom: 1px dashed var(--line-2); min-width: 0; }
.form-step + .form-step { padding-top: 1.5rem; }
.form-step:last-child { border-bottom: 0; padding-bottom: 0; }
/* Floated legends sit inside the fieldset box instead of straddling its top edge. */
.step-title { float: left; width: 100%; display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; padding: 0; margin-bottom: 1rem; }
.step-title + *, .star-input legend + * { clear: both; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--red); color: var(--red); font-family: var(--font-display); font-size: .95rem; font-weight: 700;
  font-variant-numeric: lining-nums; transform: rotate(-6deg);
}
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--ink-2); margin: 1.1rem 0 1.3rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin: .12rem 0 0; flex-shrink: 0; }
.anon-card { display: flex; gap: .9rem; align-items: center; background: var(--paper); border: 1px dashed var(--line-2); border-radius: 12px; padding: .85rem 1rem; }
.anon-card p { margin: 0; }
.tips { position: sticky; top: calc(var(--header-h) + 22px); display: flex; flex-direction: column; gap: 1rem; padding-top: .3rem; }
.tip-list { margin: 0 0 1rem; padding-left: 1.15rem; display: flex; flex-direction: column; gap: .75rem; font-size: .92rem; color: var(--ink-2); }
.tip-list strong { color: var(--ink); }

/* Star rating input: DOM order 5→1, shown 1→5 with row-reverse. */
.star-input { border: 0; padding: 0; margin: 0 0 1.2rem; }
.star-input legend { float: left; width: 100%; font-weight: 600; font-size: .95rem; margin-bottom: .45rem; padding: 0; }
.star-row { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-row label { cursor: pointer; color: var(--star-empty); padding: .12rem; border-radius: 8px; transition: transform .12s ease, color .12s; }
.star-row label .i { width: 40px; height: 40px; }
.star-row input:checked ~ label { color: var(--red); }
.star-row:hover input ~ label { color: var(--star-empty); }
.star-row:hover label:hover, .star-row:hover label:hover ~ label { color: var(--red); }
.star-row label:active { transform: scale(.88); }
.star-row input:checked + label .i { animation: pop .35s ease; }
.star-row input:focus-visible + label { outline: 3px solid rgba(200, 22, 29, .45); outline-offset: 1px; }
.star-caption { display: block; min-height: 1.5em; margin-top: .25rem; font-weight: 600; color: var(--ink-2); }

/* Place autocomplete */
.combo { position: relative; }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  list-style: none; margin: 0; padding: .35rem; max-height: 350px; overflow: auto;
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 18px 36px -18px rgba(43, 37, 34, .45);
}
.combo-list li { display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem; border-radius: 8px; cursor: pointer; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--paper-2); }
.c-icon { font-size: 1.3rem; width: 1.8rem; text-align: center; }
.c-text { display: flex; flex-direction: column; min-width: 0; }
.c-name { font-weight: 600; }
.c-meta { font-size: .8rem; color: var(--muted); }
.c-new .c-name { color: var(--red); }
.picked-place {
  display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; margin-bottom: 1rem;
  border: 1.5px solid rgba(200, 22, 29, .3); background: var(--red-soft); border-radius: 12px;
}
.picked-place .place-icon { width: 44px; height: 44px; font-size: 1.35rem; background: #fff; }
.picked-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.picked-body span { font-size: .85rem; color: var(--muted); }
[hidden] { display: none !important; }

/* ── Search page ──────────────────────────────────────────────── */
.page-head--search .display { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.search-panel { display: flex; flex-direction: column; gap: .85rem; margin-top: 1rem; }
.search-panel .search-bar { max-width: 760px; }
.search-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.search-filters select { width: auto; min-width: 190px; padding: .5rem 2.3rem .5rem .85rem; font-size: .92rem; }
.segmented { display: inline-flex; background: var(--paper-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.segmented span { display: block; padding: .38rem .85rem; border-radius: 7px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.segmented input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line-2); }
.segmented input:focus-visible + span { outline: 2px solid var(--red); }
.link-quiet { font-size: .88rem; color: var(--muted); }
.results { display: flex; flex-direction: column; gap: .85rem; }
.results .question { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }

/* ── Flash messages ───────────────────────────────────────────── */
.flash-stack { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.flash { display: flex; align-items: flex-start; gap: .7rem; padding: .85rem 1rem; border-radius: 10px; border: 1px solid; }
.flash p { margin: 0; flex: 1; color: var(--ink); }
.flash > .i { margin-top: .2rem; }
.flash--success { background: var(--green-soft); border-color: rgba(79, 101, 40, .3); color: var(--green); }
.flash--error { background: var(--red-soft); border-color: rgba(200, 22, 29, .3); color: var(--red); }
.flash--warning { background: var(--amber-soft); border-color: rgba(143, 84, 9, .3); color: var(--amber); }
.flash--info { background: var(--blue-soft); border-color: rgba(43, 87, 151, .28); color: var(--blue); }
.flash-close { background: none; border: 0; color: inherit; cursor: pointer; padding: .2rem; border-radius: 6px; opacity: .75; }
.flash-close:hover { opacity: 1; }
.flash.is-leaving { opacity: 0; transition: opacity .3s; }

/* ── Empty states, notes & callouts ───────────────────────────── */
.empty { text-align: center; padding: 2.4rem 1.5rem; background: var(--card); border: 1px dashed var(--line-2); border-radius: 14px; }
.empty h2, .empty h3 { font-family: var(--font-display); font-size: 1.4rem; }
.empty p { color: var(--ink-2); max-width: 34rem; margin: 0 auto 1.2rem; }
.empty-mark { width: 52px; height: 52px; border-radius: 50%; display: inline-grid; place-items: center; border: 1.5px solid var(--red); color: var(--red); margin-bottom: .9rem; transform: rotate(-6deg); }
.empty-mark .i { width: 24px; height: 24px; }
.empty--inline { text-align: left; padding: 1.1rem 1.2rem; }
.empty--inline p { margin: 0 0 .9rem; }
.empty-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.empty-note {
  position: relative; max-width: 640px; padding: 1.5rem 1.6rem;
  background: #fffdf5; border: 1px solid #efe3cc; box-shadow: var(--shadow); transform: rotate(-.4deg);
}
.empty-note-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-bottom: .4rem; }
.empty-note p { color: var(--ink-2); }
.search-more { margin: -1rem 0 2rem; font-size: .92rem; }
.callout { display: flex; gap: .75rem; align-items: flex-start; background: var(--amber-soft); border: 1px solid rgba(143, 84, 9, .25); border-radius: 12px; padding: 1rem 1.1rem; font-size: .96rem; }
.callout .i { color: var(--amber); margin-top: .28rem; }

.why-note {
  position: relative; padding: 1.6rem 1.6rem 1.3rem; margin-top: .6rem;
  background: #fffdf5; border: 1px solid #efe3cc; box-shadow: var(--shadow); transform: rotate(.5deg);
}
.why-note h2 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: .7rem; }
.why-note p { color: var(--ink-2); }
.signature { font-family: var(--font-hand); font-size: 1.1rem; color: var(--red); text-align: right; margin: 0; }

/* ── How it works ─────────────────────────────────────────────── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 2.4rem; padding: 0; margin: 0 0 1.6rem; }
.steps li { position: relative; padding-left: 3.1rem; }
.step-n {
  position: absolute; left: 0; top: -.15rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid var(--red); color: var(--red);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; font-variant-numeric: lining-nums; transform: rotate(-7deg);
}
.steps li:nth-child(2) .step-n { transform: rotate(4deg); }
.steps--stack { grid-template-columns: 1fr; gap: 1.3rem; margin: 1rem 0 1.8rem; }
.steps h3 { font-family: var(--font-display); font-size: 1.18rem; margin-bottom: .3rem; }
.steps p { color: var(--ink-2); margin: 0; }
.privacy-line { display: flex; gap: .6rem; align-items: flex-start; max-width: 52rem; margin: 0; color: var(--ink-2); font-size: .95rem; }
.privacy-line .i { color: var(--red); margin-top: .22rem; }

.closing-note { text-align: center; max-width: 640px; }
.closing-note h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.closing-note p { color: var(--ink-2); font-size: 1.08rem; margin-bottom: 1.4rem; }
.cta-card { margin-top: 2.2rem; text-align: center; padding: 2rem; border-radius: 14px; background: var(--card); border: 1px dashed var(--line-2); }
.cta-card h2 { font-family: var(--font-display); font-size: 1.55rem; }

/* ── Documents (legal pages) ──────────────────────────────────── */
.doc h2 { font-family: var(--font-display); font-size: 1.45rem; margin: 2.1rem 0 .7rem; }
.doc h3 { font-size: 1.06rem; margin: 1.3rem 0 .4rem; }
.doc ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .45rem; }
.doc code { font-size: .86em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 5px; padding: .05rem .36rem; }
.doc-summary { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 10px; padding: 1.2rem 1.4rem; }
.doc-summary h2 { margin-top: 0; }
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.rule-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem 1.4rem; }
.rule-card h2 { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-size: 1.32rem; }
.rule-card--yes h2 .i { color: var(--green); }
.rule-card--no h2 .i { color: var(--red); }
.rule-card ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .6rem; font-size: .95rem; color: var(--ink-2); }

/* ── Error page ───────────────────────────────────────────────── */
.error-page { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.error-page .lead { margin: 0 auto 1.5rem; }
.search-bar--compact { width: 100%; max-width: 540px; margin-bottom: 1rem; }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; padding-block: 2.6rem 2rem; }
.site-footer h2 { font-family: var(--font-display); font-style: italic; font-size: 1.02rem; font-weight: 600; color: var(--ink); margin-bottom: .75rem; }
.site-footer nav { display: flex; flex-direction: column; gap: .45rem; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.site-footer nav a:hover { color: var(--red); text-decoration: underline; }
.brand--footer { margin-bottom: .7rem; }
.footer-brand p, .footer-business p { color: var(--ink-2); font-size: .93rem; }
.footer-note { display: flex; align-items: center; gap: .45rem; font-size: .84rem !important; color: var(--muted) !important; }
.footer-bottom { display: flex; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 1.1rem; font-size: .82rem; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* ── Business card: photo, contacts, hours, features ──────────── */
.place-icon.has-photo, .place-icon.has-logo, .head-emoji--tile.has-photo, .head-emoji--tile.has-logo { padding: 0; overflow: hidden; background: #fff; }
.place-icon.has-photo img, .head-emoji--tile.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.place-icon.has-logo img, .head-emoji--tile.has-logo img { width: 76%; height: 76%; object-fit: contain; }
.place-list--grid .place-icon.has-photo { width: 64px; height: 64px; }
.c-icon img { width: 34px; height: 34px; object-fit: cover; border-radius: 7px; }

.open-state { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.open-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b9ad9f; flex-shrink: 0; }
.open-state.is-open { color: var(--green); }
.open-state.is-open::before { background: #5d8f2f; }
.open-state--lg { font-size: .95rem; margin: .15rem 0 .6rem; }
.open-state--lg::before { display: none; }
.open-state .i { width: 1em; height: 1em; }

.place-main { min-width: 0; }
.place-photo { margin: 0 0 1.2rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); box-shadow: var(--shadow); }
.place-photo img { width: 100%; max-height: 380px; object-fit: cover; }
.place-photo figcaption { font-size: .75rem; color: var(--muted); padding: .45rem .8rem; background: var(--card); border-top: 1px solid var(--line); }
.place-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 0 0 .25rem; }
.type-label { font-family: var(--font-hand); font-size: 1.02rem; color: var(--ink-2); }
.features { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.features li { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: .24rem .6rem; }
.features .i { color: var(--green); width: .95em; height: .95em; }
.quick-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; font-size: .93rem; }
.contact-list li { display: flex; gap: .6rem; align-items: flex-start; overflow-wrap: anywhere; }
.contact-list .i { color: var(--red); margin-top: .22rem; }
.contact-list a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); }
.contact-list a:hover { color: var(--red); text-decoration-color: currentColor; }
.hours { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .45rem 0 .7rem; }
.hours th { text-align: left; font-weight: 500; color: var(--ink-2); padding: .32rem .5rem .32rem 0; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; padding: .32rem 0; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px dashed var(--line); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--ink); }
.hours-raw { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }

/* Discover strip on the homepage */
.discover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.photo-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.photo-card:hover { transform: translateY(-2px) rotate(-.3deg); box-shadow: var(--shadow); color: var(--ink); }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.photo-card-body { display: flex; flex-direction: column; gap: .2rem; padding: .75rem .9rem .9rem; }
.photo-card-name { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.photo-card:hover .photo-card-name { color: var(--red); }
.photo-card-meta { font-size: .82rem; color: var(--muted); }
.source-note { font-size: .8rem; color: var(--muted); margin: .9rem 0 0; }

/* ── Mobile tab bar ───────────────────────────────────────────── */
.tabbar { display: none; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .layout-sidebar, .form-layout, .place-hero { grid-template-columns: 1fr; }
  .sidebar, .tips { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-art { display: none; }
  .split, .split--notes { grid-template-columns: 1fr; gap: 2.4rem; }
  .steps { grid-template-columns: 1fr; }
  .main-nav a:nth-child(n+3) { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 58px; }
  .main-nav, .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .grid-2, .rule-grid { grid-template-columns: 1fr; }
  .inline-filter { margin-left: 0; width: 100%; }
  .report-form { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(84px + env(safe-area-inset-bottom)); width: auto; }
  .place-list--grid, .review-grid { grid-template-columns: 1fr; }
  .review-grid--board .review { transform: none !important; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--card); border-top: 1px solid var(--line);
    padding: .3rem .25rem calc(.35rem + env(safe-area-inset-bottom));
  }
  .tab { display: flex; flex-direction: column; align-items: center; gap: .12rem; padding: .3rem 0; font-size: .68rem; font-weight: 600; color: var(--muted); text-decoration: none; }
  .tab .i { width: 22px; height: 22px; }
  .tab[aria-current] { color: var(--red); }
  .tab--primary { color: var(--ink); }
  .tab-fab {
    width: 48px; height: 48px; margin-top: -22px; border-radius: 14px; display: grid; place-items: center;
    background: var(--red); color: #fff; border: 3px solid var(--card); box-shadow: 0 2px 0 var(--red-ink);
  }
  .tab-fab .i { width: 24px; height: 24px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}
@media (max-width: 540px) {
  .wrap { padding: 0 16px; }
  .hero-title { font-size: 2.05rem; }
  .search-bar { padding-left: .9rem; }
  .search-bar .btn { padding: .75rem .95rem; }
  .page-head-row { flex-direction: column; gap: .8rem; }
  .place-id { flex-direction: column; gap: .8rem; }
  .place-card { flex-wrap: wrap; }
  .place-score { width: 100%; flex-direction: row; align-items: center; justify-content: flex-start; gap: .55rem; padding-left: 64px; }
  .score-num { font-size: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-filters select { min-width: 0; flex: 1 1 45%; }
  .bubble-body { max-width: 88%; }
  .star-row label .i { width: 38px; height: 38px; }
  .why-note, .empty-note { transform: none; }
}

/* ── Micro-interactions ───────────────────────────────────────── */
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
