/*
  Splendid writing modules - shared styles for the reusable article modules.

  This file is ADDITIVE. It holds the newer, self-contained writing modules
  (interactive charts, the editorial timeline). The older module classes
  (.article-fold, .pull-quote, .pop-viz, .rank-list, .ratio-icons, .offer-card,
  .move-list, .reveal, .talking-head, etc.) still live in custom.css and are
  catalogued in writing/MODULES.md. Editing a module here updates every article
  that links this file, because there is no build step and the stylesheet is shared.

  Brand rules that apply to everything here (see our-brand SKILL §5-§8):
  - Data viz palette: Lagoon primary, Poppy + Lake as accents, Daffodil sparingly.
  - Body in Mulish, display/labels in Big Shoulders Display (Hanley substitute).
  - Reduced motion is always honored: no movement, final state shown immediately.

  Load order in an article: bootstrap.min.css -> custom.css -> modules.css.
*/

/* ============================================================
   Chart module (charts.js)
   <figure class="se-chart" data-se-chart> + a JSON <script>.
   ============================================================ */
.se-chart {
  margin: 2.25rem 0;
}
.se-chart-title {
  font-family: 'Big Shoulders Display', 'Mulish', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  color: var(--lagoon);
  margin-bottom: 0.85rem;
  line-height: 1.15;
}
.se-chart-surface {
  position: relative;
  width: 100%;
}
.se-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Axes + grid: quiet, editorial. The data carries the color, not the chrome. */
.se-chart-grid {
  stroke: var(--line);
  stroke-width: 1;
  shape-rendering: crispEdges;
}
.se-chart-axis {
  font-family: 'Mulish', system-ui, sans-serif;
  font-size: 12px;
  fill: var(--muted);
}
.se-chart-axis-y { text-anchor: end; }
.se-chart-axis-x { text-anchor: middle; }

/* Marks. Lines echo the 2.5px brand stroke; bars get a hairline tidy radius. */
.se-chart-bar { transition: opacity 0.15s ease; }
.se-chart-bar:hover { opacity: 0.86; }
.se-chart-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.se-chart-area { opacity: 0.12; }
.se-chart-dot {
  stroke: var(--snow);
  stroke-width: 2;
  transition: r 0.12s ease;
}
.se-chart-dot:hover { r: 6; }
.se-chart-bar:focus-visible,
.se-chart-dot:focus-visible {
  outline: 2px solid var(--poppy);
  outline-offset: 2px;
}

/* Hover / focus readout. */
.se-chart-tip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background: var(--lagoon);
  color: #fff;
  font-family: 'Mulish', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(21, 48, 71, 0.18);
}

/* Legend = toggle chips for multi-series charts. */
.se-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 1rem;
}
.se-chart-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem 0.35rem 0.6rem;
  font-family: 'Mulish', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lagoon);
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.se-chart-chip:hover { border-color: var(--lagoon); }
.se-chart-chip.is-off { opacity: 0.45; }
.se-chart-chip.is-off .se-chart-swatch { background: var(--muted) !important; }
.se-chart-chip:focus-visible { outline: 2px solid var(--poppy); outline-offset: 2px; }
.se-chart-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  flex: none;
}

/* Visible data table (no-JS fallback or reduced-data view). */
.se-chart-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Mulish', sans-serif;
  font-size: 0.95rem;
  margin-top: 1rem;
}
.se-chart-table th,
.se-chart-table td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  text-align: right;
}
.se-chart-table th:first-child,
.se-chart-table td:first-child { text-align: left; }
.se-chart-table thead th {
  background: var(--ash);
  font-family: 'Big Shoulders Display', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

/* On a Lagoon surface, flip the chrome to light (charts usually live on light). */
.bg-lagoon .se-chart-title { color: #fff; }
.bg-lagoon .se-chart-axis { fill: rgba(255, 255, 255, 0.7); }
.bg-lagoon .se-chart-grid { stroke: rgba(255, 255, 255, 0.18); }
.bg-lagoon .se-chart-chip { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.bg-lagoon .se-chart-dot { stroke: var(--lagoon); }

@media (prefers-reduced-motion: reduce) {
  .se-chart-bar,
  .se-chart-line,
  .se-chart-dot,
  .se-chart-area { transition: none !important; }
}

/* ============================================================
   Timeline module (CSS only; pairs with .reveal for animate-in)
   <ol class="se-timeline"> <li class="se-timeline-item reveal"> ...
   ============================================================ */
.se-timeline {
  list-style: none;
  margin: 2.25rem 0;
  padding: 0;
  position: relative;
}
/* The spine. */
.se-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.se-timeline-item {
  position: relative;
  padding: 0 0 1.75rem 2.5rem;
}
.se-timeline-item:last-child { padding-bottom: 0; }
/* The node on the spine. */
.se-timeline-item > .se-timeline-marker {
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--snow);
  border: 3px solid var(--poppy);
  box-sizing: border-box;
}
.bg-ash .se-timeline-item > .se-timeline-marker,
.bg-ash-warm .se-timeline-item > .se-timeline-marker { background: var(--ash); }
.se-timeline-date {
  display: inline-block;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  color: var(--poppy);
  margin-bottom: 0.25rem;
}
.se-timeline-title {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  line-height: 1.15;
}
.longform .se-timeline-item p { margin-bottom: 0; }

/* ============================================================
   ASCII art module (ascii.js)
   <figure class="se-ascii"> + <pre class="se-ascii-art"> ; generate with
   scripts/asciify.mjs. The JS scales the glyphs so the art fits any width.
   ============================================================ */
.se-ascii {
  margin: 2.25rem 0;
  text-align: center;
}
.se-ascii-art {
  display: block;
  width: fit-content;             /* shrink to the art so margin auto centers it in the column */
  max-width: 100%;
  margin: 0 auto;
  font-family: var(--op-mono, ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace);
  font-size: 9px;                 /* a sane base; ascii.js overrides to fit the container */
  line-height: 1;
  white-space: pre;
  overflow: hidden;               /* ascii.js fits the art to the column; clip rather than become a scroll container */
  color: var(--lagoon);
  text-align: left;
  -webkit-font-smoothing: none;   /* crisper glyph grid */
}
.se-ascii-caption {
  margin-top: 0.85rem;
  font-family: 'Mulish', sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
}
.se-ascii.poppy .se-ascii-art { color: var(--poppy); }
.se-ascii.lake  .se-ascii-art { color: var(--lake); }
/* Lagoon surface: pair with `asciify --invert` so the art reads light-on-dark. */
.se-ascii.on-lagoon {
  background: var(--lagoon);
  padding: 2rem 1rem;
  border-radius: 6px;
}
.se-ascii.on-lagoon .se-ascii-art { color: var(--snow); }
.se-ascii.on-lagoon .se-ascii-caption { color: rgba(255, 255, 255, 0.7); }

/* ============================================================
   Framework matrix module (matrix.js)
   <figure class="se-matrix" data-se-matrix> + a JSON <script>. A labeled grid;
   each cell reveals its detail on hover, tap, or keyboard focus.
   ============================================================ */
.se-matrix {
  margin: 2.25rem 0;
}
.se-matrix-title {
  font-family: 'Big Shoulders Display', 'Mulish', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  color: var(--lagoon);
  margin-bottom: 0.85rem;
  line-height: 1.15;
}
.se-matrix-wrap {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.se-matrix-ylabel {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: center;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
}
.se-matrix-grid {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.se-matrix-colhead,
.se-matrix-rowhead {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--lagoon);
  display: flex;
  align-items: center;
}
.se-matrix-colhead { justify-content: center; text-align: center; padding: 0.25rem; }
.se-matrix-rowhead { justify-content: flex-end; text-align: right; padding-right: 0.6rem; }
.se-matrix-cell {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-start;
  text-align: left;
  background: var(--ash);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
  min-height: 64px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.se-matrix-cell:hover { border-color: var(--lagoon); }
.se-matrix-cell.is-active {
  border-color: var(--poppy);
  background: var(--snow);
  box-shadow: 0 4px 16px rgba(21, 48, 71, 0.08);
}
.se-matrix-cell:focus-visible { outline: 2px solid var(--poppy); outline-offset: 2px; }
.se-matrix-cell.is-empty { background: transparent; border-style: dashed; cursor: default; }
.se-matrix-cell-title {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  color: var(--lagoon);
}
.se-matrix-cell-tag {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: var(--poppy);
}
.se-matrix-xlabel {
  text-align: center;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.5rem;
  margin-left: 1.5rem;
}
.se-matrix-detail {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  min-height: 4.5rem;
}
.se-matrix-detail-coord {
  display: block;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--poppy);
  margin-bottom: 0.3rem;
}
.se-matrix-detail-title {
  display: block;
  font-family: 'Big Shoulders Display', 'Mulish', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.2rem;
  color: var(--lagoon);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.se-matrix-detail-body {
  font-family: 'Mulish', sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--lagoon);
  margin: 0;
}
@media (max-width: 600px) {
  .se-matrix-cell { padding: 0.5rem 0.55rem; min-height: 52px; }
  .se-matrix-cell-title { font-size: 0.85rem; }
  .se-matrix-colhead, .se-matrix-rowhead { font-size: 0.68rem; letter-spacing: 0.04em; }
}
@media (prefers-reduced-motion: reduce) {
  .se-matrix-cell { transition: none; }
}

/* ============================================================
   Subscribe (mailing list) - posts to a HubSpot form
   ============================================================ */
.se-subscribe {
  max-width: 30rem;
  margin: 0 auto;
  text-align: center;
}
.se-subscribe-eyebrow {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--poppy);
  margin: 0 0 0.4rem;
}
.se-subscribe-title {
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.se-subscribe-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.se-subscribe-input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  color: var(--lagoon);
  background: var(--snow, #fff);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  appearance: none;
}
.se-subscribe-input::placeholder { color: var(--muted); }
.se-subscribe-input:focus-visible {
  outline: none;
  border-color: var(--lagoon);
  box-shadow: 0 0 0 3px rgba(55, 123, 219, 0.25);
}
.se-subscribe-btn {
  flex: 0 0 auto;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #fff;
  background: var(--poppy);
  border: 1.5px solid var(--poppy);
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.se-subscribe-btn:hover { filter: brightness(0.94); }
.se-subscribe-btn:focus-visible { outline: 3px solid var(--lake, #377BDB); outline-offset: 2px; }
.se-subscribe-btn:disabled { opacity: 0.6; cursor: default; }
.se-subscribe-msg {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.2em;
}
.se-subscribe-msg.is-error { color: var(--poppy); }
.se-subscribe.is-done .se-subscribe-row { display: none; }
.se-subscribe.is-done .se-subscribe-msg { font-size: 1.05rem; color: var(--lagoon); }

/* On a dark Lagoon band */
.se-subscribe.on-lagoon .se-subscribe-title { color: #fff; }
.se-subscribe.on-lagoon .se-subscribe-input { background: rgba(255,255,255,0.96); border-color: transparent; }
.se-subscribe.on-lagoon .se-subscribe-msg { color: rgba(255,255,255,0.85); }
.se-subscribe.on-lagoon.is-done .se-subscribe-msg { color: #fff; }

@media (max-width: 540px) {
  .se-subscribe-row { flex-direction: column; }
}

/* ============================================================
   Shared helper
   ============================================================ */
.se-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Inline brand icons in writing modules
   Pairs the v2 icon set (/our-brand/.../icons/v2/<variant>/<name>.svg)
   with the editorial modules. Icons are <img> to the pre-baked color
   variants, sized in em so they track the text they label.
   ============================================================ */
.eyebrow-ico { display: inline-flex; align-items: center; gap: 0.5em; }
.eyebrow-ico img { width: 1.2em; height: 1.2em; flex: none; }
.ico-inline { width: 1.05em; height: 1.05em; vertical-align: -0.16em; flex: none; }

/* ============================================================
   Prompt block with click-to-copy (se-prompt) + connection chips
   A ready-to-paste prompt: a header label + Copy button, the prompt
   body, and a row of required / optional connection chips. Behavior is
   in assets/js/copy.js (delegated [data-copy] -> nearest [data-copy-text]).
   ============================================================ */
.se-prompt {
  border: 1px solid var(--line, #D6D8DC);
  border-radius: 14px;
  padding: 26px;
  background: var(--snow, #fff);
}
.se-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.se-prompt-head .eyebrow { margin-bottom: 0; }
.se-prompt-copy {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.68rem;
  color: var(--lagoon, #153047);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line, #D6D8DC);
  border-radius: 7px; padding: 5px 9px; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.se-prompt-copy img { width: 13px; height: 13px; }
.se-prompt-copy:hover,
.se-prompt-copy.is-copied { background: var(--lagoon, #153047); color: #fff; }
.se-prompt-copy:hover img,
.se-prompt-copy.is-copied img { filter: brightness(0) invert(1); }
.se-prompt-copy:focus-visible { outline: 3px solid var(--lake, #377BDB); outline-offset: 2px; }
.se-prompt-title { margin: 2px 0 4px; }
.se-prompt-pitch { color: var(--muted, #6c757d); margin: 16px 0 10px; }
.se-prompt-body {
  white-space: pre-wrap;
  background: #F2F1EC;
  border-radius: 10px;
  padding: 18px;
  font-size: 0.95rem;
  color: var(--lagoon, #153047);
  line-height: 1.6;
  margin: 0;
}
.se-prompt-conn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--lagoon, #153047);
}
.se-conn { display: inline-flex; align-items: center; gap: 6px; }
.se-conn img { width: 16px; height: 16px; flex: none; }
.se-conn em {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--muted, #8C9298);
}
.se-conn-opt { color: var(--muted, #8C9298); }
.se-conn-opt img { opacity: 0.5; }
.se-prompt-note { color: var(--muted, #8C9298); font-size: 0.8rem; margin-left: auto; }
@media (max-width: 540px) {
  .se-prompt-note { margin-left: 0; }
}

/* ============================================================
   Fakeability spectrum chips with hover / focus detail
   ============================================================ */
.spec-row { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--lagoon, #153047); }
.spec-chip { position: relative; cursor: default; border-bottom: 1px dotted #B7BCC2; }
.spec-chip:focus-visible { outline: 3px solid var(--lake, #377BDB); outline-offset: 3px; }
.spec-chip::after {
  content: attr(data-detail);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 220px;
  background: var(--lagoon, #153047);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}
.spec-chip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--lagoon, #153047);
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 5;
}
.spec-chip:hover::after, .spec-chip:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.spec-chip:hover::before, .spec-chip:focus::before { opacity: 1; }

/* ============================================================
   Subscribe subtitle (one line under the title)
   ============================================================ */
.se-subscribe-sub {
  margin: -0.5rem 0 1rem;
  font-size: 0.9rem;
  color: var(--muted, #6c757d);
}
.se-subscribe.on-lagoon .se-subscribe-sub { color: rgba(255, 255, 255, 0.78); }

/* ============================================================
   Comparison table (se-compare) - two columns, labeled rows
   ============================================================ */
.se-compare-wrap { overflow-x: auto; margin: 18px 0 4px; }
.se-compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.se-compare th, .se-compare td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line, #D6D8DC);
}
.se-compare thead th {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.se-compare thead .se-compare-neg { color: var(--muted, #8C9298); }
.se-compare thead .se-compare-pos { color: var(--poppy, #DB4937); }
.se-compare thead th img { width: 1.05em; height: 1.05em; vertical-align: -0.16em; margin-right: 0.35em; }
.se-compare tbody th[scope="row"] {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--poppy, #DB4937);
  white-space: nowrap;
  width: 1%;
}
.se-compare td:nth-child(2) { color: var(--muted, #6c757d); }
.se-compare td:nth-child(3) { color: var(--lagoon, #153047); }
.se-compare th:last-child, .se-compare td:last-child { background: rgba(219, 73, 55, 0.04); }
.se-compare tbody tr:last-child th, .se-compare tbody tr:last-child td { border-bottom: 0; }
.se-tbl-arrow { width: 1.05em; height: 1.05em; vertical-align: -0.18em; margin-right: 0.35em; }

/* ============================================================
   Fakeability spectrum (se-spectrum) - even grid + per-format icons
   ============================================================ */
.se-spectrum { border: 1px solid var(--line, #D6D8DC); border-radius: 14px; padding: 24px; background: var(--snow, #fff); margin-top: 14px; }
.se-spectrum-ends { display: flex; justify-content: space-between; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.se-spectrum-end { display: inline-flex; align-items: center; gap: 0.4em; }
.se-spectrum-end img { width: 1.05em; height: 1.05em; }
.se-spectrum-end.neg { color: var(--muted, #8C9298); }
.se-spectrum-end.neg img { opacity: 0.5; }
.se-spectrum-end.pos { color: var(--poppy, #DB4937); }
.se-spectrum-bar { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #D6D8DC, #DB4937); margin: 12px 0 18px; }
.se-spectrum-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 12px; }
@media (max-width: 640px) { .se-spectrum-grid { grid-template-columns: repeat(2, 1fr); } }
.spec-chip { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.9rem; color: var(--lagoon, #153047); border-bottom: 0; }
.spec-chip-ico { width: 1.05em; height: 1.05em; flex: none; }

/* ============================================================
   Prompt module extras - collapsible body + voice-profile link
   ============================================================ */
.se-prompt-details { margin-top: 4px; }
.se-prompt-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  cursor: pointer;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--lagoon, #153047);
  list-style: none;
  padding: 6px 0;
}
.se-prompt-summary::-webkit-details-marker { display: none; }
.se-prompt-summary::before { content: "+ "; color: var(--poppy, #DB4937); font-weight: 800; }
.se-prompt-details[open] .se-prompt-summary::before { content: "\2212  "; }
.se-prompt-details .se-prompt-body { margin-top: 10px; }
.se-prompt-cta-lead { margin: 18px 0 8px; font-size: 0.9rem; color: var(--muted, #6c757d); }
.se-prompt-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem;
  color: var(--lake, #377BDB); background: #fff;
  border: 1.5px solid var(--lake, #377BDB);
  border-radius: 8px; padding: 9px 16px; text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.se-prompt-link:hover { background: var(--lake, #377BDB); color: #fff; }

/* Requirement lozenges */
.se-prompt-reqs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.se-lozenge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line, #D6D8DC); background: #fff;
  font-size: 0.82rem; color: var(--lagoon, #153047);
}
.se-lozenge img { width: 15px; height: 15px; flex: none; }
.se-lozenge em { font-style: normal; text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.64rem; color: var(--muted, #8C9298); }
.se-lozenge.opt { border-style: dashed; }

/* ============================================================
   Quadrant plot (se-quadrant) - two axes, points placed by left/bottom %
   ============================================================ */
.se-quadrant { margin: 18px 0 4px; }
.se-quadrant-grid { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 8px 10px; }
.se-quadrant-ylab {
  grid-column: 1; grid-row: 1;
  writing-mode: vertical-rl; transform: rotate(180deg);
  align-self: center; justify-self: center;
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  color: var(--lagoon, #153047);
}
.se-quadrant-plot {
  grid-column: 2; grid-row: 1;
  position: relative; aspect-ratio: 1.3; min-height: 480px;
  border-left: 2px solid var(--lagoon, #153047);
  border-bottom: 2px solid var(--lagoon, #153047);
  background: linear-gradient(to top right, rgba(140, 146, 152, 0.13), rgba(255, 255, 255, 0) 50%, rgba(219, 73, 55, 0.13));
}
.se-quadrant-plot::before, .se-quadrant-plot::after { content: ""; position: absolute; background: rgba(21, 48, 71, 0.09); }
.se-quadrant-plot::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.se-quadrant-plot::after { bottom: 50%; left: 0; right: 0; height: 1px; }
.se-q-point { position: absolute; width: 22px; height: 22px; transform: translate(-50%, 50%); }
.se-q-ico { width: 22px; height: 22px; display: block; filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95)); }
.se-q-label { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 0.92rem; line-height: 1; color: var(--lagoon, #153047); }
.se-q-label.right { left: 28px; }
.se-q-label.left { right: 28px; }
.se-quadrant-xlab {
  grid-column: 2; grid-row: 2;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  color: var(--lagoon, #153047);
}
.se-q-axis-end { color: var(--muted, #8C9298); font-weight: 600; letter-spacing: 0.08em; }
@media (max-width: 640px) {
  .se-quadrant-plot { aspect-ratio: 3 / 4; min-height: 560px; }
  .se-q-label { font-size: 0.78rem; }
}
/* Point hover/focus detail */
.se-q-point[data-detail] { cursor: default; }
.se-q-point::after {
  content: attr(data-detail);
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: max-content; max-width: 200px;
  background: var(--lagoon, #153047); color: #fff;
  font-size: 0.76rem; line-height: 1.35; text-align: left;
  padding: 9px 11px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 6;
}
.se-q-point:hover::after, .se-q-point:focus::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.se-q-point:hover, .se-q-point:focus-visible { z-index: 6; }
.se-q-point:focus-visible .se-q-ico { outline: 3px solid var(--lake, #377BDB); outline-offset: 3px; }
/* Value-trend arrows */
.se-q-value { position: absolute; display: inline-flex; align-items: center; gap: 5px; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; z-index: 1; }
.se-q-value svg { width: 15px; height: 15px; }
.se-q-value-up { color: #1F9E5A; }
.se-q-value-down { color: #C0392B; }

/* ============================================================
   Brand watermark - a subtle, non-interactive Splendid mark for any
   data graphic (chart / matrix / plot). Drop <img class="se-watermark"
   src="/assets/img/watermark-splendid.svg" alt="" aria-hidden="true">
   into a position:relative graphic; it tucks into the lower-right and
   sits behind the data.
   ============================================================ */
.se-watermark {
  position: absolute; right: 14px; bottom: 12px;
  width: 74px; max-width: 22%; height: auto;
  opacity: 0.08; pointer-events: none; user-select: none; z-index: 0;
}

/* ============================================================
   Prompt peek window - truncated preview + expand toggle
   ============================================================ */
.se-prompt-window { position: relative; max-height: 13em; overflow: hidden; border-radius: 10px; margin-top: 4px; }
.se-prompt-window::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.5em;
  background: linear-gradient(rgba(242, 241, 236, 0), rgba(242, 241, 236, 1));
  pointer-events: none;
}
.se-prompt-window.is-open { max-height: none; }
.se-prompt-window.is-open::after { display: none; }
.se-prompt-window .se-prompt-body { margin: 0; }
.se-prompt-expand {
  margin-top: 10px;
  display: block;
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem;
  color: var(--lagoon, #153047); background: none; border: 0; padding: 0; cursor: pointer;
}
.se-prompt-expand::before { content: "+ "; color: var(--poppy, #DB4937); font-weight: 800; }
.se-prompt-expand.is-open::before { content: "\2212  "; }
.se-prompt-expand:focus-visible { outline: 3px solid var(--lake, #377BDB); outline-offset: 2px; }
