/* Generated by tools/build_pages.py — edit site/detail.css instead. */
/* ═══════════════════════════════════════════════════════════════════
   Side Quest — design system. THE RUMMAGE.

   The site is a jumble sale table. Every listing is a scrap of paper on
   it: five stocks, torn along the bottom, taped or pinned, annotated in
   biro. You rummage, you pick things up, you put them down.

   This is not decoration. The product's problem is that a search box
   asks "what are you looking for?" and the honest answer from somebody
   who has just moved to a town is "I don't know." A heap does not ask.

   TWO GROUNDS, as before:
     --baize   the table. You browse on it.
     --sheet   the paper. You read on it, and it comes in five stocks
               because a jumble is a jumble when the paper differs.

   THE INK RULE that governs the palette: the biro (--pen) clears 4.5:1
   on all five stocks but only manages 1.47:1 on the baize. Anything in
   pen ON the table uses --pen-up instead. Nothing in this file may set
   --pen on a dark ground.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --baize:    #2B332D;
  --baize-2:  #1D241F;

  /* the five stocks */
  --sheet:    #F3EEE0;   /* newsprint — the default paper */
  --sheet-2:  #E8E1CE;
  --p-kraft:  #E0CBA2;
  --p-pink:   #F3B9C7;
  --p-blue:   #C3D7E0;
  --p-white:  #FBFAF6;

  /* the app browses, so its ground is the table */
  --wash:     var(--baize);
  --wash-2:   var(--baize-2);

  --ink:      #1A1714;
  --ink-2:    #4A443B;
  --ink-3:    #5A5248;   /* the floor: 4.60:1 on the pink stock */
  --rule:     #D3CBB6;
  --rule-soft:#E3DCC9;

  /* on the table */
  --thread:      #E8DFCB;
  --on-board:    #E8DFCB;
  --on-board-2:  rgba(232,223,203,.72);
  --on-board-line: rgba(232,223,203,.3);

  /* The biro. --orange keeps its name because the stylesheet already
     calls every accent that; it is the red pen now. */
  --orange:      #8E2018;
  --orange-soft: #F6E2DE;
  --pen-up:      #EE9AA0;   /* the same pen, legible on the table */
  --green:       #2D6A4A;
  --green-soft:  #DFEDE2;
  --green-ink:   #1F5436;
  --blue:        #3D5F78;
  --blue-soft:   #DEE8EE;
  --purple:      #5E4A72;
  --purple-soft: #E8E1EE;
  --contour:     #8A5A10;
  --contour-ink: #6E4708;
  --contour-soft:#F4EAD4;

  /* basemap: a printed map sheet dropped on the table */
  --land:       #EDE7D6;
  --water-fill: #B9CBD3;
  --coast:      #7E98A1;
  --road:       #DED3B6;
  --road-major: #C08C5A;
  --map-bg:     #EDE7D6;

  /* paper has square corners and a hard shadow */
  --r:    0px;
  --r-sm: 0px;
  --shade:   3px 4px 0 rgba(0,0,0,.26);
  --shade-2: 6px 8px 0 rgba(0,0,0,.3);

  --font: "Courier Prime", "Courier New", ui-monospace, monospace;
  --display: "Anton", Impact, sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;
}

/* One look, committed. The table is already dark and the paper is
   already paper; a second palette would only make the ink wrong. */

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--wash); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.app { height: 100dvh; display: flex; flex-direction: column; }

/* Map lettering is wide and evenly spaced; that is where the wordmark and
   headings get their character, rather than from a second typeface. */
.wide { font-family: var(--display); text-transform: uppercase; letter-spacing: .005em; }

/* ═══════════════════════════════════════════════════════════════════

   Side Quest — the page for a single listing.



   Appended to the token block of base.css by tools/build_pages.py, so the

   colours, type and dark mode are the same object as the rest of the site

   rather than a copy that drifts.



   A page here is a column, not an app: it scrolls, it prints, it opens

   without JavaScript, and it has to make sense to somebody who arrived from

   a link in a WhatsApp group with no idea what Side Quest is.

   ═══════════════════════════════════════════════════════════════════ */



/* base.css locks the app to the viewport; a document has to scroll. */

/* THE READING GROUND.

   base.css points --wash at the board, because the app browses. A listing
   page reads, so it redefines the same two tokens on itself: paper, one
   shade darker than the panels on it. Everything underneath — past events,
   unverified chips, the nearby strip — follows without being touched.
   The board still appears, as the navigation strip, so the page is
   recognisably part of the same site. */
body.place {
  --wash:   #EAE3D1;   /* the reading ground, a shade under newsprint */
  --wash-2: #DDD5BE;
  overflow: auto; height: auto;
  background: var(--wash); color: var(--ink);
}



/* ── Navigation ────────────────────────────────────────────

   A listing page is usually somebody's first sight of the site, arriving from

   a link with no idea what it is. One back link was not enough: the three ways

   out of here are named and always in the same place. */



.nav {

  display: flex; align-items: center; justify-content: space-between;

  gap: 18px; flex-wrap: wrap;

  padding: 11px 22px; background: var(--baize); color: var(--on-board);

  border-bottom: 2px solid var(--baize-2);

  position: sticky; top: 0; z-index: 20;

}

.nav-mark { text-decoration: none; flex: none; }

.nav .wordmark {

  font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: -.01em;

  color: var(--on-board);

}

/* on the board, where the pink clears 4.5:1 on its own */
/* the listing nav is the table, so the pen needs its light twin */
.nav .wordmark b { color: var(--pen-up); font-weight: 700; }

.nav-links { display: flex; gap: 7px; flex-wrap: wrap; }

.nav-links a {

  font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none;

  border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 7px 14px;

  white-space: nowrap; background: var(--sheet);

}

.nav-links a:hover { border-color: var(--orange); color: var(--orange); }

.nav-links .nav-back { border-color: var(--ink); color: var(--ink); }

.nav-links .nav-back::before { content: "← "; }



/* ── Column ────────────────────────────────────────────────── */



.page {

  max-width: 720px; margin: 0 auto; padding: 34px 22px 70px;

}



.p-head { margin-bottom: 22px; }

.p-kind {

  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .07em;

  text-transform: uppercase; color: var(--ink-3); margin-bottom: 9px;

}

.page h1 {

  margin: 0 0 9px; font-size: 40px; line-height: 1.0;

  font-family: var(--display); font-weight: 400; letter-spacing: -.015em; color: var(--ink);

}

.p-where { margin: 0; font-size: 15.5px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }



/* ── Map ───────────────────────────────────────────────────

   A real map, replacing the contour motif that stood in for one. "Also

   nearby" is a list of names until you can see that two of them share a

   street and the rest are a drive away. */



.p-map { margin: 0 0 26px; }

.p-map #place-map {

  height: 260px; border: 2px solid var(--ink); border-radius: var(--r);

  overflow: hidden; background: var(--land);

}

.p-map figcaption {

  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;

  margin-top: 8px; font-size: 12px; color: var(--ink-3);

}

.p-map figcaption span { letter-spacing: .07em; font-variant-numeric: tabular-nums; }

.p-map figcaption a { color: var(--orange); font-weight: 600; text-decoration: none; font-size: 13px; }

.p-map figcaption a:hover { text-decoration: underline; }



.pm-pin {

  width: 13px; height: 13px; border-radius: 50%;

  border: 2px solid var(--sheet); box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: pointer;

}

.pm-pin.pm-here {

  width: 22px; height: 22px; border-width: 3px;

  box-shadow: 0 0 0 4px rgba(232,89,12,.22), 0 2px 7px rgba(0,0,0,.4);

}

.pm-pop { display: block; text-decoration: none; color: var(--ink); min-width: 140px; }

.pm-pop b { display: block; font-size: 13.5px; line-height: 1.3; }

.pm-pop span { font-size: 11.5px; color: var(--ink-3); }

.maplibregl-popup-content { border-radius: var(--r-sm); padding: 9px 12px; }



/* ── Something that has already happened ──────────────────── */



.p-expired {

  margin: 0 0 24px; padding: 15px 18px; border-radius: var(--r-sm);

  background: var(--wash-2); border-left: 4px solid var(--ink-3);

  font-size: 15px; line-height: 1.55; color: var(--ink-2);

}

.p-expired b { color: var(--ink); }



.p-note { margin: -6px 0 14px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }



.p-past summary {

  cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .08em;

  text-transform: uppercase; color: var(--ink-3); list-style: none;

}

.p-past summary::-webkit-details-marker { display: none; }

.p-past summary::before { content: "▸  "; display: inline-block; transition: transform .15s; }

.p-past details[open] summary::before { content: "▾  "; }

.p-past details[open] summary { margin-bottom: 14px; }

.p-past { background: var(--wash); }



/* ── The admission ─────────────────────────────────────────── */



.honest {

  margin: 0 0 22px; padding: 13px 15px; font-size: 14px; line-height: 1.55;

  background: var(--contour-soft); border-left: 3px solid var(--contour);

  border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2);

}

.honest b { color: var(--ink); }



.p-blurb {

  margin: 0 0 26px; font-size: 16.5px; line-height: 1.62; color: var(--ink-2);

}



/* ── Blocks ────────────────────────────────────────────────── */



.p-block {

  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r);

  padding: 20px 22px; margin-bottom: 18px;

}

.p-block h2 {

  margin: 0 0 15px; font-size: 12px; font-weight: 700; letter-spacing: .08em;

  text-transform: uppercase; color: var(--ink-3);

}



.p-kv { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 1px 20px; margin: 0; }

.p-kv dt {

  font-size: 13.5px; color: var(--ink-3); padding: 8px 0;

  border-top: 1px solid var(--rule-soft);

}

.p-kv dd {

  margin: 0; font-size: 14.5px; color: var(--ink); padding: 8px 0;

  border-top: 1px solid var(--rule-soft);

}

.p-kv dt:first-of-type, .p-kv dd:first-of-type { border-top: 0; }

.p-kv dd.unknown { color: var(--ink-3); font-style: italic; }



.verify {

  display: inline-flex; align-items: center; gap: 6px;

  font-size: 12px; font-weight: 700; border-radius: 5px; padding: 3px 9px;

}

.verify::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.verify.ok { background: var(--green-soft); color: var(--green-ink); }

.verify.stale { background: var(--orange-soft); color: var(--orange); }

.verify.none { background: var(--wash-2); color: var(--ink-3); }



/* ── What else is here, and what is nearby ─────────────────── */



.p-kids, .p-near { list-style: none; margin: 0; padding: 0; }



.p-kids li {

  padding: 9px 0; border-top: 1px solid var(--rule-soft); font-size: 14.5px;

}

.p-kids li:first-child { border-top: 0; }

.p-kids a { color: var(--ink); text-decoration: none; font-weight: 600; }

.p-kids a:hover { color: var(--orange); }

.p-kids i { font-style: normal; color: var(--ink-2); font-size: 13.5px; }

.p-kids span { color: var(--ink-3); font-size: 13px; }



.p-near { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 9px; }

.p-near a {

  display: flex; flex-direction: column; gap: 3px; height: 100%;

  padding: 11px 13px; border: 1px solid var(--rule); border-radius: var(--r-sm);

  text-decoration: none; color: var(--ink); background: var(--wash);

}

.p-near a:hover { border-color: var(--orange); }

.p-near b { font-size: 14px; font-weight: 600; line-height: 1.35; }

.p-near span { font-size: 12.5px; color: var(--ink-3); }



/* ── Provenance ────────────────────────────────────────────── */



.p-src p { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }

.p-lic {

  margin: 14px 0 0 !important; padding-top: 12px; border-top: 1px solid var(--rule);

  font-size: 10.5px !important; line-height: 1.55; color: var(--ink-3) !important;

}

.p-lic a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.p-takedown { font-size: 13px !important; }



.p-more { margin: 26px 0 0; text-align: center; font-size: 14px; font-weight: 600; }

.p-more a { text-decoration: none; }

.p-more a:hover { text-decoration: underline; }



/* ── Small screens ─────────────────────────────────────────── */



@media (max-width: 620px) {

  .page { padding: 24px 16px 56px; }

  .page h1 { font-size: 27px; }

  .p-map #place-map { height: 210px; }

  .p-block { padding: 16px 15px; }

  .p-kv { grid-template-columns: 1fr; gap: 0; }

  .p-kv dt { padding-bottom: 0; border-top: 1px solid var(--rule-soft); }

  .p-kv dd { padding-top: 2px; border-top: 0; }

  .p-kv dd:first-of-type { border-top: 0; }

}



@media print {

  .nav, .p-more, .p-takedown, .p-map { display: none; }

  body.place { background: #fff; }

  .p-block { break-inside: avoid; border-color: #ccc; }

}



/* ── The index of everything ───────────────────────────────── */



.wide-page { max-width: 1040px; }

.wide-page .p-where { display: block; }



.p-block h2 em {

  font-style: normal; font-weight: 700; color: var(--ink-3);

  background: var(--wash-2); border-radius: 4px; padding: 1px 7px; margin-left: 5px;

}



.p-all {

  list-style: none; margin: 0; padding: 0;

  columns: 3; column-gap: 26px;

}

.p-all li {

  break-inside: avoid; display: flex; justify-content: space-between;

  gap: 12px; padding: 4px 0; font-size: 14px;

}

.p-all a { color: var(--ink); text-decoration: none; }

.p-all a:hover { color: var(--orange); text-decoration: underline; }

.p-all span { color: var(--ink-3); font-size: 12px; flex: none; }



@media (max-width: 860px) { .p-all { columns: 2; } }

@media (max-width: 560px) { .p-all { columns: 1; } }


/* ── A date we hold that has gone by ───────────────────────
   Deliberately not "this has finished". The corpus was read once, and a
   what's-on page lists the next date rather than the only one, so the strong
   claim was wrong far more often than it was right. */
.p-stale {
  margin: 0 0 24px; padding: 15px 18px; border-radius: var(--r-sm);
  background: var(--contour-soft); border-left: 4px solid var(--contour);
  font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
}
.p-stale b { color: var(--ink); }

/* ── Amend or remove ───────────────────────────────────────
   The one page on the site a person arrives at annoyed, so it is plain,
   short, and shows them the message before it is sent. */
.amend { display: grid; gap: 18px; max-width: 560px; margin: 0 0 30px; }
.amend label { display: grid; gap: 6px; }
.amend label > span { font-size: 14px; font-weight: 600; color: var(--ink); }
.amend input, .amend select, .amend textarea {
  font: inherit; font-size: 15px; padding: 10px 13px; color: var(--ink);
  background: var(--sheet); border: 1.5px solid var(--rule); border-radius: var(--r-sm);
}
.amend input:focus, .amend select:focus, .amend textarea:focus {
  outline: none; border-color: var(--orange);
}
.amend textarea { resize: vertical; line-height: 1.5; }
.amend small { font-size: 12px; color: var(--ink-3); word-break: break-all; }
.amend-go {
  justify-self: start; background: var(--orange); color: var(--p-white); font-weight: 700;
  font-size: 15px; padding: 11px 26px; border-radius: var(--r-sm); border: 0;
}
.amend-go:hover { filter: brightness(1.07); }
.amend-note { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-3); max-width: 52ch; }
.amend-p { margin: 0 0 11px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* A map you have clicked takes the scroll wheel; one you have not, does not. */
.pm-live { box-shadow: 0 0 0 2px var(--orange); }


/* ── The About page ────────────────────────────────────────

   Long-form reading, so it keeps to one column at a comfortable measure
   and borrows nothing from the card chrome. The FAQ is plain headings and
   paragraphs rather than collapsible panels: a question somebody typed
   into a search engine should be answerable without a click, and the
   structured data is generated from these very answers. */

.a-sec { max-width: 62ch; margin: 34px 0 0; }

.a-sec h2 {

  font-family: var(--display); font-weight: 400; font-size: 27px;

  line-height: 1.05; letter-spacing: -.012em; margin: 0 0 12px;

}

.a-sec h3 {

  font-size: 18px; font-weight: 700; margin: 26px 0 6px; line-height: 1.3;

}

.a-sec p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.62; }

.a-lede { font-size: 18.5px; line-height: 1.58; }

.a-figs { list-style: none; margin: 0 0 16px; padding: 0; }

.a-figs li {

  display: flex; gap: 12px; align-items: baseline;

  padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 16px;

}

.a-figs b {

  font-family: var(--display); font-weight: 400; font-size: 21px;

  min-width: 3.4em; text-align: right; letter-spacing: -.01em;

}

.a-faq { max-width: 66ch; border-top: 2px solid var(--ink); padding-top: 22px; }
