/* ==========================================================================
   Wodonga Wire — Understand Council family layer (D-078)
   Loads alongside foundation.css and uses only its tokens. The page is
   seven questions down a spine. The one signature element is the step
   chain: a rail of terms joined by hairlines, in the display face, that
   collapses to a vertical spine below 640px. Evidence entries carry an
   aligned mono class stamp. No keyframes; the motion floor is the shell's.
   ========================================================================== */

/* ── opening ──────────────────────────────────────────────────────────── */
.un-lede { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.25; letter-spacing: -0.015em; color: var(--fg); text-wrap: balance; }

/* ── the seven questions ─────────────────────────────────────────────── */
.un-topics { border-top: 1px solid var(--border-soft); }
.un-topic { border-bottom: 1px solid var(--border-soft); }
.un-summary {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: var(--space-4);
  align-items: baseline; padding-block: clamp(20px, 2.4vw, 30px); cursor: pointer;
  list-style: none; color: var(--fg);
}
.un-summary::-webkit-details-marker { display: none; }
.un-summary::marker { content: ""; }
.un-q-n { grid-row: 1 / span 2; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--muted); padding-top: 0.55em; }
.un-q { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15; letter-spacing: -0.02em; }
.un-q::after { content: " +"; color: var(--accent); font-weight: 400; }
.un-topic[open] .un-q::after { content: " \2013"; }
.un-promise { display: block; margin-top: var(--space-2); max-width: var(--measure); color: var(--muted);
  font-size: 15px; line-height: 1.5; }
.un-summary:hover .un-q { color: var(--fg-2); }
.un-summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.un-body { padding: 0 0 clamp(28px, 3vw, 40px) 0; }
@media (min-width: 900px) { .un-body { padding-left: calc(2.4rem + var(--space-4)); } }

/* ── the chain (the signature) ──────────────────────────────────────── */
.un-figure { margin: 0 0 var(--space-6); }
.un-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) 0;
  counter-reset: step; }
.un-step { position: relative; font-family: var(--font-display); font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.3; color: var(--fg); padding: var(--space-2) var(--space-4) var(--space-2) 0;
  margin-right: var(--space-4); }
.un-step::after { content: ""; position: absolute; right: -2px; top: 50%; width: var(--space-4);
  height: 1px; background: var(--border-soft); transform: translateY(-50%); }
.un-step::before { content: ""; position: absolute; right: -4px; top: 50%; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent); transform: translate(50%, -50%); }
.un-step:last-child { margin-right: 0; padding-right: 0; }
.un-step:last-child::after, .un-step:last-child::before { display: none; }
.un-figcap { margin-top: var(--space-3); color: var(--muted); font-size: 14px; max-width: var(--measure); }
@media (max-width: 640px) {
  .un-chain { flex-direction: column; gap: 0; border-left: 2px solid var(--border-soft); padding-left: var(--space-5); }
  .un-step { padding: var(--space-2) 0; margin: 0; }
  .un-step::after { display: none; }
  .un-step::before { right: auto; left: calc(-1 * var(--space-5) - 1px); top: 50%; width: 7px; height: 7px;
    transform: translate(-50%, -50%); }
}

/* ── roles, ladder, glossary ────────────────────────────────────────── */
.un-roles, .un-ladder, .un-glossary { margin: 0 0 var(--space-6); border-top: 1px solid var(--border-soft); }
.un-role, .un-rung, .un-gl { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  gap: var(--space-2) var(--space-6); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-soft); }
.un-role dt, .un-rung dt, .un-gl dt { margin: 0; font-family: var(--font-display); font-size: 17px; color: var(--fg); }
.un-role dd, .un-rung dd, .un-gl dd { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.55; max-width: var(--measure); }
.un-role-law { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); margin-top: 2px; }
.un-rung dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg); padding-top: 3px; }
@media (max-width: 640px) { .un-role, .un-rung, .un-gl { grid-template-columns: 1fr; gap: var(--space-1); } }

/* ── prose ───────────────────────────────────────────────────────────── */
.un-p { margin: 0 0 var(--space-4); max-width: var(--measure); line-height: 1.6; color: var(--fg-2); }
.un-example { margin: var(--space-6) 0; padding: var(--space-4) var(--space-5); border-left: 3px solid var(--accent);
  background: var(--surface); max-width: calc(var(--measure) + var(--space-5) * 2); }
.un-example .wf-kicker { margin-bottom: var(--space-2); }
.un-example .un-p { margin-bottom: var(--space-3); }
.un-links { margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.un-link { font-size: 15px; white-space: nowrap; }
.un-nuance { margin: 0 0 var(--space-5); max-width: var(--measure); line-height: 1.6; color: var(--fg); }
.un-nuance-l { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-right: var(--space-2); }
.un-deeper { margin: 0 0 var(--space-6); max-width: var(--measure); }
.un-deeper > summary { cursor: pointer; font-size: 15px; color: var(--fg-2); padding-block: var(--space-2); }
.un-deeper > summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.un-deeper[open] > summary { color: var(--fg); }
.un-deeper .un-p { font-size: 15px; }

/* ── evidence: the aligned class stamp ──────────────────────────────── */
.un-evidence { margin-top: var(--space-6); border-top: 1px solid var(--border-soft); padding-top: var(--space-4); }
.un-ev-list { list-style: none; margin: 0; padding: 0; }
.un-ev { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: var(--space-1) var(--space-5);
  padding: var(--space-3) 0; border-bottom: 1px solid var(--border-soft); }
.un-ev-cls { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg); padding-top: 3px; }
/* The class is carried by the text; the rule beneath only groups the column. */
.un-ev-cls--wire { color: var(--muted); }
.un-ev-body { display: block; min-width: 0; }
.un-ev-body > a { font-size: 15px; }
.un-ev-note { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); max-width: var(--measure); }
.un-ev-checked { color: var(--meta); }
.un-ext { font-size: 0.85em; }
@media (max-width: 640px) { .un-ev { grid-template-columns: 1fr; gap: 2px; } }

.un-topic-link { margin: var(--space-5) 0 0; font-size: 13px; }
.un-topic-link a { color: var(--muted); }

/* Anchor targets clear the sticky masthead through the shell's scroll-padding-top. */

@media (prefers-reduced-motion: reduce) { .un-summary .un-q { transition: none; } }
@media (forced-colors: active) {
  .un-step::before { background: CanvasText; }
  .un-example { border-left-color: CanvasText; }
}
