:root {
  --navy: #12304f;
  --navy-dark: #0b2038;
  --blue: #006aa7;      /* Swedish flag blue */
  --yellow: #fecc02;    /* Swedish flag yellow */
  --ink: #1d2b3a;
  --muted: #667689;
  --line: #dde4ec;
  --paper: #f5f7fa;
  --card: #fff;
  --radius: 8px;
  /* fonts of the three kinds of titles, used by the rules below the body rule */
  --font-page-title: 'Oswald', sans-serif;
  --font-hero-title: 'Oswald', sans-serif;
  --font-title: 'Oswald', sans-serif;
  --font-video-title: 'Lato', sans-serif;
  --shadow: 0 1px 3px rgba(11, 32, 56, 0.15), 0 4px 12px rgba(11, 32, 56, 0.08);
  --heading: var(--navy);   /* headings and other dark-blue text */
  --link: var(--blue);
  --tag-fg: #5c4700;        /* the yellow "Guide" tag */
  --tag-bg: #fff3b8;
  color-scheme: light;
}

/* Dark theme: the default; site.js sets data-theme on <html> (dark, or the visitor's choice with the
   toggle in the menu). The system-preference block is only a fallback for when scripts don't run.
   The two blocks below must hold the same values. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e4ebf3;
    --muted: #9aabbd;
    --line: #2b3f55;
    --paper: #0c1724;
    --card: #15263a;
    --navy-dark: #060f1a;
    --heading: #dbe8f5;
    --link: #6cc0f5;
    --tag-fg: #fff3b8;
    --tag-bg: #4a3b00;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ink: #e4ebf3;
  --muted: #9aabbd;
  --line: #2b3f55;
  --paper: #0c1724;
  --card: #15263a;
  --navy-dark: #060f1a;
  --heading: #dbe8f5;
  --link: #6cc0f5;
  --tag-fg: #fff3b8;
  --tag-bg: #4a3b00;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Lato', sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

/* Titles: three placeholder rules, one per kind of title, to try other fonts. Change the variables
   in :root, or edit the rules (add the font to the Google Fonts link in site.js). */

/* page title: the heading of a page (topic, manage, article) */
h1 {
  font-family: var(--font-page-title);
}

/* hero title: the big heading of the start page's hero (beats the page title by specificity) */
.hero h1 {
  font-family: var(--font-hero-title);
}

/* title: all other headings, section and card titles */
h2,
h3,
h4,
#menu .brand,
.topic-tile strong,
.guide-card strong,
.map-teaser strong,
#map-popup strong,
#map-tree .tree-title,
#sidebar,
.hub summary {
  font-family: var(--font-title);
}
.video-title,
.home-video span {
  font-family: var(--font-video-title);
}

/* long video titles are cut off with an ellipsis after two lines (the full title is the link's tooltip).
   A .video-title has padding, which would show the third line, so its text is in an inner span. */
.video-title > span,
.home-video span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

a {
  color: var(--link);
}

/* ---- Top menu ---- */

#menu {
  position: relative;
  z-index: 2000; /* above the map and its controls */
  display: flex;
  flex: none; /* the body is a column flex box: don't let the menu shrink below its wrapped height */
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.25rem;
  padding: 0 1.25rem;
  background: var(--navy);
  border-bottom: 3px solid var(--yellow);
  font-family: var(--font-hero-title), sans-serif;
  /* site.js fills the menu once the page is parsed; this keeps the content from jumping down then */
  min-height: calc(3.2rem + 3px);
}

#menu .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: 1.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

#menu .logo {
  display: block;
  width: auto;
  height: 2.75rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

#menu a {
  display: flex;
  align-items: center;
  padding: 0.85rem 0.9rem;
  color: #c4d4e8;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color 0.15s, background 0.15s;
}

#menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

#menu a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--blue);
  background: rgba(255, 255, 255, 0.06);
}

/* dropdowns (Destinations, Guides): open on hover or focus on a mouse, on click otherwise (site.js) */

#menu .dropdown {
  position: relative;
  display: flex;
}

#menu .dropdown > button,
#menu .theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem;
  font: inherit;
  color: #c4d4e8;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

#menu .dropdown > button::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.2rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#menu .dropdown > button:hover,
#menu .dropdown.open > button,
#menu .theme-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

#menu .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 2000;
  display: none;
  min-width: 15rem;
  max-width: calc(100vw - 1rem);
  padding: 0.4rem 0;
  background: var(--navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

#menu .dropdown.open > .dropdown-menu {
  display: block;
}

@media (hover: hover) {
  #menu .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

#menu .dropdown-menu a {
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.5rem 1rem;
  border: 0;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
}

#menu .dropdown-menu small {
  color: #7f95ad;
  white-space: nowrap;
}

#menu .dropdown-menu .note {
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #7f95ad;
}

#menu .menu-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

#menu .theme-toggle {
  padding: 0.4rem 0.6rem;
  margin: 0;
  font-size: 1.1rem;
  border: 0;
  border-radius: 999px;
}

#menu a.subscribe {
  padding: 0.4rem 1rem;
  margin: 0;
  font-weight: 700;
  color: var(--navy-dark);
  background: var(--yellow);
  border: 0;
  border-radius: 999px;
}

#menu a.subscribe:hover {
  color: var(--navy-dark);
  background: #ffd93d;
}

@media (max-width: 700px) {
  #menu .dropdown {
    position: static;
  }

  #menu .dropdown-menu {
    left: 0;
    right: 0;
    max-width: none;
  }

  /* the panel spans the screen: keep the video count next to the name instead of at the far edge */
  #menu .dropdown-menu a {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  /* compact two-row bar: logo, Subscribe and theme toggle on the first row, the page links on the second */
  #menu {
    padding: 0 0.75rem;
    gap: 0 0.1rem;
  }

  #menu::after {
    content: "";
    order: 3;
    flex-basis: 100%;
  }

  #menu .brand {
    width: auto;
    margin: 0 0.5rem 0 0;
    padding: 0.4rem 0;
    font-size: 1rem;
  }

  #menu .logo {
    height: 2.25rem;
  }

  #menu .menu-end {
    display: contents;
  }

  #menu a.subscribe {
    order: 1;
    align-self: center;
    margin-left: auto;
    padding: 0.25rem 0.8rem;
    font-size: 0.9rem;
  }

  #menu .theme-toggle {
    order: 2;
    align-self: center;
    margin-left: 0.3rem;
    padding: 0.2rem 0.5rem;
  }

  #menu > a:not(.brand),
  #menu .dropdown {
    order: 4;
  }

  #menu > a:not(.brand),
  #menu .dropdown > button {
    padding: 0.4rem 0.6rem;
    font-size: 0.95rem;
    border-bottom-width: 2px;
    margin-bottom: 0;
  }

  #menu .brand + a {
    margin-left: -0.6rem;
  }
}

/* ---- Page layout ---- */

main {
  flex: 1;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

main.wide {
  max-width: none;
  padding: 0;
}

/* full-bleed pages (the map) fill the window, so no footer there */
main.wide ~ footer {
  display: none;
}

footer {
  color: #9fb2c8;
  background: var(--navy-dark);
  border-top: 3px solid var(--yellow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 1.5rem;
}

footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

footer .footer-brand .logo {
  display: block;
  width: auto;
  height: 2.75rem;
}

footer p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

footer h2 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

footer li {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

footer a {
  color: #c4d4e8;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 0.75rem;
    padding-top: 1.5rem;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---- Home page ---- */

main.home {
  max-width: 64rem;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 3; /* the search results hang out of the hero, over the page below */
  margin: -1.5rem -1.25rem 1.5rem;
  padding: 3rem 1.25rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 106, 167, 0.92), rgba(18, 48, 79, 0.96));
  border-bottom: 4px solid var(--yellow);
}

.hero.has-images {
  min-height: clamp(19rem, 44vh, 26rem);
  padding: 2.25rem 1.25rem 3.5rem;
  background: var(--navy-dark);
}

/* rotating background photos (HERO_IMAGES, built by tools/build_images.py) */
.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slides {
  overflow: hidden;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
}

/* the outgoing slide (.leaving) keeps its zoom until its fade-out ends, so it doesn't snap back */
.hero-slide.active img,
.hero-slide.leaving img {
  animation: hero-zoom 12s ease-out forwards;
}

@keyframes hero-zoom {
  to { transform: scale(1.08); }
}

/* darkens the photo for the text: a little at the top, a lot at the bottom, and a blue tint overall */
.hero.has-images::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(11, 32, 56, 0.45), rgba(11, 32, 56, 0.2) 40%, rgba(11, 32, 56, 0.75)),
    rgba(0, 106, 167, 0.18);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero p {
  margin: 0 auto 1.1rem;
  max-width: 36rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #eef4fb;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* the two buttons under the intro text, and the guide chips below them */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.hero-actions .button {
  padding: 0.75rem 1.8rem;
  font-size: 1.05rem;
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-guides span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.chips a {
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: background 0.15s;
}

.chips a:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* slide dots along the bottom edge */
.hero-footer {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0.9rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-dots {
  display: flex;
  flex: none;
  gap: 0.15rem;
}

/* a 24px touch target around a small dot */
.hero-dots button {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.hero-dots button::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
}

.hero-dots button.active::before {
  background: var(--yellow);
  transform: scale(1.3);
}

@media (max-width: 700px) {
  .hero {
    margin: -1.5rem -1.25rem 1.5rem;
    padding: 2rem 1rem;
  }

  .hero.has-images {
    min-height: 18rem;
    padding: 1.5rem 1rem 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.active img,
  .hero-slide.leaving img {
    animation: none;
  }
}

.home-section {
  margin-bottom: 2rem;
}

.home-section h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--heading);
}

.home-section h2 small,
.section-note {
  margin: 0;
  font: 400 0.85rem 'Lato', sans-serif;
  color: var(--muted);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 0.6rem;
}

.topic-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 5.5rem;
  padding: 0.8rem 0.9rem;
  color: var(--tile-fg);
  text-decoration: none;
  background: var(--tile-bg);
  border-radius: 12px;
  transition: transform 0.12s, box-shadow 0.12s;
}

.topic-tile:hover {
  transform: translateY(-2px) rotate(-0.5deg);
  box-shadow: var(--shadow);
}

.topic-tile.featured {
  grid-column: span 2;
  font-size: 1.15rem;
}

.topic-tile small {
  font-size: 0.8rem;
  opacity: 0.8;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: 12px;
  transition: box-shadow 0.12s;
}

.guide-card:hover {
  box-shadow: var(--shadow);
}

.guide-card .tag {
  padding: 0.05rem 0.55rem;
  font-size: 0.7rem;
  color: var(--tag-fg);
  background: var(--tag-bg);
  border-radius: 999px;
}

.guide-card small {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
}

.video-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem;
}

.home-video {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.85rem;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.home-video img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.home-video span {
  display: block;
  padding: 0.45rem 0.55rem;
}

.home-video:hover {
  box-shadow: var(--shadow);
}

.map-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem 1.75rem;
  color: #fff;
  background:
    radial-gradient(circle at 85% 50%, rgba(0, 106, 167, 0.55), transparent 60%),
    var(--navy);
  border-radius: 16px;
}

.map-teaser-text {
  flex: 1;
  min-width: 0;
}

.map-teaser .chips {
  justify-content: flex-start;
  margin-bottom: 1rem;
}

/* Sweden's outline with a pin per place: a chip lights up its pin (see mapTeaser in home.js) */
.sweden-map {
  flex: none;
  width: auto;
  height: 16rem;
  overflow: visible;
}

.sweden-map .lands path {
  fill: rgba(255, 255, 255, 0.13);
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.sweden-map .pin {
  cursor: pointer;
}

.sweden-map .dot {
  fill: var(--yellow);
  stroke: var(--navy);
  stroke-width: 2;
}

.sweden-map .halo {
  fill: var(--yellow);
  opacity: 0.25;
  transform-box: fill-box;
  transform-origin: center;
  animation: pin-pulse 2.8s ease-out infinite;
}

.sweden-map .pin:hover .halo,
.sweden-map .pin.hover .halo {
  opacity: 0.6;
  animation: none;
  transform: scale(1.4);
}

@keyframes pin-pulse {
  0% { transform: scale(0.5); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sweden-map .halo { animation: none; }
}

.map-teaser strong {
  font-size: 1.1rem;
  font-weight: 700;
}

.map-teaser p {
  margin: 0.2rem 0 0.7rem;
  color: #cde6f7;
}

@media (max-width: 40rem) {
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .map-teaser {
    padding: 1.1rem;
    gap: 1rem;
  }
  .sweden-map {
    height: 11rem;
  }
}

.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  font-weight: 700;
  color: var(--navy-dark);
  text-decoration: none;
  background: var(--yellow);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform 0.1s, background 0.15s;
}

.button:hover {
  background: #ffd93d;
  transform: translateY(-1px);
}

/* ---- Articles ---- */

.posts {
  padding-left: 1.25rem;
}

.posts li {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.article {
  max-width: 44rem;
  line-height: 1.65;
}

.article h2 {
  margin-top: 2rem;
}

.article table {
  border-collapse: collapse;
  margin: 1rem 0;
}

.article th,
.article td {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  text-align: left;
}

.article blockquote {
  margin: 1rem 0;
  padding: 0.1rem 1rem;
  border-left: 4px solid var(--yellow);
  background: var(--card);
}

#menu a.brand {
  padding-left: 0;
}

#menu a.brand:hover {
  background: none;
}

/* ---- Guides (generated by tools/build_articles.py; guide.js adds the progress bar and the active heading) ---- */

#progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  width: 0;
  height: 4px;
  background: var(--yellow);
}

.guide-hero {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--navy) 70%);
  border-bottom: 3px solid var(--yellow);
}

.guide-hero-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}

.guide-hero .back {
  font-size: 0.9rem;
  color: #cde6f7;
  text-decoration: none;
}

.guide-hero .back:hover {
  color: #fff;
  text-decoration: underline;
}

.guide-hero h1 {
  max-width: 44rem;
  margin: 1.25rem 0 0;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
}

.guide-hero .subtitle {
  max-width: 40rem;
  margin: 0.7rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 300;
  line-height: 1.4;
  color: #cde6f7;
}

main.guide-page {
  max-width: 64rem;
}

.guide-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 1rem;
  font-size: 0.9rem;
}

.guide-toc h2 {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.guide-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}

.guide-toc a {
  display: block;
  padding: 0.3rem 0 0.3rem 0.8rem;
  margin-left: -2px;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
}

.guide-toc a:hover {
  color: var(--heading);
}

.guide-toc a.active {
  font-weight: 700;
  color: var(--heading);
  border-left-color: var(--yellow);
}

.guide-page .article {
  max-width: 42rem;
  font-size: 1.08rem;
  line-height: 1.7;
}

.guide-page .article > p:first-child {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--heading);
}

.guide-page .article h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--yellow);
}

.guide-page .article h2,
.guide-page .article h3 {
  scroll-margin-top: 1rem;
}

.callout {
  display: flex;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  line-height: 1.6;
  background: rgba(0, 106, 167, 0.1);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
}

.callout p {
  margin: 0 0 0.6rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout-icon {
  font-size: 1.3rem;
  line-height: 1.4;
}

.callout.tip {
  background: rgba(46, 160, 90, 0.12);
  border-left-color: #2ea05a;
}

.callout.warn {
  background: rgba(214, 69, 65, 0.12);
  border-left-color: #d64541;
}

.table-wrap {
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-page .article table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
}

.guide-page .article th,
.guide-page .article td {
  padding: 0.6rem 0.9rem;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.guide-page .article th {
  color: #fff;
  background: var(--navy);
  white-space: nowrap;
}

.guide-page .article tbody tr:nth-child(even) {
  background: rgba(0, 106, 167, 0.06);
}

.guide-page .article tbody tr:last-child td {
  border-bottom: 0;
}

.guide-videos {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-page .article .guide-videos h2 {
  margin-top: 0;
  border-bottom: 0;
}

.video-cards {
  display: grid;
  gap: 0.6rem;
}

.video-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.15s, transform 0.1s;
}

.video-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.video-card .play {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 0.8rem;
  color: #fff;
  background: #d64541;
  border-radius: 50%;
}

.video-card-title {
  flex: 1;
  font-family: var(--font-video-title);
  font-weight: 700;
}

.video-card small {
  color: var(--muted);
}

@media (max-width: 800px) {
  .guide-hero-inner {
    padding-top: 1.75rem;
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .guide-toc {
    position: static;
    padding: 0.9rem 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
}

/* ---- Static pages generated by tools/build_pages.py (destinations, topics) and the static start page ---- */
html.js .static-content {
  display: none; /* only for crawlers and visitors without scripts; app.js replaces it anyway */
}

.static-content {
  max-width: 64rem;
  margin: 0 auto;
}

main.static-page {
  max-width: 64rem;
}

.guide-hero .crumbs {
  font-size: 0.9rem;
  color: #cde6f7;
}

.guide-hero .crumbs a {
  color: #cde6f7;
  text-decoration: none;
}

.guide-hero .crumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.static-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.5rem;
}

.place-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.place-list li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.place-list a {
  text-decoration: none;
}

.place-list small {
  color: var(--muted);
}

.home-video .video-blurb {
  display: block;
  padding: 0 0.55rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}
