/* ===========================================================================
   BLAST SHIELD — SHIELD-RED SIGNAL LAYER
   Added 2026-10-23 (owner direction: add #C0392B as a secondary signal
   alongside amber; keep the amber-on-black identity).

   This file defines ONLY the component variants that carry the red signal.
   The colour itself lives as tokens in theme.css (:root) — change --bs-red
   there to re-tint everything here. Nothing in qf-core.css is modified.

   Discipline (same as the amber): red is an EDGE / FILL / MARK / ALERT, used
   for critical-infra and C-class signals — not a body-text colour on its own.
   Every red surface below pairs a ground with a contrast-checked foreground.
   =========================================================================== */

/* ---- A. red alert callout — the critical variant of .note ---------------- */
/* Used for distribution / C-class / "do-not-publish" flags. Red left edge +
   pale-red ground; its own legible foreground (9.3:1). */
.note.alert,
.qf-note.alert {
  border-left: 4px solid var(--bs-red);
  background-color: var(--bs-red-pale);
  --qf-fg-muted: var(--bs-red-on-pale);
  --qf-fg:       var(--bs-red-on-pale);
  color: var(--bs-red-on-pale);
}
.note.alert h3,
.qf-note.alert h3 { color: var(--bs-red-on-pale); }

/* ---- B. red card top-edge — mirrors .card.accent-amber ------------------- */
.card.accent-red,
.qf-card.accent-red { border-top: var(--qf-border-accent) solid var(--bs-red); }

/* ---- C. critical chip — red-bordered, for C-class / restricted markers --- */
.chip.chip-critical,
.grade.g-critical {
  background-color: var(--bs-red-chip-bg);
  color: var(--bs-red-chip-fg);
  border: 1px solid var(--bs-red);
}

/* ---- D. the classification / handling banner, retuned to shield red ------ */
/* Opt-in modifier so only pages that need it (publications) carry it. The
   dark-red ground + light text measures 10.5:1; the shield-red hairline on
   top is the signal edge. */
.handling.shield,
.qf-handling.shield {
  --qf-handling-bg:   var(--bs-red-ground);
  --qf-handling-fg:   var(--bs-red-on-ground);
  --qf-handling-line: var(--bs-red);
  --qf-handling-key:  #ffd0ca;
  border-top: 3px solid var(--bs-red);
}

/* ---- E. a red keyline — a signal rule under a heading / above a band ----- */
.red-rule {
  border: 0;
  border-top: 3px solid var(--bs-red);
  width: 56px;
  margin: 0 0 18px;
}
/* On a dark band the same rule, slightly brighter edge for presence. */
.band-ink .red-rule,
.hero .red-rule,
.cta-band .red-rule { border-top-color: var(--bs-red); }

/* ---- F. red as legible text, on demand ----------------------------------- */
.t-red   { color: var(--bs-red-text); }            /* on light grounds   */
.on-dark .t-red,
.band-ink .t-red,
.hero .t-red { color: var(--bs-red-on-dark); }     /* on his black       */

/* ---- G. a slim red status tag (e.g. "RELEASE PENDING") ------------------- */
.tag-pending {
  display: inline-block;
  font-family: var(--qf-mono, ui-monospace, monospace);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  background-color: var(--bs-red-ground);
  color: var(--bs-red-on-ground);
  border: 1px solid var(--bs-red);
  vertical-align: middle;
}

/* ---- G2. source / provenance note — small, muted, inherits surface fg ---- */
.note-src {
  font-size: .82rem;
  line-height: 1.5;
  color: var(--qf-fg-muted);
  margin: 10px 0 0;
}

/* ---- H. nav fit — two pages were added to the bar; tighten a hair so the
   10-item desktop nav does not crowd the brand at 1440. Tokens only. ------- */
@media (min-width: 901px) {
  .nav-links { --qf-nav-link-pad: 8px 8px; }
  .nav-links a { font-size: .87rem; }
}

/* ===========================================================================
   SHIELD-RED — STRUCTURAL SIGNAL (owner, 2026-10-23: "pull the red in, make it
   visible"). Everything below is an EDGE / FRAME / KEYLINE, ADDED ALONGSIDE the
   amber identity, never replacing it. The gold bottom edge of the masthead and
   the gold card hairline stay exactly where they were; red is the second signal
   on top. Every red surface here is a graphic edge (>=3px), not text, so the
   3.54:1 of #C0392B on his near-black is used only where WCAG asks 3:1 of a
   non-text element, never for a letter.
   =========================================================================== */

/* ---- I. masthead red top-edge — the first thing red does on every page --- */
/* Header ends in its gold rule; the hero / interior masthead opens with a red
   one directly below it. Two-tone edge: gold identity, red signal. */
.hero, .qf-hero,
.page-head, .qf-page-head { border-top: 3px solid var(--bs-red); }

/* ---- J. CTA band red frame — the contact call wears the alert edge ------- */
.cta-band, .qf-cta-band {
  border-top: 3px solid var(--bs-red);
  border-bottom: 3px solid var(--bs-red);
}

/* ---- K. card left-rule red variant — red in the body, not just the frame - */
/* Keeps the gold top hairline (inherited) AND adds a red left rule. */
.card.accent-red-left,
.qf-card.accent-red-left { border-left: 4px solid var(--bs-red); }

/* ---- L. a red section keyline that reads on BOTH grounds ----------------- */
/* The .red-rule element already exists; give it more presence where it marks a
   section head, and make sure it is bright enough on the dark masthead. */
.page-head .red-rule,
.hero .red-rule { border-top-width: 4px; width: 64px; margin-bottom: 14px; }

/* ---- M. contact form box red accent — the form IS the CTA on contact ----- */
.formbox.accent-red,
.qf-formbox.accent-red { border-top: 3px solid var(--bs-red); }

/* ---- N. GLOBAL FOOTER ATTRIBUTION (owner 2026-10-23) --------------------- */
/* The small attribution/disclaimer line carried in every page footer. Themed
   amber on his near-black (never blue): links use the light-gold footer token
   (#e4c46a, 11.2:1 on #101012) and carry no underline. Middot separators; the
   product marks take a superscript TM. It sits below the footer-bottom rule as
   a subtle, on-brand line, not a second navigation row. */
.footer-attrib {
  margin-top: 16px;
  font-size: .76rem;
  line-height: 1.75;
  color: var(--qf-muted-dark);
}
.footer-attrib p { margin: 0; max-width: none; }
.footer-attrib a {
  display: inline;
  color: var(--qf-link-dark);
  text-decoration: none;
}
.footer-attrib a:hover,
.footer-attrib a:focus { color: var(--qf-link-dark-hover); text-decoration: none; }
.footer-attrib sup { font-size: .68em; line-height: 0; }
.footer-attrib .copyright { margin-top: 7px; color: var(--qf-fg-muted); }
