/* ==========================================================================
   Keels & Kingdoms — roadmap.keelsandkingdoms.com
   --------------------------------------------------------------------------
   Regenerated from the design document,
   import/pirate-game-kanban-roadmap/project/Pirate Roadmap.dc.html.
   The design is a single page of inline styles; each block below names the
   design line it was lifted from so the two can be diffed. Class names are
   the ones app/views/pages/roadmap.php, board.js and card-modal.php already
   use. Where this site adds something the design has no slot for (build
   note, "not yet shipped" chip, the Ship's Log), it borrows the design's
   own vocabulary rather than inventing a second one.
   ========================================================================== */

/* ---------------------------------------------- 1  TOKENS (design 16-69) - */
* { box-sizing: border-box; }

:root, [data-om-theme="dark"] {
  --sans: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "IM Fell English SC", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --bg-image: radial-gradient(1200px 700px at 20% -10%, oklch(0.32 0.05 235) 0%, transparent 60%), radial-gradient(900px 600px at 95% 110%, oklch(0.28 0.06 195) 0%, transparent 65%), linear-gradient(180deg, #0d1826 0%, #0a121d 55%, #070e17 100%);
  --fg: oklch(0.94 0.02 84);
  --fg-dim: oklch(0.84 0.02 80 / 0.66);
  --fg-faint: oklch(0.84 0.02 80 / 0.38);
  --gold: oklch(0.78 0.11 78);
  --gold-strong: oklch(0.88 0.13 82);
  --gold-ink: oklch(0.18 0.04 60);
  --line: oklch(0.78 0.11 78 / 0.26);
  --panel: oklch(0.2 0.03 235 / 0.42);
  --panel-hot: oklch(0.78 0.11 78 / 0.14);
  --panel-solid: oklch(0.22 0.032 235 / 0.6);
  --card-a: oklch(0.94 0.03 88);
  --card-b: oklch(0.87 0.045 82);
  --card-edge: oklch(0.6 0.08 70 / 0.35);
  --ink: oklch(0.22 0.03 60);
  --ink-dim: oklch(0.32 0.025 60 / 0.85);
  --ink-faint: oklch(0.4 0.05 60 / 0.7);
  --field: oklch(0.98 0.01 88);
  --shadow-card: 0 10px 24px oklch(0.05 0.03 240 / 0.5);
  --shadow-lift: 0 22px 44px oklch(0.06 0.03 240 / 0.7);
  --shadow-pop: 0 30px 70px oklch(0.04 0.03 240 / 0.75);
  --scrim: oklch(0.06 0.03 235 / 0.78);
  --compass: 0.13;
}
[data-om-theme="light"] {
  --bg-image: radial-gradient(1100px 700px at 15% -10%, oklch(0.98 0.018 88) 0%, transparent 60%), radial-gradient(900px 600px at 98% 108%, oklch(0.93 0.03 200) 0%, transparent 65%), linear-gradient(180deg, oklch(0.965 0.012 86) 0%, oklch(0.93 0.016 82) 100%);
  --fg: oklch(0.27 0.03 250);
  --fg-dim: oklch(0.35 0.025 250 / 0.8);
  --fg-faint: oklch(0.4 0.02 250 / 0.55);
  --gold: oklch(0.52 0.11 65);
  --gold-strong: oklch(0.44 0.12 60);
  --gold-ink: oklch(0.98 0.01 88);
  --line: oklch(0.35 0.03 250 / 0.2);
  --panel: oklch(0.99 0.008 88 / 0.72);
  --panel-hot: oklch(0.52 0.11 65 / 0.12);
  --panel-solid: oklch(0.99 0.008 88 / 0.9);
  --card-a: oklch(1 0 0);
  --card-b: oklch(0.965 0.012 86);
  --card-edge: oklch(0.35 0.03 250 / 0.16);
  --ink: oklch(0.22 0.03 250);
  --ink-dim: oklch(0.34 0.025 250 / 0.9);
  --ink-faint: oklch(0.42 0.03 250 / 0.75);
  --field: oklch(1 0 0);
  --shadow-card: 0 6px 16px oklch(0.35 0.03 250 / 0.12);
  --shadow-lift: 0 18px 36px oklch(0.35 0.03 250 / 0.22);
  --shadow-pop: 0 26px 60px oklch(0.3 0.03 250 / 0.28);
  --scrim: oklch(0.3 0.02 250 / 0.5);
  --compass: 0.08;
}

/* -------------------------------------------- 2  DOCUMENT (design 70-75) - */
html, body { margin: 0; padding: 0; background: #0b1420; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
html[data-om-theme="light"] { color-scheme: light; }
html[data-om-theme="light"], html[data-om-theme="light"] body { background: oklch(0.965 0.012 86); }
a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--line); }
a:hover { color: var(--gold-strong); border-bottom-color: var(--gold-strong); }
input, textarea, select, button { font-family: var(--sans); }
::selection { background: oklch(0.72 0.12 78 / 0.35); }
[contenteditable]:focus { outline: 1px dashed var(--gold); outline-offset: 3px; }

/* The board hides cards with the hidden attribute; an author display rule
   would otherwise win over the UA's [hidden]. */
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  padding: 8px 12px; border: 0;
  background: var(--gold); color: var(--gold-ink);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
}
.skip-link:focus { left: 8px; }

/* ------------------------------------------- 3  KEYFRAMES (design 76-85) - */
@keyframes om-spin { to { transform: rotate(360deg); } }
@keyframes om-fog { 0% { transform: translate3d(-6%,0,0) scale(1.1); } 50% { transform: translate3d(6%,-2%,0) scale(1.2); } 100% { transform: translate3d(-6%,0,0) scale(1.1); } }
@keyframes om-bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
@keyframes om-lantern { 0%,100% { opacity: 0.5; filter: blur(18px); } 50% { opacity: 1; filter: blur(24px); } }
@keyframes om-pop { 0% { opacity: 0; transform: translateY(14px) scale(0.94) rotate(-1.4deg); } 60% { transform: translateY(-3px) scale(1.01) rotate(0.4deg); } 100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); } }
@keyframes om-seal { 0% { transform: scale(0.2) rotate(-40deg); opacity: 0; } 70% { transform: scale(1.12) rotate(6deg); } 100% { transform: scale(1) rotate(-4deg); opacity: 1; } }
@keyframes om-flow { to { background-position: 60px 0; } }
@keyframes om-flow-v { to { background-position: 0 60px; } }
@keyframes om-ink { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes om-sheen { 0% { transform: translateX(-120%); } 100% { transform: translateX(220%); } }

/* -------------------------------------------- 4  THEATRE (design 88-106) - */
.om {
  position: relative; min-height: 100vh;
  font-family: var(--sans); color: var(--fg);
  background: var(--bg-image);
}
.om__theatre { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.om__fog {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.45;
  background: radial-gradient(closest-side, oklch(0.6 0.03 220 / 0.14), transparent 70%);
  background-size: 55% 45%; background-repeat: repeat;
  animation: om-fog 46s ease-in-out infinite;
}
.compass {
  position: absolute; top: 42%; left: 50%; width: 720px; height: 720px;
  margin: -360px 0 0 -360px; pointer-events: none; opacity: var(--compass);
  animation: om-spin 240s linear infinite; color: var(--gold);
}
.compass i { position: absolute; display: block; }
.compass i:nth-child(1) { inset: 0; border: 1px solid currentColor; border-radius: 50%; }
.compass i:nth-child(2) { inset: 60px; border: 1px solid currentColor; border-radius: 50%; opacity: 0.6; }
.compass i:nth-child(3) { inset: 170px; border: 2px solid currentColor; border-radius: 50%; opacity: 0.5; }
.compass i:nth-child(4) { inset: 300px; border: 1px solid currentColor; transform: rotate(45deg); }
.compass i:nth-child(5) { left: 50%; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: 0.75; }
.compass i:nth-child(6) { top: 50%; left: 0; right: 0; height: 1px; background: currentColor; opacity: 0.75; }
.compass i:nth-child(7) { left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border: 1px solid currentColor; opacity: 0.55; transform: rotate(45deg); }

.shell { position: relative; z-index: 3; max-width: 1560px; margin: 0 auto; padding: 34px 30px 90px; }

/* ------------------------------------------- 5  MASTHEAD (design 108-137) - */
.roadmap__head {
  display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: end;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.masthead__copy { position: relative; }
.lantern {
  position: absolute; left: -30px; top: -6px; width: 120px; height: 90px;
  background: radial-gradient(closest-side, oklch(0.82 0.14 82 / 0.45), transparent 70%);
  animation: om-lantern 5.5s ease-in-out infinite; pointer-events: none;
}
.eyebrow {
  position: relative; display: flex; align-items: center; gap: 12px; margin: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; display: block; flex: 0 0 auto; width: 34px; height: 1px; background: currentColor; opacity: 0.7; }
.masthead__title {
  margin: 10px 0 6px; font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 4.6vw, 62px); line-height: 0.98; letter-spacing: 0.01em; color: var(--fg);
}
.lede { margin: 0; max-width: 64ch; font-size: 15px; line-height: 1.6; color: var(--fg-dim); text-wrap: pretty; }
.lede p { margin: 0 0 0.6em; }
.lede p:last-child { margin-bottom: 0; }
/* Addition: the "latest build with testers" line. */
.roadmap__build { margin: 10px 0 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint); }
.roadmap__build p { margin: 0; }
.roadmap__build strong { font-weight: 500; color: var(--fg-dim); }

.roadmap__tools { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel-solid); }

.tabs__tab {
  display: inline-block; padding: 9px 16px; border: 0; border-radius: 1px; cursor: pointer;
  background: transparent; color: var(--fg-dim);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  line-height: 1.2; text-decoration: none; transition: all 0.25s;
}
.tabs__tab:hover { color: var(--fg); }
.tabs__tab[aria-selected="true"], .tabs__tab[aria-current="page"] { background: var(--gold); color: var(--gold-ink); }
.tabs__tab[aria-selected="true"]:hover, .tabs__tab[aria-current="page"]:hover { color: var(--gold-ink); }
.tabs__tab:focus-visible { outline: 1px dashed var(--gold); outline-offset: 2px; }

.roadmap__toolrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* Buttons. .btn is the design's solid gold button (line 134); the ghost and
   mode variants are lines 126 and 130. */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px; cursor: pointer; line-height: 1.2;
  background: var(--gold); border: 1px solid var(--gold-strong); color: var(--gold-ink);
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; transition: all 0.2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); color: var(--gold-ink); }
.btn--ghost {
  padding: 9px 14px; background: transparent; border: 1px solid var(--line); color: var(--fg-dim);
  font-weight: 400; transition: all 0.25s;
}
.btn--ghost:hover { transform: none; filter: none; border-color: var(--gold); color: var(--gold); }
.btn__disc {
  display: block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.btn--mode {
  padding: 9px 14px; background: transparent;
  border: 1px solid oklch(0.6 0.08 195 / 0.5); color: oklch(0.55 0.1 200);
  font-weight: 400; transition: all 0.25s;
}
.btn--mode:hover { transform: none; filter: none; background: oklch(0.6 0.09 195 / 0.14); border-color: oklch(0.6 0.1 195); color: oklch(0.55 0.1 200); }
.btn__dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.btn:focus-visible { outline: 1px dashed var(--gold); outline-offset: 3px; }

/* -------------------------------------------- 6  FILTERS (design 142-150) - */
.filters { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; padding: 18px 0 26px; }
.filters__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-faint); }
.filters__set { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; cursor: pointer; border-radius: 999px;
  background: var(--panel-solid); border: 1px solid var(--line); color: var(--fg-dim);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: all 0.22s;
}
.chip:hover { transform: translateY(-1px); }
.chip.is-active { background: var(--gold); border-color: var(--gold-strong); color: var(--gold-ink); }
.filters__count { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--fg-faint); }

/* Department legend (design 69-73): slightly tighter, swatch per hue. */
.chip--legend { padding: 7px 12px; font-size: 10px; letter-spacing: 0.1em; }
.chip--legend .state-dot { width: 8px; height: 8px; border-radius: 2px; background: oklch(0.6 0.14 var(--hue)); }
.chip--legend[data-dept="All"] .state-dot { background: currentColor; }
.chip--legend.is-active { background: oklch(0.55 0.14 var(--hue)); border-color: transparent; color: oklch(0.98 0.01 90); }
.chip--legend[data-dept="All"].is-active { background: var(--gold); color: var(--gold-ink); }

/* ---------------------------------------------- 7  BOARD (design 153-186) - */
.board-scroll { overflow-x: auto; overflow-y: visible; padding-bottom: 8px; margin: 0 -30px; padding-left: 30px; padding-right: 30px; scroll-snap-type: x proximity; }
.board { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(260px, 1fr)); gap: 18px; align-items: start; }
.board__col { scroll-snap-align: start; }
.board-nav { display: flex; gap: 6px; }
.board-nav__btn { padding: 6px 11px; font-size: 14px; line-height: 1; }
.board__col {
  border-radius: 3px; padding: 14px; min-height: 420px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.25s, box-shadow 0.25s;
}
/* Colour coding by state: released / in the works / planned. */
.board__col { --col: var(--fg-faint); border-top: 2px solid var(--col); }
.board__col[data-state="released"] { --col: oklch(0.7 0.13 150); background: linear-gradient(180deg, oklch(0.62 0.11 150 / 0.12), var(--panel)); box-shadow: inset 0 0 0 1px oklch(0.62 0.11 150 / 0.35); }
.board__col[data-state="working"]  { --col: var(--gold); background: linear-gradient(180deg, oklch(0.72 0.11 78 / 0.14), var(--panel)); box-shadow: inset 0 0 0 1px oklch(0.72 0.11 78 / 0.4); }
.board__col[data-state="planned"]  { --col: oklch(0.7 0.03 250); }
[data-om-theme="light"] .board__col[data-state="released"] { --col: oklch(0.5 0.12 150); }
[data-om-theme="light"] .board__col[data-state="working"]  { --col: oklch(0.52 0.11 65); }
[data-om-theme="light"] .board__col[data-state="planned"]  { --col: oklch(0.5 0.03 250); }
.board__col.is-over { background: var(--panel-hot); box-shadow: inset 0 0 0 1px var(--gold); }
.board__col-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--col); vertical-align: middle; position: relative; top: -1px; }
.board__col-state { color: var(--col); }
.board__col-meta { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.board__col-edit {
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--fg-faint);
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: all 0.2s;
}
.board__col-edit:hover { color: var(--gold); border-color: var(--gold); }
.board__col-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 10px 12px 12px; margin: -4px -4px 14px; border-bottom: 1px solid var(--line);
}
.board__col-title { font-family: var(--display); font-size: 24px; letter-spacing: 0.05em; color: var(--fg); }
.board__col-sub { margin-top: 3px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-faint); }
.board__col-count { font-family: var(--mono); font-size: 11px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-dim); }
.board__list { display: flex; flex-direction: column; gap: 12px; }

/* The card (design 30-45). */
.card {
  position: relative; padding: 14px 15px 15px; border-radius: 2px; cursor: default;
  background: linear-gradient(168deg, var(--card-a), var(--card-b));
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--card-edge);
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.3s;
}
.card[draggable="true"] { cursor: grab; }
.card:hover, .card:focus-visible {
  transform: translateY(-5px) rotate(-0.8deg) scale(1.02);
  box-shadow: var(--shadow-lift), 0 0 0 1px var(--gold);
  outline: none;
}
.card.is-dragging { opacity: 0.35; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.badge {
  padding: 3px 8px; border-radius: 2px; white-space: nowrap;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
}
.badge[data-status="Charted"]     { background: oklch(0.5 0.02 250 / 0.1);  color: var(--ink-dim);        box-shadow: inset 0 0 0 1px oklch(0.5 0.02 250 / 0.25); }
.badge[data-status="In Progress"] { background: oklch(0.72 0.11 78 / 0.3);  color: oklch(0.36 0.08 60);  box-shadow: inset 0 0 0 1px oklch(0.6 0.1 70 / 0.5); }
.badge[data-status="Sea Trials"]  { background: oklch(0.7 0.09 200 / 0.3);  color: oklch(0.34 0.07 210); box-shadow: inset 0 0 0 1px oklch(0.55 0.08 205 / 0.5); }
.badge[data-status="Shipped"]     { background: oklch(0.62 0.11 150 / 0.28); color: oklch(0.32 0.08 152); box-shadow: inset 0 0 0 1px oklch(0.5 0.09 150 / 0.5); }
.risk { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; }
.risk[data-risk="calm"]   { color: oklch(0.44 0.08 150); }
.risk[data-risk="squall"] { color: oklch(0.5 0.12 68); }
.risk[data-risk="storm"]  { color: oklch(0.47 0.16 22); }
.card__title {
  margin: 0; font-family: var(--sans); font-weight: 600; font-size: 14.5px; line-height: 1.35;
  letter-spacing: -0.005em; color: var(--ink); overflow-wrap: anywhere; text-wrap: pretty;
}
.progress { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.progress__track { position: relative; display: block; flex: 1; height: 5px; border-radius: 999px; background: oklch(0.5 0.02 250 / 0.18); overflow: hidden; }
.progress__fill {
  position: absolute; display: block; inset: 0 auto 0 0; border-radius: 999px;
  background: repeating-linear-gradient(90deg, oklch(0.42 0.09 55) 0 6px, oklch(0.56 0.1 62) 6px 12px);
}
.progress__label { font-family: var(--mono); font-size: 9.5px; color: var(--ink-faint); }
.card__flag {
  position: absolute; top: -7px; right: -7px; padding: 2px 7px; border-radius: 2px;
  background: oklch(0.45 0.15 22); color: oklch(0.97 0.01 60);
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 4px 12px oklch(0.1 0.05 20 / 0.45);
}
.board__empty {
  padding: 30px 16px; text-align: center; border: 1px dashed var(--line); border-radius: 3px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint);
}

/* ------------------------------ 8  SECONDARY VIEWS (design 60-66, 119-124) - */
.view { padding: 30px 0 0; animation: om-ink 0.5s ease both; }
.view__head { display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.view__intro { max-width: 62ch; }
.view__intro--wide { max-width: 70ch; margin-bottom: 32px; }
.view__eyebrow { margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.view__eyebrow--teal { color: oklch(0.58 0.1 200); }
.view__title { margin: 10px 0 8px; font-family: var(--display); font-weight: 400; font-size: 38px; color: var(--fg); }
.view__lede { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg-dim); text-wrap: pretty; }
.view__lede p { margin: 0 0 0.6em; }
.view__lede p:last-child { margin-bottom: 0; }
.view__legend { display: flex; flex-wrap: wrap; gap: 8px; max-width: 620px; }

/* --------------------------------------------- 9  MANIFEST (design 77-114) - */
.manifest { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; align-items: start; }
.dept {
  position: relative; overflow: hidden; padding: 18px; border-radius: 4px;
  background: linear-gradient(180deg, oklch(0.6 0.13 var(--hue) / 0.14), var(--panel));
  box-shadow: inset 0 0 0 1px oklch(0.6 0.13 var(--hue) / 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}
.dept:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.dept__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.dept__pennant {
  flex: 0 0 auto; width: 30px; height: 38px; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  background: oklch(0.55 0.14 var(--hue)); color: oklch(0.98 0.01 var(--hue));
}
.dept__body { flex: 1; }
.dept__name { margin: 0; font-family: var(--sans); font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; color: var(--fg); }
.dept__summary { margin-top: 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); }
.dept__bar { position: relative; height: 4px; border-radius: 999px; margin-bottom: 16px; background: oklch(0.5 0.02 250 / 0.16); overflow: hidden; }
.dept__bar span { position: absolute; display: block; inset: 0 auto 0 0; border-radius: 999px; background: oklch(0.6 0.14 var(--hue)); }
.dept__features { display: flex; flex-wrap: wrap; gap: 8px; }
.feature {
  display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 3px;
  font-size: 13px; font-weight: 500; letter-spacing: -0.005em; cursor: default;
  background: linear-gradient(168deg, var(--card-a), var(--card-b)); color: var(--ink);
  box-shadow: inset 0 0 0 1px oklch(0.6 0.13 var(--hue) / 0.4);
  transition: transform 0.22s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.22s;
}
.feature:hover { transform: translateY(-3px) scale(1.03); box-shadow: var(--shadow-card); }
.feature__dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; }
.feature[data-state="in"] .feature__dot,      .state-dot[data-state="in"]      { background: oklch(0.55 0.13 150); }
.feature[data-state="proto"] .feature__dot,   .state-dot[data-state="proto"]   { background: oklch(0.62 0.13 72); }
.feature[data-state="planned"] .feature__dot, .state-dot[data-state="planned"] { background: oklch(0.55 0.02 250 / 0.45); }
.feature__state { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
/* Addition: works in the development build, not yet in a build testers have. */
.feature__undeployed {
  padding: 2px 6px; border-radius: 2px;
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase;
  background: oklch(0.5 0.12 68 / 0.18); color: oklch(0.45 0.1 62);
  box-shadow: inset 0 0 0 1px oklch(0.5 0.12 68 / 0.4);
}
.state-dot { display: block; flex: 0 0 auto; }
.state-key {
  display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: 3px; background: var(--panel);
}
.state-key__item { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); }
.state-key__item .state-dot { width: 8px; height: 8px; border-radius: 50%; }
.state-key__count { color: var(--fg-faint); }
.state-key__total { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); }

/* ------------------------------------------- 10  THE FORK (design 126-178) - */
.fork { padding: 28px 26px 32px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }
.fork__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 16px; }
.fork__trunk { display: flex; flex-wrap: wrap; align-items: stretch; }
.fork__trunk-item { display: flex; align-items: center; }
.plaque {
  min-width: 200px; max-width: 260px; padding: 15px 17px; border-radius: 2px;
  background: linear-gradient(170deg, var(--card-a), var(--card-b));
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--card-edge);
}
.plaque__tag { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.plaque__label { font-family: var(--sans); font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--ink); text-wrap: pretty; }
.rope {
  display: block; flex: 0 0 auto; width: 46px; height: 3px;
  background-image: repeating-linear-gradient(90deg, var(--gold) 0 9px, transparent 9px 18px);
  background-size: 60px 3px; animation: om-flow 1.6s linear infinite;
}
.rope--v { position: relative; width: auto; height: 70px; margin-top: 6px; background: none; animation: none; }
.rope--v::before {
  content: ""; position: absolute; left: 100px; top: 0; bottom: 0; width: 3px;
  background-image: repeating-linear-gradient(180deg, var(--gold) 0 9px, transparent 9px 18px);
  background-size: 3px 60px; animation: om-flow-v 1.6s linear infinite;
}
.fork__split { display: flex; align-items: center; gap: 22px; margin-bottom: 8px; }
.fork__diamond { position: relative; width: 132px; height: 132px; flex: 0 0 auto; margin-left: 35px; }
.fork__diamond::before {
  content: ""; position: absolute; inset: 0; transform: rotate(45deg); border-radius: 4px;
  background: linear-gradient(135deg, oklch(0.52 0.14 22), oklch(0.38 0.12 20));
  box-shadow: 0 14px 34px oklch(0.4 0.1 20 / 0.35), inset 0 0 0 1px oklch(0.8 0.1 40 / 0.4);
}
.fork__diamond-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 18px; }
.fork__diamond-tag { font-family: var(--mono); font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; color: oklch(0.95 0.03 60 / 0.75); }
.fork__diamond-label { font-family: var(--display); font-size: 16px; line-height: 1.15; color: oklch(0.98 0.02 84); }
.rope--grow { flex: 1; width: auto; }
.fork__branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; margin-top: 26px; }
.branch {
  padding: 20px; border-radius: 3px; transition: transform 0.3s;
  background: linear-gradient(180deg, oklch(0.55 0.1 var(--hue) / 0.14), var(--panel));
  box-shadow: inset 0 0 0 1px var(--line);
}
.branch:hover { transform: translateY(-4px); }
.branch__head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.branch__mark { font-family: var(--display); font-size: 30px; color: var(--gold); }
.branch__title { font-family: var(--display); font-size: 23px; line-height: 1.15; color: var(--fg); }
.branch__nodes { display: flex; flex-direction: column; gap: 12px; }
.branch__node { display: flex; align-items: stretch; gap: 12px; }
.branch__rope { flex: 0 0 3px; background-image: repeating-linear-gradient(180deg, var(--gold) 0 8px, transparent 8px 16px); opacity: 0.8; }
.branch .plaque { flex: 1; min-width: 0; max-width: none; padding: 13px 15px; box-shadow: var(--shadow-card); }
.branch .plaque__tag { margin-bottom: 5px; }
.branch .plaque__label { font-size: 13.5px; }

/* ------------------------------------------ 11  HOVER LOG (design 184-233) - */
.log { position: fixed; z-index: 50; pointer-events: none; display: none; }
.log.is-open { display: block; }
.log__inner {
  position: relative; width: 340px; padding: 20px 20px 18px; border-radius: 3px;
  background: linear-gradient(168deg, var(--card-a), var(--card-b));
  box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--card-edge);
  animation: om-pop 0.34s cubic-bezier(0.2,0.9,0.2,1) both;
}
.seal {
  position: absolute; top: -16px; right: -14px; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.15;
  color: oklch(0.97 0.02 84);
  animation: om-seal 0.42s cubic-bezier(0.2,0.9,0.2,1) 0.06s both;
  box-shadow: 0 8px 20px oklch(0.3 0.06 20 / 0.35);
}
.seal[data-risk="calm"]   { background: linear-gradient(140deg, oklch(0.52 0.11 150), oklch(0.38 0.1 150)); }
.seal[data-risk="squall"] { background: linear-gradient(140deg, oklch(0.64 0.13 72), oklch(0.48 0.12 62)); }
.seal[data-risk="storm"]  { background: linear-gradient(140deg, oklch(0.54 0.16 24), oklch(0.38 0.14 20)); }
.log__meta { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.log__title { margin: 8px 0 10px; font-family: var(--sans); font-weight: 700; font-size: 19px; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); overflow-wrap: anywhere; }
.log__desc { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: var(--ink-dim); text-wrap: pretty; }
.log__art { margin-bottom: 14px; padding: 12px; border-radius: 2px; background: oklch(0.5 0.02 250 / 0.07); box-shadow: inset 0 0 0 1px oklch(0.5 0.02 250 / 0.16); }
.log__art-label, .log__section-label { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.log__section-label { margin-bottom: 7px; }
.log__art-frame {
  position: relative; overflow: hidden; height: 76px; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  background-image: repeating-linear-gradient(135deg, oklch(0.5 0.02 250 / 0.16) 0 5px, transparent 5px 10px);
  box-shadow: inset 0 0 0 1px oklch(0.5 0.02 250 / 0.2);
}
.log__art-frame::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.5), transparent);
  animation: om-sheen 3.4s ease-in-out infinite;
}
.log__art-name { position: relative; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); background: var(--card-a); padding: 3px 8px; }
.log__art-frame--image { display: block; height: auto; background: none; }
.log__art-frame--image::before { display: none; }
.log__art-img { display: block; width: 100%; height: 180px; object-fit: cover; border-radius: 2px; }
.log__art-caption { margin-top: 7px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.log .progress { gap: 10px; margin: 0 0 14px; }
.log .progress__track { height: 8px; }
.log .progress__fill { background: repeating-linear-gradient(90deg, oklch(0.4 0.09 52) 0 7px, oklch(0.58 0.11 62) 7px 14px); }
.log .progress__label { font-size: 10px; color: var(--ink-dim); }
.watchbill { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.watchbill__item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-dim); }
.watchbill__item span:last-child { text-wrap: pretty; }
.watchbill__mark {
  flex: 0 0 auto; margin-top: 3px; width: 12px; height: 12px; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-family: var(--mono);
  box-shadow: inset 0 0 0 1px oklch(0.5 0.02 250 / 0.45);
}
.watchbill__item.is-done .watchbill__mark { background: oklch(0.48 0.11 150); color: oklch(0.97 0.02 84); box-shadow: none; }
.deps { padding-top: 11px; border-top: 1px solid oklch(0.5 0.02 250 / 0.2); }
.deps__list { display: flex; flex-wrap: wrap; gap: 6px; }
.deps__item { padding: 3px 8px; border-radius: 999px; font-family: var(--mono); font-size: 9.5px; color: var(--ink-dim); background: oklch(0.5 0.02 250 / 0.09); box-shadow: inset 0 0 0 1px oklch(0.5 0.02 250 / 0.2); }
.log__hint { margin-top: 13px; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }

/* ------------------------------------------ 12  THE EDITOR (design 237-313) - */
.modal {
  position: fixed; inset: 0; z-index: 60; display: none; align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow: auto; background: var(--scrim);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: om-ink 0.22s ease both;
}
.modal.is-open { display: flex; }
.modal__dialog {
  width: 100%; max-width: 620px; padding: 26px; border-radius: 3px;
  background: linear-gradient(170deg, var(--card-a), var(--card-b));
  box-shadow: var(--shadow-pop); animation: om-pop 0.32s cubic-bezier(0.2,0.9,0.2,1) both;
}
.modal__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid oklch(0.5 0.02 250 / 0.22); }
.modal__title { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.btn--ink {
  padding: 6px 12px; background: transparent; font-weight: 400;
  border: 1px solid oklch(0.5 0.02 250 / 0.3); color: var(--ink-dim);
  font-size: 10px; letter-spacing: 0.14em;
}
.btn--ink:hover { transform: none; filter: none; background: oklch(0.5 0.02 250 / 0.1); color: var(--ink-dim); }
.modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 0 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid oklch(0.5 0.02 250 / 0.28); border-radius: 2px;
  background: var(--field); font-family: var(--sans); font-size: 14px; color: var(--ink);
}
.field input[type="text"] { font-size: 14.5px; }
.field textarea { line-height: 1.5; resize: vertical; }
.field textarea.mono { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.field input[type="range"] { padding: 0; border: 0; background: transparent; accent-color: oklch(0.5 0.1 55); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 1px dashed var(--gold); outline-offset: 2px; }
.modal__foot { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid oklch(0.5 0.02 250 / 0.22); }
.modal__foot--wrap { flex-wrap: wrap; }
.modal__foot-group { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.modal__dialog--narrow { max-width: 480px; }
.art-field { gap: 8px; }
.art-field__preview img { display: block; max-width: 100%; max-height: 160px; border-radius: 2px; box-shadow: inset 0 0 0 1px oklch(0.5 0.02 250 / 0.25); }
.art-field input[type="file"] { padding: 6px 0; border: 0; background: transparent; font-size: 12.5px; color: var(--ink-dim); }
.art-field__remove { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink-dim); cursor: pointer; }
.art-field__remove input { width: auto; accent-color: oklch(0.5 0.1 55); }
.field__help { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.btn--save { padding: 11px 22px; font-weight: 400; background: oklch(0.42 0.11 55); border: 1px solid oklch(0.34 0.1 50); color: oklch(0.97 0.02 84); }
.btn--save:hover { transform: none; filter: none; background: oklch(0.5 0.12 58); color: oklch(0.97 0.02 84); }
.btn--danger { padding: 11px 18px; font-weight: 400; background: transparent; border: 1px solid oklch(0.5 0.14 22 / 0.55); color: oklch(0.45 0.15 22); }
.btn--danger:hover { transform: none; filter: none; background: oklch(0.5 0.14 22 / 0.12); color: oklch(0.45 0.15 22); }
.notice {
  margin: 14px 0 0; padding: 10px 12px; border-radius: 2px; font-size: 13px; line-height: 1.45;
  background: oklch(0.5 0.02 250 / 0.08); color: var(--ink-dim);
  box-shadow: inset 0 0 0 1px oklch(0.5 0.02 250 / 0.2);
}
.notice--error { background: oklch(0.5 0.14 22 / 0.1); color: oklch(0.45 0.15 22); box-shadow: inset 0 0 0 1px oklch(0.5 0.14 22 / 0.4); }

/* ----------------------------------------------- 13  THE SHIP'S LOG (ours) - */
.entries { display: flex; flex-direction: column; margin-top: 10px; }
.entry { display: grid; grid-template-columns: 150px 1fr; gap: 10px 30px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.entry__date { padding-top: 9px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.entry__title { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: 0.01em; }
.entry__title a { color: var(--fg); border-bottom: 0; }
.entry__title a:hover { color: var(--gold-strong); }
.entry__summary { margin: 0; max-width: 64ch; font-size: 15px; line-height: 1.6; color: var(--fg-dim); text-wrap: pretty; }
.entry__more { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.entries__empty { padding: 40px 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint); }
.pager { display: flex; gap: 10px; margin-top: 26px; }
.post { max-width: 72ch; margin-top: 30px; }
.post__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Long-form prose (post bodies, error pages). */
.prose { font-size: 16px; line-height: 1.7; color: var(--fg-dim); text-wrap: pretty; }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3 { font-family: var(--display); font-weight: 400; color: var(--fg); margin: 1.6em 0 0.5em; line-height: 1.15; }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 24px; }
.prose h4 { font-family: var(--sans); font-weight: 600; font-size: 17px; color: var(--fg); margin: 1.4em 0 0.4em; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin: 0.35em 0; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 3px solid var(--gold); background: var(--panel); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: var(--mono); font-size: 0.9em; padding: 1px 5px; border-radius: 2px; background: var(--panel-solid); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose strong { font-weight: 600; color: var(--fg); }

/* ------------------------------------------------------- 14  RESPONSIVE - */
@media (max-width: 991px) {
  .roadmap__head { grid-template-columns: 1fr; align-items: start; }
  .roadmap__tools { align-items: flex-start; }
  .roadmap__toolrow { justify-content: flex-start; }
  .log { display: none !important; }
  .compass { display: none; }
}
@media (max-width: 767px) {
  .shell { padding: 24px 18px 70px; }
  .board-scroll { margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
  .board { grid-template-columns: repeat(var(--cols, 4), minmax(240px, 1fr)); }
  .tabs { flex-wrap: wrap; }
  .modal { padding: 20px 12px; }
  .modal__grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .entry { grid-template-columns: 1fr; gap: 4px; }
  .entry__date { padding-top: 0; }
  .fork__diamond { margin-left: 0; }
  .rope--v::before { left: 65px; }
  .view__title { font-size: 32px; }
}
@media (max-width: 479px) {
  .filters__count { margin-left: 0; }
  .masthead__title { font-size: 34px; }
  .entry__title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .om__theatre, .roadmap__tools, .filters, .log, .modal, .admin-bar, .skip-link { display: none !important; }
  .om { background: none; color: #000; }
  .shell { max-width: none; padding: 0; }
  .card, .plaque, .feature { box-shadow: none; }
}

/* Small button (admin bar, post footers). */
.btn--sm { padding: 6px 12px; }
.btn--back span { font-family: var(--sans); }
.tabs__list { display: flex; gap: 4px; }
