:root {
  /* A v2「夜色 + 日落粉路牌」，配色取自 GTA 6 官方页面实测（design-demos/gta6mapwiki.com/designer/direction-card.md v2 节） */
  --bg: #121327;
  --bg-deep: #0c0d1c;
  --card: #1b1c38;
  --text: #f3effa;
  --muted: #bdb6da;
  --primary: #ffb2c6;        /* 日落粉：路牌、主按钮 */
  --primary-dark: #f598b2;
  --on-primary: #121327;     /* 粉底上的文字 */
  --accent: #fbbaa0;         /* 桃色：链接 */
  --cream: #fff9cb;          /* 大标题 */
  --lime: #e6ffa3;           /* 焦点框、Found */
  --sea: #2f90b0;            /* 地图海面：与底图瓦片的海水同色，地图比瓦片宽时看不出接缝 */
  --line: #2c2b52;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --font-head: "Overpass", system-ui, sans-serif;
  --font-body: "Overpass", system-ui, sans-serif;
  /* layout (added with the A v2 redesign) */
  --head-h: 64px;            /* sticky header height; tools use it for their own sticky bars */
  --wrap-max: 1320px;
  --gutter: 24px;            /* side padding of every content column; the header uses the same .wrap, so they line up */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; font-variant-numeric: tabular-nums; }
a { color: var(--accent); }
a:hover { color: var(--cream); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 16px; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
h1, h2 { color: var(--cream); }
h1 { font-size: 40px; }
h2 { font-size: 28px; margin-top: 48px; }
h3 { font-size: 22px; margin-top: 32px; }
p { margin: 0 0 16px; text-wrap: pretty; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap-max); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }

/* ---------- road-sign pieces shared by every page ---------- */
/* .sign: a pink sign face with a dark inner rule; .plate: a small town-name sign. */
.sign { background: var(--primary); color: var(--on-primary); border-radius: var(--radius); box-shadow: inset 0 0 0 2px var(--on-primary), 0 0 0 2px var(--primary); }
.plate { display: inline-block; border: 2px solid var(--primary); color: var(--primary); border-radius: 7px; padding: 3px 10px 1px; font-weight: 800; white-space: nowrap; line-height: 1.4; }
.plate-solid { background: var(--primary); color: var(--on-primary); }

/* ---------- header: sticky, brand as a sign plate, Interactive Map dropdown, phone Menu ---------- */
.site-head { position: sticky; top: 0; z-index: 1000; background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; height: var(--head-h); }
.brand { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 20px; line-height: 1.3; white-space: nowrap; text-decoration: none; margin: 0;
  background: var(--primary); color: var(--on-primary); border-radius: 7px; padding: 5px 12px 3px; box-shadow: inset 0 0 0 2px var(--on-primary), 0 0 0 2px var(--primary); }
.brand:hover { color: var(--on-primary); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav-drop > a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 12px; border-radius: 6px; }
.nav > a:hover, .nav-drop > a:hover { background: var(--line); color: var(--text); }
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop > a { padding-right: 4px; }
.nav-drop-btn { background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; padding: 10px 8px; border-radius: 6px; line-height: 1; }
.nav-drop-btn:hover { background: var(--line); }
.nav-drop-btn svg { display: block; transition: transform .15s; }
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-drop-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 1000; min-width: 230px; padding: 6px;
  background: var(--primary); color: var(--on-primary); border-radius: var(--radius); box-shadow: inset 0 0 0 2px var(--on-primary), 0 14px 30px rgba(0,0,0,.45); }
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-drop-menu a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--on-primary); text-decoration: none; font-weight: 700; white-space: nowrap; }
.nav-drop-menu a:hover, .nav-drop-menu a:focus-visible { background: var(--primary-dark); color: var(--on-primary); }
.nav-drop.open .nav-drop-menu { display: block; }
@media (hover: hover) and (min-width: 901px) {
  .nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
}
.menu-toggle { display: none; }

/* ---------- page heads ---------- */
.tool-top { padding-top: 32px; padding-bottom: 16px; }
.lead { color: var(--muted); font-size: 18px; max-width: 70ch; }

/* ---------- reading pages (page, post, legal, 404, and the text below tools) ---------- */
.prose { padding-top: 40px; padding-bottom: 64px; }
.prose > * { max-width: 72ch; }
.prose > h1 { max-width: 24ch; }
.prose > h2 { margin-top: 48px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--primary); }
.prose ol > li::marker { font-weight: 800; }
.prose strong { color: var(--cream); }
.prose a { font-weight: 600; }
.prose code { background: var(--card); padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose blockquote { margin: 0 0 16px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { max-width: 100%; width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 24px; display: block; overflow-x: auto; }
.prose thead th { border-bottom: 2px solid var(--muted); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--cream); font-weight: 700; }
.prose img { border-radius: var(--radius); height: auto; }

/* lists of links (a list whose items are only links) read like a stack of destinations */
.prose > ul:not([class]):has(> li > a:only-child) { list-style: none; padding: 0; border-top: 2px solid var(--muted); }
.prose > ul:not([class]):has(> li > a:only-child) > li { position: relative; margin: 0; border-bottom: 1px solid var(--line); }
/* inline-block, not block: some items have text after the link ("[ATM locations](…)." or "… with every category.") that must stay on the same line */
.prose > ul:not([class]):has(> li > a:only-child) > li > a { display: inline-block; padding: 12px 0 10px; color: var(--text); text-decoration: none; font-size: 17px; font-weight: 700; }
.prose > ul:not([class]):has(> li > a:only-child) > li > a:hover { color: var(--primary); text-decoration: underline; }
.prose > ul:not([class]):has(> li > a:only-child) > li > a::after { content: ""; position: absolute; inset: 0; }   /* the whole row stays clickable */

/* ---------- FAQ ---------- */
.faq { max-width: 880px; }
.faq h2 { margin-bottom: 20px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq h2 + .faq-item, .faq-item:first-of-type { border-top: 2px solid var(--muted); }
.faq-item summary { cursor: pointer; list-style: none; position: relative; padding: 18px 40px 18px 0; font-size: 18px; font-weight: 700; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font-size: 26px; font-weight: 400; color: var(--primary); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 0 40px 20px 0; color: var(--muted); }

/* ---------- notes and warnings ---------- */
.spoiler-note { background: var(--card); border: 2px solid var(--primary); border-radius: var(--radius); padding: 12px 16px 10px; font-weight: 600; }
.callout { margin: 16px 0 0; padding: 14px 18px 12px; background: var(--card); border: 2px solid var(--lime); border-radius: var(--radius); max-width: 80ch; color: var(--text); }
.callout strong { display: block; color: var(--lime); font-size: 17px; margin-bottom: 4px; }
.callout ul { margin: 8px 0; padding-left: 20px; }
.callout li { margin: 4px 0; }
.callout li::marker { color: var(--lime); }
.callout a { font-weight: 700; }

/* ---------- related guides (post pages) ---------- */
.related { margin-top: 56px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.related a { display: block; padding: 12px 14px 10px; border: 2px solid var(--primary); border-radius: 8px; color: var(--primary); font-weight: 800; text-decoration: none; }
.related a:hover { background: var(--primary); color: var(--on-primary); }

/* ---------- map pages: one overhead gantry, one destination per map page ---------- */
.map-cards { list-style: none; margin: 24px 0 8px; padding: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px;
  background: var(--primary); border-radius: 14px; }
.prose > .map-cards { max-width: none; }
.prose .map-cards { padding: 8px; }
.map-cards li { margin: 0; display: flex; }
.prose .map-cards li::marker { content: none; }
.map-cards a { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 200px; padding: 18px 18px 16px;
  color: var(--on-primary); text-decoration: none; border: 2px solid var(--on-primary); border-radius: var(--radius); transition: background .15s; }
.map-cards a:hover { background: var(--primary-dark); color: var(--on-primary); }
.map-cards strong { font-size: 20px; line-height: 1.15; font-weight: 800; color: var(--on-primary); }
.map-cards .map-card-count { display: block; font-size: 60px; font-weight: 800; line-height: .9; letter-spacing: -0.02em; }
.map-cards .map-card-noun { display: block; font-size: 15px; font-weight: 700; margin-top: 6px; }

/* ---------- home sections below the map (markup lives with the map page; these are the shared looks) ---------- */
/* towns: <ul class="town-list"><li><span class="plate">Town</span> <span>line</span></li> */
.town-list { list-style: none; margin: 0 0 24px; padding: 0; border-top: 2px solid var(--muted); }
.prose .town-list, .prose .kind-grid, .prose .lost-links, .prose .related ul { padding: 0; }
.town-list > li { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.town-list > li::marker { content: none; }
.town-list .plate { justify-self: start; font-size: 18px; }
/* five kinds / entrance cards: <ul class="kind-grid"><li><img><strong>Name</strong> text</li> */
.kind-grid { list-style: none; margin: 24px 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 36px 32px; }
.prose > .kind-grid { max-width: none; }
.kind-grid > li { grid-column: span 2; margin: 0; border-top: 2px solid var(--muted); padding-top: 12px; }
.kind-grid > li.wide { grid-column: span 3; border-top: 0; padding-top: 0; }
.kind-grid > li::marker { content: none; }
.kind-grid img { display: block; width: 100%; aspect-ratio: 1280 / 612; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; border-bottom: 2px solid var(--muted); }
.kind-grid strong:first-of-type { display: block; font-size: 22px; line-height: 1.15; margin-bottom: 8px; color: var(--cream); }

/* ---------- footer ---------- */
.site-foot { margin-top: 104px; background: var(--bg-deep); border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid .brand { margin-bottom: 16px; }
.foot-grid p { color: var(--muted); max-width: 36ch; }
.foot-grid nav { display: grid; gap: 2px; align-content: start; }
.foot-grid nav a { color: var(--text); text-decoration: none; padding: 5px 0; }
.foot-grid nav a:hover { color: var(--primary); text-decoration: underline; }
.foot-grid .foot-title, .foot-title { font-weight: 800; font-size: 16px; color: var(--cream); margin: 0 0 6px; }
.credits { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.credits p { margin: 0; }
.credits a { color: var(--muted); }

/* ---------- 404 ---------- */
.lost-links { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lost-links a { display: inline-block; padding: 10px 14px 8px; border-radius: 8px; border: 2px solid var(--primary); color: var(--primary); font-weight: 800; text-decoration: none; }
.lost-links li:first-child a { background: var(--primary); color: var(--on-primary); }
.lost-links a:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--on-primary); }

/* ---------- phone ---------- */
@media (max-width: 900px) {
  :root { --head-h: 56px; }
  .brand { font-size: 17px; }
  .menu-toggle { display: inline-flex; margin-left: auto; align-items: center; background: none; border: 2px solid var(--muted); color: var(--text); border-radius: 7px;
    font: inherit; font-weight: 700; font-size: 15px; padding: 7px 12px 5px; min-height: 40px; cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--head-h); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--bg-deep); border-bottom: 1px solid var(--line); max-height: calc(100vh - var(--head-h)); overflow-y: auto; }
  .site-head.menu-open .nav { display: flex; }
  .nav > a, .nav-drop > a { padding: 13px 4px; font-size: 17px; }
  .nav-drop { flex-wrap: wrap; justify-content: space-between; }
  .nav-drop-btn { padding: 12px; }
  .nav-drop.open .nav-drop-menu { position: static; width: 100%; margin-bottom: 8px; }
  .map-cards, .prose .map-cards { grid-template-columns: 1fr; padding: 6px; gap: 6px; border-radius: 12px; }
  .map-cards a { min-height: 0; flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px 10px; }
  .map-cards strong { font-size: 17px; }
  .map-cards .map-card-count { font-size: 34px; text-align: right; }
  .map-cards .map-card-noun { font-size: 14px; margin-top: 2px; text-align: right; }
  .kind-grid { grid-template-columns: 1fr; gap: 28px; }
  .kind-grid > li, .kind-grid > li.wide { grid-column: auto; }
  .town-list > li { grid-template-columns: 1fr; gap: 8px; }
  .site-foot { margin-top: 72px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  :root { --gutter: 16px; }
  .brand { font-size: 17px; }
  .lead { font-size: 16px; }
  .prose { padding-top: 28px; }
  .prose table { font-size: 15px; }
  .faq-item summary { font-size: 17px; }
  .faq-item p { padding-right: 0; }
}
