/* CrewSteps — shared styles
   Palette: hull white, ink, chart blue, sea glass, SOLAS orange (safety-kit orange, used sparingly) */
:root {
  --hull: #f7f9fa;
  --paper: #ffffff;
  --ink: #14263b;
  --muted: #566577;
  --chart: #2f5d7c;
  --glass: #d9ebe7;
  --glass-deep: #b9d9d2;
  --solas: #e8561c;
  --solas-dark: #b9420f;
  --line: #d6dde3;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1160px;
  --measure: 66ch;
  --radius-s: 4px;
  --radius-m: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--hull);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.68;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--chart); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--solas); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Headings: Archivo, widened */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-stretch: 112%;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-weight: 800; font-size: clamp(2.3rem, 5.4vw, 4.1rem); letter-spacing: -0.025em; }
h2 { font-weight: 750; font-size: clamp(1.55rem, 2.6vw, 2rem); }
h3 { font-weight: 700; font-size: 1.2rem; }
p { margin: 0 0 1.1em; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--sans); font-weight: 800; font-stretch: 118%; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--sans); font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--solas); }

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-weight: 650; font-size: 1rem; text-decoration: none; padding: 13px 22px; border-radius: var(--radius-s); border: 2px solid var(--solas); background: var(--solas); color: #fff; }
.btn:hover { background: var(--solas-dark); border-color: var(--solas-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Home ---------- */
.hero { padding: 72px 0 40px; }
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: 1.3rem; line-height: 1.55; color: var(--muted); max-width: 46ch; margin: 22px 0 30px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* The route: the one memorable element */
.route { margin: 36px 0 0; padding: 40px 0 56px; background: var(--ink); color: #fff; }
.route-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.route-head h2 { color: #fff; }
.route-head p { margin: 8px 0 0; color: #b9c6d3; font-size: 1rem; max-width: 52ch; }
.total { font-family: var(--sans); text-align: right; }
.total .amount { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; font-stretch: 115%; line-height: 1; color: var(--solas); display: block; }
.total .what { font-size: 0.95rem; color: #b9c6d3; }

.stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; counter-reset: stop; }
.stops::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: repeating-linear-gradient(90deg, #5b7389 0 10px, transparent 10px 18px); }
.stop { position: relative; padding-right: 18px; counter-increment: stop; }
.stop .dot { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); border: 2px solid #8fa3b6; display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: 0.95rem; position: relative; }
.stop .dot::after { content: counter(stop); }
.stop.must .dot { background: var(--solas); border-color: var(--solas); }
.stop h3 { color: #fff; font-size: 1.05rem; margin: 16px 0 4px; font-stretch: 105%; }
.stop .cost { font-family: var(--sans); font-weight: 700; color: var(--glass-deep); font-size: 0.98rem; display: block; margin-bottom: 6px; }
.stop.must .cost { color: #ffb48f; }
.stop p { font-size: 0.95rem; line-height: 1.5; color: #c6d2dd; margin: 0 0 8px; }
.stop a { color: #fff; font-family: var(--sans); font-size: 0.9rem; }
.route .key { margin-top: 30px; font-family: var(--sans); font-size: 0.9rem; color: #b9c6d3; display: flex; align-items: center; gap: 8px; }
.route .key i { width: 12px; height: 12px; border-radius: 50%; background: var(--solas); display: inline-block; }

.section { padding: 64px 0; }
.section-head { max-width: 60ch; margin-bottom: 28px; }
.section-head p { color: var(--muted); margin: 10px 0 0; }

.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.guide-list li { border-top: 1px solid var(--line); padding: 18px 0 20px; display: grid; grid-template-columns: 2.2rem 1fr; gap: 0 10px; }
.guide-list .num { font-family: var(--sans); font-weight: 700; color: var(--muted); font-size: 0.95rem; padding-top: 3px; }
.guide-list h3 { font-size: 1.12rem; font-stretch: 104%; }
.guide-list h3 a { color: var(--ink); text-decoration: none; }
.guide-list h3 a:hover { text-decoration: underline; text-decoration-color: var(--solas); }
.guide-list p { grid-column: 2; margin: 4px 0 0; font-size: 1rem; color: var(--muted); line-height: 1.5; }
.soon { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; color: var(--muted); background: #e8edf1; padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }
.guide-list li.pending h3 { color: var(--muted); }

.promise { background: var(--glass); }
.promise-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.promise ul { margin: 0; padding: 0; list-style: none; }
.promise li { padding: 12px 0 12px 28px; position: relative; border-bottom: 1px solid var(--glass-deep); }
.promise li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 2px; background: var(--solas); }

/* ---------- Guide pages ---------- */
.crumbs { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); padding: 24px 0 0; }
.crumbs a { color: var(--muted); }
.guide-head { padding: 20px 0 32px; max-width: 900px; }
.guide-head h1 { max-width: 20ch; }
.guide-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.standfirst { font-size: 1.28rem; line-height: 1.55; color: var(--muted); max-width: 56ch; margin: 18px 0 14px; }
.checked { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); margin: 0; }

.guide-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-bottom: 72px; }
.toc { position: sticky; top: 24px; align-self: start; font-family: var(--sans); font-size: 0.92rem; }
.toc p { font-weight: 700; margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; line-height: 1.35; }
.toc li a:hover { color: var(--ink); border-left-color: var(--solas); }

.prose { max-width: var(--measure); }
.prose h2 { margin: 2.2em 0 0.6em; scroll-margin-top: 20px; }
.prose h3 { margin: 1.6em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { font-weight: 650; }

.short { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--solas); border-radius: var(--radius-s); padding: 22px 26px 8px; margin: 0 0 8px; }
.short h2 { font-size: 1.2rem; margin: 0 0 10px; }
.short ul { padding-left: 1.1em; }

.note { background: var(--glass); border-radius: var(--radius-s); padding: 16px 20px; font-size: 1rem; margin: 1.4em 0; }
.note p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 1.2em 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 0.95rem; line-height: 1.45; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #eef2f5; font-weight: 650; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
caption { caption-side: bottom; text-align: left; padding: 10px 14px; font-size: 0.85rem; color: var(--muted); }

.steps-list { list-style: none; padding: 0; counter-reset: s; }
.steps-list > li { counter-increment: s; position: relative; padding: 0 0 6px 56px; margin-bottom: 18px; }
.steps-list > li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--sans); font-weight: 700; display: grid; place-items: center; font-size: 0.95rem; }
.steps-list > li.must::before { background: var(--solas); }
.steps-list h3 { margin: 4px 0 6px; }

.next { margin: 3em 0 0; padding: 24px 26px; background: var(--ink); color: #fff; border-radius: var(--radius-m); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.next p { margin: 0; font-family: var(--sans); color: #b9c6d3; font-size: 0.95rem; }
.next a.title { color: #fff; font-family: var(--sans); font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.next a.title:hover { text-decoration: underline; text-decoration-color: var(--solas); }

.sources { font-size: 0.95rem; color: var(--muted); }
.sources li { margin-bottom: 0.3em; }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 40px 0; font-family: var(--sans); font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; }
.site-footer p { margin: 0 0 8px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; align-content: start; }
.site-footer a { color: var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .stops { grid-template-columns: 1fr; gap: 0; }
  .stops::before { left: 17px; right: auto; top: 0; bottom: 40px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #5b7389 0 10px, transparent 10px 18px); }
  .stop { display: grid; grid-template-columns: 36px 1fr; gap: 0 18px; padding: 0 0 22px; }
  .stop h3 { margin-top: 5px; }
  .stop > :not(.dot) { grid-column: 2; }
  .stop .dot { grid-row: 1 / span 4; }
  .total { text-align: left; }
  .guide-list { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: 1fr; gap: 20px; }
  .guide-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; min-width: 0; } .toc li a { overflow-wrap: anywhere; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 1.06rem; }
  .hero { padding-top: 44px; }
  .nav { gap: 16px; font-size: 0.9rem; }
  .short { padding: 18px 18px 4px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
td.nowrap { white-space: nowrap; }

/* Glossary terms and hover definitions */
.term { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: help; text-decoration: underline dotted var(--chart); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.term:hover, .term[aria-expanded="true"] { text-decoration-color: var(--solas); background: #fff3ec; }
.term-tip { position: absolute; z-index: 50; max-width: 320px; background: var(--ink); color: #fff; font-family: var(--sans); font-size: 0.92rem; line-height: 1.45; padding: 14px 16px 12px; border-radius: var(--radius-m); box-shadow: 0 10px 30px rgba(20,38,59,.28); }
.term-tip strong { display: block; font-size: 1rem; margin-bottom: 4px; color: #fff; }
.term-tip span { display: block; color: #d5dee7; }
.term-tip a { display: inline-block; margin-top: 8px; color: #ffb48f; font-size: 0.86rem; }
.term-tip a:hover { color: #fff; }

.glossary-index { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; font-family: var(--sans); }
.glossary-index a { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); text-decoration: none; color: var(--ink); font-weight: 600; }
.glossary-index a:hover { border-color: var(--solas); }
.glossary dl { margin: 0; }
.glossary .letter { font-size: 1.5rem; margin: 1.6em 0 0.3em; color: var(--chart); }
.glossary dt { font-family: var(--sans); font-weight: 700; font-size: 1.08rem; margin-top: 18px; scroll-margin-top: 16px; }
.glossary dt:target { color: var(--solas-dark); }
.glossary dd { margin: 4px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }

/* Course finder */
.finder-controls { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: end; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px 22px; font-family: var(--sans); font-size: 0.95rem; }
.finder-controls fieldset { border: 0; padding: 0; margin: 0; }
.finder-controls legend, .finder-controls .field { font-weight: 650; }
.seg { display: flex; }
.seg legend { margin-bottom: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg label span, .seg label { cursor: pointer; }
.seg label { padding: 9px 14px; border: 1px solid var(--line); margin-left: -1px; font-weight: 500; background: var(--hull); }
.seg label:first-of-type { border-radius: var(--radius-s) 0 0 var(--radius-s); margin-left: 0; }
.seg label:last-of-type { border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.seg label:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--solas); outline-offset: 2px; z-index: 1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field select { font: inherit; font-weight: 500; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--hull); color: var(--ink); min-width: 190px; }
.field input[type=range] { accent-color: var(--solas); width: 220px; }
.field output { font-weight: 700; color: var(--solas-dark); }
.finder-count { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); margin: 18px 0 0; }
.finder-table td .sub { display: block; color: var(--muted); font-size: 0.88rem; }
.finder-table td a { font-weight: 650; }
.finder-empty { padding: 18px 16px; margin: 0; font-family: var(--sans); }
.finder-foot { padding: 12px 0 64px; }

/* Quiz */
.quiz { max-width: 720px; padding-bottom: 72px; }
.quiz-progress { font-family: var(--sans); font-size: 0.92rem; color: var(--muted); margin-bottom: 18px; }
.quiz-bar { height: 6px; background: #e3e9ee; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.quiz-bar i { display: block; height: 100%; background: var(--solas); border-radius: 99px; transition: width .3s ease; }
.quiz-q { border: 0; margin: 0; padding: 0; }
.quiz-q legend { font-family: var(--sans); font-stretch: 110%; font-weight: 750; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; margin-bottom: 20px; padding: 0; }
.quiz-q legend:focus { outline: none; }
.quiz-opt { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-m); padding: 15px 18px; margin-bottom: 10px; cursor: pointer; font-size: 1.05rem; line-height: 1.4; }
.quiz-opt:hover { border-color: var(--chart); }
.quiz-opt input { accent-color: var(--solas); width: 20px; height: 20px; flex: none; margin: 0; }
.quiz-opt:has(input:checked) { border-color: var(--solas); background: #fff6f1; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.quiz-result { background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--solas); border-radius: var(--radius-m); padding: 28px 30px; }
.quiz-result h2 { margin: 2px 0 14px; }
.quiz-result h2:focus { outline: none; }
.quiz-kicker { font-family: var(--sans); color: var(--muted); font-size: 0.95rem; margin: 0; }
.quiz-needs { background: var(--glass); padding: 12px 16px; border-radius: var(--radius-s); font-size: 1rem; }
.quiz-scores { list-style: none; padding: 0; margin: 22px 0; font-family: var(--sans); font-size: 0.92rem; }
.quiz-scores li { display: grid; grid-template-columns: 110px 1fr 60px; align-items: center; gap: 12px; margin-bottom: 8px; }
.quiz-scores .quiz-bar { margin: 0; height: 10px; }
.quiz-scores .n { color: var(--muted); text-align: right; }
.quiz-second { color: var(--muted); font-size: 1rem; }
.quiz-links { padding-left: 1.2em; margin-bottom: 22px; }
@media (max-width: 560px) { .quiz-result { padding: 22px 18px; } .quiz-scores li { grid-template-columns: 90px 1fr 50px; } }

/* Season calendar */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cal { margin: 0 0 40px; }
.cal-scroll { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 22px 18px; }
.cal-grid { --label: 170px; position: relative; display: grid; grid-template-columns: var(--label) repeat(12, minmax(44px, 1fr)); row-gap: 8px; min-width: 760px; font-family: var(--sans); font-size: 0.86rem; }
.cal-month { text-align: center; font-weight: 650; color: var(--muted); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.cal-group { grid-column: 1 / -1; font-weight: 700; color: var(--ink); font-size: 0.92rem; margin-top: 14px; }
.cal-label { color: var(--muted); align-self: center; padding-right: 10px; line-height: 1.25; }
.cal-row { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(12, 1fr); min-height: 30px; align-items: center; }
.bar { grid-row: 1; height: 28px; border-radius: 6px; margin: 0 2px; display: flex; align-items: center; padding: 0 10px; font-weight: 600; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar.med { background: var(--chart); color: #fff; }
.bar.carib { background: var(--glass-deep); color: var(--ink); }
.bar.hire { background: var(--solas); color: #fff; }
.bar.hire.soft { background: #ffd9c6; color: #7a2d0b; }
.bar.plan { background: var(--ink); color: #fff; }
.bar.plan.go { background: repeating-linear-gradient(135deg, var(--ink) 0 10px, #23405f 10px 20px); }
.cal-row.events { min-height: 34px; }
.ev { grid-row: 1; justify-self: center; text-align: center; font-weight: 600; font-size: 0.78rem; line-height: 1.15; color: var(--ink); position: relative; padding-top: 14px; }
.ev::before { content: ""; position: absolute; top: 0; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--solas); box-shadow: 0 0 0 3px #fff3ec; }
.cal-now { position: absolute; top: 0; bottom: -6px; left: calc(var(--label) + (100% - var(--label)) * var(--m, 0) / 12); width: calc((100% - var(--label)) / 12); border: 2px solid var(--solas); border-radius: 8px; pointer-events: none; }
.cal-now span { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 0.75rem; font-weight: 700; color: var(--solas-dark); }
.cal-key { font-family: var(--sans); font-size: 0.86rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 14px 0 0; }
.cal-key .k { width: 14px; height: 14px; border-radius: 4px; display: inline-block; margin-left: 8px; }
.cal-key .k:first-child { margin-left: 0; }
.k.med { background: var(--chart); } .k.carib { background: var(--glass-deep); } .k.hire { background: var(--solas); } .k.soft { background: #ffd9c6; } .k.plan { background: var(--ink); }

/* Hub cards and home tools */
.hub-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 2em 0 0; }
.hub-card { display: block; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--chart); border-radius: var(--radius-s); padding: 16px 18px; text-decoration: none; color: var(--ink); font-family: var(--sans); }
.hub-card strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.hub-card span { color: var(--muted); font-size: 0.92rem; line-height: 1.4; display: block; }
.hub-card:hover { border-left-color: var(--solas); }
.tools { padding: 64px 0 8px; }
.tool-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: auto; gap: 14px; }
.tool-list a { display: block; height: 100%; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px 22px; font-family: var(--sans); }
.tool-list a:hover { border-color: var(--ink); }
.tool-list strong { display: block; font-size: 1.15rem; font-stretch: 108%; margin-bottom: 6px; }
.tool-list span { display: block; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.tool-list li.lead { grid-row: span 2; }
.tool-list li.lead a { background: var(--glass); border-color: var(--glass-deep); }
.tool-list li.lead strong { font-size: 1.45rem; }
@media (max-width: 960px) { .hub-cards, .tool-list { grid-template-columns: 1fr; } .tool-list li.lead { grid-row: auto; } }
@media (max-width: 720px) {
  .site-header .wrap { gap: 4px; padding-top: 10px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 18px; padding-bottom: 4px; scrollbar-width: none; white-space: nowrap; }
  .nav::-webkit-scrollbar { display: none; }
}

/* Salary checker */
.checker { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; background: var(--ink); color: #fff; border-radius: var(--radius-m); padding: 26px 28px; margin-bottom: 40px; }
.checker h2 { grid-column: 1 / -1; color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.checker-form { display: flex; flex-direction: column; gap: 14px; font-family: var(--sans); }
.checker .field { color: #fff; }
.checker .field select { background: #fff; min-width: 0; width: 100%; }
.checker-result { font-family: var(--sans); align-self: center; }
.checker-result p { margin: 0; }
.checker-result .amount { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; font-stretch: 112%; color: #ffb48f; line-height: 1.1; }
.checker-result .per { color: #c6d2dd; margin-bottom: 10px; }
.checker-result .leave, .checker-result .gbp { color: #e3eaf0; font-size: 0.95rem; }
.checker-note { grid-column: 1 / -1; font-family: var(--sans); font-size: 0.82rem; color: #9fb0c0; margin: 14px 0 0; }
@media (max-width: 720px) { .checker { grid-template-columns: 1fr; padding: 22px 20px; } }

/* CV sample */
.cv-sample { background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(20,38,59,.08); border-radius: 4px; padding: 26px 28px; font-family: var(--sans); font-size: 0.82rem; line-height: 1.45; margin: 1.4em 0; max-width: 560px; }
.cv-sample .top { display: grid; grid-template-columns: 1fr 96px; gap: 16px; }
.cv-sample .name { font-size: 1.35rem; font-weight: 800; margin: 0; }
.cv-sample .role { color: var(--solas-dark); font-weight: 700; margin: 0 0 8px; }
.cv-sample .photo { background: #eef2f5; border: 1px solid var(--line); height: 112px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 0.72rem; padding: 6px; }
.cv-sample h4 { font-size: 0.86rem; margin: 12px 0 4px; padding-bottom: 2px; border-bottom: 2px solid var(--solas); font-stretch: 100%; }
.cv-sample p { margin: 0 0 3px; }
.cv-sample .label { font-weight: 700; }
.download { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--glass); border-radius: var(--radius-m); padding: 18px 22px; margin: 1.4em 0; font-family: var(--sans); }
.download p { margin: 0; flex: 1 1 260px; font-size: 0.95rem; }

/* Story questions */
.qlist { counter-reset: q; list-style: none; padding: 0; }
.qlist li { counter-increment: q; position: relative; padding: 10px 0 10px 44px; border-bottom: 1px solid var(--line); margin: 0; }
.qlist li::before { content: counter(q); position: absolute; left: 0; top: 9px; width: 30px; height: 30px; border-radius: 50%; background: var(--glass); color: var(--ink); font-family: var(--sans); font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }

/* Home FAQ links */
.faqs { padding-top: 8px; }
.faq-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; font-family: var(--sans); }
.faq-links li { border-top: 1px solid var(--line); }
.faq-links a { display: block; padding: 16px 0; color: var(--ink); font-weight: 650; font-size: 1.05rem; text-decoration: none; }
.faq-links a:hover { color: var(--solas-dark); }
@media (max-width: 960px) { .faq-links { grid-template-columns: 1fr; } }

/* Header tools and country switcher */
.site-header .wrap { row-gap: 0; padding-top: 12px; }
.site-header .brand, .site-header .header-tools { min-height: 44px; }
.header-tools { display: flex; align-items: center; gap: 16px; font-family: var(--sans); font-size: 0.9rem; margin-left: auto; }
.header-tools a { color: var(--ink); text-decoration: none; }
.header-tools a:hover { text-decoration: underline; text-decoration-color: var(--solas); }
.country-pick select { font: inherit; font-size: 0.88rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--hull); color: var(--ink); }
.site-header .nav { flex-basis: 100%; border-top: 1px solid var(--line); padding: 6px 0 4px; margin-top: 10px; gap: 4px 22px; }
.country-notice { font-family: var(--sans); font-size: 0.92rem; background: #fff3ec; border-left: 4px solid var(--solas); padding: 10px 14px; margin: 16px 0 0; border-radius: var(--radius-s); }
.country-note { border-left: 4px solid var(--chart); }

/* Section landing pages */
.landing-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; font-family: var(--sans); }
.landing-list li { border-top: 1px solid var(--line); padding: 16px 0 18px; }
.landing-list a { color: var(--ink); font-weight: 700; font-size: 1.08rem; text-decoration: none; }
.landing-list a:hover { text-decoration: underline; text-decoration-color: var(--solas); }
.landing-list p { margin: 4px 0 0; color: var(--muted); font-size: 0.96rem; line-height: 1.45; font-family: var(--serif); }
.landing-list .tag { font-size: 0.75rem; font-weight: 600; background: var(--glass); color: var(--ink); padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; }
.landing-list li.pending a, .landing-list li.pending span.t { color: var(--muted); font-weight: 700; font-size: 1.08rem; }
.landing-body { padding-bottom: 64px; }
.landing-body h2 { margin: 36px 0 14px; }
@media (max-width: 960px) { .landing-list { grid-template-columns: 1fr; } }

/* Certificate ladders */
.ladder { list-style: none; padding: 0; margin: 1.2em 0 1.6em; counter-reset: rung; position: relative; }
.ladder::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.ladder > li { counter-increment: rung; position: relative; padding: 0 0 14px 56px; margin: 0; }
.ladder > li::before { content: counter(rung); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); border: 2px solid var(--chart); color: var(--ink); font-family: var(--sans); font-weight: 700; display: grid; place-items: center; font-size: 0.95rem; }
.ladder > li.top::before { background: var(--solas); border-color: var(--solas); color: #fff; }
.ladder h3 { margin: 6px 0 4px; }
.ladder p { font-size: 1.02rem; margin: 0; }

/* Tools: shared form and output styles */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding-bottom: 64px; align-items: start; }
.tool-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 24px; font-family: var(--sans); }
.tool-panel h2 { font-size: 1.15rem; margin: 0 0 14px; }
.tool-panel h3 { font-size: 1rem; margin: 18px 0 8px; }
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.tool-field { display: flex; flex-direction: column; gap: 5px; font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; }
.tool-field.wide { grid-column: 1 / -1; }
.tool-field input, .tool-field select, .tool-field textarea { font: inherit; font-weight: 400; font-size: 0.98rem; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--hull); color: var(--ink); width: 100%; }
.tool-field textarea { min-height: 76px; resize: vertical; }
.tool-field small { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.tool-out { position: sticky; top: 16px; }
.tool-total { background: var(--ink); color: #fff; border-radius: var(--radius-m); padding: 20px 22px; margin-bottom: 14px; }
.tool-total .label { margin: 0; color: #b9c6d3; font-size: 0.92rem; }
.tool-total .big { margin: 2px 0 0; font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; font-stretch: 112%; color: #ffb48f; }
.tool-table { width: 100%; font-size: 0.93rem; }
.tool-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn.small { padding: 9px 14px; font-size: 0.92rem; }
.tool-note { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }
.status-ok { color: var(--chart); font-weight: 700; }
.status-soon { color: var(--solas-dark); font-weight: 700; }
.status-late { color: #a3201b; font-weight: 700; }
.better { background: #e9f5f2; }
@media (max-width: 960px) { .tool { grid-template-columns: 1fr; } .tool-out { position: static; } .tool-row { grid-template-columns: 1fr; } }

/* CV builder preview */
.cv-tool { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.cv-page { background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(20,38,59,.08); border-radius: 4px; padding: 30px 32px; font-family: var(--sans); font-size: 0.82rem; line-height: 1.45; color: #14263b; min-height: 600px; }
.cv-top { display: grid; grid-template-columns: 1fr 110px; gap: 18px; }
.cv-name { font-size: 1.5rem; font-weight: 800; margin: 0; }
.cv-role { color: var(--solas-dark); font-weight: 700; margin: 0 0 8px; }
.cv-line { margin: 0 0 2px; }
.cv-photo { width: 110px; height: 132px; background: #eef2f5; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.cv-photo img { width: 100%; height: 100%; object-fit: cover; }
.cv-page h3 { font-size: 0.9rem; margin: 14px 0 6px; padding-bottom: 2px; border-bottom: 2px solid var(--solas); font-stretch: 100%; }
.cv-page p { margin: 0 0 4px; }
.cv-page ul { margin: 0 0 6px; padding-left: 1.2em; }
.cv-job { font-weight: 700; margin-top: 6px !important; }
.cv-certs { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.cv-certs th, .cv-certs td { border: 1px solid var(--line); padding: 4px 6px; background: none; }
.cv-certs th { background: #eef2f5; }
@media print {
  body * { visibility: hidden; }
  #cv-preview, #cv-preview * { visibility: visible; }
  #cv-preview { position: absolute; left: 0; top: 0; width: 100%; border: 0; box-shadow: none; padding: 0; }
}

/* Offer comparison */
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.offer-grid fieldset { margin: 0; }
.offer-grid legend { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; padding: 0 6px; }
.offer-result { padding: 24px 0 64px; max-width: 760px; }
@media (max-width: 760px) { .offer-grid { grid-template-columns: 1fr; } }

/* Checklist */
.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-list li { border-bottom: 1px solid var(--line); }
.check-list label { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; cursor: pointer; font-size: 1.02rem; line-height: 1.45; }
.check-list input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--solas); flex: none; }
.check-list input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.check-progress { font-family: var(--sans); font-weight: 700; margin: 0 0 8px; }

/* Photos (hotlinked from Unsplash, credited) */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-s, 6px); background: #e6ebf0; }
.photo figcaption { font-family: var(--sans); font-size: 0.8rem; color: #5b6b7c; margin-top: 6px; }
.photo figcaption a { color: inherit; }
.photo-wrap { margin: 8px 0 28px; }
.photo-wrap > .photo img { aspect-ratio: 21 / 8; }
.photo-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.photo-strip .photo img { aspect-ratio: 4 / 3; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-grid .photo img { aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-wrap > .photo img { aspect-ratio: 16 / 9; }
}
.side-door { font-family: var(--sans); font-size: 0.98rem; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.side-door a { color: var(--ink); font-weight: 600; text-decoration-color: var(--solas); text-underline-offset: 3px; }
.side-door a::after { content: " \2192"; }
.landing-body h2 { margin: 32px 0 12px; }
.landing-body h2:first-child { margin-top: 0; }

/* Forms */
.site-form { display: grid; gap: 14px; margin: 18px 0 8px; max-width: 640px; }
.site-form .tool-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.site-form textarea { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); width: 100%; resize: vertical; }
.site-form .btn { justify-self: start; }
.form-status { font-family: var(--sans); font-size: 0.95rem; margin: 0; min-height: 1.2em; }
@media (max-width: 600px) { .site-form .tool-row { grid-template-columns: minmax(0, 1fr); } }
.newsletter { background: var(--ink); color: #fff; border-radius: 10px; padding: clamp(20px, 4vw, 36px); margin: 40px 0; }
.newsletter h2 { color: #fff; margin-top: 0; }
.newsletter p { color: #c9d6e2; }
.newsletter .nl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input[type=email] { flex: 1 1 240px; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 6px; border: 0; }
.newsletter .form-status { color: #fff; }

/* News */
.kicker { font-family: var(--sans); font-size: 0.85rem; font-weight: 700; color: var(--solas); margin: 0 0 8px; }
.news-article { max-width: 760px; }
.impact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 12px 0 8px; }
.impact-card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--chart); border-radius: 8px; padding: 16px 18px; }
.impact-card:first-child { border-top-color: var(--solas); }
.impact-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.impact-card p { margin: 0; }
.check-list.static li { list-style: none; position: relative; padding-left: 28px; margin: 8px 0; }
.check-list.static li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 14px; height: 14px; border: 2px solid var(--chart); border-radius: 3px; }
.news-list .date { display: block; font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 700px) { .impact { grid-template-columns: minmax(0, 1fr); } }
.news-article > h2:first-child { margin-top: 8px; }
@media (max-width: 600px) {
  .cv-page { padding: 18px 14px; overflow-x: auto; }
  .cv-top { flex-wrap: wrap; }
  .cv-photo { width: 84px; height: 104px; }
  .cv-certs { font-size: 0.74rem; }
}

/* Brand */
.brand .brand-mark { width: 54px; height: auto; }
.brand b { color: var(--solas); font-weight: inherit; }
@media (max-width: 600px) { .brand .brand-mark { width: 38px; } }

/* Instagram links page */
.links-page { max-width: 520px; margin: 0 auto; padding: 40px 20px 48px; text-align: center; font-family: var(--sans); }
.links-logo svg { width: 88px; height: 88px; display: block; margin: 0 auto 14px; }
.links-page h1 { font-size: 1.7rem; margin: 0 0 8px; letter-spacing: -0.02em; }
.links-page h1 span { color: var(--solas); }
.links-tag { color: var(--muted); margin: 0 auto 26px; max-width: 34ch; line-height: 1.45; }
.links-list { display: grid; gap: 12px; }
.links-btn { display: block; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 12px; color: var(--ink); background: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.3; transition: transform .12s ease; }
.links-btn:hover, .links-btn:focus-visible { transform: translateY(-2px); }
.links-btn.primary { background: var(--solas); border-color: var(--solas); color: #fff; }
.links-news { margin: 28px 0 0; text-align: left; max-width: none; }
.links-news label { font-weight: 700; display: block; margin-bottom: 8px; }
.links-news .nl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.links-news input[type=email] { flex: 1 1 200px; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; }
.links-foot { margin-top: 28px; font-size: 0.9rem; color: var(--muted); }
.links-foot a { color: inherit; }
@media (prefers-reduced-motion: reduce) { .links-btn { transition: none; } }
