/* megalodon.life BETA — modern ocean salvage theme */
:root {
  --navy: #061428;
  --navy-2: #0a1f3a;
  --deep: #0d2748;
  --teal: #0d9488;
  --teal-light: #2dd4bf;
  --blue: #0050ff;
  --blue-glow: #3b7bff;
  --foam: #e8f4ff;
  --sand: #c9d6e5;
  --muted: #8fa4bc;
  --card: rgba(13, 39, 72, 0.72);
  --stroke: rgba(45, 212, 191, 0.22);
  --danger: #f87171;
  --gold: #fbbf24;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--foam);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(0, 80, 255, 0.28), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(13, 148, 136, 0.22), transparent 50%),
    linear-gradient(180deg, #04101f 0%, var(--navy) 40%, #071a2f 100%);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--blue); color: #fff; padding: .6rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* BETA ribbon */
.beta-banner {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(90deg, #7c2d12, #b45309 40%, #0050ff);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 0.55rem 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.beta-banner a { color: #fff; font-weight: 700; }
.beta-banner strong { letter-spacing: 0.08em; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Nav */
.site-header {
  position: sticky; top: 2.15rem; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 20, 40, 0.82);
  border-bottom: 1px solid var(--stroke);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.75rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: #fff;
}
.brand img {
  height: 42px; width: auto; max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,80,255,.35));
}
.brand-text { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-text span { display: block; font-size: 0.68rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--stroke);
  color: var(--foam); border-radius: 10px; padding: 0.45rem 0.7rem;
  cursor: pointer; font-size: 0.9rem;
}
.nav-links {
  display: flex; flex-wrap: wrap; gap: 0.15rem 0.15rem;
  list-style: none; margin: 0; padding: 0; align-items: center;
}
.nav-links a {
  display: inline-block;
  color: var(--sand);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 550;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  background: rgba(0, 80, 255, 0.22);
  color: #fff;
}
.nav-links a.ext {
  color: var(--teal-light);
  border: 1px solid transparent;
}
.nav-links a.ext:hover {
  border-color: var(--stroke);
}

/* Desktop: logo only (frees room in the nav); the text shows again in the phone layout */
@media (min-width: 901px) {
  .brand-text { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  .nav-links a { padding: 0.7rem 0.85rem; border-radius: 10px; }
}

/* Hero */
.hero {
  padding: 3.25rem 0 2.5rem;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal-light);
  margin-bottom: 0.85rem;
}
.eyebrow::before {
  content: ""; width: 1.5rem; height: 2px; background: var(--teal-light);
}
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; }
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  margin: 0 0 1rem;
  color: #fff;
  text-wrap: balance;
}
.hero-lead {
  font-size: 1.12rem;
  color: var(--sand);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), #1d6bff 55%, var(--teal));
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 80, 255, 0.35);
}
.btn-primary:hover { color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--stroke);
  color: var(--foam);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-gold {
  background: linear-gradient(135deg, #d97706, var(--gold));
  color: #1a1205;
}
.btn-gold:hover { color: #1a1205; }

.hero-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}
.hero-card h2 { margin: 0 0 0.75rem; font-size: 1.1rem; color: var(--teal-light); }
.mini-timeline { list-style: none; margin: 0; padding: 0; }
.mini-timeline li {
  display: grid; grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.92rem;
}
.mini-timeline li:last-child { border-bottom: 0; }
.mini-timeline time {
  color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums;
}

/* Sections */
section { padding: 2.75rem 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem;
}
.section-head h2 {
  margin: 0; font-size: clamp(1.55rem, 3vw, 2.1rem); color: #fff;
}
.section-head p { margin: 0; color: var(--muted); max-width: 36rem; }
.lead { font-size: 1.08rem; color: var(--sand); max-width: 46rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 800px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
}
.card h3 { margin: 0 0 0.55rem; font-size: 1.15rem; color: #fff; }
.card p { margin: 0; color: var(--sand); font-size: 0.96rem; }
.card .icon {
  width: 2.4rem; height: 2.4rem; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(0,80,255,.2); color: var(--teal-light);
  margin-bottom: 0.85rem; font-size: 1.15rem;
}

/* Collage */
.collage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 110px;
  gap: 0.55rem;
}
.collage a {
  display: block; overflow: hidden; border-radius: 12px;
  position: relative; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.collage a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.collage a:nth-child(5) { grid-column: span 2; grid-row: span 2; }
.collage a:nth-child(10) { grid-column: span 2; }
.collage a:nth-child(14) { grid-column: span 2; grid-row: span 2; }
.collage img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}
.collage a:hover img { transform: scale(1.06); filter: brightness(1.08); }
.collage a::after {
  content: attr(data-time);
  position: absolute; left: 0.45rem; bottom: 0.4rem;
  font-size: 0.68rem; font-weight: 650;
  background: rgba(4,16,31,.72); color: #fff;
  padding: 0.15rem 0.45rem; border-radius: 999px;
  opacity: 0; transition: opacity .2s;
}
.collage a:hover::after, .collage a:focus-visible::after { opacity: 1; }

@media (max-width: 900px) {
  .collage { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 100px; }
  .collage a:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .collage a:nth-child(1),
  .collage a:nth-child(5),
  .collage a:nth-child(14) { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 520px) {
  .collage { grid-template-columns: repeat(2, 1fr); }
  .collage a:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .collage a:nth-child(1), .collage a:nth-child(8) { grid-column: span 2; grid-row: span 2; }
}

/* Donate strip */
.donate-strip {
  margin: 1rem 0 0;
  padding: 1.35rem 1.5rem;
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(120deg, rgba(0,80,255,.35), rgba(13,148,136,.28)),
    var(--deep);
  border: 1px solid var(--stroke);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.donate-strip h2 { margin: 0 0 0.25rem; font-size: 1.25rem; color: #fff; }
.donate-strip p { margin: 0; color: var(--sand); max-width: 34rem; font-size: 0.95rem; }
.donate-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }

/* Timeline (story) */
.timeline {
  position: relative;
  margin: 0; padding: 0 0 0 1.25rem;
  list-style: none;
  border-left: 2px solid rgba(45, 212, 191, 0.35);
}
.timeline li {
  position: relative;
  padding: 0 0 1.75rem 1.35rem;
}
.timeline li::before {
  content: "";
  position: absolute; left: -1.55rem; top: 0.35rem;
  width: 0.85rem; height: 0.85rem; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,80,255,.25);
}
.timeline .year {
  display: inline-block;
  font-weight: 800; color: var(--gold);
  font-size: 0.85rem; letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.timeline h3 { margin: 0 0 0.35rem; font-size: 1.15rem; color: #fff; }
.timeline p { margin: 0; color: var(--sand); }

/* Story prose */
.prose { max-width: 48rem; }
.prose p { color: var(--sand); font-size: 1.02rem; }
.prose strong { color: #fff; }
.callout {
  border-left: 3px solid var(--blue);
  background: rgba(0,80,255,.12);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  color: var(--foam);
}

/* Wall of Shame */
.shame-intro { max-width: 46rem; margin-bottom: 1.5rem; }
.shame-intro p { color: var(--sand); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(6,20,40,.65);
  box-shadow: var(--shadow);
}
.shame-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.92rem;
}
.shame-table th, .shame-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.shame-table th {
  background: rgba(0,80,255,.2);
  color: var(--teal-light);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: sticky; top: 0;
}
.shame-table tr:hover td { background: rgba(255,255,255,0.03); }
.shame-table tr.mike-row td {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
}
.shame-table tr.mike-row:hover td { background: rgba(251, 191, 36, 0.16); }
.badge-mike {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.7rem; font-weight: 700;
  background: var(--gold); color: #1a1205;
  padding: 0.15rem 0.45rem; border-radius: 999px;
}
.shame-table .year-cell { font-weight: 800; color: var(--gold); white-space: nowrap; }
.shame-footer-row td {
  text-align: center !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--danger);
  background: rgba(248,113,113,.08);
}

/* Mobile stacked cards for shame */
.shame-cards { display: none; gap: 0.85rem; }
@media (max-width: 760px) {
  .table-wrap { display: none; }
  .shame-cards { display: grid; }
}
.shame-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}
.shame-card.mike {
  border-color: rgba(251,191,36,.45);
  box-shadow: 0 0 0 1px rgba(251,191,36,.15);
}
.shame-card .meta {
  display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center;
  margin-bottom: 0.55rem;
}
.shame-card .yr {
  font-weight: 800; color: var(--gold); font-size: 0.95rem;
}
.shame-card h3 { margin: 0 0 0.45rem; font-size: 1.05rem; color: #fff; }
.shame-card dl { margin: 0; }
.shame-card dt {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-top: 0.55rem;
}
.shame-card dd { margin: 0.15rem 0 0; color: var(--sand); font-size: 0.92rem; }

/* Support page */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 800px) { .support-grid { grid-template-columns: 1fr; } }
.support-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.6rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  min-height: 100%;
}
.support-card h3 { margin: 0; color: #fff; font-size: 1.25rem; }
.support-card p { margin: 0; color: var(--sand); flex: 1; }
.support-card .btn { width: 100%; }

/* Boat page features */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 700px) { .feature-row { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(2, 8, 18, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,.1); border: 1px solid var(--stroke);
  color: #fff; border-radius: 999px; width: 2.5rem; height: 2.5rem;
  cursor: pointer; font-size: 1.2rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--stroke);
  padding: 2rem 0 2.5rem;
  background: rgba(0,0,0,.25);
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between; align-items: start;
}
.footer-brand { color: var(--muted); font-size: 0.9rem; }
.footer-brand strong { color: #fff; display: block; margin-bottom: 0.25rem; }
.socials { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.socials a {
  text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
  color: var(--sand);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
}
.socials a:hover { color: #fff; border-color: var(--teal-light); }
.page-title {
  padding: 2.5rem 0 1rem;
}
.page-title h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  color: #fff;
}
.page-title p { margin: 0; color: var(--sand); max-width: 40rem; font-size: 1.05rem; }

.note {
  font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem;
}


/* Live Camera page */
.live-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  align-items: start;
  padding-bottom: 3rem;
}
@media (max-width: 720px) {
  .live-layout { grid-template-columns: 1fr; }
}
.live-stage {
  padding: 1rem;
}
.live-frame {
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: #020812;
  border: 1px solid var(--stroke);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-frame img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 560px);
  margin: 0 auto;
  object-fit: contain;
}
.live-timer {
  position: relative;
  height: 56px;
  margin: 1rem auto 0;
  max-width: 520px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 80, 120, 0.35), rgba(8, 30, 50, 0.2));
  border-radius: 12px;
  border: 1px solid var(--stroke);
}
.live-bubbles { position: absolute; inset: 0; pointer-events: none; }
.live-track {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 58%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}
.live-shark {
  position: absolute;
  left: 0;
  top: 50%;
  font-size: 34px;
  line-height: 1;
  user-select: none;
  will-change: transform;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}
.live-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(180, 230, 255, 0.55);
  pointer-events: none;
  bottom: 6px;
}
.live-countdown {
  font: 700 0.95rem var(--font);
  color: #fff;
  text-align: center;
  margin-top: 0.65rem;
  letter-spacing: 0.02em;
}
.live-aside {
  display: block;
  min-width: 0;
}
.live-aside h2,
.live-conditions-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: #fff;
}
.live-conditions {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--sand);
}
.live-conditions li { margin: 0.35rem 0; }
.live-aside-actions {
  margin-top: 1.15rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.live-socials {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
}
.live-socials a {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.2);
  transition: transform .15s ease, border-color .15s ease;
}
.live-socials a:hover {
  transform: translateY(-2px);
  border-color: var(--teal-light);
}
.live-socials img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.live-aside code {
  font-size: 0.85em;
  color: #9ecbff;
}

/* Story letter — Mike's narrative on The Story page */
.story-letter {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
}
.story-letter p {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  line-height: 1.55;
}
.story-letter p:last-child { margin-bottom: 0; }


/* GoFundMe raised widget (same as boat-stats.php) */
.gfm-raised {
  margin: 0;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(420px 120px at 10% 0%, rgba(45, 212, 191, 0.12), transparent 60%),
    var(--card);
  text-align: left;
  box-shadow: var(--shadow);
}
.gfm-top {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.gfm-title { font-weight: 800; color: var(--gold); font-size: 14px; letter-spacing: 0.03em; }
.gfm-link {
  color: var(--teal-light); font-size: 12px; text-decoration: none;
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 999px; padding: 4px 10px;
  background: rgba(45, 212, 191, 0.08);
}
.gfm-link:hover { background: rgba(45, 212, 191, 0.18); color: #fff; }
.gfm-amount { color: var(--sand); font-size: 15px; margin-bottom: 10px; }
.gfm-big { font-size: 28px; font-weight: 800; color: #7dff9a; letter-spacing: -0.02em; }
.gfm-track {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: visible;
  margin: 8px 0 14px;
}
.gfm-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f7fa8, #3ec7ff 55%, #7dff9a);
  box-shadow: 0 0 16px rgba(62,199,255,0.35);
}
.gfm-shark {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45));
  pointer-events: none;
}
.gfm-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  color: var(--muted); font-size: 12px; margin-bottom: 6px;
}
.gfm-fun { color: var(--foam); font-size: 13px; margin-bottom: 4px; }
.gfm-updated { color: var(--muted); font-size: 11px; }

/* Donate bubble — match boat-stats.php look */
.donate-bubble {
  max-width: 560px;
  margin: 0 auto 2rem;
  padding: 22px 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(62, 199, 255, 0.28);
  background:
    radial-gradient(420px 140px at 12% 0%, rgba(62, 199, 255, 0.14), transparent 60%),
    radial-gradient(380px 120px at 90% 100%, rgba(125, 255, 154, 0.08), transparent 55%),
    rgba(10, 28, 40, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}
.donate-bubble .gfm-raised {
  margin: 0 auto 18px;
  max-width: none;
  text-align: left;
  background:
    radial-gradient(420px 120px at 10% 0%, rgba(62, 199, 255, 0.12), transparent 60%),
    rgba(10, 28, 40, 0.92);
  border: 1px solid rgba(62, 199, 255, 0.28);
  border-radius: 16px;
  box-shadow: none;
}
.donate-bubble .donate-label {
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0 0 12px;
}
.donate-logos {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.donate-logos a.donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: #fff;
}
.donate-logos a.donate-btn svg {
  width: 22px; height: 22px; display: block; flex-shrink: 0;
}
.donate-logos a.gofundme {
  background: #00b964; border-color: #3dd68c; color: #fff;
}
.donate-logos a.gofundme:hover { background: #00a057; color: #fff; }
.donate-logos a.cashapp {
  background: #00d632; border-color: #7dff9a; color: #003b12;
}
.donate-logos a.cashapp:hover { background: #00c02d; color: #003b12; }
.donate-logos a.venmo {
  background: #008cff; border-color: #66bfff; color: #fff;
}
.donate-logos a.venmo:hover { background: #0077db; color: #fff; }

/* Footer icon socials — match boat-archive.php #lbShare */
.footer-inner {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
}
.footer-share {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 1 1 auto;
  min-width: min(100%, 360px);
  max-width: 100%;
}
.footer-share .share-label {
  width: auto;
  align-self: flex-end;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.2;
}
.footer-share-icons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  width: auto;
  max-width: 100%;
}
.footer-share-icons a,
.footer-share-icons button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  padding: 0 !important;
  margin: 0;
  text-decoration: none !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff !important;
  font: inherit;
  cursor: pointer;
  flex: 0 0 44px;
  box-sizing: border-box;
  background: #1a2f3e;
}
.footer-share-icons a:hover,
.footer-share-icons button:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  color: #fff !important;
}
.footer-share-icons svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
  pointer-events: none;
}
.footer-share-icons .fs-facebook { background: #1877f2 !important; border-color: #4b9bff !important; }
.footer-share-icons .fs-x { background: #111 !important; border-color: #555 !important; }
.footer-share-icons .fs-reddit { background: #ff4500 !important; border-color: #ff7a45 !important; }
.footer-share-icons .fs-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af) !important; border-color: #dd2a7b !important; }
.footer-share-icons .fs-tiktok { background: #010101 !important; border-color: #25f4ee !important; color: #fff !important; }
.footer-share-icons .fs-youtube { background: #ff0000 !important; border-color: #ff6b6b !important; }
.footer-share-icons .fs-copy { background: #2a4a5c !important; border-color: #3ec7ff !important; }
.footer-share-icons .fs-sms { background: #34c759 !important; border-color: #7dff9a !important; color: #06210e !important; }
@media (max-width: 720px) {
  .footer-share { align-items: center; min-width: 100%; }
  .footer-share .share-label { align-self: center; text-align: center; }
  .footer-share-icons { justify-content: center; }
}
#footerShareToast {
  display: none; position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(6,20,40,0.95); color: #ffd978; border: 1px solid rgba(62,199,255,0.35);
  padding: 10px 16px; border-radius: 10px; font-size: 13px; z-index: 200;
}
#footerShareToast.show { display: block; }

/* —— Contact form —— */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 3rem;
}
.contact-aside h2,
.form-card .form-heading,
.form-success h2 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  color: var(--teal-light);
}
.contact-aside p { color: var(--sand); margin: 0 0 1rem; }
.contact-bullets {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--foam);
}
.contact-bullets li { margin: 0.35rem 0; }
.contact-aside-note {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.form-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.45rem 1.65rem;
  box-shadow: var(--shadow);
}
.form-intro {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--foam);
  margin-bottom: 0.4rem;
}
.form-group .opt { font-weight: 500; color: var(--muted); font-size: 0.82rem; }
.form-group .req { color: var(--gold); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: rgba(4, 16, 31, 0.65);
  color: var(--foam);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(143, 164, 188, 0.75); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}
.form-group textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.form-group.invalid input,
.form-group.invalid textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}
.field-error {
  display: none;
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--danger);
}
.form-group.invalid .field-error { display: block; }

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.captcha-row .captcha-controls {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}
.captcha-row input { max-width: 8rem; }
.captcha-refresh {
  padding: 0.65rem 0.85rem !important;
  min-width: 2.75rem;
  font-size: 1.15rem !important;
  line-height: 1;
}

.btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.95rem 1.35rem;
  border: none;
  border-radius: 999px;
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: #04101f;
  cursor: pointer;
  background: linear-gradient(135deg, #f59e0b 0%, var(--gold) 40%, #fde68a 100%);
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.35),
    0 12px 36px rgba(251, 191, 36, 0.28),
    0 0 24px rgba(45, 212, 191, 0.15);
  animation: send-pulse 2.4s ease-in-out infinite;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn-send:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.5),
    0 16px 44px rgba(251, 191, 36, 0.38),
    0 0 32px rgba(45, 212, 191, 0.25);
  animation: none;
}
.btn-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  animation: none;
  filter: grayscale(0.25);
}
.btn-send.is-sending { animation: none; opacity: 0.85; }
.btn-send svg { flex: 0 0 auto; }
@keyframes send-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35), 0 12px 36px rgba(251, 191, 36, 0.28), 0 0 18px rgba(45, 212, 191, 0.12); }
  50% { box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.55), 0 14px 40px rgba(251, 191, 36, 0.4), 0 0 28px rgba(45, 212, 191, 0.28); }
}
.form-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.form-error-banner {
  display: none;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
  font-size: 0.92rem;
}
.form-error-banner.show { display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 0.5rem 1rem;
}
.form-success.show,
.form-card.success-mode .form-success { display: block; }
.form-card.success-mode form { display: none; }
.success-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #04101f;
  background: linear-gradient(135deg, var(--teal-light), var(--blue-glow));
  box-shadow: 0 10px 28px rgba(45, 212, 191, 0.35);
}
.form-success p {
  color: var(--sand);
  max-width: 28rem;
  margin: 0 auto 1.35rem;
}

@media (max-width: 820px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---- Language dropdown (EN / RU / UK) ---- */
.lang-li { position: relative; margin-left: 0.2rem; }
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: transparent; border: 1px solid var(--stroke); color: var(--sand);
  border-radius: 999px; padding: 0.3rem 0.55rem;
  font: inherit; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.04em; line-height: 1.2;
  cursor: pointer;
}
.lang-btn:hover, .lang-switch.open .lang-btn { background: rgba(0, 80, 255, 0.22); color: #fff; }
.lang-btn:focus-visible { outline: 2px solid var(--teal-light); outline-offset: 3px; }
.lang-btn .caret { font-size: 0.7em; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 10.5rem;
  margin: 0; padding: 0.35rem; list-style: none;
  background: #0a1f3a; border: 1px solid var(--stroke); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); z-index: 80;
}
.lang-menu[hidden] { display: none; }
.nav-links .lang-menu a {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding: 0.45rem 0.7rem; border-radius: 8px; font-size: 0.9rem; white-space: nowrap;
}
.nav-links .lang-menu a:hover, .nav-links .lang-menu a:focus-visible { background: rgba(0, 80, 255, 0.22); color: #fff; }
.nav-links .lang-menu a[aria-current="true"] { color: #fff; font-weight: 700; }
.lang-menu a[aria-current="true"]::after { content: "✓"; color: var(--teal-light); }
.lang-menu a.lang-pref::after { content: "•"; color: var(--muted); }
@media (max-width: 900px) {
  .lang-li { margin: 0.4rem 0 0; padding-top: 0.5rem; border-top: 1px solid var(--stroke); }
  .lang-btn { padding: 0.55rem 0.85rem; font-size: 0.9rem; }
  .lang-menu { position: static; margin-top: 0.35rem; box-shadow: none; min-width: 0; }
}
/* Russian / Ukrainian nav labels are longer: tighten spacing so the desktop header stays on one line */
@media (min-width: 901px) {
  html[lang="ru"] .nav-links > li > a, html[lang="uk"] .nav-links > li > a { padding: 0.45rem 0.5rem; font-size: 0.86rem; white-space: nowrap; }
}
