/* ==========================================================================
   Coastline — long-form guide styles (lead-magnet.html)
   Loaded AFTER styles.css. Reading-width typography for the free guide.
   ========================================================================== */

.guide-body { background: var(--sand); }

.guide { padding: clamp(16px, 3vw, 30px) 0 clamp(56px, 7vw, 96px); }

/* The guide's header has a back-link but no menu button, so it must opt out of
   the mobile collapse in styles.css — otherwise the link vanishes below 900px,
   which is most of the audience for a guide delivered by email. */
.guide-nav { display: block !important; flex-basis: auto; padding-bottom: 0; }
.guide-nav ul { flex-direction: row; justify-content: flex-end; padding-bottom: 0; }
.guide-nav li { border-top: 0 !important; }
.guide-nav a { font-weight: 600; display: inline-block !important; padding: 8px 12px !important; }

/* ------------------------------------------------------- reading bar ---- */

.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 120; pointer-events: none; background: transparent;
}
.read-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--seafoam), var(--teal-400), var(--teal));
  transform-origin: left;
}

/* ------------------------------------------------------------- cover ---- */

.guide-cover {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 68px) clamp(24px, 4vw, 60px);
  background:
    radial-gradient(110% 130% at 88% 6%, rgba(23,126,123,.40) 0%, rgba(23,126,123,0) 58%),
    linear-gradient(158deg, var(--navy) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: var(--seafoam);
  box-shadow: var(--shadow-navy);
  margin-bottom: clamp(36px, 5vw, 64px);
}
.guide-cover .label { color: var(--seafoam); }
.guide-cover .label::before { background: linear-gradient(90deg, var(--seafoam), var(--teal-300)); }
.guide-cover h1 { color: var(--white); max-width: 17ch; margin-bottom: .4em; }
.guide-cover-inner { position: relative; z-index: 1; }

.guide-cover-mark {
  position: absolute; z-index: -1; pointer-events: none;
  width: min(680px, 92%); right: -10%; top: -18%; opacity: .16;
  --hf-1: var(--seafoam); --hf-2: var(--teal-300); --hf-3: var(--navy-500); --hf-a: var(--seafoam);
}

.guide-standfirst {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: var(--white);
  max-width: 58ch;
  margin-bottom: 1.2em;
}

.guide-meta {
  font-size: .9rem; color: var(--seafoam); opacity: .84; line-height: 1.6;
  border-left: 2px solid rgba(191, 227, 218, .4);
  padding-left: 16px; max-width: 62ch; margin: 0;
}

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

/* The guide runs to a narrower shell than the landing page: long-form reading
   wants a shorter measure than a marketing layout does. */
.guide-shell { max-width: 1080px; }
.guide-layout { display: grid; grid-template-columns: 1fr; gap: clamp(26px, 3.5vw, 48px); align-items: start; }
.guide-body-col { min-width: 0; }
.guide-part p { max-width: 70ch; }

/* ------------------------------------------------------------- toc ------ */

.guide-toc {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.guide-toc h2 {
  font-size: .7rem; font-family: var(--sans);
  font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal-700); margin-bottom: 1.2em;
}
.guide-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.guide-toc li { counter-increment: toc; margin-bottom: 2px; }
.guide-toc a {
  display: block; position: relative;
  padding: 9px 10px 9px 34px; border-radius: var(--r-sm);
  color: var(--navy); text-decoration: none; font-size: .93rem; line-height: 1.4;
  transition: background-color .2s, color .2s;
}
.guide-toc a::before {
  content: counter(toc);
  position: absolute; left: 10px; top: 9px;
  font-size: .74rem; font-weight: 700; color: var(--slate);
  font-variant-numeric: tabular-nums;
  transition: color .2s;
}
.guide-toc a:hover { background: var(--seafoam-050); color: var(--teal-800); }
.guide-toc a.is-current {
  background: var(--seafoam-050); color: var(--navy); font-weight: 600;
  box-shadow: inset 2px 0 0 var(--teal);
}
.guide-toc a.is-current::before { color: var(--teal-700); }

/* --------------------------------------------------------------- parts -- */

.guide-part {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.5vw, 44px);
  margin-bottom: clamp(18px, 2.2vw, 26px);
  scroll-margin-top: 110px;
}

.part-label {
  font-family: var(--sans); font-size: .7rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal-700); margin: 0 0 1em;
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.5;
}
.part-label::before {
  content: ""; width: 22px; height: 2px; flex: none; margin-top: .72em;
  background: linear-gradient(90deg, var(--seafoam-400), var(--teal));
  border-radius: 2px;
}

.guide-part h2 { max-width: 20ch; margin-bottom: .55em; }

.guide-part p { font-size: 1.04rem; line-height: 1.72; color: var(--slate); }
.guide-part p strong { color: var(--navy); }

.guide-h3 {
  font-family: var(--sans); font-size: 1.1rem; font-weight: 700;
  margin-top: 2em; margin-bottom: .55em; color: var(--navy);
}

/* ------------------------------------------------------------- callout -- */

.callout {
  background: linear-gradient(150deg, var(--seafoam-050), var(--sand-050));
  border: 1px solid var(--seafoam);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 22px 26px;
  margin: 32px 0;
}
.callout h3 { font-size: 1.06rem; margin-bottom: .5em; color: var(--navy); }
.callout p { font-size: .98rem; margin-bottom: .9em; }
.callout p:last-child { margin-bottom: 0; }

.callout-warn {
  background: linear-gradient(150deg, var(--sand), var(--sand-050));
  border-color: var(--sand-300); border-left-color: var(--navy);
}

/* ---------------------------------------------------------- error list -- */

.error-list { list-style: none; counter-reset: err; margin: 34px 0; padding: 0; }
.error-list > li {
  counter-increment: err;
  position: relative;
  padding-left: 56px;
  margin-bottom: 30px;
}
.error-list > li::before {
  content: counter(err);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(140deg, var(--navy-600), var(--navy-950));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: .92rem; font-weight: 700;
  box-shadow: 0 6px 14px -8px rgba(8,23,36,.8);
}
.error-list h3 {
  font-family: var(--sans); font-size: 1.08rem; font-weight: 700;
  margin-bottom: .4em; color: var(--navy); padding-top: 5px;
}
.error-list p { font-size: 1rem; margin: 0; }

/* -------------------------------------------------------------- rights -- */

.rights { margin: 30px 0; }
.rights dt {
  font-family: var(--sans); font-size: 1.02rem; font-weight: 700;
  color: var(--navy); margin-top: 1.6em;
}
.rights dt:first-child { margin-top: 0; }
.rights dd {
  margin: .5em 0 0; padding-left: 18px;
  border-left: 2px solid var(--seafoam);
  color: var(--slate); font-size: 1rem; line-height: 1.68;
}

/* ---------------------------------------------------------------- tips -- */

.tips { margin: 22px 0 28px; padding-left: 0; list-style: none; }
.tips li {
  position: relative; padding-left: 26px; margin-bottom: 14px;
  font-size: 1.01rem; line-height: 1.68; color: var(--slate);
}
.tips li::before {
  content: ""; position: absolute; left: 2px; top: .66em;
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(140deg, var(--seafoam-400), var(--teal));
}
.tips strong { color: var(--navy); }

/* ----------------------------------------------------------- checklist -- */

.checklist {
  list-style: none; margin: 28px 0; padding: 0;
  border: 1px solid var(--sand-200); border-radius: var(--r-md);
  overflow: hidden;
}
.checklist li {
  position: relative;
  padding: 14px 20px 14px 52px;
  border-bottom: 1px solid var(--sand-200);
  font-size: .98rem; line-height: 1.55; color: var(--navy);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li:nth-child(odd) { background: var(--sand-050); }
.checklist li::before {
  content: ""; position: absolute; left: 20px; top: 16px;
  width: 16px; height: 16px; border-radius: 4px;
  border: 2px solid var(--teal); background: var(--white);
}

/* ----------------------------------------------------------------- cta -- */

.guide-cta {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: clamp(30px, 4vw, 48px);
  background:
    radial-gradient(85% 110% at 92% 0%, rgba(23,126,123,.34) 0%, rgba(23,126,123,0) 60%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-950) 100%);
  color: var(--seafoam);
  border-radius: var(--r-xl);
  padding: clamp(30px, 4vw, 48px) clamp(24px, 3.5vw, 44px);
  box-shadow: var(--shadow-navy);
}
.guide-cta-mark {
  position: absolute; z-index: -1; pointer-events: none;
  width: min(520px, 88%); right: -12%; top: -26%; opacity: .15;
  --hf-1: var(--seafoam); --hf-2: var(--teal-300); --hf-3: var(--navy-500); --hf-a: var(--seafoam);
}
.guide-cta h2 { color: var(--white); max-width: 20ch; }
.guide-cta p { color: var(--seafoam); font-size: 1.02rem; line-height: 1.68; }
.guide-cta .fineprint { color: var(--seafoam); opacity: .8; margin-top: 1.4em; }
.guide-cta-actions { margin: 26px 0 4px; }

/* ---------------------------------------------------------- responsive -- */

@media (min-width: 1000px) {
  .guide-layout { grid-template-columns: 236px minmax(0, 1fr); }
  .guide-toc { position: sticky; top: 104px; max-height: calc(100vh - 130px); overflow-y: auto; }
  .guide-part { padding: 40px 50px; }
}

@media (max-width: 480px) {
  .guide-toc { padding: 20px 18px; }
  .error-list > li { padding-left: 46px; }
  .error-list > li::before { width: 32px; height: 32px; font-size: .84rem; }
  .checklist li { padding: 13px 16px 13px 46px; }
  .checklist li::before { left: 16px; }
}

/* --------------------------------------------------------------- print -- */

@media print {
  .guide-toc, .guide-cta, .guide-nav, .read-progress, .band-rule { display: none; }
  .guide-body { background: #fff; }
  .guide-layout { display: block; }
  .guide-body-col { max-width: none; }
  .guide-cover {
    background: #fff !important; color: #000 !important;
    box-shadow: none; border: 1px solid #999; padding: 16pt;
  }
  .guide-cover h1, .guide-standfirst, .guide-meta { color: #000 !important; opacity: 1; }
  .guide-cover-mark { display: none; }
  .guide-part {
    border: 0; padding: 0; margin-bottom: 20pt;
    break-inside: auto; page-break-inside: auto;
  }
  .error-list > li, .callout, .checklist li { break-inside: avoid; page-break-inside: avoid; }
  .guide-part h2, .guide-h3 { break-after: avoid; page-break-after: avoid; }
  .callout, .checklist li:nth-child(odd) { background: #fff; border: 1px solid #999; }
  .guide-part p, .tips li, .rights dd, .error-list p { color: #000; }
  .error-list > li::before { background: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
