/* VesselsFlow — site styles
   Language of the design: a ship's technical drawing. Blueprint blue, white paper,
   thin rules, title blocks and leader lines. One typeface: Arial. */

:root {
  --ink: #0E2A47;        /* headings, footer */
  --plan: #0F3A66;       /* blueprint background */
  --plan-line: rgba(255, 255, 255, .07);
  --blue: #1C64B4;       /* actions, links */
  --blue-dark: #154F8F;
  --blue-soft: #DCEAF8;
  --line: #CFDDED;       /* rules on white */
  --wash: #F3F7FC;       /* alternate section */
  --text: #1F3249;
  --muted: #56687F;
  --white: #FFFFFF;
  --ok: #1E7A4C;
  --err: #B42318;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #5AA0E8; outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2.05rem, 4.6vw, 3.35rem); line-height: 1.07; letter-spacing: -.022em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.015em; }
h3 { font-size: 1.2rem; line-height: 1.3; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.measure { max-width: 66ch; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--wash { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 22px; border-radius: var(--r);
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid var(--blue); background: var(--blue); color: var(--white);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn--line { background: transparent; color: var(--blue); }
.btn--line:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn--on-plan { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--on-plan:hover { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--ink); }
.btn--ghost-plan { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost-plan:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------------- Header ---------------- */
.site-head {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { width: 34px; height: 34px; }
.brand__name { font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em; }
.brand__name span { color: var(--blue); -webkit-text-stroke: .04em currentColor; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text); text-decoration: none; font-size: .98rem; padding: 10px 12px; border-radius: var(--r);
}
.nav a:hover { color: var(--blue); background: var(--wash); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav .btn { margin-left: 10px; min-height: 42px; padding: 0 18px; color: var(--white); }
.nav .btn:hover { color: var(--white); background: var(--blue-dark); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; gap: 8px; background: none;
    border: 1px solid var(--line); border-radius: var(--r); padding: 9px 12px; font: 700 .95rem var(--font); color: var(--ink); cursor: pointer;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(14, 42, 71, .08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); padding-left: 12px; }
  .nav .btn { margin: 16px 0 0; min-height: 48px; border-bottom: 0; }
}

/* ---------------- Blueprint (hero + bands) ---------------- */
.plan {
  background-color: var(--plan); color: #E4EEF9;
  background-image:
    linear-gradient(var(--plan-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--plan-line) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.plan h1, .plan h2, .plan h3 { color: var(--white); }
.plan .lede, .plan p { color: #C8D9EC; }
.plan a:not(.btn) { color: var(--white); }

.hero { padding: clamp(48px, 7vw, 88px) 0 0; overflow: hidden; }
.hero__text { max-width: 760px; }
.hero__text h1 { margin-bottom: .45em; }
.hero--page { padding-bottom: clamp(48px, 7vw, 80px); }
.hero--page .hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero--page .hero__grid > :last-child { min-width: 0; }
@media (max-width: 900px) { .hero--page .hero__grid { grid-template-columns: 1fr; } }
.crumb { font-size: .92rem; margin-bottom: 18px; color: #A9C2DE; }
.crumb a { color: #CFE0F2; }

/* Ship drawing in the home hero */
.drawing { margin-top: clamp(28px, 4vw, 48px); position: relative; }
.drawing svg { width: 100%; }
.ship .sv-sea { fill: rgba(255,255,255,.04); }
.ship .sv-waterline { stroke: rgba(255,255,255,.45); stroke-width: 1; stroke-dasharray: 6 5; fill: none; }
.ship .sv-hull, .ship .sv-house, .ship .sv-bridge, .ship .sv-funnel, .ship .sv-space, .ship .sv-machine,
.ship .sv-hatch, .ship .sv-rudder, .ship .sv-prop, .ship .sv-thruster {
  fill: none; stroke: #EAF2FB; stroke-width: 1.3; stroke-linejoin: round;
}
.ship .sv-hull { stroke-width: 2; fill: rgba(255,255,255,.03); }
.ship .sv-boottop { fill: rgba(255,255,255,.05); }
.ship .sv-db { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1; }
.ship .sv-deckline, .ship .sv-detail, .ship .sv-crane, .ship .sv-mast, .ship .sv-radar, .ship .sv-shaft {
  fill: none; stroke: rgba(234,242,251,.7); stroke-width: 1.1;
}
.ship .sv-shaft { stroke-width: 2; }
.ship .sv-window { fill: rgba(234,242,251,.5); }
.ship .sv-funnel-band { fill: #6FB0F0; }
.ship .sv-hatchline { stroke: rgba(255,255,255,.25); stroke-width: 1; }
.ship .sv-label { fill: rgba(234,242,251,.75); font: 700 8px var(--font); letter-spacing: .08em; text-anchor: middle; }
.ship .sv-label--sm { font-size: 6px; }
.ship .sv-hit { fill: none; stroke: none; }
.ship [data-zone="engine_room"] .sv-space { fill: rgba(111,176,240,.16); stroke: #9CCBF7; }
.ship [data-zone="engine_room"] .sv-machine { fill: rgba(111,176,240,.25); stroke: #FFFFFF; }
.ship [data-zone="accommodation"] .sv-house { fill: rgba(255,255,255,.05); }
.callout line, .callout path { stroke: #9CCBF7; stroke-width: 1.1; fill: none; }
.callout .dim { stroke: #9CCBF7; stroke-width: 1; }
.callout circle { fill: var(--plan); stroke: #FFFFFF; stroke-width: 1.6; }
.callout text { fill: #FFFFFF; font: 700 13px var(--font); text-anchor: middle; dominant-baseline: central; }
.callout .dot { fill: #9CCBF7; stroke: none; }

/* Legend under the drawing: the three services in sequence */
.legend { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.22); margin-top: 8px; }
.legend a {
  display: grid; grid-template-columns: 34px 1fr; align-content: start; gap: 4px 14px; padding: 26px 24px 30px 0; text-decoration: none; color: #C8D9EC;
}
.legend a + a { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.22); }
.legend .n {
  grid-row: span 2; width: 30px; height: 30px; border: 1.6px solid #FFF; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #FFF; font-size: .95rem;
}
.legend b { color: #FFF; font-size: 1.12rem; }
.legend span:last-child { font-size: .97rem; line-height: 1.5; }
.legend a:hover b { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 760px) {
  .legend { grid-template-columns: 1fr; }
  .legend a, .legend a + a { padding: 18px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .legend a:first-child { border-top: 0; }
}

/* ---------------- Screens ("drawings" of the software) ---------------- */
.screen { margin: 0; }
.screen__img {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: var(--white); cursor: zoom-in;
  box-shadow: 0 1px 0 rgba(14,42,71,.04), 0 18px 40px -24px rgba(14,42,71,.35);
}
.plan .screen__img { border-color: rgba(255,255,255,.25); box-shadow: 0 24px 60px -30px rgba(0,0,0,.6); }
.screen__img img { width: 100%; }
/* Title block: what the drawing is, the way a plan is captioned */
.tblock { margin: 0; display: grid; grid-template-columns: auto 1fr; border: 1px solid var(--line); border-top: 0; font-size: .9rem; border-radius: 0 0 var(--r) var(--r); }
.tblock > * { padding: 8px 12px; }
.tblock dt { color: var(--muted); border-right: 1px solid var(--line); }
.tblock dd { margin: 0; color: var(--text); }
.plan .tblock { border-color: rgba(255,255,255,.25); }
.plan .tblock dt { color: #A9C2DE; border-color: rgba(255,255,255,.25); }
.plan .tblock dd { color: #E4EEF9; }
.screen--flush .screen__img { border-radius: var(--r) var(--r) 0 0; }

.phones { display: flex; gap: clamp(10px, 2vw, 20px); justify-content: center; align-items: flex-start; }
.phone {
  flex: 0 1 220px; border: 7px solid var(--ink); border-radius: 26px; overflow: hidden; background: var(--ink);
  box-shadow: 0 24px 48px -28px rgba(14,42,71,.6); padding: 0; cursor: zoom-in;
}
.phone img { border-radius: 19px; }
.phone:nth-child(2) { margin-top: 36px; }
.phone:nth-child(3) { margin-top: 12px; }
@media (max-width: 560px) { .phone:nth-child(3) { display: none; } .phone { flex-basis: 46%; } }

/* ---------------- Split rows ---------------- */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(64px, 9vw, 120px); }
.split--flip > :first-child { order: 2; }
.split--top { align-items: start; }
.split h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); letter-spacing: -.01em; }
@media (max-width: 860px) {
  .split, .split--flip { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 7px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}

/* ---------------- Flow (sequence with a dimension line) ---------------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.flow::before {
  content: ""; position: absolute; left: 15px; right: calc(33.333% - 15px); top: 15px; height: 0; border-top: 1px solid var(--blue);
}
.flow__step { position: relative; padding: 0 28px 0 0; }
.flow__n {
  position: relative; width: 31px; height: 31px; border-radius: 50%; background: var(--white); border: 1.6px solid var(--blue);
  display: grid; place-items: center; font-weight: 700; color: var(--blue); margin-bottom: 22px;
}
.flow__step h3 { margin-bottom: .35em; }
.flow__step p { color: var(--muted); }
.flow__step .io { font-size: .95rem; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.flow__step .io div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 3px 0; }
.flow__step .io dt { color: var(--muted); }
.flow__step .io dd { margin: 0; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 34px; }
  .flow::before { left: 15px; right: auto; top: 15px; bottom: 15px; height: auto; border-top: 0; border-left: 1px solid var(--blue); }
  .flow__step { padding: 0 0 0 52px; }
  .flow__n { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------------- Ruled grids ---------------- */
.ruled { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.ruled > * { padding: 24px 26px 26px 0; border-bottom: 1px solid var(--line); }
.ruled > *:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.ruled h3 { font-size: 1.08rem; margin-bottom: .4em; display: flex; gap: 10px; align-items: center; }
.ruled h3 svg { width: 22px; height: 22px; flex: none; color: var(--blue); }
.ruled p { color: var(--muted); font-size: .98rem; margin: 0; }
.ruled--2 { grid-template-columns: repeat(2, 1fr); }
.ruled--2 > *:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
.ruled--2 > *:nth-child(2n) { padding-left: 26px; border-left: 1px solid var(--line); }
@media (max-width: 860px) {
  .ruled, .ruled--2 { grid-template-columns: 1fr 1fr; }
  .ruled > *, .ruled > *:not(:nth-child(3n+1)) { padding: 20px 18px 22px 0; border-left: 0; }
  .ruled > *:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .ruled, .ruled--2 { grid-template-columns: 1fr; }
  .ruled > *, .ruled > *:nth-child(2n), .ruled > *:not(:nth-child(3n+1)) { padding: 18px 0; border-left: 0; }
}

/* Modules index (PMS page) */
.modules { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.modules a {
  display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--text); font-size: .93rem; background: var(--white);
}
.modules a:hover { border-color: var(--blue); color: var(--blue); }
.plan .modules a { background: transparent; border-color: rgba(255,255,255,.3); color: #E4EEF9; }
.plan .modules a:hover { border-color: #FFF; color: #FFF; }

/* ---------------- Manuals: input → output ---------------- */
.io-pair { display: grid; grid-template-columns: minmax(0, .8fr) 56px minmax(0, 1.4fr); align-items: start; gap: 0; }
.io-pair__arrow { align-self: center; justify-self: center; color: var(--blue); }
.io-pair__arrow svg { width: 40px; height: 40px; }
.pdfpage { border: 1px solid var(--line); box-shadow: 0 18px 40px -26px rgba(14,42,71,.45); background: #FFF; }
.cap { font-size: .9rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 900px) {
  .io-pair { grid-template-columns: minmax(0, 1fr); }
  .io-pair__arrow { transform: rotate(90deg); margin: 14px 0; }
  .io-pair .pdf-col { max-width: 420px; }
}

.sheet { border: 1px solid #B8C7D8; border-radius: var(--r); background: #FFF; overflow: hidden; box-shadow: 0 18px 40px -26px rgba(14,42,71,.45); }
.sheet__tabs { display: flex; overflow-x: auto; background: #EEF3F8; border-bottom: 1px solid #B8C7D8; scrollbar-width: thin; }
.sheet__tabs button {
  flex: none; font: 400 .9rem var(--font); color: var(--text); background: none; border: 0; border-right: 1px solid #D3DEEA;
  padding: 10px 14px; cursor: pointer; white-space: nowrap;
}
.sheet__tabs button[aria-selected="true"] { background: #FFF; color: var(--blue); font-weight: 700; box-shadow: inset 0 -2px 0 var(--blue); }
.sheet__body { overflow-x: auto; }
.sheet table { border-collapse: collapse; width: 100%; font-size: .86rem; min-width: 560px; }
.sheet th, .sheet td { border: 1px solid #DCE5EF; padding: 7px 9px; text-align: left; vertical-align: top; }
.sheet thead th { background: #1C64B4; color: #FFF; font-weight: 700; border-color: #2B71BF; white-space: nowrap; }
.sheet tbody tr:nth-child(even) td { background: #F6F9FC; }
.sheet td.num { text-align: right; white-space: nowrap; }
.sheet .ref { color: var(--blue); white-space: nowrap; }
.sheet__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); padding: 8px 12px; border-top: 1px solid #DCE5EF; background: #FAFCFE; }

/* Ask-the-manual conversation */
.ask { border: 1px solid var(--line); border-radius: var(--r); background: #FFF; box-shadow: 0 18px 40px -26px rgba(14,42,71,.35); }
.ask__q, .ask__a { padding: 18px 20px; }
.ask__q { border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.ask__q b { color: var(--ink); }
.ask__who { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.ask__a { font-size: .98rem; }
.ask__a ul { margin: .4em 0 .8em; padding-left: 1.2em; }
.ask__src { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ask__src span { font-size: .84rem; border: 1px solid var(--blue); color: var(--blue); border-radius: 999px; padding: 3px 10px; }

/* ---------------- Digitization: process ---------------- */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.timeline li { display: grid; grid-template-columns: 52px 1fr; gap: 0 18px; position: relative; padding-bottom: 30px; }
.timeline li::before {
  counter-increment: s; content: counter(s); width: 31px; height: 31px; border-radius: 50%; border: 1.6px solid var(--blue);
  color: var(--blue); font-weight: 700; display: grid; place-items: center; background: var(--white); position: relative; z-index: 1;
}
.timeline li::after { content: ""; position: absolute; left: 15px; top: 31px; bottom: 0; border-left: 1px solid var(--blue); }
.timeline li:last-child::after { display: none; }
.timeline h3 { margin: 3px 0 .3em; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------------- Facts table ---------------- */
.facts { width: 100%; border-collapse: collapse; font-size: .98rem; }
.facts th, .facts td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 34%; color: var(--muted); font-weight: 400; }

/* ---------------- FAQ ---------------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.4rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-right: 36px; }

/* ---------------- CTA band ---------------- */
.cta { padding: clamp(48px, 7vw, 80px) 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { margin: 0 0 .25em; }
.cta p { margin: 0; max-width: 56ch; }
.cta .actions { margin: 0; }

/* ---------------- Forms ---------------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .95rem; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem var(--font); color: var(--text); background: #FFF;
  border: 1px solid #AFC2D6; border-radius: var(--r); padding: 11px 12px; min-height: 46px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28,100,180,.2); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field .err { color: var(--err); font-size: .9rem; margin-top: 5px; min-height: 0; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .95rem; color: var(--muted); margin: 6px 0 18px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--r); padding: 14px 16px; margin-bottom: 16px; font-size: .98rem; }
.notice--ok { background: #E7F4EC; color: #14532D; border: 1px solid #A7D7B9; }
.notice--err { background: #FDECEA; color: #7A1A12; border: 1px solid #F3B4AC; }
.form-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }

/* ---------------- Legal / prose ---------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--wash); }
.placeholder { background: #FFF4CC; padding: 0 4px; }
@media (max-width: 700px) { .prose table { display: block; overflow-x: auto; } .prose td, .prose th { min-width: 120px; } }

/* ---------------- Footer ---------------- */
.site-foot { background: var(--ink); color: #B9CBE0; padding: 56px 0 28px; font-size: .95rem; }
.site-foot a { color: #E4EEF9; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h2 { font-size: 1rem; color: #FFF; margin-bottom: 12px; letter-spacing: 0; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.site-foot .brand { color: #FFF; margin-bottom: 12px; }
.site-foot .brand__name span { color: #8EC2F5; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 20px; font-size: .88rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #E4EEF9; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------------- Cookie consent ---------------- */
.cc {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto;
  background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 18px 48px rgba(14,42,71,.25); padding: 20px 22px;
}
.cc[hidden] { display: none; }
.cc h2 { font-size: 1.05rem; margin: 0 0 6px; }
.cc p { font-size: .94rem; color: var(--muted); margin: 0 0 14px; }
.cc .actions { margin-top: 0; gap: 10px; }
.cc .btn { min-height: 42px; padding: 0 16px; font-size: .95rem; }
.cc__prefs { border-top: 1px solid var(--line); margin: 4px 0 14px; padding-top: 6px; }
.cc__prefs[hidden] { display: none; }
.cc__row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.cc__row small { display: block; color: var(--muted); }
.switch { position: relative; width: 44px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: #AFC2D6; border-radius: 999px; transition: background-color .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFF; transition: transform .15s; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled + span { opacity: .6; }
.switch input:focus-visible + span { outline: 3px solid #5AA0E8; outline-offset: 2px; }

/* ---------------- Lightbox ---------------- */
.lb { border: 0; padding: 0; background: transparent; max-width: min(1600px, 96vw); max-height: 94vh; }
.lb::backdrop { background: rgba(8, 24, 42, .86); }
.lb img { max-height: 88vh; width: auto; margin: 0 auto; border-radius: 4px; }
.lb__close {
  position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #FFF; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lb figcaption { color: #DCE8F5; text-align: center; font-size: .95rem; margin-top: 10px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-head, .cc, .site-foot, .cta { display: none; }
  .plan { background: #FFF; color: #000; }
  .plan h1, .plan h2, .plan p { color: #000; }
}
.callout .lbl { font: 400 13px var(--font); fill: #C8D9EC; text-anchor: start; letter-spacing: .01em; }
@media (max-width: 760px) { .callout .lbl { display: none; } }

/* Library illustration (digitization) */
.libdraw { width: 100%; max-width: 560px; margin: 0 auto; }
.libdraw .ld-line { fill: none; stroke: #EAF2FB; stroke-width: 1.6; stroke-linejoin: round; }
.libdraw .ld-soft { fill: none; stroke: rgba(234,242,251,.5); stroke-width: 1.2; stroke-linecap: round; }
.libdraw .ld-accent { fill: none; stroke: #9CCBF7; stroke-width: 1.6; }
.libdraw .ld-fill { fill: #9CCBF7; stroke: none; }
.libdraw .ld-hl { fill: rgba(111,176,240,.35); stroke: none; }
.libdraw .ld-label text { fill: #C8D9EC; font: 400 12px var(--font); }
.libdraw .ld-label text[transform] { font: 700 8px var(--font); letter-spacing: .06em; fill: rgba(234,242,251,.75); text-anchor: middle; }
.libdraw .ld-search { fill: #FFFFFF; font: 400 11px var(--font); }

.split .timeline h3, .form-wrap .timeline h3 { font-size: 1.1rem; letter-spacing: 0; }
.ask__q p { margin: 3px 0 0; }
.sheet td:nth-child(2) { white-space: nowrap; }
.site-foot .brand svg rect:first-child { fill: #1B4470; }
/* Wordmark as drawn shapes (identical on every system) */
.brand .brand__word { height: 1.05rem; width: auto; display: block; }
.brand__word .w1 { fill: var(--ink); }
.brand__word .w2 { fill: var(--blue); stroke: var(--blue); }
.site-foot .brand__word .w1 { fill: #FFFFFF; }
.site-foot .brand__word .w2 { fill: #8EC2F5; stroke: #8EC2F5; }
