/* Florida Boating Info — DESIGN.md: Perk structure with the Florida palette.
   One filled action color (aqua), outlined pills and underlined links for everything else.
   No shadows, no gradients: layers separate by tone (white → sand → aqua → navy). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body);
  color: var(--color-atlantic-navy);
  background: var(--color-pure-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: var(--font-weight-medium); margin: 0 0 16px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--color-atlantic-navy); outline-offset: 3px; }
.photo-card :focus-visible { outline-color: var(--color-keys-aqua); }

.container { width: 100%; max-width: calc(var(--page-max-width) + 2 * var(--page-gutter)); margin: 0 auto; padding: 0 var(--page-gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--color-keys-aqua); padding: 8px 16px; border-radius: var(--radius-pill); z-index: 50; }
.skip-link:focus { left: 8px; }

/* ---- Type ---- */
.display { font-size: var(--text-display); line-height: var(--leading-display); letter-spacing: var(--tracking-tight); }
.heading-lg { font-size: var(--text-heading-lg); line-height: 1; letter-spacing: var(--tracking-tight); }
.heading, .h2 { font-size: var(--text-heading); line-height: var(--leading-heading); letter-spacing: var(--tracking-tight); }
.lead { font-size: var(--text-lead); color: var(--color-slate-water); }
.small { font-size: var(--text-body-sm); }
.eyebrow {
  display: block; font-size: var(--text-eyebrow); font-weight: var(--font-weight-medium); text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow); color: var(--color-slate-water); margin: 0 0 12px;
}

/* ---- Actions ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  padding: 10px 20px; border-radius: var(--radius-pill); border: 1px solid transparent;
  font: inherit; font-size: var(--text-body-sm); font-weight: var(--font-weight-medium); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn--accent { background: var(--color-keys-aqua); color: var(--color-atlantic-navy); font-weight: var(--font-weight-semibold); }
.btn--accent:hover { background: var(--color-keys-aqua-hover); }
.btn--outline { background: transparent; color: var(--color-atlantic-navy); border-color: var(--color-atlantic-navy); }
.btn--outline:hover { background: var(--color-atlantic-navy); color: var(--color-pure-white); }
.btn--sm { min-height: 36px; padding: 6px 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 28px; }
.btn-row--center { justify-content: center; }
.js .js-hidden { display: none; }
.chev { font-size: 1.15em; line-height: 1; transform: translateY(-1px); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-body-sm); font-weight: var(--font-weight-medium);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
a.text-link:hover, a:hover > .text-link { text-decoration-thickness: 2px; }

.badge { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); font-size: var(--text-caption); font-weight: var(--font-weight-medium); margin-bottom: 20px; }
.badge--sunset { background: var(--color-sunset); color: var(--color-sunset-ink); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--color-driftwood); font-size: var(--text-caption); font-weight: var(--font-weight-medium); white-space: nowrap; }

/* ---- Photos (placeholder until the file exists — IMAGES.md) ---- */
.photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-inner); }
.photo--placeholder { position: relative; background: var(--color-driftwood); min-height: 120px; }
.photo__label { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 11px; line-height: 1.35; color: var(--color-atlantic-navy); text-align: left; }
.photo__label strong { font-weight: var(--font-weight-medium); word-break: break-all; }
/* Dev-only prompt preview; full prompt in the title tooltip and on /dev/images. */
.photo__prompt { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; color: var(--color-slate-water); }
.feature__thumb .photo__prompt, .marquee__photo .photo__prompt { -webkit-line-clamp: 3; }
.marquee__photo .photo__label { display: none; }

/* ---- Header: floating sand bar ---- */
.site-header { position: fixed; top: 12px; left: 0; right: 0; z-index: 40; padding: 0 var(--page-gutter); }
.site-header__bar {
  position: relative; max-width: var(--header-max-width); margin: 0 auto; min-height: 60px; padding: 8px 10px 8px 20px;
  display: flex; align-items: center; gap: 24px; background: var(--color-pure-white);
  border: 1px solid var(--color-hairline); border-radius: var(--radius-inner);
}
.brand { flex-shrink: 0; }
.brand img { height: 32px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: 22px; }
.site-nav__list a { white-space: nowrap; text-decoration: none; font-size: var(--text-body-sm); font-weight: var(--font-weight-medium); }
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: 0; color: inherit; cursor: pointer; border-radius: 10px; }

@media (max-width: 1299px) {
  .nav-toggle { display: inline-flex; }
  .site-header__actions { margin-left: auto; }
  .site-nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--color-pure-white); border: 1px solid var(--color-hairline); border-radius: var(--radius-inner); padding: 8px 20px 16px; }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--color-driftwood); font-size: var(--text-body); }
}
@media (max-width: 479px) {
  .site-header__actions .btn { display: none; }
}

/* First block of every page clears the floating header. */
main > .hero:first-child { padding-top: 150px; }
main > .page-hero:first-child { padding-top: 140px; }
.breadcrumbs { background: var(--color-sand); padding-top: 100px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--text-caption); color: var(--color-slate-water); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--color-shoreline); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---- Sections ---- */
.section { padding: var(--section-gap) 0; }
.section--tight { padding: calc(var(--section-gap) / 2) 0; }
.section--flush-top { padding-top: 0; }
.section--sand { background: var(--color-sand); }
.intro { max-width: 760px; margin: 0 auto 48px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.intro .lead { max-width: 620px; margin-left: auto; margin-right: auto; }
.intro--left { max-width: none; text-align: left; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.intro--left .heading-lg { margin: 0; max-width: 16ch; }
.intro__after { text-align: center; margin: 32px 0 0; font-size: var(--text-body-sm); color: var(--color-slate-water); }
.statement { padding: var(--section-gap) 0; }
.statement__inner { max-width: 760px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.statement .lead { max-width: 600px; margin-bottom: 28px; }

/* ---- Hero ---- */
.hero { background: var(--color-sand); text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__title { max-width: 13ch; margin-bottom: 20px; }
.hero__lead { max-width: 560px; color: var(--color-slate-water); font-size: var(--text-lead); margin: 0; }
.hero__visual { position: relative; width: 100%; max-width: 1040px; margin: 56px auto -72px; z-index: 1; }
.hero__photo { aspect-ratio: 16 / 7; border-radius: var(--radius-card); min-height: 0; min-width: 0; }
.hero-card { display: block; text-align: left; border-radius: var(--radius-inner); padding: 18px 20px; text-decoration: none; border: 1px solid var(--color-hairline); }
.hero-card--aqua { border-color: var(--color-keys-aqua); }
.hero-card__label { display: block; font-size: var(--text-caption); color: var(--color-slate-water); margin: 0 0 4px; }
.hero-card__value { font-size: 40px; font-weight: var(--font-weight-medium); letter-spacing: var(--tracking-tight); line-height: 1; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.hero-card__meta { font-size: 11px; color: var(--color-slate-water); margin: 0; }
.hero-card__title { font-size: var(--text-subheading); font-weight: var(--font-weight-medium); }
.hero-card--calc { background: var(--color-pure-white); }
.hero-card--aqua { background: var(--color-keys-aqua); }
.hero-card--aqua .hero-card__label { color: var(--color-atlantic-navy); }
.hero-card--list { background: var(--color-pure-white); display: flex; flex-direction: column; gap: 6px; font-size: var(--text-body-sm); font-weight: var(--font-weight-medium); }
.hero-card--list span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--color-keys-aqua); margin-right: 10px; }
@media (min-width: 768px) {
  .hero-card { position: absolute; }
  .hero-card--calc { left: -24px; bottom: 48px; width: 290px; }
  .hero-card--aqua { right: -24px; top: 40px; width: 240px; }
  .hero-card--list { right: 48px; bottom: -24px; }
}
@media (max-width: 767px) {
  .hero__visual { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
  .hero__photo { aspect-ratio: 4 / 3; }
  .hero-card--list { display: none; }
}
.hero__strip { background: var(--color-driftwood); padding: 104px 0 24px; }
/* ---- Split hero (Home): text left, photo right, visible above the fold ---- */
main > .hero--split:first-child { padding-top: 128px; }
.hero--split { text-align: left; }
.hero--split .hero__inner { padding-bottom: 72px; }
.hero--split .hero__inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero--split .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; } }
.hero--split .hero__title { max-width: 12ch; font-size: clamp(44px, 1.4rem + 4.4vw, 84px); margin-bottom: 24px; }
.hero--split .hero__lead { max-width: 520px; }
/* Aqua marker under the key word — solid color, navy text stays 6.9:1. */
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::after { content: ""; position: absolute; z-index: -1; left: -0.04em; right: -0.04em; bottom: 0.06em; height: 0.3em; border-radius: 6px; background: var(--color-keys-aqua); transform-origin: left center; animation: hl-draw .7s .25s cubic-bezier(.2,.7,.2,1) both; }
/* The marker "draws" under the word on load. */
@keyframes hl-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hl::after { animation: none; } }
/* Long page titles can wrap inside the highlighted word group. */
.page-hero .hl { white-space: normal; }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: var(--text-body); }
.hero__stats { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--color-hairline); font-size: var(--text-body-sm); color: var(--color-slate-water); }
.hero__stats strong { display: block; font-size: var(--text-heading); font-weight: var(--font-weight-medium); letter-spacing: var(--tracking-tight); line-height: 1.1; color: var(--color-atlantic-navy); }
.hero--split .hero__visual { margin: 0; max-width: none; }
.hero--split .hero__photo { aspect-ratio: 1 / 1.08; max-height: 640px; }
@media (min-width: 768px) {
  .hero--split .hero-card--calc { left: -40px; bottom: 56px; }
  .hero--split .hero-card--aqua { right: -20px; top: 40px; }
  .hero--split .hero-card--list { right: 28px; bottom: -22px; }
}
@media (max-width: 1023px) { .hero--split .hero__photo { aspect-ratio: 4 / 3; } }
.hero--split + .hero__strip, .hero--split .hero__strip { padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .hero--split .hero-card { animation: float-in .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero--split .hero-card--aqua { animation-delay: .12s; }
  .hero--split .hero-card--list { animation-delay: .24s; }
}
@keyframes float-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- Aqua band (one per page — the Home calculator) ---- */
.section--aqua { background: var(--color-keys-aqua-light); }
.section--aqua .eyebrow, .section--aqua .lead, .section--aqua .intro__after { color: var(--color-atlantic-navy); }
.section--aqua .calculator-card { border-color: transparent; }

/* Quick-path cards: photo replaces the small icon. */
.feature__thumb + .feature__icon { display: none; }

.hero__strip-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; font-size: var(--text-body-sm); font-weight: var(--font-weight-medium); }
.hero__strip-inner p { margin: 0; }
.hero__strip-inner ul { display: flex; flex-wrap: wrap; gap: 8px 40px; color: var(--color-atlantic-navy); font-weight: var(--font-weight-regular); }

/* ---- Feature cards ---- */
.feature-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.feature-grid > * { flex: 0 1 100%; min-width: 0; }
/* Columns follow the item count; an incomplete last row is centered so the grid stays symmetric. */
@media (min-width: 640px) { .feature-grid--2 > *, .feature-grid--3 > *, .feature-grid--4 > * { flex-basis: calc((100% - 12px) / 2); } }
@media (min-width: 1024px) {
  .feature-grid--3 > * { flex-basis: calc((100% - 24px) / 3); }
  .feature-grid--4 > * { flex-basis: calc((100% - 36px) / 4); }
}
.feature { background: var(--color-sand); border-radius: var(--radius-card); }
.section--sand .feature { background: var(--color-pure-white); border: 1px solid var(--color-hairline); }
.feature__link { display: flex; flex-direction: column; height: 100%; padding: 28px; text-decoration: none; border-radius: inherit; }
.feature__icon { color: var(--color-deep-lagoon); margin-bottom: 20px; }
.feature__title { display: block; font-size: var(--text-heading); line-height: 1.1; letter-spacing: var(--tracking-tight); font-weight: var(--font-weight-medium); margin-bottom: 12px; }
.feature__text { display: block; font-size: var(--text-body-sm); color: var(--color-slate-water); margin-bottom: 24px; }
.feature .text-link { margin-top: auto; }

/* ---- Stacked cards (sticky) ---- */
.stack { display: grid; gap: 16px; }
.stack-card {
  display: grid; gap: 20px; grid-template-columns: 1fr; padding: 16px;
  background: var(--color-sand); border-radius: var(--radius-card); border: 1px solid var(--color-hairline);
}
.stack-card__body { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 16px 12px 12px; }
.stack-card__text { color: var(--color-slate-water); font-size: var(--text-body-sm); max-width: 420px; }
.stack-card__photo { min-height: 220px; }
@media (min-width: 900px) {
  .stack-card { position: sticky; top: calc(88px + var(--i) * 20px); grid-template-columns: 1fr 1.15fr; min-height: 460px; }
  .stack-card__photo { min-height: 0; }
}
.topic-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.topic-links a { display: inline-block; padding: 6px 12px; border: 1px solid var(--color-atlantic-navy); border-radius: var(--radius-pill); font-size: var(--text-caption); font-weight: var(--font-weight-medium); text-decoration: none; }
.topic-links a:hover { background: var(--color-atlantic-navy); color: var(--color-pure-white); }

/* ---- Calculator ---- */
.calculator-card { background: var(--color-pure-white); border: 1px solid var(--color-hairline); border-radius: var(--radius-card); padding: var(--card-padding); }
.calculator { display: grid; gap: 32px; }
@media (min-width: 900px) { .calculator { grid-template-columns: 1fr 1fr; } .amortization { grid-column: 1 / -1; } }
.calculator__fields { display: grid; gap: 18px; align-content: start; }
.field label { display: block; font-size: var(--text-body-sm); font-weight: var(--font-weight-medium); margin-bottom: 6px; }
.field__hint { font-size: var(--text-caption); color: var(--color-slate-water); margin: 6px 0 0; }
.field input, .field select {
  width: 100%; height: 48px; padding: 0 14px; font: inherit; color: var(--color-atlantic-navy); background: var(--color-pure-white);
  border: 1px solid var(--color-shoreline); border-radius: var(--radius-input);
}
.field input:focus, .field select:focus { outline: none; border: 2px solid var(--color-keys-aqua); }
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix > span { position: absolute; left: 14px; color: var(--color-slate-water); pointer-events: none; }
.input-affix input { padding-left: 28px; }
.input-affix--suffix > span { left: auto; right: 14px; }
.input-affix--suffix input { padding-left: 14px; padding-right: 32px; }
.calculator__result { background: var(--color-sand); border-radius: var(--radius-inner); padding: 28px; display: flex; flex-direction: column; }
.calculator__errors { color: var(--color-error); font-size: var(--text-body-sm); }
.metrics { margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 479px) { .metrics { grid-template-columns: minmax(0, 1fr); } }
.metric { margin: 0; }
.metric dt { font-size: var(--text-caption); color: var(--color-slate-water); }
.metric dd { margin: 4px 0 0; font-size: var(--text-subheading); font-weight: var(--font-weight-medium); font-variant-numeric: tabular-nums; }
.metric--main { grid-column: 1 / -1; padding-bottom: 16px; border-bottom: 1px solid var(--color-driftwood); }
.metric--main dd { font-size: var(--text-heading-lg); letter-spacing: var(--tracking-tight); line-height: 1; }
.disclaimer { font-size: var(--text-caption); color: var(--color-slate-water); margin: 20px 0 0; }
.amortization summary { cursor: pointer; font-weight: var(--font-weight-medium); font-size: var(--text-body-sm); }
.table-scroll { overflow-x: auto; margin-top: 16px; }
.amortization table { width: 100%; border-collapse: collapse; font-size: var(--text-body-sm); font-variant-numeric: tabular-nums; }
.amortization th, .amortization td { text-align: right; padding: 8px 12px; border-bottom: 1px solid var(--color-driftwood); }
.amortization th:first-child, .amortization td:first-child { text-align: left; }

/* ---- Regions marquee ---- */
.regions { overflow: hidden; }
.regions__eyebrow { text-align: center; margin-bottom: 32px; }
.marquee { overflow: hidden; padding: 8px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 20px; padding-right: 56px; position: relative; }
.marquee__photo { width: clamp(64px, 8vw, 104px); height: clamp(64px, 8vw, 104px); min-height: 0; flex: none; }
.marquee__name { font-size: clamp(40px, 6.5vw, 88px); font-weight: var(--font-weight-medium); letter-spacing: var(--tracking-tight); line-height: 1; white-space: nowrap; }
.marquee__item .tag { position: absolute; right: 56px; bottom: -8px; }
.marquee__link { display: flex; align-items: center; gap: 20px; text-decoration: none; color: inherit; }
.marquee__link:hover .marquee__name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__item[aria-hidden="true"] { display: none; }
}

/* ---- Guides & duo cards ---- */
.guide-card a { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.guide-card__photo { aspect-ratio: 4 / 3; height: auto; border-radius: var(--radius-card); margin-bottom: 8px; }
.guide-card .feature__title { font-size: var(--text-subheading); margin: 0; }
.duo { display: grid; gap: 12px; margin-top: 48px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo__card { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 320px; padding: var(--card-padding); background: var(--color-sand); border-radius: var(--radius-card); text-decoration: none; }
.duo__card .heading { max-width: 18ch; margin: 0; }
.duo__card .feature__text { margin: 0 0 8px; max-width: 46ch; }

/* ---- Photo card (Vantage) ---- */
.photo-card { position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--color-atlantic-navy); min-height: 520px; display: flex; align-items: center; justify-content: center; text-align: center; }
.photo-card__bg { position: absolute; inset: 0; border-radius: 0; min-height: 0; }
.photo-card__bg.photo--placeholder { background: var(--color-atlantic-navy); }
.photo-card__bg.photo--placeholder .photo__label { color: var(--color-sand); z-index: 2; }
.photo-card::after { content: ""; position: absolute; inset: 0; background: var(--scrim-navy); }
.photo-card__content { position: relative; z-index: 1; max-width: 680px; padding: 56px var(--page-gutter); color: var(--color-pure-white); display: flex; flex-direction: column; align-items: center; }
.photo-card__content .lead { color: var(--color-sand); margin-bottom: 28px; }
.photo-card__note { font-size: var(--text-caption); color: var(--color-sand); margin: 16px 0 0; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1.4fr; gap: 64px; } }
.faq .heading-lg { max-width: 10ch; }
.faq-item { border-bottom: 1px solid var(--color-driftwood); padding: 20px 0; }
.faq-item:first-child { border-top: 1px solid var(--color-driftwood); }
.faq-item summary { cursor: pointer; font-weight: var(--font-weight-medium); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 12px 0 0; color: var(--color-slate-water); }

/* ---- Content pages ---- */
/* Single-column pages (no sidebar): one centered measure for hero, body and blocks — no empty side. */
.container--narrow, .main--narrow .container { max-width: calc(760px + 2 * var(--page-gutter)); }
.main--narrow .prose { max-width: none; }

.page-hero { background: var(--color-sand); padding: 32px 0 64px; }
.page-hero .heading-lg { max-width: 18ch; }
.page-hero .lead { max-width: 640px; }
.freshness { font-size: var(--text-caption); color: var(--color-slate-water); display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 20px 0 0; }
.freshness a { color: var(--color-deep-lagoon); }
.page-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 56px; padding-bottom: 24px; }
@media (min-width: 1024px) { .page-body--sidebar { grid-template-columns: minmax(0, 1fr) 280px; } }
.prose { max-width: 720px; }
.prose h2 { font-size: var(--text-heading); letter-spacing: var(--tracking-tight); margin-top: 40px; }
.prose h3 { font-size: var(--text-subheading); margin-top: 32px; }
.prose a { color: var(--color-deep-lagoon); }
.prose ul, .prose ol { list-style: disc; padding-left: 1.25em; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 0 0 24px; padding: 16px 24px; background: var(--color-sand); border-radius: var(--radius-inner); }
.prose blockquote p:last-child { margin: 0; }
/* The aside stretches the full body height so the financing card at its end can stay in view while reading. */
.page-aside { align-self: stretch; display: flex; flex-direction: column; gap: 16px; }
.page-aside > .toc { margin-bottom: 0; }
.aside-nav { background: var(--color-sand); border-radius: var(--radius-card); padding: 24px; }
.aside-nav__title { font-weight: var(--font-weight-medium); }
.aside-nav__title a { text-decoration: none; }
.aside-nav li a { display: block; padding: 7px 0; text-decoration: none; font-size: var(--text-body-sm); color: var(--color-slate-water); }
.aside-nav li a[aria-current="page"], .aside-nav li a:hover { color: var(--color-atlantic-navy); font-weight: var(--font-weight-medium); }

/* ---- Long-form content blocks (Markdown `::: name` containers — CONTENT_GUIDE.md) ---- */
.prose > p:first-child { font-size: var(--text-lead); color: var(--color-atlantic-navy); }
.prose h2 { scroll-margin-top: 96px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: var(--text-body-sm); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--color-driftwood); }
.prose th { font-weight: var(--font-weight-medium); background: var(--color-sand); }
.prose thead th:first-child { border-top-left-radius: 10px; }
.prose thead th:last-child { border-top-right-radius: 10px; }
@media (max-width: 767px) { .prose table { display: block; overflow-x: auto; } }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-inner); display: block; margin: 24px auto; }
.prose figure { margin: 28px 0; }
.prose figure img { margin: 0 auto; }
.prose figcaption { font-size: var(--text-caption); color: var(--color-slate-water); text-align: center; margin-top: 10px; }
.key-facts, .note, .warning, .checklist, .official { border-radius: var(--radius-inner); padding: 20px 24px; margin: 8px 0 28px; }
.key-facts > :last-child, .note > :last-child, .warning > :last-child, .checklist > :last-child, .official > :last-child { margin-bottom: 0; }
.key-facts { background: var(--color-sand); border: 1px solid var(--color-hairline); }
.key-facts > p:first-child, .checklist > p:first-child, .official > p:first-child { font-size: var(--text-caption); font-weight: var(--font-weight-medium); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--color-slate-water); margin-bottom: 8px; }
.note { background: var(--color-pure-white); border: 1px solid var(--color-hairline); }
.warning { background: #fff1e8; border: 1px solid var(--color-sunset); }
.warning::before { content: "Important"; display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--color-sunset); color: var(--color-sunset-ink); font-size: var(--text-caption); font-weight: var(--font-weight-medium); }
.checklist { background: var(--color-pure-white); border: 1px solid var(--color-hairline); }
.prose .checklist ul { list-style: none; padding-left: 0; }
.prose .checklist li { position: relative; padding-left: 30px; }
.prose .checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--color-deep-lagoon); }
.official { background: var(--color-sand); border: 1px solid var(--color-hairline); }
.official a { font-weight: var(--font-weight-medium); }
.toc { margin-bottom: 16px; padding: 20px 24px; border: 1px solid var(--color-hairline); border-radius: var(--radius-card); }
.toc__title { font-size: var(--text-caption); font-weight: var(--font-weight-medium); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--color-slate-water); margin-bottom: 8px; }
.toc ol { list-style: none; }
.toc a { display: block; padding: 6px 0; font-size: var(--text-body-sm); text-decoration: none; }
.toc a:hover { text-decoration: underline; text-underline-offset: 4px; }


/* ---- Page hero with media (photo | illustration | silhouette) ---- */
.page-hero__inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .page-hero--media .page-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; } }
.page-hero__media { width: 100%; aspect-ratio: 4 / 3; height: auto; border-radius: var(--radius-card); min-height: 0; }
.page-hero__media--illustration, .page-hero__media--silhouette { background: var(--color-pure-white); border: 1px solid var(--color-hairline); object-fit: contain; padding: 24px; }
.page-hero__media.photo--placeholder { background: var(--color-driftwood); }

/* ---- Card thumbnails ---- */
.feature__thumb { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; min-height: 0; border-radius: var(--radius-inner); margin-bottom: 20px; }
.feature__thumb--silhouette, .feature__thumb--illustration { object-fit: contain; padding: 12px 16px; background: var(--color-pure-white); }
.section--sand .feature__thumb--silhouette, .section--sand .feature__thumb--illustration { background: var(--color-sand); }
/* Missing image in a card: sand block with the brand mark keeps rows even until photos arrive. */
.photo--mark { position: relative; background: var(--color-driftwood) url("/img/mark-arches.svg") center / 44px no-repeat; }
.photo--mark::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(239, 231, 214, .55); }
.photo--mark .photo__label { z-index: 1; }

/* ---- Brand logo tiles (::: brand-grid on /boat-brands) ---- */
.brand-grid { margin: 8px 0 28px; }
.prose .brand-grid ul { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.prose .brand-grid li { margin: 0; }
.brand-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 112px; padding: 16px 12px; text-align: center; background: var(--color-pure-white); border: 1px solid var(--color-hairline); border-radius: var(--radius-inner); }
.brand-tile__logo { max-width: 100%; height: 36px; object-fit: contain; }
.brand-tile__mark { width: 28px; height: 28px; background: url("/img/mark-arches.svg") center / contain no-repeat; opacity: .35; }
.brand-tile__name { font-size: var(--text-body-sm); font-weight: var(--font-weight-medium); line-height: 1.25; }
.brand-tile__note { font-size: var(--text-caption); color: var(--color-slate-water); line-height: 1.3; }
/* White-only official logos (img/brands/{slug}.on-dark.*) sit on navy. */
.brand-tile--dark { background: var(--color-atlantic-navy); border-color: var(--color-atlantic-navy); color: var(--color-pure-white); }
.brand-tile--dark .brand-tile__note { color: rgba(255,255,255,.8); }
/* Linked tile: the link fills the tile so the whole card opens the brand site (new tab). */
.brand-tile:has(.brand-tile__link) { padding: 0; transition: border-color .15s, box-shadow .15s, transform .15s; }
.prose .brand-tile__link { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 112px; padding: 16px 12px; color: inherit; text-decoration: none; border-radius: inherit; }
.brand-tile:has(.brand-tile__link:hover) { border-color: var(--color-keys-aqua); box-shadow: 0 6px 18px rgba(11, 42, 60, .10); transform: translateY(-2px); }
.brand-tile__link:focus-visible { outline: 3px solid var(--color-keys-aqua); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .brand-tile:has(.brand-tile__link:hover) { transform: none; } }

/* ---- Official sources (end of article) ---- */
.sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--color-hairline); }
.prose .sources h2 { font-size: var(--text-subheading); margin-top: 0; }
.prose .sources ol { list-style: decimal; padding-left: 1.4em; font-size: var(--text-body-sm); }
.prose .sources li { margin-bottom: 8px; }
.sources__note { font-size: var(--text-caption); color: var(--color-slate-water); margin-top: 12px; }
.freshness a { font-weight: var(--font-weight-medium); }

/* ---- Footer: aqua panel + white legal strip ---- */
.footer-panel { background: var(--color-keys-aqua); border-radius: 0 0 var(--radius-card) var(--radius-card); padding: 64px 0 0; overflow: hidden; }
.footer-panel a { text-decoration: none; }
.footer-panel a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-panel__help { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding-bottom: 32px; border-bottom: 1px solid rgba(11, 42, 60, .25); }
.footer-panel__question { font-size: var(--text-subheading); font-weight: var(--font-weight-medium); line-height: 1.15; margin: 0; }
.footer-panel__quick { display: flex; gap: 32px; font-size: var(--text-body-sm); font-weight: var(--font-weight-medium); }
.footer-panel__columns { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, 1fr); padding: 40px 0 8px; font-size: var(--text-body-sm); }
@media (min-width: 768px) { .footer-panel__columns { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .footer-panel__columns { grid-template-columns: repeat(6, 1fr); } }
.footer-panel__heading { font-size: var(--text-caption); font-weight: var(--font-weight-medium); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); margin-bottom: 12px; }
.footer-panel__columns li { padding: 4px 0; }
.footer-panel__wordmark {
  font-size: clamp(64px, 15.5vw, 210px); font-weight: var(--font-weight-medium); letter-spacing: -0.05em; line-height: .78;
  white-space: nowrap; margin: 48px 0 -0.08em;
}
.site-footer__legal { display: grid; gap: 16px; padding-top: 40px; padding-bottom: 40px; font-size: var(--text-caption); color: var(--color-slate-water); }
.site-footer__legal img { height: 40px; width: auto; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__legal a { text-decoration: none; }
.site-footer__legal a:hover { text-decoration: underline; }
.site-footer__disclosure { max-width: 900px; margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .topic-links a { transition: background-color .15s ease, color .15s ease; }
}
@media (min-width: 1024px) { .main--narrow .feature-grid--3 > *, .main--narrow .feature-grid--4 > * { flex-basis: calc((100% - 12px) / 2); } }

/* ---- Financing calls to action (Vantage) ----
   Every apply link goes through /go/apply (click log) with rel="sponsored" and a compensation note nearby (FTC).
   Copy never states rates, payments, terms or approval (TILA / Reg Z). */
.btn--block { display: flex; width: 100%; }
.btn--outline-light { background: transparent; color: var(--color-pure-white); border-color: var(--color-pure-white); }
.btn--outline-light:hover { background: var(--color-pure-white); color: var(--color-atlantic-navy); }
.photo-card__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.header-link { font-size: var(--text-body-sm); font-weight: var(--font-weight-medium); white-space: nowrap; text-decoration: none; padding: 6px 8px; }
.header-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.site-nav__menu-only { display: none; }
@media (max-width: 1299px) {
  .site-nav__menu-only { display: block; }
  .site-nav__list .site-nav__menu-only .btn { display: flex; margin-top: 16px; padding: 12px 20px; border-bottom: 0; font-weight: var(--font-weight-semibold); }
}
@media (max-width: 767px) { .header-link { display: none; } }

/* Mid-article card on buy/own/finance pages. Navy on aqua light = 7.9:1. */
.apply-cta { margin: 32px 0; padding: 24px 28px; border-radius: var(--radius-inner); background: var(--color-keys-aqua-light); color: var(--color-atlantic-navy); display: grid; gap: 16px 24px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.apply-cta p { margin: 0; }
.apply-cta__title { font-size: var(--text-subheading); font-weight: var(--font-weight-medium); margin-bottom: 4px !important; }
.apply-cta__text { font-size: var(--text-body-sm); }
.apply-cta__actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.prose .apply-cta a { color: var(--color-atlantic-navy); }
.apply-cta__note { grid-column: 1 / -1; font-size: var(--text-caption); }
@media (max-width: 639px) { .apply-cta { grid-template-columns: minmax(0, 1fr); padding: 22px; } .apply-cta__actions { align-items: flex-start; } }

/* Sidebar card: navy and direct on finance pages, quiet on the rest. Sticky while the reader scrolls. */
.aside-apply { position: sticky; top: 96px; padding: 24px; border-radius: var(--radius-card); background: var(--color-atlantic-navy); color: var(--color-pure-white); }
.aside-apply p { margin: 0 0 12px; }
.aside-apply__title { font-size: var(--text-subheading); font-weight: var(--font-weight-medium); line-height: 1.25; }
.aside-apply__text { font-size: var(--text-body-sm); color: var(--color-sand); }
.aside-apply__alt { margin-top: 12px; color: inherit; }
.aside-apply__note { font-size: var(--text-caption); color: var(--color-sand); margin: 12px 0 0 !important; }
.aside-apply :focus-visible { outline-color: var(--color-keys-aqua); }
.aside-apply--soft { background: var(--color-pure-white); color: var(--color-atlantic-navy); border: 1px solid var(--color-hairline); }
.aside-apply--soft .aside-apply__text, .aside-apply--soft .aside-apply__note { color: var(--color-slate-water); }
.aside-apply--soft :focus-visible { outline-color: var(--color-atlantic-navy); }
@media (max-width: 1023px) { .aside-apply { position: static; } }

/* Mobile sticky bar on buy/own/finance pages. */
.apply-bar { display: none; }
@media (max-width: 1023px) {
  .apply-bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: var(--radius-inner); background: var(--color-atlantic-navy); color: var(--color-pure-white); }
  .apply-bar__text { margin: 0; font-size: var(--text-body-sm); font-weight: var(--font-weight-medium); display: flex; flex-direction: column; line-height: 1.3; }
  .apply-bar__note { font-size: var(--text-caption); font-weight: 400; color: var(--color-sand); }
  .apply-bar :focus-visible { outline-color: var(--color-keys-aqua); }
  body:has(.apply-bar) { padding-bottom: 84px; }
}
/* On the aqua card the button goes navy so it stands out from the background (white on navy 14:1). */
.apply-cta .btn--accent, .prose .apply-cta .btn--accent { background: var(--color-atlantic-navy); color: var(--color-pure-white); }
.apply-cta .btn--accent:hover { background: var(--color-navy-hover); }

/* ---- Cookie notice (bottom-left card; no consent switch needed — the site sets no cookies) ---- */
.cookie-notice { position: fixed; left: 16px; bottom: 16px; z-index: 45; max-width: 440px; display: flex; align-items: center; gap: 16px; padding: 16px 16px 16px 20px; background: var(--color-pure-white); color: var(--color-atlantic-navy); border: 1px solid var(--color-hairline); border-radius: var(--radius-inner); box-shadow: 0 8px 24px rgba(11, 42, 60, .12); }
.cookie-notice[hidden] { display: none; }
.cookie-notice__text { margin: 0; font-size: var(--text-body-sm); line-height: 1.45; }
.cookie-notice__text strong { display: block; font-weight: var(--font-weight-medium); }
.cookie-notice__text a { color: var(--color-deep-lagoon); }
.cookie-notice .btn { flex-shrink: 0; }
@media (max-width: 1023px) {
  .cookie-notice { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  body:has(.apply-bar) .cookie-notice { bottom: 84px; }
}

/* ---- "Planning a boat purchase?" pop-up: calculator or apply ---- */
.action-popup { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-card); background: var(--color-pure-white); color: var(--color-atlantic-navy); overflow: auto; }
.action-popup::backdrop { background: rgba(11, 42, 60, .55); }
.action-popup[open] { animation: popup-in .2s ease-out; }
@keyframes popup-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .action-popup[open] { animation: none; } }
.action-popup__inner { position: relative; padding: 36px 32px 24px; text-align: center; }
.action-popup__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--color-sand); color: inherit; cursor: pointer; }
.action-popup__close:hover { background: var(--color-driftwood); }
.action-popup .eyebrow { margin: 0 0 8px; }
.action-popup__title { font-size: var(--text-heading); letter-spacing: var(--tracking-tight); line-height: 1.15; margin: 0 0 8px; }
.action-popup__lead { margin: 0 0 24px; color: var(--color-slate-water); }
.action-popup__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: left; }
.action-option { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius-inner); background: var(--color-sand); color: var(--color-atlantic-navy); text-decoration: none; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.action-option:hover { border-color: var(--color-atlantic-navy); transform: translateY(-2px); }
.action-option--primary { background: var(--color-keys-aqua); }
.action-option__icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-pure-white); }
.action-option__title { font-size: var(--text-subheading); font-weight: var(--font-weight-semibold); }
.action-option__text { font-size: var(--text-body-sm); line-height: 1.45; }
.action-option .text-link { margin-top: auto; padding-top: 4px; }
@media (prefers-reduced-motion: reduce) { .action-option:hover { transform: none; } }
.action-popup__note { margin: 16px 0 4px; font-size: var(--text-caption); color: var(--color-slate-water); }
.action-popup__dismiss { border: 0; background: none; padding: 8px; font: inherit; font-size: var(--text-body-sm); color: var(--color-slate-water); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (max-width: 559px) {
  .action-popup__inner { padding: 32px 18px 18px; }
  .action-popup__options { grid-template-columns: minmax(0, 1fr); }
  .action-option { padding: 16px; }
}

/* Screen-reader-only text, e.g. "(opens in a new tab)" on links that leave the site. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Heading + one-line context above a hub's guide grid. */
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head .heading { margin: 0 0 8px; }
.section-head__intro { margin: 0; color: var(--color-slate-water); }

/* ---- Boat Loan Calculator page: no half-empty columns ---- */
/* Inputs in two columns so the form is about as tall as the results panel. */
@media (min-width: 640px) {
  .calculator:not(.calculator--compact) .calculator__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
}
/* Results stay in view while the inputs are edited. */
@media (min-width: 900px) {
  .calc-main .calculator { align-items: start; }
  .calc-main .calculator__result { position: sticky; top: 96px; grid-row: span 2; }
  /* The amortization toggle sits under the inputs, filling the column next to the taller results panel. */
  .calc-main .amortization { grid-column: 1; }
}
.calc-main .amortization { margin-top: 0; }

/* Explanation as a grid of cards (one per H2) instead of one narrow prose column. */
.info-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .info-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Full-width lead card: heading on the left, text on the right, so lines stay a readable length. */
  .info-grid--lead > :first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 40px; align-items: baseline; }
  .info-grid--lead > :first-child > :not(h2) { grid-column: 2; }
}
.info-card { max-width: none; padding: 28px; border: 1px solid var(--color-hairline); border-radius: var(--radius-card); background: var(--color-pure-white); }
.info-card h2 { margin-top: 0; font-size: var(--text-subheading); }
.info-card > :last-child { margin-bottom: 0; }

/* FAQ in two columns on wide screens. */
@media (min-width: 900px) {
  .faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .faq-grid .faq-item:nth-child(2) { border-top: 1px solid var(--color-driftwood); }
}

/* Calculator hero: heading row + the tool in a card on the sand band. */
.calc-hero { padding-bottom: 56px; }
.calc-hero__head { display: grid; gap: 12px 48px; align-items: end; margin-bottom: 28px; }
.calc-hero__head .heading-lg { max-width: none; margin-bottom: 0; }
.calc-hero__head .lead { margin: 0; }
@media (min-width: 900px) { .calc-hero__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 639px) { .calc-hero .calculator-card { padding: 20px; } }

/* Results panel in navy so it stands apart from the sand page and the white card (DESIGN.md "Dark Island").
   White figures 14:1, sand labels 11:1, aqua Apply button on navy 6.9:1. */
.calculator__result { background: var(--color-atlantic-navy); color: var(--color-pure-white); }
.calculator__result .metric dt, .calculator__result .disclaimer { color: var(--color-sand); }
.calculator__result .metric--main { border-bottom-color: rgba(255, 255, 255, .22); }
.calculator__result .calculator__errors { color: #ffb4a8; }
.calculator__result .btn--outline { color: var(--color-pure-white); border-color: var(--color-pure-white); }
.calculator__result .btn--outline:hover { background: var(--color-pure-white); color: var(--color-atlantic-navy); }
.calculator__result :focus-visible { outline-color: var(--color-keys-aqua); }
