:root {
  --paper: #f2f5f8;
  --card: #ffffff;
  --ink: #0c2135;
  --muted: #566878;
  --line: #d6dee6;
  --accent: #e4520d;
  --accent-dark: #bb3f08;
  --sea: #0f6c8d;
  --sea-dark: #0a5470;
  --sea-bg: #e3f1f6;
  --ok: #1c8556;
  --ok-bg: #e1f4ea;
  --warn-bg: #fff2e7;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: 1.6rem; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--sea-dark); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.top { background: #0a1c2e; color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .02em; margin-right: auto; }
.brand .mark { width: 28px; height: 28px; flex: none; }
.top nav { display: flex; align-items: center; gap: 2px; }
.top nav a { color: #cfd8de; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: .95rem; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.top nav a:hover { color: #fff; }
.top nav a.on { color: #fff; border-bottom-color: var(--accent); border-radius: 6px 6px 0 0; }
.top nav a.nav-cta { margin-left: 10px; background: var(--accent); color: #fff; border-bottom-color: transparent; border-radius: 6px; }
.top nav a.nav-cta:hover { background: var(--accent-dark); }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; cursor: pointer; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 28px; }
.top.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.top.open .menu-btn span:nth-child(2) { opacity: 0; }
.top.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.role-operator [data-nav="dashboard"], .signed-out [data-nav="dashboard"], .role-operator [data-nav="home"], .role-operator [data-nav="vessels"], .signed-out [data-nav="vessels"], .role-operator [data-nav="operators"],
.signed-out [data-nav="home"], .signed-out [data-nav="operators"], .signed-out [data-nav="courses"] { display: none; }
[id^="sec-"], .slide, .cert, [id^="q-"] { scroll-margin-top: 76px; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .top nav { display: none; flex-direction: column; align-items: stretch; width: 100%; padding: 4px 0 12px; gap: 0; }
  .top.open nav { display: flex; }
  .top nav a { padding: 13px 4px; font-size: 1.05rem; border-bottom: 1px solid #1d3349; border-radius: 0; }
  .top nav a.on { border-bottom-color: #1d3349; border-radius: 0; color: #ffb089; }
  .top nav a.nav-cta { margin: 12px 0 0; text-align: center; border-radius: 8px; border-bottom: 0; }
}
@media print { .top { position: static; } }

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding: 9px 16px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.big { padding: 13px 24px; font-size: 1.05rem; }
.btn.danger { color: #a12222; }
.btn.small { padding: 5px 10px; font-size: .88rem; }

/* Landing */
.hero { background: linear-gradient(135deg, #0a1c2e 0%, #0c2a45 55%, #0f4a66 100%); color: #fff; padding: 64px 0 76px; }
.hero .kicker {
  color: #ffb089;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
}
.hero p.lead { font-size: 1.2rem; color: #cfd8de; max-width: 640px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .btn:not(.primary) { background: transparent; color: #fff; border-color: #4a6077; }

section.band { padding: 56px 0; }
section.band.alt { background: #e8eef4; }
.sub { color: var(--muted); max-width: 680px; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.tile p { margin: 0; color: var(--muted); font-size: .93rem; }
.letter {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 8px;
}
.tile.hl { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(217, 72, 15, .12); }
.tile.hl .letter { background: var(--accent); }

.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps .tile { border-left: 4px solid var(--sea); }
.steps .tile::before {
  counter-increment: s;
  content: counter(s);
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.fine { font-size: .85rem; color: var(--muted); }
footer { padding: 28px 0 40px; border-top: 1px solid var(--line); }

/* App */
main.app { padding: 28px 0 60px; }
.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.head h1 { font-size: 1.8rem; margin: 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}
.card h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card h2 .btn { margin-left: auto; }
.card h2 .letter { margin: 0; }
.hint { color: var(--muted); font-size: .92rem; margin: -2px 0 12px; }

.badge {
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--warn-bg);
  color: var(--accent-dark);
  white-space: nowrap;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }

.note {
  background: var(--sea-bg);
  border-left: 4px solid var(--sea);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: .95rem;
}
.note ul { margin: 6px 0 0; padding-left: 20px; }

/* Forms */
.plainlist { margin: 0; padding-left: 20px; font-size: .93rem; }
.plainlist li { margin: 3px 0; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 0; color: var(--ink); }
label .opt { font-weight: 400; color: var(--muted); }
label > input, label > select, label > textarea { margin-top: 5px; }
input[type=text], input[type=date], input[type=email], input[type=tel], input[type=password], select, textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c3ced9;
  border-radius: 8px;
  padding: 9px 12px;
}
select { appearance: auto; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #8a99a8; }
input:hover, select:hover, textarea:hover { border-color: #9aa9b8; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(15, 108, 141, .2); }
input[readonly] { background: #edf1f5; color: var(--muted); }
form .hint { margin-bottom: 4px; }
.two { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 0; }
.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; }
.btn.small { min-height: 34px; }
.btn.link { border-color: transparent; background: none; color: var(--sea-dark); text-decoration: underline; padding-left: 4px; padding-right: 4px; }
.inline-select { width: auto; max-width: 100%; min-height: 34px; padding: 4px 10px; font-size: .9rem; }
.plan-top { margin: 0 0 16px; }

.rowcard { border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; padding: 2px 14px 14px; margin-bottom: 10px; }
.rowcard .btn { margin-top: 12px; }
.rowname { margin: 12px 0 0; font-weight: 700; }
fieldset.group { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
fieldset.group legend { padding: 0; font-weight: 600; font-size: .9rem; color: var(--ink); }
fieldset.group .fine { margin: 2px 0 0; }
fieldset.group label { margin-top: 8px; font-weight: 400; font-size: .85rem; color: var(--muted); }
.modeopt { border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px 12px; margin-top: 10px; }
.modeopt > label:not(.check) { margin-top: 4px; }
.savedbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fieldgrid { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* Rows of fields laid out as a table on a wide screen (additional training) */
.rows { border-collapse: separate; border-spacing: 0 6px; }
.rows th { border: 0; padding: 0 8px 0 0; }
.rows td { border: 0; padding: 0 8px 0 0; vertical-align: middle; }
.rows td.row-end { padding-right: 0; width: 1%; white-space: nowrap; }
.rows input { min-width: 120px; }

.meter { height: 8px; background: #dde5ec; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width .2s; }

.editor { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.side { position: sticky; top: 76px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.side button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 6px 8px;
  border-radius: 6px;
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  cursor: pointer;
}
.side button:hover { background: var(--paper); }
.dot {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--muted);
}
.dot.ok { background: var(--ok); border-color: var(--ok); color: #fff; }

.plan-link { display: block; color: inherit; text-decoration: none; }
.plan-link:hover { border-color: var(--ink); }
.plan-link .row { justify-content: space-between; }

.check { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 400; margin: 0; }
.check:first-of-type { border-top: 0; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.train td:first-child { width: 34%; font-weight: 600; }

.train td:nth-child(2) { width: 170px; }
.tablewrap { overflow-x: auto; }

/* Printable package */
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; max-width: 860px; margin: 0 auto; }
.doc h1 { font-size: 1.7rem; }
.doc h2 { font-size: 1.05rem; margin-top: 26px; padding-bottom: 4px; border-bottom: 2px solid var(--ink); }
.doc dl { margin: 0; }
.doc dt { font-weight: 700; font-size: .85rem; color: var(--muted); margin-top: 10px; }
.doc dd { margin: 0; white-space: pre-wrap; }
.doc .missing { color: #a12222; font-style: italic; }

.gloss { margin: 0; }
.gloss dt { font-weight: 700; margin-top: 12px; }
.gloss dt:first-child { margin-top: 0; }
.gloss dd { margin: 2px 0 0; color: var(--muted); }

[hidden] { display: none !important; }
.invite { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.authgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.authgrid .card { margin: 0; }

.proof { margin-top: 14px; padding: 12px 14px; background: #f1f5f9; border-radius: 8px; }
.proof summary { cursor: pointer; }
.proof summary .fine { margin-left: 6px; }
.proof[open] summary { margin-bottom: 8px; }
.proof-h { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.proof ul { list-style: none; margin: 0; padding: 0; }
.proof li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.opdetails { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.opdetails summary { font-weight: 600; color: var(--sea-dark); }
.consent { border-top: 0 !important; align-items: flex-start; padding: 6px 0; font-size: .93rem; }
.consent input { margin-top: 3px; flex: none; }

/* Landing page */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.hero-photo { margin: 0; }
.hero-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.hero-photo figcaption, .split figcaption { font-size: .75rem; color: #8fa0ab; margin-top: 6px; }
.split figcaption { color: var(--muted); }
.strip { padding: 26px 0; background: #fff; border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stats b { display: block; font-size: 2.2rem; line-height: 1.1; color: var(--sea); }
.stats span { font-size: .9rem; color: var(--muted); }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature-grid .tile { border-top: 4px solid var(--sea); }
.small-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.small-grid .tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.small-grid .tile .letter { margin: 0; flex: none; }
.small-grid .tile h3 { margin: 0; font-size: .95rem; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: center; }
.split figure { margin: 0; }
.split img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.band.cta { background: linear-gradient(135deg, #0a1c2e, #0f4a66); color: #fff; text-align: center; }
.band.cta .sub { color: #cfd8de; margin-left: auto; margin-right: auto; }
.landing h2 { font-size: 1.9rem; margin-bottom: .6em; }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sea-dark); margin: 0 0 6px; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn.ghost:hover { border-color: #fff; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; color: #d5e2ec; font-size: .98rem; }
.ticks li { position: relative; padding: 4px 0 4px 28px; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: 5px; width: 19px; height: 19px; border-radius: 50%; background: var(--ok); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.ticks.dark { color: var(--ink); margin: 14px 0 18px; }
.price-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; align-items: stretch; margin-top: 8px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.price.main { border: 2px solid var(--accent); box-shadow: 0 14px 34px rgba(12, 33, 53, .12); }
.price-name { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.price-amt { font-size: 2.8rem; font-weight: 800; line-height: 1; margin: 0; color: var(--ink); }
.price-amt span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.wrap.narrow { max-width: 780px; }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.landing section.band { padding: 64px 0; }
.landing .strip { padding: 26px 0; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }

.browser { border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid rgba(12, 33, 53, .18); box-shadow: 0 18px 44px rgba(5, 16, 28, .28); }
.browser-bar { display: flex; gap: 6px; padding: 9px 12px; background: #e3e9ef; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #b5c1cc; }
.browser img, .phone img { display: block; width: 100%; height: auto; }
.phone { width: 200px; border: 7px solid #071523; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(5, 16, 28, .35); }
.devices { position: relative; padding: 0 0 46px 0; }
.devices .phone { position: absolute; right: 0; bottom: 0; width: 30%; max-width: 180px; }
.devices .browser { margin-right: 16%; }
.phones { display: flex; gap: 18px; justify-content: center; }
.phones .phone { width: 46%; max-width: 210px; }
.split .phone img, .split .browser img { aspect-ratio: auto; object-fit: fill; border: 0; border-radius: 0; }
.shot-cap { font-size: .85rem; color: var(--muted); margin: 10px 0 0; text-align: center; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair .tile .ticks { margin: 6px 0 0; font-size: .93rem; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* Terms and privacy */
.legal { padding: 36px 0 60px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 2rem; margin-bottom: 4px; }
.legal h2 { font-size: 1.15rem; margin: 30px 0 8px; }
.legal li { margin-bottom: 6px; }

@media (max-width: 760px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Certificate: one drawing with the PDF's layout, so it keeps its shape everywhere */
.cert-frame { max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(12, 33, 53, .12); }
.cert-svg { display: block; width: 100%; height: auto; }
@media print {
  /* If the page itself is printed (Ctrl+P), the certificate fills the one sheet and nothing else prints. */
  .cert-frame { position: fixed; inset: 0; max-width: none; margin: 0; border: 0; box-shadow: none; }
  .cert-svg { width: 100%; height: 100%; }
  body:has(.cert-frame) { height: 100vh; overflow: hidden; }
  body:has(.cert-frame) footer, body:has(.cert-frame) .top { display: none !important; }
}

/* Courses */
.level { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sea-dark); margin: 0 0 4px; }
.modrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.modrow .letter { margin: 0; flex: none; }
.modrow .grow { flex: 1; min-width: 200px; }

.slide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; padding: 22px; }
.slide.nomedia { grid-template-columns: minmax(0, 720px); }
.slide h2 { font-size: 1.45rem; }
.slide figure { margin: 0; }
.slide figure img, .slide figure svg { display: block; width: 100%; border-radius: 8px; }
.slide figure img { max-height: 440px; object-fit: cover; }
.slide figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.credit { font-size: .75rem; opacity: .8; }
.credit::before { content: "Photo: "; }
.pts { margin: 0; padding-left: 20px; }
.pts li { margin-bottom: 10px; }

.quick { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f6f9fc; }
.quick-h { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 6px; }
.qopt { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; margin-top: 6px; cursor: pointer; }
.qopt:hover:not(:disabled) { border-color: var(--ink); }
.qopt:disabled { cursor: default; }
.qopt.right { background: var(--ok-bg); border-color: var(--ok); font-weight: 600; }
.qopt.wrong { background: #fdecec; border-color: #a12222; }
.qopt.dim { opacity: .55; }
.why { margin: 10px 0 0; font-size: .93rem; }

.ladder { display: grid; gap: 6px; }
.ladder div { background: #eaf1f7; border-left: 5px solid var(--ink); border-radius: 6px; padding: 9px 12px; }
.ladder div.you { background: var(--warn-bg); border-left-color: var(--accent); }
.ladder b, .ladder span { display: block; }
.ladder span { font-size: .88rem; color: var(--muted); }
.alist { margin: 0; padding: 14px 14px 14px 36px; background: #eaf1f7; border-radius: 8px; columns: 2; column-gap: 28px; font-size: .93rem; }
.alist li { margin-bottom: 6px; break-inside: avoid; }
.sig td:first-child { white-space: nowrap; font-weight: 700; letter-spacing: .1em; }
.sig.plain td:first-child { white-space: normal; letter-spacing: 0; }
.steps-list { margin: 0; padding: 14px 14px 14px 34px; background: #eaf1f7; border-radius: 8px; font-size: .93rem; }
.steps-list li { margin-bottom: 8px; }


.fcst { background: #0c2135; color: #e8eef2; border-radius: 8px; padding: 14px 16px; font: .86rem/1.5 Consolas, "Courier New", monospace; }
.fcst p { margin: 0 0 8px; }
.fcst p:last-child { margin: 0; }
.fcst-h { color: #ffb089; }

details summary { cursor: pointer; }

@media (max-width: 760px) {
  .slide { grid-template-columns: 1fr; }
  .alist { columns: 1; }
}

@media (max-width: 760px) {
  main.app { padding: 20px 0 48px; }
  .card { padding: 16px; }
  .head { flex-direction: column; align-items: stretch; gap: 10px; }
  .head h1 { font-size: 1.6rem; }
  .head > .btn { align-self: flex-start; }
  .form-actions .btn.primary { flex: 1 1 100%; }
  .inline-select { width: 100%; }
  /* field rows become one card per row, each field labeled */
  .rows, .rows tbody { display: block; }
  .rows tr:first-child { display: none; }
  .rows tr { display: block; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; padding: 12px; margin-bottom: 10px; }
  .rows td { display: block; width: auto !important; padding: 0 0 10px; }
  .rows td::before { content: attr(data-label); display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
  .rows td.row-end { padding: 0; }
  .rows td.row-end::before { content: none; }
  .rows input { min-width: 0; }
  .modrow .btn { flex: 1 1 100%; }
  .opcard > .row { gap: 6px; }
  .editor { grid-template-columns: 1fr; }
  .side { display: none; }
  .doc { padding: 20px; }
}

@media print {
  .top, .noprint, footer { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  main.app { padding: 0; }
  /* The page margin is zero so the browser has no room to print its own header and footer.
     The empty table header and footer repeat on every page and stand in for the top and bottom margins. */
  .doc { border: 0; padding: 0 16mm; max-width: none; }
  .pspace { height: 15mm; }
  .doc h2 { break-after: avoid; }
  .docsec { break-inside: avoid; page-break-inside: avoid; }
  .doc dt, .doc table tr { break-inside: avoid; }
}
.printwrap { width: 100%; border-collapse: collapse; }
.printwrap > * > tr > td { padding: 0; border: 0; }
.modeopt .check { border-top: 0; align-items: flex-start; }
.modeopt .check input { margin-top: 3px; flex: none; }
.reuse { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.slide .video { position: relative; aspect-ratio: 16 / 9; background: #0c2135; border-radius: 8px; overflow: hidden; }
.slide .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact-card { padding: 22px; }
.contact-card label:first-child, .contact-card .two label { margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #a12222; font-weight: 600; }
.hero-pair .browser:first-child { margin-right: 16%; }
.hero-pair .browser:last-child { position: relative; margin: -16% 0 0 16%; }
.browser-bar { align-items: center; }
.browser-bar span { margin-left: 8px; font-size: .78rem; font-weight: 700; color: #3c5063; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.split img.cert-shot { aspect-ratio: auto; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 14px 36px rgba(12, 33, 53, .18); }
@media (max-width: 760px) { .hero-pair .browser:last-child { margin-top: -10%; } }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled:hover { border-color: var(--line); }
.card.list { padding: 4px 18px; }
.listrow { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.listrow:first-child { border-top: 0; }
.listrow:hover b { color: var(--sea-dark); text-decoration: underline; }
.listrow .grow { flex: 1 1 220px; min-width: 0; }
.listrow .chev { font-size: 1.5rem; line-height: 1; color: var(--muted); }
.nowrap { white-space: nowrap; }
.dashmeter { display: flex; flex-direction: column; gap: 4px; width: 170px; }
.dashmeter .meter { margin: 0; display: block; }
.stats.dash a { color: inherit; text-decoration: none; display: block; padding: 6px 0; border-radius: 8px; }
.stats.dash a:hover { background: #f1f5f9; }
.stats.dash small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.dash-h { font-size: 1.15rem; margin: 26px 2px 10px; }
.plainlist.todo li { margin: 7px 0; }
@media (max-width: 760px) { .dashmeter { width: 100%; } .card.list { padding: 2px 14px; } }
body:not(.site-owner) [data-nav="owner"] { display: none; }
.owner-org > summary { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; cursor: pointer; list-style: none; }
.owner-org > summary::-webkit-details-marker { display: none; }
.owner-org > summary .grow { flex: 1 1 240px; min-width: 0; }
.owner-org > summary:hover b { color: var(--sea-dark); text-decoration: underline; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 10px; }
.kpi { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 18px 24px; box-shadow: 0 2px 10px rgba(12, 33, 53, .06); display: flex; flex-direction: column; gap: 2px; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--ink); }
.kpi.sea::before { background: var(--sea); }
.kpi.green::before { background: var(--ok); }
.kpi-label { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi b { font-size: 2.6rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi.sea b { color: var(--sea-dark); }
.kpi.green b { color: var(--ok); }
.kpi-sub { font-size: .88rem; color: var(--muted); }
.kpi-bar { display: block; height: 6px; margin-top: 10px; background: #dde5ec; border-radius: 99px; overflow: hidden; }
.kpi-bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr; } }
