/* Assos Marine Services — site styles.
   Layout concept: a chart table. Content sits on chart paper with a faint graticule;
   headings are set like a pilot book, data like an ECDIS readout, and the only
   strong colour is the red of the spade. Day palette by default, night palette in dark mode. */

:root {
  --paper: #F1F5F7;        /* chart paper */
  --sheet: #FFFFFF;        /* panels and windows */
  --ink: #0E2232;          /* headings and body */
  --ink-soft: #445A6C;     /* secondary text */
  --rule: #D2DCE2;         /* hairlines */
  --sea: #1D5B87;          /* links, interactive, chart lines */
  --shoal: #DDEAF2;        /* tinted bands, like shallow water on a chart */
  --spade: #C8102E;        /* the logo red: calls to action and key marks only */
  --valid: #1E6B45;        /* "Valid" */
  --amber: #9A6A00;        /* warnings in vignettes */
  --grid: rgba(29, 91, 135, 0.075);
  --contour: rgba(29, 91, 135, 0.16);
  --track: #C8102E;
  --on-spade: #FFFFFF;
  --deep: #0E2232;          /* dark bands */
  --on-deep: #E8EEF2;
  --deep-line: #24394B;
  --shadow: 0 1px 0 rgba(14, 34, 50, 0.04), 0 12px 32px -18px rgba(14, 34, 50, 0.28);

  --f-display: "Literata", "Literata Variable", Georgia, "Times New Roman", serif;
  --f-body: "Commissioner", "Commissioner Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --f-data: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --t-xs: 0.78rem;   /* 12.5 */
  --t-sm: 0.875rem;  /* 14 */
  --t-md: 1.0625rem; /* 17 body */
  --t-lg: 1.25rem;   /* 20 */
  --t-xl: 1.6rem;    /* 25.6 */
  --t-2xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.4rem);
  --t-3xl: clamp(2.2rem, 1.3rem + 3.4vw, 3.7rem);

  --wrap: 1180px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 4px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #08131B; --sheet: #0D1C27; --ink: #E3EBF0; --ink-soft: #9BB0BF; --rule: #1D3243;
    --sea: #7DB4DF; --shoal: #0F2738; --spade: #EE4555; --valid: #4FC48C; --amber: #E2B44A;
    --grid: rgba(125, 180, 223, 0.06); --contour: rgba(125, 180, 223, 0.13); --track: #EE4555;
    --on-spade: #FFFFFF; --deep: #0C1A25; --on-deep: #E3EBF0; --deep-line: #1F3445; --shadow: 0 1px 0 rgba(0,0,0,.3), 0 14px 36px -20px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #08131B; --sheet: #0D1C27; --ink: #E3EBF0; --ink-soft: #9BB0BF; --rule: #1D3243;
  --sea: #7DB4DF; --shoal: #0F2738; --spade: #EE4555; --valid: #4FC48C; --amber: #E2B44A;
  --grid: rgba(125, 180, 223, 0.06); --contour: rgba(125, 180, 223, 0.13); --track: #EE4555;
  --on-spade: #FFFFFF; --deep: #0C1A25; --on-deep: #E3EBF0; --deep-line: #1F3445; --shadow: 0 1px 0 rgba(0,0,0,.3), 0 14px 36px -20px rgba(0,0,0,.8);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t-md)/1.6 var(--f-body);
  font-optical-sizing: auto; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--sheet); }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--t-3xl); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); line-height: 1.25; }
h4 { font-size: var(--t-md); font-family: var(--f-body); font-weight: 650; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 650; }
.mono { font-family: var(--f-data); font-size: 0.86em; letter-spacing: 0; }
.nums { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sheet); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 32px); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.narrow { max-width: calc(780px + 32px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--sheet) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 34px; height: 34px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.02; }
.brand-name b { font: 650 1.08rem/1.05 var(--f-display); letter-spacing: 0.01em; }
.brand-name span { font: 500 0.66rem/1.2 var(--f-data); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.93rem; font-weight: 500; padding: 8px 10px; border-radius: var(--radius); white-space: nowrap; }
.nav a:hover { background: var(--shoal); }
.nav a[aria-current="page"] { color: var(--sea); box-shadow: inset 0 -2px 0 var(--spade); border-radius: 0; }
.lang { display: flex; gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.lang a, .lang span { font: 500 0.74rem/1 var(--f-data); letter-spacing: 0.08em; padding: 8px 9px; text-decoration: none; color: var(--ink-soft); }
.lang span { background: var(--ink); color: var(--sheet); }
.lang a:hover { background: var(--shoal); color: var(--ink); }
.header-cta { flex-shrink: 0; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; font: 600 0.9rem/1 var(--f-body); padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(86vw, 340px);
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px; display: flex; flex-direction: column;
}
.menu-panel a { color: var(--ink); text-decoration: none; padding: 12px 12px; border-radius: var(--radius); font-weight: 500; }
.menu-panel a[aria-current="page"] { color: var(--sea); background: var(--shoal); }
.menu-panel .lang { margin: 8px 12px 6px; align-self: flex-start; }
.menu-panel .btn { margin: 6px 12px 8px; }

@media (max-width: 1120px) {
  .nav a { padding: 8px 7px; font-size: 0.89rem; }
  .site-header .header-cta { display: none; }
}
@media (max-width: 940px) {
  .nav, .site-header .wrap > .lang { display: none; }
  .menu { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: var(--radius);
  font: 600 0.97rem/1 var(--f-body); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--spade); color: var(--on-spade); }
.btn-primary:hover { background: color-mix(in srgb, var(--spade) 86%, #000); }
.btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.btn-ghost:hover { border-color: var(--ink); background: var(--sheet); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.9rem; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- type helpers ---------- */
.eyebrow { font: 500 0.74rem/1.3 var(--f-data); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sea); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--spade); flex-shrink: 0; }
.lede { font-size: var(--t-lg); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 1em; }
.prose h2 { margin-top: 1.2em; font-size: var(--t-xl); }
.prose h3 { margin-top: 0.8em; }
.prose ul, .prose ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 0.45em; }
.prose li::marker { color: var(--sea); }
.muted { color: var(--ink-soft); }
.small { font-size: var(--t-sm); }
.note { font-size: var(--t-sm); color: var(--ink-soft); border-left: 2px solid var(--sea); padding: 2px 0 2px 14px; max-width: 70ch; }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 7vw, 104px); }
.section-tight { padding-block: clamp(40px, 5vw, 68px); }
.band { background: var(--sheet); border-block: 1px solid var(--rule); }
.band-shoal { background: var(--shoal); }
.band-ink { background: var(--deep); color: var(--on-deep); border-block: 1px solid var(--deep-line); }
.band-ink h2, .band-ink h3 { color: var(--on-deep); }
.band-ink .muted, .band-ink .lede { color: color-mix(in srgb, var(--on-deep) 72%, var(--deep)); }
.band-ink .eyebrow { color: color-mix(in srgb, var(--on-deep) 80%, var(--sea)); }
.band-ink a:not(.btn) { color: var(--on-deep); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; max-width: 64ch; }
.section-head.flush { margin-bottom: 0; }
.section-head p.eyebrow { font-size: 0.74rem; color: var(--sea); }
.band-ink .section-head p.eyebrow { color: color-mix(in srgb, var(--on-deep) 80%, var(--sea)); }
.band-ink .section-head p { color: color-mix(in srgb, var(--on-deep) 72%, var(--deep)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.split > * { min-width: 0; }
@media (max-width: 880px) { .split, .split-wide { grid-template-columns: minmax(0, 1fr); } }

/* graticule */
.graticule {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 96px 96px; background-position: -1px -1px;
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero canvas.contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-text .lede { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem); }
.hero-visual { min-width: 0; position: relative; }
.hero-sub { font: 500 clamp(1.2rem, 1rem + 0.9vw, 1.6rem)/1.35 var(--f-display); color: var(--ink); max-width: 30ch; text-wrap: balance; }
.hero-simple .wrap { grid-template-columns: minmax(0, 1fr); padding-block: clamp(44px, 6vw, 84px); }
.hero-simple .hero-text { max-width: 820px; }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.grid > * { min-width: 0; }

.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.card p { color: var(--ink-soft); }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.card .more::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .2s; }
.card .more:hover::after { width: 28px; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--sea); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tag { font: 500 0.7rem/1 var(--f-data); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.svc-card h3 { font-size: 1.42rem; }
.svc-card .tag { color: var(--sea); }
.svc-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 0.95rem; color: var(--ink-soft); }
.svc-card li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; }
.svc-card li::before { content: ""; height: 1px; background: var(--sea); margin-top: 0.8em; }
.svc-card-lead { border-top: 3px solid var(--spade); }

/* tick list */
.ticks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.ticks li::before { content: ""; width: 12px; height: 7px; margin-top: 0.5em; border-left: 2px solid var(--sea); border-bottom: 2px solid var(--sea); transform: rotate(-45deg); }
.band-ink .ticks li::before { border-color: color-mix(in srgb, var(--on-deep) 70%, var(--sea)); }

/* definition rows: service catalogues */
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 12px clamp(20px, 4vw, 56px); padding-block: clamp(20px, 2.6vw, 30px); border-bottom: 1px solid var(--rule); }
.row > * { min-width: 0; }
.row h3 { font-size: 1.3rem; }
.row .row-sub { color: var(--ink-soft); margin-top: 8px; font-size: 0.96rem; }
.row-body { display: flex; flex-direction: column; gap: 12px; }
.row-body > p { color: var(--ink-soft); }
@media (max-width: 760px) { .row { grid-template-columns: minmax(0, 1fr); } }

/* catalogue of plans and manuals */
.catalogue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
@media (max-width: 820px) { .catalogue { grid-template-columns: minmax(0, 1fr); } }
.cat { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); }
.cat h3 { font-size: 1.12rem; padding: 18px 22px 14px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cat h3 .tag { font-family: var(--f-data); }
.cat ul { list-style: none; }
.cat li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 22px; border-bottom: 1px dashed var(--rule); font-size: 0.95rem; }
.cat li:last-child { border-bottom: 0; }
.cat li span:last-child { font: 400 0.76rem/1.6 var(--f-data); color: var(--ink-soft); text-align: right; white-space: nowrap; }
@media (max-width: 460px) { .cat li { flex-direction: column; gap: 2px; } .cat li span:last-child { text-align: left; white-space: normal; } }

/* steps: real sequences only */
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 500 0.95rem/1.6 var(--f-data); color: var(--spade); }
.steps h3 { font-size: 1.12rem; margin-bottom: 6px; font-family: var(--f-body); font-weight: 650; letter-spacing: 0; }
.steps p { color: var(--ink-soft); }
.band-ink .steps, .band-ink .steps li { border-color: var(--deep-line); }
.band-ink .steps p { color: color-mix(in srgb, var(--on-deep) 72%, var(--deep)); }
.band-ink .steps li::before { color: color-mix(in srgb, var(--spade) 70%, #fff); }

/* principles */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.principles > div { border-top: 1px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.principles h3 { font-size: 1.12rem; font-family: var(--f-body); font-weight: 650; letter-spacing: 0; }
.principles p { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 980px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* findings (pilot figures) */
.findings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--deep-line); border: 1px solid var(--deep-line); }
.findings > div { background: var(--deep); padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.findings b { font: 500 clamp(2rem, 1.4rem + 2vw, 2.8rem)/1 var(--f-data); color: var(--on-deep); letter-spacing: -0.03em; }
.findings b small { font-size: 0.45em; letter-spacing: 0; color: color-mix(in srgb, var(--on-deep) 65%, var(--deep)); margin-left: 4px; }
.findings p { color: color-mix(in srgb, var(--on-deep) 76%, var(--deep)); font-size: 0.96rem; }
@media (max-width: 980px) { .findings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .findings { grid-template-columns: minmax(0, 1fr); } }

/* regulatory timeline */
.timeline { border-top: 1px solid var(--rule); }
.tl { display: grid; grid-template-columns: 172px minmax(0, 1fr) auto; gap: 8px 28px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.tl > * { min-width: 0; }
.tl time { font: 500 0.92rem/1.4 var(--f-data); color: var(--ink); }
.tl h3 { font-size: 1.04rem; font-family: var(--f-body); font-weight: 650; letter-spacing: 0; line-height: 1.4; }
.tl p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 4px; }
.chip { font: 500 0.68rem/1 var(--f-data); letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 8px; border-radius: 2px; white-space: nowrap; border: 1px solid currentColor; }
.chip-now { color: var(--valid); }
.chip-next { color: var(--spade); }
.chip-later { color: var(--ink-soft); }
@media (max-width: 700px) {
  .tl { grid-template-columns: minmax(0, 1fr) auto; }
  .tl time { grid-column: 1; }
  .tl .chip { grid-column: 2; grid-row: 1; justify-self: end; }
  .tl > div { grid-column: 1 / -1; }
}

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 1.06rem/1.4 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--sea); border-bottom: 1.5px solid var(--sea); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-soft); max-width: 70ch; display: flex; flex-direction: column; gap: 10px; }

/* CTA band */
.cta { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.cta h2 { max-width: 22ch; }
.cta .cta-side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
@media (max-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* email cards */
.mail { display: flex; flex-direction: column; gap: 14px; }
.mail .addr { font: 500 clamp(1rem, 0.9rem + 0.5vw, 1.2rem)/1.3 var(--f-data); color: var(--ink); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.mail .mail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.copied { color: var(--valid) !important; border-color: var(--valid) !important; }

/* article */
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 0.8rem/1.4 var(--f-data); color: var(--ink-soft); letter-spacing: 0.04em; }
.sources { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 12px; font-size: var(--t-sm); color: var(--ink-soft); }
.sources ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.article-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.article-item { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 32px; padding: 26px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
.article-item:hover h3 { color: var(--sea); }
.article-item h3 { font-size: 1.32rem; margin-bottom: 8px; transition: color .15s; }
.article-item p { color: var(--ink-soft); }
.article-item > div:first-child { display: flex; flex-direction: column; gap: 6px; font: 500 0.8rem/1.4 var(--f-data); color: var(--ink-soft); }
@media (max-width: 700px) { .article-item { grid-template-columns: minmax(0, 1fr); } }

/* ---------- vignettes (program windows, drawn as UI) ---------- */
.window { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; font-size: 0.86rem; }
.window-bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--shoal) 55%, var(--sheet)); }
.window-bar img { width: 16px; height: 16px; }
.window-bar b { font: 600 0.8rem/1 var(--f-body); }
.window-bar span { font: 400 0.72rem/1 var(--f-data); color: var(--ink-soft); margin-left: auto; white-space: nowrap; }
.window-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.example { font: 500 0.66rem/1 var(--f-data); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

.vtable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.vtable th { text-align: left; font: 500 0.68rem/1.3 var(--f-data); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); padding: 0 8px 8px 0; border-bottom: 1px solid var(--rule); }
.vtable td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.vtable td.r, .vtable th.r { text-align: right; padding-right: 0; padding-left: 14px; }
.vtable tr:last-child td { border-bottom: 0; }
.vtable .t { font: 400 0.74rem/1.4 var(--f-data); color: var(--ink-soft); display: block; margin-top: 2px; }
.vtable tfoot td { border-top: 1.5px solid var(--ink); border-bottom: 0; font-weight: 650; }
.pct { font: 500 0.74rem/1 var(--f-data); padding: 4px 6px; border-radius: 2px; background: var(--shoal); color: var(--sea); white-space: nowrap; }
.pct-100 { background: color-mix(in srgb, var(--spade) 14%, var(--sheet)); color: var(--spade); }
.pct-0 { background: transparent; color: var(--ink-soft); border: 1px solid var(--rule); }
.table-scroll { overflow-x: auto; }

.statement { position: relative; }
.statement .qr-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; padding-top: 12px; border-top: 1px dashed var(--rule); }
.qr { width: 92px; height: 92px; background: #fff; padding: 4px; border-radius: 2px; border: 1px solid var(--rule); }
.qr svg { width: 100%; height: 100%; display: block; }
.valid-badge { display: inline-flex; align-items: center; gap: 8px; font: 700 1.05rem/1 var(--f-body); color: #fff; background: var(--valid); padding: 7px 12px; border-radius: 3px; letter-spacing: 0.01em; }
.valid-badge svg { width: 14px; height: 14px; }

/* hero composition */
.hero-chart { position: relative; display: flex; flex-direction: column; }
.hero-chart svg.track { display: block; width: 100%; height: auto; overflow: visible; }
.hero-chart .statement { position: relative; z-index: 1; align-self: flex-end; width: min(80%, 372px); margin-top: -104px; }
.statement.compact .window-body { padding: 12px 14px 14px; gap: 10px; }
.statement.compact .vtable td { padding-block: 7px; }
.statement.compact .qr-row { grid-template-columns: 76px minmax(0, 1fr); padding-top: 10px; }
.statement.compact .qr { width: 76px; height: 76px; }
.track-line { fill: none; stroke: var(--track); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.track-ahead { fill: none; stroke: var(--ink-soft); stroke-width: 1.3; stroke-dasharray: 2 6; stroke-linecap: round; }
.track-dot { fill: var(--sheet); stroke: var(--track); stroke-width: 2; }
.track-anchor { fill: var(--sheet); stroke: var(--sea); stroke-width: 2; }
.track-label { font: 500 11px/1 var(--f-data); fill: var(--ink); }
.track-sub { font: 400 10px/1 var(--f-data); fill: var(--ink-soft); }
.track-port { font: 600 12.5px/1 var(--f-body); fill: var(--ink); }
.coast { fill: color-mix(in srgb, var(--shoal) 70%, var(--sheet)); stroke: color-mix(in srgb, var(--sea) 45%, transparent); stroke-width: 1; }
.depth { font: 400 9.5px/1 var(--f-data); fill: color-mix(in srgb, var(--sea) 55%, transparent); }
.grat-label { font: 400 9.5px/1 var(--f-data); fill: var(--ink-soft); letter-spacing: 0.04em; }
@media (max-width: 560px) {
  .hero-chart { overflow: hidden; }
  .hero-chart svg.track { width: 118%; margin-left: -9%; }
  .hero-chart .statement { width: 100%; margin-top: 8px; }
}

/* berth-to-berth diagram */
.b2b { width: 100%; height: auto; }
.b2b text { font-family: var(--f-data); }
.b2b .seg-voy { fill: color-mix(in srgb, var(--sea) 22%, var(--sheet)); }
.b2b .seg-port { fill: color-mix(in srgb, var(--spade) 26%, var(--sheet)); }
.b2b .seg-zero { fill: var(--sheet); stroke: var(--rule); }
.b2b .lbl { font-size: 11px; fill: var(--ink); }
.b2b .sub { font-size: 10px; fill: var(--ink-soft); }
.b2b .pctl { font-size: 12px; font-weight: 600; fill: var(--ink); }
.b2b .tick { stroke: var(--ink); stroke-width: 1; }
.b2b .axis { stroke: var(--rule); stroke-width: 1; }
.b2b-wrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 18px 10px; }
.b2b-wrap svg { min-width: 900px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.86rem; color: var(--ink-soft); margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 10px; border-radius: 1px; display: inline-block; }
.legend .lv { background: color-mix(in srgb, var(--sea) 22%, var(--sheet)); border: 1px solid color-mix(in srgb, var(--sea) 40%, transparent); }
.legend .lp { background: color-mix(in srgb, var(--spade) 26%, var(--sheet)); border: 1px solid color-mix(in srgb, var(--spade) 40%, transparent); }
.legend .lz { background: var(--sheet); border: 1px solid var(--rule); }

/* charts */
.chart text { font-family: var(--f-data); font-size: 10px; fill: var(--ink-soft); }
.chart .band-a { fill: color-mix(in srgb, var(--valid) 10%, var(--sheet)); }
.chart .band-b { fill: color-mix(in srgb, var(--valid) 5%, var(--sheet)); }
.chart .band-c { fill: color-mix(in srgb, var(--sea) 4%, var(--sheet)); }
.chart .band-d { fill: color-mix(in srgb, var(--amber) 9%, var(--sheet)); }
.chart .band-e { fill: color-mix(in srgb, var(--spade) 9%, var(--sheet)); }
.chart .gridline { stroke: var(--rule); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.chart .proj { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 5 4; }
.chart .proj2 { fill: none; stroke: var(--sea); stroke-width: 1.8; stroke-dasharray: 5 4; }
.chart .end { fill: var(--sheet); stroke: var(--ink); stroke-width: 2; }
.chart .end2 { fill: var(--sheet); stroke: var(--sea); stroke-width: 2; }
.chart .rating { font-weight: 500; fill: var(--ink-soft); }
.chart .lab { fill: var(--ink); font-size: 10.5px; }
.chart .lab2 { fill: var(--sea); font-size: 10.5px; }

/* checks list vignette */
.checks { list-style: none; display: flex; flex-direction: column; }
.checks li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); transform: translateY(-1px); }
.checks li.info::before { background: var(--sea); }
.checks b { font: 500 0.82rem/1 var(--f-data); color: var(--ink); white-space: nowrap; }

/* phone verify mock */
.phone { width: min(300px, 100%); margin: 0 auto; background: #0B1924; border: 1px solid var(--deep-line); border-radius: 34px; padding: 12px; box-shadow: var(--shadow); }
.phone-screen { background: #E9EEF0; border-radius: 24px; overflow: hidden; color: #102436; font-family: var(--f-body); }
.phone-top { height: 26px; display: flex; justify-content: center; align-items: center; }
.phone-top i { width: 70px; height: 6px; border-radius: 6px; background: #C9D3D8; }
.phone-url { margin: 0 12px 10px; background: #fff; border-radius: 8px; padding: 7px 10px; font: 500 10.5px/1 var(--f-data); color: #3B5161; text-align: center; }
.phone-body { padding: 4px 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.phone-card { background: #fff; border: 3px solid #1E6B45; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.phone-card .pv { display: inline-block; align-self: flex-start; background: #1E6B45; color: #fff; font: 700 26px/1.1 var(--f-body); padding: 4px 14px; border-radius: 6px; }
.phone-card dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.phone-card dt { font-size: 10px; color: #3B5161; }
.phone-card dd { margin: 0; font: 600 12px/1.3 var(--f-body); color: #102436; }
.phone-note { font-size: 10.5px; color: #3B5161; line-height: 1.4; }

/* GA drawing */
.ga { width: 100%; height: auto; }
.ga .hull { fill: color-mix(in srgb, var(--shoal) 60%, var(--sheet)); stroke: var(--ink); stroke-width: 1.4; }
.ga .ln { fill: none; stroke: var(--ink); stroke-width: 1.1; }
.ga .ln-soft { fill: none; stroke: var(--ink-soft); stroke-width: 0.8; }
.ga .fill-soft { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.1; }
.ga .wl { stroke: var(--sea); stroke-width: 1; stroke-dasharray: 8 4; }
.ga .dim { stroke: var(--ink-soft); stroke-width: 0.8; }
.ga text { font-family: var(--f-data); font-size: 10px; fill: var(--ink-soft); }
.ga .callout { fill: var(--spade); }
.ga .callout-t { fill: var(--ink); font-size: 10.5px; }

/* ---------- footer ---------- */
.site-footer { background: var(--sheet); border-top: 1px solid var(--rule); padding-block: 56px 36px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h4 { font: 500 0.72rem/1.3 var(--f-data); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: var(--sea); text-decoration: underline; }
.footer-about { display: flex; flex-direction: column; gap: 14px; max-width: 36ch; }
.footer-about p { color: var(--ink-soft); font-size: 0.95rem; }
.footer-mail a { font-family: var(--f-data); font-size: 0.86rem; overflow-wrap: anywhere; }
.footer-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule); padding-top: 22px; margin-top: 12px; font-size: 0.86rem; color: var(--ink-soft); }
.footer-base a { font-size: 0.86rem; }
@media (max-width: 900px) { .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: pulse 2.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }
  @keyframes pulse { 0% { opacity: .55; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(3.2); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  .site-header, .site-footer, .hero canvas { display: none; }
  body { background: #fff; }
}
.qr-text { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; min-width: 0; }
.stack > .phone, .stack > .window, .stack > figure { align-self: stretch; }
.stack > .phone { align-self: center; }
.sticky-col { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
@media (min-width: 881px) { .sticky-col, .sticky { position: sticky; top: 100px; } }
.split-tl { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
@media (max-width: 880px) { .split-tl { grid-template-columns: minmax(0, 1fr); } }
.pilot-foot { margin-top: 18px; }
figure { margin: 0; }
.mods .card { gap: 8px; }
.mods h3 { font-size: 1.12rem; }
.mods p { font-size: 0.95rem; }
.b2b-block { margin-top: clamp(36px, 5vw, 64px); display: flex; flex-direction: column; gap: 16px; }
.top8 { margin-top: 8px; }
.top16 { margin-top: 16px; }
sub { font-size: 0.72em; line-height: 0; vertical-align: -0.25em; }

.col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.col > .section-head { margin-bottom: 0; }
.ga-band { padding-block: clamp(28px, 4vw, 48px); }
.ga-band figure { display: flex; flex-direction: column; gap: 10px; }
.ga-scroll { overflow-x: auto; }
.ga-scroll svg { min-width: 760px; }
