/* RFC 0001 demo. The look follows the canvas that accompanies the RFC: dark, calm, hairline rows,
   typographic hierarchy doing the work, accents only where data is live. Colours are the canvas
   tokens and nothing else; tints are rgba() over those tokens. Nothing is smaller than 12px. */

:root {
  --canvas: #0E1024;
  --tile: #181B3D;
  --line: #2A2E5C;
  --text: #ECEDFB;
  --dim: #9FA3C8;
  --pink: #FF6B8A;
  --pink-hover: #FF9FB4;
  --cyan: #5BD8E9;
  --attraction: #5BE9E2;
  --show: #C792EA;
  --dining: #FFB547;
  --hotel: #6DDC9A;
  --bar: #212121;
  --ok: #81C784;
  --down: #E57373;
  --warn: #FFB74D;
  --w0: #74EEE7;
  --w1: #74DD8A;
  --w2: #F2A833;
  --w3: #EE7544;
  --w4: #E5485E;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font: 15px/1.55 Helvetica, Arial, sans-serif;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--pink-hover); text-decoration: underline; }
a:focus-visible, select:focus-visible, pre:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px;
}
code { font-family: var(--mono); font-size: 13px; }
.quiet, .note, .hint { color: var(--dim); }
.empty { color: var(--dim); font-style: italic; }
.mono { font-family: var(--mono); }

/* ---------------------------------------------------------------- header */
header.site { background: var(--bar); border-bottom: 1px solid var(--line); }
header.site .bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; color: var(--text); }
.wordmark { font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.wordmark .wiki { color: var(--pink); }
.mark-bg { fill: var(--tile); }
.m1 { fill: var(--cyan); } .m2 { fill: var(--hotel); } .m3 { fill: var(--dining); } .m4 { fill: var(--pink); }
header.site nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
header.site nav a { color: var(--text); font-size: 14px; letter-spacing: 0.02em; padding: 10px 0; text-transform: uppercase; border-bottom: 2px solid transparent; }
header.site nav a:hover { color: var(--pink-hover); text-decoration: none; }
header.site nav a.on { border-bottom-color: var(--pink); }
.langchip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 12px;
  border: 1px solid var(--line); border-radius: 18px; color: var(--dim); position: relative;
}
.langchip .globe { width: 14px; height: 14px; border: 1.5px solid var(--dim); border-radius: 50%; position: relative; display: inline-block; }
.langchip .globe::after { content: ""; position: absolute; left: 50%; top: -1px; bottom: -1px; width: 5px; margin-left: -2.5px; border: 1.5px solid var(--dim); border-radius: 50%; }
.langchip select {
  appearance: none; -webkit-appearance: none; background: transparent; color: var(--text); border: 0;
  font: inherit; font-size: 14px; padding: 8px 14px 8px 2px; cursor: pointer;
}
.langchip select option { background: var(--tile); color: var(--text); }


/* ---------------------------------------------------------------- page */
main.wrap { padding-top: 24px; padding-bottom: 56px; outline: none; }
h1 { font-size: 40px; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; margin: 8px 0 4px; }
h2 { font-size: 20px; font-weight: 600; margin: 32px 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); letter-spacing: -0.01em; }
h2 .sub { font-size: 14px; font-weight: 400; color: var(--dim); margin-left: 8px; letter-spacing: 0; }
h2 .count, h3 .count { font-size: 12px; font-weight: 400; color: var(--dim); border: 1px solid var(--line); border-radius: 10px; padding: 1px 8px; margin-left: 6px; }
h3 { font-size: 15px; margin: 18px 0 6px; font-weight: 600; }
.lede { font-size: 17px; color: var(--dim); max-width: 760px; margin: 8px 0 24px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--text); }
.crumbs .here { color: var(--text); }
.crumbs .sep { color: var(--line); }
.traitline { color: var(--dim); font-size: 16px; margin: 0 0 12px; }
.desc { margin: 0 0 8px; max-width: 640px; }

.main { min-width: 0; max-width: 980px; margin: 0 auto; }
.tabs { display: flex; gap: 4px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.tabs a { color: var(--dim); font-size: 14px; padding: 10px 16px; border-bottom: 2px solid transparent; margin-bottom: -1px; min-height: 44px; display: inline-flex; align-items: center; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--text); border-bottom-color: var(--pink); }
.muted { color: var(--dim); font-size: 14px; margin: 12px 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.code h3 { margin: 0 0 8px; font-size: 14px; color: var(--dim); font-weight: 600; }
.code pre { margin: 0; background: var(--tile); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow: auto; max-height: 70vh; font: 12.5px/1.5 var(--mono); color: var(--text); white-space: pre; }
.caption { margin: 0 0 16px; color: var(--dim); font-size: 14px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* dots and families */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); margin-right: 8px; vertical-align: 1px; }
.f-attraction .dot, .dot.f-attraction { background: var(--attraction); }
.f-show .dot, .dot.f-show { background: var(--show); }
.f-dining .dot, .dot.f-dining { background: var(--dining); }
.f-place .dot, .dot.f-place { background: var(--dim); }
.f-company .dot, .dot.f-company { background: var(--pink-hover); }
.f-franchise .dot, .dot.f-franchise { background: var(--hotel); }

/* chips */
.traits { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 8px; }
.trait { display: inline-flex; align-items: center; height: 28px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: 14px; font-size: 13px; background: var(--tile); }
.trait .dot { margin-right: 8px; }
.hier { color: var(--dim); font-size: 13px; margin: 4px 0 12px; }
.hier .lab { text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px; margin-right: 6px; }
.pill { display: inline-block; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 12px; line-height: 20px; }
.arrow { margin: 0 6px; }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; color: var(--dim); white-space: nowrap; }
.chip.sample { border-style: dashed; }
.qual { display: inline-flex; align-items: center; height: 18px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; color: var(--dim); white-space: nowrap; }
.cite { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 12px; background: rgba(255, 255, 255, 0.16); color: var(--text); }
.cite::before { content: "["; } .cite::after { content: "]"; }
.samplechip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px dashed var(--dim); border-radius: 10px; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.04em; }
.pill-mini { display: inline-block; padding: 0 8px; border-radius: 9px; font-size: 12px; line-height: 18px; background: rgba(255, 255, 255, 0.08); color: var(--dim); }
.fb { display: inline-block; padding: 0 8px; border: 1px solid var(--warn); color: var(--warn); border-radius: 9px; font-size: 12px; line-height: 18px; margin-right: 6px; }
.ctx { display: inline-block; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; line-height: 18px; color: var(--dim); margin-left: 4px; white-space: nowrap; }
.dagger { color: var(--dim); margin-left: 4px; font-size: 13px; }

/* notes and callouts */
.hatnote, .fallback { font-size: 14px; color: var(--dim); margin: 8px 0; }
.note { font-size: 13px; margin: 8px 0; }
.note[data-sample] { font-style: italic; }

/* live block */
.live { margin: 16px 0 8px; }
.statusrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.pill-status { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 16px; font-weight: 600; font-size: 14px; background: rgba(255, 255, 255, 0.08); color: var(--dim); }
.pill-status .dot { background: currentColor; }
.st-operating { color: var(--ok); background: rgba(129, 199, 132, 0.14); }
.st-down { color: var(--down); background: rgba(229, 115, 115, 0.14); }
.st-refurbishment { color: var(--warn); background: rgba(255, 183, 77, 0.14); }
.asof { color: var(--dim); font-size: 13px; }
.queues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* photos and maps: pictures that are files in this folder, never fetched from elsewhere */
.hero { margin: 4px 0 16px; }
.hero img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 515; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--tile); }
.credit { margin-top: 8px; font-size: 12px; line-height: 20px; color: var(--dim); }
.credit a { color: var(--dim); text-decoration: none; word-break: normal; }
.credit a:hover { color: var(--text); text-decoration: underline; }
.map { margin: 10px 0 2px; max-width: 640px; }
.map img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--line); background: var(--tile); }
.map figcaption { margin-top: 6px; font-size: 12px; line-height: 20px; color: var(--dim); }
.map figcaption a { color: var(--dim); text-decoration: none; word-break: normal; }
.map figcaption a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 720px) { .queues { grid-template-columns: minmax(0, 1fr); } }
.qcard { background: var(--tile); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.qk { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); font-weight: 600; }
.qv { margin: 4px 0; }
.big { font-size: 34px; font-weight: 700; line-height: 1.1; }
.mid { font-size: 18px; font-weight: 600; line-height: 1.4; }
.unit { color: var(--dim); }
.qs { font-size: 13px; color: var(--dim); }
.w-0 .big { color: var(--w0); } .w-1 .big { color: var(--w1); } .w-2 .big { color: var(--w2); }
.w-3 .big { color: var(--w3); } .w-4 .big { color: var(--w4); } .w-none .big { color: var(--dim); }
.w-0 { background: rgba(116, 238, 231, 0.2); } .w-1 { background: rgba(116, 221, 138, 0.2); } .w-2 { background: rgba(242, 168, 51, 0.2); }
.w-3 { background: rgba(238, 117, 68, 0.2); } .w-4 { background: rgba(229, 72, 94, 0.2); }
.qcard.info { background: rgba(91, 216, 233, 0.2); } .qcard.info .mid { color: var(--cyan); }
.qcard.nodata { background: transparent; border: 1px dashed var(--dim); }
.qcard.nodata .mid { color: var(--dim); font-size: 16px; }

/* coverage */
.covlist { list-style: none; margin: 0; padding: 0; }
.cov { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) minmax(0, 1fr) 60px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cov .ck { font-weight: 600; }
.cov .cs { color: var(--dim); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.cov .cn { color: var(--dim); text-align: right; }
.cov .cn strong { color: var(--text); }
.cov .cites { text-align: right; }
.glyph { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--dim); flex: none; display: inline-block; }
.cov-available .glyph { background: var(--cyan); border-color: var(--cyan); }
.cov-unknown .glyph { border-style: dashed; }
.cov-inaccessible .glyph, .cov-not_published .glyph { background: transparent; }

/* names table */
table.langs { width: 100%; border-collapse: collapse; font-size: 14px; }
table.langs th, table.langs td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.langs thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dim); font-weight: 600; }
table.langs tbody th { font-weight: 600; white-space: nowrap; }
table.langs .code { color: var(--dim); font-weight: 400; font-size: 12px; margin-left: 4px; }
table.langs tr.sel { background: rgba(91, 216, 233, 0.08); }

/* facts */
.facts { }
.frow { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.flabel { color: var(--dim); font-weight: 600; }
.fv { margin: 2px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fv.ended .val, .fv.ended .ref { opacity: 0.75; }
.val { color: var(--text); }
.ref { display: inline-flex; align-items: center; }
.ext { word-break: break-all; }

/* history */
.tl-group { margin: 8px 0 12px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 14px; padding: 8px 0; position: relative; }
.tdot { width: 12px; height: 12px; border-radius: 50%; background: var(--dim); margin-top: 6px; position: relative; }
.tl.current .tdot { background: var(--ok); }
.tl.old .tdot { background: var(--warn); }
.tl.old .tv s { color: var(--dim); }
.tm { color: var(--dim); font-size: 13px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* lists */
.rows { list-style: none; padding: 0; margin: 0 0 12px; }
.rows li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.4fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.rows .where, .rows .when { color: var(--dim); font-size: 13px; }
.rows .when { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.sources { list-style: none; padding: 0; margin: 0; }
.sources li { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.stext { color: var(--text); }
.ev { display: block; color: var(--dim); font-size: 13px; }

/* home */
.claims { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.claim { background: var(--tile); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.claim .sec { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); }
.claim .q { font-size: 19px; font-weight: 600; margin: 0; line-height: 1.3; }
.claim .gap { margin: 0; color: var(--dim); font-size: 14px; flex: 1; }
.claim .gap strong { color: var(--text); font-weight: 600; }
.claim .cta { align-self: flex-start; margin-top: 8px; padding: 10px 14px; border: 1px solid var(--pink); border-radius: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; min-height: 44px; display: inline-flex; align-items: center; }
.claim .cta:hover { text-decoration: none; background: rgba(255, 107, 138, 0.1); }
.gaps ul { padding-left: 20px; color: var(--dim); }
.gaps li { margin: 8px 0; }
.gaps strong { color: var(--text); font-weight: 600; }

pre .k { color: var(--cyan); } pre .s { color: #A0EBC0; } pre .n { color: #FFD08A; } pre .l { color: var(--pink-hover); }
pre .kw { color: var(--pink-hover); } pre .c { color: var(--dim); }

footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--dim); font-size: 14px; }
footer.site p { margin: 6px auto; max-width: 760px; }
footer.site .copy { margin-top: 0; }
footer.site .wrap { text-align: center; }

/* phones */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 32px; }
  header.site .bar { padding-top: 8px; padding-bottom: 8px; }
  .frow { grid-template-columns: 1fr; gap: 4px; }
  .rows li { grid-template-columns: 1fr; gap: 4px; }
  .rows .when { justify-content: flex-start; }
  .cov { grid-template-columns: 1fr auto; }
  .cov .cn, .cov .cites { text-align: left; }
  .claims { grid-template-columns: 1fr; }
  header.site nav { gap: 0 18px; }
  header.site nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
  .langchip { height: 44px; margin-bottom: 6px; }
  .langchip select { min-height: 40px; }
  table.langs { font-size: 13px; }
}
