/* Peach Hour: dusk navy + peach, Instrument Serif / Newsreader */
:root {
  --dusk: #1b1f3b;
  --dusk-2: #2a2f55;
  --peach: #ff6a3d;
  --peach-2: #ffb347;
  --peach-ink: #c2410c;
  --bg: #f4f3f0;
  --card: #ffffff;
  --ink: #141414;
  --muted: #6b6862;
  --line: #e3e0da;
  --live: #16804f;
  --live-bg: #e3f4ea;
  --soon-bg: #fff1d6;
  --later-bg: #ffe6dc;
  --topbar-h: 60px;
  --display: "Instrument Serif", Georgia, serif;
  --text: "Newsreader", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag-food, :root[data-theme="dark"] .tag-food { background: #3d2017; color: #ffb59a; }
  :root:not([data-theme="light"]) .tag-vibe { background: #24274a; color: #c3c8ff; }
  :root:not([data-theme="light"]) .tag-out { background: #12301f; color: #8be3ad; }
  :root:not([data-theme="light"]) {
    --bg: #111216; --card: #1b1c22; --ink: #f2f0ec; --muted: #a3a09a; --line: #2e2f37;
    --live: #4ade80; --live-bg: #12301f; --soon-bg: #3a2c10; --later-bg: #3d2017; --peach-ink: #ff8a63;
  }
}
:root[data-theme="dark"] {
  --bg: #111216; --card: #1b1c22; --ink: #f2f0ec; --muted: #a3a09a; --line: #2e2f37;
  --live: #4ade80; --live-bg: #12301f; --soon-bg: #3a2c10; --later-bg: #3d2017; --peach-ink: #ff8a63;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--topbar-h) + 8px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
a { color: var(--peach-ink); }
h1, h2, h4 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── Top bar ─────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 1500; background: var(--dusk); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--topbar-h); flex-wrap: wrap; }
.topbar-brand, .foot-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: inherit; text-decoration: none; letter-spacing: 0; }
.mark { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(var(--peach-2), var(--peach)); position: relative; overflow: hidden; }
.mark::after { content: ""; position: absolute; left: 0; right: 0; top: 58%; height: 3px; background: var(--dusk); box-shadow: 0 5px 0 var(--dusk); }
.topbar-links { display: flex; gap: 2px; flex-wrap: wrap; }
.toplink { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: #fff; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; padding: 8px 12px; border-radius: 8px; cursor: pointer; opacity: .9; }
.toplink:hover, .toplink[aria-pressed="true"] { background: rgba(255, 255, 255, .1); opacity: 1; }
.toplink[aria-pressed="true"] .i { fill: var(--peach); stroke: var(--peach); }
.n { background: var(--peach); color: #fff; border-radius: 6px; padding: 0 6px; font-size: .78rem; font-weight: 700; }

/* ── Hero: full screen, centered ─────────── */
.hero {
  min-height: calc(100svh - var(--topbar-h)); display: grid; place-items: center; text-align: center;
  background: radial-gradient(120% 80% at 50% 100%, #3b2a4f 0%, var(--dusk) 60%); color: #fff; padding: 48px 16px;
}
.hero-inner { max-width: 760px; }
.sunset { width: min(260px, 60vw); aspect-ratio: 2 / 1; margin: 0 auto 28px; overflow: hidden; position: relative; }
.sun {
  position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: linear-gradient(var(--peach-2) 10%, var(--peach) 75%);
}
.sun::after { /* the retro stripes across the lower half */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 20px, #2f2648 20px 26px);
  -webkit-mask: linear-gradient(transparent 22%, #000 22%); mask: linear-gradient(transparent 22%, #000 22%);
}
.hero h1 { font-size: clamp(3.8rem, 13vw, 8.5rem); font-weight: 400; line-height: .9; margin: 0; letter-spacing: -.02em; }
.tagline { font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: rgba(255, 255, 255, .78); margin: 20px auto 32px; max-width: 34ch; }
.cta {
  display: inline-flex; align-items: center; gap: 10px; background: var(--peach); color: #fff; text-decoration: none;
  font-family: var(--text); font-weight: 700; font-size: 1.1rem; padding: 16px 28px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(255, 106, 61, .35); transition: transform .15s ease, box-shadow .15s ease;
}
.cta::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid; border-bottom: 2.5px solid; transform: rotate(45deg) translateY(-3px); }
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 106, 61, .45); }
.clock { margin: 22px 0 0; font-size: .92rem; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }

/* ── Finder ──────────────────────────────── */
.finder { padding-top: 56px; padding-bottom: 8px; scroll-margin-top: calc(var(--topbar-h) + 8px); }
.finder h2 { font-size: clamp(2.3rem, 5.5vw, 3.2rem); font-weight: 400; margin: 0; line-height: 1; }
.finder-sub { color: var(--muted); margin: 8px 0 8px; }
.finder h3 { font-family: var(--text); font-size: .95rem; font-weight: 700; margin: 22px 0 10px; letter-spacing: 0; }
.finder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.finder-grid.more { margin-top: 18px; padding-top: 6px; border-top: 1px solid var(--line); }
.finder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }

.chips, .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .seg button {
  border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px;
  padding: 7px 12px; font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; transition: border-color .12s, background .12s;
}
.chip:hover, .seg button:hover { border-color: var(--ink); }
.chip.on, .seg button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip:disabled { opacity: .38; cursor: default; border-style: dashed; }
.chip:disabled:hover { border-color: var(--line, currentColor); }
.pick { display: flex; gap: 8px; margin-top: 12px; }
select, .search input {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit;
}
select:focus, .search input:focus, .chip:focus-visible, .seg button:focus-visible { outline: 2px solid var(--peach); outline-offset: 1px; }

.campus-range-wrap { margin-top: 14px; max-width: 380px; }
.campus-range { width: 100%; accent-color: var(--peach); }
.range-ticks { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.campus-label { margin: 6px 0 0; font-weight: 700; font-size: .92rem; }

.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.solid { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn.solid:hover { background: var(--peach); border-color: var(--peach); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.apply { font-size: 1rem; padding: 12px 22px; }
.more-btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg) translateY(-2px); margin-left: 2px; transition: transform .15s; }
.more-btn[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }
.link { background: none; border: 0; color: var(--muted); font: inherit; font-size: .92rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }

/* ── Results ─────────────────────────────── */
.layout { padding-top: 32px; padding-bottom: 48px; }
.results { scroll-margin-top: calc(var(--topbar-h) + 8px); }
.search { display: block; margin-bottom: 10px; position: relative; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; padding: 14px 14px 14px 42px; font-size: 1.02rem; }
.try-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 14px; font-size: .88rem; color: var(--muted); }
.try { background: none; border: 1px dashed var(--line); border-radius: 8px; padding: 4px 10px; font: inherit; color: var(--ink); cursor: pointer; }
.try:hover { border-color: var(--peach); color: var(--peach-ink); }
.q-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 14px; font-size: .88rem; color: var(--muted); }
.q-chips b { background: var(--dusk); color: #fff; border-radius: 6px; padding: 3px 9px; font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.toolbar-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar .btn { padding: 8px 14px; }
.toolbar select { padding: 8px 10px; }
.count { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.45rem; }
.filters-btn .n { margin-left: 2px; }

.viewbar { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px; gap: 4px; }
.viewbar button { border: 0; background: none; font: inherit; font-weight: 700; padding: 10px; border-radius: 7px; cursor: pointer; color: var(--muted); }
.viewbar button.on { background: var(--dusk); color: #fff; }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; container: list / inline-size; }
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 16px; color: var(--muted); }

/* ── Card ────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; container-type: inline-size; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.kicker { margin: 0 0 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.kicker span { opacity: .5; margin: 0 2px; }
.price { color: var(--ink); letter-spacing: .02em; } .price span { color: var(--line); }
.card h4 { margin: 0; font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.card h4 a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--peach), var(--peach)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .2s; }
.card h4 a:hover { background-size: 100% 2px; }
.card h4 a::after { content: "↗"; font-size: .6em; margin-left: 4px; color: var(--muted); vertical-align: super; }
.heart { background: none; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.heart:hover { border-color: var(--ink); }
.heart[aria-pressed="true"] { color: var(--peach); border-color: var(--peach); }
.heart[aria-pressed="true"] .i { fill: var(--peach); }

.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 6px; font-weight: 700; font-size: .9rem; }
.status.live { background: var(--live-bg); color: var(--live); }
.status.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.status.soon { background: var(--soon-bg); }
.status.later { background: var(--later-bg); }
.status.none { padding-left: 0; color: var(--muted); font-weight: 600; }
@keyframes pulse { 50% { opacity: .25; } }
.hours-block { display: grid; gap: 4px; padding: 12px 14px; background: var(--bg); border-radius: 10px; }
.hb-label { margin: 0; font-size: .75rem; font-weight: 700; color: var(--muted); }
.hb-label + * { margin-bottom: 6px; }
.sched div.today dt { color: var(--ink); font-weight: 700; }
.hours-today { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: .9rem; }
.open-pill { font-weight: 700; color: var(--muted); }
.open-pill.is-open { color: var(--live); }
.open-pill span { font-weight: 500; color: var(--ink); }
.today-range { color: var(--muted); font-variant-numeric: tabular-nums; }

.deal { margin: 0; font-size: 1.02rem; font-weight: 500; line-height: 1.45; }
.sched { margin: 0; display: grid; gap: 2px; font-size: .9rem; }
.sched div { display: flex; gap: 10px; }
.sched dt { color: var(--muted); min-width: 92px; }
.sched dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.sched .note { font-weight: 400; color: var(--muted); }
.addr { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }
.dist { margin: 2px 0 0; font-size: .85rem; font-weight: 600; color: var(--ink); }
.belt { margin: 2px 0 0; font-size: .85rem; font-weight: 600; color: #1d6b42; }
.belt span { font-weight: 400; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 6px; padding: 4px 9px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: filter .12s; }
.tag .i { width: 13px; height: 13px; }
.tag:hover { filter: brightness(.95); }
.tag-food { background: #ffe9df; color: #9a3412; }
.tag-vibe { background: #e6e8f7; color: #2a2f6b; }
.tag-out { background: #e2f3e8; color: #1d6b42; }

/* All three actions stay on one row; spacing tightens as cards narrow. */
.card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
.act {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); font: inherit; font-size: .86rem; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer;
  white-space: nowrap; flex: 1 1 auto; min-width: 0; transition: border-color .12s, background .12s, color .12s;
}
.act span { overflow: hidden; text-overflow: ellipsis; }
.act:hover { border-color: var(--ink); }
.act .i { width: 16px; height: 16px; }
.act-party { background: #000; border-color: #000; color: #fff; padding-left: 8px; flex-grow: 1.4; }
.act-party:hover { background: #fff; border-color: #000; color: #000; }
.pf-logo { width: 20px; height: 20px; border-radius: 5px; display: block; }
.confirm { font-size: .78rem; font-weight: 700; color: #8a5a00; background: var(--soon-bg); padding: 3px 8px; border-radius: 6px; }

/* ── Map ─────────────────────────────────── */
.map { height: 70vh; min-height: 420px; border-radius: 12px; border: 1px solid var(--line); }
.leaflet-popup-content { font-family: var(--text); }
.leaflet-popup-content b { font-family: var(--display); font-size: 1.05rem; }

/* ── Contact ─────────────────────────────── */
.contact {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto; margin: auto;
  padding: 28px 24px; border: 0; border-radius: 16px; background: var(--card); color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3); position: relative;
}
.contact::backdrop { background: rgba(27, 31, 59, .55); }
.contact-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.contact-close:hover { color: var(--ink); }
.contact h2 { font-size: clamp(2rem, 4.5vw, 2.7rem); font-weight: 400; margin: 0; line-height: 1; }
.contact-sub { color: var(--muted); margin: 10px 0 22px; max-width: 52ch; }
.contact form { display: grid; gap: 14px; }
.contact label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.contact input, .contact textarea, .contact select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; }
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--peach); border-color: transparent; }
.contact .btn { justify-self: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt { color: var(--muted); font-weight: 400; }
.form-status { margin: 0; font-weight: 700; }

/* ── Footer ──────────────────────────────── */
.foot { background: var(--dusk); color: rgba(255, 255, 255, .7); font-size: .88rem; }
.foot-inner { padding-top: 28px; padding-bottom: 32px; display: grid; gap: 8px; }
.foot-brand { color: #fff; margin: 0; }
.foot p { margin: 0; max-width: 70ch; }

@media (max-width: 860px) {
  .finder-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --topbar-h: 96px; }
  .topbar-inner { padding-top: 8px; padding-bottom: 6px; }
  .toplink { padding: 6px 8px; font-size: .88rem; }
  .form-row { grid-template-columns: 1fr; }
  .finder { padding-top: 40px; }
}


/* ── Book cards ───────────────────────────────────────────────────────────
   An open book: two paper pages floating on a soft drop shadow, page edges on the
   outer sides and a shaded spine. Left page = two photos with the name plate across
   them; right page = the details. On narrow lists (phones) the photo page sits on top. */
.card.book {
  --cover: color-mix(in srgb, var(--dusk) 22%, var(--bg)); --paper: var(--card); --spine: rgba(27, 31, 59, .14);
  padding: 0; gap: 0; border: 0; border-radius: 12px; overflow: visible;
  background: transparent;
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-areas: "photos info";
  box-shadow: 0 1px 3px rgba(17, 19, 42, .10), 0 10px 22px -6px rgba(17, 19, 42, .18), 0 32px 56px -20px rgba(17, 19, 42, .32);
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) {
  .card.book:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(17, 19, 42, .10), 0 14px 28px -6px rgba(17, 19, 42, .22), 0 40px 70px -20px rgba(17, 19, 42, .38); }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card.book { box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 12px 26px -6px rgba(0, 0, 0, .55), 0 32px 60px -20px rgba(0, 0, 0, .7); }
}
.book .page { position: relative; background: var(--paper); min-width: 0; }
/* page stacks on the outer edges */
.page-photos { grid-area: photos; border-radius: 9px 2px 2px 9px; box-shadow: -2px 0 0 -0.5px var(--paper), -3px 0 0 -0.5px var(--line), -5px 0 0 -1px var(--paper), -6px 0 0 -1px var(--line); }
.page-info { grid-area: info; border-radius: 2px 9px 9px 2px; box-shadow: 2px 0 0 -0.5px var(--paper), 3px 0 0 -0.5px var(--line), 5px 0 0 -1px var(--paper), 6px 0 0 -1px var(--line); }
/* the spine: shading on both sides of the gutter */
.page-photos::after, .page-info::before { content: ""; position: absolute; top: 0; bottom: 0; width: 34px; pointer-events: none; z-index: 2; }
.page-photos::after { right: 0; background: linear-gradient(to left, var(--spine), transparent); }
.page-info::before { left: 0; background: linear-gradient(to right, var(--spine), rgba(27, 31, 59, .06) 40%, transparent); }

/* Left page: two photos, name plate across the seam */
.page-photos { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; padding: 14px 18px 14px 14px; min-height: 380px; }
.ph { position: relative; overflow: hidden; border-radius: 7px; background: var(--line); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-split img { height: calc(200% + 8px); }              /* one photo spread across both frames */
.ph-split.ph-low img { top: auto; bottom: 0; }
.ph-credit { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .66rem; font-weight: 600; color: #fff; background: rgba(17, 19, 42, .55); padding: 3px 7px; border-radius: 5px; backdrop-filter: blur(4px); }
.ph-empty { display: grid; place-items: center; background: radial-gradient(130% 90% at 50% 120%, #4a2f5c, #2b2a55 55%, #1b1f3b); }
.ph-empty.ph-low { background: radial-gradient(130% 120% at 50% -20%, #4a2f5c, #2b2a55 55%, #1b1f3b); }
.ph-sun { width: 96px; height: 48px; border-radius: 96px 96px 0 0; align-self: start; margin-top: 18%; background: linear-gradient(#ffb347 10%, #ff6a3d 80%);
  -webkit-mask: linear-gradient(#000 30%, transparent 30%), repeating-linear-gradient(to bottom, #000 0 10px, transparent 10px 14px);
  mask: linear-gradient(#000 30%, transparent 30%), repeating-linear-gradient(to bottom, #000 0 10px, transparent 10px 14px); mask-composite: add; }
.ph-hood { align-self: end; margin: 0 0 14px; color: rgba(255, 255, 255, .7); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.nameplate {
  position: absolute; z-index: 3; left: 26px; right: 30px; top: 50%; transform: translateY(-50%);
  background: var(--paper); border-radius: 14px; padding: 12px 16px 13px; text-align: center;
  box-shadow: 0 10px 26px -10px rgba(17, 19, 42, .55), 0 0 0 1px var(--line);
}
.nameplate .kicker { margin: 0 0 3px; font-size: .72rem; letter-spacing: .02em; }
.nameplate h4 { font-family: var(--display); font-weight: 400; letter-spacing: -.005em; font-size: clamp(1.7rem, 2.8vw, 2.15rem); line-height: 1; }

/* Right page: the details, grouped into labeled sections */
.page-info { padding: 22px 26px 18px 36px; display: flex; flex-direction: column; gap: 16px; container: info / inline-size; }
.info-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.info-top .heart { width: 36px; height: 36px; }
.sec-label { margin: 0 0 8px; font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.3rem; line-height: 1.1; letter-spacing: 0; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.sec-label::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--peach); }
.info-grid { display: grid; gap: 18px; }
.sec-side { display: grid; gap: 18px; align-content: start; }
.sec p { margin: 0; }
.deal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 1rem; line-height: 1.4; font-weight: 500; }
.deal-list li { position: relative; padding-left: 16px; }
.deal-list li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--peach); }
.book .sched { gap: 6px; font-size: .9rem; }
.book .sched div { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 0 8px; }
.book .sched div::after { content: ""; grid-column: 2; grid-row: 1; border-bottom: 1px dotted var(--line); transform: translateY(-3px); }
.book .sched dt { min-width: 0; grid-column: 1; }
.book .sched dd { grid-column: 3; text-align: right; }
.book .sched .note { grid-column: 1 / -1; font-size: .8rem; margin-top: -1px; }
.book .sched div.today dt, .book .sched div.today dd { color: var(--ink); }
.book .sched div:not(.today) dd { font-weight: 500; color: var(--muted); }
.open-line { margin: 8px 0 0 !important; font-size: .86rem; font-weight: 700; color: var(--muted); }
.open-line.is-open { color: var(--live); }
.open-line span { font-weight: 500; color: var(--muted); }
.book .addr { margin: 0; font-size: .92rem; color: var(--ink); font-weight: 500; }
.book .dist, .book .belt { font-size: .84rem; margin-top: 3px; }
.book .card-foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.book .tags { gap: 5px; }
.book .tag { font-size: .76rem; padding: 3px 8px; }
.acts { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; min-width: 0; }
/* Wide right page: deals on the left, when/where on the right, tags and buttons share the bottom row */
@container info (min-width: 540px) {
  .info-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 28px; }
  .sec-side { border-left: 1px solid var(--line); padding-left: 26px; }
  .book .card-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .book .tags { flex: 1 1 auto; min-width: 0; }
  .acts { flex: 0 0 auto; }
  .acts .act { flex: 0 0 auto; }
}

@container list (max-width: 560px) {
  .card.book { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photos" "info"; }
  .page-photos { min-height: 0; height: 210px; grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; padding: 10px 10px 14px; border-radius: 9px 9px 2px 2px;
    box-shadow: 0 -2px 0 -0.5px var(--paper), 0 -3px 0 -0.5px var(--line); }
  .page-info { border-radius: 2px 2px 9px 9px; padding: 22px 18px 16px; box-shadow: 0 2px 0 -0.5px var(--paper), 0 3px 0 -0.5px var(--line); }
  .page-photos::after { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 10px; background: linear-gradient(to top, rgba(27, 31, 59, .14), transparent); }
  .page-info::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 12px; background: linear-gradient(to bottom, rgba(27, 31, 59, .16), transparent); }
  .ph-split img { height: 100%; width: calc(200% + 8px); }
  .ph-split.ph-low img { top: 0; bottom: auto; left: auto; right: 0; }
  .nameplate { left: 50%; right: auto; width: min(78%, 280px); transform: translate(-50%, -50%); top: calc(50% - 2px); }
  .nameplate h4 { font-size: 1.75rem; }
}

/* Card action buttons: tighten as the card narrows (kept last so these win). */
@container (max-width: 400px) {
  .act { padding: 8px 9px; font-size: .84rem; }
}
/* Phones (any phone width) and narrow cards: Share shows just its icon */
@media (max-width: 600px) {
  .share-lbl { display: none; }
  .act-share { flex: 0 0 auto; width: 40px; padding: 8px 0; }
}
@container (max-width: 320px) {
  .share-lbl { display: none; }
  .act-share { flex: 0 0 auto; width: 40px; padding: 8px 0; }
}
@container (max-width: 300px) { /* narrow phones (~360px screens) */
  .card-foot, .acts { gap: 4px; }
  .act { padding: 8px 5px; gap: 4px; font-size: .78rem; letter-spacing: -.01em; }
  .act .i { width: 15px; height: 15px; }
  .pf-logo { width: 18px; height: 18px; }
}
@container (max-width: 270px) { /* smallest phones (~320px screens): drop the Directions icon */
  .card-foot, .acts { gap: 4px; }
  .act:not(.act-party):not(.act-share) .i { display: none; }
  .act { padding: 8px 4px; font-size: .76rem; letter-spacing: -.01em; }
  .act-party { gap: 4px; }
  .pf-logo { width: 16px; height: 16px; }
}

/* Bold bar names and section titles. Instrument Serif has a single weight, so thicken
   the strokes with a same-color outline instead of the browser's blurry fake bold. */
.nameplate h4, .sec-label { font-synthesis: none; -webkit-text-stroke: .035em currentColor; }
.nameplate h4 a { -webkit-text-stroke: inherit; }

/* ── Compact books: shorter photo page, tighter spacing ──────────────────── */
.grid { gap: 32px; }
.page-photos { min-height: 250px; gap: 6px; padding: 10px 14px 10px 10px; }
.nameplate { padding: 8px 14px 9px; border-radius: 12px; left: 22px; right: 26px; }
.nameplate .kicker { font-size: .68rem; margin-bottom: 1px; }
.nameplate h4 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.page-info { padding: 16px 22px 14px 30px; gap: 11px; }
.info-top .heart { width: 32px; height: 32px; }
.sec-label { font-size: 1.12rem; margin-bottom: 5px; }
.deal-list { gap: 4px; font-size: .96rem; line-height: 1.35; }
.book .sched { gap: 3px; }
.open-line { margin-top: 5px !important; }
.info-grid, .sec-side { gap: 12px; }
.book .card-foot { padding-top: 10px; gap: 8px; }
@container list (max-width: 560px) {
  .page-photos { min-height: 0; height: 150px; padding: 8px 8px 10px; }
  .nameplate { left: 50%; right: auto; }
  .nameplate h4 { font-size: 1.5rem; }
  .page-info { padding: 16px 16px 14px; }
}

/* Tags as small outline pills: hairline border, no fill or icons. Still clickable filters. */
.book .tags { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.book .tags.one-line { flex-direction: row; flex-wrap: wrap; align-items: center; }
.book .tags.one-line .tag-row { display: contents; }
.book .tag { background: none !important; color: var(--muted) !important; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: .78rem; font-weight: 600; letter-spacing: .01em; transition: border-color .12s, color .12s; }
.book .tag .i { display: none; }
.book .tag:hover { filter: none; border-color: var(--peach); color: var(--peach-ink) !important; }

/* For now: Create Partiful matches the other card buttons (white, thin border) instead of black. */
.book .act-party { background: var(--card); border-color: var(--line); color: var(--ink); }
.book .act-party:hover { background: var(--card); border-color: var(--ink); color: var(--ink); }

/* The ↗ after a bar's name matches the peach dashes before The Deals / When / Where. */
.card h4 a::after { color: var(--peach); -webkit-text-stroke: 0; }

/* Top bar "♡ Saved 0": optically line up the heart, the serif label and the count badge. */
.toplink .i { position: relative; top: -2px; }
.toplink .n { display: inline-flex; align-items: center; justify-content: center; height: 1.3em; min-width: 1.3em; line-height: 1; padding: 2px 6px 0; position: relative; top: -1px; }

/* Status pill and "Call to confirm" share one height. */
.status-row .status, .status-row .confirm { min-height: 32px; box-sizing: border-box; }
.status-row .confirm { display: inline-flex; align-items: center; padding: 0 10px; }
