/* Landing layer, shared shape across the network's two labs.
   Copied from j-lab-site: same header, same menu, same two columns, so a
   journalist moving between labs meets one site and not two.
   node.css is canon and synced (STD-010.2): it is never edited here. This file
   holds what is particular to the landing, starting with the node accent, which
   lives in a stylesheet and never inline (STD-010.4, amended 2026-08-14, so it
   stays compatible with the CSP that forbids inline styles). */

/* The wordmark stacks in the base system; here it reads on one line. */
.wordmark { flex-direction: row; font-size: clamp(48px, 7.4vw, 108px); }

/* ── Top bar ──────────────────────────────────────────────────────────────
   The way in belongs where people look for it: the far right of the header.
   It used to sit in the middle of the page, below three paragraphs. */

.topnav { display: flex; align-items: center; gap: clamp(6px, 1.2vw, 16px); }

/* The site menu sits between the brand and the meta, like any site's nav:
   a row of peers, not one drawer holding unrelated things. */
.sitenav { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 26px); }

.navlink {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-2); text-decoration: none; padding: 6px 2px;
  border-bottom: 1px solid transparent; transition: color .18s var(--ease), border-color .18s var(--ease);
}
.navlink:hover, .navlink:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }

.btn-signin {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; text-decoration: none;
  background: var(--accent); color: var(--bg); font-weight: 600;
  border: 1px solid var(--accent);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn-signin:hover, .btn-signin:focus-visible {
  transform: translateY(-1px); box-shadow: 0 10px 24px -12px var(--accent);
}
.btn-signin svg { width: 14px; height: 14px; }

/* ── The tools menu ───────────────────────────────────────────────────────
   <details> so it works with no JavaScript and answers the keyboard on its
   own. The script only adds closing on Escape and on an outside click. */

.menu { position: relative; }
.menu > summary {
  list-style: none; cursor: pointer;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-2); padding: 6px 2px; display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px solid transparent;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu > summary:focus-visible,
.menu[open] > summary { color: var(--accent); border-bottom-color: var(--accent); }
/* Drawn, not a glyph: the icon set is canon in 00-core/brand and gaining a
   chevron there is a sync, not a local edit (STD-010.2). Two borders at 45
   degrees match the set's 1.5 stroke closely enough at this size. */
.menu > summary .caret {
  width: 6px; height: 6px; display: inline-block; margin-left: 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s var(--ease);
}
.menu[open] > summary .caret { transform: translateY(1px) rotate(225deg); }

.menu-panel {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 40;
  min-width: min(340px, calc(100vw - 40px));
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 24px 48px -24px oklch(0 0 0 / 0.8), 0 2px 8px -4px oklch(0 0 0 / 0.6);
  padding: 8px; text-align: left;
}
.menu-panel .group-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim); padding: 10px 12px 6px;
}
.menu-panel a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 8px; text-decoration: none; color: var(--fg);
  transition: background .15s var(--ease);
}
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--accent-soft); }
.menu-panel a svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.menu-panel .m-name { font-size: 0.86rem; }
.menu-panel .m-sub {
  display: block; font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem; color: var(--mid); letter-spacing: 0.02em; margin-top: 2px;
}
.menu-panel .sep { height: 1px; background: var(--line-soft); margin: 6px 12px; }
.menu-panel .menu-foot {
  margin: 8px 12px 4px; padding-top: 10px; border-top: 1px solid var(--line-soft);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.64rem; color: var(--mid); letter-spacing: 0.02em;
  text-transform: none; line-height: 1.5;
}

/* Provenance again (STD-010.4), mirrored for this lab: a J-LAB tool listed in
   a C-LAB menu wears J-LAB's colour. The rule is the same everywhere, the
   accent it applies is always the OTHER lab's. */
.menu-panel [data-lab="j-lab"] {
  --accent:      oklch(0.76 0.15 48);
  --accent-2:    oklch(0.83 0.11 55);
  --accent-h:    48;
  --accent-glow: oklch(0.76 0.15 48 / 0.28);
  --accent-soft: oklch(0.76 0.15 48 / 0.12);
}
.m-lab {
  margin-left: auto; font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.58rem; letter-spacing: 0.08em; padding: 2px 7px; border-radius: 999px;
  color: var(--accent); border: 1px solid var(--accent); background: var(--accent-soft);
}

/* ── The left column ──────────────────────────────────────────────────────
   Short enough to read standing up. Everything that used to be spelled out
   here now lives one click away, at /desk. */

.lede {
  font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.6;
  color: var(--fg-2); max-width: 58ch;
}
.lede strong { color: var(--fg); font-weight: 500; }

.paths { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.note-line {
  display: flex; align-items: center; gap: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem; letter-spacing: 0.04em; color: var(--mid);
}
.note-line svg { width: 14px; height: 14px; color: var(--accent); }

/* ── The right column ─────────────────────────────────────────────────────
   The radar keeps the count, so the list of modules underneath it went away. */

.signal-row {
  display: flex; gap: clamp(14px, 3vw, 34px); justify-content: center; flex-wrap: wrap;
}
.signal-row .cell { text-align: center; }
.signal-row .n {
  display: block; font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; color: var(--accent);
  line-height: 1;
}
.signal-row .k {
  display: block; margin-top: 6px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid);
}

/* ── /desk · the page that explains the desk ──────────────────────────────
   node.css lays `main` out as the two-column front page. A reading page is
   one column with a measure, so it opts out here rather than there. */

main.read {
  display: block;
  padding: clamp(32px, 5vw, 72px) var(--gutter-x) clamp(40px, 6vw, 80px);
}
.prose { max-width: 70ch; margin: 0 auto; }
.prose h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.06; letter-spacing: -0.03em;
  margin: 0 0 18px; font-weight: 600;
}
.prose h2 {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 600; letter-spacing: -0.01em;
  margin: 52px 0 16px; color: var(--fg);
}
.prose > p { line-height: 1.65; color: var(--fg-2); margin: 0 0 16px; }
.prose .lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--fg-2); margin-bottom: 8px; }
.prose .paths { margin-top: 32px; }

.deflist { margin: 0; }
.deflist dt {
  font-weight: 600; color: var(--fg); margin-top: 24px;
  padding-left: 14px; border-left: 1px solid var(--accent);
}
.deflist dt:first-child { margin-top: 0; }
.deflist dd {
  margin: 6px 0 0 15px; line-height: 1.6; color: var(--fg-2);
}

.plainlist { list-style: none; padding: 0; margin: 0; }
.plainlist li {
  position: relative; padding-left: 22px; margin-bottom: 12px;
  line-height: 1.6; color: var(--fg-2);
}
.plainlist li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.75;
}

@media (max-width: 900px) {
  .topnav .navlink[data-optional] { display: none; }
  /* Stays absolute on purpose. Switching to `fixed` here resolved
     `top: calc(100% + 12px)` against the viewport instead of the menu, which
     put the panel 824px down on a 812px screen: open, rendered, and entirely
     below the fold. Anchored left instead of right because the summary sits
     near the left edge on narrow screens. */
  .menu-panel {
    left: 0; right: auto;
    min-width: 0; width: min(340px, calc(100vw - 32px));
  }
}
