:root {
  --abyss: #061a2b;
  --deep: #0a2a44;
  --sea: #0e4a6e;
  --teal: #12a4b8;
  --teal-ink: #0b7887;
  /* 4.6:1 on --sand */
  --glow: #5fe0e8;
  --sand: #f5f1ea;
  --paper: #ffffff;
  --ink: #12202c;
  --muted: #5a6b78;
  --line: #e2e6ea;
  --orange: #ba592d;
  /* white button text 4.6:1 (WCAG AA) */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(6, 26, 43, 0.06), 0 8px 24px rgba(6, 26, 43, 0.08);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
/* Training presentation: overrides the shared base.css; branding is supplied by theme.css. */
body {
  display: block;
  /* base: a flex column that keeps the footer at the bottom of short pages */
  min-height: 0;
}
.site-header {
  color: inherit;
}
.nav-row {
  gap: normal;
  padding: 0;
}
.brand {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.brand-mark {
  background: none;
}
.nav .btn {
  font-weight: 600;
  /* base's .nav a is 500 */;
}
.lede {
  opacity: 1;
}
.card {
  box-shadow: none;
}
.card h3 {
  font-size: 1.5rem;
}
.ticks li {
  margin: 0;
}
.contact-list li {
  padding: 0;
  border-top: 0;
}
.contact-list span {
  min-width: 0;
}
html {
  scroll-padding-top: 76px;
}
body {
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
}
[hidden] {
  display: none !important;
}
h1, h2, h3 {
  line-height: 1.05;
  letter-spacing: 0.01em;
}
h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-transform: uppercase;
}
h3 {
  font-size: 1.5rem;
}
.wrap {
  width: min(1160px, 100% - 32px);
}
.skip {
  top: 8px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}
/* Keyboard focus: the link color on the page (the light glow read 1.4:1 on white), the glow on
   the dark surfaces, 3:1 or more on each (WCAG 1.4.11) */
:focus-visible {
  outline: 3px solid var(--focus-ring, var(--teal-ink));
  outline-offset: 2px;
}
.site-header, .site-footer, .hero, .cta, .links-page {
  --focus-ring: var(--glow);
}
/* Buttons */
.btn {
  gap: 0.5em;
  padding: 0.8em 1.4em;
  transition:
  transform 0.15s,
  box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--orange) 35%, transparent);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.btn-sm {
  padding: 0.5em 1em;
  font-size: 0.9rem;
}
.btn-light {
  color: var(--deep);
}
/* Header */
.site-header {
  z-index: 50;
  background: color-mix(in srgb, var(--abyss) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-row {
  height: 64px;
}
.brand-mark {
  width: 58px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}
.brand-text {
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav {
  gap: 22px;
}
/* the header row may be wider than the page content: eight tabs, the logo and the call button */
.site-header .wrap {
  width: min(1320px, 100% - 32px);
}
.nav a {
  white-space: nowrap;
}
.site-header .brand {
  flex-shrink: 0;
}
.nav a:not(.btn) {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:not(.btn):hover, .nav a[aria-current] {
  color: #fff;
}
.nav-toggle {
  color: #fff; /* the header is always dark here, whatever --header-ink a palette sets (sky's is dark) */
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 8px;
}
/* Hero */
.hero {
  position: relative;
  padding: 88px 0 120px;
  overflow: hidden;
  background:
  radial-gradient(
  1000px 500px at 85% -10%,
  color-mix(in srgb, var(--glow) 22%, transparent),
  transparent 60%
  ),
  /* data/theme.json → heroShade sets both stops (the top one no darker than 55%, as by default) */
  linear-gradient(180deg, color-mix(in srgb, var(--abyss) min(55%, var(--hero-shade, 92%)), transparent), color-mix(in srgb, var(--abyss) var(--hero-shade, 92%), transparent)),
  var(--hero-image, none) center/cover,
  var(--abyss);
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  margin: 0 0 14px;
}
.hero .eyebrow {
  color: #fff; /* over a photo, as readable as the heading (the glow read under 3:1 over a light one) */
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  text-transform: uppercase;
}
.lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 56ch;
}
/* Sections */
.section {
  padding: 80px 0;
}
.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}
.section-head p {
  margin: 0;
}
/* Gear shop */
.shop-status {
  max-width: 760px;
  padding: 28px;
  border-left: 4px solid var(--teal);
  background: var(--paper);
}
/* the phone number in the custom-classes tile: readable on the dark tile, never split */
.prose h4 {
  margin: 1.2em 0 0.4em;
  font-size: 1.05rem;
}
.card {
  padding: 26px;
}
.card h3 {
  text-transform: uppercase;
}
.card p {
  margin: 0;
}
.ticks {
  margin: 0;
  display: grid;
  gap: 8px;
}
.ticks li {
  padding-left: 28px;
}
.ticks li::before {
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
}
.ticks li::before {
  background: color-mix(in srgb, var(--teal) 12%, white);
}
/* CTA */
.cta {
  background: linear-gradient(135deg, var(--abyss), var(--sea));
  padding: 80px 0;
}
.cta-grid {
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}
.cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 52ch;
}
.visit {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 26px;
}
.visit h3 {
  text-transform: uppercase;
}
.visit address {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.visit p {
  font-size: 0.92rem;
}
.contact-list {
  margin: 14px 0 16px;
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}
.contact-list li {
  justify-content: space-between;
  flex-wrap: wrap;
}
.contact-list span {
  color: rgba(255, 255, 255, 0.9); /* 4.5:1 or more on the call-to-action under every palette (0.6 read 3.3–4.3:1) */
}
.contact-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
}
/* Footer */
.site-footer {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}
.foot-row {
  gap: 20px;
}
.foot-row img {
  height: 56px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
}
/* Social links (data/business.json → business.social); empty ones aren't rendered */
.social a {
  color: rgba(255, 255, 255, 0.85);
}
.social a:hover {
  color: #fff;
}
/* Announcement bar (data/business.json → announcement.text) */
.foot-row a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
/* Content pages (how-we-train/, learn-to-scuba-dive/, blog posts; built by generate.mjs) */
.article {
  padding: 56px 0 72px;
  background: var(--paper);
}
.article-wrap {
  width: min(760px, 100% - 32px);
  display: grid;
  gap: 28px;
}
.article-head h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.article-head .eyebrow {
  margin-bottom: 10px;
}
.article .lede {
  color: var(--muted);
  font-size: 1.2rem;
  margin: 0;
}
.article-hero {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-hero img {
  width: 100%;
  height: auto;
}
.prose {
  font-size: 1.05rem;
  line-height: 1.75;
}
.prose:empty {
  display: none;
}
.prose > :first-child {
  margin-top: 0;
}
.prose p, .prose ul {
  margin: 0 0 1.1em;
}
.prose h2 {
  font-size: 1.6rem;
  margin: 1.6em 0 0.5em;
}
.prose ul {
  padding-left: 1.2em;
}
.prose li {
  margin-bottom: 0.35em;
}
.prose a {
  font-weight: 600;
}
.gallery {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--deep);
}
.gallery img {
  height: 100%;
  transition: transform 0.25s;
}
.gallery a:hover img {
  transform: scale(1.04);
}
.article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--sand);
}
.article-cta h2 {
  font-size: 1.6rem;
  margin: 0 0 4px;
}
.article-cta p {
  margin: 0;
  color: var(--muted);
}
.article-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* Responsive */
@media (max-width: 960px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
}
/* the Menu button until the full one-line menu fits (measured on the home page: logo 243px + menu 994px + gap = 1,257px, plus the 16px margins) */
@media (max-width: 1289px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--abyss);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav.open {
    display: flex;
  }
  .nav a:not(.btn) {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav a[aria-current] {
    box-shadow: none;
    color: var(--glow);
  }
  .nav .btn {
    margin-top: 12px;
    justify-content: center;
  }
  /* a long business name wraps beside the Menu button instead of pushing it off the screen
     ("Chattahoochee Underwater Explorers" made a 619px-wide page at 320–390px); a short one
     stays on its line, and the bar grows only for the second line */
  .nav-row {
    height: auto;
    min-height: 64px;
    gap: 12px;
  }
  .nav {
    top: 100%;
  }
  .site-header .brand {
    flex-shrink: 1;
    min-width: 0;
  }
  .brand-mark, .nav-toggle {
    flex-shrink: 0;
  }
  .brand-text {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 620px) {
  .hero {
    padding: 56px 0 96px;
  }
  .section {
    padding: 56px 0;
  }
  .brand-text {
    font-size: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Adventures (home page): the newest logbook posts ({{latestPosts|posts}}, cards from sbs-pkg's
   pages.css), three across on wide screens like the price tiers */
/* Adventures (home page): logbook posts as cards */
/* How we train (home page): text first, photo second */
/* Hero facts: a two-word label stays on one line */
