/* REI-ATMAQ visual polish: shared public, account and administration layer. */
:root {
  --signal-red: var(--red);
  --signal-red-dark: var(--red-deep);
  --evac-violet: var(--violet);
  --evac-violet-dark: var(--violet-deep);
  --safety-green: #087d57;
  --graphite: var(--ink);
  --graphite-soft: #514a56;
  --steel: #77707d;
  --line-strong: #dcd5df;
  --line-soft: #eee9f0;
  --cloud: var(--canvas);
  --paper: #ffffff;
  --panel-shadow: 0 1px 0 rgba(255,255,255,.95) inset,
                  0 9px 22px rgba(38,24,46,.07),
                  0 28px 58px rgba(54,25,68,.05);
  --panel-shadow-hover: 0 1px 0 rgba(255,255,255,.95) inset,
                        0 14px 28px rgba(38,24,46,.1),
                        0 36px 70px rgba(54,25,68,.08);
}

html { scroll-padding-top: 86px; }
body {
  color: var(--graphite);
  background: var(--cloud);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
body > main { position: relative; z-index: 1; background: transparent; }
h1, h2, h3, p, a, button, input, select, label, small, strong, span { letter-spacing: 0; }
h1, h2, h3 { color: var(--graphite); text-wrap: balance; }
h1 { max-width: 800px; font-size: 3rem; line-height: 1.08; }
h2 { font-size: 2rem; line-height: 1.14; }
h3 { font-size: 1.15rem; line-height: 1.25; }
p { line-height: 1.65; }

/* Ambient fire-safety field. Decorative, intentionally faint and non-interactive. */
.ambient-safety-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ambient-sign {
  position: absolute;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: var(--signal-red);
  border: 2px solid currentColor;
  opacity: .035;
  transform: rotate(var(--sign-rotate, 0deg));
  animation: ambient-drift var(--sign-speed, 28s) ease-in-out infinite alternate;
}
.ambient-sign:nth-child(even) { color: var(--evac-violet); }
.ambient-sign:nth-child(1) { top: 12%; left: 4%; --sign-rotate: -8deg; --sign-speed: 25s; }
.ambient-sign:nth-child(2) { top: 21%; right: 6%; --sign-rotate: 7deg; --sign-speed: 32s; }
.ambient-sign:nth-child(3) { top: 49%; left: 7%; --sign-rotate: 5deg; --sign-speed: 29s; }
.ambient-sign:nth-child(4) { top: 63%; right: 5%; --sign-rotate: -6deg; --sign-speed: 34s; }
.ambient-sign:nth-child(5) { bottom: 7%; left: 15%; --sign-rotate: 8deg; --sign-speed: 31s; }
.ambient-sign:nth-child(6) { bottom: 13%; right: 20%; --sign-rotate: -4deg; --sign-speed: 27s; }
.ambient-glyph { position: relative; display: block; width: 34px; height: 40px; color: currentColor; }
.ambient-sign--extinguisher .ambient-glyph {
  width: 20px;
  height: 36px;
  border: 4px solid currentColor;
  border-radius: 4px 4px 8px 8px;
}
.ambient-sign--extinguisher .ambient-glyph::before {
  position: absolute;
  top: -12px;
  left: 0;
  width: 15px;
  height: 8px;
  border: 4px solid currentColor;
  border-bottom: 0;
  content: "";
}
.ambient-sign--extinguisher .ambient-glyph::after {
  position: absolute;
  top: -8px;
  left: 13px;
  width: 16px;
  height: 12px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
  border-radius: 0 10px 0 0;
  content: "";
}
.ambient-sign--reel .ambient-glyph {
  width: 38px;
  height: 38px;
  border: 4px solid currentColor;
  border-radius: 50%;
}
.ambient-sign--reel .ambient-glyph::before {
  position: absolute;
  inset: 8px;
  border: 4px solid currentColor;
  border-radius: 50%;
  content: "";
}
.ambient-sign--reel .ambient-glyph::after {
  position: absolute;
  right: -14px;
  bottom: 1px;
  width: 22px;
  height: 4px;
  background: currentColor;
  transform: rotate(34deg);
  transform-origin: left center;
  content: "";
}
.ambient-sign--hydrant .ambient-glyph {
  width: 33px;
  height: 34px;
  border: 4px solid currentColor;
  border-radius: 4px;
}
.ambient-sign--hydrant .ambient-glyph::before,
.ambient-sign--hydrant .ambient-glyph::after {
  position: absolute;
  top: 8px;
  width: 9px;
  height: 9px;
  border: 4px solid currentColor;
  border-radius: 50%;
  content: "";
}
.ambient-sign--hydrant .ambient-glyph::before { left: -13px; }
.ambient-sign--hydrant .ambient-glyph::after { right: -13px; }
.ambient-sign--alarm .ambient-glyph {
  width: 38px;
  height: 38px;
  border: 4px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 5px transparent, 0 0 0 7px currentColor;
}
.ambient-sign--alarm .ambient-glyph::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  background: currentColor;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  content: "";
}
@keyframes ambient-drift {
  0% { translate: 0 0; rotate: 0deg; }
  48% { translate: 16px -22px; rotate: 2deg; }
  100% { translate: -12px 28px; rotate: -2deg; }
}

/* Header: two technical cable rails, compact navigation and active state. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 78px;
  padding: 12px max(24px, calc((100vw - 1440px) / 2));
  background: rgba(255,255,255,.93);
  border-bottom: 1px solid rgba(63,23,92,.13);
  box-shadow: 0 8px 24px rgba(35,22,43,.055);
  backdrop-filter: blur(18px) saturate(1.2);
}
.site-header::before,
.site-header::after {
  position: absolute;
  top: 0;
  height: 3px;
  content: "";
}
.site-header::before { left: 0; width: 58%; background: var(--signal-red); }
.site-header::after { right: 0; width: 42%; background: var(--evac-violet); }
.brand { gap: 12px; color: var(--graphite); }
.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  overflow: visible;
  background: var(--signal-red);
  border: 1px solid rgba(112,3,29,.28);
  border-radius: 6px;
  box-shadow: 5px 5px 0 var(--evac-violet-dark), 0 11px 22px rgba(70,25,85,.18);
  transform: translate(-2px,-2px);
  transition: transform .24s ease, box-shadow .24s ease;
}
.brand:hover .brand-mark { box-shadow: 2px 2px 0 var(--evac-violet-dark), 0 8px 16px rgba(70,25,85,.2); transform: translate(1px,1px); }
.brand-mark::after {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 12px;
  height: 12px;
  background: var(--evac-violet);
  border: 2px solid white;
  border-radius: 50%;
  content: "";
}
.brand-mark span { font-size: 19px; font-weight: 900; }
.brand-copy strong { color: var(--graphite); font-size: 15px; font-weight: 900; }
.brand-copy small { max-width: 400px; color: #746d78; font-size: 10px; font-weight: 650; line-height: 1.3; }
.site-nav { gap: 4px; }
.site-nav a {
  position: relative;
  min-height: 38px;
  padding: 8px 11px;
  color: #514a56;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 760;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
.site-nav a:hover { color: var(--evac-violet-dark); background: #f3edf7; transform: translateY(-1px); }
.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 11px;
  bottom: 3px;
  left: 11px;
  height: 2px;
  background: var(--signal-red);
  content: "";
}
.site-nav .nav-login {
  margin-left: 5px;
  color: white;
  background: var(--graphite);
  border: 1px solid var(--graphite);
  box-shadow: 0 6px 14px rgba(32,25,37,.13);
}
.site-nav .nav-login:hover { color: white; background: var(--evac-violet-dark); border-color: var(--evac-violet-dark); }
.menu-button { border-radius: 6px; }

/* Shared layout, typography and controls. */
.section { padding: 72px max(24px, calc((100vw - 1440px) / 2)); }
.eyebrow {
  gap: 9px;
  margin-bottom: 13px;
  color: var(--signal-red);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.eyebrow::before { width: 26px; height: 3px; background: currentColor; }
.button {
  position: relative;
  isolation: isolate;
  min-height: 46px;
  padding: 11px 17px;
  overflow: hidden;
  border-radius: 6px;
  font-size: .84rem;
  font-weight: 850;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(38,24,46,.1);
  transform: translateZ(0);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.button::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255,255,255,.14);
  transform: translateX(-105%) skewX(-16deg);
  transition: transform .42s ease;
  content: "";
}
.button:hover::after { transform: translateX(105%) skewX(-16deg); }
.button:hover { box-shadow: 0 12px 24px rgba(38,24,46,.16); transform: translateY(-2px); }
.button:active { box-shadow: 0 4px 10px rgba(38,24,46,.12); transform: translateY(1px); }
.button-red { background: var(--signal-red); }
.button-red:hover { background: var(--signal-red-dark); }
.button-violet { background: var(--evac-violet); }
.button-violet:hover { background: var(--evac-violet-dark); }
.button-outline { color: var(--evac-violet-dark); background: white; border-color: #cfc3d7; }
.button-outline:hover { color: var(--signal-red-dark); background: #fffafb; border-color: #c99baa; }
input, select {
  min-height: 48px;
  padding: 11px 13px;
  color: var(--graphite);
  background: rgba(255,255,255,.96);
  border: 1px solid #cec6d2;
  border-radius: 6px;
  font-size: .9rem;
  box-shadow: 0 1px 2px rgba(33,24,39,.035) inset;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
input:hover, select:hover { border-color: #a89bac; }
input:focus, select:focus { background: white; border-color: var(--evac-violet); box-shadow: 0 0 0 4px rgba(103,45,145,.12), 0 2px 4px rgba(33,24,39,.04) inset; }
label { gap: 7px; color: #554d5a; font-size: .75rem; font-weight: 800; }

/* Home hero and the animated 4x4 fire systems board. */
.hero {
  position: relative;
  min-height: 650px;
  grid-template-columns: minmax(0,1.08fr) minmax(360px,.72fr);
  gap: 84px;
  background: white;
  border-bottom: 1px solid var(--line-soft);
}
.hero::before {
  position: absolute;
  top: 58px;
  bottom: 58px;
  left: 0;
  width: 5px;
  background: linear-gradient(var(--signal-red) 0 54%, var(--evac-violet) 54% 100%);
  content: "";
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { max-width: 720px; margin-bottom: 20px; font-size: 3.15rem; }
.hero-lead { max-width: 690px; color: #4f4753; font-size: 1.12rem; line-height: 1.62; }
.hero-about {
  max-width: 720px;
  margin: 25px 0 29px;
  padding: 21px 23px;
  background: #faf8fb;
  border: 1px solid #ebe5ed;
  border-left: 4px solid var(--signal-red);
  border-radius: 0 6px 6px 0;
  box-shadow: 10px 12px 0 rgba(103,45,145,.035);
}
.hero-about p { color: #67606a; font-size: .92rem; line-height: 1.62; }
.hero-actions { gap: 12px; }
.board-wrap { width: min(100%, 480px); perspective: 1200px; }
.board-label { color: var(--evac-violet-dark); }
.fire-board {
  position: relative;
  gap: 7px;
  padding: 12px;
  background: #211724;
  border: 1px solid #120b14;
  border-radius: 7px;
  box-shadow: 14px 15px 0 var(--evac-violet), 27px 28px 0 rgba(210,15,55,.1), 0 34px 70px rgba(38,19,47,.24);
  transform: rotateX(2deg) rotateY(-3deg);
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .55s ease;
}
.board-wrap:hover .fire-board { box-shadow: 8px 9px 0 var(--evac-violet), 17px 18px 0 rgba(210,15,55,.14), 0 28px 58px rgba(38,19,47,.28); transform: rotateX(0) rotateY(0) translateY(-4px); }
.fire-board::after {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
  content: "";
}
.tile {
  position: relative;
  overflow: visible;
  background: var(--signal-red);
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 2px;
  box-shadow: 0 4px 9px rgba(11,5,13,.24), 0 1px 0 rgba(255,255,255,.24) inset;
  transform-style: preserve-3d;
  animation: none;
}
.tile::after {
  z-index: 3;
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.18), transparent 34% 72%, rgba(0,0,0,.08));
  pointer-events: none;
  content: "";
}
.tile-card { position: absolute; inset: 0; display: block; transform-style: preserve-3d; animation: none; }
.tile-side { position: absolute; inset: 0; display: grid; place-content: center; padding: 7px; text-align: center; background: var(--signal-red); border: 1px solid rgba(255,255,255,.76); backface-visibility: hidden; }
.tile-side--back { transform: rotateY(180deg); }
.tile b { font-size: 1.4rem; font-weight: 900; }
.tile small { max-width: 90px; margin-top: 6px; font-size: .66rem; line-height: 1.12; }
.tile.violet { background: var(--evac-violet); }
.tile.violet .tile-side { background: var(--evac-violet); }
.tile.light { color: var(--signal-red-dark); background: #fff; }
.tile.light .tile-side { background: #fff; }
@keyframes tile-turn {
  0%, 26% { transform: perspective(440px) rotateY(0deg); }
  34%, 64% { transform: perspective(440px) rotateY(180deg); }
  72%, 100% { transform: perspective(440px) rotateY(360deg); }
}
.signal-tile { padding: 0; overflow: visible; background: transparent; border: 0; animation: none; }
.signal-tile::after { display: none; }
.signal-card { position: absolute; inset: 0; display: block; transform-style: preserve-3d; }
.signal-card.is-turning { animation: none; }
.signal-face { position: absolute; inset: 0; display: grid; place-content: center; gap: 5px; padding: 6px; background: var(--signal-red); border: 1px solid rgba(255,255,255,.76); box-shadow: 0 4px 9px rgba(11,5,13,.24), 0 1px 0 rgba(255,255,255,.24) inset; backface-visibility: hidden; }
.signal-tile--violet .signal-face { background: var(--evac-violet); }
.signal-tile small { max-width: 92px; margin: 0; color: white; font-size: .62rem; font-weight: 900; line-height: 1.06; }
@keyframes signal-turn { 0% { transform: perspective(440px) rotateY(0deg); } 48% { transform: perspective(440px) rotateY(-90deg); filter: brightness(.8); } 52% { transform: perspective(440px) rotateY(90deg); filter: brightness(.8); } 100% { transform: perspective(440px) rotateY(0deg); } }
.signal-icon { position: relative; display: block; width: 40px; height: 40px; color: white; }
.signal-icon::before, .signal-icon::after { position: absolute; box-sizing: border-box; content: ""; }
.signal-icon.is-extinguisher::before { top: 6px; left: 14px; width: 13px; height: 27px; border: 3px solid currentColor; border-radius: 7px 7px 4px 4px; }
.signal-icon.is-extinguisher::after { top: 2px; left: 21px; width: 15px; height: 12px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; border-radius: 0 8px 0 0; }
.signal-icon.is-hydrant::before { top: 11px; left: 10px; width: 20px; height: 25px; border: 3px solid currentColor; border-radius: 5px 5px 2px 2px; }
.signal-icon.is-hydrant::after { top: 2px; left: 14px; width: 12px; height: 12px; border: 3px solid currentColor; border-radius: 50% 50% 2px 2px; box-shadow: -10px 15px 0 -4px currentColor, 10px 15px 0 -4px currentColor; }
.signal-icon.is-hose::before { top: 5px; left: 5px; width: 29px; height: 29px; border: 4px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 5px var(--signal-red); }
.signal-tile--violet .signal-icon.is-hose::before { box-shadow: inset 0 0 0 5px var(--evac-violet); }
.signal-icon.is-hose::after { right: 2px; bottom: 4px; width: 15px; height: 4px; background: currentColor; transform: rotate(43deg); transform-origin: right; }
.signal-icon.is-alarm::before { top: 7px; left: 7px; width: 26px; height: 26px; border: 3px solid currentColor; border-radius: 50%; }
.signal-icon.is-alarm::after { top: 16px; left: 16px; width: 8px; height: 8px; background: currentColor; border-radius: 50%; box-shadow: 0 -13px 0 -2px currentColor, 0 13px 0 -2px currentColor, -13px 0 0 -2px currentColor, 13px 0 0 -2px currentColor; }
.signal-icon.is-siren::before { top: 13px; left: 8px; width: 24px; height: 15px; border: 3px solid currentColor; border-bottom: 0; border-radius: 18px 18px 0 0; }
.signal-icon.is-siren::after { bottom: 5px; left: 5px; width: 30px; height: 4px; background: currentColor; box-shadow: 9px -23px 0 -1px currentColor, -8px -20px 0 -1px currentColor; }
.signal-icon.is-pump::before { top: 9px; left: 7px; width: 26px; height: 25px; border: 3px solid currentColor; border-radius: 3px; }
.signal-icon.is-pump::after { top: 14px; left: 12px; width: 7px; height: 7px; border: 2px solid currentColor; border-radius: 50%; box-shadow: 10px 0 0 -2px currentColor, 3px -11px 0 -1px currentColor; }
.signal-icon.is-telephone::before { top: -3px; left: 4px; color: currentColor; font-size: 43px; font-family: Arial, sans-serif; font-weight: 700; content: "\\260E"; }
.signal-icon.is-stairs::before { top: 3px; left: 7px; width: 26px; height: 31px; background: linear-gradient(to top right, transparent 0 31%, currentColor 32% 42%, transparent 43% 100%); clip-path: polygon(0 100%, 0 78%, 22% 78%, 22% 57%, 44% 57%, 44% 36%, 66% 36%, 66% 15%, 100% 15%, 100% 100%); }
.signal-icon.is-exit::before { top: 9px; left: 2px; font-family: Arial, sans-serif; font-size: 15px; font-weight: 900; letter-spacing: 0; content: "EXIT"; }
.signal-icon.is-exit::after { right: 2px; bottom: 6px; width: 16px; height: 3px; background: currentColor; transform: rotate(-36deg); }
.signal-icon.is-egress::before { top: 2px; left: 9px; font-family: Arial, sans-serif; font-size: 34px; font-weight: 700; content: "\\2197"; }
.signal-icon.is-arrow::before { top: -3px; left: 10px; font-family: Arial, sans-serif; font-size: 39px; font-weight: 700; content: "\\2193"; }

/* Search, public registry and explanatory surfaces. */
.search-zone { position: relative; background: rgba(255,255,255,.94); border-top: 0; border-bottom: 1px solid var(--line-soft); }
.search-zone-violet { background: #f1edf4; }
.search-zone:not(.search-zone-violet) .search-intro .eyebrow { color: var(--signal-red); }
.search-zone::before { position: absolute; top: 0; left: max(24px, calc((100vw - 1440px) / 2)); width: 78px; height: 4px; background: var(--signal-red); content: ""; }
.search-zone-violet::before { background: var(--evac-violet); }
.search-intro { max-width: 1160px; margin-bottom: 27px; }
.search-intro > p { color: #68616b; line-height: 1.6; }
.search-panel, .registry-filter {
  max-width: 1160px;
  padding: 17px;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  box-shadow: var(--panel-shadow);
}
.search-panel { position: relative; }
.search-panel::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--signal-red); opacity: .9; content: ""; }
.search-zone-violet .search-panel::after { background: var(--evac-violet); }
.search-panel--guided {
  display: grid;
  grid-template-columns: minmax(300px,1.35fr) minmax(410px,1fr) auto;
  gap: 15px;
  align-items: end;
}
.search-panel--guided .search-primary { font-size: .78rem; }
.search-panel--guided .search-primary input { min-height: 52px; font-size: .96rem; }
.search-refinements { display: grid; grid-template-columns: repeat(2,minmax(150px,1fr)); gap: 11px; }
.search-refinements label { gap: 5px; color: #625a65; font-size: .7rem; }
.optional-filter { color: #8c8490; font-size: .66rem; font-weight: 700; }
.search-panel--guided .button { min-height: 52px; white-space: nowrap; }
.process-section { position: relative; background: #211824; }
.process-section::before { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 78px, rgba(255,255,255,.018) 78px 79px); content: ""; pointer-events: none; }
.process-section h2 { color: white; }
.process-grid { position: relative; }
.process-grid article { transition: background-color .2s ease, transform .2s ease; }
.process-grid article:hover { background: rgba(255,255,255,.035); transform: translateY(-3px); }
.process-grid span { color: #ff93a7; }

.page-hero {
  position: relative;
  overflow: hidden;
  background: white;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero::before { position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--signal-red); content: ""; }
.page-hero.company { background: white; }
.page-hero.company::before { background: var(--evac-violet); }
.page-hero::after {
  position: absolute;
  right: max(24px, calc((100vw - 1440px) / 2));
  bottom: -35px;
  width: 180px;
  height: 180px;
  color: var(--signal-red);
  border: 22px solid currentColor;
  border-radius: 50%;
  opacity: .035;
  content: "";
}
.page-hero.company::after { color: var(--evac-violet); }
.page-hero:not(.company) .eyebrow { color: var(--signal-red); }
.page-hero h1 { max-width: 780px; font-size: 2.75rem; }
.page-hero p { max-width: 760px; color: #625b65; font-size: 1.02rem; }

/* Keep the page sequence recognisable through a restrained red/violet rhythm. */
.page-hero.home-hero::before,
.page-hero.technician-hero::before,
.page-hero.formation-hero::before { background: var(--signal-red); }
.page-hero.about-hero::before,
.page-hero.company-hero::before,
.page-hero.editorial-hero::before { background: var(--evac-violet); }
.page-hero.home-hero .eyebrow,
.page-hero.technician-hero .eyebrow,
.page-hero.formation-hero .eyebrow { color: var(--signal-red); }
.page-hero.about-hero .eyebrow,
.page-hero.company-hero .eyebrow,
.page-hero.editorial-hero .eyebrow { color: var(--evac-violet); }

.company-legal-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  align-items: start;
  margin: 24px 0 0;
  padding: 14px 18px;
  background: #f7f4f8;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--evac-violet);
  border-radius: 7px;
}
.company-legal-note .eyebrow { margin: 2px 0 0; color: var(--evac-violet); }
.company-legal-note p:last-child { max-width: 78ch; margin: 0; color: var(--graphite-soft); font-size: .86rem; line-height: 1.55; }

@media (max-width: 700px) {
  .company-legal-note { grid-template-columns: 1fr; gap: 6px; }
  .company-legal-note .eyebrow { margin: 0; }
}

/* R03: dashboard e documenti privati leggibili anche dopo l'accesso. */
.admin-page,
.admin-page button,
.admin-page input,
.admin-page select {
  font-size: 16px;
}
.admin-page .admin-status-card span,
.admin-page .admin-search,
.admin-page .admin-status-filter,
.admin-page .admin-results,
.admin-page .admin-request .admin-meta,
.admin-page .admin-request p,
.admin-page .admin-toolbar p {
  font-size: 14px;
  line-height: 1.45;
}
.admin-page .admin-state {
  font-size: 13px;
}
.admin-page .admin-request .button,
.admin-page .admin-role-tab,
.admin-page .admin-logout {
  font-size: 14px;
}
.private-documents-panel {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.private-document-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 17px;
}
.private-document-row {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: #faf8fc;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.private-document-row strong,
.private-document-empty {
  font-size: 16px;
}
.private-document-row span {
  color: var(--muted);
  font-size: 14px;
}
.private-document-upload label {
  font-size: 14px;
}
.private-document-upload input,
.private-document-upload select {
  font-size: 16px;
}
.benefits-section { max-width: 1280px; }
.benefit-grid { gap: 18px; }
.benefit {
  position: relative;
  min-height: 205px;
  padding: 27px 25px;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  box-shadow: var(--panel-shadow);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.benefit::before { position: absolute; top: -1px; right: 24px; left: 24px; height: 4px; background: var(--signal-red); content: ""; }
.company-benefits .benefit::before { background: var(--evac-violet); }
.benefit:hover { border-color: #cdbfd2; box-shadow: var(--panel-shadow-hover); transform: translateY(-5px); }
.benefit strong { font-size: .7rem; letter-spacing: .08em; }
.benefit p { color: #68616b; }
.enrollment-band {
  overflow: hidden;
  background: var(--signal-red);
  border-radius: 7px;
  box-shadow: 10px 11px 0 rgba(103,45,145,.18), 0 24px 50px rgba(93,23,50,.18);
}
.enrollment-band.company { background: var(--evac-violet); box-shadow: 10px 11px 0 rgba(210,15,55,.15), 0 24px 50px rgba(61,24,82,.2); }
.enrollment-band h2 { color: white; }
.enrollment-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.enrollment-actions .button { min-width: 170px; }
.registry-page { background: #f5f3f6; }
.registry-shell { max-width: 1280px; }
.registry-list { border-radius: 7px; box-shadow: var(--panel-shadow); }
.registry-card { min-height: 82px; border-left: 4px solid transparent; transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.registry-card:hover { background: #fbf9fc; border-left-color: var(--signal-red); transform: translateX(3px); }
.registry-shell.company .registry-card:hover { border-left-color: var(--evac-violet); }
.registry-badge { border-radius: 999px; }
.home-search-results { max-width: 1160px; margin: 22px auto 0; padding: 21px; background: white; border: 1px solid var(--line-strong); border-top: 4px solid var(--signal-red); border-radius: 7px; box-shadow: var(--panel-shadow); }
.home-search-results--company { border-top-color: var(--evac-violet); }
.home-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.home-results-head .eyebrow { margin: 0; color: var(--signal-red); }
.home-search-results--company .home-results-head .eyebrow { color: var(--evac-violet); }
.home-results-head > p:last-child { margin: 0; color: #625b65; font-weight: 700; }
.home-results-empty { margin: 0; padding: 18px 3px; color: #625b65; }

/* Registration, authentication and private area. */
.signup-page { background: #f3f0f5; }
.signup-page::before {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 112px, rgba(84,45,102,.025) 112px 113px);
  content: "";
  pointer-events: none;
}
.signup-summary {
  min-height: 570px;
  background: var(--graphite);
  border: 1px solid #312337;
  border-radius: 7px;
  box-shadow: 10px 11px 0 var(--evac-violet), 0 30px 62px rgba(36,20,43,.2);
}
.company-form .signup-summary { background: #291e30; box-shadow: 10px 11px 0 var(--signal-red), 0 30px 62px rgba(36,20,43,.2); }
.signup-summary::before {
  top: 0;
  right: 0;
  width: 42%;
  height: 5px;
  background: var(--signal-red);
  border-radius: 0;
  animation: none;
}
.signup-summary::after {
  right: 0;
  bottom: 0;
  left: auto;
  width: 58%;
  height: 5px;
  background: var(--evac-violet);
  border-radius: 0;
  filter: none;
  animation: none;
}
.signup-summary h1 { max-width: 520px; font-size: 2.7rem; line-height: 1.06; }
.signup-summary p { font-size: .9rem; }
.signup-summary .price-box { border-radius: 6px; }
.signup-form, .login-box {
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  box-shadow: var(--panel-shadow);
}
.signup-form h2 { font-size: 1.75rem; }
.signup-form fieldset { background: #faf8fb; border-radius: 7px; }
.signup-form .presidia-checklist label { border-radius: 4px; transition: color .15s ease, background-color .15s ease; }
.signup-form .presidia-checklist label:hover { color: var(--graphite); background: #f0e9f4; }
.signup-form .button-full { border-radius: 6px; }
.login-section { position: relative; }
.login-box { border-top: 4px solid var(--evac-violet); }
.login-box::before { display: none; }
.login-box h1 { font-size: 2.4rem; }
.login-box > .form-feedback:last-child { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.login-registration { display: grid; gap: 11px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.login-registration > p { margin: 0; color: #625b65; font-size: .88rem; font-weight: 800; }
.login-registration > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.login-registration .button { min-height: 44px; }
.private-shell { border-radius: 7px; box-shadow: var(--panel-shadow); }
.private-intro { background: #211d27; }
.private-panel { background: white; }
.private-intro h1 { font-size: 3rem; }
.private-status { border-radius: 999px; }

/* Content hub and legal pages. */
.news-section, .standalone-page { position: relative; background: #f5f3f6; }
.standalone-page .section-heading { max-width: 920px; }
.news-grid { max-width: 1180px; gap: 18px; }
.news-grid article {
  position: relative;
  min-height: 210px;
  padding: 27px;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  box-shadow: var(--panel-shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
.news-grid article::after { position: absolute; right: 23px; bottom: 20px; width: 28px; height: 4px; background: var(--evac-violet); content: ""; }
.news-grid article:hover { box-shadow: var(--panel-shadow-hover); transform: translateY(-5px); }

/* Administration and native confirmation popup. */
.admin-page { background: #f4f2f5; }
.admin-status-card, .admin-chart-card, .admin-insight-card, .admin-controls, .admin-request, .admin-history { border-radius: 7px; }
.admin-status-card:hover, .admin-request:hover { transform: translateY(-3px); }
.admin-confirm {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  border-top: 5px solid var(--signal-red);
  border-radius: 7px;
  box-shadow: 0 30px 90px rgba(21,13,26,.36), 8px 9px 0 rgba(103,45,145,.26);
  animation: dialog-in .24s cubic-bezier(.2,.8,.2,1);
}
.admin-confirm::backdrop { background: rgba(24,17,28,.66); backdrop-filter: blur(5px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Footer: legal copy remains prominent and fully readable. */
.site-footer {
  position: relative;
  z-index: 2;
  gap: 42px;
  padding: 44px max(24px, calc((100vw - 1440px) / 2));
  color: white;
  background: #1c171f;
  border-top: 0;
}
.site-footer::before,
.site-footer::after { position: absolute; top: 0; height: 4px; content: ""; }
.site-footer::before { left: 0; width: 58%; background: var(--signal-red); }
.site-footer::after { right: 0; width: 42%; background: var(--evac-violet); }
.footer-brand strong { color: white; font-size: 1rem; }
.footer-brand p, .footer-disclaimer { color: #d5cfd8; font-size: .78rem; line-height: 1.55; }
.footer-brand p { white-space: nowrap; }
.footer-disclaimer { max-width: 760px; }
.footer-links { gap: 9px; }
.footer-links a { position: relative; width: fit-content; color: #f4edf6; }
.footer-links a::after { position: absolute; right: 0; bottom: -2px; left: 0; height: 1px; background: var(--signal-red); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; content: ""; }
.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Progressive entrance: content stays visible without JavaScript. */
.js-ready .reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.js-ready .reveal-ready.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; gap: 54px; }
  .board-wrap { justify-self: center; }
  .site-nav { top: 78px; border-radius: 7px; box-shadow: 0 22px 52px rgba(35,22,43,.16); }
  .site-nav.open { display: flex; }
  .site-nav .nav-login { margin: 7px 0 0; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .search-panel--guided { grid-template-columns: 1fr auto; }
  .search-panel--guided .search-primary { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .section { padding: 52px 20px; }
  .site-header { min-height: 72px; padding: 11px 18px; }
  .brand-mark { width: 39px; height: 39px; box-shadow: 4px 4px 0 var(--evac-violet-dark), 0 8px 16px rgba(70,25,85,.15); }
  .brand-copy small { max-width: 205px; font-size: .55rem; }
  .hero { min-height: auto; gap: 43px; padding-top: 58px; padding-bottom: 66px; }
  .hero::before { top: 44px; bottom: 44px; width: 4px; }
  .hero h1 { font-size: 2.45rem; }
  .hero-lead { font-size: 1rem; }
  .hero-about { padding: 18px; }
  .hero-actions .button { width: 100%; }
  .fire-board { gap: 5px; padding: 8px; box-shadow: 8px 9px 0 var(--evac-violet), 16px 17px 0 rgba(210,15,55,.1), 0 24px 46px rgba(38,19,47,.22); transform: none; }
  .fire-board { grid-template-columns: repeat(3, 1fr); }
  .fire-board .tile:nth-child(n + 10) { display: none; }
  .tile b { font-size: 1rem; }
  .tile small { font-size: .54rem; }
  .signal-face { gap: 3px; padding: 4px; }
  .signal-icon { width: 32px; height: 32px; transform: scale(.84); }
  .signal-tile small { font-size: .5rem; }
  .enrollment-actions { width: 100%; justify-content: stretch; }
  .enrollment-actions .button { flex: 1 1 100%; }
  .home-search-results { padding: 17px; }
  .page-hero h1 { font-size: 2.2rem; }
  .benefit { min-height: 0; }
  .signup-summary { min-height: 0; padding: 31px 25px; box-shadow: 6px 7px 0 var(--evac-violet), 0 22px 48px rgba(36,20,43,.18); }
  .company-form .signup-summary { box-shadow: 6px 7px 0 var(--signal-red), 0 22px 48px rgba(36,20,43,.18); }
  .signup-summary h1, .private-intro h1 { font-size: 2.3rem; }
  .signup-form, .login-box { padding: 25px 20px; }
  .login-registration > div { grid-template-columns: 1fr; }
  .signup-form h2 { font-size: 1.55rem; }
  .site-footer { gap: 24px; padding: 38px 20px; }
  .footer-brand p { font-size: .57rem; }
  .ambient-sign { width: 58px; height: 58px; opacity: .025; }
  .ambient-sign:nth-child(odd) { display: none; }
  .search-panel--guided { grid-template-columns: 1fr; gap: 14px; }
  .search-panel--guided .search-primary { grid-column: auto; }
  .search-refinements { grid-template-columns: 1fr; }
  .search-panel--guided .button { width: 100%; }
}

/* Motion pass: restrained viewport reveals, group rhythm and tactile depth. */
.motion-reveal {
  --motion-x: 0px;
  --motion-y: 18px;
  opacity: 0;
  transform: translate3d(var(--motion-x), var(--motion-y), 0);
  transition: opacity .62s cubic-bezier(.22,.7,.2,1), transform .62s cubic-bezier(.22,.7,.2,1);
  transition-delay: var(--motion-delay, 0ms);
  will-change: opacity, transform;
}
.motion-reveal.motion-visible { opacity: 1; transform: translate3d(0, 0, 0); }
.benefit-grid > .motion-reveal:nth-child(odd),
.article-grid > .motion-reveal:nth-child(odd),
.formation-grid > .motion-reveal:nth-child(odd),
.registry-list > .motion-reveal:nth-child(odd) { --motion-x: -18px; }
.benefit-grid > .motion-reveal:nth-child(even),
.article-grid > .motion-reveal:nth-child(even),
.formation-grid > .motion-reveal:nth-child(even),
.registry-list > .motion-reveal:nth-child(even) { --motion-x: 18px; }
.benefit-grid > .motion-reveal,
.article-grid > .motion-reveal,
.formation-grid > .motion-reveal,
.registry-list > .motion-reveal,
.about-steps > .motion-reveal,
.about-value-grid > .motion-reveal,
.process-grid > .motion-reveal { transition-duration: .58s; }
.ambient-safety-field { transform: translateY(calc(var(--motion-scroll-shift, 0px) * -1)); transition: transform .25s linear; will-change: transform; }
.motion-reveal:hover { will-change: transform, opacity, box-shadow; }
.benefit.motion-visible:hover,
.article-grid article.motion-visible:hover,
.formation-grid article.motion-visible:hover,
.registry-card.motion-visible:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .motion-reveal,
  .motion-reveal.motion-visible { opacity: 1; transform: none; transition: none; will-change: auto; }
  .ambient-safety-field { transform: none; transition: none; }
}

/* Shared footer composition: identity and disclaimer on the left, links on the right. */
.footer-topline { grid-template-columns: minmax(0, 1fr) minmax(210px, 270px); gap: 22px 48px; }
.footer-brand { grid-column: 1; }
.footer-disclaimer { grid-column: 1; }
.footer-links { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; gap: 9px 20px; }
.footer-links a:last-child { grid-column: 1 / -1; }
.site-footer, .site-footer * { font-size: max(12px, 1em); }
.site-footer .footer-brand strong { font-size: 1.15rem; }
.site-footer .footer-brand p, .site-footer .footer-disclaimer { font-size: .82rem; }
.hero::before, .page-hero::before { display: none; }
.home-context-section { background: #f7f4f8; }
.home-context-section > .section-heading,
.home-context-grid,
.home-context-actions { width: 100%; max-width: var(--content-wide); }
.home-context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 26px auto 0; }
.home-context-grid article { padding: 22px; background: white; border: 1px solid var(--line-strong); border-top: 4px solid var(--signal-red); border-radius: 7px; box-shadow: var(--panel-shadow); }
.home-context-grid article:nth-child(2) { border-top-color: var(--evac-violet); }
.home-context-grid h3 { margin: 0 0 9px; }
.home-context-grid p { margin: 0; color: var(--graphite-soft); line-height: 1.6; }
.home-context-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px auto 0; }
:where(.form-hint, .eyebrow, .search-refinements label, .training-filters label, .training-admin-controls label) { font-size: max(12px, .75rem); }

@media (max-width: 700px) {
  .footer-topline { grid-template-columns: 1fr; gap: 14px; }
  .footer-brand, .footer-disclaimer, .footer-links { grid-column: 1; grid-row: auto; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-links a:last-child { grid-column: auto; }
  .home-context-grid { grid-template-columns: 1fr; }
}

/* Admin lifecycle actions: explicit contrast and keyboard focus. */
.admin-attention-alert {
  margin: 0;
  padding: 10px 22px;
  color: #7d1026;
  background: #fff0f2;
  border-bottom: 1px solid #efc3ca;
  border-left: 4px solid var(--signal-red);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.45;
}

.admin-state--archived {
  color: #5c5363;
  background: #eeeaf0;
  border-color: #d8d0dc;
}

.admin-state--removed {
  color: #7d1026;
  background: #ffe4e8;
  border-color: #efb8c3;
}

.admin-state--private {
  color: #5b4968;
  background: #f0ebf5;
  border-color: #d8c9e1;
}

.admin-association-stale {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 11px;
  color: #7d1026;
  background: #fff0f2;
  border: 1px solid #efc3ca;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
}

.admin-request .admin-actions .button {
  color: var(--violet-deep);
  background: #fff;
  border-color: #cdb9d8;
}

.admin-request .admin-actions .button.button-violet,
.admin-request .admin-actions .admin-approve-button,
.admin-request .admin-actions .admin-document-review-button {
  color: #fff;
  background: var(--evac-violet);
  border-color: var(--evac-violet);
}

.admin-request .admin-actions .button:hover,
.admin-request .admin-actions .button:focus-visible {
  color: #fff;
  background: var(--evac-violet-dark);
  border-color: var(--evac-violet-dark);
}

.admin-request .admin-actions .admin-suspend-button,
.admin-request .admin-actions .admin-remove-button {
  color: #fff;
  background: var(--signal-red);
  border-color: var(--signal-red-dark);
}

.admin-request .admin-actions .admin-suspend-button:hover,
.admin-request .admin-actions .admin-remove-button:hover,
.admin-request .admin-actions .admin-suspend-button:focus-visible,
.admin-request .admin-actions .admin-remove-button:focus-visible {
  color: #fff;
  background: var(--signal-red-dark);
  border-color: var(--signal-red-dark);
}

.admin-request .admin-actions .button:disabled,
.admin-request .admin-actions .button[aria-disabled="true"] {
  color: #817888;
  background: #eeeaf0;
  border-color: #d8d0dc;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.admin-remove-presidium-button {
  color: #8a1830 !important;
  background: #fff4f5 !important;
  border-color: #efb8c3 !important;
}

.admin-remove-presidium-button:hover,
.admin-remove-presidium-button:focus-visible {
  color: #fff !important;
  background: var(--signal-red) !important;
  border-color: var(--signal-red) !important;
}

.admin-presidium-unavailable {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 11px;
  color: #746a7d;
  background: #f3f0f4;
  border: 1px solid #d8d0dc;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.admin-request .admin-actions .button:focus-visible,
.admin-association .button:focus-visible {
  outline: 3px solid rgba(210, 15, 55, .38);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .admin-attention-alert { padding: 10px 18px; }
  .admin-association-stale { justify-content: center; text-align: center; }
}

/* Training catalogue: public discovery and manual admin workflow. */
.training-catalog { background: #f6f4f7; }
.training-catalog-heading, .training-admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; max-width: var(--content-wide); margin: 0 auto 26px; }
.training-catalog-heading h2, .training-admin-heading h2 { margin-bottom: 8px; }
.training-catalog-heading p:not(.eyebrow), .training-admin-heading p:not(.eyebrow) { max-width: 720px; margin-bottom: 0; color: var(--graphite-soft); }
.training-result-count { flex: 0 0 auto; color: var(--evac-violet); font-size: .9rem; }
.training-filters, .training-admin-controls { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, .8fr)) auto; gap: 12px; align-items: end; max-width: var(--content-wide); margin: 0 auto 24px; padding: 14px; background: white; border: 1px solid var(--line-strong); border-radius: 7px; box-shadow: var(--panel-shadow); }
.training-filters label, .training-admin-controls label, .training-editor-form label { display: grid; gap: 6px; color: #6f6675; font-size: .72rem; font-weight: 850; }
.training-filters input, .training-filters select, .training-admin-controls input, .training-admin-controls select, .training-editor-form input, .training-editor-form select, .training-editor-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: white; border: 1px solid #d6cbdc; border-radius: 5px; }
.training-filters input::placeholder, .training-admin-controls input::placeholder { color: #9b92a0; }
.training-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; max-width: var(--content-wide); margin: 0 auto; }
.result-pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: var(--content-wide); margin: 22px auto 0; padding: 12px 0; border-top: 1px solid var(--line-strong); }
.result-pager [data-page-summary] { color: var(--graphite-soft); font-size: .82rem; font-weight: 800; text-align: center; }
.result-pager .button { min-width: 116px; }
.result-pager .button:disabled { cursor: not-allowed; opacity: .52; }
.training-card { display: flex; min-width: 0; flex-direction: column; padding: 23px; background: white; border: 1px solid var(--line-strong); border-top: 4px solid var(--evac-violet); border-radius: 7px; box-shadow: var(--panel-shadow); }
.training-card:nth-child(2n) { border-top-color: var(--signal-red); }
.training-card-category, .training-status { display: inline-flex; width: fit-content; align-items: center; min-height: 24px; padding: 4px 8px; color: var(--evac-violet); background: var(--violet-pale); border-radius: 999px; font-size: .66rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.training-card h3 { margin: 14px 0 5px; font-size: 1.25rem; overflow-wrap: anywhere; }
.training-card-provider { margin-bottom: 18px; color: var(--graphite-soft); font-size: .86rem; font-weight: 800; }
.training-card dl { display: grid; grid-template-columns: minmax(88px, .45fr) minmax(0, 1.2fr); gap: 9px 15px; margin: 0; padding-top: 16px; border-top: 1px solid #ece7ef; }
.training-card dt { color: #817687; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.training-card dd { min-width: 0; margin: 0; color: #4d4453; font-size: .8rem; overflow-wrap: anywhere; }
.training-card-requirements { margin: 18px 0 0; padding: 11px 13px; color: #5e5363; background: #faf8fb; border-left: 3px solid var(--signal-red); font-size: .78rem; }
.training-card-requirements strong { color: var(--ink); }
.training-card-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; padding-top: 20px; }
.training-card-actions .button { min-height: 39px; font-size: .75rem; }
.training-state { max-width: var(--content-wide); margin: 18px auto 0; padding: 30px; background: white; border: 1px solid var(--line-strong); border-radius: 7px; text-align: center; }
.training-state strong { display: block; margin-bottom: 5px; font-size: 1.1rem; }
.training-state p { margin: 0 0 15px; color: var(--graphite-soft); }
.training-state--error { border-top: 4px solid var(--signal-red); }
.training-admin { max-width: var(--content-wide); margin: 45px auto 0; padding-top: 42px; border-top: 1px solid #ded4e3; }
.training-admin-heading { margin-bottom: 20px; }
.training-admin-controls { grid-template-columns: minmax(0, 1fr) 220px; box-shadow: none; }
.training-admin-list { display: grid; gap: 11px; }
.training-admin-card { padding: 18px 20px; background: white; border: 1px solid var(--line-strong); border-left: 4px solid var(--evac-violet); border-radius: 7px; box-shadow: var(--panel-shadow); }
.training-admin-card-top { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.training-admin-card h3 { margin: 8px 0 3px; font-size: 1.08rem; overflow-wrap: anywhere; }
.training-admin-card-top p { margin: 0; color: var(--graphite-soft); font-size: .78rem; }
.training-status--published { color: #116b55; background: #e8f7f1; }
.training-status--verified { color: #5b3b8e; background: #f0e8f8; }
.training-status--rejected, .training-status--archived { color: #9b2038; background: #fff0f2; }
.training-admin-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 15px; color: #716678; font-size: .75rem; font-weight: 800; }
.training-admin-card details { margin-top: 15px; border-top: 1px solid #eee9f1; }
.training-admin-card summary { padding-top: 13px; color: var(--evac-violet); cursor: pointer; font-size: .77rem; font-weight: 850; }
.training-admin-detail { display: grid; gap: 5px; padding: 12px 0 2px; color: #625769; font-size: .8rem; }
.training-admin-detail p { margin: 0; }
.training-admin-detail a { color: var(--evac-violet); text-decoration: underline; text-underline-offset: 3px; }
.training-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.training-admin-actions .button { min-height: 38px; padding: 8px 12px; font-size: .73rem; }
.button-danger { color: #a20f2b; background: #fff; border-color: #e7b9c3; }
.button-danger:hover { color: white; background: var(--signal-red); border-color: var(--signal-red); }
.training-editor { width: min(940px, calc(100% - 30px)); max-height: min(900px, calc(100vh - 30px)); padding: 0; color: var(--ink); background: #fbfafc; border: 0; border-radius: 9px; box-shadow: 0 28px 80px rgba(28,15,36,.32); }
.training-editor::backdrop { background: rgba(28,15,36,.66); backdrop-filter: blur(5px); }
.training-editor-form { padding: 28px; }
.training-editor-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.training-editor-heading h2 { margin: 0; }
.training-editor-heading .public-profile-close { position: static; flex: 0 0 auto; }
.training-editor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.training-editor-wide { grid-column: 1 / -1; }
.training-editor-form textarea { min-height: 86px; resize: vertical; }
.training-editor-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.training-editor-form .form-hint { margin: 18px 0 0; color: var(--graphite-soft); font-size: .78rem; }
.training-proposal { background: #fbfafc; }
.training-proposal-heading, .training-proposal-form { max-width: var(--content-wide); margin: 0 auto; }
.training-proposal-heading { margin-bottom: 24px; }
.training-proposal-heading p:not(.eyebrow) { max-width: 720px; color: var(--graphite-soft); }
.training-proposal-form { display: grid; gap: 14px; padding: 24px; background: white; border: 1px solid var(--line-strong); border-radius: 7px; box-shadow: var(--panel-shadow); }
.training-proposal-form label { display: grid; gap: 6px; color: #6f6675; font-size: .72rem; font-weight: 850; }
.training-proposal-form input, .training-proposal-form select, .training-proposal-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: white; border: 1px solid #d6cbdc; border-radius: 5px; }
.training-proposal-form textarea { resize: vertical; }
.training-proposal-form > .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.training-proposal-form .checkline { display: grid; grid-template-columns: 18px 1fr; align-items: start; color: var(--muted); font-size: 12px; font-weight: 600; }
.training-proposal-form .checkline input { width: 18px; min-height: 18px; margin-top: 2px; }
.training-proposal-form .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.training-proposal-turnstile { min-height: 65px; }
.training-proposals-admin { margin: 26px 0 30px; padding: 20px; background: #fbfafc; border: 1px solid var(--line-strong); border-radius: 7px; }
.training-proposals-admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.training-proposals-admin-heading h3 { margin: 5px 0; }
.training-proposals-admin-heading p:not(.eyebrow) { margin: 0; color: var(--graphite-soft); font-size: .8rem; }
.training-proposals-admin-list { display: grid; gap: 11px; }
.training-proposal-admin-card { display: grid; gap: 12px; padding: 16px; background: white; border: 1px solid var(--line-strong); border-left: 4px solid var(--signal-red); border-radius: 6px; }
.training-proposal-admin-card h4 { margin: 7px 0 3px; font-size: 1rem; }
.training-proposal-admin-card > div:first-child p { margin: 0; color: var(--graphite-soft); font-size: .78rem; }
.training-proposal-admin-card dl { display: grid; grid-template-columns: 88px 1fr; gap: 5px 12px; margin: 0; color: #625769; font-size: .8rem; }
.training-proposal-admin-card dt { font-weight: 850; }
.training-proposal-admin-card dd { margin: 0; overflow-wrap: anywhere; }
.training-proposal-admin-card a { color: var(--evac-violet); text-decoration: underline; }
.training-proposal-admin-card details { padding-top: 10px; border-top: 1px solid #eee9f1; color: #625769; font-size: .8rem; }
.training-proposal-admin-card details p { margin: 7px 0 0; }
.public-profile-logo-fallback { display: grid; width: 76px; height: 76px; flex: 0 0 76px; place-items: center; color: white; background: linear-gradient(145deg, var(--signal-red), var(--evac-violet)); border-radius: 8px; font-size: 1.35rem; font-weight: 900; letter-spacing: .06em; }

@media (max-width: 900px) {
  .training-proposal-form > .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .training-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .training-filters .training-search { grid-column: 1 / -1; }
  .training-list { grid-template-columns: 1fr; }
  .result-pager { align-items: stretch; flex-direction: column; gap: 8px; }
  .result-pager .button { width: 100%; }
  .training-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .training-proposal-form > .form-grid { grid-template-columns: 1fr; }
  .training-catalog-heading, .training-admin-heading { align-items: start; flex-direction: column; gap: 10px; }
  .training-filters, .training-admin-controls, .training-editor-grid { grid-template-columns: 1fr; }
  .training-filters .training-search, .training-editor-wide { grid-column: auto; }
  .training-filters .button, .training-admin-heading .button { width: 100%; }
  .training-admin-card-top { align-items: start; flex-direction: column; gap: 12px; }
  .training-admin-actions .button { flex: 1 1 100%; }
  .training-editor-form { padding: 21px; }
  .training-editor-actions { flex-direction: column-reverse; }
  .training-editor-actions .button { width: 100%; }
}

/* Shared identity: header and footer use the same horizontal brand lockup. */
.site-header .brand-copy { min-width: 0; }
.site-header .brand-copy strong { font-size: 1.15rem; }
.site-header .brand-copy small { max-width: 520px; font-size: .82rem; line-height: 1.35; }
.site-footer { display: block; padding-top: 38px; padding-bottom: 32px; }
.footer-topline { display: grid; grid-template-columns: minmax(300px, 1.05fr) minmax(360px, 1.6fr) auto; align-items: start; gap: 36px; }
.footer-brand { display: flex; min-width: 0; align-items: baseline; gap: 16px; }
.footer-brand strong { flex: 0 0 auto; font-size: 1.15rem; }
.footer-brand p { margin: 0; white-space: normal; font-size: .82rem; line-height: 1.35; }
.footer-links { display: grid; flex: 0 0 auto; grid-template-columns: 1fr; align-content: start; justify-items: start; gap: 9px; min-width: 120px; }
.footer-disclaimer { max-width: none; margin: 0; padding: 0; border: 0; font-size: .82rem; line-height: 1.55; }

/* Formation page. */
.formation-hero { background: white; }
.formation-hero::before { background: var(--evac-violet); }
.formation-page .formation-intro { padding-top: 64px; padding-bottom: 64px; }
.formation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: var(--content-wide); margin: 0 auto; }
.formation-grid article { display: flex; min-height: 245px; flex-direction: column; padding: 24px; background: white; border: 1px solid var(--line-strong); border-top: 4px solid var(--evac-violet); border-radius: 7px; box-shadow: var(--panel-shadow); }
.formation-grid article:nth-child(2) { border-top-color: var(--signal-red); }
.formation-number { color: var(--evac-violet); font-size: 1.8rem; font-weight: 900; line-height: 1; }
.formation-grid h3 { margin-top: 18px; }
.formation-grid p { flex: 1; color: var(--graphite-soft); font-size: .92rem; }
.formation-grid .article-source { width: fit-content; color: var(--evac-violet); font-size: .8rem; font-weight: 850; }
.formation-callout { display: flex; align-items: center; justify-content: space-between; gap: 32px; color: white; background: linear-gradient(120deg,#30163f,#642b86 60%,#8b1f46); }
.formation-callout h2 { color: white; }
.formation-callout p:not(.eyebrow) { max-width: 700px; color: rgba(255,255,255,.78); }
.formation-callout .eyebrow { color: #f3a6b5; }
@media (max-width: 700px) {
  .site-header .brand-copy strong { font-size: 1rem; }
  .site-header .brand-copy small { max-width: 220px; font-size: .6rem; }
  .footer-topline { grid-template-columns: 1fr; gap: 14px; }
  .footer-brand { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-links { justify-content: flex-start; }
  .formation-grid { grid-template-columns: 1fr; }
  .formation-hero { grid-template-columns: 1fr; gap: 24px; }
  .formation-hero-grid { width: 150px; justify-self: start; transform: rotate(-3deg); }
  .formation-callout { align-items: flex-start; flex-direction: column; }
  .formation-callout .button { width: 100%; }
}

/* Admin console: turn the first viewport into a clear operating surface. */
.admin-page {
  background:
    linear-gradient(180deg, rgba(255,255,255,.92) 0 13%, transparent 31%),
    radial-gradient(circle at 92% 4%, rgba(210,15,55,.08), transparent 24%),
    radial-gradient(circle at 5% 30%, rgba(103,45,145,.09), transparent 28%),
    #f4f2f6;
}
.admin-page .section { padding-top: 54px; padding-bottom: 86px; }
.admin-page .section { width: 100%; max-width: none; padding-right: max(24px, calc((100vw - 1440px) / 2)); padding-left: max(24px, calc((100vw - 1440px) / 2)); }
.admin-page .training-admin,
.admin-page .training-admin-heading,
.admin-page .training-proposals-admin,
.admin-page .training-admin-controls,
.admin-page .training-admin-list { width: 100%; max-width: none; }
.admin-topline { padding-bottom: 27px; border-bottom-color: rgba(68,39,83,.16); }
.admin-topline h1 { font-size: clamp(2.35rem, 4vw, 3.6rem); letter-spacing: -.02em; }
.admin-topline-note { display: grid; gap: 4px; min-width: 160px; padding: 16px 18px; color: white; background: linear-gradient(135deg,#27172f,#572477 68%,#8f2348); border-radius: 12px; box-shadow: 0 16px 30px rgba(58,24,75,.18); text-align: right; }
.admin-topline-note span { color: rgba(255,255,255,.7); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.admin-topline-note strong { font-size: 17px; letter-spacing: .03em; }
.admin-focus { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 24px 0 17px; padding: 25px 28px; color: white; background: linear-gradient(120deg,#30163f 0%,#5e2a83 54%,#8b1f46 125%); border-radius: 14px; box-shadow: 0 18px 34px rgba(55,24,71,.18); overflow: hidden; position: relative; }
.admin-focus::after { position: absolute; right: 8%; bottom: -72px; width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 18px rgba(255,255,255,.035), 0 0 0 36px rgba(255,255,255,.025); content: ""; pointer-events: none; }
.admin-focus .eyebrow { margin-bottom: 9px; color: #f3a6b5; }
.admin-focus h2 { position: relative; z-index: 1; margin: 0; color: white; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.admin-focus p:not(.eyebrow) { position: relative; z-index: 1; max-width: 650px; margin: 7px 0 0; color: rgba(255,255,255,.76); font-size: 14px; line-height: 1.5; }
.admin-focus-stat { position: relative; z-index: 1; display: grid; min-width: 145px; place-items: center; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.22); text-align: center; }
.admin-focus-stat strong { font-size: 3rem; line-height: 1; }
.admin-focus-stat span { max-width: 100px; margin-top: 7px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; line-height: 1.25; text-transform: uppercase; }
.admin-summary.admin-status-summary { gap: 12px; margin: 0 0 19px; }
.admin-status-card { min-height: 122px; padding: 19px 17px; }
.admin-status-card strong { font-size: 34px; }
.admin-analytics { gap: 17px; margin-bottom: 19px; }
.admin-chart-card, .admin-insight-card { min-height: 185px; padding: 23px; overflow: hidden; }
.admin-insight-card { grid-template-columns: 112px minmax(0, 1fr); }
.admin-insight-card > div:last-child { min-width: 0; }
.admin-insight-card h2, .admin-insight-card p { overflow-wrap: anywhere; }
.admin-controls { position: sticky; top: 90px; z-index: 5; grid-template-columns: minmax(210px, .8fr) minmax(260px, 1.35fr) minmax(210px, .8fr) auto; align-items: end; padding: 15px; background: rgba(255,255,255,.94); backdrop-filter: blur(15px); }
.admin-role-filter, .admin-status-filter { display: grid; gap: 6px; color: #736b7b; font-size: 11px; font-weight: 850; }
.admin-role-tabs { min-height: 48px; }
.admin-status-filter select { width: 100%; min-height: 48px; }
.admin-results { margin-top: 22px; font-size: 14px; }
.admin-list-header { display: grid; grid-template-columns: minmax(280px, 2fr) minmax(250px, 1fr) minmax(180px, .7fr) 24px; gap: 18px; padding: 0 22px 9px; color: #746a7d; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.admin-list { display: grid; grid-template-columns: 1fr; gap: 11px; }
.admin-request { display: block; padding: 0; }
.admin-request-details { min-width: 0; }
.admin-request-details > summary { list-style: none; }
.admin-request-details > summary::-webkit-details-marker { display: none; }
.admin-request-summary { position: relative; display: grid; grid-template-columns: minmax(280px, 2fr) minmax(250px, 1fr) minmax(180px, .7fr) 24px; gap: 15px; align-items: center; min-height: 68px; padding: 9px 22px; cursor: pointer; }
.admin-request-summary[type="button"] { width: 100%; color: inherit; text-align: left; background: transparent; border: 0; font: inherit; }
.admin-request-summary[type="button"]:focus-visible { outline: 3px solid var(--violet-deep); outline-offset: -3px; }
.admin-request-summary .admin-request-heading { display: grid; gap: 3px; }
.admin-request-summary .admin-request-heading small { color: var(--graphite-soft); font-size: 12px; font-weight: 700; }
.admin-profile-detail { width: min(100% - 36px, 680px); }
.admin-detail-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 18px 0; }
.admin-detail-summary p { margin: 0; }
.admin-inline-detail {
  margin: 0 14px 14px;
  padding: 18px;
  background: #fbf9fc;
  border: 1px solid #e3d8e9;
  border-radius: 7px;
  overflow: auto;
}
.admin-inline-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3d8e9;
}
.admin-inline-detail-heading h3 { margin: 0; overflow-wrap: anywhere; font-size: 1.25rem; }
.admin-inline-detail > .admin-request { position: static; min-height: 0; padding: 0; overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; transform: none; }
.admin-inline-detail > .admin-request::before { display: none; }
.admin-inline-detail > .admin-request:hover { transform: none; box-shadow: none; }
.admin-inline-detail .admin-request-details { display: block; }
.admin-inline-detail .admin-request-details > summary { display: none; }
.admin-inline-detail .admin-request-detail-content { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); gap: 14px 18px; padding: 0; }
.admin-inline-detail .admin-request-detail-content > .admin-meta { grid-column: 1 / -1; padding: 0 0 10px; border-bottom: 1px solid #e3d8e9; }
.admin-inline-detail .admin-request-detail-content > .admin-presidia,
.admin-inline-detail .admin-request-detail-content > .admin-documents { min-width: 0; margin: 0; padding: 14px; background: #fff; border: 1px solid #e3d8e9; border-radius: 6px; }
.admin-inline-detail .admin-request-detail-content > .admin-actions { grid-column: 1 / -1; align-items: center; margin: 0; padding-top: 14px; border-top: 1px solid #e3d8e9; }
.admin-inline-detail .admin-document-item { min-width: 0; }
.admin-inline-detail .admin-request--technician .admin-request-detail-content {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .85fr);
  align-items: start;
  font-size: .92rem;
  line-height: 1.5;
}
.admin-inline-detail .admin-request--technician .admin-request-detail-content h4,
.admin-inline-detail .admin-request--technician .admin-request-detail-content h3 { font-size: 1rem; line-height: 1.35; }
.admin-inline-detail .admin-request--technician .admin-request-detail-content .form-hint,
.admin-inline-detail .admin-request--technician .admin-request-detail-content .admin-document-meta,
.admin-inline-detail .admin-request--technician .admin-request-detail-content .admin-document-history li { font-size: .86rem; line-height: 1.5; }
.admin-inline-detail .admin-request--technician .admin-detail-summary,
.admin-inline-detail .admin-request--technician .admin-request-detail-content > .admin-meta,
.admin-inline-detail .admin-request--technician .admin-request-detail-content > .admin-document-history,
.admin-inline-detail .admin-request--technician .admin-request-detail-content > .admin-notes,
.admin-inline-detail .admin-request--technician .admin-request-detail-content > .admin-actions { grid-column: 1 / -1; }
.admin-inline-detail .admin-request--technician .admin-request-detail-content > .admin-presidia { grid-column: 1; grid-row: 3; }
.admin-inline-detail .admin-request--technician .admin-request-detail-content > .admin-documents { grid-column: 2; grid-row: 3; }
.admin-inline-detail .admin-request--technician .admin-request-detail-content > .admin-document-history { grid-row: 4; }
.admin-inline-detail .admin-request--technician .admin-request-detail-content > .admin-notes { grid-row: 5; }
.admin-inline-detail .admin-request--technician .admin-request-detail-content > .admin-actions { grid-row: 6; }
.admin-inline-detail .admin-detail-feedback:empty { display: none; }
.admin-payment-prerequisite { flex-basis: 100%; color: #8f1f28; }
.admin-request--expanded > .admin-request-summary { background: #fcf9fd; }
.admin-request-summary::after { display: grid; width: 24px; height: 24px; place-items: center; color: var(--violet-deep); border: 1px solid #d9cae2; border-radius: 50%; content: "+"; font-size: 17px; font-weight: 650; line-height: 1; }
.admin-request-details[open] > .admin-request-summary { background: #fcf9fd; border-bottom: 1px solid #eadff0; }
.admin-request-details[open] > .admin-request-summary::after { content: "-"; background: var(--violet-deep); color: #fff; border-color: var(--violet-deep); }
.admin-request-summary > * { min-width: 0; }
.admin-request-heading { min-width: 0; }
.admin-request-heading h3 { overflow-wrap: anywhere; font-size: 18px; }
.admin-request-heading p { overflow-wrap: anywhere; }
.admin-request-summary .admin-request-heading p { margin-top: 2px; font-size: 12px; }
.admin-request-summary .admin-state { min-height: 24px; padding: 4px 8px; font-size: 10px; }
.admin-request-summary .admin-state-line { min-height: 24px; }
.admin-request-summary .admin-state-line time { font-size: 10px; }
.admin-request-summary .admin-meta { font-size: 12px; }
.admin-request-detail-content { display: grid; gap: 15px; padding: 19px 22px 22px; }
.admin-request-detail-content > .admin-meta { margin: 0; padding: 0 0 11px; border-bottom: 1px solid var(--line); }
.admin-request-detail-content .admin-documents,
.admin-request-detail-content .admin-association,
.admin-request-detail-content .admin-actions { margin-top: 0; }
.admin-state-line { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-height: 27px; }
.admin-state-line time { color: #756b7c; font-size: 11px; font-weight: 750; white-space: nowrap; }
.admin-association { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 14px; }
.admin-technician-picker { display: grid; min-width: 0; gap: 7px; }
.admin-technician-search { display: grid; gap: 5px; color: var(--graphite-soft); font-size: .7rem; font-weight: 850; }
.admin-technician-search input { min-height: 38px; }
.admin-technician-picker select { min-width: 0; min-height: 40px; }
.admin-technician-picker-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-technician-picker-nav span { min-width: 0; color: var(--graphite-soft); font-size: .7rem; font-weight: 750; text-align: center; }
.admin-technician-picker-nav .button { min-height: 32px; padding: 5px 8px; font-size: .7rem; }
.admin-association-confirmed { display: inline-flex; min-height: 38px; align-items: center; padding: 8px 11px; color: #0d6853; background: #e8f8f1; border: 1px solid #c2e9da; border-radius: 8px; font-size: 12px; font-weight: 850; white-space: nowrap; }
.admin-request .admin-actions .button.admin-suspend-button { color: #fff !important; background: var(--signal-red) !important; border-color: var(--signal-red-dark) !important; box-shadow: 0 7px 16px rgba(196,21,50,.25) !important; }
.admin-request .admin-actions .button.admin-suspend-button:hover { color: #fff !important; background: #a9082b !important; border-color: #8f0625 !important; }
.admin-contact-profile-button { color: var(--violet-deep) !important; background: #fff !important; border-color: #cdb9d8 !important; }

/* Secondary copy needs enough scale and breathing room to support the heading. */
.registration-review form,
.public-profile-dialog-shell,
.admin-confirm form,
.training-editor-form {
  color: var(--ink);
}
.registration-review .eyebrow,
.public-profile-dialog .eyebrow,
.admin-confirm .eyebrow,
.training-editor-form .eyebrow {
  margin-bottom: 14px;
}
.registration-review h2,
.public-profile-dialog h2,
.admin-confirm h2,
.training-editor-form h2 {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.12;
}
.registration-review .form-hint,
.public-profile-dialog .form-hint,
.admin-confirm .form-hint,
.training-editor-form .form-hint,
.private-panel .form-hint {
  max-width: 62ch;
  margin: 15px 0 24px;
  color: #665b70;
  font-size: .92rem;
  line-height: 1.58;
}
.registration-review[data-registration-sent] .form-hint {
  max-width: none;
  margin-top: 16px;
  margin-bottom: 26px;
  text-align: justify;
  text-justify: inter-word;
}
.registration-review-actions {
  margin-top: 26px;
}

/* Public registry: dense result rows that remain scannable at scale. */
.registry-card { min-height: 0; padding: 11px 14px; align-items: center; }
.registry-card-details { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(180px, 1fr) auto auto; align-items: center; gap: 12px 16px; min-width: 0; }
.registry-card-identity { min-width: 0; }
.registry-card-category { margin-bottom: 1px !important; color: var(--violet-deep) !important; font-size: 10px !important; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.registry-card h3 { overflow-wrap: anywhere; font-size: 16px; }
.registry-card-meta { overflow-wrap: anywhere; font-size: 12px !important; }
.registry-card-services { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0; }
.registry-card-services span { padding: 3px 6px; font-size: 10px; line-height: 1.2; }
.registry-card-social { min-width: max-content; }
.registry-card-actions { margin-top: 0; white-space: nowrap; }
.registry-card-actions .button { min-height: 34px; padding: 7px 10px; }
.public-profile-heading { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 16px; margin-bottom: 16px; }
.public-profile-heading h2 { margin-bottom: 4px; }
.public-profile-logo { width: 76px; height: 76px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.public-profile-social { min-height: 20px; }
.public-profile-linkedin { color: var(--evac-violet); font-size: 13px; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }

/* Public contact cards: give the identity and the declared scope distinct visual zones. */
.public-profile-dialog { width: min(94vw, 700px); max-height: min(90vh, 680px); overflow: auto; }
.public-profile-dialog-shell { padding: 30px 34px 34px; border-top: 5px solid var(--signal-red); }
.public-profile-dialog[data-profile-kind="company"] .public-profile-dialog-shell { border-top-color: var(--evac-violet); }
.public-profile-heading { grid-template-columns: 92px minmax(0, 1fr); gap: 20px; align-items: center; margin: 0 0 24px; padding: 4px 0 24px; border-bottom: 1px solid #e7ddea; }
.public-profile-heading h2 { margin: 4px 0 6px; font-size: 2.4rem; line-height: 1.02; letter-spacing: 0; }
.public-profile-heading .eyebrow { margin: 0; }
.public-profile-meta { margin: 0; font-size: 1rem; }
.public-profile-logo,
.public-profile-logo-fallback { width: 92px; height: 92px; border-radius: 12px; }
.public-profile-logo { border-color: #ddd0e4; box-shadow: 0 8px 18px rgba(54,29,68,.08); }
.public-profile-logo-fallback { font-size: 1.5rem; }
.public-profile-services-block { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; padding: 20px 0; border-bottom: 1px solid #e7ddea; }
.public-profile-section-label { margin: 3px 0 0; color: var(--graphite-soft); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.public-profile-services-block .registry-card-services { gap: 8px; margin: 0; }
.public-profile-services-block .registry-card-services span { padding: 8px 10px; color: var(--ink); background: #f8f3fb; border: 1px solid #dfd0e8; border-radius: 6px; font-size: .82rem; line-height: 1.3; }
.public-profile-services-block .public-profile-empty { margin: 0; }
.public-profile-dialog [data-open-contact] { min-width: 190px; margin-top: 24px; }
.public-profile-close { z-index: 1; }
@media (max-width: 850px) {
  .registry-card-details { grid-template-columns: minmax(0, 1.2fr) minmax(140px, 1fr) auto; }
  .registry-card-social { grid-column: 2; }
  .registry-card-actions { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 700px) {
  .admin-page .section { padding-top: 32px; padding-bottom: 56px; }
  .admin-topline-note { display: none; }
  .admin-focus { align-items: stretch; flex-direction: column; gap: 18px; padding: 21px; }
  .admin-focus-stat { justify-items: start; grid-template-columns: auto 1fr; gap: 12px; min-width: 0; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.22); border-left: 0; text-align: left; }
  .admin-focus-stat strong { font-size: 2.3rem; }
  .admin-focus-stat span { max-width: none; align-self: center; margin: 0; }
  .admin-controls { position: static; }
  .admin-controls { grid-template-columns: 1fr; }
  .admin-role-filter, .admin-search, .admin-status-filter { width: 100%; }
  .admin-insight-card { grid-template-columns: 84px minmax(0, 1fr); }
  .admin-list-header { display: none; }
  .admin-request-summary { grid-template-columns: minmax(0, 1fr) 24px; gap: 9px 14px; align-items: start; padding: 17px 18px; }
  .admin-detail-summary { grid-template-columns: 1fr; }
  .admin-request-summary .admin-state-line { grid-column: 1 / -1; grid-row: 2; align-items: flex-start; justify-content: flex-start; }
  .admin-request-summary .admin-meta { grid-column: 1; grid-row: 3; }
  .admin-request-summary::after { grid-column: 2; grid-row: 1; }
  .admin-state-line { align-items: flex-start; flex-direction: column; justify-content: flex-start; gap: 5px; }
  .admin-request-detail-content { padding: 17px 18px 19px; }
  .admin-association { grid-template-columns: 1fr; }
  .admin-technician-picker { width: 100%; }
  .admin-inline-detail { margin: 0 8px 8px; padding: 14px; }
  .admin-inline-detail-heading { flex-direction: column; }
  .admin-inline-detail-heading .button { width: 100%; }
  .admin-inline-detail .admin-request-detail-content { grid-template-columns: minmax(0, 1fr); }
  .admin-inline-detail .admin-request-detail-content > .admin-meta,
  .admin-inline-detail .admin-request-detail-content > .admin-actions,
  .admin-inline-detail .admin-request--technician .admin-detail-summary,
  .admin-inline-detail .admin-request--technician .admin-request-detail-content > .admin-presidia,
  .admin-inline-detail .admin-request--technician .admin-request-detail-content > .admin-documents,
  .admin-inline-detail .admin-request--technician .admin-request-detail-content > .admin-document-history,
  .admin-inline-detail .admin-request--technician .admin-request-detail-content > .admin-notes,
  .admin-inline-detail .admin-request--technician .admin-request-detail-content > .admin-actions { grid-column: auto; grid-row: auto; }
  .admin-association .button, .admin-association-confirmed { width: 100%; justify-content: center; }
  .registry-card { padding: 12px 14px; }
  .registry-card-details { grid-template-columns: 1fr auto; gap: 7px 10px; }
  .registry-card-services { grid-column: 1 / -1; }
  .registry-card-social { grid-column: 1; }
  .registry-card-actions { grid-column: 2; grid-row: auto; }
  .public-profile-heading { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
  .public-profile-logo { width: 60px; height: 60px; }
  .public-profile-dialog-shell { padding: 25px 22px 26px; }
  .public-profile-heading { grid-template-columns: 70px minmax(0, 1fr); gap: 14px; padding-bottom: 20px; }
  .public-profile-logo,
  .public-profile-logo-fallback { width: 70px; height: 70px; }
  .public-profile-heading h2 { font-size: 2rem; }
  .public-profile-services-block { grid-template-columns: 1fr; gap: 8px; padding: 17px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-sign, .tile-card, .signal-card, .admin-confirm { animation: none !important; }
  .js-ready .reveal-ready { opacity: 1; transform: none; }
}

/* Shared page-heading alignment: keep Home consistent with internal pages. */
.hero {
  align-items: start;
  padding-top: clamp(54px, 7vw, 96px);
  padding-bottom: clamp(54px, 7vw, 96px);
}
.hero-copy { transform: none; }
.hero h1 { max-width: 780px; font-size: 2.75rem; }
@media (max-width: 700px) {
  .hero { padding-top: 52px; padding-bottom: 52px; }
  .hero h1 { font-size: 2.2rem; }
}

/* 2026 editorial and interaction refinement. */
body { font-size: 16px; line-height: 1.58; }
h1 { font-size: 2.65rem; line-height: 1.08; }
h2 { font-size: 1.78rem; line-height: 1.16; }
h3 { font-size: 1.08rem; line-height: 1.28; }
p { line-height: 1.64; }
.hero h1 { max-width: 690px; font-size: 2.82rem; }
.hero-lead { font-size: 1.05rem; }
.page-hero h1 { font-size: 2.35rem; }
.page-hero p { font-size: 1rem; }
.signup-summary h1 { font-size: 2.28rem; }
.login-box h1 { font-size: 2.08rem; }
.private-intro h1 { font-size: 2.55rem; }
.private-panel-head h2 { font-size: 1.95rem; }
.eyebrow { font-size: .72rem; }
.button { font-size: .86rem; }
label { font-size: .78rem; }

.brand-copy small { max-width: none; color: var(--graphite); font-size: .64rem; font-weight: 800; white-space: nowrap; }
.footer-brand p { color: white; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.footer-disclaimer { margin: 0; padding-left: 0; border-left: 0; }
.site-footer { grid-template-columns: minmax(470px,.9fr) minmax(330px,1fr) auto; align-items: start; }
.footer-links { min-width: 100px; }

.button-red { background: var(--signal-red); box-shadow: 0 9px 20px rgba(175,12,48,.2); }
.button-violet { background: var(--evac-violet); box-shadow: 0 9px 20px rgba(79,31,109,.2); }
.enrollment-actions .button-red, .enrollment-actions .button-violet { color: white; border-color: transparent; }

.ambient-sign { width: 70px; height: 70px; opacity: .065; animation-duration: var(--sign-speed, 36s); }
.ambient-safety-field::before, .ambient-safety-field::after { position: absolute; left: -10%; width: 120%; height: 1px; pointer-events: none; content: ""; }
.ambient-safety-field::before { top: 31%; background: repeating-linear-gradient(90deg, rgba(210,15,55,.09) 0 14px, transparent 14px 27px); transform: rotate(-4deg); animation: ambient-cable 34s linear infinite; }
.ambient-safety-field::after { top: 72%; background: repeating-linear-gradient(90deg, rgba(103,45,145,.08) 0 18px, transparent 18px 34px); transform: rotate(3deg); animation: ambient-cable 42s linear infinite reverse; }
@keyframes ambient-cable { from { translate: -7% 0; } to { translate: 7% 0; } }

.board-wrap { width: min(100%, 490px); }
.board-console { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.board-console .board-label { margin: 0; text-align: left; }
.board-console > span { display: flex; align-items: center; gap: 5px; color: #64586b; font-size: .68rem; font-weight: 900; }
.board-console i { display: block; width: 6px; height: 6px; background: var(--signal-red); border-radius: 50%; box-shadow: 0 0 0 3px rgba(210,15,55,.09); animation: status-pulse 3.4s ease-in-out infinite; }
.board-console i:nth-child(2) { background: var(--evac-violet); animation-delay: 1.1s; }
.board-console i:nth-child(3) { background: var(--safety-green); animation-delay: 2.2s; }
@keyframes status-pulse { 0%, 72%, 100% { opacity: .45; } 82% { opacity: 1; box-shadow: 0 0 0 5px rgba(210,15,55,.08); } }
.fire-board { overflow: hidden; transform: rotateX(1deg) rotateY(-2deg); }
.fire-board::before { position: absolute; top: -35%; bottom: -35%; left: -38%; z-index: 5; width: 18%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent); transform: rotate(12deg); pointer-events: none; content: ""; animation: panel-scan 10s ease-in-out infinite; }
@keyframes panel-scan { 0%, 18% { translate: 0 0; opacity: 0; } 24% { opacity: .45; } 54% { translate: 740% 0; opacity: .45; } 60%, 100% { translate: 740% 0; opacity: 0; } }
.tile { overflow: hidden; cursor: default; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease; }
.tile:focus-visible { outline: 3px solid rgba(255,255,255,.9); outline-offset: -5px; }
.tile.is-active { z-index: 6; border-color: white; box-shadow: 0 8px 18px rgba(12,5,15,.32), 0 0 0 2px rgba(255,255,255,.35); filter: brightness(1.08); transform: translateY(-3px) scale(1.035); }
.tile-side--back { display: none; }
.board-note { min-height: 31px; margin: 13px 0 0; padding: 7px 11px; color: #514756; background: rgba(255,255,255,.82); border-left: 3px solid var(--signal-red); font-size: .76rem; font-weight: 800; text-align: left; transition: color .2s ease, border-color .2s ease; }

.optional-field { display: inline-block; margin-left: 5px; color: #8c8490; font-size: .68rem; font-weight: 700; }
.linkedin-field { position: relative; }
.linkedin-field::after { position: absolute; right: 12px; bottom: 13px; color: var(--evac-violet); font-size: .72rem; font-weight: 900; content: "in"; }
.linkedin-field input { padding-right: 38px; }
.registry-social-link, .admin-linkedin { display: inline-flex; width: fit-content; margin-top: 7px; color: var(--evac-violet); font-size: .74rem; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }

.about-page, .editorial-page { background: #f6f4f7; }
.about-introduction, .about-boundary { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(420px,1.2fr); gap: 70px; align-items: start; background: white; }
.about-introduction h2, .about-boundary h2 { max-width: 520px; }
.about-copy { display: grid; gap: 13px; }
.about-copy p, .about-boundary p { margin: 0; color: #5f5762; font-size: .98rem; }
.about-workflow { background: #231826; color: white; }
.about-workflow h2, .about-workflow h3 { color: white; }
.about-workflow .section-heading p:last-child { color: #d3cad5; }
.about-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); max-width: 1280px; margin: 30px auto 0; border-top: 1px solid rgba(255,255,255,.16); }
.about-steps article { min-height: 235px; padding: 27px 24px; border-right: 1px solid rgba(255,255,255,.14); }
.about-steps article:last-child { border-right: 0; }
.about-steps span { display: block; margin-bottom: 22px; color: #ff9aad; font-size: .76rem; font-weight: 900; }
.about-steps p { margin: 0; color: #d7ced9; font-size: .88rem; }
.about-value { background: #f6f4f7; }
.about-value-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; max-width: 1180px; margin: 28px auto 0; border-top: 1px solid #d9d2dc; border-bottom: 1px solid #d9d2dc; }
.about-value-grid article { padding: 27px; border-right: 1px solid #d9d2dc; }
.about-value-grid article:last-child { border-right: 0; }
.about-value-grid article::before { display: block; width: 36px; height: 4px; margin-bottom: 20px; background: var(--signal-red); content: ""; }
.about-value-grid article:nth-child(2)::before { background: var(--evac-violet); }
.about-value-grid article:nth-child(3)::before { background: var(--signal-red); }
.about-value-grid p { margin: 0; color: #625a65; font-size: .9rem; }
.regulation-focus { display: grid; grid-template-columns: 210px minmax(0,760px); justify-content: center; gap: 60px; align-items: center; color: white; background: var(--evac-violet-dark); }
.regulation-focus h2 { color: white; }
.regulation-focus p { color: #ded3e4; }
.regulation-focus .eyebrow { color: #ff9aad; }
.regulation-date { display: flex; align-items: center; gap: 14px; padding: 24px 0; border-top: 4px solid var(--signal-red); border-bottom: 1px solid rgba(255,255,255,.22); }
.regulation-date strong { color: white; font-size: 4.8rem; line-height: .85; }
.regulation-date span { color: #e8deeb; font-size: .86rem; font-weight: 850; line-height: 1.25; text-transform: uppercase; }
.regulation-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.about-boundary { border-top: 5px solid var(--signal-red); }

.editorial-hero::before { background: var(--evac-violet); }
.editorial-hero .eyebrow { color: var(--evac-violet); }
.featured-article { display: grid; grid-template-columns: 210px minmax(0,780px); justify-content: center; gap: 56px; align-items: center; color: white; background: #241827; }
.featured-article h2 { color: white; font-size: 2rem; }
.featured-article p:not(.article-meta) { color: #d9cfdb; }
.featured-date { padding: 24px 0; border-top: 4px solid var(--signal-red); border-bottom: 1px solid rgba(255,255,255,.2); }
.featured-date strong, .featured-date span { display: block; }
.featured-date strong { color: white; font-size: 3.7rem; line-height: 1; }
.featured-date span { margin-top: 5px; color: #c9adcf; font-size: 1.1rem; font-weight: 900; }
.article-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 13px; color: #8c818f; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.article-meta span { color: var(--signal-red); }
.featured-article .article-meta { color: #bfb0c2; }
.featured-article .article-meta span { color: #ff8ca2; }
.article-source { display: inline-flex; width: fit-content; margin-top: 17px; color: var(--evac-violet); font-size: .78rem; font-weight: 850; border-bottom: 2px solid currentColor; }
.featured-article .article-source { color: white; }
.article-library { background: #f6f4f7; }
.article-library-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; max-width: 1180px; margin: 0 auto 27px; }
.article-tabs { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px; background: white; border: 1px solid var(--line-strong); border-radius: 6px; }
.article-tabs button { min-height: 36px; padding: 7px 12px; color: #635b66; background: transparent; border: 0; border-radius: 4px; font-size: .74rem; font-weight: 850; cursor: pointer; }
.article-tabs button.active { color: white; background: var(--evac-violet); }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; color: white; background: var(--evac-violet); border-radius: 4px; transform: translateY(-180%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); outline: 3px solid var(--signal-red); outline-offset: 3px; }
.article-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; max-width: 1180px; margin: auto; }
.article-grid article { position: relative; display: flex; min-height: 280px; flex-direction: column; padding: 26px; background: white; border: 1px solid var(--line-strong); border-top: 4px solid var(--signal-red); border-radius: 7px; box-shadow: var(--panel-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.article-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title action" "title image"; gap: 10px 15px; align-items: start; margin-bottom: 15px; }
.article-card-head h3 { grid-area: title; align-self: start; margin: 0; }
.article-card-head .news-card-action { grid-area: action; align-self: start; margin: 0; }
.article-card-picture { display: block; grid-area: image; width: 86px; height: 86px; }
.article-card-image { width: 86px; height: 86px; object-fit: cover; object-position: center; margin: 0; border-radius: 7px; border: 1px solid var(--line-strong); }
.article-card-published, .article-detail-published { display: block; margin: -5px 0 14px; color: #6f6675; font-size: .68rem; font-weight: 800; }
.article-grid article > p:not(.article-meta), .article-grid details p { text-align: justify; hyphens: auto; }
.article-grid details { margin-top: 15px; color: #645c67; font-size: .84rem; }
.article-grid details summary { color: var(--evac-violet); cursor: pointer; font-weight: 850; }
.article-grid details p { margin: 10px 0 0; }
.article-grid article:nth-child(even) { border-top-color: var(--evac-violet); }
.article-grid article:hover { box-shadow: var(--panel-shadow-hover); transform: translateY(-4px); }
.article-grid article[hidden] { display: none; }
.article-grid h3 { font-size: 1.14rem; }
.article-grid article > p:not(.article-meta) { flex: 1; margin: 0; color: #645c67; font-size: .86rem; }
.editorial-note { max-width: 1180px; margin: 24px auto 0; color: #746c77; font-size: .76rem; }
.legal-page article { max-width: 900px; margin: 0 auto; padding: 28px; background: white; border: 1px solid var(--line-strong); border-radius: 7px; box-shadow: var(--panel-shadow); }
.legal-page article h2 { margin-top: 28px; font-size: 1.25rem; }
.legal-page article h2:first-child { margin-top: 0; }
.legal-page article p { color: #625a65; font-size: .9rem; }

@media (max-width: 1200px) {
  .site-footer { grid-template-columns: minmax(470px,1fr) auto; }
  .footer-topline { grid-template-columns: minmax(250px, 1fr) minmax(260px, 1.4fr) auto; gap: 24px; }
  .footer-disclaimer { grid-column: auto; order: initial; padding: 0; border: 0; }
  .about-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .about-steps article:nth-child(2) { border-right: 0; }
  .about-steps article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
}

@media (max-width: 800px) {
  .about-introduction, .about-boundary, .regulation-focus, .featured-article { grid-template-columns: 1fr; gap: 30px; }
  .regulation-date, .featured-date { max-width: 260px; }
  .about-value-grid, .article-grid { grid-template-columns: 1fr; }
  .about-value-grid article { border-right: 0; border-bottom: 1px solid #d9d2dc; }
  .about-value-grid article:last-child { border-bottom: 0; }
  .article-library-head { align-items: start; flex-direction: column; }
}

@media (max-width: 700px) {
  h1 { font-size: 2.02rem; }
  h2 { font-size: 1.52rem; }
  .hero h1 { font-size: 2.18rem; }
  .page-hero h1 { font-size: 2rem; }
  .signup-summary h1, .private-intro h1 { font-size: 2rem; }
  .brand-copy small { max-width: 225px; font-size: .53rem; white-space: normal; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-brand p { font-size: .53rem; white-space: nowrap; }
  .footer-disclaimer { grid-column: auto; }
  .ambient-sign { opacity: .05; }
  .about-steps { grid-template-columns: 1fr; }
  .about-steps article { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .article-tabs { width: 100%; }
  .article-tabs button { flex: 1 1 calc(50% - 5px); }
  .board-console { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-safety-field::before, .ambient-safety-field::after, .board-console i, .fire-board::before { animation: none !important; }
}

/* 2026 final professional finish: stronger safety matrix, calmer chrome, robust responsive rhythm. */
body {
  background:
    radial-gradient(circle at 18% 16%, rgba(210,15,55,.055), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(103,45,145,.07), transparent 26%),
    linear-gradient(180deg, #fbfafc 0%, #f3f0f5 100%);
}
.ambient-safety-field {
  background:
    linear-gradient(90deg, rgba(33,24,38,.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(33,24,38,.014) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.78), rgba(0,0,0,.42) 62%, rgba(0,0,0,.2));
}
.ambient-sign {
  width: 82px;
  height: 82px;
  opacity: .072;
  border-radius: 3px;
  background: rgba(255,255,255,.28);
  box-shadow: 0 0 0 8px rgba(255,255,255,.12);
}
.ambient-sign:nth-child(7) { top: 35%; left: 43%; --sign-rotate: -5deg; --sign-speed: 39s; }
.ambient-sign:nth-child(8) { bottom: 28%; right: 40%; --sign-rotate: 6deg; --sign-speed: 36s; }
.ambient-sign--pump .ambient-glyph,
.ambient-sign--stairs .ambient-glyph,
.ambient-sign--telephone .ambient-glyph,
.ambient-sign--exit .ambient-glyph { width: 42px; height: 42px; }
.ambient-sign--pump .ambient-glyph::before { position: absolute; inset: 7px; border: 5px solid currentColor; border-radius: 3px; content: ""; }
.ambient-sign--pump .ambient-glyph::after { position: absolute; top: 17px; left: 17px; width: 9px; height: 9px; border: 3px solid currentColor; border-radius: 50%; box-shadow: 12px 0 0 -3px currentColor; content: ""; }
.ambient-sign--stairs .ambient-glyph::before { position: absolute; inset: 3px; background: currentColor; clip-path: polygon(0 100%, 0 79%, 22% 79%, 22% 58%, 44% 58%, 44% 37%, 66% 37%, 66% 16%, 100% 16%, 100% 100%); content: ""; }
.ambient-sign--telephone .ambient-glyph::before { position: absolute; top: -10px; left: 0; font-size: 48px; font-family: Arial, sans-serif; font-weight: 700; content: "\260E"; }
.ambient-sign--exit .ambient-glyph::before { position: absolute; top: 11px; left: 1px; font-size: 17px; font-family: Arial, sans-serif; font-weight: 900; content: "EXIT"; }
.ambient-sign--exit .ambient-glyph::after { position: absolute; right: 2px; bottom: 9px; width: 19px; height: 4px; background: currentColor; transform: rotate(-35deg); content: ""; }

.site-header {
  min-height: 74px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand-copy strong { letter-spacing: .04em; }
.site-nav a { border: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: #eadfec; }
.site-nav .nav-login { border-color: transparent; }

.hero {
  min-height: 680px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.88)),
    radial-gradient(circle at 82% 23%, rgba(103,45,145,.16), transparent 28%),
    radial-gradient(circle at 8% 84%, rgba(210,15,55,.12), transparent 28%);
}
.hero-copy { max-width: 760px; }
.board-wrap { width: min(100%, 512px); }
.board-console {
  padding: 0 2px;
  text-transform: uppercase;
}
.board-console > span {
  min-height: 24px;
  padding: 4px 8px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(103,45,145,.12);
  border-radius: 999px;
}
.fire-board {
  gap: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, #2a1c2e, #171019),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 8px);
  border: 1px solid rgba(18,11,20,.95);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    12px 13px 0 var(--evac-violet),
    23px 24px 0 rgba(210,15,55,.13),
    0 34px 74px rgba(32,15,40,.3);
}
.fire-board::after {
  inset: 9px;
  border-color: rgba(255,255,255,.11);
  border-radius: 3px;
}
.tile, .tile-side, .signal-face {
  border-radius: 3px;
}
.tile-side, .signal-face {
  overflow: hidden;
  box-shadow: 0 6px 13px rgba(9,4,12,.28), 0 1px 0 rgba(255,255,255,.3) inset;
}
.tile-side::before {
  display: block;
  width: 24px;
  height: 18px;
  margin: 0 auto 7px;
  border: 3px solid currentColor;
  border-radius: 2px;
  opacity: .32;
  content: "";
}
.tile.violet .tile-side::before { border-radius: 50%; }
.tile.light .tile-side::before { opacity: .45; }
.tile:nth-child(4n+1) .tile-side::before { width: 15px; height: 27px; border-radius: 7px 7px 4px 4px; }
.tile:nth-child(4n+2) .tile-side::before { width: 28px; height: 28px; border-radius: 50%; }
.tile:nth-child(4n+3) .tile-side::before { width: 28px; height: 22px; border-radius: 2px; }
.tile b { font-size: 1.28rem; letter-spacing: 0; }
.tile small {
  max-width: 94px;
  color: rgba(255,255,255,.9);
  font-size: .64rem;
  text-transform: uppercase;
}
.tile.light small { color: rgba(143,16,41,.85); }
.tile-card {
  animation: tile-breathe 7.5s ease-in-out infinite;
  animation-delay: var(--turn-delay, 0s);
}
@keyframes tile-breathe {
  0%, 76%, 100% { filter: brightness(1); transform: translateZ(0); }
  84% { filter: brightness(1.1); transform: translateY(-2px) translateZ(0); }
}
.signal-card.is-turning { animation: signal-turn .72s cubic-bezier(.2,.8,.2,1); }
.signal-face {
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), transparent 34%),
    var(--signal-red);
}
.signal-tile--violet .signal-face {
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), transparent 34%),
    var(--evac-violet);
}
.signal-icon { width: 44px; height: 44px; }
.signal-tile small { font-size: .6rem; text-transform: uppercase; }
.board-note {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(220,213,223,.85);
  border-left: 4px solid var(--signal-red);
  border-radius: 5px;
  box-shadow: 0 8px 22px rgba(38,24,46,.07);
}

.search-panel, .registry-filter, .signup-form, .login-box, .benefit, .article-grid article, .news-grid article, .legal-page article {
  border-radius: 8px;
}
.signup-summary {
  border-radius: 12px;
}
.site-footer {
  background:
    radial-gradient(circle at 84% 10%, rgba(103,45,145,.28), transparent 26%),
    linear-gradient(135deg, #17121b 0%, #211526 58%, #17121b 100%);
}
.footer-brand p { max-width: 520px; white-space: normal; }

@media (max-width: 1100px) {
  .brand-copy small { white-space: normal; }
  .site-header { padding-right: 22px; padding-left: 22px; }
}

@media (max-width: 700px) {
  .hero { padding-top: 48px; }
  .board-wrap { width: min(100%, 360px); justify-self: center; }
  .fire-board {
    gap: 5px;
    padding: 9px;
    box-shadow: 7px 8px 0 var(--evac-violet), 14px 15px 0 rgba(210,15,55,.12), 0 24px 48px rgba(32,15,40,.25);
  }
  .tile-side { padding: 4px; }
  .tile-side::before { width: 15px; height: 12px; margin-bottom: 4px; border-width: 2px; }
  .tile b { font-size: .9rem; }
  .tile small { max-width: 66px; font-size: .45rem; line-height: 1.05; }
  .signal-icon { width: 28px; height: 28px; transform: scale(.78); }
  .signal-tile small { font-size: .42rem; }
  .board-note { font-size: .7rem; }
  .footer-brand p { white-space: normal; }
  .ambient-sign { width: 54px; height: 54px; opacity: .045; }
  .ambient-sign:nth-child(n+5) { display: none; }
}

/* 2026.08.08 correction pass: tighter home rhythm, stable safety matrix, quieter about page. */
.site-header {
  height: 74px;
  min-height: 74px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand-copy strong { font-size: 16px; }
.brand-copy small {
  max-width: 520px;
  font-size: .68rem;
  line-height: 1.25;
}
.hero {
  min-height: 0;
  padding-top: 46px;
  padding-bottom: 52px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.97), rgba(255,255,255,.9)),
    radial-gradient(circle at 82% 23%, rgba(103,45,145,.13), transparent 29%),
    radial-gradient(circle at 8% 84%, rgba(210,15,55,.09), transparent 27%);
}
.hero-copy { transform: translateY(-42px); }
.hero h1 { max-width: 700px; font-size: clamp(2.65rem, 3.2vw, 3.35rem); }
.hero-lead { max-width: 720px; font-size: 1.18rem; line-height: 1.58; }
.board-wrap { width: min(100%, 440px); }
.fire-board {
  position: relative;
  grid-auto-rows: minmax(0, 1fr);
  gap: 7px;
  padding: 12px;
  transform: none;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    10px 11px 0 var(--evac-violet),
    19px 20px 0 rgba(210,15,55,.11),
    0 27px 58px rgba(32,15,40,.25);
}
.fire-board::before { display: none; }
.tile {
  min-height: 0;
  animation: none !important;
  transform: none;
}
.tile-card {
  display: block;
  width: 100%;
  height: 100%;
  animation: none;
  transform: none;
}
.tile-side {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  height: 100%;
  padding: 7px 4px;
  text-align: center;
}
.tile-side--back { display: none; }
.tile-side::before { display: none; }
.tile-symbol {
  position: relative;
  display: block;
  width: 31px;
  height: 31px;
  margin: 0 auto 4px;
  color: currentColor;
  opacity: .92;
}
.tile-symbol::before,
.tile-symbol::after { position: absolute; box-sizing: border-box; content: ""; }
.tile-symbol--extinguisher::before { top: 6px; left: 9px; width: 13px; height: 22px; border: 3px solid currentColor; border-radius: 4px 4px 7px 7px; }
.tile-symbol--extinguisher::after { top: 2px; left: 16px; width: 13px; height: 10px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; border-radius: 0 8px 0 0; }
.tile-symbol--hydrant::before { top: 8px; left: 7px; width: 17px; height: 20px; border: 3px solid currentColor; border-radius: 4px; }
.tile-symbol--hydrant::after { top: 2px; left: 10px; width: 11px; height: 11px; border: 3px solid currentColor; border-radius: 50% 50% 2px 2px; box-shadow: -8px 13px 0 -4px currentColor, 8px 13px 0 -4px currentColor; }
.tile-symbol--door::before { top: 3px; left: 7px; width: 18px; height: 27px; border: 3px solid currentColor; border-radius: 2px; }
.tile-symbol--door::after { top: 16px; left: 18px; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.tile-symbol--sprinkler::before { top: 6px; left: 4px; width: 23px; height: 8px; border: 3px solid currentColor; border-bottom: 0; border-radius: 12px 12px 0 0; }
.tile-symbol--sprinkler::after { top: 15px; left: 7px; width: 4px; height: 12px; background: currentColor; box-shadow: 7px 4px 0 -1px currentColor, 14px 0 0 -1px currentColor; }
.tile-symbol--alarm::before { top: 5px; left: 5px; width: 21px; height: 21px; border: 3px solid currentColor; border-radius: 50%; }
.tile-symbol--alarm::after { top: 13px; left: 13px; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.tile-symbol--evac::before { top: 4px; left: 4px; width: 23px; height: 23px; border: 3px solid currentColor; border-radius: 50%; }
.tile-symbol--evac::after { top: 11px; left: 10px; width: 13px; height: 7px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; transform: rotate(45deg); }
.tile-symbol--gas::before { top: 5px; left: 5px; width: 21px; height: 21px; border: 3px solid currentColor; border-radius: 50%; }
.tile-symbol--gas::after { top: 12px; left: 12px; width: 7px; height: 7px; background: currentColor; border-radius: 50%; }
.tile-symbol--smoke::before { top: 8px; left: 4px; width: 23px; height: 15px; border: 3px solid currentColor; border-radius: 50%; }
.tile-symbol--smoke::after { top: 4px; left: 13px; width: 6px; height: 7px; border: 3px solid currentColor; border-bottom: 0; border-radius: 8px 8px 0 0; }
.tile-symbol--pressure::before { top: 5px; left: 5px; width: 21px; height: 21px; border: 3px solid currentColor; border-radius: 50%; }
.tile-symbol--pressure::after { top: 9px; left: 14px; width: 3px; height: 11px; background: currentColor; transform: rotate(35deg); transform-origin: bottom; }
.tile-symbol--foam::before { top: 5px; left: 5px; width: 21px; height: 21px; border: 3px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 4px transparent; }
.tile-symbol--foam::after { top: 11px; left: 11px; width: 5px; height: 5px; background: currentColor; border-radius: 50%; box-shadow: 8px 3px 0 -1px currentColor, -5px 5px 0 -1px currentColor; }
.tile-symbol--aerosol::before { top: 7px; left: 7px; width: 17px; height: 18px; border: 3px solid currentColor; border-radius: 4px; }
.tile-symbol--aerosol::after { top: 2px; left: 12px; width: 7px; height: 6px; border: 3px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }
.tile-symbol--oxygen::before { top: 4px; left: 4px; width: 23px; height: 23px; border: 3px solid currentColor; border-radius: 50%; }
.tile-symbol--oxygen::after { top: 12px; left: 11px; width: 9px; height: 3px; background: currentColor; box-shadow: 3px -3px 0 -1px currentColor; }
.tile-symbol--mist::before { top: 7px; left: 6px; width: 7px; height: 16px; border: 3px solid currentColor; border-radius: 7px 7px 10px 10px; box-shadow: 12px 0 0 -1px currentColor; }
.tile-symbol--mist::after { top: 3px; left: 11px; width: 3px; height: 5px; background: currentColor; box-shadow: 12px 4px 0 -1px currentColor; }
.tile-symbol--powder::before { top: 5px; left: 5px; width: 21px; height: 21px; border: 3px solid currentColor; border-radius: 50%; }
.tile-symbol--powder::after { top: 12px; left: 12px; width: 7px; height: 7px; background: currentColor; border-radius: 50%; box-shadow: 0 -8px 0 -2px currentColor, 7px 4px 0 -2px currentColor; }
.tile b { font-size: 1.05rem; }
.tile small { max-width: 96px; font-size: .58rem; line-height: 1.05; }
.tile.light small { color: var(--signal-red-dark); }
.signal-card.is-turning { animation: signal-turn .64s ease-in-out; }
@keyframes signal-turn {
  0%, 100% { opacity: 1; transform: scale(1); }
  45% { opacity: .35; transform: scale(.9); }
  55% { opacity: .35; transform: scale(.9); }
}
.signal-face { gap: 4px; padding: 6px; }
.board-note { min-height: 32px; }
.button-outline::after { background: rgba(103,45,145,.1); }
.button-outline:hover::after { background: rgba(210,15,55,.12); }
.footer-brand p { font-size: .74rem; line-height: 1.35; }

.about-page { background: var(--paper); }
.about-page > .page-hero,
.about-page > .about-introduction,
.about-page > .about-value,
.about-page > .about-boundary { background: var(--paper); }
.about-introduction,
.about-boundary { max-width: 1280px; margin-right: auto; margin-left: auto; gap: 58px; }
.about-workflow { color: var(--graphite); background: var(--cloud); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.about-workflow h2, .about-workflow h3 { color: var(--graphite); }
.about-workflow .section-heading p:last-child { color: var(--graphite-soft); }
.about-steps { max-width: 1180px; }
.about-steps { border-top-color: var(--line-strong); }
.about-steps article { min-height: 218px; border-right-color: var(--line-strong); }
.about-steps article:nth-child(-n+2) { border-bottom-color: var(--line-strong); }
.about-steps span { color: var(--signal-red); }
.about-steps p { color: var(--graphite-soft); }
.about-value { border-bottom: 1px solid var(--line-soft); }
.about-page .section-heading { max-width: 1180px; }
.about-page .section-heading:not(.centered-heading) { text-align: left; }
.regulation-focus {
  color: var(--graphite);
  background: #f3edf7;
  border-top: 1px solid #e4d9ea;
  border-bottom: 1px solid #e4d9ea;
}
.regulation-focus h2 { color: var(--graphite); }
.regulation-focus p { color: var(--graphite-soft); }
.regulation-focus .eyebrow { color: var(--signal-red); }
.regulation-date { border-top-color: var(--signal-red); border-bottom-color: #d8cadf; }
.regulation-date strong { color: var(--evac-violet-dark); }
.regulation-date span { color: var(--graphite-soft); }
.about-boundary { border-top-width: 3px; }

@media (max-width: 980px) {
  .hero-copy { transform: none; }
  .board-wrap { width: min(100%, 440px); }
}
@media (max-width: 700px) {
  .site-header { height: 70px; min-height: 70px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { max-width: 225px; font-size: .58rem; }
  .hero { gap: 38px; padding-top: 40px; padding-bottom: 54px; }
  .hero h1 { font-size: 2.18rem; }
  .hero-lead { font-size: 1.03rem; }
  .board-wrap { width: min(100%, 360px); }
  .fire-board { gap: 5px; padding: 9px; }
  .tile-side { padding: 4px 2px; }
  .tile-symbol { width: 22px; height: 22px; margin-bottom: 2px; transform: scale(.82); }
  .tile b { font-size: .86rem; }
  .tile small { max-width: 70px; font-size: .45rem; }
  .signal-icon { width: 29px; height: 29px; transform: scale(.82); }
  .signal-tile small { font-size: .43rem; }
  .about-introduction, .about-boundary { gap: 28px; }
  .about-steps article { min-height: 0; }
  .footer-brand p { font-size: .62rem; white-space: normal; }
}

/* 2026.08.08 layout pass: a shared reading width keeps public pages aligned. */
:root {
  --content-wide: 1280px;
  --content-reading: 1180px;
}

.page-hero:not(.page-hero--split) > .eyebrow,
.page-hero:not(.page-hero--split) > h1,
.page-hero:not(.page-hero--split) > p {
  width: min(100%, var(--content-reading));
  margin-right: auto;
  margin-left: auto;
}

.page-hero--split {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  width: min(100%, var(--content-wide));
  margin-right: auto;
  margin-left: auto;
}
.page-hero--split .page-hero-copy { max-width: 600px; }
.page-hero--split .page-hero-copy h1 { max-width: 620px; }
.page-hero--split .page-hero-copy > p:last-child { max-width: 600px; }
.page-hero-visual {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(103,45,145,.12);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(32,15,40,.11);
  background: #f7f7fa;
}
.page-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.benefits-section {
  width: min(100%, var(--content-wide));
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}
.benefit-grid,
.enrollment-band { width: min(100%, var(--content-reading)); margin-right: auto; margin-left: auto; }
.benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.enrollment-band { grid-template-columns: minmax(0, 1fr) auto; }
.enrollment-band .button-outline {
  color: var(--signal-red-dark);
  background: #fff;
  border-color: #fff;
  box-shadow: 0 10px 24px rgba(77,12,32,.18);
}
.enrollment-band .button-outline:hover,
.enrollment-band .button-outline:focus-visible {
  color: #fff;
  background: var(--signal-red-dark);
  border-color: var(--signal-red-dark);
}
.enrollment-band.company .button-outline {
  color: var(--evac-violet-dark);
  box-shadow: 0 10px 24px rgba(50,25,70,.2);
}
.enrollment-band.company .button-outline:hover,
.enrollment-band.company .button-outline:focus-visible {
  color: #fff;
  background: var(--evac-violet-dark);
  border-color: var(--evac-violet-dark);
}
.signup-layout { max-width: 1220px; grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr); gap: clamp(36px, 5vw, 72px); }
@media (max-width: 980px) {
  .page-hero--split { width: auto; grid-template-columns: minmax(0, 1fr) minmax(310px, .9fr); gap: 32px; }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signup-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .page-hero--split { display: block; }
  .page-hero--split .page-hero-copy { max-width: none; }
  .page-hero-visual { margin-top: 28px; }
  .benefit-grid { grid-template-columns: minmax(0, 1fr); }
  .enrollment-band { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .enrollment-band .button { justify-self: start; }
}

/* 2026.08.08 proportion pass: reduce visual weight and keep the reading rhythm consistent. */
body { font-size: 15px; line-height: 1.52; }
.section {
  padding-top: clamp(44px, 5vw, 72px);
  padding-bottom: clamp(44px, 5vw, 72px);
}
h1 { font-size: clamp(2rem, 3vw, 3rem); line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 2.3vw, 2.15rem); line-height: 1.14; }
h3 { font-size: 1.12rem; line-height: 1.22; }
.eyebrow { margin-bottom: 10px; font-size: .67rem; letter-spacing: .11em; }
.page-hero {
  padding-top: clamp(48px, 5vw, 68px);
  padding-bottom: clamp(40px, 4vw, 58px);
}
.page-hero:not(.page-hero--split) > h1 {
  max-width: 840px;
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 3.1vw, 3rem);
}
.page-hero:not(.page-hero--split) > p:last-child { max-width: 760px; font-size: 1rem; line-height: 1.58; }
.hero { padding-top: 44px; padding-bottom: 50px; gap: clamp(32px, 5vw, 72px); }
.hero h1 { max-width: 780px; font-size: clamp(2.15rem, 3.2vw, 2.9rem); }
.hero-lead { max-width: 690px; font-size: 1.08rem; line-height: 1.52; }
.search-zone > .search-intro,
.search-zone > .search-panel,
.search-zone > .home-search-results { width: min(100%, var(--content-reading)); max-width: none; }
.search-intro { gap: 26px; margin-bottom: 20px; }
.search-intro p { font-size: .93rem; line-height: 1.5; }
.search-panel { padding: 14px; }

.process-section {
  color: var(--ink);
  background: #f7f4f8;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.process-section .eyebrow { color: var(--signal-red); }
.process-section h2 { color: var(--ink); }
.process-grid { max-width: var(--content-reading); border-top-color: var(--line-strong); }
.process-grid article { padding: 20px 24px; border-right-color: var(--line-strong); }
.process-grid article:last-child { border-right: 0; }
.process-grid span { margin-bottom: 10px; color: var(--signal-red); font-size: .68rem; }
.process-grid h3 { margin-bottom: 6px; color: var(--ink); }
.process-grid p { color: var(--graphite-soft); font-size: .9rem; line-height: 1.5; }
.js-ready .reveal-ready { opacity: 1; transform: none; transition: none; }

.benefit-grid { gap: 14px; }
.benefit { padding: 20px; }
.benefit strong { margin-bottom: 7px; font-size: .68rem; letter-spacing: .08em; }
.benefit p { font-size: .9rem; line-height: 1.5; }
.enrollment-band {
  grid-template-columns: 138px minmax(0, 1fr) auto;
  gap: 22px;
  margin-top: 34px;
  padding: 22px;
}
.enrollment-visual {
  width: 138px;
  height: 92px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 6px;
  background: rgba(255,255,255,.18);
  box-shadow: 0 8px 18px rgba(39,12,46,.15);
}
.enrollment-visual picture,
.signup-summary-visual picture,
.signup-form-visual picture { display: block; width: 100%; height: 100%; }
.enrollment-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.enrollment-band h2 { margin-bottom: 6px; font-size: 1.42rem; }
.enrollment-band p { max-width: 680px; margin-bottom: 0; font-size: .9rem; line-height: 1.48; }
.enrollment-band .button { white-space: nowrap; }

.about-introduction, .about-boundary { gap: 44px; }
.about-introduction h2, .about-boundary h2 { font-size: clamp(1.75rem, 2.5vw, 2.35rem); }
.about-steps article { min-height: 190px; padding: 22px 24px; }
.about-steps p { font-size: .9rem; line-height: 1.5; }
.regulation-focus h2 { font-size: clamp(1.75rem, 2.6vw, 2.4rem); }

.signup-summary { min-height: 0; padding: clamp(28px, 4vw, 44px); }
.signup-summary h1 { font-size: clamp(2.05rem, 3vw, 2.7rem); line-height: 1.05; }
.signup-summary p { font-size: .9rem; }
.signup-summary .price-box { margin: 24px 0 20px; padding: 17px 18px; }
.signup-summary .price-box strong { font-size: 1.65rem; }
.signup-form { padding: clamp(22px, 3vw, 32px); }
.signup-form h2 { margin-bottom: 18px; font-size: 1.7rem; }
.signup-form input, .signup-form select { min-height: 44px; padding: 9px 12px; font-size: .9rem; }
.signup-form fieldset { gap: 10px; padding: 15px; }
.login-box { padding: 30px; }
.login-box h1 { font-size: 2rem; }
.private-intro h1 { font-size: clamp(2.3rem, 3.4vw, 3rem); }
.private-panel-head h2 { font-size: 1.8rem; }
.admin-topline h1 { font-size: 2.15rem; }

@media (max-width: 980px) {
  .enrollment-band { grid-template-columns: 116px minmax(0, 1fr); }
  .enrollment-visual { width: 116px; height: 84px; }
  .enrollment-band .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 700px) {
  body { font-size: 14px; }
  .section { padding-right: 20px; padding-left: 20px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  .page-hero { padding-top: 42px; padding-bottom: 42px; }
  .page-hero:not(.page-hero--split) > h1 { font-size: 2.15rem; }
  .page-hero:not(.page-hero--split) > p:last-child { font-size: .95rem; }
  .hero { padding-top: 38px; padding-bottom: 44px; }
  .hero h1 { font-size: 2.18rem; }
  .hero-lead { font-size: 1rem; }
  .process-grid { grid-template-columns: minmax(0, 1fr); }
  .process-grid article { min-height: 0; padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .process-grid article:last-child { border-bottom: 0; }
  .enrollment-band { grid-template-columns: 86px minmax(0, 1fr); gap: 15px; padding: 18px; }
  .enrollment-visual { grid-row: 1 / span 2; width: 86px; height: 70px; }
  .enrollment-band h2 { font-size: 1.18rem; }
  .enrollment-band p { font-size: .82rem; }
  .enrollment-band .button { grid-column: 2; }
  .about-introduction, .about-boundary { gap: 26px; }
  .about-introduction h2, .about-boundary h2 { font-size: 1.7rem; }
  .about-steps article { min-height: 0; padding: 18px 0; }
  .signup-summary h1 { font-size: 2.15rem; }
  .signup-form h2 { font-size: 1.55rem; }
  .login-box { padding: 24px; }
}

/* 2026.08.08 home/search pass: use the open hero area for the process and keep search purposeful. */
.hero-process {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.hero-process-heading { margin-bottom: 14px; }
.hero-process-heading .eyebrow { margin-bottom: 7px; }
.hero-process-heading h2 { margin-bottom: 0; font-size: 1.32rem; }
.hero-process .process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  border-top: 0;
}
.hero-process .process-grid article { min-width: 0; padding: 0 14px 0 0; border-right: 1px solid var(--line-strong); border-bottom: 0; }
.hero-process .process-grid article:last-child { padding-right: 0; border-right: 0; }
.hero-process .process-grid span { margin-bottom: 7px; font-size: .62rem; }
.hero-process .process-grid h3 { margin-bottom: 5px; font-size: .92rem; }
.hero-process .process-grid p { margin: 0; color: var(--graphite-soft); font-size: .78rem; line-height: 1.42; }
.search-panel--guided { grid-template-columns: minmax(0, 1fr) auto; }
.search-panel--guided .search-primary { grid-column: auto; }
.search-panel--guided .button { min-width: 150px; }
.search-zone .search-intro > p { max-width: 660px; }

.enrollment-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }
.enrollment-actions .button { min-width: 164px; }
.enrollment-band .button-band-cta {
  color: var(--signal-red-dark);
  background: #fff;
  border-color: #fff;
  box-shadow: 0 8px 18px rgba(77,12,32,.18);
}
.enrollment-band.company .button-band-cta { color: var(--evac-violet-dark); box-shadow: 0 8px 18px rgba(50,25,70,.2); }
.enrollment-band .button-band-cta:hover,
.enrollment-band .button-band-cta:focus-visible { color: #fff; background: var(--signal-red-dark); border-color: var(--signal-red-dark); }
.enrollment-band.company .button-band-cta:hover,
.enrollment-band.company .button-band-cta:focus-visible { color: #fff; background: var(--evac-violet-dark); border-color: var(--evac-violet-dark); }

/* Shared horizontal rhythm for Chi siamo. */
.about-page > .section { padding-right: max(20px, calc((100vw - var(--content-reading)) / 2)); padding-left: max(20px, calc((100vw - var(--content-reading)) / 2)); }
.about-introduction, .about-boundary { max-width: none; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 58px; }
.about-copy p, .about-boundary p { font-size: 1rem; line-height: 1.62; }
.about-workflow .section-heading, .about-steps, .about-value .section-heading, .about-value-grid { width: 100%; max-width: var(--content-reading); }
.regulation-focus { grid-template-columns: 180px minmax(0, 1fr); gap: 42px; justify-content: stretch; }
.regulation-focus > div:last-child { max-width: 900px; }

/* Brand and payoff scale: more visible, still compact in the navigation. */
.brand-copy strong { font-size: 18px; }
.brand-copy small { max-width: 520px; font-size: .72rem; line-height: 1.25; }
.footer-brand strong { font-size: 1.14rem; }
.footer-brand p { font-size: .84rem; line-height: 1.42; }
.footer-disclaimer { font-size: .82rem; line-height: 1.48; }

@media (max-width: 980px) {
  .hero-process .process-grid p { font-size: .75rem; }
  .search-panel--guided { grid-template-columns: minmax(0, 1fr) auto; }
  .about-introduction, .about-boundary { gap: 38px; }
  .regulation-focus { grid-template-columns: 150px minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 700px) {
  .hero-process { margin-top: 26px; }
  .hero-process-heading h2 { font-size: 1.18rem; }
  .hero-process .process-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-process .process-grid article { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .hero-process .process-grid article:last-child { padding-bottom: 0; border-bottom: 0; }
  .search-panel--guided { grid-template-columns: minmax(0, 1fr); }
  .search-panel--guided .button { width: 100%; }
  .enrollment-actions { grid-column: 2; align-items: stretch; justify-content: stretch; }
  .enrollment-actions .button { min-width: 0; flex: 1 1 100%; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { max-width: 245px; font-size: .61rem; }
  .footer-brand strong { font-size: 1.06rem; }
  .footer-brand p { font-size: .68rem; }
  .footer-disclaimer { font-size: .72rem; }
  .about-page > .section { padding-right: 20px; padding-left: 20px; }
  .about-introduction, .about-boundary { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .regulation-focus { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* 2026.08.02 coordinated system pass: one shell, one type scale, denser forms. */
:root {
  --content-wide: 1180px;
  --content-reading: 1180px;
  --page-gutter: max(20px, calc((100vw - var(--content-wide)) / 2));
}
html, body { overflow-x: hidden; }
body { font-size: 16px; line-height: 1.55; }
.section { padding: clamp(46px, 5vw, 68px) var(--page-gutter); }
.site-header, .site-footer { padding-right: var(--page-gutter); padding-left: var(--page-gutter); }
h1 { font-size: clamp(2.15rem, 3vw, 2.8rem); line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 2.1vw, 2rem); line-height: 1.16; }
h3 { font-size: 1.12rem; line-height: 1.25; }
p { line-height: 1.58; }
.hero h1 { font-size: clamp(2.35rem, 3.25vw, 2.85rem); }
.hero-lead { font-size: 1.06rem; }
.page-hero { padding: clamp(52px, 5vw, 70px) var(--page-gutter); }
.page-hero:not(.page-hero--split) > .eyebrow,
.page-hero:not(.page-hero--split) > h1,
.page-hero:not(.page-hero--split) > p { width: auto; margin-right: 0; margin-left: 0; }
.page-hero:not(.page-hero--split) > h1 { max-width: 820px; font-size: clamp(2.2rem, 3vw, 2.7rem); }
.page-hero:not(.page-hero--split) > p:last-child { max-width: 780px; font-size: 1rem; }
.benefits-section, .benefit-grid, .enrollment-band { width: 100%; max-width: var(--content-wide); }
.benefit p, .article-grid p, .news-grid p { font-size: .93rem; }
.featured-article { grid-template-columns: 180px minmax(0, 900px); justify-content: stretch; gap: 42px; }
.article-library-head, .article-grid { max-width: var(--content-wide); }
.legal-page article { max-width: 940px; }
.legal-page article p { font-size: .96rem; }

/* Structured public search: free text plus explicit province and presidium filters. */
.search-panel--guided {
  grid-template-columns: minmax(260px, 1.15fr) minmax(360px, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.search-panel--guided .search-primary { grid-column: auto; }
.search-refinements { display: grid; grid-template-columns: repeat(2, minmax(165px, 1fr)); gap: 10px; }
.search-panel--guided label { font-size: .78rem; }
.search-panel--guided input,
.search-panel--guided select { min-height: 50px; font-size: .9rem; }
.search-panel--guided .button { min-width: 148px; min-height: 50px; }

/* Registration pages: consistent geometry and crisp supporting illustrations. */
.signup-layout { width: 100%; max-width: var(--content-wide); grid-template-columns: minmax(340px, .68fr) minmax(0, 1.32fr); gap: 40px; }
.signup-summary { min-height: 0; padding: 36px; }
.signup-summary h1 { font-size: clamp(2.1rem, 2.8vw, 2.55rem); }
.signup-summary p { font-size: .92rem; }
.signup-summary-visual {
  width: 100%;
  height: 164px;
  margin: 22px 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 7px;
  box-shadow: 0 12px 28px rgba(22,10,32,.17);
}
.signup-summary-visual img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
.signup-form { padding: 30px; }
.signup-form-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.signup-form-heading .eyebrow { margin-bottom: 6px; }
.signup-form-heading h2 { margin: 0; font-size: 1.7rem; }
.signup-form-visual { flex: 0 0 150px; width: 150px; height: 96px; margin: 0; overflow: hidden; background: #f8f6fa; border: 1px solid var(--line-soft); border-radius: 7px; }
.signup-form-visual img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
.signup-form form { gap: 12px; }
.signup-form input, .signup-form select { min-height: 45px; }
.signup-form fieldset { gap: 8px; padding: 14px 15px; }
.presidia-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
.signup-form .presidia-checklist label { min-height: 28px; padding: 2px 0; font-size: .78rem; line-height: 1.28; }
.signup-form .presidia-checklist input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
}
.signup-form [data-requested-technician] { gap: 9px; padding: 10px 0; }
.signup-form .form-hint { font-size: .76rem; line-height: 1.42; }
.signup-form > h2,
.signup-form form > h2 { font-size: 1.55rem; }

.enrollment-visual { background: #fff; }
.enrollment-visual img { object-fit: contain; image-rendering: auto; }
.brand-copy strong { font-size: 18px; }
.brand-copy small { font-size: .72rem; }
.footer-brand strong { font-size: 1.15rem; }
.footer-brand p { font-size: .82rem; }
.footer-disclaimer { font-size: .82rem; }

/* About page sections now share the same content edges and column ratio. */
.about-page > .section { padding-right: var(--page-gutter); padding-left: var(--page-gutter); }
.about-introduction, .about-boundary { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 54px; }
.about-page .section-heading,
.about-steps,
.about-value-grid { max-width: var(--content-wide); }
.about-copy p, .about-boundary p, .regulation-focus p { font-size: .98rem; }
.regulation-focus { grid-template-columns: 170px minmax(0, 1fr); gap: 40px; }
.regulation-focus > div:last-child { max-width: none; }

@media (max-width: 1040px) {
  .search-panel--guided { grid-template-columns: minmax(0, 1fr) auto; }
  .search-panel--guided .search-primary { grid-column: 1 / -1; }
  .signup-layout { grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 28px; }
  .signup-summary { padding: 30px; }
}

@media (max-width: 820px) {
  .signup-layout { grid-template-columns: minmax(0, 1fr); }
  .signup-summary { position: relative; top: auto; }
  .signup-summary-visual { max-width: 440px; }
  .about-introduction, .about-boundary, .regulation-focus { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 700px) {
  body { font-size: 15px; }
  .section, .page-hero { padding-right: 20px; padding-left: 20px; }
  .site-header, .site-footer { padding-right: 18px; padding-left: 18px; }
  .hero h1 { font-size: 2.18rem; }
  .page-hero:not(.page-hero--split) > h1 { font-size: 2.08rem; }
  .search-panel--guided { grid-template-columns: minmax(0, 1fr); }
  .search-panel--guided .search-primary { grid-column: auto; }
  .search-refinements { grid-template-columns: minmax(0, 1fr); }
  .search-panel--guided .button { width: 100%; }
  .featured-article { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .featured-date { max-width: 260px; }
  .signup-summary, .signup-form { padding: 22px 20px; }
  .signup-summary-visual { height: 142px; }
  .signup-form-heading { align-items: flex-start; }
  .signup-form-visual { flex-basis: 96px; width: 96px; height: 76px; }
  .signup-form .presidia-checklist { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .signup-form .presidia-checklist label { min-height: 27px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { max-width: 230px; font-size: .6rem; }
}

/* Final shared heading alignment for Home and internal pages. */
.hero { align-items: start; padding-top: clamp(54px, 7vw, 96px); padding-bottom: clamp(54px, 7vw, 96px); }
.hero-copy { transform: none; }
.hero { grid-template-columns: minmax(0, 1fr); }
.hero-copy { max-width: 780px; }
.hero h1 { max-width: 780px; font-size: 2.5rem; }
.hero { padding-top: 28px; }
.hero + .search-zone { padding-top: 32px; }
@media (max-width: 700px) {
  .hero { padding-top: 28px; padding-bottom: 52px; }
  .hero + .search-zone { padding-top: 28px; }
  .hero h1 { font-size: 2.2rem; }
}

/* 2026.08.11 footer mobile correction: keep every column inside the viewport. */
@media (max-width: 700px) {
  .site-footer,
  .footer-topline {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    box-sizing: border-box;
  }
  .site-footer > *,
  .footer-topline > *,
  .footer-brand,
  .footer-disclaimer,
  .footer-links {
    min-width: 0;
    max-width: 100%;
  }
  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .footer-brand p,
  .footer-disclaimer,
  .footer-links,
  .footer-links a {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .footer-links {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
}

@media (max-width: 420px) {
  .site-footer { padding-right: 16px; padding-left: 16px; }
  .footer-brand p { font-size: .78rem; line-height: 1.45; }
  .footer-disclaimer { font-size: .78rem; line-height: 1.5; }
}

/* Private profile and temporary availability states. */
.registry-card--alert {
  background: #fff5f6;
  border-left-color: var(--signal-red);
}

.registry-card-alert {
  grid-column: 1 / -1;
  margin: 0 0 10px;
  padding: 9px 11px;
  color: #8c172e;
  background: #ffe4e8;
  border-left: 3px solid var(--signal-red);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.4;
}

.registry-card--alert .registry-badge {
  color: #8c172e;
  background: #ffe4e8;
}

.private-edit-panel,
.private-payment-panel {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.private-registry-code-panel {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 20px;
  background: #fbf9fc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--violet);
  border-radius: 12px;
}
.private-registry-code-panel h2 { margin: 0; color: var(--ink); font-size: clamp(1.28rem, 1.9vw, 1.55rem); line-height: 1.18; }
.private-registry-code-panel .form-hint { max-width: 62ch; margin: 7px 0 0; color: var(--muted); line-height: 1.5; }
.private-registry-code-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.private-registry-code-row code { display: inline-block; min-width: 13ch; padding: 10px 12px; color: var(--violet-deep); background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 1.05rem; font-weight: 850; letter-spacing: .05em; user-select: all; }
.private-registry-code-row .button { min-height: 42px; }
.private-registry-code-panel .form-feedback { margin: 0; }
html.a11y-dark .private-registry-code-panel { color: var(--ink); background: var(--canvas); border-color: var(--line); border-left-color: var(--violet); }
html.a11y-dark .private-registry-code-row code { color: var(--ink); background: var(--canvas); border-color: var(--line); }
html.a11y-high-contrast .private-registry-code-panel { color: #fff; background: #000; border-color: #fff; }
html.a11y-high-contrast .private-registry-code-panel h2,
html.a11y-high-contrast .private-registry-code-panel .form-hint,
html.a11y-high-contrast .private-registry-code-row code { color: #fff; background: #000; border-color: #fff; }

@media (max-width: 700px) {
  .private-registry-code-panel { padding: 16px; }
  .private-registry-code-row { align-items: stretch; flex-direction: column; }
  .private-registry-code-row code,
  .private-registry-code-row .button { width: 100%; box-sizing: border-box; text-align: center; }
}

.private-subsection-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.private-subsection-heading h2 {
  margin: 0;
  font-size: 1.25rem;
}

/* 2026.08.15 feedback: legal pages and consent links. */
.legal-page .section-heading h1 {
  max-width: 760px;
  font-size: clamp(2rem, 2.5vw, 2.4rem);
  line-height: 1.1;
}
.signup-form .checkline span { display: block; }
.signup-form .checkline span > a {
  display: block;
  width: fit-content;
  margin-top: 5px;
  color: var(--violet-deep);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.signup-form .checkline span > small {
  display: block;
  margin-top: 3px;
}

.private-presidia-fieldset {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #faf8fb;
}

.publication-preference-fieldset,
.private-publication-fieldset {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid #cfc3d7;
  border-radius: 7px;
  background: #fbf9fc;
}

.publication-preference-fieldset legend,
.private-publication-fieldset legend {
  padding: 0 5px;
  color: var(--graphite);
  font-size: .78rem;
  font-weight: 850;
}

.publication-preference-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--graphite);
  font-size: .82rem;
  font-weight: 850;
}

.publication-preference-choices {
  display: grid;
  gap: 8px;
}

.publication-preference-choices .publication-preference-toggle {
  min-height: 42px;
  align-items: center;
  padding: 10px 12px;
  background: white;
  border: 1px solid #d9cfdf;
  border-radius: 6px;
  cursor: pointer;
}

.publication-preference-choices .publication-preference-toggle:focus-within {
  border-color: var(--evac-violet);
  box-shadow: 0 0 0 3px rgba(103,45,145,.16);
}

.publication-preference-toggle input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
  accent-color: var(--signal-red);
}

.publication-preference-toggle span {
  display: grid;
  gap: 3px;
}

.publication-preference-toggle strong {
  color: var(--graphite-soft);
  font-size: .74rem;
  font-weight: 700;
}
.publication-consent-version {
  color: var(--graphite-soft);
  font-size: .72rem;
  line-height: 1.4;
}
.publication-preference-fieldset .form-hint a {
  color: var(--violet-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.private-publication-grid {
  display: grid;
  gap: 9px;
}

.private-presidia-fieldset legend {
  padding: 0 5px;
  color: var(--graphite);
  font-size: .78rem;
  font-weight: 850;
}

.private-presidia-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.private-presidia-grid label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--graphite-soft);
  font-size: .78rem;
  font-weight: 750;
}

.private-presidia-grid .private-presidia-option--verified {
  padding: 8px 9px;
  color: #315e51;
  background: #f0faf5;
  border: 1px solid #c3e2d2;
  border-radius: 6px;
}

.private-presidia-grid .private-presidia-option--verified input:disabled {
  opacity: .9;
}

.private-presidia-grid label > span {
  display: grid;
  gap: 3px;
}

.private-presidium-status {
  color: #746a7d;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.private-presidium-status--verified { color: #116b55; }
.private-presidium-status--pending { color: #8a5b12; }
.private-presidium-status--new { color: var(--evac-violet); }
.private-presidium-status--revoked { color: #8c172e; }

.private-presidia-grid input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.test-payment-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 4px 9px;
  color: #8a1830;
  background: #ffe5ea;
  border: 1px solid #efb8c3;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.payment-activation-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  color: #765018;
  background: #fff3d9;
  border: 1px solid #ecd29b;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-align: center;
}

.private-payment-test {
  padding: 16px;
  color: #5c2532;
  background: #fff4f5;
  border: 1px solid #efc3ca;
  border-left: 4px solid var(--signal-red);
  border-radius: 7px;
}

.private-payment-test p {
  margin: 0 0 12px;
  color: #a11330;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.private-payment-test strong {
  display: block;
  margin-bottom: 6px;
  color: #5c2532;
}

.private-payment-test .private-payment-test-intro {
  margin: 0 0 12px;
  color: #5c2532;
  font-size: .84rem;
  font-weight: 650;
  letter-spacing: normal;
  line-height: 1.5;
}

.private-payment-test dl {
  display: grid;
  grid-template-columns: minmax(120px, .45fr) minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
}

.private-payment-test dt {
  color: #8e6270;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.private-payment-test dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.private-payment-locked {
  margin: 0;
  padding: 14px;
  color: var(--graphite-soft);
  background: #faf8fb;
  border-left: 3px solid var(--evac-violet);
  font-size: .82rem;
}

.private-payment-activation {
  padding: 15px 16px;
  color: #5e5265;
  background: #fbf8ef;
  border: 1px solid #eadbb8;
  border-left: 4px solid #c58c28;
  border-radius: 7px;
}
.private-payment-activation strong { display: block; margin-bottom: 6px; color: #604615; }
.private-payment-activation p { margin: 0; line-height: 1.5; }
.private-payment-activation dl { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1fr); gap: 4px 14px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #eadbb8; }
.private-payment-activation dt { color: #735c31; font-size: .75rem; font-weight: 850; }
.private-payment-activation dd { margin: 0; color: #3c3042; font-weight: 800; }

.registration-live-feedback {
  margin: 0;
  padding: 11px 13px;
  color: #8f1f28;
  background: #fff3f3;
  border: 1px solid #e7aeb4;
  border-left: 4px solid #c51f3d;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.45;
}

.password-requirement {
  display: block;
  margin-top: 5px;
}

.signup-form .password-grid {
  align-items: start;
}

.signup-form .password-grid > label {
  align-self: start;
  min-width: 0;
}

/* Company onboarding: validate the association first, then unlock the form. */
.company-form .company-id-step {
  border-top: 3px solid var(--evac-violet);
}
.company-form .company-id-step.is-verified {
  border-color: #218653;
  background: #f5fbf7;
}
.company-form .company-details-step {
  gap: 12px;
  border-top: 3px solid var(--evac-violet);
  transition: opacity .18s ease, filter .18s ease;
}
.company-form .company-details-step:disabled {
  opacity: .56;
  filter: saturate(.55);
}
.company-form .company-details-heading {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.2;
}
.company-form .company-details-hint {
  margin: -3px 0 4px;
}
.company-form .company-id-step [data-check-requested-technicians]:disabled {
  color: #24784d;
  background: #edf8f1;
  border-color: #acd6bb;
  cursor: default;
}

.registration-deferred-feedback {
  padding: 10px 12px;
  color: var(--graphite-soft) !important;
  background: #f7f4f8;
  border: 1px solid #ddd2e3;
  border-left: 3px solid var(--evac-violet);
  border-radius: 6px;
  font-size: .8rem;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .private-presidia-grid { grid-template-columns: minmax(0, 1fr); }
  .private-payment-test dl { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .private-payment-test dd { margin-bottom: 7px; }
}

/* Public registry rows: label the data so the compact layout remains scannable. */
.registry-card { padding: 14px 18px; }
.registry-card-details { grid-template-columns: minmax(220px, 1.05fr) minmax(240px, 1.25fr) auto; gap: 14px 20px; }
.registry-card-identity { display: grid; align-content: center; gap: 2px; }
.registry-card-identity .registry-card-social { margin-top: 4px; }
.registry-card-services-block { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-content: center; gap: 4px 12px; min-width: 0; }
.registry-card-services-label { margin: 0; color: var(--graphite-soft); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.registry-card-services-count { color: var(--violet-deep); font-size: .72rem; font-weight: 850; white-space: nowrap; }
.registry-card-services-block .registry-card-services { grid-column: 1 / -1; gap: 6px; min-width: 0; margin: 3px 0 0; }
.registry-card-services-block .registry-card-services span { padding: 5px 8px; color: var(--ink); background: #faf7fc; border: 1px solid #e0d5e5; border-radius: 5px; font-size: .72rem; line-height: 1.25; }
.registry-card-services-empty { grid-column: 1 / -1; margin: 3px 0 0; color: var(--graphite-soft); font-size: .78rem; }
.registry-card-actions { align-self: center; }
.registry-card-actions .button { min-width: 148px; }

@media (max-width: 850px) {
  .registry-card-details { grid-template-columns: minmax(200px, 1fr) minmax(220px, 1fr) auto; }
}

@media (max-width: 700px) {
  .registry-card { padding: 14px; }
  .registry-card-details { grid-template-columns: 1fr; gap: 12px; }
  .registry-card-services-block { grid-template-columns: minmax(0, 1fr) max-content; }
  .registry-card-actions { justify-self: start; }
  .registry-card-actions .button { min-width: 0; }
}

/* Final footer override: keep VAT on its own line between brand and disclaimer. */
.footer-topline { grid-template-columns: minmax(0, 1fr) minmax(210px, 270px); gap: 12px 48px; }
.footer-brand { grid-column: 1; grid-row: 1; }
.footer-vat { grid-column: 1; grid-row: 2; margin: 0; }
.footer-disclaimer { grid-column: 1; grid-row: 3; }
.footer-links { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; gap: 9px 20px; }
.footer-links a:last-child { grid-column: 1 / -1; }
.site-footer, .site-footer * { font-size: max(12px, 1em); }
.site-footer .footer-brand strong { font-size: 1.15rem; }
.site-footer .footer-brand p, .site-footer .footer-disclaimer { font-size: .82rem; }
.hero::before, .page-hero::before { display: none; }

@media (max-width: 700px) {
  .footer-topline { grid-template-columns: 1fr; gap: 14px; }
  .footer-brand, .footer-vat, .footer-disclaimer, .footer-links { grid-column: 1; grid-row: auto; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-links a:last-child { grid-column: auto; }
}

/* Registration summaries: keep labels readable without forcing long values into a narrow column. */
.registration-review dl {
  grid-template-columns: minmax(136px, 170px) minmax(0, 1fr);
}
.registration-review dt {
  white-space: normal;
  line-height: 1.35;
}
.registration-review dd {
  overflow-wrap: anywhere;
  line-height: 1.5;
}
@media (max-width: 560px) {
  .registration-review dl { grid-template-columns: 1fr; }
  .registration-review dt { padding-bottom: 5px; border-bottom: 0; }
  .registration-review dd { padding-top: 5px; }
}

/* R03 feedback: readable copy, compact training catalogue and richer safety atmosphere. */
:is(
  .page-hero > p:last-child,
  .section-heading > p:not(.eyebrow),
  .benefit p,
  .news-grid article p,
  .article-grid article > p:not(.article-meta),
  .training-catalog-heading p:not(.eyebrow),
  .training-proposal-heading p:not(.eyebrow),
  .training-card-provider,
  .training-card-summary,
  .training-card dd,
  .training-state p,
  .training-legal-note p
) {
  font-size: 1rem;
  line-height: 1.55;
}

.formation-page h1,
.formation-page h2,
.formation-page h3,
.formation-page p {
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
}
.formation-page .formation-hero {
  padding-top: clamp(42px, 5vw, 66px);
  padding-bottom: clamp(42px, 5vw, 66px);
}
.formation-page .training-catalog {
  padding-top: clamp(34px, 4vw, 52px);
  padding-bottom: clamp(34px, 4vw, 52px);
}
.formation-page .training-catalog-heading { margin-bottom: 18px; }
.formation-page .training-filters { margin-bottom: 18px; }
.formation-page .training-list { gap: 12px; }
.formation-page .training-card {
  padding: 18px 20px;
  border-top-width: 3px;
}
.formation-page .training-card h3 {
  margin: 10px 0 4px;
  font-size: 1.18rem;
  overflow-wrap: normal;
}
.formation-page .training-card-provider { margin-bottom: 10px; }
.formation-page .training-card-summary {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.formation-page .training-card dl {
  grid-template-columns: minmax(70px, .35fr) minmax(0, 1fr);
  gap: 7px 12px;
  padding-top: 12px;
}
.formation-page .training-card dd {
  overflow-wrap: normal;
  word-break: normal;
}
.formation-page .training-card-actions { padding-top: 14px; }
.formation-page .training-card-actions .button { min-height: 38px; font-size: .86rem; }
.training-legal-note {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px 16px;
  align-items: baseline;
  max-width: var(--content-wide);
  margin: 18px auto 0;
  padding: 13px 16px;
  color: #5a5062;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(103,45,145,.18);
  border-left: 4px solid var(--evac-violet);
  border-radius: 7px;
}
.training-legal-note strong {
  color: var(--evac-violet-dark);
  font-size: .92rem;
}
.training-legal-note p { margin: 0; }

/* More visible, still translucent safety objects in red and violet. */
.ambient-sign { opacity: .075; }
.ambient-sign:nth-child(9) { top: 39%; right: 17%; --sign-rotate: -7deg; --sign-speed: 37s; }
.ambient-sign:nth-child(10) { top: 76%; left: 39%; --sign-rotate: 5deg; --sign-speed: 33s; }
.ambient-sign:nth-child(11) { top: 8%; right: 32%; --sign-rotate: 8deg; --sign-speed: 41s; }
.ambient-sign--sprinkler .ambient-glyph { width: 44px; height: 30px; border-top: 4px solid currentColor; }
.ambient-sign--sprinkler .ambient-glyph::before { position: absolute; top: 6px; left: 18px; width: 5px; height: 20px; background: currentColor; content: ""; }
.ambient-sign--sprinkler .ambient-glyph::after { position: absolute; bottom: -4px; left: 5px; width: 6px; height: 6px; background: currentColor; border-radius: 50%; box-shadow: 14px 3px 0 currentColor, 28px 0 0 currentColor; content: ""; }
.ambient-sign--helmet .ambient-glyph { width: 46px; height: 27px; border: 4px solid currentColor; border-bottom: 0; border-radius: 28px 28px 0 0; }
.ambient-sign--helmet .ambient-glyph::after { position: absolute; right: -7px; bottom: -7px; left: -7px; height: 5px; background: currentColor; border-radius: 5px; content: ""; }
.ambient-sign--hose .ambient-glyph { width: 42px; height: 42px; border: 4px solid currentColor; border-radius: 50%; }
.ambient-sign--hose .ambient-glyph::after { position: absolute; right: -15px; bottom: -4px; width: 23px; height: 4px; background: currentColor; transform: rotate(35deg); content: ""; }

@media (max-width: 700px) {
  .ambient-sign { opacity: .055; }
  .training-legal-note { grid-template-columns: 1fr; gap: 4px; }
}

/* R03 refinement: cards read as compact two-column information panels. */
.formation-page .training-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}
.formation-page .training-card-identity { min-width: 0; }
.formation-page .training-card-identity h3 { margin-top: 9px; }
.formation-page .training-card-top .training-card-provider { margin-bottom: 0; }
.formation-page .training-card-top .training-card-actions {
  align-self: start;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}
.formation-page .training-card-top .training-card-actions .button { white-space: nowrap; }
.formation-page .training-card-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #ece7ef;
}
.formation-page .training-detail-pair {
  display: grid;
  grid-template-columns: minmax(88px, max-content) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  align-items: start;
}
.formation-page .training-detail-pair dt,
.formation-page .training-detail-pair dd { min-width: 0; }
.formation-page .training-detail-pair dt { white-space: nowrap; }
.formation-page .training-detail-pair dd { overflow-wrap: break-word; word-break: normal; }
.formation-page .training-proposal-heading p:not(.eyebrow) { max-width: 100%; }
.formation-page .formation-hero > p:last-child,
.formation-page .training-catalog-heading p:not(.eyebrow) { max-width: 900px; }

/* R03 refinement: the decorative field uses a consistent line-icon language. */
.ambient-sign {
  width: 82px;
  height: 82px;
  border-width: 1px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.42), rgba(255,255,255,.05));
  box-shadow: 0 10px 24px rgba(75,35,88,.04);
}
.ambient-icon {
  display: block;
  width: 53px;
  height: 53px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* R03 refinement: consent rows keep the checkbox, sentence and document link together. */
.signup-form .checkline {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 13px;
  color: #5d5365;
  background: #fbf9fc;
  border: 1px solid #e1d8e6;
  border-radius: 10px;
  font-size: .86rem;
  line-height: 1.45;
}
.signup-form .checkline input { margin-top: 3px; }
.signup-form .checkline span { min-width: 0; }
.signup-form .checkline span > a {
  display: inline-block;
  width: auto;
  margin: 0 0 0 3px;
  color: var(--evac-violet-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.signup-form .checkline span > small {
  display: block;
  margin-top: 4px;
  color: #766b7c;
  font-size: .72rem;
  line-height: 1.35;
  font-weight: 650;
}

@media (max-width: 700px) {
  .formation-page .training-card-top { grid-template-columns: 1fr; gap: 10px; }
  .formation-page .training-card-top .training-card-actions { justify-content: flex-start; }
  .formation-page .training-card-details { grid-template-columns: 1fr; gap: 8px; }
  .ambient-sign { width: 68px; height: 68px; border-radius: 14px; }
  .ambient-icon { width: 44px; height: 44px; }
}

/* R03 refinement: dashboard e documenti privati leggibili anche dopo l'accesso. */
.admin-page,
.admin-page button,
.admin-page input,
.admin-page select { font-size: 16px; }
.admin-page .admin-status-card span,
.admin-page .admin-search,
.admin-page .admin-status-filter,
.admin-page .admin-results,
.admin-page .admin-request .admin-meta,
.admin-page .admin-request p,
.admin-page .admin-toolbar p { font-size: 14px; line-height: 1.45; }
.admin-page .admin-state { font-size: 13px; }
.admin-page .admin-request .button,
.admin-page .admin-role-tab,
.admin-page .admin-logout { font-size: 14px; }
.private-documents-panel { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.private-document-list { display: grid; gap: 8px; margin: 12px 0 17px; }
.private-document-row { display: grid; gap: 4px; padding: 12px 14px; background: #faf8fc; border: 1px solid var(--line); border-radius: 8px; }
.private-document-row strong, .private-document-empty { font-size: 16px; }
.private-document-row span, .private-document-upload label { color: var(--muted); font-size: 14px; }

/* Training proposal form: make the contract visible before Turnstile runs. */
.training-proposal-fields-hint { margin: -2px 0 2px; color: var(--graphite-soft); font-size: .84rem; line-height: 1.45; }
.training-proposal-form label[data-training-region-optional="true"]::after { content: "Opzionale per corsi online"; color: var(--graphite-soft); font-size: .68rem; font-weight: 650; }
.training-proposal-form label:has(.field-error) { color: #a51f3d; }
.training-proposal-form input.field-error, .training-proposal-form select.field-error, .training-proposal-form textarea.field-error { border-color: #c8274b; background: #fff8fa; box-shadow: 0 0 0 3px rgba(200, 39, 75, .1); }
.training-field-error { display: block; color: #a51f3d; font-size: .72rem; font-weight: 750; line-height: 1.35; }
.training-proposal-form .required-marker { color: var(--signal-red); font-weight: 900; }
.private-document-upload input, .private-document-upload select { font-size: 16px; }

/* News R03: searchable editorial archive and reusable article detail layout. */
.news-library-intro { max-width: 760px; margin: 8px 0 0; color: var(--graphite-soft); }
.news-result-count { min-width: max-content; color: var(--evac-violet); font-size: .82rem; }
.news-filters { display: grid; grid-template-columns: minmax(230px, 1.55fr) repeat(3, minmax(130px, .8fr)) auto; gap: 12px; align-items: end; max-width: var(--content-wide); margin: 0 auto 24px; padding: 14px; background: white; border: 1px solid var(--line-strong); border-radius: 7px; box-shadow: var(--panel-shadow); }
.news-filters label { display: grid; gap: 6px; color: #6f6675; font-size: .72rem; font-weight: 850; }
.news-filters input, .news-filters select { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: white; border: 1px solid #d6cbdc; border-radius: 5px; }
.news-filters input::placeholder { color: #9b92a0; }
.news-editorial-grid { align-items: stretch; }
.news-editorial-card { min-height: 0 !important; }
.news-editorial-card h3 a { color: inherit; text-decoration: none; }
.news-editorial-card h3 a:hover, .news-editorial-card h3 a:focus-visible { color: var(--evac-violet); text-decoration: underline; }
.news-card-excerpt { flex: 1; margin: 0; color: #645c67; font-size: .92rem; line-height: 1.55; }
.news-editorial-card .article-meta time, .news-detail-page .article-meta time { color: #6f6675; font-size: .68rem; font-weight: 800; text-transform: none; }
.news-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.news-card-tags li { padding: 4px 8px; color: #62566a; background: #f7f2fa; border: 1px solid #e5d9eb; border-radius: 999px; font-size: .68rem; font-weight: 750; line-height: 1.2; }
.news-card-details { margin-top: 15px; color: #5f5665; font-size: .84rem; line-height: 1.55; }
.news-card-details summary { width: fit-content; color: var(--evac-violet); cursor: pointer; font-weight: 850; }
.news-card-details-content { margin-top: 10px; padding: 12px 14px; background: #faf8fb; border-left: 3px solid var(--evac-violet); }
.news-card-details-content p { margin: 0 0 9px; }
.news-card-details-content p:last-child { margin-bottom: 0; }
.news-card-action { width: fit-content; }
.news-source-line { margin: 17px 0 0; color: #6f6675; font-size: .78rem; line-height: 1.45; }
.news-source-link { color: var(--evac-violet); font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; border: 0; }
.news-source-link:hover, .news-source-link:focus-visible { color: var(--signal-red); text-decoration-thickness: 2px; }
.news-state--empty { max-width: var(--content-wide); }
.news-pager { max-width: var(--content-wide); }
.news-pager [data-news-page-summary] { color: var(--graphite-soft); font-size: .82rem; font-weight: 800; text-align: center; }
.news-pager .button { min-width: 116px; }
.news-pager .button:disabled { cursor: not-allowed; opacity: .52; }
.news-detail-page { padding-top: clamp(32px, 5vw, 64px); }
.news-detail-content { max-width: var(--content-wide); margin: 0 auto; }
.news-breadcrumb { max-width: 1180px; margin: 0 auto 24px; color: var(--graphite-soft); font-size: .78rem; }
.news-breadcrumb a { color: var(--evac-violet); font-weight: 800; }
.news-detail-hero { max-width: 1180px; margin: 0 auto; padding: clamp(30px, 5vw, 62px); background: linear-gradient(135deg, #fff 0%, #f7f4f8 100%); border: 1px solid var(--line-strong); border-top: 4px solid var(--signal-red); border-radius: 8px; box-shadow: var(--panel-shadow); }
.news-detail-hero h1 { max-width: 900px; margin: 10px 0 16px; font-size: clamp(2.15rem, 4vw, 3.45rem); }
.news-detail-hero .article-meta { margin-bottom: 5px; }
.news-detail-hero .article-detail-published { margin-bottom: 14px; }
.news-detail-lead { max-width: 800px; margin: 0; color: #645c67; font-size: 1.08rem; line-height: 1.6; }
.news-detail-hero .news-card-tags { margin-top: 24px; }
.news-detail-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 24px; max-width: 1180px; margin: 24px auto 0; align-items: start; }
.news-detail-article, .news-detail-aside { padding: clamp(22px, 3vw, 32px); background: white; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--panel-shadow); }
.news-detail-summary { margin: 0 0 26px; color: #4d4453; font-size: 1.05rem; line-height: 1.65; }
.news-detail-source-block { margin-top: 28px; padding-top: 20px; border-top: 1px solid #ebe6ee; }
.news-detail-source-block .news-source-line { margin-top: 0; }
.news-detail-block { margin-top: 28px; padding-top: 22px; border-top: 1px solid #ebe6ee; }
.news-detail-block:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.news-detail-block h2, .news-detail-aside h2 { margin: 0 0 12px; font-size: 1.28rem; }
.news-detail-block ul { display: grid; gap: 10px; margin: 0; padding-left: 22px; color: #5b5261; line-height: 1.6; }
.news-detail-facts { border-top-color: #c51d3f; }
.news-detail-interpretation { border-top-color: var(--evac-violet); }
.news-detail-suggestions { border-top-color: #ad7d16; }
.news-detail-aside { position: sticky; top: 24px; }
.news-detail-meta { display: grid; grid-template-columns: 1fr; gap: 5px; margin: 0; }
.news-detail-meta dt { margin-top: 10px; color: #817687; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.news-detail-meta dt:first-child { margin-top: 0; }
.news-detail-meta dd { margin: 0; color: #4d4453; font-size: .86rem; line-height: 1.45; overflow-wrap: anywhere; }
.news-detail-source-title { margin-top: 28px !important; padding-top: 20px; border-top: 1px solid #ebe6ee; }
.news-detail-source-name { margin: 0 0 9px; color: #4d4453; font-weight: 800; line-height: 1.45; }
.news-detail-source-note { margin: 0 0 14px; color: var(--graphite-soft); font-size: .82rem; line-height: 1.5; }
.news-detail-aside .article-source { display: inline-block; }
.related-articles { max-width: 1180px; margin: 28px auto 0; padding: clamp(26px, 4vw, 42px) 0 0; border-top: 1px solid var(--line-strong); }
.related-articles h2 { margin: 5px 0 22px; }
.related-articles .article-grid { max-width: none; }
.news-detail-error { max-width: 720px; margin: 40px auto; }

@media (max-width: 1120px) {
  .news-filters { grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(150px, 1fr)); }
  .news-filters .news-search { grid-column: 1 / -1; }
  .news-filters .button { justify-self: start; }
}

@media (max-width: 820px) {
  .news-detail-layout { grid-template-columns: 1fr; }
  .news-detail-aside { position: static; }
}

@media (max-width: 700px) {
  .news-filters { grid-template-columns: 1fr; }
  .news-filters .news-search { grid-column: auto; }
  .news-filters .button { width: 100%; }
  .news-pager { align-items: stretch; flex-direction: column; gap: 8px; }
  .news-pager .button { width: 100%; }
  .news-detail-page { padding-top: 24px; }
  .news-detail-hero { padding: 24px 20px; }
  .news-detail-hero h1 { font-size: 2rem; }
  .news-detail-layout { gap: 16px; }
  .news-detail-article, .news-detail-aside { padding: 22px 18px; }
  .related-articles { padding-right: 20px; padding-left: 20px; }
}

/* Area riservata: percorso integrato nella fascia introduttiva. */
.private-intro { display: flex; flex-direction: column; background: #1c171f; }
.private-intro::before, .private-intro::after { display: none; content: none; }
.private-intro .private-intro-copy { max-width: 380px; }
.private-intro .private-steps { width: 100%; max-width: 430px; margin: 38px 0 0; }
.private-intro .private-steps article { color: rgba(255,255,255,.64); }
.private-intro .private-steps article:not(:last-child)::after { background: rgba(255,255,255,.2); }
.private-intro .private-steps article > span { color: rgba(255,255,255,.72); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); }
.private-intro .private-steps strong { color: rgba(255,255,255,.9); }
.private-intro .private-steps p { color: rgba(255,255,255,.62); }
.private-intro .private-steps .is-complete > span { color: #261e2d; background: #f6c7d4; border-color: transparent; }
.private-intro .private-steps .is-complete strong,
.private-intro .private-steps .is-current strong { color: #fff; }
.private-intro .private-steps .is-complete:not(:last-child)::after { background: linear-gradient(#f6c7d4, #b64b7a); }
.private-intro .private-steps .is-current > span { color: #fff; background: linear-gradient(135deg, var(--signal-red), #a33075); border-color: transparent; }
.private-intro .private-steps .is-current { color: rgba(255,255,255,.82); }
.private-panel, .private-panel * { min-width: 0; }
.private-panel p, .private-panel label, .private-panel .form-hint, .private-panel dd { overflow-wrap: anywhere; }
.private-panel .form-hint { line-height: 1.5; }
.private-panel-head { align-items: flex-start; }
.private-panel-head .private-onboarding-intro { max-width: none; white-space: nowrap; }

@media (max-width: 1050px) {
  [data-private-area] .private-section { place-items: start stretch; }
  .private-shell { align-items: stretch; }
  .private-intro { height: auto; min-height: 0; max-height: none; overflow: visible; }
  .private-intro-inner { position: static; top: auto; max-height: none; overflow: visible; }
  .private-intro .private-steps { max-height: none; overflow: visible; padding-right: 0; }
  .private-intro .private-steps { margin-top: 30px; }
}

@media (max-width: 700px) {
  .private-intro .private-steps { margin-top: 26px; }
  .private-panel-head .private-onboarding-intro { white-space: normal; }
}

/* Fase di completamento tecnico: campi compatti e spiegazioni leggibili. */
.private-onboarding-form { min-width: 0; }
.private-onboarding-email { display: grid; grid-template-columns: max-content minmax(220px, 340px); align-items: center; gap: 7px 14px; margin-bottom: 17px; color: var(--ink); font-size: .82rem; font-weight: 850; }
.private-onboarding-email-label { white-space: nowrap; }
.private-onboarding-email input[readonly] { color: var(--ink); background: #f4f0f6; cursor: not-allowed; }
.private-onboarding-email .form-hint { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.private-onboarding-email .form-hint a { color: var(--violet-deep); font-weight: 850; text-decoration: underline; text-underline-offset: 2px; }
.private-profile-email { display: grid; gap: 7px; margin: 0 0 20px; color: var(--ink); font-size: .82rem; font-weight: 850; }
.private-profile-email input[readonly] { width: min(100%, 360px); color: var(--ink); background: #f4f0f6; cursor: not-allowed; }
.private-profile-email .form-hint { margin: 0; color: var(--muted); font-weight: 600; line-height: 1.5; }
.private-profile-email .form-hint a { color: var(--violet-deep); font-weight: 850; text-decoration: underline; text-underline-offset: 2px; }
.private-onboarding-form > .form-hint { margin-top: 0; }
.publication-preference-toggle { align-items: start; }
.publication-preference-toggle small { display: block; margin-top: 4px; color: var(--graphite-soft); font-size: .78rem; font-weight: 600; line-height: 1.45; }
.private-presidium-upload-note { margin-top: 14px; padding: 10px 12px; color: #6d344c; background: #fcf5f8; border-left: 3px solid var(--signal-red); }
.private-panel .private-onboarding-form fieldset { min-width: 0; }

@media (max-width: 700px) {
  .private-onboarding-email { margin-bottom: 14px; }
  .publication-preference-toggle small { font-size: .76rem; }
}

/* Area riservata: la colonna scura segue tutto il contenuto; solo il wrapper interno resta sticky. */
@media (min-width: 1051px) {
  .private-section { align-items: start; justify-items: stretch; }
  .private-shell { align-items: stretch; overflow: visible; }
  .private-intro { align-self: stretch; height: auto; min-height: 100%; max-height: none; overflow: visible; border-radius: 7px 0 0 7px; background: #1c171f; }
  .private-intro-inner { position: sticky; top: 90px; display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 112px); overflow: visible; }
  .private-intro .private-steps { min-height: 0; max-height: calc(100vh - 330px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding-right: 6px; }
  .private-panel { border-radius: 0 7px 7px 0; }
}

/* Completamento tecnico: ordine visivo e consenso di pubblicazione leggibili. */
.private-initial-document-fieldset { margin-top: 20px; }
.private-document-fixed-type { display: grid; gap: 7px; margin-bottom: 14px; }
.private-document-fixed-type .form-label { color: var(--ink); font-size: .82rem; font-weight: 850; }
.private-document-fixed-type strong { display: block; padding: 12px 14px; color: var(--ink); background: #f7f3f8; border: 1px solid var(--line-strong); border-radius: 8px; font-size: .92rem; line-height: 1.4; }
.private-onboarding-publication-fieldset { gap: 13px; }
.private-onboarding-publication-fieldset .publication-preference-toggle {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  min-height: 78px;
  padding: 15px 16px;
  font-size: .95rem;
  line-height: 1.35;
}
.private-onboarding-publication-fieldset .publication-preference-toggle input[type="radio"] {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 2px 0 0;
}
.private-onboarding-publication-fieldset .publication-preference-toggle > span {
  grid-column: 2;
  font-size: .95rem;
  line-height: 1.35;
  white-space: nowrap;
}
.private-onboarding-publication-fieldset .publication-preference-toggle > small {
  grid-column: 2;
  margin: 0;
  color: var(--graphite-soft);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Il consenso UNILAV appare solo per il tipo di documento che lo richiede. */
.private-document-upload [data-unilav-redaction][hidden] { display: none !important; }
.private-document-upload .checkline { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; align-items: start; line-height: 1.45; }
.private-document-upload .checkline input { margin-top: 3px; }
.private-document-upload .checkline span { min-width: 0; }
.private-qualification-rows { display: grid; gap: 14px; margin: 22px 0; padding: 17px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fbf9fc; }
.private-qualification-rows > legend { padding: 0 6px; color: var(--ink); font-size: 1rem; font-weight: 850; }
.private-qualification-row { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line-strong); border-left: 4px solid var(--evac-violet); border-radius: 8px; background: #fff; }
.private-qualification-row-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.private-qualification-row-head h3 { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.3; }
.private-qualification-row-head p { margin: 5px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.private-document-state { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; font-size: .74rem; font-weight: 850; white-space: nowrap; }
.private-document-state--missing { color: #7a1633; background: #fff0f3; }
.private-document-state--pending { color: #68431b; background: #fff4d9; }
.private-document-state--verified { color: #126044; background: #e7f6ef; }
.private-document-state--error { color: #8d1934; background: #ffe9ee; }
.private-qualification-row.is-error { border-left-color: var(--signal-red); }
.private-qualification-row.is-verified { border-left-color: #16815e; }
.private-qualification-row .form-hint { margin: 0; }
.private-qualification-row [data-qualification-feedback]:empty { display: none; }
.private-qualification-row [data-qualification-feedback] { margin: 0; }
.private-qualification-empty { margin: 0; }
.private-document-upload .private-document-fixed-type { margin-bottom: 0; }
.private-identity-summary { margin: 0 0 20px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fbf9fc; }
.private-identity-summary legend { padding: 0 6px; color: var(--ink); font-weight: 850; }
.private-identity-summary input[readonly] { color: var(--ink); background: #f1edf4; cursor: not-allowed; }
.private-identity-summary .form-hint { margin: 10px 0 0; }

@media (max-width: 1050px) {
  .private-intro, .private-intro-inner { max-height: none; overflow: visible; }
}

@media (max-width: 700px) {
  .private-onboarding-email { grid-template-columns: 1fr; gap: 6px; }
  .private-onboarding-email-label { white-space: normal; }
  .private-onboarding-email .form-hint { grid-column: auto; }
  .private-onboarding-publication-fieldset .publication-preference-toggle {
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 0;
  }
  .private-onboarding-publication-fieldset .publication-preference-toggle > span { white-space: normal; }
  .private-onboarding-publication-fieldset .publication-preference-toggle > small { grid-column: 2; }
  .private-qualification-row-head { flex-direction: column; gap: 9px; }
  .private-document-state { white-space: normal; }
}

/* Home: invito con monitor classico e testo mail dimostrativo, senza invio dati. */
.home-company-invite-section { background: #f7f4f8; }
.home-company-invite-card { display: grid; grid-template-columns: minmax(260px, .84fr) minmax(0, 1.16fr); gap: clamp(26px, 5vw, 68px); width: min(100%, var(--content-wide)); margin: 0 auto; padding: clamp(28px, 5vw, 54px); background: linear-gradient(135deg, #fff 0%, #faf6fb 100%); border: 1px solid var(--line-strong); border-top: 4px solid var(--evac-violet); border-radius: 8px; box-shadow: var(--panel-shadow); }
.home-company-invite-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.home-company-invite-copy h2 { max-width: 620px; margin: 9px 0 14px; }
.home-company-invite-copy > p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--graphite-soft); line-height: 1.65; }
.home-company-invite-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.home-company-invite-actions .button { min-width: 145px; justify-content: center; }
.home-company-invite-demo { min-width: 0; }
.home-company-invite-visual-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
.home-company-invite-support { overflow: hidden; min-width: 0; margin: 0; background: #f4eff6; border: 1px solid #e3d7e8; border-radius: 14px; box-shadow: 0 14px 30px rgba(42, 26, 57, .13); }
.home-company-invite-monitor { overflow: hidden; padding: 10px; background: #24212b; border: 1px solid #4b4657; border-radius: 14px; box-shadow: 0 18px 42px rgba(42, 26, 57, .24); }
.home-company-invite-browser-bar { display: flex; align-items: center; gap: 5px; height: 25px; padding: 0 8px; color: #777184; font-size: .62rem; }
.home-company-invite-browser-bar span { width: 7px; height: 7px; border-radius: 50%; background: #8e8798; }
.home-company-invite-browser-bar b { margin-left: 10px; font-weight: 700; letter-spacing: .04em; }
.home-company-invite-mail { overflow: hidden; background: #fff; border-radius: 8px; }
.home-company-invite-mail-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; color: #fff; background: var(--evac-violet); font-size: .7rem; letter-spacing: .08em; }
.home-company-invite-mail-head > span { opacity: .7; }
.home-company-invite-mail-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(178px, .96fr); gap: 16px; padding: 18px; }
.home-company-invite-compose { min-width: 0; padding: 2px 0; color: var(--ink); font-size: .75rem; }
.home-company-invite-compose p { margin: 0; padding: 8px 0; border-bottom: 1px solid #e8e3ec; overflow-wrap: anywhere; }
.home-company-invite-compose p b { display: inline-block; min-width: 62px; color: var(--graphite-soft); font-size: .68rem; }
.home-company-invite-mail-body { padding-top: 14px; line-height: 1.48; }
.home-company-invite-mail-body > span { display: block; overflow-wrap: anywhere; }
.invite-demo-step { opacity: 0; transform: translateY(4px); animation: home-invite-reveal 10s linear infinite; }
.invite-demo-open { animation: none; opacity: 1; transform: none; }
.invite-demo-recipient,
.invite-demo-subject { opacity: 1; transform: none; }
.invite-demo-line:nth-child(1) { animation-delay: 1.7s; }
.invite-demo-line:nth-child(2) { animation-delay: 2.15s; }
.invite-demo-line:nth-child(3) { animation-delay: 2.6s; }
.invite-demo-line:nth-child(4) { animation-delay: 3.05s; }
.invite-demo-line:nth-child(5) { animation-delay: 3.5s; }
.invite-demo-line:nth-child(6) { animation-delay: 3.95s; }
.invite-demo-line:nth-child(7) { animation-delay: 4.4s; }
.invite-demo-line:nth-child(8) { animation-delay: 4.85s; }
.invite-demo-line:nth-child(9) { animation-delay: 5.3s; }
.invite-demo-line:nth-child(10) { animation-delay: 5.75s; }
.invite-demo-link { margin-top: 11px; color: var(--evac-violet); font-weight: 850; animation-delay: 3.95s; }
.home-company-invite-preview { min-width: 0; padding: 15px; color: #302a37; background: #fbf9fc; border: 1px solid #e3d7e8; border-radius: 8px; }
.home-company-invite-preview-kicker { display: block; margin-bottom: 10px; color: var(--evac-violet); font-size: .62rem; font-weight: 850; letter-spacing: .1em; }
.home-company-invite-preview-mark { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px; color: #fff; background: var(--evac-violet); border-radius: 9px; font-size: 1.1rem; font-weight: 900; }
.home-company-invite-preview strong { display: block; font-size: .98rem; }
.home-company-invite-preview p { margin: 8px 0 12px; color: #625a6b; font-size: .72rem; line-height: 1.45; }
.home-company-invite-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.home-company-invite-tags span { padding: 4px 6px; color: var(--evac-violet); background: #f0e8f4; border-radius: 999px; font-size: .61rem; font-weight: 800; }
.home-company-invite-url { display: block; margin-top: 14px; color: var(--evac-violet); font-size: .68rem; font-weight: 850; }
.home-company-invite-caption { margin: 9px 0 0; color: #d5cedb; font-size: .68rem; text-align: right; }
@keyframes home-invite-reveal { 0%, 5% { opacity: 0; transform: translateY(4px); } 11%, 89% { opacity: 1; transform: translateY(0); } 95%, 100% { opacity: 0; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) {
  .invite-demo-step, .home-company-invite-preview { animation: none; opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  .home-company-invite-card { grid-template-columns: 1fr; }
  .home-company-invite-copy { justify-content: initial; }
  .home-company-invite-demo { max-width: 680px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .home-company-invite-card { padding: 27px 20px; }
  .home-company-invite-visual-grid { grid-template-columns: 1fr; }
  .home-company-invite-mail-grid { grid-template-columns: 1fr; gap: 14px; padding: 13px; }
  .home-company-invite-preview { max-width: none; }
  .home-company-invite-actions { align-items: stretch; flex-direction: column; }
  .home-company-invite-actions .button { width: 100%; }
}

/* Dashboard admin: la scheda compatta è l'unico controllo di apertura. */
.admin-list-header { grid-template-columns: minmax(280px, 2fr) minmax(250px, 1fr) minmax(180px, .7fr); }
.admin-request-summary { grid-template-columns: minmax(280px, 2fr) minmax(250px, 1fr) minmax(180px, .7fr); }
.admin-request-summary::after,
.admin-request-details[open] > .admin-request-summary::after { display: none; }
.admin-request-summary .admin-request-heading { gap: 5px; }
.admin-request-summary .admin-request-heading small { font-size: .86rem; line-height: 1.35; }
.admin-request-summary .admin-request-heading .admin-material-received { color: var(--ink); font-size: .86rem; font-weight: 800; }
.admin-request-name-fields { display: flex; flex-wrap: wrap; gap: 4px 18px; min-width: 0; color: var(--ink); font-size: 1rem; line-height: 1.35; }
.admin-request-name-fields span { min-width: 0; overflow-wrap: anywhere; }
.admin-request-name-fields b { color: var(--graphite-soft); font-size: .78em; letter-spacing: .02em; }
.admin-request-summary .admin-state { min-height: 28px; font-size: .82rem; }
.admin-request-summary .admin-meta { font-size: .86rem; line-height: 1.4; }
.admin-presidium-info { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 10px; }
.admin-presidium-info strong,
.admin-presidium-info span { font-size: 1rem; line-height: 1.45; }
.admin-presidium-info span { color: var(--ink); }
.admin-presidium-expiry { font-size: .86rem; line-height: 1.35; }
.admin-presidium-status { grid-column: 2; justify-self: start; width: fit-content; padding: 3px 8px; border-radius: 999px; font-size: .72rem; font-weight: 850; line-height: 1.25; }
.admin-presidium-status.is-verified { color: #0d6853; background: #e8f8f1; }
.admin-presidium-status.is-pending { color: #775500; background: #fff7df; }
.admin-presidium-documents { grid-column: 1 / -1; display: grid; gap: 6px; min-width: 0; padding: 10px 12px; background: #fbf9fc; border: 1px solid #e3d8e9; border-radius: 7px; }
.admin-presidium-documents > strong { color: var(--ink); font-size: .84rem; line-height: 1.35; }
.admin-presidium-documents .admin-document-item { display: grid; gap: 4px; align-items: start; padding-top: 7px; border-top: 1px solid #e3d8e9; }
.admin-presidium-documents .admin-document-item .button { justify-self: start; }
.admin-presidium-document-missing { color: var(--graphite-soft); font-size: .84rem; line-height: 1.45; }
.admin-document-item { font-size: .9rem; }
.admin-document-actions::before { display: none; }
.admin-document-group { display: grid; gap: 9px; padding: 12px 0; border-bottom: 1px solid #e3d8e9; }
.admin-document-group:first-child { padding-top: 0; }
.admin-document-group:last-child { padding-bottom: 0; border-bottom: 0; }
.admin-document-group h4,
.admin-document-history h4 { margin: 0; color: var(--ink); font-size: .88rem; line-height: 1.35; }
.admin-document-meta { display: block; min-width: min(100%, 280px); color: var(--graphite-soft); font-size: .82rem; line-height: 1.45; overflow-wrap: anywhere; }
.admin-document-received { color: var(--ink); font-weight: 750; }
.admin-document-history { display: grid; gap: 9px; padding: 14px; background: #fbf9fc; border: 1px solid #e3d8e9; border-radius: 7px; }
.admin-document-history ol { display: grid; gap: 7px; margin: 0; padding-left: 22px; }
.admin-document-history li { display: grid; gap: 2px; padding-left: 3px; color: var(--graphite-soft); font-size: .84rem; line-height: 1.45; }
.admin-document-history li strong { color: var(--ink); }
.admin-notes { display: grid; gap: 12px; margin-top: 2px; padding: 16px; background: #fff; border: 1px solid #e3d8e9; border-radius: 7px; }
.admin-notes h3 { margin: 0 0 4px; font-size: 1rem; }
.admin-notes .form-hint { margin: 0; font-size: .86rem; line-height: 1.5; }
.admin-notes label { display: grid; gap: 6px; color: var(--ink); font-size: .86rem; font-weight: 850; }
.admin-notes textarea { width: 100%; min-height: 78px; resize: vertical; font: inherit; line-height: 1.5; }
.admin-notes-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-notes-actions .form-feedback { min-height: 1.4em; margin: 0; font-size: .84rem; }
.admin-notes [data-admin-note-history] { display: grid; gap: 7px; padding-top: 10px; border-top: 1px solid #e3d8e9; }
.admin-notes [data-admin-note-history]:empty { display: none; }
.admin-notes h4 { margin: 0; color: var(--ink); font-size: .88rem; }
.admin-notes ol { display: grid; gap: 7px; margin: 0; padding-left: 22px; }
.admin-notes li { display: grid; gap: 2px; padding-left: 3px; color: var(--graphite-soft); font-size: .84rem; line-height: 1.45; }
.admin-notes li time { color: var(--ink); font-weight: 800; }

@media (max-width: 700px) {
  .admin-request-summary { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 17px 18px; }
  .admin-request-summary .admin-state-line,
  .admin-request-summary .admin-meta { grid-column: auto; grid-row: auto; }
  .admin-request-summary .admin-state { justify-self: start; }
  .admin-document-meta { min-width: 0; }
  .admin-notes-actions { align-items: stretch; flex-direction: column; }
  .admin-notes-actions .button { width: 100%; }
}

/* Formazione admin: schede dense ma leggibili, con scadenza sempre visibile. */
.admin-page .training-admin-controls { grid-template-columns: minmax(220px, 1.5fr) repeat(5, minmax(130px, .8fr)); gap: 12px; align-items: end; }
.admin-page .training-admin-controls label { font-size: .78rem; }
.admin-page .training-admin-controls input,
.admin-page .training-admin-controls select { min-height: 46px; font-size: .95rem; }
.training-admin-card { padding: 24px 26px; }
.training-admin-card-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 24px; }
.training-admin-card h3 { font-size: clamp(1.12rem, 1.6vw, 1.35rem); line-height: 1.25; }
.training-admin-card-top p { font-size: .9rem; line-height: 1.45; }
.training-admin-meta { gap: 9px 26px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #eee9f1; font-size: .86rem; line-height: 1.45; }
.training-admin-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 28px; padding: 18px 0 4px; font-size: .94rem; line-height: 1.5; }
.training-admin-detail p:last-child { grid-column: 1 / -1; }
.training-admin-card summary { padding-top: 16px; font-size: .9rem; }
.training-admin-actions { margin-top: 18px; padding-top: 15px; border-top: 1px solid #eee9f1; }
.training-admin-actions .button { min-height: 42px; padding: 9px 15px; font-size: .86rem; }

@media (max-width: 1180px) and (min-width: 701px) {
  .admin-page .training-admin-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .admin-page .training-admin-controls { grid-template-columns: 1fr; }
  .training-admin-card { padding: 20px 18px; }
  .training-admin-card-top { grid-template-columns: 1fr; gap: 12px; }
  .training-admin-card-top .training-status { justify-self: start; }
  .training-admin-detail { grid-template-columns: 1fr; gap: 9px; }
  .training-admin-detail p:last-child { grid-column: auto; }
}

/* Dashboard: macro-aree indipendenti, con una sola sezione visibile alla volta. */
.admin-macro-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 30px;
  scroll-margin-top: 24px;
}
.admin-macro-nav a {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 17px 19px;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(43,22,55,.045);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.admin-macro-nav a strong { color: var(--violet-deep); font-size: 1rem; }
.admin-macro-nav a span { color: var(--graphite-soft); font-size: .82rem; line-height: 1.4; }
.admin-macro-nav a:hover,
.admin-macro-nav a:focus-visible,
.admin-macro-nav a.is-active { border-color: var(--evac-violet); box-shadow: 0 12px 24px rgba(75,31,101,.1); }
.admin-macro-nav a:focus-visible { outline: 3px solid rgba(189,23,54,.28); outline-offset: 3px; }
.admin-page [data-admin-area][hidden] { display: none !important; }
.admin-focus,
.training-admin,
.admin-news-area { scroll-margin-top: 24px; }
.admin-page .training-admin,
.admin-page .training-admin-heading,
.admin-page .training-proposals-admin,
.admin-page .training-admin-controls,
.admin-page .training-admin-list { width: 100%; max-width: none; }
.admin-page .training-admin-card { width: 100%; }
.admin-page .training-admin-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.admin-page .training-admin-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-page .training-admin-detail p:last-child { grid-column: 1 / -1; }
.admin-news-area { margin: 52px auto 0; padding-top: 42px; border-top: 1px solid rgba(68,39,83,.16); }
.admin-news-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.admin-news-heading h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.45rem); }
.admin-news-heading p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--graphite-soft); line-height: 1.55; }
.admin-news-connection { display: grid; gap: 8px; padding: 20px 22px; background: #fbf9fc; border: 1px solid var(--line-strong); border-left: 4px solid var(--signal-red); border-radius: 9px; }
.admin-news-connection strong { color: var(--ink); font-size: 1.02rem; }
.admin-news-connection p { max-width: 920px; margin: 0; color: var(--graphite-soft); line-height: 1.55; }
.admin-news-connection code { color: var(--violet-deep); font-weight: 800; }
.admin-news-connection .form-hint { margin: 4px 0 0; }

@media (max-width: 980px) {
  .admin-macro-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-page .training-admin-meta,
  .admin-page .training-admin-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .admin-macro-nav { grid-template-columns: 1fr; gap: 9px; margin-top: 20px; }
  .admin-macro-nav a { padding: 14px 16px; }
  .admin-news-heading { align-items: stretch; flex-direction: column; gap: 13px; }
  .admin-news-heading .button { width: 100%; text-align: center; }
  .admin-page .training-admin-meta,
  .admin-page .training-admin-detail { grid-template-columns: 1fr; }
}

/* Area privata: uniforma la gerarchia dei titoli delle schede. */
.private-panel .private-subsection-heading h2,
.private-panel .private-identity-summary legend,
.private-panel .private-presidia-fieldset legend,
.private-panel .private-publication-fieldset legend {
  color: var(--ink);
  font-size: clamp(1.28rem, 1.9vw, 1.55rem);
  line-height: 1.18;
}
.private-panel .private-identity-summary legend,
.private-panel .private-presidia-fieldset legend,
.private-panel .private-publication-fieldset legend {
  font-weight: 850;
}

/* Documentazione: stessa card, stessa leggibilità e nessun titolo duplicato. */
.private-documents-panel {
  margin-top: 28px;
  padding: 24px;
  background: #fbf9fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-sizing: border-box;
}
.private-documents-panel .private-subsection-heading {
  margin-bottom: 20px;
}
.private-documents-panel .private-subsection-heading h2 {
  font-size: clamp(1.28rem, 1.9vw, 1.55rem);
}
.private-documents-panel .private-subsection-heading .form-hint,
.private-documents-panel .private-document-upload .form-hint,
.private-documents-panel .private-document-row span {
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
}
.private-documents-panel .private-document-upload label {
  font-size: .95rem;
  line-height: 1.4;
}
.private-documents-panel .private-document-upload .form-feedback {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.5;
}
.private-documents-panel .private-document-upload .form-feedback.error {
  color: #b42318;
}
.private-qualification-fields[hidden] { display: none !important; }
.private-qualification-fields {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.private-qualification-fields legend {
  padding: 0 6px;
  font-weight: 850;
}
.private-qualification-fields .form-hint { margin: 10px 0 0; }
.private-document-details {
  display: block;
  color: var(--graphite-soft);
  font-size: .9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.private-qualification-package {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.private-qualification-package h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}
.private-qualification-package ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 16px;
  padding-left: 20px;
}
.private-qualification-package li { line-height: 1.45; }
.private-qualification-package li.is-complete { color: #087443; }
.private-qualification-package li.is-missing { color: #a4232c; font-weight: 750; }
.private-qualification-package-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.private-qualification-package-actions .form-feedback { margin: 0; }
.private-qualification-package[data-state="submitting"] [data-submit-qualification-package],
.private-qualification-package[data-state="submitted"] [data-submit-qualification-package] { cursor: wait; }
.private-qualification-package[data-state="submitted"] [data-submit-qualification-package] { cursor: default; }
.private-publication-fieldset[data-no-presidia] { opacity: .68; }
@media (max-width: 700px) {
  .private-documents-panel { padding: 18px 16px; }
  .private-qualification-fields { padding: 14px; }
  .private-qualification-package-actions { align-items: stretch; flex-direction: column; }
}

.admin-payment-settings[hidden] { display: none !important; }
.admin-payment-settings {
  margin: 24px 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--evac-violet);
  border-radius: 8px;
  box-shadow: var(--panel-shadow);
}
.admin-payment-settings-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}
.admin-payment-settings-heading h2 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.admin-payment-settings-heading p:not(.eyebrow) { max-width: 70ch; margin: 8px 0 0; color: var(--muted); }
.admin-payment-settings form { display: grid; gap: 14px; }
.admin-payment-settings .form-grid { align-items: end; }
.admin-payment-settings-active { display: flex; align-items: center; gap: 8px; min-height: 46px; }
.admin-payment-settings-active input { width: 20px; min-height: 20px; }
.admin-payment-settings [data-admin-payment-bank-meta] { margin: 0; }
@media (max-width: 700px) {
  .admin-payment-settings { padding: 18px 16px; }
  .admin-payment-settings-heading { display: grid; }
}

/* Pacchetto azienda: documenti e rapporti leggibili anche su schermi stretti. */
.company-onboarding-package-form { min-width: 0; }
.company-package-documents,
.company-package-relationships { display: grid; gap: 16px; }
.company-package-documents .private-subsection-heading,
.company-package-relationships .private-subsection-heading { margin-bottom: 0; }
.company-package-document-row,
.company-package-relationship-row {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
}
.company-package-document-row legend {
  max-width: 100%;
  padding: 0 6px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
}
.company-package-document-row > .form-hint,
.company-package-relationship-row .form-feedback { margin: 0; }
.company-package-selected-file {
  display: block;
  margin-top: 7px;
  color: var(--graphite-soft);
  overflow-wrap: anywhere;
}
.company-package-redaction-confirmation {
  align-items: flex-start;
  line-height: 1.45;
}
.company-package-redaction-confirmation input { flex: 0 0 auto; margin-top: .2em; }
.company-package-row-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.company-package-row-heading h3 { margin: 0; font-size: 1.05rem; }
.company-package-relationships > .button { justify-self: start; }
.company-package-dm37 { margin-top: 0; }

@media (max-width: 700px) {
  .company-package-document-row,
  .company-package-relationship-row { padding: 14px; }
  .company-package-row-heading { flex-direction: column; }
  .company-package-row-heading .button,
  .company-package-relationships > .button { width: 100%; }
}
