/* Variant 3: Sadu weave and dunes.
   Black goat-hair tent (header), a woven Sadu band as the tent divider,
   dune sand below. Patterns are stepped like real warp-faced weaving. */
:root {
  --goat: #1f1814;      /* black goat hair, the tent cloth */
  --wool: #efe6d2;      /* natural undyed wool */
  --sand: #dcc59c;      /* dune sand, page */
  --sand-hi: #e6d3ae;
  --madder: #9b1c17;    /* madder red */
  --indigo: #26386a;
  --ochre: #c08a2e;
  --camel: #7a4a26;
  --ink: #2a1d15;
  --muted: #5e4a39;
  --cat: var(--madder);
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5' shape-rendering='crispEdges'%3E%3Crect x='0' y='4' width='8' height='1' fill='%23000'/%3E%3Crect x='1' y='3' width='6' height='1' fill='%23000'/%3E%3Crect x='2' y='2' width='4' height='1' fill='%23000'/%3E%3Crect x='3' y='1' width='2' height='1' fill='%23000'/%3E%3Crect x='0' y='0' width='8' height='1' fill='%23000'/%3E%3C/svg%3E");
  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Golos Text", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.5 var(--text);
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, rgb(122 74 38 / .045) 0 1px, transparent 1px 4px),
    var(--sand);
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
.site-head :focus-visible, .site-foot :focus-visible { outline-color: var(--ochre); }

/* ---------- Tent: header ---------- */
.site-head {
  background:
    repeating-linear-gradient(90deg, rgb(239 230 210 / .035) 0 1px, transparent 1px 3px),
    var(--goat);
  color: var(--wool);
  padding: 22px 16px 0;
}
.site-head::after {
  content: "";
  display: block;
  height: 57.5px;
  margin: 18px -16px 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='23' viewBox='0 0 16 23' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='16' height='2' fill='%231f1814'/%3E%3Crect x='0' y='2' width='16' height='1' fill='%23efe6d2'/%3E%3Crect x='0' y='3' width='16' height='5' fill='%239b1c17'/%3E%3Crect x='0' y='7' width='8' height='1' fill='%23efe6d2'/%3E%3Crect x='1' y='6' width='6' height='1' fill='%23efe6d2'/%3E%3Crect x='2' y='5' width='4' height='1' fill='%23efe6d2'/%3E%3Crect x='3' y='4' width='2' height='1' fill='%23efe6d2'/%3E%3Crect x='8' y='7' width='8' height='1' fill='%23efe6d2'/%3E%3Crect x='9' y='6' width='6' height='1' fill='%23efe6d2'/%3E%3Crect x='10' y='5' width='4' height='1' fill='%23efe6d2'/%3E%3Crect x='11' y='4' width='2' height='1' fill='%23efe6d2'/%3E%3Crect x='0' y='8' width='16' height='1' fill='%231f1814'/%3E%3Crect x='0' y='9' width='16' height='6' fill='%23efe6d2'/%3E%3Crect x='7' y='9' width='2' height='1' fill='%2326386a'/%3E%3Crect x='5' y='10' width='6' height='1' fill='%2326386a'/%3E%3Crect x='3' y='11' width='10' height='2' fill='%2326386a'/%3E%3Crect x='5' y='13' width='6' height='1' fill='%2326386a'/%3E%3Crect x='7' y='14' width='2' height='1' fill='%2326386a'/%3E%3Crect x='7' y='11' width='2' height='2' fill='%239b1c17'/%3E%3Crect x='0' y='11' width='1' height='2' fill='%231f1814'/%3E%3Crect x='15' y='11' width='1' height='2' fill='%231f1814'/%3E%3Crect x='0' y='15' width='16' height='1' fill='%231f1814'/%3E%3Crect x='0' y='16' width='16' height='4' fill='%23c08a2e'/%3E%3Crect x='0' y='16' width='16' height='1' fill='%231f1814'/%3E%3Crect x='5' y='17' width='6' height='1' fill='%231f1814'/%3E%3Crect x='6' y='18' width='4' height='1' fill='%231f1814'/%3E%3Crect x='7' y='19' width='2' height='1' fill='%231f1814'/%3E%3Crect x='13' y='17' width='3' height='1' fill='%231f1814'/%3E%3Crect x='0' y='17' width='3' height='1' fill='%231f1814'/%3E%3Crect x='14' y='18' width='2' height='1' fill='%231f1814'/%3E%3Crect x='0' y='18' width='2' height='1' fill='%231f1814'/%3E%3Crect x='15' y='19' width='1' height='1' fill='%231f1814'/%3E%3Crect x='0' y='19' width='1' height='1' fill='%231f1814'/%3E%3Crect x='0' y='20' width='16' height='1' fill='%23efe6d2'/%3E%3Crect x='0' y='21' width='16' height='2' fill='%231f1814'/%3E%3C/svg%3E") 0 0 / 40px 57.5px repeat-x;
}
.hero, .tabs { max-width: 720px; margin-inline: auto; }
.site-title {
  font: 800 30px/1.1 var(--display);
  letter-spacing: -.01em;
  margin: 0 0 12px;
  max-width: 12ch;
}
.site-sub { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: #d9ccb2; max-width: 36ch; }
#count { font-family: var(--display); font-weight: 800; color: var(--ochre); }

.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.tabs a {
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 2px 9px;
  color: #d9ccb2;
  border-top: 3px solid rgb(239 230 210 / .2);
}
.tabs a[aria-current] { color: var(--wool); border-top-color: var(--ochre); background: rgb(239 230 210 / .08); }

/* ---------- Main column ---------- */
main { max-width: 720px; margin: 0 auto; padding: 0 16px 40px; }
.loading, .error { padding: 24px 0; }

/* ---------- Category bar: sticky, hemmed with woven teeth ---------- */
.cats {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 -16px; padding: 10px 16px 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='6' viewBox='0 0 16 6' shape-rendering='crispEdges'%3E%3Crect width='16' height='6' fill='%23efe6d2'/%3E%3Crect x='0' y='0' width='16' height='1' fill='%231f1814'/%3E%3Crect x='0' y='1' width='16' height='1' fill='%239b1c17'/%3E%3Crect x='1' y='2' width='6' height='1' fill='%239b1c17'/%3E%3Crect x='2' y='3' width='4' height='1' fill='%239b1c17'/%3E%3Crect x='3' y='4' width='2' height='1' fill='%239b1c17'/%3E%3Crect x='9' y='2' width='6' height='1' fill='%239b1c17'/%3E%3Crect x='10' y='3' width='4' height='1' fill='%239b1c17'/%3E%3Crect x='11' y='4' width='2' height='1' fill='%239b1c17'/%3E%3Crect x='0' y='5' width='16' height='1' fill='%231f1814'/%3E%3C/svg%3E") 0 100% / 16px 6px repeat-x, var(--sand);
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  --c: var(--madder);
  flex: none;
  white-space: nowrap;
  text-decoration: none;
  font-size: 14px; font-weight: 600;
  padding: 7px 11px 6px;
  border-bottom: 4px solid var(--c);
  background: var(--sand-hi);
}
.cats a span { margin-right: 2px; }
.cats a[aria-current] { background: var(--c); color: var(--wool); }

/* Category colour code (dyes of the Sadu palette) */
.cats a[href$="/parks"]      { --c: #9b1c17; }
.cats a[href$="/landmarks"]  { --c: #1f1814; }
.cats a[href$="/museums"]    { --c: #26386a; }
.cats a[href$="/heritage"]   { --c: #7a4a26; }
.cats a[href$="/nature"]     { --c: #4d6230; }
.cats a[href$="/mountains"]  { --c: #4a4038; }
.cats a[href$="/desert"]     { --c: #a8741f; }
.cats a[href$="/sea"]        { --c: #2f5b86; }
.cats a[href$="/local"]      { --c: #b4471b; }
.cats a[href$="/adrenaline"] { --c: #6e1411; }
#app:has(a[href$="/landmarks"][aria-current])  { --cat: #1f1814; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5' shape-rendering='crispEdges'%3E%3Crect x='3' y='0' width='2' height='1' fill='%23000'/%3E%3Crect x='2' y='1' width='4' height='1' fill='%23000'/%3E%3Crect x='0' y='2' width='8' height='1' fill='%23000'/%3E%3Crect x='1' y='2' width='6' height='1' fill='%23000'/%3E%3Crect x='2' y='3' width='4' height='1' fill='%23000'/%3E%3Crect x='3' y='4' width='2' height='1' fill='%23000'/%3E%3C/svg%3E"); }
#app:has(a[href$="/museums"][aria-current])    { --cat: #26386a; }
#app:has(a[href$="/heritage"][aria-current])   { --cat: #7a4a26; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5' shape-rendering='crispEdges'%3E%3Crect x='3' y='0' width='2' height='1' fill='%23000'/%3E%3Crect x='2' y='1' width='4' height='1' fill='%23000'/%3E%3Crect x='0' y='2' width='8' height='1' fill='%23000'/%3E%3Crect x='1' y='2' width='6' height='1' fill='%23000'/%3E%3Crect x='2' y='3' width='4' height='1' fill='%23000'/%3E%3Crect x='3' y='4' width='2' height='1' fill='%23000'/%3E%3C/svg%3E"); }
#app:has(a[href$="/nature"][aria-current])     { --cat: #4d6230; }
#app:has(a[href$="/mountains"][aria-current])  { --cat: #4a4038; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5' shape-rendering='crispEdges'%3E%3Crect x='3' y='0' width='2' height='1' fill='%23000'/%3E%3Crect x='2' y='1' width='4' height='1' fill='%23000'/%3E%3Crect x='0' y='2' width='8' height='1' fill='%23000'/%3E%3Crect x='1' y='2' width='6' height='1' fill='%23000'/%3E%3Crect x='2' y='3' width='4' height='1' fill='%23000'/%3E%3Crect x='3' y='4' width='2' height='1' fill='%23000'/%3E%3C/svg%3E"); }
#app:has(a[href$="/desert"][aria-current])     { --cat: #a8741f; }
#app:has(a[href$="/sea"][aria-current])        { --cat: #2f5b86; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5' shape-rendering='crispEdges'%3E%3Crect x='3' y='0' width='2' height='1' fill='%23000'/%3E%3Crect x='2' y='1' width='4' height='1' fill='%23000'/%3E%3Crect x='0' y='2' width='8' height='1' fill='%23000'/%3E%3Crect x='1' y='2' width='6' height='1' fill='%23000'/%3E%3Crect x='2' y='3' width='4' height='1' fill='%23000'/%3E%3Crect x='3' y='4' width='2' height='1' fill='%23000'/%3E%3C/svg%3E"); }
#app:has(a[href$="/local"][aria-current])      { --cat: #b4471b; }
#app:has(a[href$="/adrenaline"][aria-current]) { --cat: #6e1411; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5' shape-rendering='crispEdges'%3E%3Crect x='3' y='0' width='2' height='1' fill='%23000'/%3E%3Crect x='2' y='1' width='4' height='1' fill='%23000'/%3E%3Crect x='0' y='2' width='8' height='1' fill='%23000'/%3E%3Crect x='1' y='2' width='6' height='1' fill='%23000'/%3E%3Crect x='2' y='3' width='4' height='1' fill='%23000'/%3E%3Crect x='3' y='4' width='2' height='1' fill='%23000'/%3E%3C/svg%3E"); }

/* ---------- View headings ---------- */
.view-title {
  font: 800 26px/1.15 var(--display);
  margin: 22px 0 14px;
  color: var(--ink);
}
.view-cat .view-title { color: var(--cat); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
.seg button {
  font: 600 14px/1 var(--text);
  color: var(--ink);
  background: var(--sand-hi);
  border: 0; border-bottom: 3px solid rgb(42 29 21 / .25);
  border-radius: 0;
  padding: 9px 11px 8px;
  cursor: pointer;
}
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] {
  background: var(--goat); color: var(--wool); border-bottom-color: var(--ochre);
}
.toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--madder); }
.sort { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.sort select {
  font: 600 14px var(--text); color: var(--ink);
  background: var(--sand-hi); border: 0; border-bottom: 3px solid rgb(42 29 21 / .25);
  border-radius: 0; padding: 6px 4px;
}
.count { font-size: 14px; color: var(--muted); margin: 10px 0 6px; }

/* ---------- Rows, separated by a woven band in the category dye ---------- */
.list { margin: 0; }
.item {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 10px;
  padding: 20px 0 16px;
  text-decoration: none;
  color: inherit;
}
.item::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: var(--cat);
  -webkit-mask: var(--motif) 0 0 / 16px 10px repeat-x;
  mask: var(--motif) 0 0 / 16px 10px repeat-x;
  opacity: .9;
}
.item-trip { grid-template-columns: 1fr; }
.item:hover .item-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.item-icon { font-size: 22px; line-height: 1.2; grid-row: span 2; }
.item-main { min-width: 0; }
.item-title { display: block; font-weight: 700; font-size: 18px; line-height: 1.25; }
.item-ru { display: block; font-size: 14px; color: var(--muted); }
.item-ru:empty { display: none; }
.item-verdict { display: block; font-size: 15px; margin-top: 4px; }
.item-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 13px; color: var(--muted); align-items: center; }
.item-trip .item-facts { grid-column: 1; }

.fact-format {
  --f: var(--madder);
  background: var(--f); color: var(--wool);
  font-weight: 600; padding: 2px 8px 3px;
}
.fact-format[data-format="evening"]  { --f: var(--indigo); }
.fact-format[data-format="half-day"] { --f: var(--ochre); color: var(--goat); }
.fact-format[data-format="day"]      { --f: var(--madder); }
.fact-format[data-format="overnight"]{ --f: var(--goat); }
.fact-format[data-format="2-nights"] { --f: var(--camel); }
.fact-hours, .fact-drive { color: var(--ink); }

.flag { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; padding: 1px 6px; }
.flag-closed { background: var(--goat); color: var(--wool); }
.flag-check { box-shadow: inset 3px 0 0 var(--ochre); padding-left: 9px; color: var(--camel); }
.is-closed .item-title, .is-closed .item-verdict, .is-closed .item-facts { opacity: .55; }

/* ---------- Place detail ---------- */
.crumb { margin: 22px 0 6px; font-size: 14px; }
.crumb a { text-decoration: none; font-weight: 600; color: var(--cat); border-bottom: 2px solid currentColor; }
.detail-title { font: 800 30px/1.1 var(--display); margin: 8px 0 6px; overflow-wrap: anywhere; }
.detail-ru { margin: 0; color: var(--muted); font-size: 15px; }
.detail-verdict {
  font-size: 19px; font-weight: 600; line-height: 1.35;
  margin: 16px 0 8px; padding: 18px 0 0; position: relative;
}
.detail-verdict::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: var(--cat);
  -webkit-mask: var(--motif) 0 0 / 16px 10px repeat-x;
  mask: var(--motif) 0 0 / 16px 10px repeat-x;
}
dl.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px;
  margin: 18px 0 20px;
}
dl.facts div { padding: 9px 0 10px; border-top: 2px solid var(--goat); }
dl.facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
dl.facts dt { font-size: 12.5px; color: var(--muted); }
dl.facts dd { margin: 1px 0 0; font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.map-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--madder); color: var(--wool);
  font-weight: 600; text-decoration: none;
  padding: 12px 18px 12px 14px;
  border-bottom: 4px solid var(--goat);
}
.map-link::before {
  content: ""; width: 12px; height: 12px; background: var(--wool);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Crect x='2' y='0' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='1' width='3' height='1' fill='%23000'/%3E%3Crect x='0' y='2' width='5' height='1' fill='%23000'/%3E%3Crect x='1' y='3' width='3' height='1' fill='%23000'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Crect x='2' y='0' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='1' width='3' height='1' fill='%23000'/%3E%3Crect x='0' y='2' width='5' height='1' fill='%23000'/%3E%3Crect x='1' y='3' width='3' height='1' fill='%23000'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Prose (markdown) ---------- */
.prose { max-width: 66ch; margin-top: 18px; }
.prose p, .prose li { font-size: 16px; line-height: 1.6; }
.prose h1 { font: 800 28px/1.12 var(--display); margin: 22px 0 12px; }
.prose h2 {
  font: 600 19px/1.25 var(--display);
  margin: 30px 0 10px; padding-top: 22px; position: relative;
}
.prose h2::before {
  content: ""; position: absolute; left: 0; top: 0; width: 96px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='23' viewBox='0 0 16 23' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='16' height='2' fill='%231f1814'/%3E%3Crect x='0' y='2' width='16' height='1' fill='%23efe6d2'/%3E%3Crect x='0' y='3' width='16' height='5' fill='%239b1c17'/%3E%3Crect x='0' y='7' width='8' height='1' fill='%23efe6d2'/%3E%3Crect x='1' y='6' width='6' height='1' fill='%23efe6d2'/%3E%3Crect x='2' y='5' width='4' height='1' fill='%23efe6d2'/%3E%3Crect x='3' y='4' width='2' height='1' fill='%23efe6d2'/%3E%3Crect x='8' y='7' width='8' height='1' fill='%23efe6d2'/%3E%3Crect x='9' y='6' width='6' height='1' fill='%23efe6d2'/%3E%3Crect x='10' y='5' width='4' height='1' fill='%23efe6d2'/%3E%3Crect x='11' y='4' width='2' height='1' fill='%23efe6d2'/%3E%3Crect x='0' y='8' width='16' height='1' fill='%231f1814'/%3E%3Crect x='0' y='9' width='16' height='6' fill='%23efe6d2'/%3E%3Crect x='7' y='9' width='2' height='1' fill='%2326386a'/%3E%3Crect x='5' y='10' width='6' height='1' fill='%2326386a'/%3E%3Crect x='3' y='11' width='10' height='2' fill='%2326386a'/%3E%3Crect x='5' y='13' width='6' height='1' fill='%2326386a'/%3E%3Crect x='7' y='14' width='2' height='1' fill='%2326386a'/%3E%3Crect x='7' y='11' width='2' height='2' fill='%239b1c17'/%3E%3Crect x='0' y='11' width='1' height='2' fill='%231f1814'/%3E%3Crect x='15' y='11' width='1' height='2' fill='%231f1814'/%3E%3Crect x='0' y='15' width='16' height='1' fill='%231f1814'/%3E%3Crect x='0' y='16' width='16' height='4' fill='%23c08a2e'/%3E%3Crect x='0' y='16' width='16' height='1' fill='%231f1814'/%3E%3Crect x='5' y='17' width='6' height='1' fill='%231f1814'/%3E%3Crect x='6' y='18' width='4' height='1' fill='%231f1814'/%3E%3Crect x='7' y='19' width='2' height='1' fill='%231f1814'/%3E%3Crect x='13' y='17' width='3' height='1' fill='%231f1814'/%3E%3Crect x='0' y='17' width='3' height='1' fill='%231f1814'/%3E%3Crect x='14' y='18' width='2' height='1' fill='%231f1814'/%3E%3Crect x='0' y='18' width='2' height='1' fill='%231f1814'/%3E%3Crect x='15' y='19' width='1' height='1' fill='%231f1814'/%3E%3Crect x='0' y='19' width='1' height='1' fill='%231f1814'/%3E%3Crect x='0' y='20' width='16' height='1' fill='%23efe6d2'/%3E%3Crect x='0' y='21' width='16' height='2' fill='%231f1814'/%3E%3C/svg%3E") 0 -4px / 32px 46px repeat-x;
}
.prose ul { padding-left: 20px; list-style: none; }
.prose ul li { position: relative; margin: 6px 0; }
.prose ul li::before {
  content: ""; position: absolute; left: -18px; top: .55em; width: 9px; height: 9px;
  background: var(--cat);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Crect x='2' y='0' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='1' width='3' height='1' fill='%23000'/%3E%3Crect x='0' y='2' width='5' height='1' fill='%23000'/%3E%3Crect x='1' y='3' width='3' height='1' fill='%23000'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Crect x='2' y='0' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='1' width='3' height='1' fill='%23000'/%3E%3Crect x='0' y='2' width='5' height='1' fill='%23000'/%3E%3Crect x='1' y='3' width='3' height='1' fill='%23000'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prose ol { padding-left: 24px; }
.prose ol li { margin: 6px 0; }
.prose ol li::marker { font-weight: 700; color: var(--cat); }
.prose a { color: var(--indigo); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.prose code { font: 500 .9em var(--text); background: var(--sand-hi); padding: 0 4px; }
.prose table {
  display: block; overflow-x: auto; max-width: 100%;
  border-collapse: collapse; font-size: 14px; line-height: 1.4;
  margin: 14px 0 20px;
}
.prose th { background: var(--goat); color: var(--wool); font-weight: 600; text-align: left; padding: 8px 10px; vertical-align: bottom; }
.prose td { padding: 9px 10px; border-bottom: 1px solid rgb(42 29 21 / .22); vertical-align: top; min-width: 7em; }
.prose td[style*="right"] { min-width: 0; }
.prose tbody tr:nth-child(even) td { background: rgb(239 230 210 / .45); }
.prose td a { font-weight: 600; }

.sources { margin-top: 30px; font-size: 13px; color: var(--muted); border-top: 2px solid var(--goat); padding-top: 10px; }
.sources ul { padding: 0; margin: 6px 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.sources a { color: var(--indigo); }

/* ---------- Short view (TLDR) ---------- */
.seg-tldr { margin-bottom: 8px; }
.tldr-group h3 { font: 800 22px/1.2 var(--display); margin: 22px 0 6px; }
.tldr-group h4 { font: 600 16px/1.3 var(--display); margin: 26px 0 8px; }
.trip-links, .guide-list { list-style: none; padding: 0; margin: 0; }
.trip-links li { border-top: 2px solid var(--goat); }
.trip-links a, .guide-list a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 11px 0; font-weight: 600; text-decoration: none;
}
.trip-links a::before, .guide-list a::before {
  content: ""; flex: none; width: 10px; height: 10px; background: var(--madder);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Crect x='2' y='0' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='1' width='3' height='1' fill='%23000'/%3E%3Crect x='0' y='2' width='5' height='1' fill='%23000'/%3E%3Crect x='1' y='3' width='3' height='1' fill='%23000'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Crect x='2' y='0' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='1' width='3' height='1' fill='%23000'/%3E%3Crect x='0' y='2' width='5' height='1' fill='%23000'/%3E%3Crect x='1' y='3' width='3' height='1' fill='%23000'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}
.guide-list li { position: relative; padding-top: 10px; }
.guide-list li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: var(--madder);
  -webkit-mask: var(--motif) 0 0 / 16px 10px repeat-x;
  mask: var(--motif) 0 0 / 16px 10px repeat-x;
}
.guide-list a { font-size: 18px; padding: 14px 0; }

/* ---------- Footer ---------- */
.site-foot {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='6' viewBox='0 0 16 6' shape-rendering='crispEdges'%3E%3Crect width='16' height='6' fill='%23efe6d2'/%3E%3Crect x='0' y='0' width='16' height='1' fill='%231f1814'/%3E%3Crect x='0' y='1' width='16' height='1' fill='%239b1c17'/%3E%3Crect x='1' y='2' width='6' height='1' fill='%239b1c17'/%3E%3Crect x='2' y='3' width='4' height='1' fill='%239b1c17'/%3E%3Crect x='3' y='4' width='2' height='1' fill='%239b1c17'/%3E%3Crect x='9' y='2' width='6' height='1' fill='%239b1c17'/%3E%3Crect x='10' y='3' width='4' height='1' fill='%239b1c17'/%3E%3Crect x='11' y='4' width='2' height='1' fill='%239b1c17'/%3E%3Crect x='0' y='5' width='16' height='1' fill='%231f1814'/%3E%3C/svg%3E") 0 0 / 16px 6px repeat-x, var(--goat);
  color: #cbbd9f; font-size: 13px;
  padding: 22px 16px 28px;
}
.site-foot p { max-width: 720px; margin: 0 auto; }

/* ---------- Wider screens ---------- */
@media (min-width: 700px) {
  .site-head { padding-top: 36px; }
  .site-title { font-size: 48px; max-width: 14ch; }
  .site-sub { font-size: 17px; max-width: 46ch; }
  .tabs { grid-template-columns: repeat(4, max-content); gap: 6px; }
  .tabs a { padding: 10px 18px 9px; }
  .site-head::after { height: 69px; background-size: 48px 69px; }
  .view-title { font-size: 34px; }
  .detail-title { font-size: 42px; }
  dl.facts { grid-template-columns: repeat(3, 1fr); }
  dl.facts div:last-child:nth-child(odd) { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
