/* ═══════════════════════════════════════════════
   BRIDGE NDT TOOLKIT
   Colours matched exactly to PPT theme:
   Navy  #192D38  |  Orange  #F26B43
   Yellow node #F7EDA3  |  Green node #B1E97F
   Amber #E0BE60  |  Dark #5F4E1D
═══════════════════════════════════════════════ */
:root {
  --navy:      #012060;
  --navy-mid:  #012f7a;
  --orange:    #F26B43;
  --yellow:    #F7EDA3;
  --green:     #B1E97F;
  --amber:     #E0BE60;
  --dark-node: #5F4E1D;
  --white:     #FFFFFF;
  --surface:   #F4F6F8;
  --border:    #D0D8DE;
  --text:      #192D38;
  --muted:     #5A6E7A;
  --nav-h:     60px;
  --sidebar-w: 240px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:Arial,Helvetica,sans-serif;background:var(--surface);color:var(--text);min-height:100vh;font-size:14px;line-height:1.5}
button{font-family:inherit;cursor:pointer}

/* ── NAV ── */
nav{background:var(--navy);height:var(--nav-h);display:flex;align-items:center;padding:0 1.5rem;gap:1rem;position:sticky;top:0;z-index:200;box-shadow:0 2px 8px rgba(0,0,0,0.4)}
.nav-brand{display:flex;align-items:center;gap:12px;flex-shrink:0}
.nav-logo-wrap{display:flex;align-items:center;gap:8px}
.nav-logo-bar{width:4px;height:36px;background:var(--orange);border-radius:2px}
.nav-wordmark{display:flex;flex-direction:column;line-height:1}
.nav-title{font-size:15px;font-weight:700;color:var(--white);letter-spacing:0.2px}
.nav-subtitle{font-size:10px;color:rgba(255,255,255,0.45);letter-spacing:1px;text-transform:uppercase;margin-top:1px}
.nav-divider{width:1px;height:30px;background:rgba(255,255,255,0.15);margin:0 4px}
.nav-links{display:flex;gap:2px;margin-left:auto}
.nav-btn{background:none;border:none;color:rgba(255,255,255,0.65);padding:6px 13px;border-radius:4px;font-size:13px;font-weight:400;transition:all .15s;white-space:nowrap}
.nav-btn:hover{background:rgba(255,255,255,0.1);color:var(--white)}
.nav-btn.active{background:var(--orange);color:var(--white)}
a.nav-btn{text-decoration:none;display:inline-flex;align-items:center}
/* Signed-in user: My Structures button and "Signed in as" badge (templates/_user_nav.html) */
.nav-sep{width:1px;align-self:stretch;margin:4px 6px;background:rgba(255,255,255,.18)}
.nav-structures{display:inline-flex;align-items:center;white-space:nowrap;text-decoration:none;font-size:13px;font-weight:700;
  color:#fff;border:1.5px solid var(--orange);border-radius:4px;padding:5px 11px;transition:background .15s}
.nav-structures:hover{background:rgba(242,107,67,.2)}
.nav-user{display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:#fff;padding:3px 8px 3px 4px;border-radius:20px;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);margin-left:4px;max-width:210px;transition:background .15s}
.nav-user:hover{background:rgba(255,255,255,.16)}
.nav-user-avatar{flex-shrink:0;width:26px;height:26px;border-radius:50%;background:#2A7A2A;color:#fff;font-weight:700;font-size:13px;
  display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px rgba(255,255,255,.25)}
.nav-user-text{display:flex;flex-direction:column;line-height:1.1;min-width:0}
.nav-user-lbl{font-size:9px;text-transform:uppercase;letter-spacing:.6px;color:#9fe39f}
.nav-user-name{font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Signed in, the header holds two more items: shorten the beta pill and tighten the menu
   sooner, collapse the badge to the avatar, then switch to the ☰ menu (which lists both) */
@media(max-width:1600px){
  body.signed-in .beta-pill-cta{display:none}
  body.signed-in .beta-pill-label{font-size:0;padding:4px 9px}
  body.signed-in .beta-pill-label::after{content:'Beta';font-size:11px}
}
@media(max-width:1520px){body.signed-in .nav-btn{padding:6px 8px}.nav-user{max-width:150px}}
@media(max-width:1400px){body.signed-in .nav-btn{padding:6px 6px;font-size:12.5px}.nav-structures{padding:5px 8px}}
@media(max-width:1300px){body.signed-in .nav-user-text{display:none}body.signed-in .nav-user{padding:3px;margin-left:2px}.nav-sep{margin:4px 2px}}
@media(max-width:1200px){body.signed-in .nav-btn{padding:6px 4px;font-size:12px}}
@media(max-width:1100px){body.signed-in .nav-links{display:none}body.signed-in .nav-hamburger{display:block}}
@media(max-width:940px){.nav-links{display:none}.nav-hamburger{display:block}}
.cta-structures{display:inline-flex;align-items:center;background:var(--white);color:var(--navy);border:none;text-decoration:none;
  padding:11px 22px;border-radius:4px;font-size:14px;font-weight:700;transition:all .18s;box-shadow:0 0 0 3px rgba(242,107,67,.55)}
.cta-structures:hover{transform:translateY(-1px);box-shadow:0 0 0 3px var(--orange)}
a.cta-secondary{text-decoration:none;display:inline-flex;align-items:center}
.nav-hamburger{display:none;background:none;border:none;color:var(--white);font-size:22px;padding:4px 8px;margin-left:auto}
.mobile-menu{display:none;flex-direction:column;background:var(--navy);border-top:1px solid rgba(255,255,255,0.1);position:sticky;top:var(--nav-h);z-index:199}
.mobile-menu button{background:none;border:none;border-bottom:1px solid rgba(255,255,255,0.08);color:rgba(255,255,255,0.8);padding:13px 1.5rem;text-align:left;font-size:14px}
.mobile-menu button:hover{background:rgba(255,255,255,0.07)}
.mobile-menu.open{display:flex}

/* ── VIEWS ── */
.view{min-height:calc(100vh - var(--nav-h))}

/* ── HOME HERO — matches slide 1 layout ── */
.hero{
  background:var(--navy);
  position:relative;overflow:hidden;
  min-height:420px;display:flex;flex-direction:column;
}
/* Right half: the bridge photo, fading into navy on the left */
.hero-bg{
  position:absolute;inset:0;
  background-image:url('/static/images/hero.jpeg');
  background-size:cover;background-position:center 30%;
}
/* Gradient: solid PPT navy #012060 on left fading to transparent on right */
.hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(
    90deg,
    rgba(1,32,96,1)    0%,
    rgba(1,32,96,1)    42%,
    rgba(1,32,96,0.88) 55%,
    rgba(1,32,96,0.35) 75%,
    rgba(1,32,96,0)    100%
  );
}
.hero-inner{
  position:relative;
  padding:1.25rem 2.5rem 1.5rem;
  display:flex;flex-direction:column;
  justify-content:center;
  flex:1;
  max-width:1000px;
}
/* Structures Moonshot logo image — top left, like the PPT */
.hero-moonshot-logo{
  width:330px;
  margin-bottom:1.1rem;
  display:block;
}
.hero-title{
  font-size:clamp(1.8rem,3.5vw,2.9rem);
  font-weight:700;color:var(--white);
  line-height:1.1;margin-bottom:6px;
}
.hero-title em{color:inherit;font-style:normal}
.hero-rule{width:48px;height:3px;background:var(--orange);margin:12px 0}
.hero-sub{
  font-size:0.9rem;color:rgba(255,255,255,0.65);
  line-height:1.6;max-width:900px;margin-bottom:1.4rem;
}
.hero-cta-row{display:flex;gap:10px;flex-wrap:wrap}
.cta-primary{
  background:var(--orange);color:var(--white);border:none;
  padding:11px 22px;border-radius:4px;font-size:14px;font-weight:700;
  transition:all .18s;letter-spacing:0.2px;
}
.cta-primary:hover{background:#d95a32;transform:translateY(-1px)}
.cta-secondary{
  background:rgba(255,255,255,0.08);
  border:1.5px solid rgba(255,255,255,0.25);
  color:rgba(255,255,255,0.8);
  padding:11px 22px;border-radius:4px;font-size:14px;transition:all .18s;
}
.cta-secondary:hover{background:rgba(255,255,255,0.15)}

/* Partner logos bar — bottom of hero, like slide 1 */
.hero-partner-logos{
  position:relative;
  background:var(--navy);
  border-top:1px solid rgba(255,255,255,0.12);
  padding:0.6rem 2.5rem;
  display:flex;align-items:center;
}
.partner-logos-img{
  height:58px;
  width:auto;
  max-width:calc(100% - 40px);
  object-fit:contain;object-position:left center;
  display:block;
}

.home-cards-section{padding:1.5rem 2rem;max-width:1440px;margin:0 auto}
.home-section-title{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:var(--muted);font-weight:700;margin-bottom:.9rem}
.home-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.home-card{background:var(--white);border-radius:4px;border:1px solid var(--border);padding:1.25rem 1.5rem 1rem;cursor:pointer;transition:all .18s;position:relative;overflow:hidden;border-top:4px solid var(--accent,var(--navy))}
.home-card:hover{box-shadow:0 6px 24px rgba(0,0,0,0.1);transform:translateY(-2px)}
.home-card-num{font-size:2rem;font-weight:700;color:var(--accent,var(--navy));opacity:0.15;position:absolute;top:10px;right:14px;line-height:1}
.home-card-head{display:flex;align-items:center;gap:.6rem;margin-bottom:.5rem}
.home-card-icon{font-size:1.6rem;line-height:1}
.home-card-head h3{margin-bottom:0}
.home-card h3{font-size:1rem;font-weight:700;color:var(--navy);margin-bottom:0.5rem;text-transform:uppercase;letter-spacing:0.3px}
.home-card p{font-size:0.84rem;color:var(--muted);line-height:1.55}
.home-card-footer{display:flex;justify-content:space-between;align-items:center;margin-top:.9rem;padding-top:.75rem;border-top:1px solid var(--border);font-size:11.5px;color:var(--muted)}
.home-card-cta{color:var(--accent,var(--navy));font-weight:700;font-size:13px}

.home-footer-bar{background:var(--white);border-top:1px solid var(--border);padding:0.875rem 2rem;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem}
.home-footer-links{display:flex;gap:.5rem;flex-wrap:wrap}
.home-footer-links button{background:none;border:1px solid var(--border);color:var(--muted);padding:5px 12px;border-radius:20px;font-size:12px;transition:all .15s}
.home-footer-links button:hover{border-color:var(--orange);color:var(--navy);background:var(--surface)}
.home-footer-ref{font-size:11px;color:var(--muted)}

/* ── SECTION HEADER ── */
.section-header{background:var(--navy);color:var(--white);padding:1rem 1.5rem;display:flex;align-items:center;gap:1rem;flex-shrink:0}
.section-header-text h2{font-size:1.25rem;font-weight:700;letter-spacing:0.2px}
.section-header-text p{font-size:0.8rem;color:rgba(255,255,255,0.5);margin-top:2px}
.back-btn{background:rgba(255,255,255,0.1);border:none;color:var(--white);padding:6px 13px;border-radius:4px;font-size:13px;font-weight:400;white-space:nowrap;transition:background .15s}
.back-btn:hover{background:rgba(255,255,255,0.2)}
.screen-toggle{background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.2);color:rgba(255,255,255,0.7);padding:5px 11px;border-radius:4px;font-size:12px;white-space:nowrap;transition:all .15s;cursor:pointer}
.screen-toggle:hover{background:rgba(255,255,255,0.15);color:white}
.screen-toggle.active{background:var(--orange);border-color:var(--orange);color:white}
/* Fit mode — scale SVG to fill container */

/* ── SPLIT LAYOUT ── */
.split-layout{display:grid;grid-template-columns:var(--sidebar-w) 1fr;height:calc(100vh - var(--nav-h) - 68px)}
.split-sidebar{background:var(--white);border-right:1px solid var(--border);overflow-y:auto;padding:.5rem 0}
.split-main{overflow-y:auto;background:var(--surface);padding:0.75rem 1.5rem}

.sidebar-label{font-size:10px;letter-spacing:2px;text-transform:uppercase;color:var(--muted);padding:8px 1rem 4px;font-weight:700}
.sidebar-group-label{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted);padding:10px 1rem 3px;border-top:1px solid var(--border);margin-top:4px;font-weight:700}
.sidebar-group-label:first-child{border-top:none;margin-top:0}
.sidebar-btn{display:block;width:100%;text-align:left;background:#deeaf5;border:none;border-left:3px solid transparent;padding:8px 1rem;font-size:12.5px;color:#1a3a5c;line-height:1.35;transition:all .13s}
.sidebar-btn:hover{background:#c8ddf0;color:var(--navy)}
.sidebar-btn.active{background:#c8ddf0;border-left-color:var(--orange);color:var(--navy);font-weight:700}

.tree-placeholder{text-align:center;padding:4rem 2rem;color:var(--muted)}
.tree-placeholder-icon{font-size:3rem;margin-bottom:1rem}
.tree-placeholder p{font-size:0.9rem}

/* ── NDT MATRIX ── */
.matrix-outer{padding:1.5rem 2rem;max-width:1100px;margin:0 auto}
.matrix-hint{background:var(--white);border:1px solid var(--border);border-left:4px solid var(--orange);border-radius:4px;padding:.875rem 1.25rem;font-size:.83rem;color:var(--muted);line-height:1.6;margin-bottom:1.5rem}
.matrix-hint strong{color:var(--text)}
.matrix-hint{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
.matrix-hint-text{flex:1;min-width:280px}
.matrix-hint-actions{display:flex;gap:6px;flex-shrink:0}
.matrix-all-btn{background:var(--navy);color:white;border:none;border-radius:4px;padding:8px 14px;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.matrix-all-btn:hover{background:#023080}
.matrix-category{margin-bottom:1.75rem}
.matrix-cat-header{display:flex;align-items:center;gap:12px;width:100%;border:none;cursor:pointer;text-align:left;
  font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:1px;background:var(--navy);color:var(--white);
  padding:9px 10px 9px 14px;border-radius:4px 4px 0 0;font-family:inherit}
.matrix-cat-header:hover{background:#023080}
.matrix-cat-header:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.matrix-cat-title{flex:1}
.matrix-cat-count{font-size:11px;font-weight:600;letter-spacing:.3px;text-transform:none;color:rgba(255,255,255,.65)}
.matrix-cat-toggle{display:inline-flex;align-items:center;gap:6px;background:var(--orange);color:white;border-radius:4px;
  padding:5px 12px 5px 9px;font-size:12px;letter-spacing:.4px;text-transform:none;font-weight:700;min-width:104px;justify-content:center;
  box-shadow:0 1px 0 rgba(0,0,0,.15)}
.mct-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;
  background:rgba(255,255,255,.25);font-size:15px;line-height:1;font-weight:800}
.matrix-cat-header:hover .matrix-cat-toggle{background:#d95a32}
.matrix-category.collapsed .matrix-cat-header{border-radius:4px}
.matrix-category.collapsed .matrix-items{display:none}
.matrix-category.collapsed,.matrix-category.closing{margin-bottom:.6rem}
.matrix-category{transition:margin-bottom .3s ease}
.matrix-items{transition:height .3s ease}
.matrix-category.closing .matrix-cat-header{transition:border-radius 0s .25s;border-radius:4px}
.matrix-items{background:var(--white);border:1px solid var(--border);border-top:none;border-radius:0 0 4px 4px;overflow:hidden}
.matrix-item{display:grid;grid-template-columns:52px 1fr;gap:12px;padding:12px 14px;border-bottom:1px solid var(--border);align-items:start;transition:background .12s}
.matrix-item:last-child{border-bottom:none}
.matrix-item:hover{background:#F8FAFC}
.matrix-item.highlighted{background:#FFF8F5;outline:2px solid var(--orange)}
.matrix-id{font-size:1rem;font-weight:700;color:var(--navy);padding-top:2px;font-family:Arial,sans-serif}
.matrix-label{font-weight:700;font-size:.87rem;margin-bottom:2px}
.matrix-question{font-size:.79rem;color:var(--muted);font-style:italic;margin-bottom:8px}
.matrix-tags{display:flex;flex-wrap:wrap;gap:5px}
.tech-tag{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:2px;font-size:11.5px;font-weight:700;cursor:pointer;border:none;background:var(--navy);color:var(--white);transition:all .14s;font-family:inherit;letter-spacing:0.2px}
.tech-tag:hover{background:var(--orange);transform:translateY(-1px)}
.scope-badge{font-size:9px;background:rgba(255,255,255,0.2);padding:1px 5px;border-radius:2px}
.no-tech{font-size:.82rem;color:var(--muted);font-style:italic}

/* ── CONSISTENCY COLOURS (matching Excel) ── */
/* White / no colour = trials only */
.tech-tag.consistency-high     { background:#244E6E; }
.tech-tag.consistency-high:hover{ background:#1a3a52; }
.tech-tag.consistency-moderate { background:#619ECB; }
.tech-tag.consistency-moderate:hover{ background:#4d85b0; }
.tech-tag.consistency-low      { background:#CADFEE; color:#1a2e40; }
.tech-tag.consistency-low:hover{ background:#b0cfe6; color:#1a2e40; }
.tech-tag.consistency-trials   { background:white; color:var(--text); border:1px solid var(--border); }
.tech-tag.consistency-trials:hover{ background:var(--surface); }
.tech-tag.consistency-not-tested{ background:#f1f3f5; color:#6b7280; border:1px dashed #9aa3ad; }
.tech-tag.consistency-not-tested:hover{ background:#e6e9ec; }

/* Consistency legend on matrix */
.consistency-legend{
  display:flex;flex-wrap:wrap;gap:6px;align-items:center;
  margin-bottom:1rem;background:white;border:1px solid var(--border);
  border-left:4px solid var(--navy);border-radius:4px;padding:10px 14px;
  font-size:11px;
}
.consistency-legend-title{font-weight:700;color:var(--navy);margin-right:6px;font-size:12px}
.cons-chip{padding:3px 10px;border-radius:2px;font-size:11px;font-weight:600}
.cons-chip.high    {background:#244E6E;color:white}
.cons-chip.moderate{background:#619ECB;color:white}
.cons-chip.low     {background:#CADFEE;color:#1a2e40}
.cons-chip.trials  {background:white;color:var(--text);border:1px solid var(--border)}
.cons-chip.not-tested{background:#f1f3f5;color:#6b7280;border:1px dashed #9aa3ad}
/* Matrix filters */
button.cons-chip{cursor:pointer;font-family:inherit;line-height:1.4;border:1px solid transparent;transition:opacity .15s,filter .15s,transform .1s}
button.cons-chip.trials{border-color:var(--border)}
button.cons-chip.not-tested{border:1px dashed #9aa3ad}
button.cons-chip:hover{transform:translateY(-1px);box-shadow:0 2px 5px rgba(0,0,0,.15)}
button.cons-chip:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
button.cons-chip.off{opacity:.35;filter:grayscale(1);text-decoration:line-through}
.consistency-legend{flex-direction:column;align-items:stretch;gap:10px}
.mx-key-row,.mx-search-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.mx-key-row .consistency-legend-title,.mx-search-row .consistency-legend-title{width:118px;flex-shrink:0;margin-right:0}
.mx-search-row input{padding:6px 10px;border:1px solid var(--border);border-radius:4px;font-size:12.5px;width:300px;max-width:100%;font-family:inherit}
.mx-search-row input:focus{outline:none;border-color:var(--navy);box-shadow:0 0 0 2px rgba(1,32,96,.15)}
.mx-filter-status{font-size:12px;color:var(--navy);font-weight:600;margin-left:10px}
.mx-filter-status:empty{display:none}
.mx-reset{margin-left:8px;background:none;border:none;color:var(--orange);font-weight:700;cursor:pointer;text-decoration:underline;font-size:12px;font-family:inherit;padding:0}
.tech-tag{transition:all .14s,opacity .2s,filter .2s}
.tech-tag.mx-dim{opacity:.22;filter:grayscale(1)}
.tech-tag.mx-dim:hover{opacity:.6}
.matrix-item.mx-row-dim .matrix-label,.matrix-item.mx-row-dim .matrix-question,.matrix-item.mx-row-dim .matrix-id{opacity:.45}
.mx-cat-matches{font-size:11px;font-weight:700;letter-spacing:.3px;text-transform:none;background:var(--orange);color:#fff;border-radius:10px;padding:2px 9px}
.mx-cat-matches:empty{display:none}
.mx-cat-matches.none{background:rgba(255,255,255,.18);color:rgba(255,255,255,.7)}
@media(max-width:700px){.mx-key-row .consistency-legend-title,.mx-search-row .consistency-legend-title{width:auto}.mx-search-row input{flex:1;min-width:160px}.mx-filter-status{margin-left:0;flex-basis:100%}}

/* Matrix ref badge with consistency colour on tech one-pager */
.matrix-ref-tag button.consistency-high     {background:#244E6E}
.matrix-ref-tag button.consistency-high:hover{background:#1a3a52}
.matrix-ref-tag button.consistency-moderate {background:#619ECB}
.matrix-ref-tag button.consistency-moderate:hover{background:#4d85b0}
.matrix-ref-tag button.consistency-low      {background:#CADFEE;color:#1a2e40}
.matrix-ref-tag button.consistency-low:hover{background:#b0cfe6;color:#1a2e40}
.matrix-ref-tag button.consistency-trials   {background:white;color:var(--text);border:1px solid var(--border)}
.matrix-ref-tag button.consistency-not-tested{background:#f1f3f5;color:#6b7280;border:1px dashed #9aa3ad}

/* Matrix ref tooltip — anchored to bottom-left of the badge, extends rightward */
.matrix-ref-tag .tooltip{
  visibility:hidden;opacity:0;
  position:absolute;
  bottom:calc(100% + 6px);
  left:0;              /* anchor at left edge of badge */
  transform:none;      /* no centering — extends rightward from the anchor */
  background:#2a4a6b;
  color:var(--white);font-size:11px;padding:7px 10px;border-radius:4px;
  white-space:normal;max-width:260px;min-width:180px;
  text-align:left;z-index:50;transition:opacity .15s;pointer-events:none;line-height:1.45;
}
.matrix-ref-tag .tooltip::after{
  content:'';position:absolute;top:100%;
  left:12px;           /* arrow sits near left edge */
  transform:none;
  border:5px solid transparent;border-top-color:#2a4a6b;
}
.matrix-ref-tag:hover .tooltip{visibility:visible;opacity:1}

/* ── TECHNOLOGY ONE-PAGER ── */
.tech-card{background:var(--white);border:1px solid var(--border);border-radius:4px;overflow:hidden;max-width:880px}
.tech-card-header{background:var(--navy);color:var(--white);padding:1.5rem 2rem}
.tech-card-header-top{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}
.tech-card-cat{font-size:10px;letter-spacing:2px;text-transform:uppercase;color:var(--orange);font-weight:700;margin-bottom:4px}
.tech-card-title{font-size:1.5rem;font-weight:700;line-height:1.1;margin-bottom:4px}
.tech-card-subtitle{font-size:.8rem;color:rgba(255,255,255,0.5);line-height:1.4}
.tech-card-header-imgs{display:flex;gap:8px;flex-shrink:0}
.tech-card-header-actions{display:flex;align-items:center;gap:14px;flex-shrink:0;align-self:center}
.tech-card-header-actions .add-regime-btn{margin-top:0}
.tech-key-photo{width:150px;height:100px;object-fit:cover;border-radius:4px;border:2px solid rgba(255,255,255,0.25);cursor:zoom-in;transition:border-color .15s}
.tech-key-photo:hover{border-color:var(--orange)}
@media(max-width:700px){.tech-card-header-top{flex-wrap:wrap}.tech-key-photo{width:110px;height:74px}}
.tech-header-img{width:90px;height:65px;object-fit:cover;border-radius:3px;border:2px solid rgba(255,255,255,0.15)}

/* ratings row */
.tech-ratings{display:flex;flex-wrap:wrap;gap:0;border-bottom:1px solid var(--border)}
.rating-block{display:flex;flex-direction:column;align-items:center;gap:5px;padding:.875rem 1.25rem;border-right:1px solid var(--border);min-width:110px;position:relative}
.rating-block:last-child{border-right:none}
.rating-name{font-size:10px;text-transform:uppercase;letter-spacing:.8px;color:var(--muted);font-weight:700;text-align:center}
.rating-dots{display:flex;gap:4px}
.rating-dot{width:12px;height:12px;border-radius:50%;background:var(--border)}
/* All filled dots same colour, determined by how many are filled:
   Use data attribute on the container set by JS */
.rating-dots[data-level="1"] .rating-dot.on { background:#2A7A2A }
.rating-dots[data-level="2"] .rating-dot.on { background:#E8601C }
.rating-dots[data-level="3"] .rating-dot.on { background:#C0392B }
/* Tooltip for ratings */
.rating-block .tooltip{
  visibility:hidden;opacity:0;
  position:absolute;
  bottom:calc(100% + 8px);
  left:0;                    /* anchor to left edge of rating block */
  transform:none;            /* no centering — extends rightward */
  background:#2a4a6b;color:var(--white);
  font-size:12px;padding:9px 13px;border-radius:4px;
  width:260px;
  white-space:normal;text-align:left;
  z-index:9999;
  transition:opacity .15s;pointer-events:none;line-height:1.5;
  box-shadow:0 4px 16px rgba(0,0,0,0.3);
}
.rating-block .tooltip::after{
  content:'';position:absolute;top:100%;left:16px;transform:none;
  border:5px solid transparent;border-top-color:#2a4a6b;
}
.rating-block:hover .tooltip{visibility:visible;opacity:1}

/* body grid */
.tech-body{display:grid;grid-template-columns:1fr 1fr;gap:0;border-top:none}
.tech-section{padding:1.25rem 1.5rem;border-right:1px solid var(--border);border-bottom:1px solid var(--border)}
.tech-section:nth-child(even){border-right:none}
.tech-section.full{grid-column:1/-1;border-right:none}
.tech-section-title{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--navy);margin-bottom:8px;display:flex;align-items:center;gap:6px}
.tech-section-title::before{content:'';display:inline-block;width:3px;height:12px;background:var(--orange);border-radius:1px}
.tech-overview{font-size:.84rem;line-height:1.65;color:var(--text)}
.tech-list{list-style:none;display:flex;flex-direction:column;gap:5px}
.tech-list li{font-size:.83rem;line-height:1.4;color:var(--text);padding-left:16px;position:relative}
.tech-list.strengths li::before{content:'✓';position:absolute;left:0;color:#2d7a1a;font-weight:700;font-size:10px;top:2px}
.tech-list.limitations li::before{content:'✗';position:absolute;left:0;color:#c0392b;font-weight:700;font-size:10px;top:2px}
.tech-list.capabilities li::before{content:'▸';position:absolute;left:0;color:var(--navy);font-size:10px;top:1px}
.tech-list.tips li::before{content:'★';position:absolute;left:1px;color:var(--amber);font-size:9px;top:3px}
.tech-output-box{background:var(--surface);border-radius:3px;padding:10px 12px;font-size:.83rem;line-height:1.55;color:var(--text)}

/* Images gallery on one-pager */
.tech-images{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.tech-img-thumb{width:140px;height:100px;object-fit:cover;border-radius:3px;border:1px solid var(--border);cursor:pointer;transition:all .15s}
.tech-img-thumb:hover{border-color:var(--orange);box-shadow:0 2px 8px rgba(0,0,0,0.15);transform:scale(1.02)}
/* Video thumbnail */
.tech-video-thumb{position:relative;width:140px;height:100px;border-radius:3px;border:1px solid var(--border);cursor:pointer;overflow:hidden;transition:all .15s;background:#000}
.tech-video-thumb:hover{border-color:var(--orange);box-shadow:0 2px 8px rgba(0,0,0,0.15);transform:scale(1.02)}
.tech-video-preview{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.tech-video-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.35);color:white;font-size:28px;transition:background .15s}
.tech-video-thumb:hover .tech-video-play{background:rgba(0,0,0,0.55)}

/* matrix refs as tooltips */
.matrix-ref-tags{display:flex;flex-wrap:wrap;gap:5px}
.matrix-ref-tag{position:relative;display:inline-block}
.matrix-ref-tag button{background:var(--navy);color:var(--white);font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:2px;border:none;font-family:inherit;transition:background .14s;cursor:pointer}
.matrix-ref-tag button:hover{background:var(--orange)}
.matrix-ref-tag .tooltip{visibility:hidden;opacity:0;position:absolute;bottom:calc(100% + 6px);left:0;transform:none;background:#2a4a6b;color:var(--white);font-size:11px;padding:7px 10px;border-radius:4px;white-space:normal;max-width:260px;text-align:left;z-index:50;transition:opacity .15s;pointer-events:none;line-height:1.45;min-width:180px}
.matrix-ref-tag .tooltip::after{content:'';position:absolute;top:100%;left:12px;transform:none;border:5px solid transparent;border-top-color:#2a4a6b}
.matrix-ref-tag:hover .tooltip{visibility:visible;opacity:1}

/* ── INFO PAGES ── */
.info-layout{max-width:860px;margin:0 auto;padding:2rem}
.info-card{background:var(--white);border:1px solid var(--border);border-radius:4px;padding:1.75rem 2rem;margin-bottom:1.5rem;border-top:4px solid var(--navy)}
.info-card h3{font-size:1rem;font-weight:700;color:var(--navy);margin-bottom:1rem;text-transform:uppercase;letter-spacing:.5px}
.info-card p{font-size:.87rem;line-height:1.7;color:var(--text);margin-bottom:.75rem}
.info-card p:last-child{margin-bottom:0}
.numbered-steps{display:flex;flex-direction:column;gap:1rem;margin-top:.5rem}
.numbered-step{display:flex;gap:1rem;align-items:flex-start}
.step-num{background:var(--orange);color:var(--white);width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;flex-shrink:0;margin-top:1px}
.step-body h4{font-size:.9rem;font-weight:700;color:var(--navy);margin-bottom:3px}
.step-body p{font-size:.83rem;color:var(--text);margin:0}
.meta-table{width:100%;border-collapse:collapse;font-size:.84rem;margin-bottom:1rem}
.meta-table td{padding:7px 0;border-bottom:1px solid var(--border)}
.meta-table td:first-child{color:var(--muted);width:180px}
.meta-table tr:last-child td{border-bottom:none}
.meta-disclaimer{font-size:.77rem;color:var(--muted);line-height:1.6}
button.link-btn{background:none;border:none;padding:0;font:inherit;color:var(--navy);text-decoration:underline;cursor:pointer}
button.link-btn:hover{color:var(--orange)}
.release-notes{margin:0;padding-left:1.2rem;font-size:.86rem;line-height:1.6;color:var(--text)}
.release-notes li{margin-bottom:.4rem}
.meta-disclaimer p{font-size:inherit;color:inherit;line-height:inherit}
.step-body p+p{margin-top:.4rem}

/* ── KEY PAGE ── */
.key-table{width:100%;border-collapse:collapse;font-size:.84rem}
.key-table thead th{background:var(--navy);color:var(--white);padding:8px 12px;text-align:left;font-size:.85rem;font-weight:700;letter-spacing:.3px}
.key-table td{padding:9px 12px;border-bottom:1px solid var(--border);vertical-align:middle}
.key-table tr:last-child td{border-bottom:none}
.key-table tr:nth-child(even) td{background:var(--surface)}
.dot-row{display:flex;gap:4px;align-items:center}
.dot{width:13px;height:13px;border-radius:50%;border:1.5px solid #ccc;background:var(--white)}
.dot.filled{border-color:transparent}
.dot-orange.filled{background:var(--orange);border-color:var(--orange)}
.dot-teal.filled{background:#007A8C;border-color:#007A8C}
.dot-green.filled{background:#2A7A4B;border-color:#2A7A4B}
.dot-navy.filled{background:var(--navy);border-color:var(--navy)}
.dot-amber.filled{background:var(--amber);border-color:var(--amber)}
.node-sample{width:22px;height:14px;border-radius:2px}

/* ── MODAL ── */
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.55);z-index:500;align-items:center;justify-content:center;padding:1rem}
.modal-overlay.open{display:flex}
.modal-box{
  background:var(--white);border-radius:4px;
  max-width:720px;width:100%;
  box-shadow:0 20px 60px rgba(0,0,0,0.3);
  overflow:hidden;animation:popIn .18s ease-out;
}
@keyframes popIn{from{opacity:0;transform:scale(0.94) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}
.modal-header{background:var(--navy);color:var(--white);padding:1.1rem 1.5rem;display:flex;align-items:flex-start;justify-content:space-between}
.modal-category{font-size:10px;letter-spacing:2px;text-transform:uppercase;color:var(--orange);font-weight:700;margin-bottom:3px}
.modal-header h3{font-size:1rem;font-weight:700;line-height:1.2}
.modal-close{background:none;border:none;color:rgba(255,255,255,0.5);font-size:20px;padding:0;margin-left:1rem;margin-top:-2px;transition:color .13s}
.modal-close:hover{color:var(--white)}
.modal-header .modal-close{flex-shrink:0;font-size:13px;font-weight:700;margin-top:0;padding:6px 10px;
  border:1px solid rgba(255,255,255,0.35);border-radius:4px;color:rgba(255,255,255,0.85);white-space:nowrap}
.modal-header .modal-close:hover{border-color:var(--white);background:rgba(255,255,255,0.1)}
.modal-head-text{flex:1;min-width:0}
.modal-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-left:1rem}
.modal-head-actions:empty{display:none}
.modal-head-actions .add-regime-btn{margin-top:0;padding:6px 12px}
.modal-fullpage-btn{background:white;color:var(--navy);border:1px solid var(--navy);border-radius:4px;
  padding:6px 12px;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.modal-header .modal-fullpage-btn{border-color:white}
.modal-fullpage-btn:hover{background:#eef2f8}
#modal-question:empty{display:none}
/* Larger popup: technology one-pager (and Step 6 compare + one-pager) */
.modal-box.modal-wide{max-width:1140px;max-height:calc(100vh - 2rem);display:flex;flex-direction:column}
.modal-wide .modal-header{flex-shrink:0}
.modal-wide .modal-body{flex:1;min-height:0;overflow:auto}
.modal-wide .tech-card{max-width:none;border:none;border-radius:0}
.modal-wide .tech-card-header-actions .add-regime-btn{display:none}  /* the popup header has its own */
.modal-techview .modal-body{padding:0}
.modal-compare .modal-body{display:flex;flex-direction:column;overflow:hidden}
.modal-compare #modal-tech-list{flex-shrink:0;max-height:34vh;overflow:auto}
.modal-compare #modal-tech-detail{flex:1;min-height:0;overflow:auto;margin-top:12px;border:1px solid var(--border);border-radius:4px}
.modal-compare #modal-tech-detail:empty{display:none}
.modal-tech-item.selected{background:#FFF2EC;border-color:var(--orange);box-shadow:inset 3px 0 0 var(--orange)}
.modal-detail-bar{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:8px 12px;background:#f3f5f8;border-bottom:1px solid var(--border);font-size:12px;color:var(--muted)}
.modal-detail-bar strong{color:var(--text)}
@media(max-width:700px){
  .modal-overlay{padding:.5rem}
  .modal-box.modal-wide{max-height:calc(100vh - 1rem)}
  .modal-header{flex-wrap:wrap;gap:8px}
  .modal-head-actions{margin-left:0;order:3;flex-basis:100%;justify-content:flex-start}
  .modal-compare .modal-body{display:block;overflow:auto}
  .modal-compare #modal-tech-list{max-height:none;overflow-x:auto}
  .modal-compare .modal-tech-item,.modal-compare .modal-col-header{min-width:730px}
  .modal-compare #modal-tech-detail{overflow:visible}
  .modal-detail-bar{flex-wrap:wrap}
}
.modal-body{padding:1.25rem 1.5rem}
.modal-body>p{font-size:.84rem;color:var(--muted);margin-bottom:1rem;line-height:1.55;font-style:italic}
.modal-tech-list{display:flex;flex-direction:column;gap:6px}

/* Column-aligned table inside modal */
.modal-tech-item{
  display:grid;
  grid-template-columns:1fr 84px 64px 64px 92px 92px 84px 110px 28px;
  align-items:center;
  gap:0;
  padding:9px 12px;border-radius:3px;
  border:1px solid var(--border);background:var(--surface);
  cursor:pointer;transition:all .14s;
}
.modal-tech-item:hover{background:#FFF2EC;border-color:var(--orange)}

.modal-col-header{
  display:grid;
  grid-template-columns:1fr 84px 64px 64px 92px 92px 84px 110px 28px;
  gap:0;
  padding:4px 12px 6px;
  border-bottom:2px solid var(--border);
  margin-bottom:4px;
}
.modal-col-header span{
  font-size:9.5px;text-transform:uppercase;letter-spacing:1px;
  color:var(--muted);font-weight:700;text-align:center;
}
.modal-col-header span:first-child{text-align:left}

.modal-tech-name{font-size:12.5px;font-weight:700;color:var(--text);padding-right:8px}
.modal-scope-cell{font-size:10px;color:var(--muted);text-align:center}
.modal-arrow{color:var(--orange);font-size:16px;font-weight:700;text-align:right}

/* Rating column inside modal item */
.modal-rating-col{display:flex;flex-direction:column;align-items:center;gap:2px;position:relative;cursor:default}
.modal-rating-dots{display:flex;gap:3px;justify-content:center}
.modal-rating-dot{width:9px;height:9px;border-radius:50%;background:var(--border)}
.modal-rating-dots[data-level="1"] .modal-rating-dot.on { background:#2A7A2A }
.modal-rating-dots[data-level="2"] .modal-rating-dot.on { background:#E8601C }
.modal-rating-dots[data-level="3"] .modal-rating-dot.on { background:#C0392B }
.modal-rating-block .modal-tooltip,
.modal-rating-col .modal-tooltip{
  visibility:hidden;opacity:0;
  position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);
  background:var(--navy);color:white;font-size:11px;padding:6px 10px;border-radius:4px;
  white-space:normal;min-width:200px;max-width:320px;text-align:center;
  z-index:600;transition:opacity .15s;pointer-events:none;line-height:1.4;
}
.modal-rating-block .modal-tooltip::after,
.modal-rating-col .modal-tooltip::after{
  content:'';position:absolute;top:100%;left:50%;transform:translateX(-50%);
  border:5px solid transparent;border-top-color:var(--navy);
}
.modal-rating-col:hover .modal-tooltip,
.modal-rating-block:hover .modal-tooltip{visibility:visible;opacity:1}
.modal-no-tech{font-size:.84rem;color:var(--muted);font-style:italic}

/* image lightbox */
.lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.85);z-index:600;align-items:center;justify-content:center;padding:2rem;cursor:zoom-out}
.lightbox.open{display:flex}
.lightbox img{max-width:80vw;max-height:85vh;object-fit:contain;border-radius:4px;box-shadow:0 10px 40px rgba(0,0,0,0.5);cursor:default}
.lightbox video{max-width:80vw;max-height:85vh;border-radius:4px;display:block;cursor:default}
.lightbox-close{position:absolute;top:14px;right:18px;width:44px;height:44px;border:none;border-radius:50%;background:rgba(255,255,255,0.15);color:white;font-size:30px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2}
.lightbox-close:hover{background:var(--orange)}
.lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:52px;border:none;border-radius:50%;background:rgba(255,255,255,0.15);color:white;font-size:38px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding-bottom:4px;z-index:2}
.lightbox-nav:hover{background:var(--orange)}
.lightbox-prev{left:18px}
.lightbox-next{right:18px}
.lightbox-counter{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);color:rgba(255,255,255,0.8);font-size:13px;letter-spacing:1px}
@media(max-width:600px){.lightbox{padding:.5rem}.lightbox img,.lightbox video{max-width:94vw}.lightbox-nav{width:40px;height:40px;font-size:30px}.lightbox-prev{left:6px}.lightbox-next{right:6px}}

/* ── RESPONSIVE ── */
@media(max-width:900px){
  .home-cards{grid-template-columns:1fr 1fr}
  .nav-links{display:none}
  .nav-hamburger{display:block}
  .hero-moonshot-logo{width:150px}
}
@media(max-width:700px){
  .home-cards{grid-template-columns:1fr}
  .split-layout{grid-template-columns:1fr;height:auto}
  .split-sidebar{height:auto;border-right:none;border-bottom:1px solid var(--border)}
  .split-main{height:auto;min-height:400px}
  .tech-body{grid-template-columns:1fr}
  .tech-section:nth-child(even){border-right:none}
  .tech-section{border-right:none}
  .hero{min-height:auto}
  .matrix-outer{padding:1rem}
  .info-layout{padding:1rem}
  .tech-ratings{flex-wrap:wrap}
}

/* ── INSPECTION REGIME ── */
.regime-nav-btn{background:var(--orange)!important;color:white!important;font-weight:700;position:relative}
.regime-nav-btn:hover{background:#d95a32!important}
.regime-badge{
  display:inline-flex;align-items:center;justify-content:center;
  background:white;color:var(--orange);
  font-size:10px;font-weight:900;
  width:18px;height:18px;border-radius:50%;
  margin-left:5px;vertical-align:middle;
}
.add-regime-btn{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--orange);color:white;border:none;
  padding:8px 16px;border-radius:4px;font-size:13px;font-weight:700;
  cursor:pointer;transition:all .18s;margin-top:1rem;
}
.add-regime-btn:hover{background:#d95a32;transform:translateY(-1px)}
.add-regime-btn.added{background:#2A7A2A}
.add-regime-btn.added:hover{background:#1e5e1e}
/* Smaller version for modal */
.add-regime-btn-sm{
  display:inline-flex;align-items:center;gap:4px;
  background:var(--orange);color:white;border:none;
  padding:4px 10px;border-radius:3px;font-size:11px;font-weight:700;
  cursor:pointer;transition:all .15s;white-space:nowrap;
}
.add-regime-btn-sm:hover{background:#d95a32}
.add-regime-btn-sm.added{background:#2A7A2A}
/* Regime view */
.regime-empty{text-align:center;padding:4rem 2rem;color:var(--muted)}
.regime-empty h3{font-size:1.2rem;margin-bottom:0.5rem;color:var(--navy)}
.regime-list{display:flex;flex-direction:column;gap:12px}
.regime-item{
  background:white;border:1px solid var(--border);border-radius:6px;
  padding:14px 16px;display:flex;align-items:center;gap:14px;
  box-shadow:0 1px 3px rgba(0,0,0,0.06);
}
.regime-item-icon{
  width:48px;height:48px;border-radius:4px;object-fit:cover;flex-shrink:0;
  border:1px solid var(--border);
}
.regime-item-icon-placeholder{
  width:48px;height:48px;border-radius:4px;flex-shrink:0;
  background:var(--navy);display:flex;align-items:center;justify-content:center;
  font-size:20px;
}
.regime-item-info{flex:1}
.regime-item-name{font-weight:700;color:var(--navy);font-size:15px}
.regime-item-full{font-size:12px;color:var(--muted);margin-top:2px}
.regime-item-cat{font-size:11px;color:var(--orange);font-weight:700;text-transform:uppercase;letter-spacing:0.5px;margin-top:2px}
.regime-item-actions{display:flex;gap:8px;flex-shrink:0}
.regime-view-btn{background:var(--navy);color:white;border:none;padding:6px 12px;border-radius:3px;font-size:12px;cursor:pointer}
.regime-view-btn:hover{background:#023080}
.regime-remove-btn{background:#fee;color:#c00;border:1px solid #fcc;padding:6px 10px;border-radius:3px;font-size:12px;cursor:pointer;font-weight:700}
.regime-remove-btn:hover{background:#fdd}
.regime-export-btn{background:var(--navy);color:white;border:none;padding:8px 16px;border-radius:4px;font-size:13px;font-weight:600;cursor:pointer}
.regime-export-btn:hover{background:#023080}
.regime-clear-btn{background:white;color:#c00;border:1px solid #fcc;padding:8px 14px;border-radius:4px;font-size:13px;cursor:pointer;font-weight:600}
.regime-clear-btn:hover{background:#fee}
/* PDF print styles */
@media print {
  nav,#view-regime .section-header,.regime-item-actions{display:none!important}
  body{background:white}
  .regime-print-card{page-break-after:always;padding:2rem}
}

/* ── TECH FAMILY PAGES ── */
.sidebar-family-btn{
  display:block;width:100%;text-align:left;
  background:var(--navy);color:white;border:none;
  padding:7px 14px;font-size:11px;font-weight:700;
  letter-spacing:0.5px;text-transform:uppercase;
  cursor:pointer;transition:background .15s;
}
.sidebar-family-btn:hover{background:#023080}

.tech-family-page{max-width:900px}
.tech-family-header{
  background:var(--navy);color:white;
  padding:1.25rem 2rem;
}
.tech-family-abbrev{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:var(--orange);font-weight:700;margin-bottom:4px}
.tech-family-name{font-size:1.6rem;font-weight:700;color:white;margin:0 0 10px}
.tech-family-meta{display:flex;gap:10px;flex-wrap:wrap}
.tech-family-pill{
  background:rgba(255,255,255,0.12);
  color:rgba(255,255,255,0.85);
  padding:3px 10px;border-radius:20px;
  font-size:11px;
}

.tech-family-body{padding:2rem}
.tech-family-overview{margin-bottom:2rem}
.tech-family-overview h2{color:var(--navy);font-size:1.1rem;margin-bottom:0.5rem}
.tech-family-overview p{font-size:0.9rem;line-height:1.7;color:var(--text)}

.tech-family-sections{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-bottom:2rem}
.tech-family-section{background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:1.25rem}
.tech-family-section h3{color:var(--navy);font-size:0.85rem;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:0.75rem;font-weight:700}
.tech-family-section p{font-size:0.85rem;line-height:1.65;color:var(--text);margin:0}
.tech-family-section ul{margin:0;padding-left:1.1rem}
.tech-family-section li{font-size:0.85rem;line-height:1.6;color:var(--text);margin-bottom:4px}

.tech-family-tools{border-top:2px solid var(--border);padding-top:1.5rem}
.tech-family-tools h2{color:var(--navy);font-size:1rem;margin-bottom:1rem}
.tech-family-tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.tech-family-tool-card{
  background:white;border:1px solid var(--border);border-radius:6px;
  overflow:hidden;cursor:pointer;transition:all .15s;
}
.tech-family-tool-card:hover{border-color:var(--orange);box-shadow:0 2px 8px rgba(0,0,0,0.1);transform:translateY(-2px)}
.tech-family-tool-img{width:100%;height:100px;object-fit:cover;display:block}
.tech-family-tool-info{padding:10px 12px}
.tech-family-tool-name{font-weight:700;font-size:12px;color:var(--navy);margin-bottom:2px}
.tech-family-tool-full{font-size:10px;color:var(--muted);line-height:1.4;margin-bottom:6px}
.tech-family-tool-link{font-size:11px;color:var(--orange);font-weight:700}

@media(max-width:700px){
  .tech-family-sections{grid-template-columns:1fr}
}

/* Deployment method badge */
.deployment-badge{
  font-size:11px;font-weight:700;color:var(--navy);
  background:#deeaf5;border:1px solid #b8d0e8;
  padding:3px 8px;border-radius:3px;
  text-align:center;line-height:1.3;max-width:110px;
}

/* Admin icon — small and unobtrusive on home page */
.admin-icon-btn{
  margin-left:auto;
  color:rgba(255,255,255,0.3);
  font-size:16px;
  text-decoration:none;
  padding:4px 8px;
  border-radius:3px;
  transition:all .2s;
  line-height:1;
}
.admin-icon-btn:hover{color:rgba(255,255,255,0.8);background:rgba(255,255,255,0.1)}

/* ════════════════════════════════════
   NDT WORKFLOW — 7-step tool
   ════════════════════════════════════ */
.wf-page{width:100%;max-width:100%;margin:0;padding:0;box-sizing:border-box}

/* Header */
.wf-header{
  background:#012060;color:white;
  padding:12px 20px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;
  width:100%;box-sizing:border-box;
}
.wf-header-left{flex:1;min-width:280px}
.wf-header-title{font-size:15px;font-weight:800;letter-spacing:0.3px}
.wf-header-sub{font-size:11px;opacity:0.8;margin-top:2px}
.wf-header-actions{flex-shrink:0}
.wf-clear-btn{
  background:rgba(255,255,255,0.15);color:white;border:1px solid rgba(255,255,255,0.4);
  padding:7px 14px;border-radius:4px;font-size:12px;font-weight:700;cursor:pointer;
  transition:all .15s;
}
.wf-clear-btn:hover{background:rgba(255,255,255,0.25)}
.wf-important{
  background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.25);
  border-radius:4px;padding:8px 12px;font-size:10.5px;max-width:260px;line-height:1.45;
  flex-shrink:0;
}

/* Main grid — 10 equal columns total.
   Steps 1+2 share col 1, Steps 3,4,5 = cols 2-4, Step 6 spans cols 5-9 (5 cols), Step 7 = col 10 */
.wf-grid{
  display:grid;
  grid-template-columns: repeat(10, 1fr);
  min-height:560px;
  border-left:1px solid #ccc;
  border-bottom:1px solid #ccc;
  width:100%;box-sizing:border-box;
}
/* Steps 1+2 share one column */
.wf-col-12{
  grid-column: span 1;
  border-right:1px solid #ccc;
  display:flex;flex-direction:column;
  min-width:0;
}
.wf-col-12 .wf-step{border-right:none;border-bottom:1px solid #ccc}
.wf-col-12 .wf-step:last-child{border-bottom:none;flex:1}
/* Steps 3,4,5 each take 1 col; Step 7 takes 1 col */
/* Step 6 takes 5 cols so its 5 sub-cols are the same width as the other steps */
.wf-step6-outer{
  grid-column: span 5;
  border-right:1px solid #ccc;
  display:flex;flex-direction:column;
  min-width:0;
}

/* Each step panel */
.wf-step{
  border-right:1px solid #ccc;
  display:flex;flex-direction:column;
  transition:opacity .2s;
  min-width:0;
}
.wf-step6{border-right:1px solid #ccc}
.wf-dim{opacity:0.35;pointer-events:none}

/* Step headers — ALL same height using min-height + flex centering */
.wf-step-hdr{
  padding:10px;text-align:center;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-height:72px;flex-shrink:0;
}
.wf-hdr-dark{background:#012060;color:white}
.wf-hdr-mid{background:#dde4f0;color:#012060}
.wf-hdr-green{background:#1b5e20;color:white}
.wf-step-num{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:1px;margin-bottom:2px;opacity:0.8}
.wf-step-ttl{font-size:11px;font-weight:700;line-height:1.3}

.wf-step-body{flex:1;padding:8px;overflow-y:auto;overflow-x:hidden}
.wf-placeholder{color:#aaa;font-size:10px;font-style:italic;padding:8px 0;text-align:center}

/* Step 1 */
.wf-reason-btn{
  display:flex;align-items:flex-start;gap:5px;width:100%;
  background:#f0f4ff;border:1px solid #c8d4f0;border-radius:3px;
  padding:6px 7px;margin-bottom:4px;font-size:10px;text-align:left;
  cursor:pointer;transition:all .14s;line-height:1.3;color:#012060;
}
.wf-reason-btn.active{background:#012060;color:white;border-color:#012060}
.wf-reason-btn:hover:not(.active){background:#dce4ff}
.wf-r-icon{font-size:13px;flex-shrink:0}

/* Step 2 */
.wf-yn-row{display:flex;flex-direction:column;gap:7px;margin-bottom:8px}
.wf-yn{
  padding:8px;border-radius:4px;border:2px solid transparent;
  font-weight:700;font-size:12px;cursor:pointer;transition:all .14s;
  text-align:left;line-height:1.3;width:100%;
}
/* Unselected: plain white with muted colour; selected: solid fill, radio dot + SELECTED tag */
.wf-yes{background:white;color:#4b6b4d;border-color:#cfd8d0}
.wf-yes:hover:not(:disabled):not(.active){border-color:#1b5e20;color:#1b5e20}
.wf-yes.active{background:#1b5e20;color:white;border-color:#1b5e20;box-shadow:0 0 0 3px rgba(27,94,32,.25)}
.wf-no{background:white;color:#7a4b4b;border-color:#dcd0d0}
.wf-no:hover:not(:disabled):not(.active){border-color:#b71c1c;color:#b71c1c}
.wf-no.active{background:#b71c1c;color:white;border-color:#b71c1c;box-shadow:0 0 0 3px rgba(183,28,28,.25)}
.wf-yn-top{display:flex;align-items:center;gap:6px;white-space:nowrap}
.wf-yn-lbl{white-space:nowrap}
.wf-yn-radio{width:13px;height:13px;border-radius:50%;border:2px solid currentColor;flex-shrink:0;box-sizing:border-box}
.wf-yn.active .wf-yn-radio{background:white;border-color:white;box-shadow:inset 0 0 0 2px currentColor}
.wf-yes.active .wf-yn-radio{color:#1b5e20}.wf-no.active .wf-yn-radio{color:#b71c1c}
.wf-yn-selected{margin-left:auto;background:rgba(255,255,255,.22);border:1px solid rgba(255,255,255,.6);color:white;font-size:7.5px;letter-spacing:.5px;padding:1px 5px;border-radius:10px;font-weight:700}
.wf-yn:not(.active) .wf-yn-sub{opacity:.8}
.wf-yn-default{font-size:9.5px;color:#666;font-style:italic;margin:-2px 0 6px}
.wf-yn:disabled{opacity:0.45;cursor:not-allowed}
.wf-yn-sub{font-size:9px;font-weight:400;margin-top:3px;line-height:1.3}
.wf-step2-note{font-size:9px;color:#666;line-height:1.4;border-top:1px solid #eee;padding-top:6px;margin-top:6px}

/* Step 3 */
.wf-area-grid{display:flex;flex-direction:column;gap:3px}
.wf-area-btn{
  display:flex;align-items:center;gap:5px;width:100%;
  background:#f5f7fa;border:1px solid #ddd;border-radius:3px;
  padding:5px 6px;font-size:10px;text-align:left;cursor:pointer;
  transition:all .14s;color:#333;
}
.wf-area-btn:hover:not(.active):not(:disabled){background:#e8edf5;color:#012060}
.wf-area-btn.active{background:#012060;color:white;border-color:#012060}
.wf-area-btn:disabled{opacity:0.4;cursor:not-allowed}
.wf-area-icon{font-size:13px;flex-shrink:0;width:18px;text-align:center}
.wf-area-lbl{font-size:10px;font-weight:600;line-height:1.3}

/* Step 4 */
.wf-step4-for{font-size:10px;color:#666;margin-bottom:6px;padding-bottom:4px;border-bottom:1px solid #eee}
.wf-questions{display:flex;flex-direction:column;gap:4px}
.wf-q-item{
  display:flex;align-items:flex-start;gap:5px;font-size:11px;
  padding:6px 8px;background:#f0f4ff;border-radius:3px;border:1px solid #c8d4f0;
  cursor:pointer;line-height:1.35;transition:all .14s;
}
.wf-q-item.active,.wf-q-item:has(input:checked){background:#012060;color:white;border-color:#012060}
.wf-q-item input{flex-shrink:0;margin-top:2px;accent-color:#F26B43}

/* Step 5 — Filters */
.wf-filter-note{font-size:9px;color:#666;margin-bottom:6px;font-style:italic}
.wf-filter-item{
  display:flex;align-items:flex-start;gap:5px;padding:5px 3px;
  cursor:pointer;font-size:10px;border-bottom:1px solid #f5f5f5;line-height:1.3;
}
.wf-filter-item.disabled{opacity:0.4;pointer-events:none}
.wf-filter-item input{flex-shrink:0;margin-top:1px;accent-color:#012060}
.wf-filter-icon{font-size:12px;flex-shrink:0}
.wf-filter-lbl{color:#333}

/* Step 6 — Tech matrix, full remaining width */
.wf-step6{grid-column:span 1}
.wf-step6-body{padding:0;overflow:hidden;display:flex;flex-direction:column;flex:1}
.wf-tech-cols{
  display:grid;grid-template-columns:repeat(5,1fr);
  height:100%;flex:1;
}
.wf-col{border-right:1px solid #eee;display:flex;flex-direction:column;min-width:0}
.wf-col:last-child{border-right:none}

/* Step 6 column headers — all same height */
.wf-col-hdr{
  padding:8px 6px;text-align:center;flex-shrink:0;box-sizing:border-box;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  min-height:72px;
}
/* Symbol + Compare sit on a common bottom line across the equal-height headers */
.wf-col-hdr .wf-col-sym{margin-top:auto}
.wf-col-lbl{font-size:9px;font-weight:800;line-height:1.3;margin-bottom:2px;word-break:break-word}
.wf-col-sub{font-size:8px;opacity:0.8;line-height:1.3;margin-bottom:3px;word-break:break-word}
.wf-col-sym{font-size:18px}

.wf-col-items{flex:1;padding:6px;display:flex;flex-direction:column;gap:5px;overflow-y:auto;overflow-x:hidden;min-width:0}

/* Technology chips — vertical layout: name top, + button below */
.wf-chip{
  display:flex;flex-direction:column;align-items:flex-start;box-sizing:border-box;flex-shrink:0;
  padding:5px 6px;border-radius:3px;border:1px solid;
  font-size:10px;background:white;line-height:1.3;transition:all .14s;
  min-width:0;width:100%;
}
.wf-chip-dimmed{opacity:0.4}
/* Not relevant to the Step 4 questions ticked */
.wf-chip-offq{opacity:0.35;filter:grayscale(1)}
.wf-chip-offq:hover{opacity:0.7}
.wf-chip-added{background:#f0fff0}
.wf-chip-name{
  cursor:pointer;width:100%;
  word-break:break-word;overflow-wrap:anywhere;
  white-space:normal;line-height:1.35;margin-bottom:4px;
}
.wf-chip-name:hover{text-decoration:underline}
.wf-chip-bottom{display:flex;align-items:center;gap:4px;width:100%;margin-top:auto}
.wf-chip-toggle{
  height:18px;padding:0 8px;border-radius:9px;border:1.5px solid;
  font-size:11px;line-height:1;cursor:pointer;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  font-weight:900;transition:all .14s;white-space:nowrap;
}
.wf-toggle-added{}
.wf-chip-warn{font-size:10px;flex-shrink:0;opacity:0.7;margin-left:auto}
.wf-no-tech{
  display:flex;align-items:center;justify-content:center;text-align:center;
  border:1.5px dashed #c5ccd6;border-radius:4px;background:#f7f8fa;
  color:#8a94a3;font-size:11px;font-style:italic;padding:8px 6px;
}

/* Step 7 */
.wf-step7-note{
  font-size:9px;color:#1b5e20;font-weight:700;
  background:#e8f5e9;border:1px solid #a5d6a7;border-radius:3px;
  padding:6px;margin-bottom:8px;line-height:1.4;
}
.wf-output-list{display:flex;flex-direction:column;gap:5px;margin-bottom:8px}
.wf-output-card{
  display:flex;align-items:center;gap:6px;padding:5px 6px;
  background:white;border:1px solid #ddd;border-radius:3px;cursor:pointer;
  transition:all .14s;
}
.wf-output-card:hover{border-color:#F26B43;background:#fff8f5}
.wf-card-img{width:32px;height:32px;object-fit:cover;border-radius:2px;flex-shrink:0;border:1px solid #eee}
.wf-card-body{flex:1;min-width:0}
.wf-card-name{font-size:10px;font-weight:700;color:#012060;line-height:1.2}
.wf-card-link{font-size:9px;color:#F26B43}

/* Footer */
.wf-footer{
  display:grid;grid-template-columns:1fr 1fr 1fr 1fr;
  border:1px solid #ccc;border-top:2px solid #012060;background:#fafafa;
  width:100%;box-sizing:border-box;
}
.wf-footer-sec{padding:10px 14px;border-right:1px solid #ddd;font-size:10px}
.wf-footer-sec:last-child{border-right:none}
.wf-footer-ttl{font-weight:800;font-size:9px;text-transform:uppercase;letter-spacing:1px;
  color:#012060;margin-bottom:6px;padding-bottom:3px;border-bottom:1px solid #ddd}
.wf-footer-refs{display:grid;grid-template-columns:1fr 1fr;gap:2px 6px}
.wf-footer-refs div{font-size:9px;line-height:1.3}

/* Narrow screens, and touch-only tablets (e.g. iPad) in landscape: 3-column layout.
   (hover:none)+(pointer:coarse) never matches a mouse/trackpad, so desktop is unaffected. */
@media(max-width:1000px),(hover:none) and (pointer:coarse) and (max-width:1400px){
  .wf-grid{grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto}
  .wf-col-12{grid-column:span 1}
  .wf-step6-outer{grid-column:span 3}
  .wf-footer{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .wf-grid{grid-template-columns:1fr}
  .wf-col-12,.wf-step6-outer{grid-column:span 1}
  .wf-tech-cols{grid-template-columns:1fr 1fr}
  .wf-footer{grid-template-columns:1fr}
}

/* Admin filter compat grid */
.filter-compat-grid table{border-radius:4px;overflow:hidden}
.filter-compat-grid tr:hover td{background:#f8f9ff}

/* Workflow tooltips — hover the ? icon to reveal */
.wf-tip{
  position:relative;
  display:inline-flex;align-items:center;justify-content:center;
  width:15px;height:15px;border-radius:50%;
  background:rgba(255,255,255,0.2);color:rgba(255,255,255,0.9);
  font-size:9px;font-weight:900;cursor:help;
  flex-shrink:0;border:1px solid rgba(255,255,255,0.35);
  vertical-align:middle;margin-left:4px;
  z-index:10;
}
.wf-hdr-mid .wf-tip,
.wf-tip.wf-tip-light{
  background:rgba(1,32,96,0.1);color:#012060;
  border-color:rgba(1,32,96,0.25);
}
.wf-tip-box{
  display:none;
  position:absolute;
  bottom:calc(100% + 8px);
  left:50%;transform:translateX(-50%);
  background:#1a2a4a;color:#eef;
  font-size:10.5px;line-height:1.5;font-weight:400;
  padding:8px 11px;border-radius:5px;
  width:230px;z-index:9999;
  box-shadow:0 4px 20px rgba(0,0,0,0.4);
  pointer-events:none;text-align:left;
  white-space:normal;
}
.wf-tip-box::after{
  content:'';position:absolute;top:100%;left:50%;transform:translateX(-50%);
  border:5px solid transparent;border-top-color:#1a2a4a;
}
.wf-tip:hover .wf-tip-box{display:block}
/* Prevent tooltip clipping inside overflow:hidden containers */
.wf-step-body{overflow:visible!important}
.wf-col-items{overflow-y:auto;overflow-x:visible}

/* Compare button in step 6 column headers */
.wf-compare-btn{
  margin-top:4px;padding:2px 8px;
  background:rgba(255,255,255,0.15);color:inherit;
  border:1px solid rgba(255,255,255,0.3);border-radius:3px;
  font-size:9px;cursor:pointer;font-weight:700;
  transition:all .14s;white-space:nowrap;
}
.wf-compare-btn:hover{background:rgba(255,255,255,0.3)}

/* ── INSPECTION REGIME TABLE ── */
.regime-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}
.regime-filter{padding:7px 10px;border:1px solid var(--border);border-radius:4px;font-size:13px;min-width:260px}
.regime-filter:focus{outline:none;border-color:var(--navy)}
.regime-table-wrap{overflow-x:auto;background:var(--white);border:1px solid var(--border);border-radius:4px}
.regime-table{width:100%;border-collapse:collapse;font-size:12px;min-width:1100px}
.regime-table th{background:var(--navy);color:white;text-align:left;padding:9px 10px;font-size:10.5px;text-transform:uppercase;letter-spacing:.5px;cursor:pointer;user-select:none;white-space:nowrap;position:sticky;top:0}
.regime-table th:hover{background:#023080}
.regime-table th.sorted{background:#023080;box-shadow:inset 0 -3px 0 var(--orange)}
.regime-table th:last-child{cursor:default}
.regime-table td{padding:9px 10px;border-bottom:1px solid var(--border);vertical-align:top;line-height:1.4}
.regime-table tbody tr:hover td{background:#f5f8fb}
.regime-table .regime-col-name{min-width:170px}
.regime-table .regime-col-step4{min-width:220px}
.regime-table .regime-col-step5{min-width:180px}
.regime-table .regime-item-actions{white-space:nowrap}
.regime-cell-list{margin:0;padding-left:14px}
.regime-cell-list li{margin-bottom:2px}
.regime-na{color:#bbb}
.regime-step6{display:inline-block;padding:2px 7px;border-radius:3px;font-size:10px;font-weight:700;margin:0 4px 3px 0;background:#eee;color:#333;white-space:nowrap}
.regime-step6-primary{background:#e8f5e9;color:#2e7d32}
.regime-step6-complementary{background:#c8e6c9;color:#1b5e20}
.regime-step6-advanced{background:#fff9c4;color:#8a6508}
.regime-step6-monitoring{background:#fff3e0;color:#e65100}
.regime-step6-verification{background:#fce4ec;color:#c62828}
.regime-toolbar-left{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.regime-mode{display:inline-flex;border:1px solid var(--navy);border-radius:4px;overflow:hidden}
.regime-mode button{background:white;color:var(--navy);border:none;padding:6px 14px;font-size:12px;font-weight:700;cursor:pointer}
.regime-mode button+button{border-left:1px solid var(--navy)}
.regime-mode button.active{background:var(--navy);color:white}
.regime-table tr.regime-grp-row td{background:var(--navy);color:white;font-weight:700;font-size:13px;padding:8px 10px}
.regime-table tr.regime-sub-row td{background:#fde7df;color:var(--navy);font-weight:700;padding:6px 10px 6px 24px}
.regime-table tbody tr.regime-grp-row:hover td{background:var(--navy)}
.regime-table tbody tr.regime-sub-row:hover td{background:#fde7df}
.regime-grp-lbl{font-size:9.5px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;opacity:.7;margin-right:8px}
.regime-footnote{font-size:11px;color:var(--muted);margin-top:.75rem}
.regime-table td.regime-item-actions{display:table-cell}
.regime-table td.regime-item-actions button{margin:0 4px 4px 0}
.regime-table .regime-item-name{font-size:13px}

.regime-table th.rg-compact,.regime-table td.rg-compact{text-align:center;padding-left:6px;padding-right:6px}
.regime-table th.rg-compact{white-space:normal;min-width:62px}
.rg-center{display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:help}
.rg-deploy{color:var(--navy);gap:1px}
.rg-deploy-lbl{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.3px}
.cons-badge{display:inline-block;padding:2px 8px;border-radius:2px;font-size:10px;font-weight:700;white-space:nowrap}
#float-tip{position:fixed;display:none;z-index:2000;background:var(--navy);color:white;font-size:11px;line-height:1.4;padding:6px 10px;border-radius:4px;max-width:300px;pointer-events:none;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.regime-table .regime-step6{white-space:normal;line-height:1.3}
.regime-table .regime-col-step6{min-width:130px}
.regime-table .regime-col-step4{min-width:180px}
.regime-table .regime-col-step5{min-width:150px}
.regime-table th{white-space:normal;vertical-align:bottom;line-height:1.3}

/* Step 3 area not applicable to the Step 1 reason chosen */
.wf-area-btn.wf-area-na{opacity:.35;filter:grayscale(1);cursor:not-allowed}

/* Links to standards (Admin → Standards Links) */
a.std-link{color:inherit;text-decoration:underline;text-decoration-style:dotted;text-decoration-thickness:1px;text-underline-offset:2px;font-weight:inherit}
a.std-link:hover{text-decoration-style:solid;color:var(--orange)}

/* ── RESOURCES ── */
.resources-page{padding:1.5rem;max-width:1200px}
.res-toolbar{display:flex;align-items:center;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}
.res-count{font-size:.8rem;color:var(--muted)}
.res-empty{color:var(--muted);font-size:.9rem;padding:1rem 0}
.res-group{margin-bottom:1.5rem}
.res-group-title{font-size:11px;letter-spacing:1.5px;text-transform:uppercase;color:var(--navy);font-weight:700;margin-bottom:.6rem;padding-bottom:.35rem;border-bottom:2px solid var(--orange);display:inline-block}
.res-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:.75rem}
.res-card{display:flex;gap:.8rem;align-items:flex-start;background:var(--white);border:1px solid var(--border);border-radius:4px;padding:.9rem 1rem;text-decoration:none;color:var(--text);transition:all .15s}
.res-card:hover{border-color:var(--orange);box-shadow:0 4px 14px rgba(0,0,0,.08);transform:translateY(-1px)}
.res-icon{font-size:1.6rem;line-height:1;flex-shrink:0}
.res-body{min-width:0}
.res-title{font-weight:700;color:var(--navy);font-size:.92rem;line-height:1.3}
.res-desc{font-size:.8rem;color:var(--muted);line-height:1.5;margin-top:3px}
.res-meta{font-size:.72rem;color:var(--orange);font-weight:700;margin-top:6px;text-transform:none}
@media(max-width:700px){.res-grid{grid-template-columns:1fr}}

/* NDT Workflow: first-visit hint pointing at Step 1 */
#wf-step1{position:relative}
.wf-attention{animation:wfPulse 1.1s ease-in-out 4;z-index:5}
@keyframes wfPulse{
  0%,100%{box-shadow:0 0 0 0 rgba(242,107,67,0);outline:3px solid rgba(242,107,67,.25);outline-offset:-3px}
  50%{box-shadow:0 0 0 6px rgba(242,107,67,.35);outline:3px solid #F26B43;outline-offset:-3px}
}
.wf-start-here{position:absolute;top:-2px;right:8px;transform:translateY(-100%);z-index:6;background:#F26B43;color:white;
  font-size:11px;font-weight:700;letter-spacing:.4px;padding:4px 10px;border-radius:4px 4px 0 0;
  box-shadow:0 2px 6px rgba(0,0,0,.2);animation:wfBob 1.1s ease-in-out 4;pointer-events:none;transition:opacity .35s}
.wf-start-here-out{opacity:0}
@keyframes wfBob{0%,100%{transform:translateY(-100%)}50%{transform:translateY(calc(-100% - 4px))}}
@media (prefers-reduced-motion: reduce){.wf-attention,.wf-start-here{animation:none}.wf-attention{outline:3px solid #F26B43;outline-offset:-3px}}

/* ── DISCLAIMER POPUP ── */
.disclaimer-overlay{display:none;position:fixed;inset:0;z-index:900;background:rgba(1,20,60,.72);align-items:center;justify-content:center;padding:1rem}
.disclaimer-overlay.open{display:flex}
.disclaimer-box{position:relative;background:var(--white);border-radius:8px;max-width:620px;width:100%;max-height:90vh;overflow-y:auto;
  padding:2rem 2.25rem 1.75rem;border-top:5px solid var(--orange);box-shadow:0 20px 60px rgba(0,0,0,.35)}
.disclaimer-icon{font-size:1.8rem;line-height:1;margin-bottom:.5rem}
.disclaimer-box h2{color:var(--navy);font-size:1.3rem;margin-bottom:1rem}
.disclaimer-box p{font-size:.92rem;line-height:1.6;color:#333;margin-bottom:.85rem}
.disclaimer-btn{margin-top:.5rem;background:var(--orange);color:white;border:none;padding:11px 26px;border-radius:4px;font-size:14px;font-weight:700;cursor:pointer}
.disclaimer-btn:hover{background:#d95a32}
.disclaimer-close{position:absolute;top:10px;right:14px;background:none;border:none;font-size:26px;line-height:1;color:#888;cursor:pointer}
.disclaimer-close:hover{color:var(--navy)}

/* Step 6: headers in one shared grid row, so all five are always the same
   height (pure CSS; the JS measurement remains as a fallback) */
@supports (grid-template-rows: subgrid){
  @media(min-width:601px){
    .wf-tech-cols{grid-template-rows:auto 1fr}
    .wf-tech-cols > .wf-col{display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:0}
  }
}

/* Lightbox caption (media label) under the image */
.lightbox.open{flex-direction:column;gap:12px}
.lightbox-caption{max-width:min(80vw,900px);background:rgba(0,0,0,.6);color:#fff;font-size:14px;line-height:1.45;
  text-align:center;padding:8px 16px;border-radius:4px;cursor:default}
.lightbox img,.lightbox video{max-height:calc(100vh - 170px)!important}

/* ── BETA BADGE + FEEDBACK ── */
.beta-pill{display:inline-flex;align-items:center;border:1.5px solid #f6b26b;border-radius:20px;overflow:hidden;padding:0;
  background:transparent;cursor:pointer;font-size:11px;font-weight:700;white-space:nowrap;margin-left:4px}
.beta-pill-label{background:#f6b26b;color:#3a2600;padding:4px 10px;text-transform:uppercase;letter-spacing:.6px}
.beta-pill-cta{color:#ffd7a8;padding:4px 11px}
.beta-pill:hover .beta-pill-cta{background:rgba(246,178,107,.18);color:#fff}
/* Header gets crowded on smaller laptops: shrink the pill, then tighten the menu */
@media(max-width:1440px){.beta-pill-cta{display:none}}
@media(max-width:1300px){
  .beta-pill-label{font-size:0;padding:4px 9px}
  .beta-pill-label::after{content:'Beta';font-size:11px}
  .nav-btn{padding:6px 9px}
}
@media(max-width:1080px){.nav-btn{padding:6px 6px;font-size:12px}}
@media(max-width:980px){.nav-btn{padding:6px 4px}.nav-subtitle{display:none}}
.fb-overlay{display:none;position:fixed;inset:0;z-index:880;background:rgba(1,20,60,.65);align-items:center;justify-content:center;padding:1rem}
.fb-overlay.open{display:flex}
.fb-box{position:relative;background:var(--white);border-radius:8px;max-width:560px;width:100%;max-height:92vh;overflow-y:auto;
  padding:1.6rem 1.9rem 1.5rem;border-top:5px solid #f6b26b;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.fb-badge{display:inline-block;background:#f6b26b;color:#3a2600;font-size:10px;font-weight:800;letter-spacing:.7px;text-transform:uppercase;padding:3px 9px;border-radius:10px;margin-bottom:.6rem}
.fb-box h2{color:var(--navy);font-size:1.2rem;margin-bottom:.6rem}
.fb-intro p{font-size:.86rem;line-height:1.55;color:#444;margin-bottom:.6rem}
.fb-q{margin:.9rem 0 .2rem}
.fb-q-label{font-size:.85rem;font-weight:700;color:var(--text);margin-bottom:4px}
.fb-stars{display:flex;align-items:center;gap:2px}
.fb-star{background:none;border:none;font-size:26px;line-height:1;color:#d5d9de;cursor:pointer;padding:0 2px;transition:transform .1s,color .1s}
.fb-star.on{color:#F26B43}
.fb-star.hover{color:#f59b7c}
.fb-star:hover{transform:scale(1.12)}
.fb-star:focus-visible{outline:2px solid var(--navy);outline-offset:2px;border-radius:3px}
.fb-star-word{font-size:.8rem;color:var(--muted);margin-left:8px;min-width:70px}
.fb-field{display:block;font-size:.85rem;font-weight:700;color:var(--text);margin-top:.9rem}
.fb-field textarea,.fb-field input{display:block;width:100%;margin-top:5px;padding:8px 10px;border:1px solid var(--border);border-radius:4px;
  font-family:inherit;font-size:.86rem;font-weight:400;resize:vertical}
.fb-field textarea:focus,.fb-field input:focus{outline:none;border-color:var(--navy)}
.fb-opt{font-weight:400;color:var(--muted);font-size:.78rem}
.fb-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.fb-error{color:#b00020;font-size:.82rem;min-height:1.2em;margin-top:.6rem}
.fb-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:.4rem}
.fb-actions .disclaimer-btn{margin-top:0}
.fb-cancel{background:none;border:1px solid var(--border);border-radius:4px;padding:10px 18px;font-size:14px;cursor:pointer;color:var(--muted)}
.fb-thanks{display:none;text-align:center;padding:1rem 0 .5rem}
.fb-thanks h3{color:var(--navy);margin:.5rem 0 .3rem}
.fb-thanks p{color:var(--muted);font-size:.88rem;margin-bottom:1rem}

/* ── Saved NDT regimes (static/js/saved_regime.js) ── */
.regime-ctx{position:sticky;top:var(--nav-h);z-index:190;background:#fff7f3;border-bottom:2px solid var(--orange);box-shadow:0 2px 6px rgba(0,0,0,.08)}
.regime-ctx[hidden]{display:none}
.regime-ctx-warn{background:#fff4e5;border-bottom-color:#e0a030}
.rc-inner{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:7px 1.5rem;font-size:13px;color:var(--text)}
.rc-lbl{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--orange)}
.rc-struct{color:var(--navy);font-weight:700;text-decoration:none}
.rc-struct:hover{text-decoration:underline}
.rc-ref{font-weight:400;color:var(--muted);font-size:12px}
.rc-sep{color:var(--muted)}
.rc-name{font-weight:700;color:var(--text)}
.rc-status{font-size:12px;padding:2px 8px;border-radius:10px;background:#e8f5e9;color:#1b5e20;white-space:nowrap}
.rc-status.rc-saving{background:#eef3f9;color:var(--navy)}
.rc-status.rc-retry{background:#fff4e5;color:#8a5300}
.rc-status.rc-readonly{background:#eef3f9;color:var(--navy)}
.rc-shared{font-size:11.5px;color:var(--navy);background:#eef3f9;border-radius:10px;padding:2px 8px;white-space:nowrap}
.rc-status.rc-error{background:#fee;color:#a00;white-space:normal}
.rc-status a{color:inherit;font-weight:700}
.rc-actions{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.rc-actions button,.rc-actions a{background:#fff;border:1px solid var(--border);color:var(--navy);font-size:12px;font-weight:700;padding:4px 10px;border-radius:4px;text-decoration:none;cursor:pointer}
.rc-actions button:hover,.rc-actions a:hover{border-color:var(--navy)}
.rc-actions a.rc-close{color:#a00;border-color:#f3c4c4}
.srh{display:flex;gap:16px;background:#fff;border:1px solid var(--border);border-left:4px solid var(--orange);border-radius:6px;padding:12px;margin-bottom:1rem;align-items:flex-start}
.srh-img{width:150px;height:100px;flex-shrink:0;border-radius:4px;overflow:hidden;background:#e9eef3;display:flex;align-items:center;justify-content:center;font-size:2rem}
.srh-img img{width:100%;height:100%;object-fit:cover}
.srh-body{flex:1;min-width:0}
.srh-kicker{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--orange)}
.srh-title{font-size:1.15rem;font-weight:700;color:var(--navy);margin:2px 0}
.srh-struct{font-size:13px;color:var(--muted)}
.srh-struct a{color:var(--navy);font-weight:700}
.srh-more{margin-top:6px;font-size:13px}
.srh-more summary{cursor:pointer;color:var(--navy);font-weight:700;font-size:12.5px}
.srh-detail{margin-top:8px}
.srh-dlbl{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--muted)}
.srh-dval{white-space:pre-wrap;color:var(--text);font-size:13px}
.srh-save{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#eef3f9;border:1px solid #c9d7ea;border-radius:6px;padding:10px 14px;margin-bottom:1rem;font-size:13px}
.srh-save-btn{background:var(--orange);color:#fff;border:none;padding:8px 16px;border-radius:4px;font-weight:700;font-size:13px;text-decoration:none;white-space:nowrap}
.srh-save-btn:hover{background:#d95a32}
.srm-overlay{position:fixed;inset:0;z-index:900;background:rgba(1,20,60,.6);display:flex;align-items:center;justify-content:center;padding:1rem}
.srm{background:#fff;border-radius:8px;max-width:460px;width:100%;padding:1.5rem;border-top:5px solid var(--orange);box-shadow:0 20px 60px rgba(0,0,0,.35)}
.srm h3{color:var(--navy);margin-bottom:.75rem}
.srm label{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;margin:10px 0 4px}
.srm select,.srm input[type=text]{width:100%;padding:9px 10px;border:1px solid var(--border);border-radius:4px;font-size:14px;font-family:inherit}
.srm label.srm-check{display:flex;gap:6px;align-items:center;text-transform:none;letter-spacing:0;font-weight:400;font-size:13px}
.srm-err{color:#a00;font-size:13px;min-height:1em;margin-top:6px}
.srm-btns{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.srm-btns button,.srm-btns a{padding:9px 16px;border-radius:4px;font-weight:700;font-size:13px;text-decoration:none;border:1px solid var(--border);background:#fff;color:var(--navy)}
.srm-btns .srm-ok{background:var(--orange);border-color:var(--orange);color:#fff}
.srm-note{font-size:12px;color:var(--muted);margin-top:12px}
.srm-note a{color:var(--navy);font-weight:700}
@media(max-width:700px){.srh{flex-direction:column}.srh-img{width:100%;height:140px}.rc-actions{margin-left:0}}

/* Technology one-pager: copy a shareable link (/technologies/<slug>) */
.tech-share-btn{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.4);border-radius:4px;padding:7px 12px;font-size:12.5px;font-weight:700;white-space:nowrap}
.tech-share-btn:hover{background:rgba(255,255,255,.22)}
.tech-share-btn.copied{background:#2A7A2A;border-color:#2A7A2A}

/* View-only saved regime: add/remove controls are shown greyed out (clicks explain why) */
body.regime-readonly .add-regime-btn,body.regime-readonly .add-regime-btn-sm,body.regime-readonly .wf-chip-toggle,
body.regime-readonly .regime-remove-btn,body.regime-readonly .regime-clear-btn{
  opacity:.4;filter:grayscale(1);cursor:not-allowed;transform:none!important}
#toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(20px);z-index:1000;max-width:min(92vw,520px);
  background:var(--navy);color:#fff;padding:11px 18px;border-radius:6px;font-size:13.5px;box-shadow:0 8px 28px rgba(0,0,0,.3);
  opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* ── Walkthrough video (Admin → Walkthrough) ── */
.cta-video{background:transparent;color:#fff;border:1.5px solid var(--orange);padding:11px 20px;border-radius:4px;font-size:14px;font-weight:700;transition:all .18s}
.cta-video:hover{background:rgba(242,107,67,.2);transform:translateY(-1px)}
.about-video{display:flex;gap:14px;align-items:center;width:100%;text-align:left;background:#fff7f3;border:1px solid #f6c7b6;border-left:4px solid var(--orange);
  border-radius:6px;padding:12px 14px;margin:.25rem 0 1rem;font-size:13.5px;color:var(--text);line-height:1.45}
.about-video:hover{background:#fff0e9}
.about-video b{color:var(--navy)}
.about-video-play{flex-shrink:0;width:40px;height:40px;border-radius:50%;background:var(--orange);color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;padding-left:3px}
.disclaimer-video{margin-top:.9rem;font-size:13px;color:var(--muted)}
.disclaimer-video .link-btn{font-weight:700}
button.res-card.res-video{font:inherit;text-align:left;cursor:pointer;border-color:#f6c7b6;background:#fff7f3}
button.res-card.res-video .res-icon{width:38px;height:38px;border-radius:50%;background:var(--orange);color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;padding-left:2px;flex-shrink:0}
.wt-overlay{display:none;position:fixed;inset:0;z-index:950;background:rgba(1,16,48,.82);align-items:center;justify-content:center;padding:1.25rem}
.wt-overlay.open{display:flex}
.wt-box{background:#fff;border-radius:8px;width:min(1100px,100%);max-height:94vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.45)}
.wt-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:12px 16px;background:var(--navy);color:#fff;border-bottom:3px solid var(--orange)}
.wt-head h2{font-size:1.05rem;margin:0}
.wt-head p{font-size:12.5px;opacity:.8;margin:2px 0 0}
.wt-close{background:none;border:none;color:#fff;font-size:28px;line-height:1;padding:0 4px}
.wt-body{display:flex;min-height:0;background:#000}
.wt-body video{flex:1;min-width:0;width:100%;max-height:calc(94vh - 70px);background:#000;display:block}
.wt-chapters{list-style:none;margin:0;padding:8px;width:260px;flex-shrink:0;overflow-y:auto;background:#f4f6f8;max-height:calc(94vh - 70px)}
.wt-chapters button{display:flex;gap:8px;width:100%;text-align:left;background:none;border:none;border-radius:4px;padding:7px 8px;font-size:13px;color:var(--text)}
.wt-chapters button:hover{background:#fff;color:var(--navy)}
.wt-ts{font-variant-numeric:tabular-nums;color:var(--orange);font-weight:700;min-width:38px}
@media(max-width:800px){.wt-body{flex-direction:column}.wt-chapters{width:auto;max-height:30vh}}
.wt-cc{margin-left:auto;margin-right:8px;align-self:center;background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.55);border-radius:4px;padding:5px 10px;font-size:12px;font-weight:700;white-space:nowrap}
.wt-cc:hover{background:rgba(255,255,255,.12)}
.wt-cc.on{background:#fff;color:var(--navy);border-color:#fff}
#wt-video::cue{font-size:1.05em;background:rgba(0,0,0,.75)}

/* Consistency badge on NDT Workflow Step 6 cards (consMiniBadge in app.js) */
.cons-mini{display:inline-flex;align-items:center;gap:4px;font-size:9.5px;font-weight:700;padding:2px 6px 2px 5px;border-radius:3px;white-space:nowrap;line-height:1.3;cursor:help}
.cons-bars{display:inline-flex;align-items:flex-end;gap:1px;height:9px}
.cons-bars i{display:block;width:3px;background:currentColor;opacity:.3;border-radius:1px}
.cons-bars i:nth-child(1){height:4px}.cons-bars i:nth-child(2){height:6.5px}.cons-bars i:nth-child(3){height:9px}
.cons-bars i.on{opacity:1}
.cons-bars-empty i{opacity:.25}
.cons-mini-x{font-size:10px;line-height:1}
.wf-chip-bottom .cons-mini{margin-left:auto}
.wf-chip-bottom .wf-chip-warn{margin-left:4px}
.wf-cons-key{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px 10px;border-bottom:1px solid var(--border);background:#fafbfc;font-size:11px}
.wf-cons-key-title{font-weight:700;color:var(--navy);margin-right:2px;cursor:help}
.wf-cons-key .cons-mini{cursor:default}
.tech-not-trialled{background:#f1f3f5;border:1px dashed #9aa3ad;border-left:4px solid #6b7280;color:#374151;font-size:13px;padding:9px 14px;margin:12px 16px 0;border-radius:4px}
