/* Maritime Fairtrade - local reading preview.
 *
 * Colour tokens are the original's, read from client/src/index.css:
 *   --primary / --color-brand-maritime  hsl(215 100% 35%)   deep blue
 *   --color-brand-legal                 hsl(345 60% 40%)    burgundy
 *   --color-brand-education             hsl(175 70% 35%)    teal
 *   --color-brand-transport             hsl(35 90% 55%)     amber
 *   --background 0 0% 100%              --foreground 222 47% 11%
 *
 * Typography is a DELIBERATE DEVIATION. The original loads Inter and Libre
 * Baskerville from Google Fonts; this preview must work offline and make no
 * third-party request, so it uses a system stack of the same character - a
 * neutral grotesque for interface text, a transitional serif for reading. The
 * substitution is recorded in the report rather than passed off as parity.
 *
 * No remote asset of any kind is referenced from this file.
 */

:root {
  --brand-maritime: hsl(215 100% 35%);
  --brand-maritime-dark: hsl(215 100% 26%);
  --brand-accent: #3b82f6;                 /* blue-500, the hero/CTA blue */
  --brand-accent-hover: #60a5fa;           /* blue-400 */
  --brand-legal: hsl(345 60% 40%);
  --brand-education: hsl(175 70% 35%);
  --brand-transport: hsl(35 90% 55%);

  --fg: hsl(222 47% 11%);
  --fg-strong: hsl(215 25% 27%);           /* slate-700, the original's nav colour */
  --fg-muted: hsl(222 20% 40%);
  --fg-faint: hsl(215 16% 47%);
  --bg: hsl(0 0% 100%);
  --bg-soft: hsl(210 40% 97%);
  --bg-card: hsl(0 0% 100%);
  --border: hsl(214 25% 88%);
  --border-soft: hsl(214 32% 93%);
  --shadow: hsl(215 30% 20% / 0.14);

  /* The dark bands the original uses for hero, solutions and panels. These are
     the ORIGINAL'S OWN Tailwind slate and blue steps, read back from the
     original client rendered in an isolated fixture rather than approximated:
     the hero ground measured oklch(0.129 0.042 264.695), which is slate-950.
     They are the same in both themes, because these sections are dark by
     design and not by theme. */
  --ink-950: #020617;   /* slate-950 */
  --ink-900: #0f172a;   /* slate-900 */
  --ink-850: #16213c;
  --ink-800: #1e293b;   /* slate-800 */
  --ink-700: #334155;   /* slate-700 */
  --on-ink:        #f8fafc;   /* slate-50  */
  --on-ink-muted:  #cbd5e1;   /* slate-300 */
  --on-ink-faint:  #94a3b8;   /* slate-400 */
  --accent-ink:    #93c5fd;   /* blue-300  */

  --ok: hsl(158 64% 42%);
  --warn: hsl(35 92% 45%);

  --env-bg: hsl(210 40% 96%);
  --env-fg: hsl(215 25% 32%);
  --env-border: hsl(214 25% 88%);

  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;

  --wrap: 1120px;
  --read: 42rem;
  --radius: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* The dark theme.
 *
 * The original carries one (`.dark` in client/src/index.css) and a control in
 * its header to reach it. The values below are that block's: background
 * 222 47% 6%, foreground 210 40% 98%, border 217 33% 20%, primary lifted to
 * 215 100% 55% so it still reads as a link on a dark ground.
 *
 * It is an attribute rather than a media query because the control has to be
 * able to override the system setting; /assets/theme.js sets it and seeds it
 * from `prefers-color-scheme` when nothing is stored.
 */
:root[data-theme="dark"] {
  --brand-maritime: hsl(215 100% 62%);
  --brand-maritime-dark: hsl(213 94% 72%);

  --fg: hsl(210 40% 98%);
  --fg-strong: hsl(215 20% 82%);
  --fg-muted: hsl(215 20% 65%);
  --fg-faint: hsl(215 16% 57%);
  --bg: hsl(222 47% 6%);
  --bg-soft: hsl(217 33% 12%);
  --bg-card: hsl(222 47% 9%);
  --border: hsl(217 33% 20%);
  --border-soft: hsl(217 33% 16%);
  --shadow: hsl(222 60% 2% / 0.6);

  --env-bg: hsl(217 33% 12%);
  --env-fg: hsl(215 20% 72%);
  --env-border: hsl(217 33% 20%);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
}

/* The measured column.
 *
 * The original uses Tailwind's `container mx-auto px-4`, whose max-width steps
 * at each breakpoint are 640 / 768 / 1024 / 1280 / 1536 px. This build used a
 * flat 1120, which put the header logo about 80 px further in than the
 * original's at a 1512-wide viewport - measured against the original client
 * rendered in an isolated fixture, not estimated. The steps below are the
 * original's. `--read` still governs article measure, so reading width is
 * unchanged, and `--wrap` is kept for anything that asked for the old column. */
.wrap { width: 100%; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px)  { .wrap { max-width: 640px; } }
@media (min-width: 768px)  { .wrap { max-width: 768px; } }
@media (min-width: 1024px) { .wrap { max-width: 1024px; } }
@media (min-width: 1280px) { .wrap { max-width: 1280px; } }
@media (min-width: 1536px) { .wrap { max-width: 1536px; } }

a { color: var(--brand-maritime); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-maritime-dark); }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------ environment notice */

/* The one place a non-production deployment says what it is. Modest by
   design: a quiet strip in the site's own colours, not the orange bar that
   used to announce a loopback address on a public hostname. */
.env-banner {
  margin: 0;
  padding: 7px 20px;
  background: var(--env-bg);
  color: var(--env-fg);
  border-bottom: 1px solid var(--env-border);
  font-size: 0.78rem;
  text-align: center;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 10px 16px; background: var(--brand-maritime); color: #fff;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------ header */

.site-head {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border); background: var(--bg);
}

.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 64px;
}

.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand-logo { height: 48px; width: auto; }

/* The original inverts its logo in dark mode (dark:brightness-0 dark:invert);
   the mark is a dark navy lighthouse on transparency, invisible on a dark
   header without it. */
:root[data-theme="dark"] .brand-logo,
:root[data-theme="dark"] .foot-logo { filter: brightness(0) invert(1); }
.foot-logo { filter: brightness(0) invert(1); height: 38px; width: auto; }

/* ---- the eight platform entries ---- */

.nav-desktop { display: none; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }

.nav-link {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 8px 0; white-space: nowrap;
  font-size: 0.875rem; font-weight: 500; text-decoration: none; color: var(--fg-strong);
}
.nav-link:hover { color: var(--brand-maritime-dark); }
.nav-link.is-current { color: var(--brand-maritime); }
.ic-chev { width: 12px; height: 12px; transition: transform 0.15s ease; }
.nav-item:hover .ic-chev, .nav-item:focus-within .ic-chev { transform: rotate(180deg); }

.nav-menu {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 2px; z-index: 60;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 10px 30px var(--shadow); padding: 10px 0; min-width: 250px;
}
/* `data-escaped` is set by nav.js when Escape closes a menu whose entry keeps
   the keyboard focus; it is cleared the moment the pointer leaves or focus
   moves on. Without it, returning focus to the entry would re-open the menu
   through :focus-within and Escape would appear to do nothing. */
.nav-item:hover:not([data-escaped]) > .nav-menu,
.nav-item:focus-within:not([data-escaped]) > .nav-menu { display: block; }
.nav-menu-grouped {
  display: none; grid-template-columns: 1fr 1fr; gap: 0 10px; padding: 12px 6px; min-width: 620px;
}
.nav-item:hover:not([data-escaped]) > .nav-menu-grouped,
.nav-item:focus-within:not([data-escaped]) > .nav-menu-grouped { display: grid; }
/* The right-hand entries would run off the viewport opening leftwards. */
.nav-item:nth-last-child(-n+3) > .nav-menu { left: auto; right: 0; }

.nav-group { padding: 4px 8px; }
.nav-group-h {
  margin: 0 0 4px; padding: 0 8px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-muted);
}
.nav-sub {
  display: block; padding: 7px 16px; font-size: 0.86rem;
  text-decoration: none; color: var(--fg-strong);
}
.nav-menu-grouped .nav-sub { padding: 6px 8px; border-radius: 4px; }
.nav-sub:hover { background: var(--bg-soft); color: var(--brand-maritime-dark); }

/* ---- header tools: theme, search, menu ---- */

.head-tools { display: flex; align-items: center; gap: 2px; flex: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: none; border: 0; border-radius: var(--radius);
  color: var(--fg-muted); cursor: pointer; list-style: none;
}
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { color: var(--fg-strong); background: var(--bg-soft); }
.icon-btn:focus-visible { outline: 2px solid var(--brand-maritime); outline-offset: -2px; }

#theme-toggle .theme-sun { display: none; }
:root[data-theme="dark"] #theme-toggle .theme-sun { display: inline-flex; }
:root[data-theme="dark"] #theme-toggle .theme-moon { display: none; }

.search-pop, .nav-mobile-wrap { position: relative; }
.search-pop > .search-form {
  position: absolute; top: 100%; right: 0; z-index: 60; margin-top: 4px;
  display: flex; gap: 6px; padding: 10px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 10px 30px var(--shadow);
}
.search-form input {
  font: inherit; font-size: 0.9rem; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius);
  min-width: min(240px, 60vw); background: var(--bg); color: var(--fg);
}
.search-form input:focus-visible { outline: 2px solid var(--brand-maritime); outline-offset: 1px; }
.search-form button {
  font: inherit; font-size: 0.9rem; font-weight: 600; padding: 8px 14px; cursor: pointer;
  border: 1px solid var(--brand-maritime); border-radius: var(--radius);
  background: var(--brand-maritime); color: #fff;
}
.search-form button:hover { background: var(--brand-maritime-dark); }
.search-form-wide { display: flex; gap: 6px; margin-bottom: 10px; }
.search-form-wide input { flex: 1 1 auto; min-width: 0; }

/* ---- the mobile panel ---- */

.nav-mobile {
  position: absolute; top: 100%; right: -16px; z-index: 60; margin-top: 4px;
  width: calc(100vw - 8px); max-width: 420px; max-height: 78vh; overflow-y: auto;
  padding: 14px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 14px 40px var(--shadow);
}
.m-item { border-bottom: 1px solid var(--border-soft); }
.m-item:last-child { border-bottom: 0; }
.m-item > summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 2px; font-size: 0.92rem; font-weight: 600;
  color: var(--fg-strong); cursor: pointer; list-style: none;
}
.m-item > summary::-webkit-details-marker { display: none; }
.m-item > summary::after {
  content: ""; width: 8px; height: 8px; margin-right: 6px; flex: none;
  border-right: 2px solid var(--fg-muted); border-bottom: 2px solid var(--fg-muted);
  transform: rotate(45deg) translate(-2px, -2px);
}
.m-item[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.m-item-flat {
  display: block; padding: 12px 2px; font-size: 0.92rem; font-weight: 600;
  color: var(--fg-strong); text-decoration: none;
}
.m-sub { padding: 0 0 10px 12px; }
.m-link { display: block; padding: 8px 0; font-size: 0.88rem; color: var(--fg-muted); text-decoration: none; }
.m-link:hover { color: var(--brand-maritime); }
.m-link-top { font-weight: 600; color: var(--brand-maritime); }
.m-sub .nav-group-h { padding: 8px 0 2px; }

@media (min-width: 1100px) {
  .nav-desktop { display: block; }
  .nav-mobile-wrap { display: none; }
}

/* -------------------------------------------------------------------- main */

main { padding-block: 32px 56px; }
/* The home page is a sequence of full-bleed bands and places its own spacing;
   the shell's padding would leave a white strip under the closing band. */
main:not(.wrap) { padding-block: 0; }

.kicker {
  margin: 0 0 8px; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-legal);
}
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

.section-h {
  margin: 40px 0 16px; padding-bottom: 8px;
  font-size: 1.05rem; letter-spacing: 0.02em; text-transform: uppercase;
  border-bottom: 2px solid var(--fg);
}
.section-h.small { font-size: 0.85rem; border-bottom-width: 1px; }

/* -------------------------------------------------------------------- lead */

.lead { display: grid; gap: 24px; align-items: start; }
@media (min-width: 820px) { .lead { grid-template-columns: 1.3fr 1fr; } }

.lead-img img { width: 100%; border-radius: var(--radius); background: var(--bg-soft); }

.lead-title {
  font-family: var(--serif); font-size: clamp(1.75rem, 4.2vw, 2.6rem);
  line-height: 1.18; margin: 0 0 12px; letter-spacing: -0.015em;
}
.lead-title a { color: inherit; text-decoration: none; }
.lead-title a:hover { color: var(--brand-maritime); }
.lead-excerpt { font-size: 1.05rem; color: var(--fg-muted); margin: 0 0 12px; }

/* ------------------------------------------------------------------- cards */

.grid { display: grid; gap: 28px 24px; grid-template-columns: 1fr; }
@media (min-width: 620px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card-img img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); background: var(--bg-soft);
}
.card-title {
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.3; margin: 0;
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--brand-maritime); text-decoration: underline; }
.card-excerpt { margin: 0; color: var(--fg-muted); font-size: 0.92rem; }
.card-meta { margin: 0; color: var(--fg-muted); font-size: 0.8rem; }
.sep { margin-inline: 6px; opacity: 0.6; }

/* ----------------------------------------------------------------- article */

.article { max-width: var(--read); margin-inline: auto; }
.article-head { margin-bottom: 24px; }
.article-title {
  font-family: var(--serif); font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.015em;
}
.article-standfirst {
  font-size: 1.12rem; color: var(--fg-muted); margin: 0 0 14px; font-family: var(--serif);
}
.byline { margin: 0; font-size: 0.85rem; color: var(--fg-muted); }
.byline .author { font-weight: 600; color: var(--fg); }

.article-figure { margin: 0 0 28px; }
.article-figure img { width: 100%; border-radius: var(--radius); background: var(--bg-soft); }

/* The reading column. Imported article markup lands here, so the rules below
   have to cover whatever the allowlist permits rather than a known structure. */
.article-body { font-family: var(--serif); font-size: 1.08rem; line-height: 1.72; }
.article-body > * { max-width: 100%; }
.article-body p { margin: 0 0 1.15em; }
.article-body h2 { font-size: 1.45rem; line-height: 1.3; margin: 1.8em 0 0.6em; }
.article-body h3 { font-size: 1.2rem; line-height: 1.35; margin: 1.6em 0 0.5em; }
.article-body h4, .article-body h5, .article-body h6 { font-size: 1.05rem; margin: 1.4em 0 0.5em; }
.article-body ul, .article-body ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.article-body li { margin-bottom: 0.4em; }
.article-body img { margin: 1.4em auto; border-radius: var(--radius); }
.article-body figure { margin: 1.6em 0; }
.article-body figcaption { font-family: var(--sans); font-size: 0.82rem; color: var(--fg-muted); }
.article-body blockquote {
  margin: 1.6em 0; padding: 2px 0 2px 18px;
  border-left: 3px solid var(--brand-maritime); color: var(--fg-muted);
}
.article-body pre {
  font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem;
  background: var(--bg-soft); padding: 14px; border-radius: var(--radius); overflow-x: auto;
}
.article-body code { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; }
.article-body table {
  width: 100%; border-collapse: collapse; margin: 1.6em 0;
  font-family: var(--sans); font-size: 0.9rem; display: block; overflow-x: auto;
}
.article-body th, .article-body td {
  border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top;
}
.article-body th { background: var(--bg-soft); }
/* An external link is editorial content and stays a link, marked quietly. */
.article-body a[rel~="external"]::after { content: " \2197"; font-size: 0.85em; opacity: 0.7; }

.article-foot { margin-top: 36px; }

/* ------------------------------------------------------------------- lists */

.page-head { margin-bottom: 28px; border-bottom: 1px solid var(--border); padding-bottom: 18px; }
.page-title {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  margin: 0 0 8px; line-height: 1.2;
}
.page-intro { margin: 0 0 6px; color: var(--fg-muted); max-width: var(--read); }
.page-count { margin: 0; font-size: 0.85rem; color: var(--fg-muted); }
.searching { margin: 0 0 20px; font-size: 0.9rem; }

.pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
}
.pager-where { font-size: 0.85rem; color: var(--fg-muted); }

.btn {
  display: inline-block; padding: 8px 16px; font-size: 0.88rem; font-weight: 600;
  text-decoration: none; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--brand-maritime);
}
.btn:hover { border-color: var(--brand-maritime); }
.btn.disabled { color: var(--fg-muted); opacity: 0.5; }
.more { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips a {
  display: inline-block; padding: 5px 12px; font-size: 0.85rem; text-decoration: none;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px;
  color: var(--fg);
}
.chips a:hover { border-color: var(--brand-maritime); color: var(--brand-maritime); }
.chips .count { color: var(--fg-muted); font-size: 0.78rem; }

.facts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.facts strong { font-size: 1.15rem; font-family: var(--serif); }

.notice { max-width: var(--read); }
.notice code {
  font-family: ui-monospace, Consolas, monospace; font-size: 0.9em;
  background: var(--bg-soft); padding: 2px 6px; border-radius: 3px;
}
.why { color: var(--fg-muted); }

/* ------------------------------------------------------------------ footer */

/* The original's footer: the mark and the platform sentence, seven link
   columns, the platform-status strip, the copyright line and the credit.
   The dark ground is the original's (slate-900) and does not follow the
   theme, exactly as the original's does not. */
.site-foot {
  margin-top: 64px; padding-block: 44px 36px;
  background: var(--ink-900); color: var(--on-ink-muted);
  border-top: 1px solid var(--ink-800);
  font-size: 0.86rem;
}
:root[data-theme="dark"] .site-foot { background: var(--ink-950); }

.foot-brand { max-width: 30rem; margin-bottom: 36px; }
.foot-lede { margin: 12px 0 0; color: var(--on-ink-muted); line-height: 1.65; font-size: 0.875rem; }

.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.foot-col-h {
  margin: 0 0 12px; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
}
.foot-col a {
  display: block; margin-bottom: 8px; font-size: 0.84rem;
  color: var(--on-ink-muted); text-decoration: none;
}
.foot-col a:hover { color: #fff; }

.foot-status { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--ink-800); }
.foot-status-h {
  margin: 0 0 6px; font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-ink-faint);
}
.foot-status-items { margin: 0; font-size: 0.72rem; line-height: 1.9; color: var(--on-ink-muted); }
.foot-status-items .sep { color: var(--ink-700); margin-inline: 6px; }

.foot-legal {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ink-800);
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.76rem; color: var(--on-ink-faint);
}
.foot-legal p { margin: 0; }
.foot-legal-right { display: flex; flex-direction: column; gap: 4px; }
.foot-legal a { color: var(--on-ink-muted); text-underline-offset: 2px; }
.foot-legal a:hover { color: #fff; }

/* The environment footnote, last and quiet, kept apart from the site's own
   footer so a production deployment loses it without touching anything else. */
.env-footnote {
  margin: 20px 0 0; padding-top: 14px; border-top: 1px dashed var(--ink-800);
  font-size: 0.72rem; line-height: 1.7; color: var(--on-ink-faint); max-width: 56rem;
}

@media (min-width: 640px) {
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-legal { flex-direction: row; justify-content: space-between; align-items: center; }
  .foot-legal-right { flex-direction: row; gap: 16px; }
}
@media (min-width: 1024px) {
  .foot-cols { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
  a, .btn { transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease; }
}

/* ------------------------------------------- informational pages (stage 3B) */

/* A transcribed page and, where its section has siblings, a list of them.
   Single column first; the aside only becomes a column when there is room for
   one without squeezing the measure below a readable width. */
.page-with-aside { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) {
  .page-with-aside { grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; }
}

.static-page { max-width: var(--read); min-width: 0; }
.static-body { font-size: 1rem; }
.static-body h2 {
  font-family: var(--serif); font-size: 1.4rem; line-height: 1.25;
  margin: 32px 0 12px; letter-spacing: -0.01em;
}
.static-body h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.static-body ul, .static-body ol { padding-left: 1.3em; margin: 0 0 16px; }
.static-body li { margin-bottom: 6px; }

.page-aside {
  border-top: 2px solid var(--border); padding-top: 16px; min-width: 0;
}
@media (min-width: 900px) {
  .page-aside { border-top: 0; border-left: 1px solid var(--border); padding: 0 0 0 24px; }
}
.aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aside-list a { font-size: 0.9rem; text-decoration: none; }
.aside-list a:hover { text-decoration: underline; }

.section-h.small { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-muted); margin: 0 0 12px; }

/* ------------------------------------------------------- company directory */

.filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 28px; padding: 14px; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.filters input, .filters select, .filters button {
  font: inherit; font-size: 0.9rem; padding: 7px 10px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
}
/* On a narrow screen the controls stack to full width rather than shrinking to
   an untappable size. 44px is the minimum comfortable touch target. */
.filters input { flex: 1 1 220px; min-width: 0; }
.filters select { flex: 1 1 150px; min-width: 0; }
.filters button {
  flex: 0 0 auto; min-height: 40px; cursor: pointer; font-weight: 600;
  border-color: var(--brand-maritime); background: var(--brand-maritime); color: #fff;
}
.filters button:hover { background: var(--brand-maritime-dark); }
.filters .btn { min-height: 40px; display: inline-flex; align-items: center; }

.directory-grid { gap: 20px; }
.company-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); overflow: hidden;
}
.company-card .card-body { padding: 16px; display: grid; gap: 8px; }
.company-card .card-title { font-size: 1.05rem; }

.kicker.badge-verified-listing { color: var(--brand-education); }
.kicker.badge-spotlight { color: var(--brand-transport); }

.chips.small span, .chips.small a {
  font-size: 0.75rem; padding: 3px 9px;
  display: inline-block; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 999px; color: var(--fg-muted);
}
.chips span {
  display: inline-block; padding: 5px 12px; font-size: 0.85rem;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 999px; color: var(--fg);
}

.crumbs { font-size: 0.82rem; color: var(--fg-muted); margin-bottom: 14px; }
.crumbs .sep { margin-inline: 8px; }

.register-notice {
  margin-top: 48px; padding: 18px; border: 1px solid var(--border);
  border-left: 3px solid var(--brand-transport); border-radius: var(--radius);
  background: var(--bg-soft);
}
.register-notice p { margin: 0; font-size: 0.92rem; }

/* ------------------------------------------------------- narrow viewports */

/* Measured at 360 and 390 CSS px. The header already wraps; these rules stop
   the brand block and the search field competing for the same row at 360. */
@media (max-width: 420px) {
  .wrap { padding-inline: 16px; }
  .head-inner { gap: 12px; }
  .search { width: 100%; }
  .search input { flex: 1 1 auto; min-width: 0; }
  .filters { padding: 12px; }
  .filters input, .filters select { flex-basis: 100%; }
  .pager { flex-wrap: wrap; gap: 8px; }
  .pager-where { order: 3; width: 100%; text-align: center; }
}

/* The directory hero and the audience blocks, as the original page lays them
   out: an eyebrow, a heading, an intro, then three equal blocks. */
.directory-hero { max-width: 48rem; }
.eyebrow {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em;
  font-weight: 700; color: var(--brand-maritime); margin: 0 0 10px;
}

.audiences { gap: 20px; margin-bottom: 32px; }
.audience {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); padding: 20px;
}
.audience p { margin: 0; font-size: 0.9rem; color: var(--fg-muted); }

.trust-signals {
  display: flex; flex-wrap: wrap; gap: 6px 24px; list-style: none;
  margin: 0 0 24px; padding: 0; font-size: 0.78rem; color: var(--fg-muted);
}
.trust-signals span { color: var(--brand-education); font-weight: 700; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.kicker.badge-recent { color: var(--brand-maritime); }

.card-links { display: flex; flex-wrap: wrap; gap: 16px; margin: 4px 0 0; font-size: 0.88rem; }
.card-links a { font-weight: 600; text-decoration: none; }
.card-links a:hover { text-decoration: underline; }

.featured-grid { margin-bottom: 36px; }
.featured-grid .company-card { border-color: var(--brand-transport); }

/* A link in transcribed copy whose destination this build cannot answer. The
   words stay; the link does not. Styled as emphasis, not as a broken link. */
.link-unavailable {
  color: var(--fg-muted);
  border-bottom: 1px dotted var(--border);
  cursor: help;
}

/* A page whose reading content is served while its workflow is not. */
.workflow-notice {
  margin-top: 40px; padding: 18px; border: 1px solid var(--border);
  border-left: 3px solid var(--brand-transport); border-radius: var(--radius);
  background: var(--bg-soft);
}
.workflow-notice p { margin: 0; font-size: 0.92rem; }

/* =====================================================================
   The owner-approved Stage 3B workflows.

   Every control is laid out so that it works at 360 px: the inputs are
   full-width with border-box sizing, the labels sit above rather than beside
   them, the tables scroll inside their own box instead of widening the page,
   and nothing here is smaller than 0.78rem - a form a reader cannot read is
   a form a reader cannot complete.
   ===================================================================== */

.wf { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.wf .section-h { margin-bottom: 12px; }
.wf-page .wf { border-top: none; }

.wf-form { max-width: var(--read); }
.wf-field { margin-bottom: 18px; }
.wf-field > label,
.wf-field > legend {
  display: block; margin-bottom: 6px;
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--fg);
}
.wf-field input[type="text"],
.wf-field input[type="email"],
.wf-field input[type="password"],
.wf-field select,
.wf-field textarea {
  display: block; width: 100%; box-sizing: border-box;
  padding: 10px 12px;
  font: inherit; font-size: 0.95rem; color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.wf-field textarea { resize: vertical; min-height: 7rem; }
.wf-field input:focus, .wf-field select:focus, .wf-field textarea:focus {
  outline: 2px solid var(--brand-maritime); outline-offset: 1px; border-color: var(--brand-maritime);
}
.wf-field fieldset, .wf fieldset { border: 0; padding: 0; margin: 0 0 18px; }

.wf-option { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.wf-option input { margin-top: 4px; flex: 0 0 auto; }
.wf-option label { font-size: 0.95rem; line-height: 1.45; }

.wf-consent { display: flex; gap: 10px; align-items: flex-start; }
.wf-consent input { margin-top: 4px; flex: 0 0 auto; }
.wf-consent label { font-size: 0.88rem; font-weight: 400; line-height: 1.5; }

.wf-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0 0; }
.wf button, .wf .wf-cta, .admin-head button {
  display: inline-block; padding: 11px 20px;
  font: inherit; font-size: 0.92rem; font-weight: 600;
  color: #fff; background: var(--brand-maritime);
  border: 1px solid var(--brand-maritime); border-radius: var(--radius);
  cursor: pointer; text-decoration: none;
}
.wf button:hover, .wf .wf-cta:hover { background: var(--brand-maritime-dark); }
.wf .wf-cta-secondary { color: var(--brand-maritime); background: transparent; }
.wf-back { margin-top: 10px; }
.wf-back button { color: var(--fg-muted); background: transparent; border-color: var(--border); }

.wf-note, .wf-provenance, .pdpa-notice {
  font-size: 0.82rem; line-height: 1.6; color: var(--fg-muted); max-width: var(--read);
}
.wf-provenance { margin-top: 24px; font-size: 0.78rem; }
.pdpa-notice { margin: 16px 0; }
.wf-progress { font-size: 0.84rem; color: var(--fg-muted); margin-bottom: 14px; }
.wf-eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-maritime); margin: 0 0 4px;
}
.wf-score { font-size: 0.95rem; }

.wf-flash {
  margin: 0 0 20px; padding: 14px 16px;
  border: 1px solid var(--border); border-left-width: 3px; border-radius: var(--radius);
  background: var(--bg-soft);
}
.wf-flash p { margin: 0 0 6px; font-size: 0.92rem; }
.wf-flash p:last-child { margin-bottom: 0; }
.wf-flash-ok { border-left-color: var(--brand-education); }
.wf-flash-bad { border-left-color: var(--brand-legal); }
.wf-flash-hold { border-left-color: var(--brand-transport); }

.wf-block {
  margin: 0 0 18px; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft);
}
.wf-block h4 { margin: 0 0 8px; font-size: 0.84rem; letter-spacing: 0.08em; text-transform: uppercase; }
.wf-block p, .wf-block li { font-size: 0.95rem; line-height: 1.6; }
.wf-block ul, .wf-block ol { margin: 0; padding-left: 20px; }
.wf-granted { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius);
              background: var(--bg-soft); }

/* ---- the moderation area ---- */
.admin-head { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.admin-nav { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0; }
.admin-nav a { font-size: 0.9rem; font-weight: 600; }
.admin-logout { margin-top: 8px; }
.admin-logout button { padding: 7px 14px; font-size: 0.84rem; background: var(--fg-muted);
                       border-color: var(--fg-muted); color: #fff; border-radius: var(--radius);
                       cursor: pointer; font-family: inherit; }
.admin-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.admin-card {
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); margin-bottom: 18px;
}
.admin-card ul { margin: 0; padding-left: 20px; }
.admin-card li, .admin-card p { font-size: 0.92rem; line-height: 1.6; }
.admin-table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.admin-table th, .admin-table td {
  padding: 8px 10px; text-align: left; font-size: 0.86rem;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.admin-table th { font-weight: 600; color: var(--fg-muted); }
.admin-decide { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }

@media (min-width: 760px) {
  .admin-grid { grid-template-columns: 1fr 1fr; }
}

/* Tap targets.
   A checkbox or a radio is 13 px whatever the stylesheet says, so the ROW is
   the target: the label fills it, the control is enlarged as far as the
   browser allows, and the whole line is at least 44 px tall. */
.wf-option, .wf-consent { min-height: 44px; padding: 4px 0; }
.wf-option input[type="radio"],
.wf-option input[type="checkbox"],
.wf-consent input[type="checkbox"] { width: 20px; height: 20px; margin-top: 9px; }
.wf-option label, .wf-consent label { display: block; flex: 1 1 auto; padding: 10px 0; }

/* The sign-in form is a .wf-form without a .wf section around it. */
.wf-form button, .admin-decide button { 
  display: inline-block; padding: 11px 20px;
  font: inherit; font-size: 0.92rem; font-weight: 600;
  color: #fff; background: var(--brand-maritime);
  border: 1px solid var(--brand-maritime); border-radius: var(--radius); cursor: pointer;
}
.wf-form button:hover, .admin-decide button:hover { background: var(--brand-maritime-dark); }

/* ===========================================================================
   The platform home page
   ---------------------------------------------------------------------------
   Layout, proportion and colour follow client/src/pages/Home.tsx, whose
   Tailwind utilities are resolved to their values here: slate-950 grounds,
   blue-500 primary buttons, the serif display face for headings, the
   0.25em-tracked uppercase eyebrow, 2xl/3xl section headings, and the card
   radii (rounded-xl 12px, rounded-2xl 16px).

   Mobile first. Every band keeps its content inside the measured column and
   nothing is positioned outside the viewport, so there is no horizontal
   scroll at 360 or 390 CSS px.
   ========================================================================= */

.ic { width: 18px; height: 18px; flex: none; }
.ic-xs { width: 14px; height: 14px; }
.ic-sm { width: 15px; height: 15px; }
.ic-lg { width: 24px; height: 24px; }
.ic.ok { color: var(--ok); }

.eyebrow {
  margin: 0 0 10px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--brand-maritime);
}
@media (min-width: 768px) { .eyebrow { font-size: 12px; } }
.eyebrow-light { color: var(--accent-ink); }
.eyebrow-muted { color: var(--fg-faint); letter-spacing: 0.2em; }

.dot {
  display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%;
  background: var(--ok); vertical-align: middle;
}

/* ----------------------------------------------------------------- buttons */

.btn-primary, .btn-ghost, .btn-solid, .btn-outline {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 18px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand-accent); color: #fff; }
.btn-primary:hover { background: var(--brand-accent-hover); color: #fff; }
.btn-ghost { background: hsl(0 0% 100% / 0.1); border-color: hsl(0 0% 100% / 0.2); color: #fff; }
.btn-ghost:hover { background: hsl(0 0% 100% / 0.2); color: #fff; }
.btn-solid { background: var(--brand-maritime); color: #fff; }
.btn-solid:hover { background: var(--brand-maritime-dark); color: #fff; }
.btn-outline { border-color: var(--brand-maritime); color: var(--brand-maritime); background: none; }
.btn-outline:hover { background: var(--bg-soft); }

.link-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.86rem; font-weight: 600; text-decoration: none; color: var(--brand-maritime);
}
.link-cta:hover { text-decoration: underline; }

/* -------------------------------------------------------------------- hero */

/* The original lays a video under three gradient layers at ~90% opacity. The
   video key is not in this build's admitted media manifest, so the layers are
   drawn over the ground alone - which is what those gradients already
   determine visually. */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink-950); color: #fff;
  min-height: 460px; display: flex; align-items: center;
}
/* The original's two overlays, value for value:
     bg-gradient-to-br from-slate-950/90 via-slate-900/85 to-blue-950/90
     and, at 8% opacity, the two radial washes its inline style declares. */
.hero-wash {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom right,
    rgb(2 6 23 / 0.9) 0%, rgb(15 23 42 / 0.85) 50%, rgb(23 37 84 / 0.9) 100%);
}
.hero-glow {
  position: absolute; inset: 0; opacity: 0.08;
  background:
    radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.45) 0, transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(56, 189, 248, 0.35) 0, transparent 50%);
}
/* The hero's own measures are the original's: the inner column is max-w-5xl
   (1024 px), the heading max-w-3xl (768 px) and the supporting copy max-w-2xl
   (672 px), with py-10 / md:py-14. Those three widths are what make the
   heading break after "intelligence and digital" rather than three lines
   earlier. */
.hero-inner { position: relative; z-index: 1; padding-block: 40px; max-width: 1024px; }
/* text-[10px] md:text-xs, the original's two sizes exactly. */
.hero-eyebrow {
  margin: 0 0 12px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent-ink);
}
@media (min-width: 768px) { .hero-eyebrow { font-size: 12px; } }
.hero-title {
  margin: 0 0 12px; max-width: 768px;
  font-family: var(--serif); font-weight: 700; line-height: 1.18; letter-spacing: -0.01em;
  font-size: 1.875rem;
  text-wrap: balance;
}
.hero-sub {
  margin: 0 0 32px; max-width: 672px;
  font-size: 1rem; line-height: 1.6;
  color: hsl(214 32% 88%);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hide-sm { display: none; }

@media (min-width: 768px) {
  .hero { min-height: 560px; }
  .hero-inner { padding-block: 56px; }
  .hero-title { font-size: 2.25rem; }
  .hero-sub { font-size: 1.125rem; }
  .hide-sm { display: inline-flex; }
}

/* ----------------------------------------------------- executive trust band */

.trust-band { background: var(--bg); border-bottom: 1px solid var(--border); padding-block: 16px 24px; }
.trust-monitor {
  margin: 0 0 16px; padding-left: 4px;
  font-size: 0.72rem; color: var(--fg-faint);
}
.trust-fresh { font-weight: 500; color: var(--brand-maritime); }
.hide-xs { display: none; }
@media (min-width: 640px) { .hide-xs { display: inline; } }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust-card { padding: 12px 14px; border-top: 1px solid var(--border-soft); }
.trust-eyebrow {
  margin: 0 0 6px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--fg-faint);
}
.trust-value { margin: 0; font-size: 1.15rem; font-weight: 600; color: var(--fg); line-height: 1.2; }
.trust-label { margin: 4px 0 0; font-size: 0.72rem; color: var(--fg-muted); line-height: 1.4; }

@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .trust-card { border-top: 0; border-left: 1px solid var(--border-soft); }
  .trust-card:first-child { border-left: 0; }
}

/* ----------------------------------------------------------- solutions hub */

.solutions-hub {
  background: var(--ink-950); color: var(--on-ink);
  border-block: 1px solid var(--ink-800);
  padding-block: 54px;
}
.band-head { max-width: 46rem; margin-bottom: 36px; }
.band-h {
  margin: 0 0 14px; font-family: var(--serif); font-weight: 700; line-height: 1.18;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); color: #fff;
}
.band-intro { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--on-ink-muted); }

.solution-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.solution-card {
  display: flex; flex-direction: column;
  padding: 26px; border-radius: var(--radius-xl);
  background: hsl(222 47% 9% / 0.8); border: 1px solid var(--ink-800);
}
.solution-card:hover { border-color: hsl(217 91% 60% / 0.6); background: hsl(222 47% 9%); }
.solution-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 18px; border-radius: var(--radius-lg);
  background: hsl(217 91% 60% / 0.15); color: var(--accent-ink);
}
.solution-h { margin: 0 0 8px; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: #fff; }
.solution-value { margin: 0 0 18px; font-size: 0.93rem; line-height: 1.6; color: var(--on-ink-muted); }
.solution-caps { margin: 0 0 20px; padding: 0 0 0 1px; list-style: none; flex: 1 1 auto; }
.solution-caps li {
  position: relative; padding-left: 16px; margin-bottom: 8px;
  font-size: 0.86rem; line-height: 1.55; color: var(--on-ink-muted);
}
.solution-caps li::before { content: "\2022"; position: absolute; left: 0; color: var(--accent-ink); }
.solution-get {
  padding: 14px; margin-bottom: 20px; border-radius: var(--radius);
  background: hsl(217 33% 17% / 0.6); border: 1px solid var(--ink-700);
}
.solution-get .eyebrow { margin-bottom: 8px; font-size: 0.6rem; letter-spacing: 0.2em; }
.solution-get ul { margin: 0; padding: 0; list-style: none; }
.solution-get li {
  display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px;
  font-size: 0.82rem; line-height: 1.5; color: var(--on-ink-muted);
}
.solution-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; }
.solution-ctas .link-cta { color: var(--accent-ink); }

@media (min-width: 768px) {
  .solutions-hub { padding-block: 76px; }
  .solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1200px) {
  .solution-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------- section furniture */

.sec-head { max-width: 46rem; margin-bottom: 30px; }
.sec-h {
  margin: 0 0 12px; font-family: var(--serif); font-weight: 700; line-height: 1.2;
  font-size: clamp(1.45rem, 1.2rem + 1.1vw, 1.9rem); color: var(--fg);
}
.sec-intro { margin: 0; font-size: 0.95rem; line-height: 1.65; color: var(--fg-muted); }

.audiences, .events, .careers, .network, .modules, .briefing, .attention {
  padding-block: 44px; border-top: 1px solid var(--border);
}
.weekly { padding-block: 44px 0; }
.layer { padding-top: 54px; margin-top: 24px; border-top: 2px solid var(--border); }
.layer-head { max-width: 46rem; margin-bottom: 6px; }
.layer-intro { margin: 0; font-size: 0.88rem; line-height: 1.65; color: var(--fg-muted); }

/* The honest-unavailable block, in the same language as the rest of the build. */
.unavailable {
  margin: 18px 0; padding: 14px 16px;
  border: 1px dashed var(--border); border-radius: var(--radius);
  background: var(--bg-soft); font-size: 0.84rem; line-height: 1.6; color: var(--fg-muted);
}
.unavailable p { margin: 0 0 6px; }
.unavailable p:last-child { margin-bottom: 0; }
.unavailable-h { font-weight: 600; color: var(--fg); }
.unavailable-dark, .unavailable-band {
  background: hsl(0 0% 100% / 0.06); border-color: hsl(0 0% 100% / 0.22); color: var(--on-ink-muted);
}
.unavailable-dark .unavailable-h, .unavailable-band .unavailable-h { color: #fff; }
.unavailable-band { max-width: 42rem; margin-inline: auto; text-align: left; }

/* ---------------------------------------------------- weekly intelligence */

.weekly-inner {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(to bottom right, var(--ink-900) 0%, #172554 50%, var(--ink-900) 100%);
  color: var(--on-ink);
}
.weekly-body { padding: 26px; order: 2; }
.weekly-h {
  margin: 0 0 12px; font-family: var(--serif); font-weight: 700; line-height: 1.2;
  font-size: clamp(1.45rem, 1.2rem + 1.1vw, 1.9rem); color: #fff;
}
.weekly-intro { margin: 0 0 14px; font-size: 0.94rem; line-height: 1.6; color: var(--on-ink-muted); }
.weekly-chips { margin: 0 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip-label {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--on-ink-faint); margin-right: 2px;
}
.chip {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 0.72rem; background: hsl(0 0% 100% / 0.1);
  border: 1px solid hsl(0 0% 100% / 0.1); color: var(--on-ink-muted);
}
.chip-link { text-decoration: none; }
.chip-link:hover { background: hsl(0 0% 100% / 0.18); color: #fff; }

.weekly-edition {
  padding: 12px 14px; margin-bottom: 16px; border-radius: var(--radius);
  background: hsl(0 0% 100% / 0.05); border: 1px solid hsl(0 0% 100% / 0.1);
}
.weekly-edition-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 4px;
}
.weekly-edition-head .eyebrow { margin: 0; font-size: 0.6rem; }
.weekly-edition-head time { font-size: 0.68rem; color: hsl(213 94% 85% / 0.8); white-space: nowrap; }
.weekly-edition-title {
  display: block; font-family: var(--serif); font-size: 1rem; font-weight: 600;
  line-height: 1.35; color: #fff; text-decoration: none;
}
.weekly-edition-title:hover { color: var(--accent-ink); }

.weekly-values { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.weekly-values li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 0.78rem; line-height: 1.5; color: var(--on-ink-muted);
}
.weekly-values .ic { color: var(--accent-ink); margin-top: 2px; }
.weekly-links { margin: 0 0 16px; font-size: 0.86rem; }
.weekly-links a { color: var(--accent-ink); text-decoration: none; }
.weekly-links a:hover { color: #fff; }
.weekly-links .sep { color: var(--ink-700); margin-inline: 8px; }
.weekly-advisory {
  margin: 0; padding-top: 16px; border-top: 1px solid hsl(0 0% 100% / 0.1);
  display: flex; flex-wrap: wrap; gap: 8px;
}
.weekly-img { display: block; order: 1; background: var(--ink-800); min-height: 180px; }
.weekly-img img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 860px) {
  .weekly-inner { grid-template-columns: 1.05fr 1fr; }
  .weekly-body { padding: 38px; order: 1; }
  .weekly-img { order: 2; min-height: 320px; }
}

/* ---------------------------------------------------------------- audiences */

.audience-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.audience-card {
  display: flex; flex-direction: column; padding: 20px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card);
}
.audience-h { margin: 0 0 12px; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--fg); }
.audience-line { margin: 0 0 10px; font-size: 0.82rem; line-height: 1.6; color: var(--fg-muted); }
.audience-line strong { color: var(--fg); }
.audience-card .link-cta { margin-top: auto; }

@media (min-width: 700px) { .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .audience-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --------------------------------------------------------- industry network */

.network-panel {
  padding: 26px; border-radius: var(--radius-xl); color: var(--on-ink);
  background: linear-gradient(to bottom right, var(--ink-900) 0%, #172554 50%, var(--ink-900) 100%);
}
.network-top { display: grid; gap: 26px; grid-template-columns: 1fr; align-items: start; }
.badge {
  display: inline-block; margin: 0 0 12px; padding: 3px 9px; border-radius: 4px;
  background: hsl(32 81% 29% / 0.4); color: hsl(45 93% 70%);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase;
}
.network-h {
  margin: 0 0 12px; font-family: var(--serif); font-weight: 700; line-height: 1.15;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.1rem); color: #fff;
}
.network-intro { margin: 0 0 22px; max-width: 42rem; font-size: 1rem; line-height: 1.6; color: hsl(214 95% 88%); }
.network-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.network-values { display: grid; gap: 10px; }
.network-value {
  display: flex; gap: 12px; padding: 14px; border-radius: var(--radius-lg);
  background: hsl(0 0% 100% / 0.05); border: 1px solid hsl(0 0% 100% / 0.1);
}
.network-value-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none; border-radius: var(--radius);
  background: hsl(217 91% 60% / 0.15); color: var(--accent-ink);
}
.network-value-h { margin: 0 0 2px; font-size: 0.84rem; font-weight: 600; color: #fff; }
.network-value-b { margin: 0; font-size: 0.76rem; line-height: 1.55; color: var(--on-ink-muted); }

.network-eco { margin-top: 32px; padding-top: 26px; border-top: 1px solid hsl(0 0% 100% / 0.1); }
.network-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.network-tile {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px;
  border-radius: var(--radius); background: hsl(0 0% 100% / 0.05);
  border: 1px solid hsl(0 0% 100% / 0.1);
}
.tile-initial {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none; border-radius: 6px; font-weight: 700;
}
.tone-blue    { background: hsl(217 91% 40% / 0.4); color: hsl(214 95% 90%); }
.tone-emerald { background: hsl(161 94% 24% / 0.4); color: hsl(152 81% 88%); }
.tone-amber   { background: hsl(32 81% 29% / 0.4);  color: hsl(48 97% 88%); }
.tone-violet  { background: hsl(263 70% 40% / 0.4); color: hsl(269 100% 92%); }
.tone-cyan    { background: hsl(192 91% 26% / 0.4); color: hsl(186 94% 88%); }
.tone-rose    { background: hsl(336 74% 35% / 0.4); color: hsl(356 100% 92%); }
.tile-text { display: flex; flex-direction: column; min-width: 0; }
.tile-role {
  font-size: 0.7rem; font-weight: 600; color: #fff; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tile-region {
  font-size: 0.64rem; color: var(--on-ink-faint); line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.network-lists {
  display: grid; gap: 22px; grid-template-columns: 1fr;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid hsl(0 0% 100% / 0.1);
}
.pill-row { margin: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  display: inline-flex; padding: 4px 10px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 500; color: var(--on-ink-muted);
  background: hsl(0 0% 100% / 0.05); border: 1px solid hsl(0 0% 100% / 0.15);
}
.network-note { margin: 12px 0 0; font-size: 0.68rem; line-height: 1.6; color: var(--on-ink-faint); }

@media (min-width: 860px) {
  .network-panel { padding: 44px; }
  .network-top { grid-template-columns: 1.2fr 1fr; gap: 44px; }
  .network-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .network-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
}
@media (min-width: 1100px) {
  .network-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ------------------------------------------------ events, training, careers */

.two-rail, .careers-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
.rail-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.rail-h {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--fg);
}
.rail-h .ic { color: var(--brand-maritime); }
.rail-all { font-size: 0.76rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.rail-all:hover { text-decoration: underline; }
.rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rail-card {
  padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.rail-tags { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag {
  display: inline-flex; padding: 2px 8px; border-radius: 4px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.tag-amber { background: hsl(48 96% 89%); color: hsl(26 90% 30%); }
.tag-blue  { background: hsl(214 95% 93%); color: hsl(224 76% 38%); }
:root[data-theme="dark"] .tag-amber { background: hsl(32 81% 29% / 0.4); color: hsl(45 93% 70%); }
:root[data-theme="dark"] .tag-blue  { background: hsl(226 57% 21% / 0.5); color: hsl(213 94% 78%); }
.tag-plain {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-maritime);
}
.rail-card-h { margin: 0 0 4px; font-size: 0.92rem; font-weight: 600; line-height: 1.35; color: var(--fg); }
.rail-card-b { margin: 0; font-size: 0.8rem; line-height: 1.55; color: var(--fg-muted); }

.careers-card, .careers-jobs { padding: 22px; border-radius: var(--radius-xl); }
.careers-card { border: 1px solid var(--border); background: var(--bg-card); }
.careers-jobs {
  display: flex; flex-direction: column;
  border: 1px solid hsl(214 95% 86%); background: hsl(214 100% 97%);
}
:root[data-theme="dark"] .careers-jobs { border-color: hsl(226 57% 25%); background: hsl(226 57% 12% / 0.6); }
.check-list { list-style: none; margin: 14px 0 20px; padding: 0; display: grid; gap: 9px; }
.check-list li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 0.85rem; line-height: 1.55; color: var(--fg-muted);
}
.check-list .ic { margin-top: 3px; }
.careers-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.jobs-flag { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; color: var(--brand-maritime); }
.jobs-h { margin: 0 0 8px; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--fg); }
.jobs-b { margin: 0; font-size: 0.85rem; line-height: 1.6; color: var(--fg-muted); }
.careers-jobs .unavailable { margin-top: auto; }

@media (min-width: 900px) {
  .two-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .careers-grid { grid-template-columns: 1.1fr 1fr; gap: 32px; }
}

/* --------------------------------------------------- intelligence briefing */

.briefing-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.briefing-head .sec-h { margin: 0; }
.briefing-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
.briefing-lead { display: block; text-decoration: none; color: inherit; }
.briefing-img {
  display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 16px;
  border-radius: var(--radius); background: var(--bg-soft);
}
.briefing-img img { width: 100%; height: 100%; object-fit: cover; }
.briefing-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-faint);
}
.briefing-title {
  display: block; font-family: var(--serif); font-weight: 700; line-height: 1.2;
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.75rem); color: var(--fg);
}
.briefing-lead:hover .briefing-title { color: var(--brand-maritime); }
.briefing-excerpt { display: block; margin-top: 10px; font-size: 0.92rem; line-height: 1.6; color: var(--fg-muted); }

.briefing-side { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; align-content: start; }
.briefing-side a { display: block; text-decoration: none; color: inherit; }
.briefing-side time { display: block; margin-bottom: 4px; font-size: 0.66rem; text-transform: uppercase; color: var(--fg-faint); }
.briefing-side-title { display: block; font-size: 0.95rem; font-weight: 600; line-height: 1.35; color: var(--fg); }
.briefing-side a:hover .briefing-side-title { color: var(--brand-maritime); }
.briefing-side-excerpt { display: block; margin-top: 5px; font-size: 0.8rem; line-height: 1.55; color: var(--fg-muted); }

@media (min-width: 900px) {
  .briefing-grid { grid-template-columns: 3fr 2fr; gap: 36px; }
}

/* ----------------------------------------------------- intelligence modules */

.module-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.module {
  display: flex; flex-direction: column; padding: 24px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card);
}
.module-head { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.module-h { margin: 0 0 8px; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--fg); }
.module-framing { margin: 0; font-size: 0.82rem; line-height: 1.55; color: var(--fg-muted); }
.module-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; flex: 1 1 auto; }
.module-list a { display: block; text-decoration: none; color: inherit; }
.module-list time { display: block; margin-bottom: 4px; font-size: 0.64rem; text-transform: uppercase; color: var(--fg-faint); }
.module-title { display: block; font-size: 0.95rem; font-weight: 600; line-height: 1.35; color: var(--fg); }
.module-list a:hover .module-title { color: var(--brand-maritime); }
.module-excerpt { display: block; margin-top: 5px; font-size: 0.8rem; line-height: 1.55; color: var(--fg-muted); }
.module-empty { margin: 0; flex: 1 1 auto; font-size: 0.85rem; color: var(--fg-muted); }
.module-note {
  margin: 16px 0 0; padding: 10px 12px; border-radius: var(--radius);
  background: var(--bg-soft); font-size: 0.74rem; line-height: 1.55; color: var(--fg-muted);
}
.module-all { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
.module-all a { font-size: 0.84rem; font-weight: 600; text-decoration: none; }
.module-all a:hover { text-decoration: underline; }

@media (min-width: 900px) { .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; } }

/* ----------------------------------------------------- operational attention */

.attention-h { margin: 4px 0 0; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--fg); }
.attention-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.attention-list a { display: block; text-decoration: none; color: inherit; }
.attention-list time { display: block; margin-bottom: 3px; font-size: 0.64rem; text-transform: uppercase; color: var(--fg-faint); }
.attention-title { display: block; font-size: 0.92rem; font-weight: 600; line-height: 1.4; color: var(--fg); }
.attention-list a:hover .attention-title { color: var(--brand-maritime); }

@media (min-width: 700px) { .attention-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; } }
@media (min-width: 1024px) { .attention-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ------------------------------------------------- closing briefing band */

.briefing-band { margin-top: 56px; padding-block: 50px; background: var(--brand-maritime); color: #fff; }
.briefing-band .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.briefing-band-h {
  margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.75rem); line-height: 1.25;
}
.briefing-band-b { margin: 0; max-width: 34rem; font-size: 0.88rem; line-height: 1.65; color: hsl(214 95% 90%); }
.briefing-band-links { margin: 0; font-size: 0.86rem; }
.briefing-band-links a { color: #fff; }
