/* =========================================================
   STRUXONIX — main.css (FULL, COHERENT, UPDATED)
========================================================= */

/* -------------------------
   Tokens
------------------------- */
:root{
  --bg:#ffffff;
  --fg:#0b0d10;
  --muted:#5f6b7a;
  --border:#e3e6ea;
  --accent:#1c4fd8;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --content-max:1100px;
  --pad-x:22px;

  --h1:clamp(36px, 6.2vw, 72px);
  --p:16px;
}

/* -------------------------
   Reset / base
------------------------- */
*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:var(--font);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }

@media (max-width:900px){
  body{
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
  }

  /* Prevent double padding on inner wrappers */
  .measure,
  .fold2__inner,
  .fold3__inner,
  .fold4__inner,
  .site-footer__inner{
    padding-left: 0;
    padding-right: 0;
  }
}



/* -------------------------
   Layout helpers
------------------------- */
.measure{
  max-width:var(--content-max);
  margin:0 auto;
  padding:0 var(--pad-x);
}

/* -------------------------
   Typography (base)
------------------------- */
h1,h2,h3{
  margin:0 0 .5em 0;
  font-weight:600;
  letter-spacing:-0.02em;
}

p{
  margin:0 0 0.9em 0;
  font-size:var(--p);
  line-height:1.6;
  color:#1a1d23;
}

.muted{ color:var(--muted); }

/* -------------------------
   Header
------------------------- */
.site-header{
  width:100%;
  background:#fff;
  border-bottom:1px solid var(--border);
  position:relative;
  z-index:50;
}

.site-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 14px;
  gap:12px;
}

.site-header__right{
  display:flex;
  align-items:center;
  gap:18px;
}

/* Brand */
.brand,
.brand:hover,
.brand:focus{
  border:0 !important;
  outline:none;
}

/* Your template uses <span class="site-logo"><img ...></span> */
img.site-logo{
  max-height:120px;
  width:auto;
}

/* -------------------------
   Header CTA (support both your template and prior class)
------------------------- */
.header-cta,
.btn.btn--primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:10px 18px;
  border-radius:10px;

  background:#fff;
  color:#000;

  font-size:14px;
  font-weight:600;
  line-height:1;

  border:1px solid #000;
  white-space:nowrap;
}

.header-cta:hover,
.btn.btn--primary:hover{
  background:#000;
  color:#fff;
}

/* -------------------------
   Hamburger toggle
------------------------- */
.nav-toggle{
  display:inline-flex;
  width:36px;
  height:36px;
  background:transparent;
  border:1px solid var(--border);
  border-radius:8px;
  cursor:pointer;

  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
}

.nav-toggle__bar{
  width:18px;
  height:2px;
  background:var(--fg);
  border-radius:1px;
}

/* -------------------------
   Dropdown Nav (support BOTH class names)
   JS expects ".site-nav"
   Template may currently use ".dropdown-nav"
------------------------- */
.site-nav,
.dropdown-nav{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  width:100%;
  background:#fff;
  border-top:1px solid var(--border);
  padding:10px 12px;

  flex-direction:column;
  gap:0;
  z-index:60;
}

/* open state (JS toggles is-open on .site-nav) */
.site-nav.is-open,
.dropdown-nav.is-open{
  display:flex;
}

/* link styles (support both class names) */
.site-nav__link,
.dropdown-nav__link{
  width:100%;
  font-size:15px;
  padding:12px 0!important;
  border-bottom:1px solid var(--border)!important;
}

.site-nav__link:last-child,
.dropdown-nav__link:last-child{
  border-bottom:0;
}

.site-nav__link:hover,
.dropdown-nav__link:hover{
  text-decoration:underline;
}

/* -------------------------
   Mobile tweaks
------------------------- */
@media (max-width:900px){
  .site-header__inner{
    padding:8px 12px;
  }

  img.site-logo{
    max-height:56px;
  }

  /* hide header CTA ONLY on mobile */
  .site-header__right .header-cta,
  .site-header__right .btn.btn--primary{
    display:none;
  }
}

/* -------------------------
   Hero
------------------------- */
.hero-fold{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  min-height:85vh;

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  display:flex;
  align-items:center;
  justify-content:center;

  position:relative; /* REQUIRED for overlay positioning */
}

/* Darken image slightly for legibility */
.hero-fold__overlay{
  position:absolute;
  inset:0;
  background: rgba(11, 13, 16, 0.55);

  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-fold__content{
  max-width:900px;
  padding:0 22px;

  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;

  position:relative;
  z-index:1;
}

.hero-fold__headline{
  font-size:var(--h1);
  line-height:1.05;
  color:#fff;
  margin:0;
  max-width:20ch;
}

.hero-fold__subline{
  margin:18px 0 0 0;
  font-size:17px;
  line-height:1.55;
  color:rgba(255,255,255,.88);
  max-width:46ch;
}

/* Hero CTA */
.btn--hero-cta{
  display:inline-block;
  margin-top:22px;
  padding:14px 22px;

  background:#fff;
  color:#000;
  border-radius:10px;
  border:1px solid #fff;

  font-size:15px;
  font-weight:600;
}

.btn--hero-cta:hover{
  background:#000;
  color:#fff;
}

/* -------------------------
   Fold 2 — Trust & Proof (premium)
------------------------- */
.fold2{
  padding:96px 0;
  background:#fafbfc;
  border-top:1px solid var(--border);
}

.fold2__inner{
  max-width:var(--content-max);
  margin:0 auto;
  padding:0 var(--pad-x);
}

.fold2__head{
  max-width:74ch;
  margin:0 0 44px 0;
}

.fold2__kicker{
  display:inline-block;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0 0 12px 0;
}

.fold2__title{
  font-size:clamp(28px, 3.1vw, 44px);
  line-height:1.12;
  margin:0 0 14px 0;
  color:var(--fg);
}

.fold2__lede{
  margin:0;
  font-size:17px;
  line-height:1.55;
  color:#1a1d23;
  max-width:70ch;
}

/* Pillars grid */
.fold2__pillars{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:22px;
  margin-top:28px;
  align-items:stretch;
}

@media (max-width:1024px){
  .fold2__pillars{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

@media (max-width:640px){
  .fold2{ padding:64px 0; }
  .fold2__pillars{ grid-template-columns:1fr; }
}

/* Pillar card */
.pillar{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:22px 20px;

  display:flex;
  flex-direction:column;
  min-height:100%;

  box-shadow: 0 1px 0 rgba(11,13,16,.04), 0 8px 24px rgba(11,13,16,.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.pillar:hover{
  transform: translateY(-2px);
  border-color:#d8dde5;
  box-shadow: 0 1px 0 rgba(11,13,16,.05), 0 14px 34px rgba(11,13,16,.10);
}

.pillar__tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:24px;
  border-radius:999px;
  border:1px solid var(--border);

  font-size:11px;
  letter-spacing:.14em;
  color:var(--muted);
  margin:0 0 12px 0;
}

.pillar__title{
  margin:0 0 10px 0;
  font-size:18px;
  line-height:1.25;
  color:var(--fg);
}

.pillar__lede{
  margin:0 0 16px 0;
  font-size:16px;
  line-height:1.55;
  color:#1a1d23;
}

.pillar__list{
  margin:0;
  padding-left:18px;
}

.pillar__list li{
  margin:8px 0;
  font-size:15px;
  line-height:1.55;
  color:#1a1d23;
}

.pillar__muted,
.pillar__footnote{
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

/* Proof cards */
.proof-cards{
  display:grid;
  gap:12px;
  margin-top:14px;
}

.proof-card{
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px 14px;
  background:#fff;
}

.proof-card__label{
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0 0 8px 0;
}

.proof-card__outcome{
  font-size:16px;
  line-height:1.6;
  color:var(--fg);
}

.proof-card__meta{
  margin-top:10px;
  font-size:13px;
  line-height:1.45;
  color:var(--muted);
}

.proof-card__company{
  font-weight:600;
  color:var(--fg);
}

/* -------------------------
   Fold 3 — Operator Advantage (quiet authority)
------------------------- */
.fold3{
  padding:96px 0;
  background:#fff;
}

.fold3__inner{
  max-width:var(--content-max);
  margin:0 auto;
  padding:0 var(--pad-x);
}

.fold3__head{
  max-width:78ch;
}

.fold3__kicker{
  display:inline-block;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0 0 12px 0;
}

.fold3__title{
  font-size:clamp(28px, 3.1vw, 44px);
  line-height:1.12;
  margin:0 0 16px 0;
  color:var(--fg);
  max-width:34ch;
}

.fold3__body{
  max-width:72ch;
}

.fold3__body p{
  margin:0 0 14px 0;
  font-size:17px;
  line-height:1.55;
  color:#1a1d23;
}

@media (max-width:900px){
  .fold3{ padding:64px 0; }
}

/* -------------------------
   Fold 4 — Access (desk-grade, non-funnel)
------------------------- */
.fold4{
  padding:96px 0;
  background:#fafbfc;
  border-top:1px solid var(--border);
}

.fold4__inner{
  max-width:var(--content-max);
  margin:0 auto;
  padding:0 var(--pad-x);
}

.fold4__head{
  max-width:74ch;
  margin:0 0 28px 0;
}

.fold4__title{
  font-size:clamp(26px, 3vw, 40px);
  line-height:1.12;
  margin:0 0 14px 0;
  color:var(--fg);
  max-width:34ch;
}

.fold4__lede{
  margin:0;
  font-size:17px;
  line-height:1.55;
  color:#1a1d23;
  max-width:70ch;
}

/* Access grid */
.access-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:22px;
  align-items:stretch;
  margin-top:28px;
}

@media (max-width:1024px){
  .access-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

@media (max-width:640px){
  .fold4{ padding:64px 0; }
  .access-grid{ grid-template-columns:1fr; }
}

/* Access cards */
.access-item{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:22px 20px;

  display:flex;
  flex-direction:column;
  min-height:100%;

  box-shadow: 0 1px 0 rgba(11,13,16,.04), 0 8px 24px rgba(11,13,16,.06);
}

.access-item__title{
  font-weight:600;
  font-size:14px;
  color:var(--fg);
  margin:0 0 10px 0;
}

.access-item__text{
  margin:0;
  font-size:16px;
  line-height:1.55;
  color:#1a1d23;
}

.access-item__cta{
  margin-top:auto;
  padding-top:16px;
}

.access-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:12px 16px;
  border-radius:12px;

  border:1px solid #000;
  background:#fff;
  color:#000;

  font-size:14px;
  font-weight:600;
  white-space:nowrap;
}

.access-cta:hover{
  background:#000;
  color:#fff;
}

.access-footnote{
  margin:22px 0 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
  max-width:78ch;
}

/* -------------------------
   Footer
------------------------- */
.site-footer{
  padding:48px 0 24px 0;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  font-size:13px;
  color:var(--muted);
}

.site-footer__inner{
  max-width:var(--content-max);
  margin:0 auto;
  padding:0 var(--pad-x);
}

.site-footer__top{
  display:grid;
  grid-template-columns: 1.2fr 2fr;
  gap:48px;
  margin-bottom:32px;
}

.site-footer__brand{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.site-footer__logo{
  font-weight:600;
  font-size:18px;
  color:#000;
}

.site-footer__tagline{
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
  max-width:32ch;
}

.site-footer__nav{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:24px;
}

.site-footer__nav-group{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.site-footer__nav-title{
  font-weight:600;
  font-size:13px;
  color:#000;
}

.site-footer__link{
  font-size:13px;
  color:var(--muted);
}

.site-footer__link:hover{
  text-decoration:underline;
}

.site-footer__bottom{
  display:flex;
  flex-wrap:wrap;
  gap:12px 24px;
  padding-top:24px;
}

.site-footer__meta{
  font-size:12px;
  color:var(--muted);
}

@media (max-width:900px){
  .site-footer__top{
    grid-template-columns:1fr;
    gap:32px;
  }

  .site-footer__nav{
    grid-template-columns:1fr;
    gap:18px;
  }
}

/* -------------------------
   Policy pages (Terms / Privacy)
------------------------- */
.policy{
  padding:96px 0;
  background:#fff;
}

.policy--alt{
  background:#fafbfc;
  border-top:1px solid var(--border);
}

.policy__inner{
  max-width:var(--content-max);
  margin:0 auto;
  padding:0 var(--pad-x);
}

.policy__head{
  max-width:78ch;
  margin:0 0 22px 0;
}

.policy__kicker{
  display:inline-block;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0 0 12px 0;
}

.policy__title{
  font-size:clamp(28px, 3.1vw, 44px);
  line-height:1.12;
  margin:0 0 14px 0;
  color:var(--fg);
  max-width:34ch;
}

.policy__meta{
  font-size:13px;
  line-height:1.45;
  color:var(--muted);
  margin:0;
}

.policy__panel{
  max-width:78ch;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:22px 20px;
}


.policy__panel p:last-child{
  margin-bottom:0;
}

@media (max-width:900px){
  .policy{ padding:64px 0; }
}

.process-block{
  margin-top:18px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px 18px;
  box-shadow: 0 1px 0 rgba(11,13,16,.04), 0 8px 24px rgba(11,13,16,.06);
  max-width:78ch;
}

.process-title{
  font-size:16px;
  margin:0 0 8px 0;
  color:var(--fg);
}

.process-text{
  margin:0;
  color:#1a1d23;
}


/* -------------------------
   Forms — Get Started / Access
------------------------- */

.access-form{
  margin-top: 18px;
}

/* 2-column on desktop, 1-column on mobile */
.form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

@media (max-width: 900px){
  .form-grid{
    grid-template-columns: 1fr;
  }
}

.form-field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* labels */
.form-field label{
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* inputs */
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field select,
.form-field textarea{
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--fg);
  font-size: 15px;
  line-height: 1.35;
  outline: none;
}

/* textareas feel premium */
.form-field textarea{
  min-height: 110px;
  resize: vertical;
}

/* focus state */
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  border-color: #cbd5e1;
  box-shadow: 0 0 0 4px rgba(28,79,216,.10);
}

/* selects (avoid tiny default height differences) */
.form-field select{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

/* radios (your success_if_achieved) */
.form-field ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.form-field ul li{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.form-field ul li input{
  margin: 0;
}

/* errors */
.form-errors{
  border: 1px solid #f2c6c6;
  background: #fff5f5;
  color: #8a1f1f;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.field-error{
  font-size: 13px;
  color: #8a1f1f;
}

/* actions */
.form-actions{
  display: flex;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}

@media (max-width: 900px){
  .form-actions{
    flex-direction: column;
    align-items: stretch;
  }
}

/* CTA button for the form (matches your header CTA vibe) */
.access-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 16px;
  border-radius: 12px;

  border: 1px solid #000;
  background: #fff;
  color: #000;

  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.access-cta:hover{
  background: #000;
  color: #fff;
}

/* -------------------------
   Get Started — Survey UX (desk-grade)
------------------------- */

.access-head{ margin: 34px 0 18px 0; }
.access-kicker{
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0 0 10px 0;
}
.access-title{
  font-size:clamp(28px, 3.4vw, 44px);
  line-height:1.12;
  margin:0 0 12px 0;
  color:var(--fg);
}
.access-lede{
  margin:0;
  max-width:72ch;
  color:#1a1d23;
}

.access-process{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:18px;
  margin-top:18px;
}
@media (max-width:900px){
  .access-process{ grid-template-columns:1fr; }
}

.access-process__card{
  display:flex;
  gap:14px;
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px 16px;
  background:#fff;
  box-shadow: 0 1px 0 rgba(11,13,16,.04), 0 8px 24px rgba(11,13,16,.06);
}
.access-process__tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:24px;
  border-radius:999px;
  border:1px solid var(--border);
  font-size:11px;
  letter-spacing:.14em;
  color:var(--muted);
  flex:0 0 auto;
}
.access-process__title{
  font-weight:600;
  font-size:14px;
  color:var(--fg);
  margin:0 0 6px 0;
}
.access-process__text{
  font-size:14px;
  line-height:1.6;
  color:#1a1d23;
}

.survey{ margin-top:18px; }

.survey-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin: 16px 0 10px 0;
}
.survey-progress{
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
}

.survey-card{
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px 18px;
  background:#fff;
  box-shadow: 0 1px 0 rgba(11,13,16,.04), 0 8px 24px rgba(11,13,16,.06);
}

.survey-label{
  display:block;
  font-weight:600;
  color:var(--fg);
  margin:0 0 10px 0;
}

/* Desktop: make questions feel like questions */
@media (min-width: 901px){
  .survey-label{
    font-size:16px;
    line-height:1.35;
  }
}

/* Mobile: slightly smaller, still readable */
@media (max-width: 900px){
  .survey-label{
    font-size:14px;
    line-height:1.4;
  }
}

.survey-control input[type="text"],
.survey-control input[type="email"],
.survey-control input[type="password"],
.survey-control input[type="tel"],
.survey-control input[type="number"],
.survey-control select,
.survey-control textarea{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  color:var(--fg);
  font-size:15px;
  line-height:1.35;
  outline:none;
}

.survey-control textarea{ min-height:120px; resize:vertical; }

.survey-control input:focus,
.survey-control select:focus,
.survey-control textarea:focus{
  border-color:#cbd5e1;
  box-shadow: 0 0 0 4px rgba(28,79,216,.10);
}

.field-error{
  margin-top:10px;
  font-size:13px;
  color:#8a1f1f;
}

.form-errors{
  border: 1px solid #f2c6c6;
  background: #fff5f5;
  color: #8a1f1f;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.survey-actions{
  display:flex;
  gap:10px;
  margin-top:14px;
  align-items:center;
}
@media (max-width:900px){
  .survey-actions{ flex-direction:column; align-items:stretch; margin-bottom: 28px; }
}

.survey-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid #000;
  background:#fff;
  color:#000;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
  cursor:pointer;
}
.survey-cta:hover{ background:#000; color:#fff; }

.survey-cta--ghost{
  border-color: var(--border);
  color: var(--fg);
}
.survey-cta--ghost:hover{
  background:#fff;
  color: var(--fg);
  text-decoration: underline;
}

button.survey-cta{
    margin-bottom: 28px;
  }

@media (max-width: 900px){
  #btn-submit{
    margin-bottom: 14px;
  }
}

/* -------------------------
   Operator — Table
------------------------- */
.ops-table-card{
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  box-shadow: 0 1px 0 rgba(11,13,16,.04), 0 8px 24px rgba(11,13,16,.06);
  overflow:hidden;
}

.ops-table{
  width:100%;
  border-collapse:collapse;
}

.ops-table thead th{
  text-align:left;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  background:#fff;
}

.ops-table tbody td{
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  vertical-align:top;
  font-size:14px;
  color:#1a1d23;
}

.ops-row{
  cursor:pointer;
}

.ops-row:hover{
  background:#fafbfc;
}

.ops-project__title{
  font-weight:600;
  color:var(--fg);
}

.ops-contact__name{
  font-weight:600;
  color:var(--fg);
}

.ops-contact__email{
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
}

.ops-link{
  text-decoration:underline;
}

/* mobile table: allow horizontal scroll cleanly */
@media (max-width: 900px){
  .ops-table-card{ overflow:auto; }
  .ops-table{ min-width: 920px; }
}

/* -------------------------
   Status chips
------------------------- */
.status-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  font-size:12px;
  color:var(--fg);
  background:#fff;
}

.status-released{ background:#fff; }
.status-accepted{ background:#f3fff5; border-color:#cfe9d5; }
.status-declined{ background:#fff5f5; border-color:#f2c6c6; }
.status-expired{ background:#f6f7f9; border-color:#e3e6ea; color:var(--muted); }
.status-withdrawn{ background:#f6f7f9; border-color:#e3e6ea; color:var(--muted); }

/* -------------------------
   Drawer
------------------------- */
.drawer{
  position:fixed;
  inset:0;
  display:none;
  z-index:100;
}

.drawer.is-open{
  display:block;
}

.drawer__overlay{
  position:absolute;
  inset:0;
  background: rgba(11, 13, 16, 0.55);
}

.drawer__panel{
  position:absolute;
  top:0;
  right:0;
  height:100%;
  width:min(560px, 92vw);
  background:#fff;
  border-left:1px solid var(--border);
  box-shadow: -8px 0 30px rgba(11,13,16,.18);
  display:flex;
  flex-direction:column;
}

.drawer__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
}

.drawer__title{
  font-weight:600;
  color:var(--fg);
  font-size:14px;
}

.drawer__close{
  width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-size:18px;
  line-height:1;
}

.drawer__body{
  padding:16px;
  overflow:auto;
}

/* Drawer content */
.drawer-block{
  margin-bottom:16px;
}

.drawer-kicker{
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0 0 8px 0;
}

.drawer-h2{
  font-size:18px;
  font-weight:600;
  margin:0 0 4px 0;
  color:var(--fg);
}

.drawer-h3{
  font-size:14px;
  font-weight:600;
  margin:0 0 2px 0;
  color:var(--fg);
}

.drawer-muted{
  font-size:13px;
  color:var(--muted);
}

.drawer-text{
  font-size:14px;
  line-height:1.6;
  color:#1a1d23;
}

.drawer-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-bottom:16px;
}

@media (max-width: 900px){
  .drawer-grid{ grid-template-columns:1fr; }
}

.drawer-card{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  background:#fff;
}

.drawer-card__title{
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.14em;
  margin:0 0 8px 0;
}

.drawer-card__text{
  font-size:14px;
  color:var(--fg);
  font-weight:600;
}

.drawer-files{
  display:grid;
  gap:10px;
}

.drawer-actions{
  margin-top:18px;
}

/* Upload pill (used across list, drawer, detail) */
.upload-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid rgba(17,17,17,.14);
  background:#fff;
  color:#111;
  font-size:12px;
  font-weight:500;
  cursor:pointer;
  white-space:nowrap;
}

.upload-pill:hover{
  background: rgba(17,17,17,.03);
}

.upload-pill input[type="file"]{
  display:none;
}


/* Operator button (light-surface, desk-grade) */
.ops-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid rgba(17,17,17,.14);
  background:#111;
  color:#fff;
  font-size:12px;
  font-weight:600;
  line-height:1;
  cursor:pointer;
  white-space:nowrap;
}

.ops-btn:hover{
  background: rgba(17,17,17,.92);
}

.ops-btn:active{
  transform: translateY(1px);
}

.ops-btn--ghost{
  background:#fff;
  color:#111;
}
.ops-btn--ghost:hover{
  background: rgba(17,17,17,.03);
}


/* Responsive visibility */
.desktop-only{ display:block; }
.mobile-only{ display:none; }
@media (max-width: 820px){
  .desktop-only{ display:none; }
  .mobile-only{ display:block; }
}

@media (max-width: 820px){

  .ops-cards{ display:flex; flex-direction:column; gap:14px; }

  .ops-card{
    border:1px solid rgba(17,17,17,.10);
    background:#fff;
    border-radius:16px;
    padding:16px;
    box-shadow: 0 10px 28px rgba(0,0,0,.07);
  }

  .ops-card__title{
    font-size:16px;
    font-weight:750;
    line-height:1.25;
    color:#111;
  }

  .ops-card__meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:8px;
  }

  .ops-card__location{
    font-size:12px;
    color: rgba(17,17,17,.62);
  }

  /* Status pill (read-only on mobile list) */
  .ops-status-pill{
    font-size:12px;
    font-weight:650;
    padding:8px 10px;
    border-radius:999px;
    border:1px solid rgba(17,17,17,.12);
    background: rgba(17,17,17,.03);
    color:#111;
    white-space:nowrap;
  }

  .ops-status-pill.status-won{ background: rgba(46, 204, 113, 0.14); }
  .ops-status-pill.status-quoted{ background: rgba(52, 152, 219, 0.14); }
  .ops-status-pill.status-lost,
  .ops-status-pill.status-declined{ background: rgba(231, 76, 60, 0.14); }

  /* Actions row: big tap targets */
  .ops-card__actions{
    display:flex;
    gap:10px;
    margin-top:12px;
  }

  .ops-action{
    flex:1;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;              /* tap target */
    padding:10px 12px;
    border-radius:12px;
    border:1px solid rgba(17,17,17,.14);
    background:#111;
    color:#fff;
    font-size:13px;
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
  }

  .ops-action--secondary{
    background:#fff;
    color:#111;
  }

  .ops-action--upload input[type="file"]{ display:none; }

  .ops-card__bottom{
    margin-top:12px;
    font-size:12px;
    color: rgba(17,17,17,.62);
  }
}

@media (max-width: 820px){
  .drawer-block{
    padding:18px 0;
  }
}

@media (max-width: 820px){
  .status-select--detail{
    width: 100%;
    min-height: 48px;
    font-size:14px;
  }
}


@media (max-width: 820px){
  .drawer-h3{
    font-size:18px;
  }

  .ops-btn{
    width:100%;
    min-height:44px;
  }

  .upload-pill{
    width:100%;
    justify-content:center;
    min-height:44px;
  }
}

.drawer-block{ padding:14px 0; border-bottom:1px solid rgba(17,17,17,.10); }
.drawer-kicker{ font-size:12px; letter-spacing:.08em; text-transform:uppercase; color: rgba(17,17,17,.60); margin-bottom:8px; }
.drawer-h3{ font-size:16px; font-weight:600; color:#111; }
.drawer-muted{ color: rgba(17,17,17,.62); font-size:13px; }
.drawer-text{ color: rgba(17,17,17,.88); white-space:pre-wrap; }
.drawer-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
@media (max-width: 720px){ .drawer-grid{ grid-template-columns: 1fr; } }
.drawer-files{ display:flex; flex-direction:column; gap:8px; }
.drawer-tiles{ display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:10px; }
@media (max-width: 720px){ .drawer-tiles{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile{ display:block; border-radius:12px; overflow:hidden; border:1px solid rgba(17,17,17,.10); background: rgba(17,17,17,.02); }
.tile__img{ width:100%; height:92px; object-fit:cover; display:block; }
.status-select{ width: 140px; max-width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(17,17,17,.14); background: #fff; color: #111; font-size: 12px; cursor: pointer; }
.status-select:focus{ outline: none; border-color: rgba(17,17,17,.28); }
.status-select--detail{ width: 180px; }

.desktop-only{ display:block; }
.mobile-only{ display:none; }
@media (max-width: 820px){
  .desktop-only{ display:none; }
  .mobile-only{ display:block; }
}

/* ---------- Status select (light UI, table-safe) ---------- */
.status-select{
  width: 140px;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(17,17,17,.14);
  background: #ffffff;
  color: #111;
  font-size: 12px;
  cursor: pointer;
}
.status-select:focus{
  outline: none;
  border-color: rgba(17,17,17,.28);
}


/* ---------- Drawer (light surface, correct borders) ---------- */
.ops-drawer-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.20);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 50;
}

.ops-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(560px, 92vw);
  background: #ffffff;
  color: #111;
  border-left: 1px solid rgba(17,17,17,.10);
  transform: translateX(100%);
  transition: transform .18s ease;
  z-index: 60;
  box-shadow: -12px 0 28px rgba(0,0,0,.10);
}

.ops-drawer.is-open{ transform: translateX(0); }
.ops-drawer-overlay.is-open{ opacity: 1; pointer-events: auto; }

.ops-drawer a{ color: #0b5fff; }
.ops-drawer .muted{ color: rgba(17,17,17,.62); }

.ops-drawer__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(17,17,17,.10);
}
.ops-drawer__title{ font-weight: 600; }

.ops-drawer__close{
  border: 1px solid rgba(17,17,17,.14);
  background: #fff;
  color: #111;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  inset: 0;
  background: rgba(0,0,0,.20);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 50;
}

.ops-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(560px, 92vw);
  background: #ffffff;
  color: #111;
  border-left: 1px solid rgba(17,17,17,.10);
  transform: translateX(100%);
  transition: transform .18s ease;
  z-index: 60;
  box-shadow: -12px 0 28px rgba(0,0,0,.10);
}

.ops-drawer.is-open{ transform: translateX(0); }
.ops-drawer-overlay.is-open{ opacity: 1; pointer-events: auto; }

.ops-drawer a{ color: #0b5fff; }
.ops-drawer .muted{ color: rgba(17,17,17,.62); }

.ops-drawer__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(17,17,17,.10);
}
.ops-drawer__title{ font-weight: 600; }

.ops-drawer__close{
  border: 1px solid rgba(17,17,17,.14);
  background: #fff;
  color: #111;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.20);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 50;
}

.ops-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(560px, 92vw);
  background: #ffffff;
  color: #111;
  border-left: 1px solid rgba(17,17,17,.10);
  transform: translateX(100%);
  transition: transform .18s ease;
  z-index: 60;
  box-shadow: -12px 0 28px rgba(0,0,0,.10);
}

.ops-drawer.is-open{ transform: translateX(0); }
.ops-drawer-overlay.is-open{ opacity: 1; pointer-events: auto; }

.ops-drawer a{ color: #0b5fff; }
.ops-drawer .muted{ color: rgba(17,17,17,.62); }

.ops-drawer__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(17,17,17,.10);
  font-size:12px;
  cursor:pointer;
}
.upload-pill input[type="file"]{ display:none; }

/* ===== Allocation row colouring (table-safe) ===== */

/* Apply tint to CELLS, not just TR */
.ops-table .ops-row.status-won > td{
  background: rgba(46, 204, 113, 0.10) !important;
}
.ops-table .ops-row.status-quoted > td{
  background: rgba(52, 152, 219, 0.10) !important;
}
.ops-table .ops-row.status-lost > td,
.ops-table .ops-row.status-declined > td{
  background: rgba(231, 76, 60, 0.10) !important;
}

/* Hover without killing status tint */
.ops-table .ops-row:hover > td{
  box-shadow: inset 0 0 0 9999px rgba(0,0,0,0.02);
}

/* ===== Drawer spacing fix (desktop) ===== */

/* Ensure drawer body has breathing room */
.ops-drawer__body{
  padding: 24px 24px 32px 24px;
}

/* Increase block separation inside drawer */
.ops-drawer__body .drawer-block{
  padding: 18px 0;
}

/* First block shouldn’t feel glued to top */
.ops-drawer__body .drawer-block:first-child{
  padding-top: 6px;
}

/* Grid blocks need internal air */
.ops-drawer__body .drawer-grid{
  gap: 24px;
}

/* Desktop only: slightly wider horizontal rhythm */
@media (min-width: 1024px){
  .ops-drawer{
    padding-left: 0; /* guard against resets */
  }
}

/* ===== Drawer scroll fix ===== */
.ops-drawer{
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden; /* header fixed, body scrolls */
}

.ops-drawer__head{
  flex: 0 0 auto;
}

.ops-drawer__body{
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0; /* critical for flex children to scroll */
}

/* Make logout button visually identical to nav links */
.nav-logout-form{
  display: inline;
}

.nav-logout{
  all: unset;                 /* wipes button defaults */
  cursor: pointer;
  display: inline-block;
}

/* Re-apply your nav link styling */
.nav-logout.site-nav__link{
  color: inherit;
  font: inherit;
  text-decoration: none;
}

/* Allow button to behave exactly like a nav link */
.site-nav__form{
    display: contents; /* form does not affect layout */
}

.site-nav__button{
    all: unset;        /* remove button defaults */
    display: block;    /* required for width + padding */
    width: 100%;
    cursor: pointer;
}

/* Re-apply nav link semantics */
.site-nav__button.site-nav__link{
    font: inherit;
    color: inherit;
    text-align: left;
}

/* Form must not add spacing */
.site-nav__form{
  margin: 0;
  padding: 0;
}

/* Make the button behave like the link without destroying spacing */
.site-nav__button{
  background: none;
  border: 0;
  padding: 0;              /* IMPORTANT: let .site-nav__link provide padding */
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

