/* Playita site — the app's paper/ink/amber palette (light default + dark
   toggle) with a menu-bar-styled nav. System type throughout; nothing
   external is loaded. */

/* ---------- Tokens ---------- */

:root {
  --bg: #F8F7F2;            /* Paper */
  --bg-soft: #EFEDE4;       /* PaperSoft */
  --ink: #1B1A15;           /* Ink */
  --sec: #4A4840;
  --mut: #878370;           /* InkMuted */
  --card: #FFFFFF;
  --line: rgba(27, 26, 21, 0.10);
  --navbg: rgba(248, 247, 242, 0.84);
  --accent: #DE9826;        /* amber, light */
  --accent-ink: #1B1A15;    /* text on amber */
  --kbd-bg: #FFFFFF;
  --kbd-line: rgba(27, 26, 21, 0.18);
  --kbd-ink: #3A3830;
  --shot-shadow: 0 0 0 1px rgba(27, 26, 21, 0.08), 0 24px 60px rgba(60, 50, 20, 0.20), 0 0 90px rgba(222, 152, 38, 0.12);
  --shot-shadow-hover: 0 0 0 1px rgba(27, 26, 21, 0.12), 0 24px 60px rgba(60, 50, 20, 0.20), 0 0 110px rgba(222, 152, 38, 0.22);
}

[data-theme="dark"] {
  --bg: #191813;
  --bg-soft: #24221B;
  --ink: #F1EFE6;
  --sec: #B5B1A3;
  --mut: #7F7A68;
  --card: #201F19;
  --line: rgba(255, 255, 255, 0.08);
  --navbg: rgba(25, 24, 19, 0.84);
  --accent: #FFB040;
  --accent-ink: #191813;
  --kbd-bg: #262520;
  --kbd-line: rgba(255, 255, 255, 0.14);
  --kbd-ink: #D2CEC0;
  --shot-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 90px rgba(255, 176, 64, 0.14);
  --shot-shadow-hover: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 110px rgba(255, 176, 64, 0.25);
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8em;
  background: var(--kbd-bg);
  border: 1px solid var(--kbd-line);
  border-bottom-width: 2.5px;
  color: var(--kbd-ink);
  border-radius: 6px;
  padding: 2px 7px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Menu bar nav ---------- */

.menubar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navbg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.menubar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  margin-right: 12px;
  white-space: nowrap;
}

.brand:hover { text-decoration: none; }

.brand img { border-radius: 5px; }

/* Pages as menu titles; the current page looks like an open menu. */
.menus {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menus a {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sec);
  transition: background 0.12s ease, color 0.12s ease;
}

.menus a:hover {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  color: var(--ink);
  text-decoration: none;
}

.menus a.open {
  background: var(--accent);
  color: var(--accent-ink);
}

.extras {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Inverted pill, distinct from the amber pill that marks the current page. */
.get-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--ink);
  padding: 5px 13px;
  border-radius: 14px;
  white-space: nowrap;
  transition: opacity 0.12s ease;
}

.get-link:hover { text-decoration: none; opacity: 0.85; }

/* Theme toggle, styled like a menu bar extra. */
.modebtn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--sec);
  padding: 0;
  transition: border-color 0.12s ease, color 0.12s ease;
}

.modebtn:hover { border-color: var(--accent); color: var(--ink); }

/* ---------- Page scaffold ---------- */

main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
}

.muted { color: var(--mut); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--mut);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner p { margin: 0; }

.footer-inner nav { display: flex; gap: 16px; }

.footer-inner a { color: var(--sec); }

/* ---------- App Store badge ---------- */

/* Apple's official badge artwork (assets/badge-appstore.svg) brings its own
   background and border, so the anchor only sizes and hover-lifts it. */
.badge-appstore {
  display: inline-block;
  transition: transform 0.12s ease;
}

.badge-appstore:hover { text-decoration: none; transform: translateY(-1px); }

.badge-appstore img { display: block; height: 48px; width: auto; }

.fineprint {
  font-size: 0.8125rem;
  color: var(--mut);
  margin: 10px 0 0;
}

/* ---------- Homepage ---------- */

.home { padding-top: 56px; }

.home section + section { margin-top: 88px; }

.home h2 {
  text-align: center;
  margin-bottom: 12px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero h1 { margin-bottom: 14px; }

.hero-sub {
  font-size: 1.1875rem;
  color: var(--sec);
  max-width: 34ch;
  margin-bottom: 28px;
}

/* The screenshot follows the site theme: light capture by day, dark on toggle. */
.hero-shot img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: var(--shot-shadow);
  transition: box-shadow 0.25s ease;
}

.hero-shot img:hover { box-shadow: var(--shot-shadow-hover); }

/* Scoped under .hero-shot so these outrank `.hero-shot img` above. */
.hero-shot .shot-dark { display: none; }

[data-theme="dark"] .hero-shot .shot-light { display: none; }

[data-theme="dark"] .hero-shot .shot-dark { display: block; }

/* Lead paragraphs under centered headings */

.home .lead {
  text-align: center;
  color: var(--sec);
  max-width: 58ch;
  margin: 0 auto 32px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.scenario h3 { margin-bottom: 6px; }

.scenario p { margin: 0; color: var(--sec); font-size: 0.9375rem; }

/* Feature grid */

.features h2 { margin-bottom: 32px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature { transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }

.feature:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: 0 5px 14px rgba(10, 20, 40, 0.10);
}

.feature .ico { font-size: 22px; display: block; margin-bottom: 10px; }

.feature h3 { font-size: 1rem; margin-bottom: 6px; }

.feature p { margin: 0; color: var(--sec); font-size: 0.875rem; }

/* Screenshot strip */

.closer-look h2 { margin-bottom: 32px; }

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.strip figure { margin: 0; }

.strip img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(20, 20, 40, 0.14);
}

.strip figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--mut);
  margin-top: 12px;
}

/* Paired captures swap with the theme, same as the hero. Scoped per container
   so they outrank the plain `.strip img` / `.guide-shot img` rules. Figures
   with a single unpaired image (no class) are untouched. */
.strip .shot-dark,
.guide-shot .shot-dark { display: none; }

[data-theme="dark"] .strip .shot-light,
[data-theme="dark"] .guide-shot .shot-light { display: none; }

[data-theme="dark"] .strip .shot-dark,
[data-theme="dark"] .guide-shot .shot-dark { display: block; }

/* Closing CTA */

.cta { text-align: center; }

.cta h2 { margin-bottom: 20px; }

/* ---------- Page headers (guide, faq, contact) ---------- */

.guide-intro { text-align: center; margin-bottom: 24px; padding-top: 12px; }

.guide-intro h1 {
  font-size: 3rem;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.guide-intro .lead { color: var(--sec); font-size: 1.0625rem; margin-bottom: 20px; }

/* Pill-style contents (used when there is no rail). */
.toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.toc a {
  padding: 5px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  color: var(--sec);
  font-size: 0.8125rem;
  transition: background 0.12s ease, color 0.12s ease;
}

.toc a:hover {
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
}

.guide section {
  margin-top: 56px;
  /* Anchor jumps land clear of the sticky menu bar. */
  scroll-margin-top: 64px;
}

.guide h2 { margin-bottom: 14px; }

.guide p, .guide li { color: var(--sec); }

.guide strong, .guide kbd { color: var(--ink); }

.guide .aside { font-size: 0.875rem; color: var(--mut); }

.steps { padding-left: 22px; margin: 0 0 1em; }

.steps li { margin-bottom: 6px; }

ul.plain { list-style: none; padding: 0; margin: 0 0 1em; }

ul.plain li { margin-bottom: 10px; }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

.guide-shot { margin: 0; }

.guide-shot img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(20, 20, 40, 0.14);
}

.guide-shot figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--mut);
  margin-top: 10px;
}

.shortcut-table { padding: 6px 20px; margin-bottom: 1em; }

.shortcut {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  padding: 11px 0;
  color: var(--sec);
}

.shortcut + .shortcut { border-top: 1px solid var(--line); }

.shortcut .keys { white-space: nowrap; }

.guide .cta { text-align: center; margin-top: 72px; }

/* ---------- FAQ ---------- */

.faq section { margin-top: 44px; }

.faq h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mut);
  margin-bottom: 4px;
}

.qa { padding: 16px 0; }

.qa + .qa { border-top: 1px solid var(--line); }

.qa h3 { margin-bottom: 6px; }

.qa p { margin: 0; color: var(--sec); }

.faq-more { text-align: center; color: var(--sec); }

/* ---------- Contact ---------- */

.contact { max-width: 620px; }

.contact-body p { color: var(--sec); }

.contact-card {
  text-align: center;
  padding: 28px 24px;
  margin: 24px 0;
}

.email-link {
  font-size: 1.25rem;
  font-weight: 600;
}

.contact-card .aside {
  font-size: 0.875rem;
  color: var(--mut);
  margin: 12px 0 0;
}

/* ---------- Legal pages ---------- */

.legal { max-width: 680px; }

.legal section { margin-top: 36px; }

.legal h2 { font-size: 1.25rem; margin-bottom: 8px; }

.legal p, .legal li { color: var(--sec); }

.legal ul { padding-left: 22px; margin: 0; }

.legal li { margin-bottom: 6px; }

.legal .shortversion { padding: 20px 24px; }

.legal .shortversion p { margin: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .split { grid-template-columns: 1fr; }
  .guide section { margin-top: 44px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .scenario-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .home section + section { margin-top: 64px; }
}

@media (max-width: 560px) {
  .menubar-inner { flex-wrap: wrap; height: auto; padding: 8px 12px; row-gap: 2px; }
  .get-link { display: none; }
  h1 { font-size: 2rem; }
  main { padding: 32px 16px 48px; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Eyebrow (the app's mono caption) ---------- */

.eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  margin: 0 0 8px;
}

/* ---------- Coming-soon pill (until the listing exists) ---------- */

.coming-soon {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--sec);
  font-weight: 600;
  margin: 0;
}

.get-link.soon { background: var(--bg-soft); color: var(--sec); cursor: default; }

/* ---------- Hero: tall panel beside the copy ---------- */

.hero { grid-template-columns: 1fr 340px; gap: 48px; }

.hero-shot img { max-width: 300px; border-radius: 16px; }

/* Widget states row under the hero. */

.widget-row {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: end;
}

.widget-row figure { margin: 0; text-align: center; }

.widget-row img {
  display: inline-block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(40, 30, 10, 0.14);
}

.widget-row .shot-dark { display: none; }

[data-theme="dark"] .widget-row .shot-light { display: none; }

[data-theme="dark"] .widget-row .shot-dark { display: inline-block; }

.widget-row figcaption { font-size: 0.8125rem; color: var(--mut); margin-top: 12px; }

/* ---------- Fit check ---------- */

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fit h3 { margin-bottom: 10px; }

.fit ul { margin: 0; padding-left: 20px; color: var(--sec); }

.fit li { margin-bottom: 8px; }

.fit.yes h3::before { content: "✓ "; color: var(--accent); }

.fit.no h3::before { content: "✗ "; color: var(--mut); }

/* ---------- Guide layout: sticky contents rail ---------- */

.guide-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 64px;
  font-size: 0.8125rem;
}

.rail ol { list-style: none; margin: 0; padding: 0; }

.rail li { margin: 0; }

.rail a {
  display: block;
  padding: 5px 10px;
  border-left: 2px solid transparent;
  color: var(--sec);
  border-radius: 0 6px 6px 0;
}

.rail a:hover { color: var(--ink); text-decoration: none; background: color-mix(in srgb, var(--ink) 5%, transparent); }

.rail a.current { border-left-color: var(--accent); color: var(--ink); font-weight: 600; }

/* Annotated panel map: numbered callouts positioned in percent over the
   capture, each linking to its section. */

.map { position: relative; margin: 0 auto; max-width: 300px; }

.map img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shot-shadow); }

.map .shot-dark { display: none; }

[data-theme="dark"] .map .shot-light { display: none; }

[data-theme="dark"] .map .shot-dark { display: block; }

.callout {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.8125rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease;
}

.callout:hover { transform: translate(-50%, -50%) scale(1.15); text-decoration: none; }

.numbered h2 .n {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.875rem;
  margin-right: 10px;
  vertical-align: 3px;
}

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .rail { position: static; }
  .rail ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .rail a { border-left: 0; border-radius: 14px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
  .rail a.current { background: var(--accent); color: var(--accent-ink); }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .widget-row { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
}

/* ---------- Homepage extras ---------- */

.pinned h2, .fit-check h2, .lighter h2 { text-align: center; }

.pinned .lead, .fit-check .lead {
  text-align: center;
  color: var(--sec);
  max-width: 58ch;
  margin: 0 auto;
}

.strip img { max-width: 300px; margin: 0 auto; }

/* The hero stage: a drawn macOS menu bar with the real panel screenshot
   hanging from the Playita glyph, so the panel reads at its true scale. */

.hero { grid-template-columns: 1fr 520px; }

.stage {
  --mbar-h: 26px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), color-mix(in srgb, var(--bg-soft) 70%, var(--bg)));
  padding: 0 0 28px;
}

.mbar {
  height: var(--mbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 14px;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--navbg);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  user-select: none;
}

.mbar-left { display: flex; gap: 14px; align-items: center; }


.mbar-right { display: flex; gap: 12px; align-items: center; }

.mbar-icon { color: var(--ink); display: block; }

.clock { font-variant-numeric: tabular-nums; }

/* The Playita status item, pressed (the panel is open). */
.mbar-item {
  position: relative;
  display: grid;
  place-items: center;
  height: 22px;
  padding: 0 6px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
}

.glyph {
  display: block;
  width: 21px;
  height: 19px;
  background: var(--ink);
  -webkit-mask: url("glyph.png") center / contain no-repeat;
  mask: url("glyph.png") center / contain no-repeat;
}

/* The playing dot under the glyph. */
.mbar-item .dot {
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: var(--ink);
}

.stage-panel {
  margin: 6px 0 0 auto;
  width: 300px;
  /* Lines the panel up under the glyph: right inset = clock + icons + gaps. */
  margin-right: 148px;
}

.stage-panel img {
  display: block;
  width: 300px;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shot-shadow);
}

.stage-panel .shot-dark { display: none; }

[data-theme="dark"] .stage-panel .shot-light { display: none; }

[data-theme="dark"] .stage-panel .shot-dark { display: block; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr 460px; }
  .stage-panel { margin-right: 120px; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .stage { max-width: 520px; margin: 0 auto; width: 100%; }
  .mbar-left span { display: none; }
  .stage-panel { margin-right: max(12px, calc(50% - 150px)); }
}

@media (max-width: 480px) {
  .stage-panel img { width: 260px; }
  .stage-panel { width: 260px; margin-right: max(12px, calc(50% - 130px)); }
}

/* ---------- App icon ---------- */

/* icon.png already carries the macOS tile and a transparent margin, so the
   shadow follows its alpha rather than the image box. */
.app-icon {
  display: block;
  width: 136px;
  height: 136px;
  margin: -12px 0 14px -12px;
  filter: drop-shadow(0 8px 18px rgba(40, 30, 10, 0.18));
}

.app-icon.small {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 6px 14px rgba(40, 30, 10, 0.16));
}

[data-theme="dark"] .app-icon { filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6)); }

/* Light and dark renderings of the icon swap with the theme. */
.app-icon.shot-dark { display: none; }

[data-theme="dark"] .app-icon.shot-light { display: none; }

[data-theme="dark"] .app-icon.shot-dark { display: block; }

@media (max-width: 760px) {
  .app-icon { margin: -8px auto 10px; width: 112px; height: 112px; }
}

/* ---------- Lighter than Music.app ---------- */

.lighter h2 { margin-bottom: 24px; }

.lighter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.lighter-card h3 { font-size: 1rem; margin-bottom: 6px; }

.lighter-card p { margin: 0; color: var(--sec); font-size: 0.9375rem; }

@media (max-width: 760px) {
  .lighter-grid { grid-template-columns: 1fr; }
}

/* ---------- Guide extras ---------- */

.guide .widget-row { margin-top: 28px; }

.guide-body > section:first-child { margin-top: 0; }

.shortcut-table { margin-top: 12px; }

.shortcut { grid-template-columns: 170px 1fr; }

/* Map + legend side by side: the key sits beside the picture. */

.map-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 8px;
}

.legend {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legend li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  color: var(--sec);
}

.legend li + li { border-top: 1px solid var(--line); }

.legend .n {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 700;
}

.legend a { color: var(--ink); }

.legend a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 700px) {
  .map-layout { grid-template-columns: 1fr; }
  .map { margin: 0 auto; }
}
