/* ------------------------------------------------------------
   rayappley – main stylesheet
   Layout concept: a trail notebook. Big display headlines, photos
   edge to edge, and every guide carries a facts card with real
   numbers (km, days, metres) set in a mono face.
   Palette: "Autumn Harvest" – navy, slate, sage, wheat and orange.
   ------------------------------------------------------------ */

:root {
  --bg: #f4ebd3;          /* wheat, lightened: page background */
  --paper: #faf5e7;       /* cards, facts panel */
  --ink: #222c38;         /* navy: text */
  --ink-soft: #55606a;    /* slate grey: secondary text */
  --band: #222c38;        /* navy: maps band */
  --on-band: #f1e6c8;
  --footer: #222c38;      /* navy: footer */
  --on-footer: #f1e6c8;
  --feature: #55606a;     /* slate: about band on home */
  --on-feature: #f1e6c8;
  --highlight: #b7b091;   /* sage: offline map box */
  --on-highlight: #222c38;
  --sky: #e4d7ae;         /* wheat: badges */
  --accent: #e59964;      /* orange: dots, markers, route stops, buttons (fills only) */
  --on-accent: #222c38;
  --pin: #9c4c1c;         /* darker orange: links and accent text */
  --line: rgba(34, 44, 56, 0.16);

  /* Type. Swap the display face here when you pick a final font. */
  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.9rem, 2.4vw + 1.2rem, 2.75rem);
  --step-4: clamp(2.5rem, 5.2vw + 1rem, 5rem);

  --measure: 66ch;
  --wrap: 1160px;
  --wrap-wide: 1440px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #222c38;
    --paper: #2b3844;
    --ink: #f1e6c8;
    --ink-soft: #b7b091;
    --band: #edd59a;
    --on-band: #222c38;
    --footer: #1a222c;
    --on-footer: #f1e6c8;
    --feature: #3a4857;
    --on-feature: #f1e6c8;
    --highlight: #3a4857;
    --on-highlight: #f1e6c8;
    --sky: #3d4a57;
    --accent: #e59964;
    --on-accent: #222c38;
    --pin: #e59964;
    --line: rgba(241, 230, 200, 0.16);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #222c38;
  --paper: #2b3844;
  --ink: #f1e6c8;
  --ink-soft: #b7b091;
  --band: #edd59a;
  --on-band: #222c38;
  --footer: #1a222c;
  --on-footer: #f1e6c8;
  --feature: #3a4857;
  --on-feature: #f1e6c8;
  --highlight: #3a4857;
  --on-highlight: #f1e6c8;
  --sky: #3d4a57;
  --accent: #e59964;
  --on-accent: #222c38;
  --pin: #e59964;
  --line: rgba(241, 230, 200, 0.16);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--pin); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.wrap-wide {
  width: 100%;
  max-width: var(--wrap-wide);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 20; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 40ch; color: var(--ink); }
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: -0.01em;
}
.button {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 999px;
}
.button:hover { background: var(--accent); color: var(--on-accent); }
.text-link { color: var(--pin); font-weight: 700; text-underline-offset: 3px; }
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--sky);
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 3px;
}

/* chips: jump links and the in-page navigation */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-block;
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip:hover { border-color: var(--pin); color: var(--pin); }
.chip .mono { color: var(--ink-soft); margin-left: 4px; }

/* ---------- header & footer ---------- */
.site-header { padding-block: 20px; }
.header-inner { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.site-nav { display: flex; gap: 20px; align-items: center; }
.site-nav a { text-decoration: none; font-weight: 500; padding-block: 4px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.site-footer { margin-top: var(--footer-gap, 96px); background: var(--footer); color: var(--on-footer); }
.footer-main { padding-block: 64px 56px; }
.footer-main-inner { display: grid; justify-items: center; gap: 32px; text-align: center; }
.footer-nav { display: grid; gap: 14px; }
.footer-nav a { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; color: inherit; }
.footer-nav a:hover { color: var(--accent); }
.footer-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--on-footer); color: var(--footer); }
.social-icon svg { width: 22px; height: 22px; }
.social-icon:hover { background: var(--accent); color: var(--on-accent); }
.footer-bottom { border-top: 1px solid rgba(241, 230, 200, 0.3); padding-block: 18px; font-size: var(--step--1); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 40px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- home ---------- */
.home-hero { padding-block: 32px 0; }
.home-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-4);
  line-height: 0.95;
  letter-spacing: -0.025em;
  max-width: 13ch;
}
/* full-bleed photo hero; more images in .home-hero-slides can become a carousel later */
.home-hero--image { position: relative; isolation: isolate; overflow: hidden; padding: 0; display: grid; align-items: end; min-height: clamp(480px, 74vh, 800px); color: #f1e6c8; }
.home-hero-slides { position: absolute; inset: 0; z-index: -1; }
.home-hero-slides img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.home-hero-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17, 23, 30, 0.82) 0%, rgba(17, 23, 30, 0.5) 50%, rgba(17, 23, 30, 0) 85%); }
.home-hero-content { display: grid; gap: 20px; padding-block: 72px 56px; min-width: 0; }
.home-hero-content > * { text-shadow: 0 1px 12px rgba(17, 23, 30, 0.45); }
.home-hero--image .eyebrow { color: inherit; opacity: 0.95; }
.home-hero--image .lede { color: inherit; max-width: 46ch; }
@media (min-width: 900px) { .home-hero-content { padding-block: 96px 80px; } }
.jump-label { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 8px; }

.home-guides { padding-block: 88px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.section-note { color: var(--ink-soft); }

.continent { padding-top: 40px; scroll-margin-top: 24px; }
.continent-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
  border-top: 2px solid var(--ink);
  padding-top: 12px;
  margin-bottom: 24px;
}
.continent-title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1.1; }
.continent-meta { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-soft); }

/* guide cards */
.card-grid { display: grid; gap: 36px 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.guide-card-link { display: grid; gap: 14px; text-decoration: none; height: 100%; align-content: start; }
.guide-card-media { position: relative; overflow: hidden; border-radius: var(--radius); }
.guide-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.6s ease; }
.guide-card-link:hover .guide-card-media img { transform: scale(1.03); }
.guide-card-media .badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--bg); }
.guide-card-body { display: grid; gap: 8px; min-width: 0; }
.guide-card-title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1.05; letter-spacing: -0.01em; }
.guide-card-link:hover .guide-card-title { color: var(--pin); }
.guide-card-summary { color: var(--ink-soft); max-width: 52ch; }
.guide-card-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.guide-card-facts span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }

/* feature band (maps): navy in light mode, wheat in dark mode */
.band { margin-top: 88px; padding-block: 56px; }
.band-feature { background: var(--band); color: var(--on-band); }
.band-feature .button { background: var(--accent); color: var(--on-accent); }
.band-feature .button:hover { background: var(--on-band); color: var(--band); }
.band-feature .eyebrow { color: var(--on-band); opacity: 0.75; }
.band-inner { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .band-inner { grid-template-columns: 5fr 6fr; } }
.band-text { display: grid; gap: 16px; justify-items: start; max-width: 46ch; }
.band-figure { margin: 0; min-width: 0; }
.band-figure figcaption, .route-figure figcaption { font-family: var(--font-mono); font-size: 0.75rem; opacity: 0.7; margin-top: 8px; }

/* route drawing */
.route-map { width: 100%; height: auto; overflow: visible; }
.route-line { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.band-feature .route-line { stroke: var(--on-band); }
.band-feature .route-stop circle { fill: var(--band); }
.route-stop circle { fill: var(--paper); stroke: var(--accent); stroke-width: 3; }
.route-pass circle { fill: var(--accent); }
.route-stop text { font-family: var(--font-body); font-weight: 700; font-size: 16px; fill: currentColor; }
.route-km { font-family: var(--font-mono); font-weight: 400; fill: var(--pin); }
.band-feature .route-km { fill: currentColor; opacity: 0.75; }
@media (max-width: 600px) { .route-stop text { font-size: 21px; } .route-line { stroke-width: 5; } .route-water-label { font-size: 17px; } }
.route-figure { margin: 24px 0; padding: 20px; background: var(--paper); border-radius: var(--radius); }
.route-water { fill: var(--sky); }
.route-water-label { font-family: var(--font-mono); font-size: 12px; fill: var(--ink-soft); }
.route-boat { stroke-dasharray: 1 9; stroke-width: 4; }
.route-minor circle { fill: var(--ink); stroke: none; }
.route-minor text { font-weight: 400; }
/* Route map on a band background (W Trek, Svaneti style) */
.route-figure--band { background: var(--band); color: var(--on-band); }
.route-figure--band .route-line { stroke: var(--on-band); }
.route-figure--band .route-stop circle { fill: var(--band); }
.route-figure--band .route-pass circle { fill: var(--accent); }
.route-figure--band .route-minor circle { fill: var(--on-band); }
.route-figure--band .route-km { fill: currentColor; opacity: 0.75; }
.route-figure--band .route-water { fill: color-mix(in srgb, var(--on-band) 10%, var(--band)); }
.route-figure--band .route-water-label { fill: currentColor; opacity: 0.6; }
.figure-credit { display: block; font-size: 0.65rem; margin-top: 6px; }

/* about band */
.home-about { padding-block: 96px 0; }
.home-about:last-child { margin-bottom: calc(-1 * var(--footer-gap, 96px)); } /* band sits right on the footer */
.about-band { background: var(--feature); color: var(--on-feature); }
.about-band-inner { display: grid; gap: 28px; align-items: center; padding-block: 48px; }
.about-band-photo { min-width: 0; }
.about-band-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 28%; border-radius: var(--radius); }
.about-band-text { display: grid; gap: 16px; align-content: center; min-width: 0; max-width: 40rem; }
.about-band .section-title { color: inherit; }
@media (min-width: 860px) {
  .about-band-inner { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); padding-block: 72px; }
  .about-band-photo img { aspect-ratio: 4 / 5; max-height: 460px; }
}
.button--light { background: var(--on-feature); color: var(--feature); }
.button--light:hover { background: var(--accent); color: var(--on-accent); }
.about-inner { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 760px) { .about-inner { grid-template-columns: 2fr 3fr; gap: 48px; } .about-inner--text { grid-template-columns: minmax(0, 46rem); } }
.about-text { display: grid; gap: 14px; max-width: 52ch; min-width: 0; }

/* ---------- guide page ---------- */
.guide-head { padding-block: 32px 28px; display: grid; gap: 16px; }
.guide-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 3.6vw + 1rem, 3.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.byline { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-soft); }
.guide-hero { margin: 0 auto; }
.guide-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.guide-hero figcaption { font-size: var(--step--1); color: var(--ink-soft); margin-top: 8px; }
.draft-note { margin-top: 24px; padding: 12px 16px; border: 1px dashed var(--accent); border-radius: var(--radius); font-size: var(--step--1); }

.guide-body { display: grid; gap: 32px; margin-top: 40px; grid-template-columns: 1fr; }
.guide-main { min-width: 0; }
.facts { background: var(--paper); border-radius: var(--radius); padding: 22px; display: grid; gap: 18px; min-width: 0; align-self: start; }
.facts-title { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.facts-list { margin: 0; display: grid; gap: 0; }
.facts-list div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding-block: 9px; border-top: 1px solid var(--line); }
.facts-list div:first-child { border-top: 0; padding-top: 0; }
.facts-list dt { font-size: var(--step--1); color: var(--ink-soft); }
.facts-list dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 0; }
.map-box { background: var(--highlight); color: var(--on-highlight); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; justify-items: start; }
.map-box .eyebrow { color: var(--on-highlight); opacity: 0.75; }
.map-box-title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); line-height: 1.1; }
.map-box p { font-size: var(--step--1); }
.map-box-status { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }

/* in-page navigation ("On this page"), filled in by assets/js/site.js.
   Phone: sticky bar of chips. Desktop: sticky list in the right column. */
.page-nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-block: 10px;
  margin-bottom: 28px;
}
.page-nav-title { display: none; }
.page-nav-list {
  display: flex; gap: 8px; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.page-nav-list::-webkit-scrollbar { display: none; }
.page-nav a[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

@media (min-width: 960px) {
  .guide-body {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    row-gap: 28px;
  }
  .guide-main { display: contents; }
  .guide-body .prose { grid-column: 1; grid-row: 1 / span 2; }
  .facts { grid-column: 2; grid-row: 1; }
  .page-nav {
    grid-column: 2; grid-row: 2; align-self: start;
    top: 24px; margin: 0; padding: 0; border: 0; background: transparent;
  }
  .page-nav-title { display: block; font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 10px; }
  .page-nav-list { flex-direction: column; gap: 0; overflow: visible; border-left: 2px solid var(--line); }
  .page-nav .chip { display: block; white-space: normal; background: none; border: 0; border-radius: 0; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); }
  .page-nav .chip:hover { color: var(--pin); }
  .page-nav a[aria-current="true"] { background: none; color: var(--ink); border-left-color: var(--accent); font-weight: 700; }
}

/* long-form text */
.prose { max-width: var(--measure); min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1.1;
  margin-top: 2.2em;
  scroll-margin-top: 72px;
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--pin); text-underline-offset: 3px; }
.prose em { color: var(--ink-soft); }
.prose blockquote {
  margin-inline: 0;
  padding: 14px 18px;
  background: var(--paper);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose th { text-align: left; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.75rem; color: var(--ink-soft); }
.prose th, .prose td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose td { font-variant-numeric: tabular-nums; }
@media (max-width: 699px) {
  .prose table { display: block; overflow-x: auto; }
}
@media (min-width: 960px) { .prose h2 { scroll-margin-top: 24px; } }

.photo { margin: 2em 0; }
.photo img { width: 100%; border-radius: var(--radius); }
.photo figcaption { font-size: var(--step--1); color: var(--ink-soft); margin-top: 8px; }

.more-guides { margin-top: 96px; padding-top: 48px; border-top: 1px solid var(--line); }
.more-guides .section-title { margin-bottom: 28px; }

/* ---------- simple pages ---------- */
.page { padding-block: 32px 0; }
.page-head { display: grid; gap: 16px; margin-bottom: 40px; }
.page-title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); line-height: 0.95; letter-spacing: -0.02em; }
.about-page { display: flow-root; }
.about-page-photo { float: right; width: clamp(140px, 42%, 400px); margin: 4px 0 16px clamp(16px, 4vw, 64px); }
.about-page-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
}
.page-head .chips { margin-top: 4px; }

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

/* Text slots still to be written. Remove the "todo" class once the text is in. */
.todo { max-width: 34rem; text-transform: none; border: 1.5px dashed var(--accent); border-radius: var(--radius); padding: 12px 16px; font-family: var(--font-mono); font-size: var(--step--1); font-weight: 400; letter-spacing: 0; line-height: 1.5; }
span.todo { display: inline; padding: 1px 6px; }

/* ---------- about: get to know ---------- */
.get-to-know { margin-top: 72px; padding-block: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gtk-inner { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .gtk-inner { grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; } }
.gtk-head { display: grid; gap: 12px; align-content: start; }
.gtk-title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.02em; margin: 0; max-width: 10ch; }
.gtk-grid { list-style: none; counter-reset: gtk; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); grid-auto-rows: 1fr; }
.gtk-card { counter-increment: gtk; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; display: grid; gap: 6px; align-content: start; }
.gtk-card::before { content: counter(gtk, decimal-leading-zero); position: absolute; top: 16px; right: 18px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--pin); }
.gtk-label { margin: 0; padding-right: 32px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.gtk-answer { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); line-height: 1.3; }
.gtk-answer a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gtk-answer a:hover { color: var(--pin); }

/* guides list without continent groups */
.section-head + .card-grid { margin-top: 32px; }

/* footer sits at the bottom on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
#main { flex: 1 0 auto; }

.about-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* language switch */
.site-nav .lang-switch { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; text-decoration: none; }
.site-nav .lang-switch:hover { border-color: var(--accent); }
