* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #222;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Site header + hamburger menu styles live in css/site-header.css, shared
   across pages. */

/* Split layout */

#split-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

#content-pane {
  flex: 1 1 50%;
  min-width: 0;
  background: #fff;
  padding: 1.75rem 2.5rem;
  overflow-y: auto;
}

#content-pane h1 {
  margin: 0 0 0.4rem 0;
  font-size: 1.5rem;
  color: #0065bd;
}

#content-pane .lead {
  margin: 0 0 0.7rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.9rem 0;
  padding: 0.3rem 0.65rem;
  background: #eaf3fb;
  border: 1px solid #bcdcf5;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #004a8c;
}

.trust-badge-check {
  color: #1a7f37;
  font-weight: 700;
}

#content-pane p {
  margin: 0 0 0.6rem 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #444;
  max-width: 42em;
}

#content-pane p.hook {
  font-size: 0.88rem;
  color: #222;
}

.feature-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.1rem;
}

.feature-group h2 {
  margin: 0 0 0.5rem 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
}

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

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0 0 0.4rem 0;
  font-size: 0.82rem;
}

.feature-list--available li {
  color: #222;
}

.feature-list--available li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #0065bd;
  font-weight: 700;
}

.feature-list--soon li {
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #444;
  font-weight: 500;
}

.feature-icon {
  display: inline-flex;
  font-size: 0.95rem;
  line-height: 1;
}

/* Map pane */

#map-pane {
  flex: 1 1 50%;
  min-width: 0;
  position: relative;
  background: #dbeeff;
}

#scotland-map {
  width: 100%;
  height: 100%;
  display: block;
  background: #dbeeff;
}

.region-shape {
  stroke: #1a3a5c;
  stroke-width: 0.6;
  stroke-linejoin: round;
  cursor: pointer;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.region-shape:focus-visible {
  outline: none;
}

.region-shape.hovered {
  filter: brightness(1.25);
}

.region-labels text {
  font-size: 12px;
  font-weight: 600;
  fill: #fff;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.45);
  stroke-width: 3px;
  pointer-events: none;
}

#map-hint {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  margin: 0;
  background: #fff;
  border: 1px solid #bcdcf5;
  border-left: 4px solid #0065bd;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  color: #0065bd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

#map-hint strong {
  color: #0065bd;
}

/* Footer */

#site-footer {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  background: #1a1a1a;
  color: #bbb;
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
}

#site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
}

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

@media (max-width: 900px) {
  #split-layout {
    flex-direction: column;
  }

  body {
    height: auto;
    overflow-y: auto;
  }

  #content-pane {
    padding: 1.5rem;
    overflow-y: visible;
  }

  #content-pane h1 {
    font-size: 1.6rem;
  }

  .feature-groups {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  #map-pane {
    height: 70vh;
  }
}

@media (max-width: 600px) {
  #content-pane {
    padding: 1.25rem;
  }

  #content-pane h1 {
    font-size: 1.4rem;
  }

  #content-pane .lead {
    font-size: 1rem;
  }

  #content-pane p {
    font-size: 0.9rem;
  }

  .trust-badge {
    font-size: 0.76rem;
    padding: 0.3rem 0.6rem;
  }

  #map-pane {
    height: 60vh;
  }

  #map-hint {
    top: 10px;
    left: 10px;
    padding: 0.5rem 0.7rem;
    font-size: 0.78rem;
  }

  #site-footer {
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  .footer-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}
