/* ══════════════════════════════════════════════════════════════════════
   Report design layer (2026-10-22)

   The free report in the site's premium styling: near-black canvas, navy
   cover over the coastal photograph, Instrument Serif titles, a clean sans
   with tabular figures for every number, white pages with quiet rules, and
   the lit teal buttons. Loaded by report.html after its own <style> blocks,
   so it only restyles: no ID, class hook, script or print rule it depends on
   is changed. Figures, labels and wording come from report.html as before.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --font-d: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-b: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Same palette as the site: near-black canvas, navy panels, one teal. */
  --navy:       #0a1d2c;
  --navy-mid:   #102738;
  --ink:        #03070b;
  --paper-2:    #f5f8fa;
  --grey-50:    #f7fafb;
  --grey-100:   #eef3f6;
  --grey-200:   #e1e8ed;
  --grey-400:   #8b9aa8;
  --grey-600:   #4b5d6d;
  --text:       #0d1520;
  --text-muted: #5b6b7a;
  --win-bg:     #e3f6f0;
  --win-text:   #0b6047;
  --lit:        linear-gradient(180deg, #3fe0dc 0%, #12cfcc 46%, #00b7b8 100%);
  --lit-hover:  linear-gradient(180deg, #5ce8e4 0%, #2ad9d6 46%, #05c3c3 100%);
  --lit-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(0,60,62,.25), 0 1px 2px rgba(0,0,0,.35), 0 8px 20px -10px rgba(0,200,200,.55);
}

body { font-family: var(--font-b); font-variant-numeric: tabular-nums; color: var(--text); }

/* ── Screen: pages laid on the dark canvas, like a document viewer ──── */
@media screen {
  html, body { background: var(--ink); }
  .page {
    border-radius: 6px;
    margin-bottom: 28px;
    box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 28px 60px -20px rgba(0,0,0,.65);
  }
  .page:first-of-type { margin-top: 24px; }
}

/* Section menu: a dark glass bar with the active section lit. */
.report-toc {
  background: rgba(3, 7, 11, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1b394b;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 6px;
}
.report-toc a {
  color: #a9bac7;
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  padding: 6px 15px;
  min-height: 34px;
  transition: color 160ms ease, background 160ms ease;
}
.report-toc a:hover { background: rgba(255,255,255,.06); color: #f2f6f8; }
.report-toc a.active { background: var(--lit); color: #04131c; box-shadow: var(--lit-shadow); font-weight: 650; }

/* Save as PDF: the site's lit teal button. */
.print-btn {
  background: var(--lit) !important;
  color: #04131c !important;
  border: 1px solid rgba(0,120,122,.55) !important;
  border-radius: 10px !important;
  box-shadow: var(--lit-shadow) !important;
  font-family: var(--font-b) !important;
  font-weight: 650 !important;
  letter-spacing: .01em;
}
.print-btn:hover { background: var(--lit-hover) !important; }

/* ── Cover ─────────────────────────────────────────────────────────── */
.cover {
  background:
    linear-gradient(180deg, rgba(3,7,11,0) 0%, rgba(3,7,11,0) 34%, #03070b 62%),
    linear-gradient(90deg, #03070b 0%, rgba(3,7,11,.94) 34%, rgba(6,21,34,.62) 70%, rgba(6,21,34,.28) 100%),
    url('/assets/home/hero-coast-desktop.webp') right top / auto 62% no-repeat,
    #03070b;
}
.cover-header { border-bottom: 1px solid rgba(255,255,255,.07); }
.cover-tag { color: rgba(242,246,248,.5); font-family: var(--font-b); letter-spacing: 2.2px; font-weight: 600; }
.cover-hero { padding-top: 16mm; }
.cover-eyebrow { color: #2ad9d6; font-family: var(--font-b); font-weight: 650; letter-spacing: 2.4px; margin-bottom: 5mm; }
.cover-title {
  font-family: var(--font-d);
  font-weight: 400;
  font-size: 44pt;
  line-height: .98;
  letter-spacing: -.01em;
  max-width: 125mm;
  margin-bottom: 4mm;
}
.cover-title .cover-title-accent { color: #2ad9d6; }
.cover-subtitle { color: rgba(242,246,248,.62); font-size: 11pt; margin-bottom: 8mm; }
.cover-divider { width: 22mm; height: 2px; background: #00c8c8; margin-bottom: 8mm; border-radius: 1px; }
.cover-forward-callout {
  background: rgba(10,29,44,.72) !important;
  border: 1px solid rgba(27,57,75,.9) !important;
  border-left: 2px solid #00c8c8 !important;
  border-radius: 8px !important;
  color: rgba(242,246,248,.82) !important;
}
.cover-meta-item label { color: rgba(169,186,199,.75); font-family: var(--font-b); font-weight: 600; letter-spacing: 1.6px; }
.cover-meta-item value { font-size: 11pt; color: #f2f6f8; font-weight: 600; }
.cover-narrative {
  background: rgba(10,29,44,.66) !important;
  border: 1px solid #1b394b !important;
  border-left: 2px solid #00c8c8 !important;
  border-radius: 8px !important;
  color: #e4ecf1 !important;
}
.cover-footer { border-top: 1px solid rgba(255,255,255,.06); }
.cover-footer-text { color: rgba(169,186,199,.55); font-style: normal; }

/* "View all the data below" (inline-styled by the script): the lit fill. */
.cover a[href="#page-2"] {
  background: var(--lit) !important;
  color: #04131c !important;
  border: 1px solid rgba(0,120,122,.55) !important;
  border-radius: 10px !important;
  box-shadow: var(--lit-shadow) !important;
  font-family: var(--font-b) !important;
  font-weight: 650 !important;
  font-size: 9pt !important;
  padding: 3.4mm 6.5mm !important;
}
.cover a[href="#page-2"]:hover { background: var(--lit-hover) !important; }

/* Personalise panel (screen only): a navy card with inset fields. */
.customise-panel {
  background: #0a1d2c !important;
  border: 1px solid #1b394b !important;
  border-radius: 14px !important;
}
.customise-head { font-family: var(--font-b); color: #2ad9d6 !important; letter-spacing: 1.8px; font-weight: 650; }
.customise-panel input,
.customise-panel select {
  background: #061321 !important;
  border: 1px solid #1b394b !important;
  border-radius: 10px !important;
  color: #f2f6f8 !important;
  font-family: var(--font-b) !important;
}
.customise-panel input:focus,
.customise-panel select:focus { border-color: #00c8c8 !important; outline: none; box-shadow: none !important; }
.customise-btns { border-radius: 10px !important; border-color: #1b394b !important; background: #061321 !important; overflow: hidden; }
.customise-btns button { font-family: var(--font-b) !important; color: #a9bac7 !important; border-color: #1b394b !important; }
.customise-btns button.active {
  background: linear-gradient(180deg, #2ad9d6 0%, #00c2c2 100%) !important;
  color: #04131c !important;
  font-weight: 650 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

/* ── Inner pages ───────────────────────────────────────────────────── */
.page-header { border-bottom: 1px solid var(--grey-200); padding-bottom: 5mm; margin-bottom: 8mm; }
.page-label {
  font-family: var(--font-b);
  color: var(--grey-600);
  font-size: 8pt;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  border-left-color: var(--grey-200);
}
.page-number {
  font-family: var(--font-b);
  color: #0e7490;
  font-weight: 650;
  letter-spacing: 1.6px;
}

.section-title {
  font-family: var(--font-d);
  font-weight: 400;
  font-size: 21pt;
  line-height: 1.08;
  letter-spacing: -.005em;
  color: var(--text);
  margin-bottom: 2mm;
}
/* Sub-section titles carry an inline 12pt; the serif needs a little more. */
.section-title[style*="font-size"] { font-size: 15.5pt !important; }
.section-sub { font-size: 8.5pt; line-height: 1.55; color: var(--text-muted); margin-bottom: 6mm; max-width: 165mm; }
.section-gap { margin-bottom: 8mm; }

/* Source labels: one quiet pill per section, sans, not shouty. */
.prov {
  font-family: var(--font-b);
  font-size: 6pt;
  font-weight: 650;
  letter-spacing: .7px;
  padding: .8mm 2.2mm;
  border-radius: 999px;
  vertical-align: 3px;
}
.prov-official { background: #e7f6f6; color: #0b5559; border-color: #c4e8e8; }
.prov-est      { background: #fbf3e6; color: #7f5413; border-color: #f0dfc2; }
.prov-gen      { background: #eff1fa; color: #3f4a86; border-color: #d9ddf2; }

/* Tables: navy header, airy rows, the total on navy with the winner lit. */
.cmp-table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--grey-200); border-radius: 8px; overflow: hidden; }
.cmp-table th {
  background: var(--navy);
  font-family: var(--font-b);
  font-size: 6.8pt;
  font-weight: 650;
  letter-spacing: 1px;
  padding: 3mm 2.6mm;
}
.cmp-table td { padding: 2.8mm 2.6mm; border-bottom-color: var(--grey-200); }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table .total-row td { background: var(--navy) !important; font-size: 10pt; }
.cmp-table .total-row td.total-win { background: var(--lit) !important; color: #04131c !important; }

/* Call-outs: one family, teal edge on a pale panel. */
.price-equiv,
.report-context-prompt,
#rank-mode-callout {
  background: linear-gradient(180deg, #f3fbfb 0%, #f7fafb 100%) !important;
  border: 1px solid #d5ecec !important;
  border-left: 3px solid #00c8c8 !important;
  border-radius: 8px !important;
}
.price-equiv-title { font-family: var(--font-d); font-weight: 400; font-size: 14pt; color: var(--text); }
.price-equiv .pe-figure { color: #0e7490; }
.disclaimer { font-style: normal; color: var(--text-muted); font-size: 6.8pt; }
.return-link { color: #0e7490; font-weight: 600; }

/* ── Broker introduction ───────────────────────────────────────────── */
#broker-cta {
  background: #0a1d2c !important;
  border: 1px solid #1b394b !important;
  border-radius: 16px !important;
  color: #f2f6f8;
}
.broker-h { font-family: var(--font-d) !important; font-weight: 400 !important; letter-spacing: -.005em; }
.broker-btn-primary,
.broker-submit {
  background: var(--lit) !important;
  color: #04131c !important;
  border: 1px solid rgba(0,120,122,.55) !important;
  border-radius: 10px !important;
  box-shadow: var(--lit-shadow) !important;
  font-family: var(--font-b) !important;
  font-weight: 650 !important;
}
.broker-btn-primary:hover,
.broker-submit:hover { background: var(--lit-hover) !important; }

/* ── Phones: pages run edge to edge on the dark canvas ─────────────── */
@media screen and (max-width: 700px) {
  .page { border-radius: 0; margin-bottom: 14px; box-shadow: none; }
  .page:first-of-type { margin-top: 0; }
  .cover {
    background:
      linear-gradient(180deg, rgba(3,7,11,.15) 0%, rgba(3,7,11,.55) 30%, #03070b 52%),
      linear-gradient(90deg, #03070b 0%, rgba(3,7,11,.86) 40%, rgba(6,21,34,.45) 100%),
      url('/assets/home/hero-coast-mobile.webp') right top / 70% auto no-repeat,
      #03070b;
  }
  .cover-title { font-size: 34pt; }
  .cover-tag { display: none; }   /* wraps beside the logo at phone width; the eyebrow says the same */
  .page-number { white-space: nowrap; }
  .section-title { font-size: 19pt; }
  .report-toc { justify-content: flex-start; }
}

/* ── Print: white pages, the cover keeps its photograph ────────────── */
@media print {
  .page { border-radius: 0; box-shadow: none; }
  .cover { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (prefers-reduced-motion: reduce) {
  .report-toc a { transition: none; }
}
