/* bermudastandard.com: the Bermuda Standard's own look. The cyan ring of the
   Bermuda Standard logo is the accent (decoration only: it is too light for
   text), the site's long-standing blue carries buttons and links, and the
   island's south shore is the hero. Lexend headings, Roboto body, as on every
   ecosystem site. Chart colours follow the data-viz palette: a fixed colour
   per record, status colours only with an icon and a label. */

:root {
  color-scheme: light;
  --page: #f6f9fc;
  --surface: #ffffff;
  --tint: #ecf3fa;
  --ink: #0d2442;
  --ink-2: #3d4f66;
  --muted: #5a6b80;
  --rule: #d9e2ec;
  --cyan: #00aeef;
  --blue: #3c5286;
  --blue-2: #2f4470;
  --link: #2c5fa3;
  --deep: #0d2442;
  --deep-ink: #eef4fa;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 36, 66, 0.06), 0 8px 24px rgba(13, 36, 66, 0.06);
  /* charts */
  --chart-surface: #fcfcfb;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --axis-ink: #6f6d68;
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --good: #0ca30c;
  --good-ink: #006300;
  --warning: #fab219;
  --warning-ink: #8a5a00;
  --critical: #d03b3b;
  --critical-ink: #b02a2a;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0a1626;
    --surface: #10203a;
    --tint: #0d1b30;
    --ink: #e8eef5;
    --ink-2: #c3cfdc;
    --muted: #9fb0c3;
    --rule: #22344f;
    --blue: #4f74b8;
    --blue-2: #5d82c6;
    --link: #7cc6f0;
    --deep: #06101e;
    --shadow: none;
    --chart-surface: #1a1a19;
    --grid: #2c2c2a;
    --axis: #383835;
    --axis-ink: #a8a69e;
    --s1: #3987e5;
    --s2: #d95926;
    --s3: #199e70;
    --s4: #c98500;
    --good-ink: #0ca30c;
    --warning-ink: #fab219;
    --critical-ink: #e66767;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 Roboto, system-ui, sans-serif;
}
h1, h2, h3 { font-family: Lexend, Roboto, sans-serif; line-height: 1.2; margin: 0 0 12px; font-weight: 600; }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.01em; }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 14px; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, .plot:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
code { font-family: "Roboto Mono", ui-monospace, monospace; font-size: 0.9em; }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 760px; }
.note { color: var(--muted); font-size: 14px; }
.note--fault { color: var(--critical-ink); }
.muted { color: var(--muted); }
.aside { margin-top: 28px; padding: 16px 20px; border-left: 3px solid var(--cyan); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); --hub-globe-ink: var(--muted); }
.top__inner { max-width: 1120px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: Lexend, sans-serif; font-weight: 600; font-size: 18px; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; }
.nav a:hover { background: var(--tint); }
.nav a.active { color: var(--ink); background: var(--tint); font-weight: 500; }
@media (max-width: 720px) {
  .top__inner { flex-wrap: wrap; }
  .nav { margin-left: 0; width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; padding: 6px 10px; }
}

/* ---- buttons and orbs ---- */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-2); }
.btn--ghost { border-color: currentColor; color: var(--link); }
.btn--ghost:hover { background: var(--tint); }
/* The orb: the ecosystem's round blue-gradient icon button. */
.orb { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 20px; background: radial-gradient(circle at 32% 28%, #7fdcff, var(--cyan) 45%, #0a6fb3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 18%, transparent), 0 6px 16px rgba(0, 120, 190, 0.28); }
.step-num { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--cyan); color: var(--ink); font-family: Lexend, sans-serif; font-weight: 600; margin-bottom: 12px; }

/* ---- hero ---- */
.hero { position: relative; color: #fff; background: #0d2442 url(bermuda-coast.jpg) center 40% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 24, 48, 0.88) 0%, rgba(8, 24, 48, 0.62) 55%, rgba(8, 24, 48, 0.2) 100%); }
.hero__inner { position: relative; max-width: 1120px; margin: 0 auto; padding: clamp(64px, 11vw, 132px) 20px; }
.hero h1 { max-width: 720px; }
.hero .eyebrow { color: #9fdcf7; }
.hero .lede { color: #e4eef8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .btn--primary { background: #fff; color: #0d2442; }
.hero .btn--primary:hover { background: #e6f5fd; }
.hero .btn--ghost { color: #fff; }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---- sections ---- */
.section { padding: 56px 0; }
.section--tint { background: var(--tint); }
.section--deep { background: var(--deep); color: var(--deep-ink); }
.section--deep .eyebrow { color: #9fdcf7; }
.section--deep .btn--primary { background: #fff; color: #0d2442; }
.section--deep a:not(.btn) { color: #9fdcf7; }
.section__title { margin-bottom: 20px; }
.page-head { padding: 48px 0 8px; }
.page-head--deep { background: var(--deep); color: var(--deep-ink); padding-bottom: 40px; }
.page-head--deep .eyebrow { color: #9fdcf7; }
.page-head--deep .lede { color: #d5e3f1; }
.page-head--deep a { color: #9fdcf7; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.photo { border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.cop { max-width: 760px; }

/* ---- tiles and totals ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tile { display: block; padding: 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.tile:hover { border-color: var(--cyan); }
.tile__name { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.tile__value { font-family: Lexend, sans-serif; font-size: 34px; font-weight: 600; line-height: 1.1; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.tile__unit { font-family: Roboto, sans-serif; font-size: 15px; font-weight: 400; color: var(--ink-2); }
.tile__when { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 24px 0 8px; }
.totals div { padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.totals dt { font-size: 13px; color: var(--muted); }
.totals dd { margin: 4px 0 0; font-family: Lexend, sans-serif; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- verdicts: always an icon and a label ---- */
.verdict { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; padding: 2px 10px 2px 8px; border-radius: 999px; border: 1px solid; margin: 0; }
.verdict--certain { color: var(--good-ink); border-color: var(--good); }
.verdict--guess { color: var(--warning-ink); border-color: var(--warning); }
.verdict--refuted { color: var(--critical-ink); border-color: var(--critical); }
.verdict--none { color: var(--muted); border-color: var(--rule); }

/* ---- steps and rules ---- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps p { color: var(--ink-2); }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.rules li { display: flex; gap: 18px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.rules .step-num { margin: 0; }
.rules h2 { font-size: 20px; margin-bottom: 6px; }
.rules p { margin: 0; color: var(--ink-2); }

/* ---- series and charts ---- */
.series { padding: 28px 0 36px; border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.series:last-child { border-bottom: 0; }
.series__about { color: var(--ink-2); max-width: 780px; }
.series__summary { font-weight: 500; }
.chart { margin: 16px 0 0; padding: 16px; background: var(--chart-surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.key { display: inline-block; width: 16px; height: 0; border-top: 2px solid; border-radius: 2px; }
.key.s1 { border-color: var(--s1); } .key.s2 { border-color: var(--s2); } .key.s3 { border-color: var(--s3); } .key.s4 { border-color: var(--s4); }
.ring { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid; }
.ring--guess { border-color: var(--warning); }
.ring--refuted { border-color: var(--critical); }
.plot { position: relative; touch-action: pan-y; }
.plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.plot .grid { stroke: var(--grid); stroke-width: 1; }
.plot .baseline { stroke: var(--axis); stroke-width: 1; }
.plot .axis { fill: var(--axis-ink); font-size: 12px; font-family: Roboto, sans-serif; }
.plot .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.plot .line.s1 { stroke: var(--s1); } .plot .line.s2 { stroke: var(--s2); } .plot .line.s3 { stroke: var(--s3); } .plot .line.s4 { stroke: var(--s4); }
.plot .mark { fill: var(--chart-surface); stroke-width: 2; }
.plot .mark--guess { stroke: var(--warning); }
.plot .mark--refuted { stroke: var(--critical); }
.plot .mark-label { fill: var(--critical-ink); font-size: 12px; font-weight: 500; font-family: Roboto, sans-serif; paint-order: stroke; stroke: var(--chart-surface); stroke-width: 4px; }
.plot .crosshair { stroke: var(--axis-ink); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-unit { font-size: 13px; color: var(--muted); margin-top: 4px; }
.tip { position: absolute; top: 8px; z-index: 2; min-width: 180px; max-width: 260px; padding: 10px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14); pointer-events: none; font-size: 13px; }
.tip ul { list-style: none; margin: 6px 0; padding: 0; }
.tip li { display: flex; align-items: center; gap: 8px; }
.tip strong { font-variant-numeric: tabular-nums; font-size: 14px; }
.tip-name { color: var(--muted); }
.tip-time { font-weight: 600; margin: 0; }
.tip-unit { color: var(--muted); margin: 0 0 6px; }
.table-view { margin-top: 10px; }
.table-view summary { cursor: pointer; color: var(--link); font-size: 14px; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; margin: 10px 0 28px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-weight: 600; color: var(--muted); font-size: 13px; }
tbody th { font-weight: 500; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- data page ---- */
.downloads { display: grid; gap: 12px; margin-bottom: 8px; }
.download { display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); text-decoration: none; max-width: 760px; }
.download:hover { border-color: var(--cyan); }
.download strong { display: block; font-size: 16px; }
.download .muted { font-size: 14px; }

/* ---- COP31 ---- */
.mirror { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mirror__side { padding: 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); border-top: 4px solid var(--cyan); }
.mirror__side:first-child { border-top-color: #1b7fc4; }
.mirror__side ul { padding-left: 20px; color: var(--ink-2); margin: 0 0 18px; }
@media (max-width: 760px) { .mirror { grid-template-columns: 1fr; } }

/* ---- footer theme ---- */
.hub-footer {
  --hub-footer-bg: #0d2442;
  --hub-footer-ink: #eef4fa;
  --hub-footer-muted: rgba(238, 244, 250, 0.66);
  --hub-footer-rule: rgba(238, 244, 250, 0.14);
  --hub-footer-accent: #9fdcf7;
  --hub-footer-font: Roboto, system-ui, sans-serif;
  --hub-footer-display: Lexend, Roboto, sans-serif;
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* On a phone the chart shrinks to half its drawn size: draw its text larger
   so it still reads at about 10px. */
@media (max-width: 600px) {
  .plot .axis { font-size: 21px; }
  .plot .mark-label { font-size: 21px; }
  .chart { padding: 12px; }
}

/* ---- member pages ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 14px; }
.card { padding: 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.card h2, .card h3 { margin-bottom: 6px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.btn--quiet { background: transparent; border-color: var(--rule); color: var(--ink-2); padding: 8px 16px; cursor: pointer; font: inherit; font-size: 14px; }
.btn--quiet:hover { background: var(--tint); }
.btn--quiet:disabled { opacity: 0.5; cursor: default; }
button.btn { cursor: pointer; font-family: inherit; }
button.btn:disabled { opacity: 0.6; cursor: default; }
.mandala { flex: none; display: block; border-radius: 50%; }
.signin { max-width: 520px; }
.identity { display: flex; gap: 20px; align-items: center; margin-bottom: 32px; }
.entities { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.entity { display: flex; gap: 16px; align-items: flex-start; }
.entity p { margin-bottom: 6px; }
.flash { padding: 10px 14px; border-radius: 10px; border: 1px solid; font-size: 14px; }
.flash--ok { color: var(--good-ink); border-color: var(--good); }
.flash--fault { color: var(--critical-ink); border-color: var(--critical); }
.form { display: grid; gap: 6px; align-content: start; }
.form label { font-size: 14px; font-weight: 500; margin-top: 8px; }
.form input, .form select, .form textarea, .filters input, .filters select, .queue input {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--page); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; width: 100%;
}
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible, .filters input:focus-visible, .filters select:focus-visible, .queue input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split--form { align-items: start; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 820px) { .split--form, .form__row { grid-template-columns: 1fr; } }
.my-list, .directory, .terms, .queue { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.my-list .card, .queue .card { padding: 16px 18px; }
.status { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.status--wait { color: var(--warning-ink); }
.status--ok, .status--live { color: var(--good-ink); }
.status--no { color: var(--critical-ink); }
.directory { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.source { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.source__img { width: 100%; height: 132px; object-fit: contain; background: #0d2442; }
.source__body { padding: 16px 18px; }
.source h3 { font-size: 17px; }
.source h3 a { color: var(--ink); text-decoration: none; }
.source h3 a:hover { color: var(--link); text-decoration: underline; }
.by { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.filters input { flex: 1 1 240px; width: auto; }
.filters select { flex: 0 1 220px; width: auto; }
.term__text { white-space: pre-wrap; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 18px; }
.checks { list-style: none; padding: 0; margin: 10px 0 12px; display: grid; gap: 4px; font-size: 14px; }
.check span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 700; border: 1px solid; margin-right: 4px; }
.check--ok { color: var(--good-ink); }
.check--warn { color: var(--critical-ink); }
.check--note { color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 14px; white-space: nowrap; }
.chip:hover, .chip.active { background: var(--tint); }
.chip--signin { padding: 7px 14px; background: var(--blue); color: #fff; border-color: transparent; font-weight: 600; }
.chip--signin:hover { background: var(--blue-2); }
@media (max-width: 720px) { .chip__name { display: none; } .chip { padding: 2px; } .chip--signin { padding: 6px 12px; } }
