/* Noiz — components/bundle.css
   A static rendition of the live component stylesheet, ported 2026-09-22 from the Hugo
   theme at Websites/noiz.ie/dev.noiz.ie/themes/noiz/assets/css/components.css (dev.noiz.ie)
   to the noiz-brand token names in tokens.json. No JavaScript bundle: previews are plain
   markup styled by this file. Values that the theme keeps in its own tokens.css but that
   do not exist in tokens/tokens.json v0.4.0 are declared here and listed under
   "Not synced" in README.md. */

:root {
  --container-pad: var(--space-sm);                 /* small viewports; space-gutter from 992px */
  --elevation-1: 0 1px 3px rgba(0, 0, 0, 0.4);      /* theme-only: not in tokens.json v0.4.0 */
  --elevation-2: 0 4px 16px rgba(0, 0, 0, 0.5);     /* theme-only: not in tokens.json v0.4.0 */
  --motion-pulse: pulse 2s infinite;
  --motion-reveal: fadeInUp var(--duration-slow) var(--easing-standard) both;
  /* atmosphere.grain = global: film grain (noiz = noise), decorative, never blocks */
  --texture-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --texture-noise-opacity: 0.03;
  /* atmosphere.scanline = global: CRT scanline, subtle enough to read as texture only in dark areas */
  --texture-scanline: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.5) 2px 3px);
  --texture-scanline-opacity: 0.06;
  /* atmosphere.grid = hero-only: the terminal grid dissolves toward the edges through this mask */
  --atmos-grid-mask: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 0, 0, 1) 35%, transparent 75%);
  /* Hero and CTA glows follow the accent. The live theme still glows green here; amber has
     been the accent since v0.4.0, so both radials now sit on the amber ramp (atmosphere.glow = cta-only). */
  --atmos-glow: radial-gradient(ellipse 70% 55% at 50% 12%, color-mix(in srgb, var(--color-semantic-accent-primary) 15%, transparent), transparent 70%);  /* sized so it reaches transparent inside its own box: no seam */
  --cta-glow: radial-gradient(720px 360px at 32% 0%, var(--color-amber-medium), transparent 60%);   /* one amber radial; the blue pair went with the pillar colours */
}
@media (min-width: 992px) { :root { --container-pad: var(--space-gutter); } }

/* Pillar scope: set on a section or component and every divisional accent follows.
   Three pillars since v0.4.0; the theme's .div-support scope is retired. */
/* Pillars are named, not coloured (ruled 2026-09-22): every scope resolves to the one accent.
   The classes stay so templates that set them keep working; --division-accent is amber everywhere. */
.div-infrastructure, .div-security, .div-services { --division-accent: var(--color-semantic-accent-primary); }

/* ==========================================================================
   Noiz Design System — Part B: Components
   --------------------------------------------------------------------------
   A CLOSED set. Nothing renders that is not an instance defined here.
   Composed from Part A tokens (tokens.css), with no inline styles in markup.
   Every value that names a brand decision resolves to a Part A token: colour,
   border width, focus measure, radius, space, duration, easing. Three things
   are still literal, and each has a reason:
     - the elevation pair declared in the prelude above (--elevation-1 and
       --elevation-2), until tokens.json carries an elevation step;
     - the atmosphere recipes in the prelude (grain, scanline, grid mask and
       the two glows), whose stops are opacity and geometry rather than brand
       values: the scanline and the mask are black at an alpha, not a ground;
     - component geometry that no token describes: the 44px and 48px touch
       floors, the .nz-table and .email-matrix min-widths, the prompt cursor
       width, the hero reticle offsets and the mobile nav ceiling.
   Four rgba() stops follow from the first two, two in the elevation pair and
   two in the atmosphere recipes. They are the only colour literals in the
   file, and npm run validate reports those four under [d] and nothing else.
   The print pair moved into tokens.json as color.print.* on 2026-09-22 and is
   no longer declared here.

   THIS FILE CURRENTLY CONTAINS THE BASE/FOUNDATION LAYER ONLY.
   Atoms → Molecules → Organisms are built in the next stage (atomic order).
   ========================================================================== */

/* --- Base: reset --------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  /* Clear the ~86px sticky header when scrolling focused elements or :target
     anchors into view (WCAG 2.4.11 Focus Not Obscured). */
  scroll-padding-top: 6.5rem;
}

body {
  background-color: var(--color-semantic-bg-primary);
  color: var(--color-semantic-text-secondary);
  font-family: var(--font-family-display);
  font-size: var(--font-scale-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--font-line-height-body);
  min-height: 100vh;
  font-synthesis: var(--font-emphasis-synthesis);   /* 14d: the display face has no italic to synthesise */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Media defaults */
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }

/* Forms inherit type */
input, button, textarea, select { font: inherit; color: inherit; }

/* --- Base: headings & links (atoms refine these in the next stage) ------- */
/* Per-level sizes from the type-scale tokens so Markdown-rendered prose
   (legal pages, journal posts) lands on the same scale as the .t-* utilities;
   the utility classes still override where templates set them. */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-semantic-text-primary);
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-bold);
  text-wrap: balance;
}
h1 { font-size: var(--font-scale-h1); line-height: var(--font-line-height-h1); }
h2 { font-size: var(--font-scale-h2); line-height: var(--font-line-height-h2); }
h3 { font-size: var(--font-scale-h3); line-height: var(--font-line-height-h3); }
h4, h5, h6 { font-size: var(--font-scale-h4); line-height: var(--font-line-height-h4); }

a {
  color: var(--color-semantic-accent-primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* --- Base: emphasis ------------------------------------------------------ */
/* 14d: Space Grotesk ships no italic, so an <em> set in the display face was a
   browser-synthesised shear. Emphasis is JetBrains Mono italic at the size of the
   text around it (settled decision, HANDOFF.md section 4 item 5). The three
   font-emphasis-* tokens carry it, exactly as guide/02-voice-and-tone.md writes
   the rule; font-emphasis-synthesis sits on the body, which is where the display
   face is set, so nothing below it can fake an italic or a bold. */
em, cite {
  font-family: var(--font-emphasis-family);
  font-style: var(--font-emphasis-style);
  font-size: 1em;                /* the surrounding size: emphasis is a face change, not a step */
}

/* --- Base: layout container --------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--size-container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* --- Base: accessibility floor ------------------------------------------ */
/* Visible focus on every interactive atom. The outline follows each element's
   own box — do NOT set border-radius here (it would distort pills/tags/etc.). */
:focus-visible {
  outline: var(--focus-width) solid var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Visually-hidden but available to assistive tech. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link target convenience — small extra breathing room on top of the
   html scroll-padding-top that already clears the sticky header. */
:target { scroll-margin-top: var(--space-sm); }

/* --- Base: motion keyframes (consumed via --motion-* tokens) ------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* Honour reduced-motion globally: content must be fully present without motion. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   B.1 ATOMS
   ========================================================================== */

/* --- atom-type — type primitives ----------------------------------------- */
.t-display {
  font-family: var(--font-family-display);
  font-size: var(--font-scale-display);
  line-height: var(--font-line-height-display);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--font-tracking-tight);
  color: var(--color-semantic-text-primary);
  overflow-wrap: break-word;   /* long words (e.g. "Infrastructure") reflow, not clip, at ~360px */
}
.t-h1 { font-family: var(--font-family-display); font-size: var(--font-scale-h1); line-height: var(--font-line-height-h1); font-weight: var(--font-weight-bold); color: var(--color-semantic-text-primary); }
.t-h2 { font-family: var(--font-family-display); font-size: var(--font-scale-h2); line-height: var(--font-line-height-h2); font-weight: var(--font-weight-bold); color: var(--color-semantic-text-primary); }
.t-h3 { font-family: var(--font-family-display); font-size: var(--font-scale-h3); line-height: var(--font-line-height-h3); font-weight: var(--font-weight-semibold); color: var(--color-semantic-text-primary); }
.t-h4 { font-family: var(--font-family-display); font-size: var(--font-scale-h4); line-height: var(--font-line-height-h4); font-weight: var(--font-weight-semibold); color: var(--color-semantic-text-primary); }
.t-lead { font-size: var(--font-scale-lead); line-height: var(--font-line-height-lead); color: var(--color-semantic-text-secondary); }
.t-body { font-size: var(--font-scale-base); line-height: var(--font-line-height-body); color: var(--color-semantic-text-secondary); }
.t-caption { font-size: var(--font-scale-sm); line-height: 1.5; color: var(--color-semantic-text-muted); }
.t-label {
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-label);
  line-height: var(--font-line-height-label);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--font-tracking-label);
  color: var(--color-semantic-text-muted);
}

/* .t-gradient and .divider--gradient were removed 2026-09-22 with the green-to-blue gradient: one identity colour. */

/* --- atom-icon ----------------------------------------------------------- */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  flex-shrink: 0;
}
.icon--md { width: 1.5rem; height: 1.5rem; }
.icon--lg { width: 2rem;   height: 2rem; }

/* --- atom-button --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 44px;                 /* touch target */
  padding: var(--space-2xs) var(--space-md);
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: var(--border-width-hairline) solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-semantic-text-secondary);
  -webkit-text-fill-color: currentColor;   /* guard against inherited gradient text-fill blanking labels */
  transition: background-color var(--duration-fast) var(--easing-standard),
              border-color var(--duration-fast) var(--easing-standard),
              color var(--duration-fast) var(--easing-standard),
              box-shadow var(--duration-base) var(--easing-standard);
}
.btn:hover { text-decoration: none; }
.btn:focus-visible {
  outline: var(--focus-width) solid transparent;   /* keeps a ring in forced-colors / high-contrast mode */
  outline-offset: var(--focus-offset);
  box-shadow: var(--shadow-focus-ring);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--primary {
  background: var(--color-semantic-accent-primary);
  color: var(--color-semantic-text-on-accent);
}
.btn--primary:hover {
  background: var(--color-semantic-accent-hover);
  box-shadow: var(--shadow-ring-amber), var(--shadow-glow-amber);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-semantic-border-strong);
  color: var(--color-semantic-text-secondary);
}
.btn--ghost:hover {
  border-color: var(--color-semantic-accent-primary);
  color: var(--color-semantic-accent-primary);
}

.btn--link {
  min-height: auto;
  padding-inline: 0;
  color: var(--color-semantic-accent-primary);
  border: 0;
}
.btn--link:hover { text-decoration: underline; }

/* full-width page CTA below the small breakpoint */
@media (max-width: 479px) {
  .btn--full-sm { width: 100%; }
}

/* --- atom-link ----------------------------------------------------------- */
.link {
  color: var(--color-semantic-accent-primary);
  text-decoration: none;
}
.link:hover { text-decoration: underline; }

/* mono link with a growing underline (nav use) */
.link--underline {
  position: relative;
  font-family: var(--font-family-mono);
  color: var(--color-semantic-text-secondary);
  text-decoration: none;
}
.link--underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25em;
  width: 100%;
  height: var(--border-width-hairline);
  background: var(--division-accent, var(--color-semantic-accent-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--easing-standard);
}
.link--underline:hover,
.link--underline:focus-visible { color: var(--color-semantic-accent-primary); text-decoration: none; }
.link--underline:hover::after,
.link--underline:focus-visible::after { transform: scaleX(1); }

/* --- atom-tag ------------------------------------------------------------ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  padding: var(--space-3xs) var(--space-2xs);
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-sm);
  color: var(--color-semantic-text-muted);
  background: var(--color-semantic-bg-raised);
  border: var(--border-width-hairline) solid var(--color-semantic-border-base);
  border-radius: var(--radius-sm);
}
.tag--accent {
  color: var(--color-semantic-accent-primary);
  background: var(--color-amber-medium);
  border-color: transparent;
}

/* --- atom-divider -------------------------------------------------------- */
.divider {
  height: var(--border-width-hairline);
  border: 0;
  background: var(--color-semantic-border-base);
}

/* --- atom-input / checkbox-radio ----------------------------------------- */
.input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: var(--space-2xs) var(--space-sm);
  font-family: var(--font-family-display);
  font-size: var(--font-scale-base);
  color: var(--color-semantic-text-secondary);
  background: var(--color-semantic-bg-raised);
  border: var(--border-width-hairline) solid var(--color-semantic-border-input); /* ≥3:1 boundary (1.4.11) */
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast) var(--easing-standard),
              box-shadow var(--duration-base) var(--easing-standard);
}
/* Keep a persistent visible .field__label; a placeholder is only an example. */
.input::placeholder { color: var(--color-semantic-text-muted); }
.input:focus-visible {
  outline: var(--focus-width) solid transparent;   /* keeps a ring in forced-colors / high-contrast mode */
  outline-offset: var(--focus-offset);
  border-color: var(--color-semantic-border-strong);
  box-shadow: var(--shadow-focus-ring);
}
/* Explicit validation states, set by the consumer after a check. Keep the
   status border when focused; the separate amber focus ring still applies. */
.input.input--valid { border-color: var(--color-semantic-status-success); }
.input.input--error,
.input[aria-invalid="true"] { border-color: var(--color-semantic-status-error); }
.input[readonly] { background: var(--color-semantic-bg-secondary); }
.input:disabled {
  color: var(--color-semantic-text-faint);
  background: var(--color-semantic-bg-secondary);
  border-color: var(--color-semantic-border-base);
  cursor: not-allowed;
  opacity: 1;                     /* use token colours, not a browser opacity wash */
}
.input:disabled::placeholder { color: var(--color-semantic-text-faint); }

/* Native controls share the field shell. Keep the platform select arrow and
   popup; no custom combobox or simulated read-only select. */
.input--select { appearance: auto; cursor: pointer; }
.input--textarea {
  display: block;
  min-height: calc(var(--space-xl) * 2);
  resize: vertical;
}
.input--textarea:disabled { resize: none; }

/* 14a: WCAG 2.2 SC 2.5.8 (target size, minimum) sets a 24px floor and the box was
   20px. The border box itself is grown to 1.5rem rather than padded out behind a
   transparent ring: padding on a native appearance:auto control is not honoured
   consistently across engines, and an outline takes no pointer events at all, so
   the border box is the only thing that is reliably a hit target. */
.control {
  width: 1.5rem;
  height: 1.5rem;
  accent-color: var(--color-semantic-accent-primary);
}

/* --- atom-logo — canonical Noiz wordmark -------------------------------- */
.logo {
  display: inline-block;
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-h4);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: var(--color-semantic-text-primary);
  text-decoration: none;
  letter-spacing: 0;
}
.logo:hover { text-decoration: none; }
/* the mark, not the ink ramp: the wordmark binds color-mark-light like every
   other Noiz mark and reticle, so it never rides the semantic text ramp
   (2026-09-22). */
.logo__mark { display: block; height: 3.3rem; width: auto; color: var(--color-mark-light); }

/* --- atom-badge-status — inline status dot + label ----------------------- */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-sm);
  color: var(--color-semantic-text-muted);
}
.badge-status__dot {
  width: 0.5em;
  height: 0.5em;
  border-radius: var(--radius-pill);
  background: currentColor;
  flex-shrink: 0;
}
.badge-status--success { color: var(--color-semantic-status-success); }
.badge-status--warning { color: var(--color-semantic-status-warning); }
.badge-status--error   { color: var(--color-semantic-status-error); }
.badge-status--info    { color: var(--color-semantic-status-info); }
.badge-status--live .badge-status__dot { animation: var(--motion-pulse); }

/* ==========================================================================
   B.2 MOLECULES
   Compatibility scopes resolve to the sole semantic accent. They do not
   authorise pillar colours; new components consume semantic.accent.primary.
   ========================================================================== */

/* --- icon-tile (shared sub-element) -------------------------------------- */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--color-semantic-bg-raised);
  border: var(--border-width-hairline) solid var(--color-semantic-border-base);
  border-radius: var(--radius-md);
  color: var(--division-accent, var(--color-semantic-accent-primary));
}
.icon-tile .icon { width: 1.5rem; height: 1.5rem; }

/* --- mol-card ------------------------------------------------------------ */
.card {
  position: relative;          /* anchor the reticle corner-mark */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--color-semantic-bg-surface);
  border: var(--border-width-hairline) solid var(--color-semantic-border-base);
  border-radius: var(--radius-md);
  transition: transform var(--duration-base) var(--easing-standard),
              box-shadow var(--duration-base) var(--easing-standard),
              border-color var(--duration-base) var(--easing-standard);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card__eyebrow { color: var(--color-semantic-text-muted); }
.card__footer { margin-top: auto; }

/* bordered-accent: top rule scales in on hover, colour = divisional accent */
.card--bordered-accent { position: relative; overflow: hidden; }
.card--bordered-accent::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--border-width-thick);
  background: var(--division-accent, var(--color-semantic-accent-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--easing-standard);
}
.card--bordered-accent:hover::before,
.card--bordered-accent:focus-within::before { transform: scaleX(1); }

/* --- mol-feature-item ---------------------------------------------------- */
.feature-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* --- mol-value-item (bordered list) -------------------------------------- */
.value-list {
  display: grid;
  border-top: var(--border-width-hairline) solid var(--color-semantic-border-base);
}
.value-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: start;
  padding-block: var(--space-md);
  border-bottom: var(--border-width-hairline) solid var(--color-semantic-border-base);
}
.value-item__body { display: flex; flex-direction: column; gap: var(--space-3xs); }

/* --- mol-stat ------------------------------------------------------------ */
.stat { display: flex; flex-direction: column; gap: var(--space-3xs); }
.stat__value {
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-h2);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: var(--color-semantic-accent-primary);
}
.stat__value--bright { color: var(--color-semantic-text-primary); }
.stat__label {
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-sm);
  text-transform: uppercase;
  letter-spacing: var(--font-tracking-label);
  color: var(--color-semantic-text-muted);
}

/* --- mol-nav-item (desktop inline / mobile row — see org-header) ---------- */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-block: var(--space-2xs);
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-sm);
  color: var(--color-semantic-text-secondary);
  text-decoration: none;
}
.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--border-width-hairline);
  background: var(--color-semantic-accent-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--easing-standard);
}
.nav-item:hover,
.nav-item:focus-visible,
.nav-item[aria-current="page"],
.nav-item.active { color: var(--color-semantic-accent-primary); text-decoration: none; }
.nav-item:hover::after,
.nav-item:focus-visible::after,
.nav-item[aria-current="page"]::after,
.nav-item.active::after { transform: scaleX(1); }

/* --- mol-pricing-row (stacked card mobile → aligned in a grid desktop) ---- */
.pricing-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--color-semantic-bg-surface);
  border: var(--border-width-hairline) solid var(--color-semantic-border-base);
  border-radius: var(--radius-md);
}
.pricing-row--featured {
  border-color: var(--color-semantic-accent-primary);
  box-shadow: var(--shadow-ring-amber), var(--shadow-glow-amber);
}
.pricing-row__name {
  font-family: var(--font-family-display);
  font-size: var(--font-scale-h4);
  font-weight: var(--font-weight-semibold);
  color: var(--color-semantic-text-primary);
}
.pricing-row__price {
  font-family: var(--font-family-display);
  font-size: var(--font-scale-h2);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: var(--color-semantic-text-primary);
}
.pricing-row__unit { font-size: var(--font-scale-sm); color: var(--color-semantic-text-muted); }
.pricing-row__fx {
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-sm);
  color: var(--color-semantic-text-muted);
}
.pricing-row__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  list-style: none;
  padding-inline-start: 0;                 /* the UA list indent, not only the marker */
  color: var(--color-semantic-text-secondary);
}
.pricing-row__features li { display: flex; align-items: center; gap: var(--space-2xs); }
.pricing-row__features .icon { color: var(--division-accent, var(--color-semantic-accent-primary)); }
.pricing-row__badge {
  position: absolute;
  top: 0;
  right: var(--space-lg);
  transform: translateY(-50%);
  background: var(--color-semantic-bg-surface);   /* opaque backing: the featured ring would otherwise read through .tag--accent */
  border-radius: var(--radius-sm);
}

/* --- mol-app-card -------------------------------------------------------- */
.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
  text-align: center;
  padding: var(--space-md);
  background: var(--color-semantic-bg-surface);
  border: var(--border-width-hairline) solid var(--color-semantic-border-base);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--duration-base) var(--easing-standard),
              box-shadow var(--duration-base) var(--easing-standard),
              border-color var(--duration-base) var(--easing-standard);
}
.app-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--elevation-2);
  border-color: var(--division-accent, var(--color-semantic-accent-primary));
}
.app-card__name {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-semibold);
  color: var(--color-semantic-text-primary);
}
.app-card__type {
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-sm);
  color: var(--color-semantic-text-muted);
}

/* --- mol-accordion-item (native <details>, no JS) ------------------------ */
.accordion { border-top: var(--border-width-hairline) solid var(--color-semantic-border-base); }
.accordion__item { border-bottom: var(--border-width-hairline) solid var(--color-semantic-border-base); }
.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: var(--space-md);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-family-display);
  font-size: var(--font-scale-lead);
  font-weight: var(--font-weight-semibold);
  color: var(--color-semantic-text-primary);
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary::after {
  content: "+";
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-h4);
  color: var(--color-semantic-accent-primary);
  line-height: 1;
}
.accordion__item[open] > .accordion__summary::after { content: "\2212"; } /* − */
.accordion__body {
  padding-bottom: var(--space-md);
  color: var(--color-semantic-text-muted);
}
/* Links in accordion answers render outside .content-block; underline them so
   they are not distinguishable by colour alone (WCAG 1.4.1). */
.accordion__body a:not(.btn),
.faq-noresults a { text-decoration: underline; }

/* --- mol-status-pill ----------------------------------------------------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-3xs) var(--space-sm);
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-sm);
  color: var(--color-semantic-text-muted);
  background: var(--color-semantic-bg-raised);
  border: var(--border-width-hairline) solid var(--color-semantic-border-base);
  border-radius: var(--radius-pill);
}
.status-pill__dot {
  width: 0.5em;
  height: 0.5em;
  border-radius: var(--radius-pill);
  background: var(--color-semantic-accent-primary);
  animation: var(--motion-pulse);
  flex-shrink: 0;
}

/* --- mol-terminal-line --------------------------------------------------- */
.term-line {
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-sm);
  line-height: 1.7;
  color: var(--color-semantic-text-secondary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.term-line__prompt { color: var(--color-semantic-accent-primary); }
.term-line__cmd { color: var(--color-semantic-text-primary); }
.term-line--output { color: var(--color-semantic-text-muted); }
.term-line--success { color: var(--color-semantic-status-success); }

/* --- mol-field ----------------------------------------------------------- */
.field { display: grid; gap: var(--space-2xs); min-width: 0; overflow-wrap: anywhere; }
.field__label {
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-sm);
  color: var(--color-semantic-text-muted);
}
.field__help { font-size: var(--font-scale-sm); color: var(--color-semantic-text-muted); }
.field__error {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--font-scale-sm);
  color: var(--color-semantic-status-error);
}

.field__success { font-size: var(--font-scale-sm); color: var(--color-semantic-status-success); }

/* --- mol-empty-state ---------------------------------------------------- */
.empty-state {
  display: grid;
  gap: var(--space-sm);
  min-width: 0;
  padding: var(--space-md);
  background: var(--color-semantic-bg-surface);
  border: var(--border-width-hairline) solid var(--color-semantic-border-base);
  border-radius: var(--radius-md);
  overflow-wrap: anywhere;
}
.empty-state__description { color: var(--color-semantic-text-muted); }
.empty-state__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.empty-state__actions .btn {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: var(--font-line-height-label);
}
/* Keep action focus visible with the same token ring and a forced-colour outline. */
.empty-state__actions .btn:focus-visible {
  outline: var(--focus-width) solid var(--focus-ring);
  outline-offset: var(--focus-offset);
  box-shadow: var(--shadow-focus-ring);
}
.empty-state__actions .btn:disabled {
  color: var(--color-semantic-text-faint);
  background: var(--color-semantic-bg-secondary);
  border-color: var(--color-semantic-border-base);
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
  pointer-events: auto;
}

/* --- mol-breadcrumb ------------------------------------------------------ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs);
  list-style: none;
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-sm);
  color: var(--color-semantic-text-muted);
}
.breadcrumb li { display: flex; align-items: center; gap: var(--space-2xs); }
.breadcrumb li + li::before { content: "/"; color: var(--color-semantic-text-faint); }
.breadcrumb a { color: var(--color-semantic-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-semantic-accent-primary); }

/* --- mol-social-row ------------------------------------------------------ */
.social-row { display: flex; align-items: center; gap: var(--space-2xs); }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-semantic-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--easing-standard),
              background-color var(--duration-fast) var(--easing-standard);
}
.social-row a:hover {
  color: var(--color-semantic-accent-primary);
  background: var(--color-semantic-bg-raised);
}

/* --- mol-alert ----------------------------------------------------------- */
.alert {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-semantic-bg-surface);
  color: var(--color-semantic-text-secondary);
  border: var(--border-width-hairline) solid var(--color-semantic-border-base);
  border-left-width: var(--border-width-accent);
  border-radius: var(--radius-sm);
}
.alert--success { border-left-color: var(--color-semantic-status-success); }
.alert--warning { border-left-color: var(--color-semantic-status-warning); }
.alert--error   { border-left-color: var(--color-semantic-status-error); }
.alert--info    { border-left-color: var(--color-semantic-status-info); }

/* ==========================================================================
   GLOBAL SIGNATURES & LAYOUT
   ========================================================================== */

/* texture-noise — global film-grain (noiz = noise). Decorative, never blocks. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: var(--texture-noise);
  background-size: 200px 200px;
  opacity: var(--texture-noise-opacity);
}

/* skip link — first focusable element, for keyboard/AT users */
.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100%;
  z-index: 10000;
  padding: var(--space-2xs) var(--space-sm);
  background: var(--color-semantic-accent-primary);
  color: var(--color-semantic-text-on-accent);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-sm); }

/* section rhythm */
.section { padding-block: var(--space-section); }
.section--alt { background: var(--color-semantic-bg-secondary); }
.section__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 48rem;
  margin-bottom: var(--space-xl);
}
.section__header--center { margin-inline: auto; text-align: center; align-items: center; }
.section__grid { margin-top: var(--space-xl); }   /* gap between section copy and child-card grid */
.section .breadcrumb { margin-bottom: var(--space-md); }

/* ==========================================================================
   B.3 ORGANISMS
   ========================================================================== */

/* --- org-header — sticky translucent bar + CSS-checkbox mobile nav -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-semantic-bg-primary);   /* fallback where color-mix is unsupported */
  background: color-mix(in srgb, var(--color-semantic-bg-primary) 85%, transparent);
  backdrop-filter: blur(var(--effect-blur-backdrop));
  -webkit-backdrop-filter: blur(var(--effect-blur-backdrop));
  border-bottom: var(--border-width-hairline) solid var(--color-semantic-border-base);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-sm);
}
/* the checkbox drives the mobile nav. Hidden entirely on desktop (so it is not
   a phantom tab stop); made visually-hidden-but-focusable in the mobile query. */
.nav-toggle { display: none; }
.nav-burger {
  display: none;             /* shown on mobile only */
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--color-semantic-text-secondary);
}
.nav-burger__close { display: none; }
.site-nav { display: flex; align-items: center; gap: var(--space-lg); }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

/* mobile: collapse the nav behind the burger (no JS) */
@media (max-width: 991px) {
  .nav-burger { display: inline-flex; }
  /* visually hidden but keyboard-focusable; focus ring rides the visible burger */
  .nav-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }
  .nav-toggle:focus-visible ~ .nav-burger {
    outline: var(--focus-width) solid var(--color-semantic-accent-primary);
    outline-offset: var(--focus-offset);
  }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-inline: var(--container-pad);
    background: var(--color-semantic-bg-secondary);
    border-bottom: var(--border-width-hairline) solid var(--color-semantic-border-base);
    max-height: 0;
    overflow: hidden;
    /* visibility:hidden pulls collapsed links out of the tab order/AT tree
       (overflow:hidden alone does not); delayed so it animates closed cleanly */
    visibility: hidden;
    transition: max-height var(--duration-base) var(--easing-standard),
                visibility 0s linear var(--duration-base);
  }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list .nav-item {
    width: 100%;
    min-height: 48px;
    padding-block: var(--space-sm);
    border-bottom: var(--border-width-hairline) solid var(--color-semantic-border-base);
  }
  .site-nav__cta { margin-block: var(--space-sm); }
  .nav-toggle:checked ~ .nav-burger .nav-burger__open { display: none; }
  .nav-toggle:checked ~ .nav-burger .nav-burger__close { display: inline-block; }
  .nav-toggle:checked ~ .site-nav {
    /* 14c: the panel hangs off the header's bottom edge, so its ceiling is the
       viewport less the header. The header measures 85.8px (5.36rem) at every
       width: 2 x var(--space-sm) padding-block on .site-header__inner, the 3.3rem
       .logo__mark inside it, and the hairline bottom border. The old 4rem was
       21.8px short, which truncated the last item instead of scrolling it. The
       dvh line follows the vh line so a browser that shrinks the viewport behind
       its URL bar gets the live value and older ones keep the vh fallback. */
    max-height: calc(100vh - (2 * var(--space-sm) + 3.3rem + var(--border-width-hairline)));
    max-height: calc(100dvh - (2 * var(--space-sm) + 3.3rem + var(--border-width-hairline)));
    overflow-y: auto;
    visibility: visible;
    transition: max-height var(--duration-base) var(--easing-standard), visibility 0s;
  }
}

/* --- org-hero ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-2xl);
}
.hero--full { min-height: 100vh; display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg::before {                       /* atmos-grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--color-overlay-grid) var(--border-width-hairline), transparent var(--border-width-hairline)),
    linear-gradient(to bottom, var(--color-overlay-grid) var(--border-width-hairline), transparent var(--border-width-hairline));
  background-size: var(--effect-grid-pitch) var(--effect-grid-pitch);
  -webkit-mask-image: var(--atmos-grid-mask);
  mask-image: var(--atmos-grid-mask);
}
.hero__bg::after {                        /* atmos-glow: a full-box layer, the gradient itself fades out inside it */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--atmos-glow);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 52rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-sm); }
.hero__stats { display: flex; flex-wrap: wrap; gap: var(--space-xl); margin-top: var(--space-lg); }
/* reduce atmosphere on small screens / reduced motion */
@media (max-width: 767px) {
  .hero__bg { opacity: 0.5; }
  .hero__stats { gap: var(--space-md); }   /* tighter gutter when stats wrap */
}
@media (prefers-reduced-motion: reduce) { .hero__bg { opacity: 0.4; } }

/* --- org-feature-grid ---------------------------------------------------- */
.feature-grid { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

/* --- org-value-list (prose column + visual column) ----------------------- */
.value-grid { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 992px) { .value-grid { grid-template-columns: 1fr 1fr; } }

/* --- org-terminal -------------------------------------------------------- */
.terminal {
  border: var(--border-width-hairline) solid var(--color-semantic-border-base);
  border-radius: var(--radius-md);
  background: var(--color-semantic-bg-surface);
  box-shadow: var(--elevation-2);
  overflow: hidden;
}
.terminal__chrome {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-sm);
  background: var(--color-semantic-bg-raised);
  border-bottom: var(--border-width-hairline) solid var(--color-semantic-border-base);
}
.terminal__dot { width: 0.75rem; height: 0.75rem; border-radius: var(--radius-pill); background: var(--color-semantic-bg-lift); }
.terminal__title {
  margin-left: var(--space-2xs);
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-sm);
  color: var(--color-semantic-text-muted);
}
.terminal__body { padding: var(--space-md); }
.terminal__cursor {
  display: inline-block;
  width: 0.5em;
  height: 1em;
  vertical-align: text-bottom;
  background: var(--color-semantic-accent-primary);
  animation: blink var(--duration-blink) step-end infinite;
}

/* --- org-pricing-table — tier cards, flex to 2/3/4/6 tiers -------------- */
.pricing-table {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  align-items: start;
}

/* --- email security comparison matrix ----------------------------------- */
.matrix-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.email-matrix {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: var(--font-scale-sm);
}
.email-matrix th,
.email-matrix td {
  padding: var(--space-sm) var(--space-2xs);
  text-align: center;
  vertical-align: middle;
  border-bottom: var(--border-width-hairline) solid var(--color-semantic-border-soft);   /* two-tier (#13): soft inner rows; tier-coloured header rule kept below */
}
.email-matrix thead th { vertical-align: bottom; border-bottom: var(--border-width-thick) solid var(--tier-color, var(--color-semantic-border-base)); }
.email-matrix__code { display: block; font-family: var(--font-family-display); font-weight: var(--font-weight-bold); font-size: var(--font-scale-h4); color: var(--tier-color, var(--color-semantic-text-primary)); }
.email-matrix__name { display: block; color: var(--color-semantic-text-primary); font-weight: var(--font-weight-medium); }
.email-matrix__note { display: block; font-size: var(--font-scale-sm); color: var(--color-semantic-text-muted); margin-top: var(--space-3xs); }
.email-matrix__bar { display: none; }
.email-matrix tbody th { text-align: left; color: var(--color-semantic-text-primary); font-weight: var(--font-weight-medium); }
.email-matrix__h--1 { --tier-color: var(--color-semantic-text-muted); } /* informative header — keep AA */
.email-matrix__h--2 { --tier-color: var(--color-semantic-text-primary); }
.email-matrix__h--3 { --tier-color: var(--color-semantic-accent-primary); }
.email-matrix__h--4 { --tier-color: var(--color-semantic-text-primary); }
.email-cell--pos { color: var(--color-semantic-status-success); font-weight: var(--font-weight-medium); }
.email-cell--neg { color: var(--color-semantic-status-error); }
.email-cell--dim { color: var(--color-semantic-text-muted); }
.email-cell--neu { color: var(--color-semantic-text-secondary); }
.email-matrix tbody tr:hover th,
.email-matrix tbody tr:hover td { background: var(--color-semantic-bg-surface); }
.email-pgp {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-semantic-bg-surface);
  border: var(--border-width-hairline) solid var(--color-semantic-border-base);
  border-left: var(--border-width-accent) solid var(--color-semantic-accent-primary);
  border-radius: var(--radius-sm);
  color: var(--color-semantic-text-secondary);
}
.email-matrix__foot { margin-top: var(--space-sm); }

/* --- rate table (hourly professional rates) ----------------------------- */
.rate-table { width: 100%; border-collapse: collapse; }
.rate-table th,
.rate-table td { padding: var(--space-sm); text-align: left; border-bottom: var(--border-width-hairline) solid var(--color-semantic-border-soft); } /* two-tier (#13): soft inner rows */
.rate-table thead th {
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-sm);
  text-transform: uppercase;
  letter-spacing: var(--font-tracking-label);
  color: var(--color-semantic-text-muted);
  border-bottom: var(--border-width-hairline) solid var(--color-semantic-border-base);   /* stronger rule under header */
}
.rate-table tbody tr:last-child th,
.rate-table tbody tr:last-child td { border-bottom: none; }
.rate-table tbody th { color: var(--color-semantic-text-primary); font-weight: var(--font-weight-medium); }
.rate-table__rate { font-family: var(--font-family-display); font-weight: var(--font-weight-bold); color: var(--color-semantic-text-primary); }
.rate-table__unit { font-family: var(--font-family-mono); font-size: var(--font-scale-sm); color: var(--color-semantic-text-muted); }
.rate-table__fx { font-family: var(--font-family-mono); font-size: var(--font-scale-sm); color: var(--color-semantic-text-muted); }

/* --- org-app-grid -------------------------------------------------------- */
.app-grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .app-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .app-grid { grid-template-columns: repeat(6, 1fr); } }

/* --- org-cta-band -------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-2xl);
  text-align: center;
}
.cta-band__glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--cta-glow); }
.cta-band__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }

/* --- org-faq (accordion in a constrained column) ------------------------- */
.faq { max-width: 48rem; }

/* --- org-logo-wall ------------------------------------------------------- */
.logo-wall {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}
@media (min-width: 768px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
.logo-wall__item {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-semantic-text-faint);
  filter: grayscale(1);
  transition: color var(--duration-base) var(--easing-standard), filter var(--duration-base) var(--easing-standard);
}
.logo-wall__item:hover { color: var(--color-semantic-text-muted); filter: grayscale(0); }

/* --- org-content-block (long-form prose) --------------------------------
   The block fills its container; text children are capped at a readable
   measure, while wide elements (pricing grids, comparison matrix) span full. */
.content-block > * + * { margin-top: var(--space-md); }
.content-block > p,
.content-block > ul,
.content-block > ol,
.content-block > h2,
.content-block > h3,
.content-block > h4,
.content-block > blockquote,
.content-block > pre,
.content-block > .email-matrix__foot { max-width: 65ch; }
/* prose code: long command lines scroll inside the block instead of widening
   the page on a 360px viewport (a11y mobile overflow). */
.content-block pre { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

/* Markdown-rendered tables (legal pages, journal posts). The table render hook
   (_markup/render-table.html) wraps each one in a keyboard-scrollable
   .table-scroll region; these rules give the bare elements the system look. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.content-block table {
  border-collapse: collapse;
  font-size: var(--font-scale-sm);
  line-height: 1.5;
}
.content-block th,
.content-block td {
  padding: var(--space-2xs) var(--space-xs);
  border: var(--border-width-hairline) solid var(--color-semantic-border-base);
  text-align: left;
  vertical-align: top;
}
.content-block th {
  color: var(--color-semantic-text-primary);
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-semibold);
}
.content-block .ta-center { text-align: center; }
.content-block .ta-right { text-align: right; }
.content-block > h2, .content-block > h3 { margin-top: var(--space-xl); }
/* prose links only — must NOT clobber buttons (.btn) rendered inside content,
   e.g. pricing CTAs: .content-block a would otherwise force their colour to
   green, and the .btn text-fill:currentColor then paints green-on-green. */
.content-block a:not(.btn) { color: var(--color-semantic-accent-primary); text-decoration: underline; }

/* Markdown images (journal posts). The image render hook
   (_markup/render-image.html) emits .content-img / .content-figure; the base
   reset (img { max-width: 100%; height: auto }) already keeps them fluid.
   Zero the UA figure margin so the .content-block flow spacing governs. */
.content-figure { margin: 0; }
.content-figure figcaption {
  margin-top: var(--space-2xs);
  color: var(--color-semantic-text-muted);
  font-size: var(--font-scale-sm);
  line-height: 1.5;
}

/* --- org-form ------------------------------------------------------------ */
.form { display: grid; gap: var(--space-md); max-width: 32rem; }
.form__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* --- org-footer (mega) --------------------------------------------------- */
.site-footer {
  padding-block: var(--space-2xl) var(--space-xl);
  background: var(--color-semantic-bg-secondary);
  border-top: var(--border-width-hairline) solid var(--color-semantic-border-base);
}
.footer-mega { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-mega { grid-template-columns: 2fr repeat(2, 1fr); } }
@media (min-width: 992px) { .footer-mega { grid-template-columns: 2fr repeat(3, 1fr); } }
/* the 1200px override (1.6fr repeat(5, 1fr)) is retired: three pillar columns
   since 2026-09-22, so the grid stops widening at 992px. */
.footer-brand { display: flex; flex-direction: column; gap: var(--space-sm); max-width: 28rem; }
/* the pillar line and the strapline as the footer carries them: mono, at the size
   they are written in, and never uppercased. Ported from the Hugo theme on
   2026-09-22 so the theme and the component layer stop drifting by this class. */
.footer-mark { font-family: var(--font-family-mono); font-size: var(--font-scale-sm); color: var(--color-semantic-text-muted); text-transform: none; }
.footer-col { display: flex; flex-direction: column; gap: var(--space-2xs); }
.footer-col__title {
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-sm);
  text-transform: uppercase;
  letter-spacing: var(--font-tracking-label);
  color: var(--color-semantic-text-muted);
  margin-bottom: var(--space-2xs);
}
.footer-col a { color: var(--color-semantic-text-secondary); text-decoration: none; }
.footer-col a:hover { color: var(--color-semantic-accent-primary); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--border-width-hairline) solid var(--color-semantic-border-base);
  color: var(--color-semantic-text-muted);
  font-size: var(--font-scale-sm);
}
.footer-legal a { color: var(--color-semantic-text-muted); text-decoration: underline; }
.footer-legal a:hover { color: var(--color-semantic-accent-primary); }
.monero-support {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-sm);
  color: var(--color-semantic-text-muted);
  text-decoration: none;
}
.monero-support .icon { width: 1.25rem; height: 1.25rem; color: var(--color-semantic-accent-primary); }
.monero-support:hover { color: var(--color-semantic-text-secondary); }

/* --- journal / posts --- */
.post-grid { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
@media (min-width: 768px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card__title { color: var(--color-semantic-text-primary); text-decoration: none; }
.post-card__title:hover { color: var(--color-semantic-accent-primary); }
.post-card__footer { margin-top: auto; }
.post-meta {
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-sm);
  color: var(--color-semantic-text-muted);
}
.post-meta a { color: var(--color-semantic-text-muted); text-decoration: none; }
.post-meta a:hover { color: var(--color-semantic-accent-primary); }
.journal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-bottom: var(--space-xl);
}
.journal-filters__count { color: var(--color-semantic-text-muted); } /* informative count — 4.5:1 (1.4.3) */
.journal-search,
.faq-search { max-width: 28rem; margin-bottom: var(--space-md); }
/* Both search fields are JS-powered filters over fully-listed static content —
   without JS they are dead inputs, so hide them (main.js stamps .js on <html>). */
html:not(.js) .journal-search,
html:not(.js) .faq-search { display: none; }
[hidden] { display: none !important; }   /* search toggles #journal-grid/#journal-results */
.post-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 48rem;
  margin-bottom: var(--space-lg);
}
.post-header .t-label a { color: inherit; text-decoration: none; }
.post-tags { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-block: var(--space-xl) var(--space-md); }
.post-back { margin-top: var(--space-md); }
.term-list { list-style: none; display: grid; gap: var(--space-2xs); }
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* One blink for both cursors, .terminal__cursor and .nz-prompt__cur, at
   var(--duration-blink). The two rules ran 1s and 1.1s off two keyframes;
   nz-blink is deleted. The reduced-motion guard already covers this. */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ==========================================================================
   TARGETING SYSTEM — reticle signature + atmosphere (restyle 2026-06-01)
   The Noiz eye/reticle mark is the system-wide motif. Source of truth for the
   geometry: themes/noiz/assets/img/reticle-mark.svg (inlined via reticle.html).
   ========================================================================== */

/* global CRT scanline atmosphere — pairs with the body::before film-grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: var(--texture-scanline-opacity);
  background-image: var(--texture-scanline);
}

/* atom-reticle — the Noiz eye/reticle mark (broken ring + diagonal + pupil) */
/* fill:none overrides the global `svg { fill: currentColor }` — otherwise the
   OPEN ring arcs fill as if closed (a solid disc). Only the pupil, blips and
   the faint sweep wedge are meant to be filled. */
.reticle { display: block; color: var(--color-mark-light); fill: none; }   /* marks are monochrome (2026-09-22): never tinted, never glowing */
.reticle__pupil, .reticle__blip, .reticle__sweep path { fill: currentColor; }
/* The mark's own reticle O (assets/Logos/noiz-favicon-white.svg geometry, logo-favicon-* tokens) is a filled
   drawing, so inside a .reticle wrapper it takes currentColor. The theme's stroked broken-ring drawing is not carried here. */
.reticle .mark { fill: currentColor; }

/* full-hero "hunting for vulnerabilities" variant */
.hero__reticle {
  position: absolute;
  z-index: 0;                       /* behind the headline (hero__inner is z-index 1) */
  top: 50%;
  right: clamp(16px, 3vw, 72px);          /* fully on-screen — shows the complete reticle, not two clipped arcs */
  width: clamp(240px, 30vw, 420px);
  height: clamp(240px, 30vw, 420px);
  color: var(--color-mark-light);
  opacity: 0.52;
  pointer-events: none;
  animation: reticle-lock 1.4s var(--easing-standard) both;
}
/* hero reticle keeps the canonical stroke-9 proportions (matches the mark asset);
   stroke-width is in viewBox units so it scales identically at any render size. */
.reticle__sweep { transform-box: view-box; transform-origin: 100px 100px; animation: reticle-spin 4s linear infinite; }
.reticle__ping  { transform-box: view-box; transform-origin: 100px 100px; animation: reticle-ping 3s ease-out infinite; }
.reticle__pupil { transform-box: view-box; transform-origin: 100px 100px; animation: reticle-glance 9s ease-in-out infinite; }
.reticle__blip  { transform-box: fill-box; transform-origin: center; }
.reticle__blip--1 { animation: reticle-blip-1 9s linear infinite; }
.reticle__blip--2 { animation: reticle-blip-2 9s linear infinite; }
.reticle__blip--3 { animation: reticle-blip-3 9s linear infinite; }

@keyframes reticle-lock { from { opacity: 0; transform: translateY(-50%) scale(1.4); } to { opacity: 0.52; transform: translateY(-50%) scale(1); } }
@keyframes reticle-spin { to { transform: rotate(360deg); } }
@keyframes reticle-ping { 0% { transform: scale(0.22); opacity: 0.85; } 78%, 100% { transform: scale(1.15); opacity: 0; } }
@keyframes reticle-glance { 0%,6% { transform: translate(0,0); } 13%,23% { transform: translate(9px,-7px); } 37%,51% { transform: translate(-8px,9px); } 64%,79% { transform: translate(9px,5px); } 90%,100% { transform: translate(0,0); } }
@keyframes reticle-blip-1 { 0%,9% { opacity:0; transform:scale(.4);} 13% { opacity:1; transform:scale(1);} 23% { opacity:1;} 27%,100% { opacity:0; transform:scale(.4);} }
@keyframes reticle-blip-2 { 0%,33% { opacity:0; transform:scale(.4);} 37% { opacity:1; transform:scale(1);} 51% { opacity:1;} 55%,100% { opacity:0; transform:scale(.4);} }
@keyframes reticle-blip-3 { 0%,60% { opacity:0; transform:scale(.4);} 64% { opacity:1; transform:scale(1);} 79% { opacity:1;} 83%,100% { opacity:0; transform:scale(.4);} }

/* page-header — divisional accent rule (D) + reticle eyebrow tick (B) */
.page-header {
  padding-left: var(--space-md);
  border-left: var(--border-width-accent) solid var(--division-accent, var(--color-semantic-accent-primary));
}
.page-header__eyebrow { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.page-header__tick { width: 0.95em; height: 0.95em; color: var(--color-mark-light); }

/* card corner-mark — small reticle, divisional colour, brightens on hover */
.card__reticle {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-mark-light);
  opacity: 0.22;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--easing-standard),
              transform var(--duration-base) var(--easing-standard);
}
.card:hover .card__reticle,
.card:focus-within .card__reticle { opacity: 0.9; transform: scale(1.12); }

@media (max-width: 767px) {
  .hero__reticle { width: 300px; height: 300px; right: -90px; opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__reticle { animation: none; opacity: 0.5; transform: translateY(-50%); }
  .reticle__sweep, .reticle__pupil, .reticle__blip { animation: none; }
  .reticle__ping { animation: none; opacity: 0; }
}

/* ==========================================================================
   Reusable comparison organisms (.nz-*) — compare split, comparison table,
   honesty callout. Composed on tokens / color-mix only (no raw values).
   First used on the ERPNext landing; exposed site-wide via shortcodes
   (compare / compare-col / comparison / callout). Page-specific landing
   furniture (.nz-hero / .nz-card / .nz-svc / .nz-final) also lives here.
   ========================================================================== */

/* shared section furniture */
.nz-kicker { display: block; margin-bottom: var(--space-sm); }
.nz-kicker__n { color: var(--color-semantic-accent-primary); }
.nz-accent { color: var(--color-semantic-accent-primary); }
.nz-sec-lede { margin-top: var(--space-md); max-width: 64ch; color: var(--color-semantic-text-muted); }

/* --- hero --------------------------------------------------------------- */
.nz-hero { border-bottom: var(--border-width-hairline) solid var(--color-semantic-border-base); }
.nz-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  color: var(--color-semantic-accent-primary);
}
.nz-hero__tick { width: 0.95em; height: 0.95em; color: var(--color-mark-light); }
.nz-hero__title { margin-top: var(--space-md); max-width: 16ch; }
.nz-hero__lede { margin-top: var(--space-md); max-width: 62ch; color: var(--color-semantic-text-muted); }
.nz-hero__lede strong { color: var(--color-semantic-text-secondary); font-weight: var(--font-weight-semibold); }
.nz-hero__cta { margin-top: var(--space-lg); display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* staggered entrance (explicit delays, never :nth-child) */
.nz-reveal { opacity: 0; animation: fadeInUp var(--duration-slow) var(--easing-standard) forwards; }
.nz-reveal--1 { animation-delay: 0.08s; }
.nz-reveal--2 { animation-delay: 0.16s; }
.nz-reveal--3 { animation-delay: 0.24s; }

/* --- 01 · the rent-trap split ------------------------------------------- */
.nz-split {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: var(--border-width-hairline) solid var(--color-semantic-border-base);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.nz-col { padding: var(--space-lg); }
.nz-col + .nz-col { border-left: var(--border-width-hairline) solid var(--color-semantic-border-base); }
.nz-col--bad  { background: var(--color-ground-tint-bad); }
.nz-col--good { background: var(--color-ground-tint-good); }
.nz-col__tag {
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-label);
  letter-spacing: var(--font-tracking-label);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.nz-col--bad  .nz-col__tag { color: var(--color-semantic-status-error); }
.nz-col--good .nz-col__tag { color: var(--color-semantic-status-success); }
.nz-col__list { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
/* shortcode authoring: markdown list renders as a nested <ul> inside the wrapper */
.nz-col__list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.nz-col__list li {
  position: relative;
  padding-left: var(--space-md);
  color: var(--color-semantic-text-muted);
}
.nz-col__list li b { color: var(--color-semantic-text-secondary); font-weight: var(--font-weight-semibold); }
.nz-col__list li::before { position: absolute; left: 0; font-family: var(--font-family-mono); }
.nz-col--bad  .nz-col__list li::before { content: "\2717"; color: var(--color-semantic-status-error); }
.nz-col--good .nz-col__list li::before { content: "\2713"; color: var(--color-semantic-status-success); }

/* --- 02 · why grid ------------------------------------------------------- */
.nz-why {
  margin-top: var(--space-xl);
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(2, 1fr);
}
.nz-card {
  border: var(--border-width-hairline) solid var(--color-semantic-border-base);
  border-radius: var(--radius-md);
  background: var(--color-semantic-bg-surface);
  padding: var(--space-lg);
  transition: transform var(--duration-base) var(--easing-standard),
              border-color var(--duration-base) var(--easing-standard),
              box-shadow var(--duration-base) var(--easing-standard);
}
.section--alt .nz-card { background: var(--color-semantic-bg-raised); }
.nz-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-semantic-border-strong);
  box-shadow: var(--shadow-lift);
}
.nz-card--wide { grid-column: 1 / -1; }
.nz-card__num { font-family: var(--font-family-mono); font-size: var(--font-scale-sm); color: var(--color-semantic-accent-primary); margin-bottom: var(--space-sm); }
.nz-card h3 { margin-bottom: var(--space-2xs); }
.nz-card p { color: var(--color-semantic-text-muted); }
.nz-card p em { color: var(--color-semantic-text-secondary); font-style: normal; font-weight: var(--font-weight-semibold); }

/* --- 03 · comparison table ---------------------------------------------- */
.nz-table-scroll {
  margin-top: var(--space-xl);
  overflow-x: auto;
  /* 14e: .nz-table thead th is position: sticky, and sticky resolves against the
     nearest scrollport, so the header could never engage while this container had
     no block size to scroll within. Bounded at 70vh: a table shorter than that is
     untouched (the preview's is 296px), and a taller one scrolls inside its own
     region, which already carries role="region" and tabindex="0", with the column
     headers held in view instead of scrolling away up the page. */
  max-block-size: 70vh;
  overflow-y: auto;
  border: var(--border-width-hairline) solid var(--color-semantic-border-base);
  border-radius: var(--radius-md);
}
.nz-table { border-collapse: collapse; width: 100%; min-width: 860px; font-size: var(--font-scale-sm); }
.nz-table th,
.nz-table td { text-align: left; padding: var(--space-sm) var(--space-md); border-bottom: var(--border-width-hairline) solid var(--color-semantic-border-soft); vertical-align: top; }
.nz-table thead th {
  position: sticky;
  top: 0;
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-label);
  letter-spacing: var(--font-tracking-label);
  text-transform: uppercase;
  color: var(--color-semantic-text-muted);
  background: var(--color-semantic-bg-secondary);
  border-bottom: var(--border-width-hairline) solid var(--color-semantic-border-base);   /* two-tier: stronger rule under header (#13) */
}
.nz-table tbody tr:last-child th,
.nz-table tbody tr:last-child td { border-bottom: none; }
.nz-td-name { font-weight: var(--font-weight-semibold); white-space: nowrap; }
.nz-td-sub { display: block; font-family: var(--font-family-mono); font-size: var(--font-scale-sm); color: var(--color-semantic-text-muted); font-weight: var(--font-weight-regular); margin-top: var(--space-3xs); }
.nz-muted { color: var(--color-semantic-text-muted); }
.nz-row--flag { background: linear-gradient(90deg, color-mix(in srgb, var(--color-semantic-accent-primary) 7%, transparent), color-mix(in srgb, var(--color-semantic-accent-primary) 1.5%, transparent)); }
.nz-row--flag th:first-child,
.nz-row--flag td:first-child { box-shadow: inset var(--border-width-accent) 0 0 var(--color-semantic-accent-primary); }
.nz-table tbody th { font-weight: var(--font-weight-semibold); }   /* row-header cells are <th scope="row"> */
.nz-row--flag .nz-td-name { color: var(--color-semantic-accent-primary); }

.nz-pill {
  display: inline-block;
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-label);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-3xs) var(--space-xs);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  border: var(--border-width-hairline) solid transparent;
}
.nz-pill--y { color: var(--color-semantic-accent-primary); background: var(--color-amber-medium); border-color: color-mix(in srgb, var(--color-semantic-accent-primary) 30%, transparent); }
.nz-pill--p { color: var(--color-semantic-status-warning); background: color-mix(in srgb, var(--color-semantic-status-warning) 10%, transparent); border-color: color-mix(in srgb, var(--color-semantic-status-warning) 28%, transparent); }
.nz-pill--b { color: var(--color-semantic-status-info); background: color-mix(in srgb, var(--color-semantic-status-info) 8%, transparent); border-color: color-mix(in srgb, var(--color-semantic-status-info) 28%, transparent); }
.nz-pill--n { color: var(--color-semantic-text-muted); background: color-mix(in srgb, var(--color-semantic-text-secondary) 3%, transparent); border-color: var(--color-semantic-border-base); }

.nz-table-note { margin-top: var(--space-md); font-family: var(--font-family-mono); font-size: var(--font-scale-sm); color: var(--color-semantic-text-muted); }

/* --- 04 · honesty callout ----------------------------------------------- */
.nz-honest {
  margin-top: var(--space-lg);
  border: var(--border-width-hairline) solid var(--color-semantic-border-base);
  border-left: var(--border-width-accent) solid var(--color-semantic-status-info);
  border-radius: var(--radius-md);
  background: var(--color-semantic-bg-surface);
  padding: var(--space-lg);
}
.section--alt .nz-honest { background: var(--color-semantic-bg-raised); }
.nz-honest__tag {
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-label);
  letter-spacing: var(--font-tracking-label);
  text-transform: uppercase;
  color: var(--color-semantic-status-info);
  margin-bottom: var(--space-md);
}
.nz-honest p { color: var(--color-semantic-text-muted); max-width: 72ch; }
.nz-honest p + p { margin-top: var(--space-sm); }
.nz-honest b { color: var(--color-semantic-text-secondary); font-weight: var(--font-weight-semibold); }
.nz-honest .nz-hl { color: var(--color-semantic-accent-primary); font-weight: var(--font-weight-semibold); }

/* --- 05 · service cards -------------------------------------------------- */
.nz-svc {
  margin-top: var(--space-xl);
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(3, 1fr);
}
.nz-svc-card {
  border: var(--border-width-hairline) solid var(--color-semantic-border-base);
  border-radius: var(--radius-md);
  background: var(--color-semantic-bg-surface);
  padding: var(--space-md);
  border-top: var(--border-width-thick) solid var(--division-accent, var(--color-semantic-accent-primary));
  transition: transform var(--duration-base) var(--easing-standard), border-color var(--duration-base) var(--easing-standard);
}
.section--alt .nz-svc-card { background: var(--color-semantic-bg-raised); }
.nz-svc-card:hover { transform: translateY(-3px); border-inline-color: var(--color-semantic-border-strong); border-bottom-color: var(--color-semantic-border-strong); box-shadow: var(--shadow-lift); }   /* three sides only: the shorthand wiped the accent top edge */
/* .nz-svc-card--g/--b/--o pillar tints removed 2026-09-22: every card edge is the accent */
.nz-svc-card__ic { font-family: var(--font-family-mono); font-size: var(--font-scale-label); font-weight: var(--font-weight-bold); letter-spacing: var(--font-tracking-label); text-transform: uppercase; margin-bottom: var(--space-sm); }
.nz-svc-card__ic { color: var(--color-semantic-accent-primary); }
.nz-svc-card h4 { margin-bottom: var(--space-2xs); }
.nz-svc-card p { color: var(--color-semantic-text-muted); font-size: var(--font-scale-sm); }

.nz-parity {
  margin-top: var(--space-lg);
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-sm);
  color: var(--color-semantic-text-muted);
  border: var(--border-width-hairline) dashed var(--color-semantic-border-base);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.nz-parity b { color: var(--color-semantic-accent-primary); font-weight: var(--font-weight-semibold); }

/* --- final CTA prompt --------------------------------------------------- */
.nz-prompt {
  font-family: var(--font-family-mono);
  font-size: var(--font-scale-sm);
  color: var(--color-semantic-text-muted);
  border: var(--border-width-hairline) solid var(--color-semantic-border-base);
  border-radius: var(--radius-sm);
  background: var(--color-semantic-bg-primary);
  padding: var(--space-xs) var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
}
.nz-prompt__dollar { color: var(--color-semantic-accent-primary); }
.nz-prompt__cur { width: 9px; height: 1em; background: var(--color-semantic-accent-primary); display: inline-block; animation: blink var(--duration-blink) step-end infinite; }

@media (max-width: 767px) {
  .nz-split { grid-template-columns: 1fr; }
  .nz-col + .nz-col { border-left: none; border-top: var(--border-width-hairline) solid var(--color-semantic-border-base); }
  .nz-why { grid-template-columns: 1fr; }
  .nz-svc { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Back-to-top — fixed affordance. The native href="#top" anchor jumps to the
   top with NO JS (so it stays visible and works script-free). When JS loads,
   main.js adds .js to <html>, which hides the control until the visitor has
   scrolled down, then fades it in. Translucent bar idiom mirrors .site-header.
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  border: var(--border-width-hairline) solid var(--color-semantic-border-strong);
  background: var(--color-semantic-bg-raised);   /* fallback where color-mix is unsupported */
  background: color-mix(in srgb, var(--color-semantic-bg-raised) 82%, transparent);
  backdrop-filter: blur(var(--effect-blur-backdrop));
  -webkit-backdrop-filter: blur(var(--effect-blur-backdrop));
  color: var(--color-semantic-text-secondary);
  box-shadow: var(--shadow-lift);
  transition: color var(--duration-fast) var(--easing-standard),
              border-color var(--duration-fast) var(--easing-standard),
              transform var(--duration-base) var(--easing-standard),
              opacity var(--duration-base) var(--easing-standard),
              visibility var(--duration-base) var(--easing-standard);
}
.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--color-semantic-accent-primary);
  border-color: var(--color-semantic-accent-primary);
}
.back-to-top:focus-visible {
  outline: var(--focus-width) solid transparent;   /* keeps a ring in forced-colors mode */
  outline-offset: var(--focus-offset);
  box-shadow: var(--shadow-focus-ring);
}
.back-to-top__icon { width: 1.25rem; height: 1.25rem; }

/* JS-enhanced: hidden until the page is scrolled, then revealed via .is-visible */
.js .back-to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  pointer-events: none;
}
.js .back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

/* ==========================================================================
   Print — legal documents are the real print use-case. Ink on paper: light
   scheme, chrome and interactive affordances removed. Colours come from the
   A.12 print tokens (palette stays in tokens.css).
   ========================================================================== */
@media print {
  html { color-scheme: light; scroll-padding-top: 0; }
  /* Conventional print reset: !important so the .t-* colour utilities (higher
     specificity than these element selectors) cannot print white-on-white. */
  * { color: var(--color-print-ink) !important; background: transparent !important; }
  body { background: var(--color-print-bg) !important; }
  a { text-decoration: underline; }
  .site-header,
  .site-footer,
  .skip-link,
  .back-to-top,
  .cta-band,
  .journal-search,
  .faq-search,
  .breadcrumb { display: none; }
  /* 14f: the atmosphere and the reticles are screen signatures. Grain, scanline,
     the hero grid and glow, and every reticle come off the sheet, and a hero sized
     to the viewport would otherwise print as most of a blank page. */
  .reticle,
  .hero__reticle,
  .card__reticle,
  .page-header__tick,
  .hero__bg { display: none; }
  body::before,
  body::after { display: none; }
  .hero--full { min-height: 0; }
  .content-block th,
  .content-block td { border-color: var(--color-print-ink); }
}

/* ==========================================================================
   BLACK GLASS + PHOSPHOR — 2026-09-22 additions (proposed; tokens marked ADDED)
   A panel is black glass: a translucent cool-dark surface with the canvas blurred
   behind it and a 1px highlight where light catches the top edge. The phosphor
   is the amber accent bleeding into that glass, the way an amber CRT glows.
   ========================================================================== */
.glass {
  background: var(--color-semantic-bg-surface);                 /* opaque fallback */
  background: var(--color-glass-surface);
  -webkit-backdrop-filter: blur(var(--effect-blur-backdrop));
  backdrop-filter: blur(var(--effect-blur-backdrop));
  border: var(--border-width-hairline) solid var(--color-semantic-border-base);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
}
.glass--raised {
  background: var(--color-semantic-bg-raised);
  background: var(--color-glass-raised);
}
/* the phosphor edge: one glowing panel per view, never all of them */
.glass--phosphor {
  border-color: var(--color-amber-strong);
  box-shadow: var(--shadow-glass), var(--shadow-phosphor);
}
.glass--phosphor:hover,
.glass--phosphor:focus-within { border-color: var(--color-semantic-accent-primary); }
/* phosphor type: only on text that is already amber, 24px+ or a mono label */
.phosphor { color: var(--color-semantic-accent-primary); text-shadow: var(--shadow-phosphor-text); }
/* phosphor edge on an amber dot or cursor; never on a mark (marks are monochrome and never glow) */
.phosphor-edge { box-shadow: var(--shadow-phosphor); }
.badge-status--live .badge-status__dot { background: var(--color-semantic-accent-primary); box-shadow: var(--shadow-phosphor); }  /* the live dot is amber whatever tone the word carries: phosphor is amber or it is nothing */
.status-pill__dot { box-shadow: var(--shadow-phosphor); }
.terminal__cursor { box-shadow: var(--shadow-phosphor); }
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass--raised { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--color-semantic-bg-surface); }
  .glass--raised { background: var(--color-semantic-bg-raised); }
  /* 14b: .site-header and .back-to-top are the only other blurred surfaces in the
     system. Each already declares an opaque background before its color-mix() one,
     so each opaque fallback is simply restated here with the blur removed. */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--color-semantic-bg-primary); }
  .back-to-top { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--color-semantic-bg-raised); }
  body::before, body::after { display: none; }
}
