@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --abyss: #0A2540;
  --deep: #061A2E;
  --current: #1573FF;
  --horizon: #00B5A5;
  --signal: #FFB01F;
  --hull: #F7F9FB;
  --ink: #0E1A24;
  --muted: #56687A;
  --steel: #C7D2DD;

  /* Roles, light */
  --bg: var(--hull);
  --bg-tint: #ECF1F6;
  --surface: #FFFFFF;
  --text: var(--ink);
  --heading: var(--abyss);
  --text-muted: var(--muted);
  --rule: var(--steel);
  --link: #0F62E0;          /* --current darkened to meet AA on light */
  --btn: #0F62E0;
  --btn-hover: #0B4FB8;
  --land: #D5DEE7;
  --sea: #FFFFFF;
  --route-wider: #00786E;   /* --horizon darkened for contrast on the light map */

  /* Dark surfaces (hero, page heads, footer) keep the same values in both schemes */
  --on-dark: #F2F6FA;
  --on-dark-muted: #A9BACB;
  --dark-rule: #1D3A57;
  --link-on-dark: #7DB2FF;

  --wrap: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

/* Dark colours: when the device is set to dark (unless the visitor chose light on this site),
   or when the visitor chose dark with the switch in the header. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060D15;
    --bg-tint: #0A1622;
    --surface: #0D1A27;
    --text: #DCE5EE;
    --heading: #F2F6FA;
    --text-muted: #9DB0C2;
    --rule: #223649;
    --link: #7DB2FF;
    --btn: #1573FF;
    --btn-hover: #3D8BFF;
    --route-wider: #00B5A5;
    --land: #1B2E42;
    --sea: #0A1622;
    --deep: #03080E;
    --abyss: #081421;
    --dark-rule: #1A2C3F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060D15;
  --bg-tint: #0A1622;
  --surface: #0D1A27;
  --text: #DCE5EE;
  --heading: #F2F6FA;
  --text-muted: #9DB0C2;
  --rule: #223649;
  --link: #7DB2FF;
  --btn: #1573FF;
  --btn-hover: #3D8BFF;
  --route-wider: #00B5A5;
  --land: #1B2E42;
  --sea: #0A1622;
  --deep: #03080E;
  --abyss: #081421;
  --dark-rule: #1A2C3F;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  color: var(--heading);
  font-weight: 650;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, 1.2rem + 3.9vw, 4rem); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.02em; }
h3 { font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1.3; }

p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 48rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--signal); color: #0E1A24; padding: 0.6rem 1rem; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---- Header ---------------------------------------------------------- */
.site-header { background: var(--deep); color: var(--on-dark); }
.header-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 2rem; padding-block: 1.125rem;
}

.logo { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--on-dark); text-decoration: none; }
.mark { width: 2.5rem; flex: none; }
.mark-chevron { fill: #FFFFFF; }
.mark-bar { fill: var(--current); }
.logo-text { display: grid; line-height: 1; }
.logo-name { font-size: 1.3125rem; font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; }
.logo-sub { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.42em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 0.3rem; }

.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.site-nav a {
  display: block; padding: 0.5rem 0; color: var(--on-dark); text-decoration: none;
  font-size: 0.9688rem; font-weight: 500; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--on-dark-muted); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--signal); }

.nav-toggle {
  display: none; font: inherit; font-size: 0.9688rem; font-weight: 600; color: var(--on-dark);
  background: none; border: 1px solid var(--dark-rule); border-radius: 4px; padding: 0.5rem 0.875rem; cursor: pointer;
}

@media (max-width: 80rem) {
  .js .nav-toggle { display: block; }
  .js .site-nav { display: none; flex-basis: 100%; }
  .js .site-nav.is-open { display: block; }
  .site-nav { flex-basis: 100%; }
  .site-nav ul { display: block; border-top: 1px solid var(--dark-rule); margin-top: 0.5rem; padding-top: 0.5rem; }
  .site-nav a { padding: 0.75rem 0; border-bottom: 0; }
  .site-nav a[aria-current="page"] { color: var(--signal); }
}

/* ---- Hero and page heads -------------------------------------------- */
.hero, .page-head { background: var(--deep); color: var(--on-dark); }
.hero h1, .page-head h1 { color: #FFFFFF; max-width: 18ch; }
.page-head h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); max-width: 22ch; }
.lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.55; color: var(--on-dark-muted); max-width: 56ch; margin-top: 1.5rem; }

.hero-text { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4rem); }
.page-head .lede { margin-bottom: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.25rem; }

.btn {
  display: inline-block; font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
  padding: 0.9375rem 1.5rem; border-radius: 4px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--btn); color: #FFFFFF; }
.btn-primary:hover { background: var(--btn-hover); }
.hero .btn-primary, .cta .btn-primary { background: #0F62E0; }
.hero .btn-primary:hover, .cta .btn-primary:hover { background: #2A7BF5; }
.btn-ghost { color: var(--on-dark); border-color: #4A6480; }
.btn-ghost:hover { border-color: var(--on-dark); }

.hero-ship { margin: 0; }
.hero-ship .wrap { max-width: 84rem; }
.tanker { width: 100%; overflow: visible; }
@media (max-width: 40rem) {
  /* On phones, show the aft half of the ship at a legible size */
  .hero-ship .wrap { overflow: hidden; padding-inline: 0; }
  .tanker { width: 210%; max-width: none; }
}
.t-hull { fill: #12365A; stroke: #5E7FA0; stroke-width: 1.5; }
.t-boot { fill: var(--current); }
.t-house { fill: #E9EFF5; }
.t-windows { stroke: #12365A; stroke-width: 3; stroke-dasharray: 7 5; }
.t-funnel { fill: #12365A; stroke: #5E7FA0; stroke-width: 1.5; }
.t-funnel-chev { fill: #FFFFFF; }
.t-funnel-bar { fill: var(--signal); }
.t-boat { fill: var(--signal); }
.t-rig { stroke: #8FA6BD; stroke-width: 2.5; stroke-linecap: square; }
.t-sea { stroke: #5E7FA0; stroke-width: 1.5; }
.hero-ship figcaption {
  background: var(--abyss); color: var(--on-dark-muted); font-size: 0.875rem; line-height: 1.5;
  padding-block: 1rem; margin-top: -1px; border-top: 1px solid #5E7FA0;
}

/* ---- Sections -------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tint { background: var(--bg-tint); }

.marked { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1.25rem; }
.chev { width: 1.125rem; flex: none; fill: var(--current); transform: translateY(-0.05em); }
.split h2.marked:not(:first-child) { margin-top: 2.75rem; }

.intro { font-size: 1.1875rem; line-height: 1.55; max-width: 60ch; margin-bottom: 2.5rem; }
.section p:last-child { margin-bottom: 0; }

.link { font-weight: 600; }

/* Three columns sharing one rule: the "cards" */
.trio { display: grid; gap: 0; border-top: 2px solid var(--heading); margin-bottom: 2.5rem; }
.trio:last-child { margin-bottom: 0; }
.trio article { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.trio h3 { margin-bottom: 0.625rem; }
.trio h3 a { color: var(--heading); text-decoration-color: var(--current); text-decoration-thickness: 2px; }
.trio h3 a:hover { color: var(--link); }
.trio p { margin: 0; color: var(--text-muted); }
@media (min-width: 52rem) {
  .trio { grid-template-columns: repeat(3, 1fr); }
  .trio article { padding: 1.75rem 2rem 0.5rem 0; border-bottom: 0; }
  .trio article + article { padding-left: 2rem; border-left: 1px solid var(--rule); }
}

.split { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .split-map { grid-template-columns: minmax(0, 30rem) 1fr; }
  .split-form { grid-template-columns: 1.4fr 1fr; }
}

.photo { margin: 0; }
.photo figcaption { margin-top: 0.625rem; font-size: 0.875rem; line-height: 1.5; color: var(--text-muted); }
.photo.photo-wide img { aspect-ratio: 16 / 9; }
.section-flush { padding-top: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; background: var(--bg-tint); }

/* ---- Both-ends band --------------------------------------------------- */
.voyage-band { background: var(--abyss); color: var(--on-dark); }
.voyage-band h2, .voyage-band h3 { color: #FFFFFF; }
.voyage-band .intro { color: var(--on-dark-muted); }
.voyage-band .chev { fill: var(--signal); }

.voyage { display: grid; gap: 0.875rem; }
.span { margin: 0; max-width: none; font-size: 0.9375rem; font-weight: 600; padding: 0.625rem 1rem; border-radius: 2px; }
.span-group { background: var(--horizon); color: #04201D; }
.span-owner { border: 1px dashed #6F8AA6; color: var(--on-dark-muted); }

.stages { display: grid; gap: 0; counter-reset: stage; }
.stages li {
  counter-increment: stage; padding: 1.25rem 0 1.25rem 3rem; position: relative;
  border-top: 1px solid var(--dark-rule);
}
.stages li:first-child { border-top: 0; }
.stages li::before {
  content: counter(stage); position: absolute; left: 0; top: 1.25rem;
  width: 2rem; height: 2rem; border: 1.5px solid #6F8AA6; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.9375rem; font-weight: 600; color: #FFFFFF;
}
.stages li.is-ocean::before { background: var(--signal); border-color: var(--signal); color: #0E1A24; }
.stages h3 { margin-bottom: 0.375rem; }
.stages p { margin: 0; color: var(--on-dark-muted); font-size: 1rem; }

@media (min-width: 52rem) {
  .voyage { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .span-group { grid-column: 1 / -1; }
  .span-owner { grid-column: 2 / span 2; justify-self: start; white-space: nowrap; }
  .stages { grid-column: 1 / -1; grid-template-columns: subgrid; margin-block: 1rem; }
  .stages li { padding: 3.25rem 1.5rem 0.5rem 0; border-top: 0; }
  .stages li::before { top: 0; }
  /* the line joining the stages */
  .stages li::after {
    content: ""; position: absolute; top: 1rem; left: 2rem; right: 0; height: 1.5px; background: #6F8AA6;
  }
  .stages li:last-child::after { display: none; }
}

/* ---- Closing call to action ------------------------------------------ */
.cta { background: var(--deep); color: var(--on-dark); }
.cta h2 { color: #FFFFFF; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); max-width: 22ch; margin-bottom: 1rem; }
.cta p { color: var(--on-dark-muted); font-size: 1.1875rem; margin-bottom: 2rem; }
.section.cta p:last-child { margin-bottom: 2rem; }

/* ---- Lists ------------------------------------------------------------ */
.terms { display: grid; gap: 0; margin-bottom: 2.5rem; border-top: 2px solid var(--heading); }
.terms li { display: flex; gap: 1rem; padding: 1.375rem 0; border-bottom: 1px solid var(--rule); }
.terms .chev, .bullets .chev { margin-top: 0.5rem; width: 0.9375rem; transform: none; }
.terms h3 { margin-bottom: 0.25rem; }
.terms p { margin: 0; color: var(--text-muted); }
@media (min-width: 52rem) {
  .terms { grid-template-columns: 1fr 1fr; column-gap: 4.5rem; }
}

.bullets li { display: flex; gap: 0.875rem; padding: 0.5rem 0; }
.bullets li + li { border-top: 1px solid var(--rule); }

.offices { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); max-width: 26rem; }
.offices li { padding: 0.5rem 0; border-bottom: 1px solid var(--rule); font-weight: 500; color: var(--heading); }

/* The usual path: a real sequence, so it is numbered */
.path { display: grid; gap: 0; counter-reset: step; }
.path li { counter-increment: step; position: relative; padding: 0 0 2rem 3.25rem; }
.path li::before {
  content: counter(step); position: absolute; left: 0; top: -0.125rem;
  width: 2.125rem; height: 2.125rem; border-radius: 50%; background: var(--heading); color: var(--bg);
  display: grid; place-items: center; font-weight: 650; font-size: 0.9375rem;
}
.path li::after { content: ""; position: absolute; left: 1.03rem; top: 2.25rem; bottom: 0.25rem; width: 1.5px; background: var(--rule); }
.path li:last-child { padding-bottom: 0; }
.path li:last-child::after { display: none; }
.path h3 { margin-bottom: 0.375rem; }
.path p { margin: 0; color: var(--text-muted); }
@media (min-width: 52rem) {
  .path { grid-template-columns: repeat(3, 1fr); }
  .path li { padding: 3rem 2rem 0 0; }
  .path li::before { top: 0; }
  .path li::after { left: 2.125rem; right: 0; top: 1.03rem; bottom: auto; width: auto; height: 1.5px; }
}

/* Intended structure */
.structure { display: grid; gap: 0; max-width: 46rem; }
.tier { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: 2px; padding: 1.25rem 1.5rem; }
.tier + .tier { margin-top: 1.75rem; }
.tier + .tier::before { content: ""; position: absolute; left: 2.25rem; top: -1.75rem; height: 1.75rem; width: 1.5px; background: var(--muted); }
.tier:nth-child(2) { margin-left: clamp(0rem, 4vw, 3rem); }
.tier:nth-child(3) { margin-left: clamp(0rem, 8vw, 6rem); }
.tier h3 { margin-bottom: 0.25rem; }
.tier p { margin: 0; color: var(--text-muted); }

/* ---- Options table ---------------------------------------------------- */
.options { width: 100%; border-collapse: collapse; text-align: left; }
.options th, .options td { padding: 1.25rem 1.5rem 1.25rem 0; vertical-align: top; border-bottom: 1px solid var(--rule); }
.options thead th { font-size: 1.375rem; font-weight: 650; color: var(--heading); letter-spacing: -0.015em; border-bottom: 2px solid var(--heading); width: 27%; }
.options thead td { border-bottom: 2px solid var(--heading); }
.options tbody th { font-weight: 600; color: var(--text-muted); font-size: 0.9688rem; white-space: nowrap; }

@media (max-width: 47.99rem) {
  .options, .options tbody, .options tr, .options td, .options th { display: block; }
  .options thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .options tr { border-top: 2px solid var(--heading); padding-block: 1rem 0.5rem; }
  .options tr + tr { margin-top: 1.5rem; }
  .options tbody th { padding: 0 0 0.5rem; border: 0; font-size: 1.1875rem; color: var(--heading); }
  .options td { padding: 0.75rem 0; }
  .options td:last-child { border-bottom: 0; }
  .options td::before { content: attr(data-label); display: block; font-weight: 650; color: var(--heading); margin-bottom: 0.125rem; }
}

/* ---- Map ---------------------------------------------------------------- */
.map-figure { margin: 0; }
.map { width: 100%; border: 1px solid var(--rule); border-radius: 2px; font-family: var(--font); }
.m-sea { fill: var(--sea); }
.m-land { fill: var(--land); }
.m-route { fill: none; stroke: var(--current); stroke-width: 3.5; stroke-linecap: round; }
.m-route-wider { stroke: var(--route-wider); stroke-width: 2; stroke-dasharray: 1 5.5; }
.m-arrow { fill: var(--current); stroke: var(--sea); stroke-width: 40; paint-order: stroke; }
.m-port { fill: var(--signal); stroke: var(--ink); stroke-width: 1.5; }
.m-label { font-size: 13.5px; font-weight: 650; fill: var(--heading); paint-order: stroke; stroke: var(--land); stroke-width: 3px; stroke-linejoin: round; }
.m-water { font-size: 12px; font-style: italic; fill: var(--text-muted); }
.map-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 2px; }
.map-scroll .map { border: 0; min-width: 52rem; }
.map-hint { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--text-muted); }
@media (min-width: 48rem) { .map-hint { display: none; } }
.key.key-wider::before { border-top: 3px dotted var(--route-wider); }
.cols { display: grid; gap: 2.5rem; margin-top: 3.5rem; }
@media (min-width: 56rem) { .cols { grid-template-columns: repeat(3, 1fr); gap: 3.5rem; } }
.map-figure figcaption { display: grid; gap: 0.375rem; margin-top: 1rem; font-size: 0.9375rem; color: var(--text-muted); }
.key { display: flex; align-items: center; gap: 0.75rem; }
.key::before { content: ""; width: 2.25rem; flex: none; border-top: 3px solid var(--current); }


/* ---- Forms -------------------------------------------------------------- */
.fields { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) {
  .fields { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
}
.field label { display: block; font-weight: 600; font-size: 0.9688rem; color: var(--heading); margin-bottom: 0.375rem; }
.optional { font-weight: 400; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--muted); border-radius: 3px; padding: 0.75rem 0.875rem;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--current); outline-offset: 1px; border-color: var(--current); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.form-note { margin: 0; font-size: 0.9375rem; color: var(--text-muted); flex: 1 1 16rem; }
.form-status { margin: 1.25rem 0 0; font-weight: 600; color: var(--heading); }
.form-status:empty { display: none; }
.form-status.is-error { color: #B3261E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-status.is-error { color: #FF9B93; } }
:root[data-theme="dark"] .form-status.is-error { color: #FF9B93; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--deep); color: var(--on-dark-muted); padding-block: 3.5rem 2.5rem; font-size: 0.9688rem; }
.site-footer a { color: var(--on-dark); }
.site-footer p { margin-bottom: 0.375rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-legal { margin-top: 1.25rem; color: var(--on-dark); }
.footer-nav li + li { margin-top: 0.375rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-note { margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--dark-rule); font-size: 0.875rem; max-width: none; }
/* ---- Owner platform demonstration -------------------------------------- */
.portal { border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); overflow: hidden; }
.portal-flag {
  margin: 0; max-width: none; padding: 0.75rem 1.25rem; font-size: 0.9375rem;
  background: var(--signal); color: #0E1A24;
}
.portal-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem;
  padding: 0.875rem 1.25rem; background: var(--abyss); color: var(--on-dark);
}
.portal-owner { font-weight: 650; }
.portal-role { color: var(--on-dark-muted); font-size: 0.9375rem; }

.portal-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--rule); background: var(--bg-tint); }
.portal-tabs button {
  flex: none; font: inherit; font-size: 0.9688rem; font-weight: 600; color: var(--text-muted);
  background: none; border: 0; border-bottom: 3px solid transparent; padding: 0.875rem 1.125rem; cursor: pointer;
}
.portal-tabs button:hover { color: var(--heading); }
.portal-tabs button[aria-selected="true"] { color: var(--heading); border-bottom-color: var(--current); background: var(--surface); }
.portal-tabs button:focus-visible { outline-offset: -3px; }
/* Without JavaScript every panel shows in turn and the tab row is not needed */
html:not(.js) .portal-tabs { display: none; }

.portal-panel { padding: 1.5rem 1.25rem 1.75rem; }
.portal-panel + .portal-panel { border-top: 1px solid var(--rule); }
.js .portal-panel[hidden] { display: none; }
.js .portal-panel + .portal-panel { border-top: 0; }
.portal-panel h2 { font-size: 1.375rem; margin-bottom: 1rem; }
.portal-panel h3 { font-size: 1.0625rem; margin: 1.75rem 0 0.625rem; }
.portal-panel p { color: var(--text-muted); }
.portal-note { font-size: 0.9375rem; margin-top: 1rem; }

@media (min-width: 56rem) {
  .portal-body { display: grid; grid-template-columns: 13rem 1fr; }
  .portal-tabs { flex-direction: column; overflow: visible; border-bottom: 0; border-right: 1px solid var(--rule); padding-block: 0.75rem; }
  .portal-tabs button { text-align: left; border-bottom: 0; border-left: 3px solid transparent; padding: 0.75rem 1.25rem; }
  .portal-tabs button[aria-selected="true"] { border-left-color: var(--current); }
  .portal-panel { padding: 2rem 2.25rem 2.5rem; min-height: 30rem; }
  html:not(.js) .portal-body { display: block; }
}

.tiles { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.tile { border: 1px solid var(--rule); border-radius: 4px; padding: 1rem 1.125rem; display: grid; gap: 0.25rem; }
.tile-num { font-size: 1.875rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; color: var(--heading); font-variant-numeric: tabular-nums; }
.tile-label { font-size: 0.9375rem; color: var(--text-muted); }

.feed li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.625rem 0; border-top: 1px solid var(--rule); }
.feed li:last-child { border-bottom: 1px solid var(--rule); }
.feed-when { flex: none; color: var(--text-muted); font-size: 0.9375rem; text-align: right; }

.vessel { border: 1px solid var(--rule); border-radius: 4px; padding: 1.125rem 1.25rem; }
.vessel + .vessel { margin-top: 1rem; }
.vessel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.portal-panel .vessel-head h3 { margin: 0; font-size: 1.1875rem; }
.vessel-meta { margin: 0.25rem 0 1rem; }
.leg { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; font-weight: 600; color: var(--heading); }
.leg-track { flex: 1; height: 6px; border-radius: 3px; background: var(--bg-tint); border: 1px solid var(--rule); overflow: hidden; }
.leg-done { display: block; height: 100%; background: var(--current); }
.facts { display: grid; gap: 0.75rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); margin: 1.125rem 0 0; }
.facts dt { font-size: 0.875rem; color: var(--text-muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--heading); }

.pill { display: inline-block; font-size: 0.8125rem; font-weight: 600; line-height: 1.2; padding: 0.25rem 0.625rem; border-radius: 999px; border: 1px solid var(--rule); color: var(--heading); white-space: nowrap; }
.pill-teal { border-color: var(--route-wider); color: var(--route-wider); }
.pill-amber { background: var(--signal); border-color: var(--signal); color: #0E1A24; }

.ptable { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9688rem; }
.ptable th, .ptable td { padding: 0.625rem 1rem 0.625rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ptable thead th { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); border-bottom-color: var(--heading); }
.ptable tfoot th, .ptable tfoot td { font-weight: 650; color: var(--heading); border-bottom: 0; border-top: 1px solid var(--heading); }
.ptable .num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 40rem) {
  .ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ptable tr { display: grid; padding: 0.625rem 0; border-bottom: 1px solid var(--rule); gap: 0.125rem; }
  .ptable th, .ptable td { padding: 0; border: 0; }
  .ptable .num { text-align: left; font-weight: 650; color: var(--heading); }
  .ptable tfoot th, .ptable tfoot td { border-top: 0; }
}

.btn-quiet { background: none; border-color: var(--rule); color: var(--text-muted); font-size: 0.9375rem; padding: 0.625rem 1rem; margin-top: 1.25rem; }
.btn-quiet[disabled] { cursor: not-allowed; }
/* ---- Shipping-line layout: utility bar, light sticky header, photo hero,
        quick actions, facts band, image cards, photo banners, column footer.
        Loaded last, so these rules override the base styles. ---------------- */

/* Utility bar */
.util-bar { background: var(--deep); color: var(--on-dark-muted); font-size: 0.8125rem; }
.util-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.5rem; }
.util-links { display: flex; gap: 1.5rem; }
.util-bar a { color: var(--on-dark); text-decoration: none; }
.util-bar a:hover { text-decoration: underline; }

/* Header */
.site-header { background: var(--surface); color: var(--heading); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--rule); }
.header-row { padding-block: 0.875rem; }
.site-header .logo { color: var(--heading); }
.site-header .mark-chevron { fill: var(--heading); }
.site-header .logo-sub { color: var(--text-muted); }
.site-nav ul { align-items: center; gap: 0.25rem 1.5rem; }
.site-nav a { color: var(--heading); }
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--current); }
.site-nav .nav-cta a { background: var(--btn); color: #FFFFFF; padding: 0.625rem 1.125rem; border-radius: 4px; border-bottom: 0; font-weight: 600; }
.site-nav .nav-cta a:hover { background: var(--btn-hover); }
.nav-toggle { color: var(--heading); border-color: var(--rule); }
@media (max-width: 80rem) {
  .site-nav ul { border-top-color: var(--rule); }
  .site-nav a[aria-current="page"] { color: var(--link); }
  .site-nav .nav-cta a { display: inline-block; margin: 0.5rem 0 0.25rem; padding: 0.75rem 1.25rem; }
}

/* Photo hero */
.hero-photo { position: relative; isolation: isolate; display: grid; align-items: end; min-height: 26rem; background: var(--deep); }
.hero-photo .hero-media { position: absolute; inset: 0; margin: 0; z-index: -2; }
.hero-photo .hero-media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 62%; border-radius: 0; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 26, 46, 0.2) 0%, rgba(6, 26, 46, 0) 30%, rgba(6, 26, 46, 0.1) 55%, rgba(6, 26, 46, 0.86) 100%);
}
.hero-photo .hero-inner { padding-block: 2rem 4.5rem; }
.hero-photo h1 { font-size: clamp(2rem, 1rem + 3vw, 3.25rem); max-width: 48rem; text-shadow: 0 1px 18px rgba(6, 26, 46, 0.55); }
.hero-note { margin: 0.75rem 0 0; font-size: 0.8125rem; color: #D5DEE7; max-width: none; }
@media (min-width: 52rem) {
  .hero-photo { aspect-ratio: 16 / 9; max-height: 46rem; min-height: 32rem; width: 100%; }
}

/* Quick actions overlapping the hero */
.quick { position: relative; z-index: 2; margin-top: -2.5rem; }
.quick-grid { display: grid; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 12px 32px rgba(6, 26, 46, 0.14); overflow: hidden; }
.quick-grid a { display: grid; gap: 0.25rem; padding: 1.25rem 1.5rem; text-decoration: none; color: var(--text-muted); border-top: 1px solid var(--rule); }
.quick-grid a:first-child { border-top: 0; }
.quick-grid a:hover { background: var(--bg-tint); }
.quick-grid strong { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; color: var(--heading); font-size: 1.125rem; font-weight: 650; }
.quick-grid strong .chev { transform: rotate(90deg); width: 0.875rem; }
.quick-grid span { font-size: 0.9375rem; line-height: 1.45; }
@media (min-width: 40rem) {
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-grid a:nth-child(2) { border-top: 0; }
  .quick-grid a:nth-child(even) { border-left: 1px solid var(--rule); }
}
@media (min-width: 64rem) {
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .quick-grid a { border-top: 0; border-left: 1px solid var(--rule); }
  .quick-grid a:first-child { border-left: 0; }
}

/* Intro under the hero */
.lead-in { padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.lead-in h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); max-width: 24ch; margin-bottom: 1.25rem; }
.lead-in p { font-size: 1.1875rem; line-height: 1.55; max-width: 62ch; }

/* Service cards with images */
.cards { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.card .photo img { aspect-ratio: 3 / 2; border-radius: 0; }
.card-body { display: flex; flex-direction: column; gap: 0.625rem; padding: 1.5rem; flex: 1; }
.card-body h3 { font-size: 1.3125rem; }
.card-body p { margin: 0; color: var(--text-muted); }
.card-body .link { margin-top: auto; padding-top: 0.75rem; }

/* Facts band */
.facts-band { background: var(--abyss); color: var(--on-dark); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.facts-grid { display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(2, 1fr); margin: 0; }
@media (min-width: 52rem) { .facts-grid { grid-template-columns: repeat(4, 1fr); } }
.facts-grid div { border-top: 2px solid var(--signal); padding-top: 1rem; }
.facts-grid dt { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; color: #FFFFFF; }
.facts-grid dd { margin: 0.5rem 0 0; color: var(--on-dark-muted); font-size: 0.9688rem; line-height: 1.5; }

/* Photo banners on inner pages */
.page-head.has-image {
  display: grid; align-items: end; min-height: clamp(17rem, 30vw, 24rem);
  background-image: linear-gradient(90deg, rgba(6, 26, 46, 0.94) 0%, rgba(6, 26, 46, 0.78) 50%, rgba(6, 26, 46, 0.38) 100%), var(--head-image);
  background-size: cover; background-position: center;
}
.page-head.has-image .lede { color: #D5DEE7; }

/* Footer */
.footer-grid { gap: 2.5rem 2rem; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: 1.7fr repeat(4, 1fr); } }
.footer-col h2 { font-size: 0.9375rem; font-weight: 650; color: #FFFFFF; letter-spacing: 0; margin-bottom: 0.875rem; }
.footer-col li + li { margin-top: 0.5rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }

/* Phones: show the ship in full above the headline instead of behind it */
@media (max-width: 51.99rem) {
  .hero-photo { display: block; min-height: 0; }
  .hero-photo::after { display: none; }
  .hero-photo .hero-media { position: static; }
  .hero-photo .hero-media img { height: auto; aspect-ratio: 4 / 3; object-position: 42% 60%; }
  .hero-photo .hero-inner { padding-block: 1.75rem 4.5rem; }
  .hero-photo h1 { text-shadow: none; }
}

/* Two audiences, side by side */
.audiences { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .audiences { grid-template-columns: 1fr 1fr; } }
.audience { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--current); border-radius: 6px; padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.audience:nth-child(2) { border-top-color: var(--horizon); }
.audience h3 { font-size: 1.5rem; }
.audience p { margin: 0; font-size: 1.0625rem; }
.audience .bullets { margin-bottom: 0.75rem; }
.audience .btn { align-self: flex-start; margin-top: auto; }
.cta .actions { margin-top: 0; }
.util-links { flex-wrap: wrap; gap: 0.25rem 1.5rem; }

/* Dropdown menus */
.has-sub { position: relative; display: flex; align-items: center; gap: 0.125rem; }
.sub-toggle { display: grid; background: none; border: 0; padding: 0.5rem 0.25rem; color: var(--heading); cursor: pointer; }
.sub-toggle svg { width: 0.75rem; }
.site-nav ul.sub { display: none; }
@media (min-width: 80.01rem) {
  .site-nav ul.sub {
    position: absolute; top: 100%; left: -0.75rem; z-index: 30; min-width: 16rem; padding: 0.5rem;
    background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 12px 32px rgba(6, 26, 46, 0.14);
  }
  .has-sub:hover ul.sub, .has-sub.is-open ul.sub { display: block; }
  .site-nav ul.sub a { padding: 0.625rem 0.75rem; border-bottom: 0; border-radius: 4px; }
  .site-nav ul.sub a:hover { background: var(--bg-tint); }
}
@media (max-width: 80rem) {
  .has-sub { display: block; }
  .sub-toggle { display: none; }
  .site-nav ul.sub { display: block; border: 0; margin: 0 0 0.25rem; padding: 0 0 0 1rem; }
  .site-nav ul.sub a { padding: 0.5rem 0; font-weight: 400; color: var(--text-muted); }
}

/* Audience tabs */
.tabs { display: flex; gap: 0.25rem; overflow-x: auto; border-bottom: 2px solid var(--rule); }
.tabs button {
  flex: none; font: inherit; font-weight: 600; color: var(--text-muted); background: none; cursor: pointer;
  border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 0.875rem 1.125rem;
}
.tabs button:hover { color: var(--heading); }
.tabs button[aria-selected="true"] { color: var(--heading); border-bottom-color: var(--current); }
.tabs button:focus-visible { outline-offset: -3px; }
html:not(.js) .tabs { display: none; }
.tab-panel { padding-top: 2rem; }
.js .tab-panel[hidden] { display: none; }
.tab-copy { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .tab-copy { grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; } }
.tab-copy h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height: 1.2; margin-bottom: 0.75rem; }
.tab-copy .actions { margin-top: 1.5rem; }
.btn-outline { background: none; border-color: var(--heading); color: var(--heading); }
.btn-outline:hover { background: var(--bg-tint); }

/* Notices and the calculator */
.notice { background: var(--bg-tint); border-left: 4px solid var(--signal); padding: 1rem 1.25rem; max-width: none; margin-bottom: 2.5rem; }
.calc { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .calc { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; } }
.calc h2 { font-size: 1.375rem; margin-bottom: 1rem; }
.calc-form .field + .field { margin-top: 1rem; }
.calc-form .form-note { margin-top: 1rem; }
.calc-result { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 1.5rem; }
.calc-total { font-size: 3rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1; color: var(--heading); margin: 0 0 1.25rem; font-variant-numeric: tabular-nums; }
.calc-unit { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--text-muted); }

/* Five-step path and shipment tracker */
@media (min-width: 52rem) { .path.path-5 { grid-template-columns: repeat(5, 1fr); } .path.path-5 li { padding-right: 1.25rem; } }
.portal + .portal { margin-top: 2rem; }
.portal-panel .panel-title { font-size: 1.375rem; margin: 0 0 1rem; }
.track { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 0 0.5rem; font-size: 0.8125rem; line-height: 1.3; color: var(--text-muted); }
.track li { position: relative; padding: 1.375rem 0.125rem 0; text-align: center; }
.track li::before { content: ""; position: absolute; top: 0.3125rem; left: 0; right: 0; height: 3px; background: var(--rule); }
.track li::after { content: ""; position: absolute; top: 0; left: 50%; width: 0.75rem; height: 0.75rem; margin-left: -0.375rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--rule); }
.track .is-done::before { background: var(--current); }
.track .is-done::after { background: var(--current); border-color: var(--current); }
.track .is-now::after { border-color: var(--current); }
.track .is-now { color: var(--heading); font-weight: 600; }

/* Company profile and printing */
.profile h2 { margin-bottom: 0.75rem; }
.profile h3 { margin: 2rem 0 0.5rem; }
.profile ul { list-style: disc; padding-left: 1.25rem; }
.profile li { margin-bottom: 0.5rem; max-width: 62ch; }
@media print {
  .util-bar, .site-header, .site-footer, .skip, [data-print], .page-head .actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-head { background: none !important; color: #000; padding: 0 0 1rem; min-height: 0; }
  .page-head h1, .profile h2, .profile h3 { color: #000; }
  .lede { color: #333; }
  .section { padding-block: 0.5rem; }
}

.formula { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 1rem 1.25rem; max-width: none; font-weight: 600; color: var(--heading); }

.field select { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--muted); border-radius: 3px; padding: 0.75rem 0.875rem; }
.field select:focus-visible { outline: 3px solid var(--current); outline-offset: 1px; border-color: var(--current); }

/* Coming-soon band */
.coming-soon { background: var(--abyss); color: var(--on-dark); }
.coming-soon h2 { color: #FFFFFF; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); margin-bottom: 1rem; }
.coming-soon p { color: var(--on-dark-muted); }
.coming-soon .bullets span { color: var(--on-dark); }
.coming-soon .bullets li + li { border-top-color: var(--dark-rule); }
.coming-soon .chev { fill: var(--signal); }
.coming-soon .link { color: var(--link-on-dark); }
.badge { display: inline-block; margin-bottom: 1rem; padding: 0.25rem 0.75rem; border-radius: 999px; background: var(--signal); color: #0E1A24 !important; font-size: 0.875rem; font-weight: 650; }
.list-head { font-size: 1.125rem; margin-bottom: 0.5rem; }

/* Blueprint additions: sign-in link in the header, consent tick on enquiry forms,
   status labels on the systems roadmap. */
.site-nav .nav-signin a { font-weight: 600; }
.form .consent { display: flex; gap: 0.625rem; align-items: flex-start; font-size: 0.9375rem; line-height: 1.5; }
.form .consent input { width: 1.125rem; height: 1.125rem; margin-top: 0.2rem; flex: none; accent-color: var(--btn); }
.status { display: inline-block; font-size: 0.8125rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid currentColor; vertical-align: middle; margin-left: 0.375rem; white-space: nowrap; }
.status-live { color: var(--route-wider, #00786E); }
.status-planned { color: var(--text-muted); }
.status-partner { color: var(--heading); }

/* ---- Group repositioning (owner approval, 19 November 2026) ---- */
.site-header .wrap { max-width: 92rem; }
@media (min-width: 80.01rem) {
  .site-nav ul { gap: 0.25rem 1.125rem; }
  .site-nav a { font-size: 0.9375rem; }
}
.hero-photo h1 { max-width: 30ch; }
.hero-lede { margin: 1rem 0 0; max-width: 46rem; font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.25rem); line-height: 1.55; color: #E6EDF4; text-shadow: 0 1px 14px rgba(6, 26, 46, 0.6); }
.hero-actions { margin-top: 1.5rem; }
@media (max-width: 51.99rem) { .hero-lede { color: var(--on-dark-muted); text-shadow: none; } }
.pillars { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
@media (min-width: 40rem) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { border: 1px solid var(--rule); border-top: 3px solid var(--current); border-radius: 6px; padding: 1.25rem 1.375rem; background: var(--surface); display: flex; flex-direction: column; gap: 0.625rem; }
.pillar h3 { font-size: 1.125rem; margin: 0; }
.pillar h3 .status { margin-left: 0; margin-top: 0.5rem; display: table; }
.pillar p { margin: 0; flex: 1; }
.page-head h1 .status { font-size: 0.875rem; color: #D5DEE7; border-color: #4A6480; }
.partner-list { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
.partner { display: grid; gap: 1.25rem; align-items: start; border: 1px solid var(--rule); border-radius: 6px; padding: 1.5rem; background: var(--surface); }
@media (min-width: 48rem) { .partner { grid-template-columns: 12rem 1fr; } }
.partner h3 { margin-top: 0; }
.partner-role { font-weight: 600; color: var(--heading); }
.partner-logo { max-width: 12rem; max-height: 6rem; width: auto; height: auto; object-fit: contain; }
.partner-name-mark { margin: 0; font-weight: 800; font-size: 1.25rem; line-height: 1.2; color: var(--heading); text-transform: uppercase; letter-spacing: 0.02em; }
.logo-grid { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.logo-grid li { display: grid; gap: 0.5rem; justify-items: center; text-align: center; border: 1px solid var(--rule); border-radius: 6px; padding: 1rem; background: var(--surface); }
/* A longer hero needs more shade behind the words, from the left and the bottom. */
@media (min-width: 52rem) {
  .hero-photo::after {
    background:
      linear-gradient(90deg, rgba(6, 26, 46, 0.82) 0%, rgba(6, 26, 46, 0.55) 38%, rgba(6, 26, 46, 0) 68%),
      linear-gradient(180deg, rgba(6, 26, 46, 0.2) 0%, rgba(6, 26, 46, 0) 30%, rgba(6, 26, 46, 0.1) 55%, rgba(6, 26, 46, 0.86) 100%);
  }
}
.region-head { margin-top: 2rem; }
/* Port tiles: logo on top, name and country below */
.port-grid { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.875rem; }
.port-grid li { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.5rem; text-align: center; padding: 1.125rem 0.75rem 1rem; transition: border-color 0.15s, transform 0.15s; }
.port-grid li:hover { border-color: var(--current); transform: translateY(-2px); }
.port-logo { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 10px; background: #FFFFFF; box-shadow: 0 1px 4px rgba(6, 26, 46, 0.18); overflow: hidden; margin-bottom: 0.25rem; }
.port-logo .partner-logo { width: 3.5rem; height: 3.5rem; max-width: none; max-height: none; object-fit: contain; }
.port-initials { font-weight: 800; font-size: 1.375rem; letter-spacing: 0.04em; color: #0B3A6E; }
.port-name { font-size: 0.9375rem; line-height: 1.3; color: var(--heading); }
.port-country { font-size: 0.8125rem; color: var(--text-muted); }
/* Live ships map */
.live-map { height: clamp(22rem, 60vh, 34rem); border: 1px solid var(--rule); border-radius: 6px; background: #AAD3DF; margin-top: 1.5rem; }
.live-status { margin-top: 0.75rem; font-weight: 600; color: var(--heading); }
.ship-icon svg { fill: #0F62E0; stroke: #FFFFFF; stroke-width: 1; overflow: visible; }
.ship-still svg { fill: #6B7C8F; }
.leaflet-container { font: inherit; }
.leaflet-popup-content { color: #0B1F33; line-height: 1.45; }
.leaflet-popup-content .size { color: #4A5B6D; }

/* Light or dark switch */
.header-tools { display: flex; align-items: center; gap: 0.5rem; order: 2; }
.site-header .logo { order: 1; }
.site-nav { order: 3; }
.theme-toggle { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--heading); cursor: pointer; }
.theme-toggle:hover { background: var(--bg-tint); }
.theme-toggle svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; } :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; } }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (min-width: 80.01rem) { .site-nav { order: 2; margin-left: auto; } .header-tools { order: 3; } .header-tools .nav-toggle { display: none; } }

/* Live ships maps */
.wrap-wide { width: 100%; max-width: 92rem; margin-inline: auto; padding-inline: var(--gutter); }
.live-ships { padding-top: clamp(1.75rem, 4vw, 2.5rem); }
.live-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; }
.ais-app { position: relative; }
.ais-search { position: relative; display: flex; gap: 0.5rem; margin: 1rem 0 0.75rem; max-width: 40rem; }
.ais-search input { flex: 1; min-width: 0; font: inherit; padding: 0.75rem 0.875rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); color: var(--text); }
.ais-search .btn { padding: 0.75rem 1.125rem; }
.ais-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 1000; margin: 0.25rem 0 0; padding: 0.25rem; list-style: none; max-height: 22rem; overflow: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 12px 32px rgba(6, 26, 46, 0.2); }
.ais-results button { display: flex; gap: 0.625rem; align-items: flex-start; width: 100%; text-align: left; font: inherit; color: var(--text); background: none; border: 0; border-radius: 4px; padding: 0.5rem 0.625rem; cursor: pointer; }
.ais-results button:hover, .ais-results button:focus { background: var(--bg-tint); }
.ais-result-note { padding: 0.625rem; color: var(--text-muted); }
.ais-dot { display: inline-block; flex: none; width: 0.75rem; height: 0.75rem; border-radius: 999px; border: 1px solid #FFFFFF; margin-top: 0.3rem; }
.ais-dot-place { background: transparent; border: 2px solid var(--current); }
.ais-app .live-map { height: clamp(24rem, 62vh, 38rem); margin-top: 0; }
.ais-app-full .live-map { height: calc(100vh - 13rem); min-height: 26rem; }
.ais-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; align-items: center; margin-top: 0.75rem; }
.ais-foot .live-status { margin: 0; }
.ais-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; color: var(--text-muted); }
.ais-legend li { display: flex; align-items: center; gap: 0.375rem; }
.ais-legend .ais-dot { margin-top: 0; }
.track-page { padding-block: 1.5rem 3rem; }
.track-head h1 { color: var(--heading); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
.track-head p { max-width: 60rem; }
/* Darker map images in dark mode */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9); } }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9); }
@media (max-width: 80rem) { .site-header .header-row { column-gap: 0.75rem; } .header-tools { margin-left: auto; } }
@media (max-width: 26rem) { .site-header .logo-name { font-size: 1.125rem; } .site-header .mark { width: 2.125rem; } .theme-toggle { width: 2.25rem; height: 2.25rem; } }
