/* VerityOne Insurance — design tokens + base styles */

:root {
  /* Navy + greys */
  --navy-900: #08172d;
  --navy-800: #0a2540;
  --navy-700: #0e335c;
  --navy-600: #154a85;
  --navy-500: #1b6cc9;
  --navy-100: #e7eef7;
  --navy-50:  #f3f6fb;

  --ink-900: #0e1726;
  --ink-700: #1f2a3c;
  --ink-500: #4b5668;
  --ink-400: #6b7587;
  --ink-300: #9aa3b2;
  --ink-200: #c8cfdb;
  --ink-100: #e3e8ef;
  --ink-50:  #f1f4f8;
  --paper:   #f6f8fb;
  --white:   #ffffff;

  --gold-500: #b4892e; /* used sparingly for "established" gravitas */
  --green-600: #1a7f4f;
  --red-600:  #b3261e;

  /* Type */
  --font-sans: "Public Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Radii — small, corporate, never pill */
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 6px;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --s-20: 80px; --s-24: 96px; --s-28: 112px;

  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 6px 18px rgba(10, 37, 64, 0.08);

  /* Investigation Mode panel width — shared so anything that needs to make
     room for it (the document viewer, its backdrop) stays in sync. */
  --inv-w: 440px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-500); text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--navy-800);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
}

h1 { font-size: clamp(36px, 4.4vw, 60px); font-weight: 600; letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { margin: 0 0 1em; color: var(--ink-700); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--navy-600);
}

/* ---------- Container ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 12px 22px;
  border-radius: var(--r-2);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy-800);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-700); color: var(--white); text-decoration: none; }
.btn-secondary {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--ink-200);
}
.btn-secondary:hover { border-color: var(--navy-600); color: var(--navy-700); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  padding: 10px 14px;
}
.btn-ghost:hover { background: var(--navy-50); text-decoration: none; }
.btn-small { padding: 8px 14px; font-size: 13px; }
.btn-link {
  color: var(--navy-600); font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.btn-link:hover { color: var(--navy-500); }

/* ---------- Top utility bar ---------- */
.utility-bar {
  background: var(--navy-900);
  color: var(--ink-200);
  font-size: 13px;
  padding: 8px 0;
}
.utility-bar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.utility-bar a { color: var(--ink-100); }
.utility-bar .util-left { display: flex; gap: 24px; align-items: center; }
.utility-bar .util-right { display: flex; gap: 18px; align-items: center; }
.utility-bar .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; display: inline-block; margin-right: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--ink-100);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
  color: var(--navy-800);
  cursor: pointer;
}
.brand .brand-mark {
  width: 30px; height: 30px; border-radius: var(--r-2);
  background: var(--navy-800);
  display: grid; place-items: center;
  color: var(--white);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0;
}
.brand .brand-mark::after {
  content: "V1";
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.03em;
}
.brand .brand-mark { font-size: 0; } /* hide initial */
.brand strong { font-weight: 700; }
.brand .sub { color: var(--ink-400); font-weight: 400; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-left: 4px; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  font-size: 14.5px; font-weight: 500; color: var(--ink-700);
  padding: 8px 14px; border-radius: var(--r-2); cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.nav-link:hover { color: var(--navy-700); background: var(--navy-50); text-decoration: none; }
.nav-link.active { color: var(--navy-800); background: var(--navy-50); }

.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-actions .staff-login {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-500);
  padding: 8px 14px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-2);
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  background: var(--white);
}
.nav-actions .staff-login:hover { color: var(--navy-700); border-color: var(--navy-600); text-decoration: none; }
.nav-actions .staff-login svg { width: 14px; height: 14px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy-50) 0%, var(--white) 100%);
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--navy-700);
}
.hero h1 .hero-subline {
  display: block;
  margin-top: 14px;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink-500);
}
.hero .lede {
  font-size: 18px;
  color: var(--ink-500);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-meta {
  display: flex; gap: 32px; padding-top: 24px; border-top: 1px solid var(--ink-100);
  flex-wrap: wrap;
}
.hero-meta .item .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-400); margin-bottom: 4px;
}
.hero-meta .item .value { font-size: 15px; font-weight: 600; color: var(--navy-800); }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 4.6;
  background: var(--navy-100);
  border-radius: var(--r-3);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-visual .ph {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(10,37,64,0.55), rgba(10,37,64,0.15)),
    url("https://images.unsplash.com/photo-1556761175-5973dc0f32e7?w=900&q=80") center/cover;
}
.hero-visual .badge-card {
  position: absolute;
  left: 24px; bottom: 24px;
  background: var(--white);
  border-radius: var(--r-3);
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px;
  min-width: 260px;
}
.badge-card .badge-num {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy-800);
  font-family: var(--font-sans);
  letter-spacing: -0.03em;
}
.badge-card .badge-label {
  font-size: 12px; color: var(--ink-500); line-height: 1.35;
}
.hero-visual .float-card {
  position: absolute;
  top: 24px; right: 24px;
  background: var(--white);
  border-radius: var(--r-3);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  font-size: 12.5px;
  width: 240px;
}
.float-card .fc-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.float-card .fc-row + .fc-row { border-top: 1px solid var(--ink-100); }
.float-card .fc-label { color: var(--ink-500); }
.float-card .fc-value { font-weight: 600; color: var(--navy-800); }
.float-card .fc-head { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); padding-bottom: 4px; }
.float-card .pill {
  display: inline-flex; gap: 6px; align-items: center;
  background: #ecfdf5; color: var(--green-600);
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
}
.float-card .pill::before {
  content: ""; width: 6px; height: 6px; background: var(--green-600); border-radius: 50%;
}

/* ---------- Logo strip ---------- */
.logo-strip {
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  padding: 40px 0;
  background: var(--white);
}
.logo-strip .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.logo-strip .label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-400);
  font-weight: 600;
  flex-shrink: 0;
  text-align: center;
}
.logo-strip .logos {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
  color: var(--ink-300);
  font-weight: 700;
  letter-spacing: -0.01em;
  min-width: 0;
}
.logo-strip .logos span {
  font-size: clamp(14px, 1.15vw, 18px);
  color: var(--ink-300);
  white-space: nowrap;
  font-family: var(--font-serif);
  font-style: italic;
}
.logo-strip .logos span.sans { font-family: var(--font-sans); font-style: normal; letter-spacing: -0.02em; }
.logo-strip .logos span.mono { font-family: var(--font-mono); font-style: normal; letter-spacing: -0.04em; }

@media (max-width: 900px) {
  .logo-strip .logos { overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; }
  .logo-strip .logos::-webkit-scrollbar { display: none; }
}

/* ---------- Section ---------- */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.bg-paper { background: var(--paper); }
section.bg-navy { background: var(--navy-800); color: var(--ink-100); }
section.bg-navy h2, section.bg-navy h3 { color: var(--white); }
section.bg-navy p { color: var(--ink-200); }
section.bg-navy .eyebrow { color: #9dbce6; }
section.bg-navy .eyebrow::before { background: #9dbce6; }

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head h2 { margin: 12px 0 16px; }
.section-head p { color: var(--ink-500); font-size: 17px; line-height: 1.55; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-3);
  background: var(--white);
  overflow: hidden;
}
.stat {
  padding: 32px 28px;
  border-right: 1px solid var(--ink-100);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-size: 46px;
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
  font-feature-settings: "tnum";
}
.stat .num small { font-size: 22px; font-weight: 500; color: var(--navy-600); margin-left: 2px; }
.stat .label { font-size: 13.5px; color: var(--ink-500); line-height: 1.45; max-width: 220px; }
.stat .foot { font-size: 11px; color: var(--ink-300); margin-top: 8px; letter-spacing: 0.02em; }

/* ---------- Service / coverage cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-3);
  padding: 28px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.card:hover { border-color: var(--navy-500); }
.card .icon {
  width: 40px; height: 40px;
  background: var(--navy-50);
  border-radius: var(--r-2);
  display: grid; place-items: center;
  color: var(--navy-700);
  margin-bottom: 20px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-500); margin-bottom: 18px; }
.card .card-link {
  font-size: 13.5px; font-weight: 600; color: var(--navy-600);
  display: inline-flex; align-items: center; gap: 6px;
}

.card-feature {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-3);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.card-feature .copy { padding: 40px; }
.card-feature .copy h3 { font-size: 26px; margin-bottom: 14px; letter-spacing: -0.015em; }
.card-feature .copy p { font-size: 15px; color: var(--ink-500); margin-bottom: 22px; }
.card-feature .image {
  background: var(--navy-100) center/cover;
  min-height: 320px;
}
.card-feature ul { list-style: none; padding: 0; margin: 0 0 22px; }
.card-feature li {
  padding: 8px 0; border-top: 1px solid var(--ink-100);
  font-size: 14px; color: var(--ink-700);
  display: flex; align-items: center; gap: 10px;
}
.card-feature li::before {
  content: ""; width: 14px; height: 14px;
  background: var(--navy-100);
  border-radius: 50%;
  position: relative;
  flex: 0 0 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23154a85' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'></polyline></svg>");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Process / steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.step {
  padding: 28px 24px 28px 0;
  position: relative;
  border-top: 2px solid var(--navy-100);
}
.step::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px; height: 12px;
  background: var(--navy-800);
  border-radius: 50%;
}
.step .step-num {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--navy-600); text-transform: uppercase; margin-bottom: 12px;
}
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-500); margin: 0; }
.step .duration {
  font-size: 12px; color: var(--ink-400); margin-top: 12px;
  font-family: var(--font-mono);
}

/* ---------- Testimonial ---------- */
.testimonial {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
}
.testimonial .photo {
  aspect-ratio: 4 / 5;
  background: var(--navy-100) center/cover;
  border-radius: var(--r-3);
}
.testimonial blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1.35;
  color: var(--navy-800);
  margin: 0 0 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.testimonial .who { font-size: 14px; color: var(--ink-500); }
.testimonial .who strong { color: var(--navy-800); display: block; font-size: 15px; font-weight: 600; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--navy-800);
  color: var(--white);
  padding: 64px 0;
}
.cta-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-strip h2 { color: var(--white); font-size: 32px; max-width: 640px; letter-spacing: -0.02em; }
.cta-strip p { color: var(--ink-200); margin-bottom: 0; max-width: 540px; }
.cta-strip .btn-primary { background: var(--white); color: var(--navy-800); }
.cta-strip .btn-primary:hover { background: var(--ink-100); color: var(--navy-800); }

/* ---------- Footer ---------- */
footer.site-foot {
  background: var(--navy-900);
  color: var(--ink-200);
  padding: 72px 0 0;
}
footer.site-foot a { color: var(--ink-200); font-size: 14px; }
footer.site-foot a:hover { color: var(--white); text-decoration: none; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 56px;
}
.foot-col h5 {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-brand { font-size: 24px; font-weight: 700; color: var(--white); letter-spacing: -0.02em; margin-bottom: 14px; }
.foot-brand-sub { font-size: 14px; color: var(--ink-300); max-width: 320px; margin-bottom: 24px; }
.foot-addr { font-size: 13px; color: var(--ink-300); line-height: 1.65; font-style: normal; }
.foot-bottom {
  border-top: 1px solid #1c3354;
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--ink-300);
}
.foot-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-bottom .legal a { font-size: 12.5px; color: var(--ink-300); }
.foot-regs { font-size: 12px; color: #6c8094; max-width: 760px; line-height: 1.55; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  background: var(--navy-800);
  color: var(--white);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 90% 0%, rgba(27,108,201,0.18), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .crumbs {
  font-size: 12.5px; letter-spacing: 0.05em; color: #9dbce6; margin-bottom: 18px;
}
.page-hero .crumbs span { color: var(--ink-400); margin: 0 8px; }
.page-hero h1 { color: var(--white); max-width: 820px; font-weight: 600; font-size: clamp(36px, 4vw, 52px); letter-spacing: -0.025em; }
.page-hero h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: #cfe0f3; }
.page-hero .sub {
  margin-top: 18px;
  font-size: 18px;
  color: var(--ink-200);
  max-width: 680px;
}

/* ---------- Two-col page layout ---------- */
.split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}
.split aside h5 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-400); margin-bottom: 14px;
}
.split aside ul { list-style: none; padding: 0; margin: 0; }
.split aside li {
  padding: 10px 12px; font-size: 14px; color: var(--ink-700); border-left: 2px solid var(--ink-100); cursor: pointer;
}
.split aside li.active { border-left-color: var(--navy-600); color: var(--navy-800); font-weight: 600; background: var(--navy-50); }

/* ---------- Coverage grid ---------- */
.coverage-tile {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-3);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  transition: border-color 160ms ease;
}
.coverage-tile:hover { border-color: var(--navy-500); }
.coverage-tile .tag {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-400); font-weight: 600;
}
.coverage-tile h3 { font-size: 20px; letter-spacing: -0.015em; }
.coverage-tile p { font-size: 14px; color: var(--ink-500); margin: 0; }
.coverage-tile .row {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--ink-400);
  padding-top: 16px; border-top: 1px solid var(--ink-100);
}
.coverage-tile .row .val { color: var(--navy-800); font-weight: 600; }

/* ---------- Principle cards (About) ---------- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.principle-card {
  padding: 36px 22px;
  text-align: center;
  border: none;
  border-radius: var(--r-3);
  background: var(--white);
  transition: transform 180ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 180ms cubic-bezier(0.2, 0, 0, 1),
              background-color 180ms ease;
  cursor: default;
}
.principle-card:nth-child(even) { background: var(--navy-50); }
.principle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(10, 37, 64, 0.12);
}
.principle-card:nth-child(odd):hover  { background: var(--navy-50); }
.principle-card:nth-child(even):hover { background: var(--white); }
.principle-card .pc-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 38px;
  color: var(--navy-600);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 180ms ease;
}
.principle-card:hover .pc-num { color: var(--navy-800); }
.principle-card .pc-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 8px;
}
.principle-card .pc-desc {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.5;
}

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

/* ---------- Tables ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-3);
  overflow: hidden;
}
.table th, .table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-100);
}
.table th {
  background: var(--paper);
  color: var(--ink-500);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.table tr:last-child td { border-bottom: none; }
.table td.num { font-family: var(--font-mono); font-weight: 500; color: var(--navy-800); }

/* ---------- Job listing ---------- */
.job {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 120px;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border-top: 1px solid var(--ink-100);
  font-size: 14px;
  cursor: pointer;
}
.job:hover { background: var(--navy-50); }
.job h4 { font-size: 17px; margin-bottom: 4px; }
.job .meta { font-size: 13px; color: var(--ink-400); }
.job .pill {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--navy-50); color: var(--navy-700); font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.job .arrow { color: var(--navy-600); justify-self: end; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-700); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-2);
  background: var(--white);
  color: var(--ink-900);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(21, 74, 133, 0.12);
}
.field textarea { min-height: 140px; resize: vertical; font-family: var(--font-sans); }
.field input.error { border-color: var(--red-600); }
.field input.error:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.1); }
.field .hint { font-size: 12px; color: var(--ink-400); }

/* ---------- Contact split ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px;
}
.contact-grid .info { font-size: 14px; }
.contact-grid .info h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); font-weight: 600; margin-bottom: 8px; }
.contact-grid .info p { color: var(--ink-700); margin-bottom: 24px; line-height: 1.55; }
.contact-grid .info a { color: var(--navy-700); font-weight: 500; }

/* ---------- Login modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(8, 23, 45, 0.55);
  display: grid; place-items: center; z-index: 100;
  backdrop-filter: blur(2px);
}
.modal {
  background: var(--white);
  width: 420px;
  max-width: calc(100vw - 32px);
  border-radius: var(--r-3);
  padding: 36px;
  position: relative;
  box-shadow: 0 20px 50px rgba(8,23,45,0.25);
}
.modal .close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--ink-50); color: var(--ink-700);
  cursor: pointer; display: grid; place-items: center;
}
.modal .close:hover { background: var(--ink-100); }
.modal h3 { font-size: 22px; margin-bottom: 6px; }
.modal .modal-sub { font-size: 14px; color: var(--ink-500); margin-bottom: 24px; }
.modal .form-row { display: flex; flex-direction: column; gap: 14px; }
.modal .form-error {
  font-size: 12.5px; color: var(--red-600); background: #fdf3f2;
  border: 1px solid #f6d9d6; border-radius: var(--r-2); padding: 9px 12px;
  margin-top: -2px;
}
.modal .small {
  font-size: 12px; color: var(--ink-400); display: flex; justify-content: space-between; align-items: center;
}
.modal .small a { color: var(--navy-600); }
.modal .sso {
  border-top: 1px solid var(--ink-100); padding-top: 18px; margin-top: 18px;
  text-align: center; font-size: 12.5px; color: var(--ink-500);
}
.modal .sso-btn {
  width: 100%; margin-top: 10px;
  background: var(--white); border: 1px solid var(--ink-200);
  padding: 11px; border-radius: var(--r-2);
  font-size: 14px; font-weight: 500; color: var(--ink-700); cursor: pointer;
}
.modal .sso-btn:hover { border-color: var(--navy-600); color: var(--navy-700); }

/* ---------- In-portal document viewer ---------- */
.doc-viewer {
  background: var(--white);
  width: min(920px, calc(100vw - 48px));
  height: min(760px, calc(100vh - 64px));
  border-radius: var(--r-3);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(8, 23, 45, 0.25);
  display: flex;
  flex-direction: column;
}
.dv-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--ink-100); flex-shrink: 0;
}
.dv-t { font-size: 16px; font-weight: 600; color: var(--navy-800); }
.dv-m { font-size: 12.5px; color: var(--ink-400); margin-top: 4px; }
.dv-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.dv-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--ink-50); color: var(--ink-700);
  cursor: pointer; display: grid; place-items: center; font-size: 15px;
}
.dv-close:hover { background: var(--ink-100); }
.dv-body { flex: 1; min-height: 0; background: var(--paper); display: flex; }
.doc-frame { width: 100%; height: 100%; border: 0; display: block; background: var(--white); }
.doc-frame-img { object-fit: contain; background: #10151f; }
.doc-preview-state {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 40px; text-align: center; color: var(--ink-500); font-size: 14px;
}
.doc-preview-missing .dp-ico {
  width: 52px; height: 52px; border-radius: 50%; background: var(--navy-50); color: var(--navy-600);
  display: grid; place-items: center; margin-bottom: 8px;
}
.doc-preview-missing .dp-t { font-size: 15px; font-weight: 600; color: var(--navy-800); }
.doc-preview-missing .dp-d { font-size: 13px; color: var(--ink-500); max-width: 380px; line-height: 1.55; }
.doc-preview-missing code {
  font-family: var(--font-mono); font-size: 12px; background: var(--navy-50);
  padding: 2px 6px; border-radius: 4px; color: var(--navy-700);
}
@media (max-width: 720px) {
  .doc-viewer { width: calc(100vw - 24px); height: calc(100vh - 40px); }
}
/* When Investigation Mode is open, the viewer shrinks to fit the space left
   of the panel instead of being clipped underneath it — see the
   .siu--investigating rules further down for the panel side of this. */
.siu--investigating .doc-viewer {
  width: min(760px, calc(100vw - var(--inv-w) - 64px));
}

/* ---------- Misc ---------- */
.kicker {
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 8px;
}
.divider { height: 1px; background: var(--ink-100); margin: 48px 0; }

.badge-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--ink-200); border-radius: var(--r-2);
  padding: 8px 14px; font-size: 12px; color: var(--ink-700); font-weight: 500;
}
.trust-badge .check { color: var(--green-600); }
.trust-badge sup { color: var(--ink-300); font-size: 9px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--ink-100); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .testimonial { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .card-feature { grid-template-columns: 1fr; }
  .card-feature .image { min-height: 220px; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .utility-bar { display: none; }
  .hero { padding: 56px 0 64px; }
  section { padding: 64px 0; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--ink-100); }
  .stat:last-child { border-bottom: none; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SIU PORTAL — post-login case management system
   ============================================================ */
.siu { min-height: 100vh; background: var(--paper); font-size: 15px; }

/* Top bar */
.siu-topbar { background: var(--navy-900); color: #fff; height: 60px; display: flex; align-items: center; gap: 22px; padding: 0 24px; position: sticky; top: 0; z-index: 40; }
.siu-brand { display: flex; align-items: baseline; gap: 12px; flex-shrink: 0; }
.siu-brand .b-main { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: #fff; }
.siu-brand .b-sub { font-size: 13px; color: #7f95b3; font-weight: 400; }
.siu-search { flex: 1; max-width: 460px; position: relative; }
.siu-search input { width: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-2); color: #dbe4f0; font-size: 13.5px; padding: 9px 12px 9px 36px; font-family: var(--font-sans); }
.siu-search input::placeholder { color: #8ba0bd; }
.siu-search input:focus { outline: none; border-color: var(--navy-500); background: rgba(255,255,255,0.12); }
.siu-search .s-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #8ba0bd; }
.siu-topbar-right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.siu-clearance { font-size: 12.5px; color: #cdd9e8; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: 4px 14px; white-space: nowrap; }
.siu-bell { color: #b9c7d9; position: relative; cursor: pointer; display: grid; place-items: center; }
.siu-bell .dot { position: absolute; top: -2px; right: -2px; width: 7px; height: 7px; border-radius: 50%; background: #e6a935; border: 1.5px solid var(--navy-900); }
.siu-user { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.siu-user .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-600); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: -0.02em; }
.siu-user .u-name { font-size: 13.5px; color: #e4ecf5; white-space: nowrap; }
.siu-signout { background: none; border: none; color: #7f95b3; font-size: 12.5px; cursor: pointer; padding: 4px 8px; font-family: var(--font-sans); }
.siu-signout:hover { color: #fff; }

/* Body / layout */
.siu-wrap { max-width: 1320px; margin: 0 auto; padding: 20px 24px 64px; }
.siu-crumbs { font-size: 13px; color: var(--ink-400); margin-bottom: 18px; }
.siu-crumbs .sep { margin: 0 8px; color: var(--ink-300); }
.siu-crumbs .cur { color: var(--ink-700); font-family: var(--font-mono); font-size: 12.5px; }
.siu-layout { display: grid; grid-template-columns: 232px 1fr; gap: 24px; align-items: start; }

/* Sidebar */
.siu-side { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-3); overflow: hidden; position: sticky; top: 80px; }
.siu-side .side-head { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-400); font-weight: 700; padding: 16px 18px 10px; }
.siu-side .side-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; white-space: nowrap; padding: 11px 18px; font-size: 14.5px; color: var(--ink-700); cursor: pointer; border-left: 3px solid transparent; }
.siu-side .side-item:hover { background: var(--navy-50); }
.siu-side .side-item.active { background: var(--navy-50); border-left-color: var(--navy-600); color: var(--navy-800); font-weight: 600; }
.siu-side .side-item.locked { color: var(--ink-300); cursor: not-allowed; }
.siu-side .side-item.locked:hover { background: #fff; }
.siu-side .side-item .lk { color: #c99a2e; display: grid; place-items: center; }

/* Case header card */
.siu-card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-3); box-shadow: var(--shadow-sm); }
.siu-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.case-head { padding: 28px 30px 30px; }
.case-head .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.case-head h1 { font-size: 27px; letter-spacing: -0.02em; color: var(--navy-800); margin-bottom: 6px; }
.case-head .refline { font-size: 13.5px; color: var(--ink-400); }
.case-head .refline b { color: var(--ink-700); font-weight: 600; font-family: var(--font-mono); font-size: 12.5px; }
.ov-split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 980px) { .ov-split { grid-template-columns: 1fr; } }
.status-badge { flex-shrink: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 16px; border-radius: var(--r-2); white-space: nowrap; }
.status-badge.approved { background: #fbf3dd; color: #8a6414; border: 1px solid #ecdcae; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 40px; margin-top: 28px; }
.case-grid .cell .k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); font-weight: 600; margin-bottom: 6px; }
.case-grid .cell .v { font-size: 16px; color: var(--navy-800); font-weight: 600; }
.case-grid .cell .v.alert { color: var(--red-600); }
.case-grid .cell .v.plain { font-weight: 500; color: var(--ink-700); }

/* Section blocks inside main */
.blk-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 30px; border-bottom: 1px solid var(--ink-100); }
.blk-head h2 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); font-weight: 700; }
.blk-head .link { font-size: 13px; color: var(--navy-600); font-weight: 600; cursor: pointer; }

/* Documents */
.doc-row { display: flex; align-items: center; gap: 18px; padding: 18px 30px; border-bottom: 1px solid var(--ink-100); }
.doc-row:last-child { border-bottom: none; }
.doc-ico { width: 42px; height: 42px; border-radius: var(--r-2); background: var(--navy-50); color: var(--navy-700); display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; flex-shrink: 0; }
.doc-ico.pdf { background: #fbeceb; color: #b3261e; }
.doc-info { flex: 1; min-width: 0; }
.doc-info .t { font-size: 15.5px; font-weight: 600; color: var(--navy-800); margin-bottom: 3px; }
.doc-info .m { font-size: 13px; color: var(--ink-400); }
.doc-flag { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #b3261e; background: #fbeceb; padding: 2px 7px; border-radius: var(--r-1); margin-left: 8px; vertical-align: middle; }
.doc-btn { flex-shrink: 0; font-size: 13.5px; font-weight: 600; color: var(--navy-700); background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-2); padding: 7px 20px; cursor: pointer; font-family: var(--font-sans); }
.doc-btn:hover { border-color: var(--navy-600); background: var(--navy-50); }

/* Right rail widgets */
.siu-rail { display: flex; flex-direction: column; gap: 24px; }
.rail-card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-3); box-shadow: var(--shadow-sm); }
.rail-card .rc-head { padding: 18px 22px 14px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); font-weight: 700; border-bottom: 1px solid var(--ink-100); }
.rail-card .rc-body { padding: 20px 22px; }

/* Progress stepper */
.stepper { display: flex; flex-direction: column; gap: 0; }
.step-item { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.step-item:last-child { padding-bottom: 0; }
.step-item .marker { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink-200); background: #fff; flex-shrink: 0; margin-top: 1px; z-index: 1; }
.step-item.done .marker { background: var(--navy-600); border-color: var(--navy-600); }
.step-item.current .marker { border-color: var(--navy-600); box-shadow: 0 0 0 3px var(--navy-100); }
.step-item:not(:last-child)::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--ink-100); }
.step-item.done:not(:last-child)::before { background: var(--navy-600); }
.step-item .st-txt .st-t { font-size: 14px; font-weight: 600; color: var(--navy-800); }
.step-item .st-txt .st-d { font-size: 12px; color: var(--ink-400); margin-top: 1px; }
.step-item.pending .st-txt .st-t { color: var(--ink-400); font-weight: 500; }

/* Wide processing-history variant — date moves to the right of the row */
.stepper-wide { padding: 8px 30px 26px; }
.stepper-wide .step-item { padding-bottom: 26px; }
.stepper-wide .st-row { flex: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; min-width: 0; }
.stepper-wide .st-txt { min-width: 0; }
.stepper-wide .st-date { flex-shrink: 0; font-size: 12.5px; color: var(--ink-400); font-family: var(--font-mono); white-space: nowrap; padding-top: 1px; }
.stepper-wide .st-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.stepper-wide .st-chip { font-size: 11.5px; font-weight: 600; color: var(--navy-700); background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: 999px; padding: 4px 11px; }

/* Activity feed */
.act-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ink-100); }
.act-item:last-child { border-bottom: none; padding-bottom: 0; }
.act-item:first-child { padding-top: 0; }
.act-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-50); color: var(--navy-700); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.act-body { flex: 1; min-width: 0; }
.act-body .a-t { font-size: 13.5px; color: var(--ink-700); line-height: 1.4; }
.act-body .a-t b { color: var(--navy-800); font-weight: 600; }
.act-body .a-d { font-size: 11.5px; color: var(--ink-400); margin-top: 3px; }

/* Alerts */
.alert-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ink-100); }
.alert-item:last-child { border-bottom: none; padding-bottom: 0; }
.alert-item:first-child { padding-top: 0; }
.alert-ico { flex-shrink: 0; margin-top: 1px; }
.alert-ico.warn { color: #c99a2e; }
.alert-ico.ok { color: var(--green-600); }
.alert-body .al-t { font-size: 13.5px; font-weight: 600; color: var(--navy-800); }
.alert-body .al-d { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; line-height: 1.4; }
.alert-item.hot { background: #fdf3f2; margin: 0 -22px; padding: 14px 22px; border-bottom: none; }
.alert-item.hot .al-t { color: #b3261e; }

/* Locked panel */
.locked-panel { padding: 80px 40px; text-align: center; }
.locked-panel .lp-ico { width: 64px; height: 64px; border-radius: 50%; background: #fbf3dd; color: #c99a2e; display: grid; place-items: center; margin: 0 auto 22px; }
.locked-panel h2 { font-size: 22px; color: var(--navy-800); margin-bottom: 10px; text-transform: none; letter-spacing: -0.01em; }
.locked-panel p { font-size: 14.5px; color: var(--ink-500); max-width: 440px; margin: 0 auto 8px; }
.locked-panel .req { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-400); margin-top: 18px; }

/* Communications access-code unlock form */
.unlock-form { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.unlock-input {
  width: 150px; text-align: center;
  font-family: var(--font-mono); font-size: 18px; font-weight: 600; letter-spacing: 0.3em;
  color: var(--navy-800); text-transform: uppercase;
  padding: 10px 12px; border: 1px solid var(--ink-200); border-radius: var(--r-2);
  background: var(--white);
}
.unlock-input::placeholder { letter-spacing: 0.25em; color: var(--ink-300); }
.unlock-input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(21, 74, 133, 0.12); }
.unlock-input.error { border-color: var(--red-600); box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.1); }
.unlock-error { font-size: 12.5px; color: var(--red-600); margin-top: 12px; }

/* Correspondence */
.corr-item { padding: 20px 30px; border-bottom: 1px solid var(--ink-100); }
.corr-item:last-child { border-bottom: none; }
.corr-item .c-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.corr-item .c-from { font-size: 14.5px; font-weight: 600; color: var(--navy-800); }
.corr-item .c-from span { font-weight: 400; color: var(--ink-400); font-size: 13px; }
.corr-item .c-date { font-size: 12.5px; color: var(--ink-400); white-space: nowrap; font-family: var(--font-mono); }
.corr-item .c-subj { font-size: 14px; color: var(--ink-700); font-weight: 500; margin-bottom: 4px; }
.corr-item .c-prev { font-size: 13.5px; color: var(--ink-500); line-height: 1.5; }

@media (max-width: 1080px) {
  .siu-layout { grid-template-columns: 1fr; }
  .siu-side { position: static; display: flex; flex-wrap: wrap; }
  .siu-side .side-head { width: 100%; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .siu-search { display: none; }
  .siu-user .u-name, .siu-clearance { display: none; }
  .case-grid { grid-template-columns: 1fr; }
  .case-head .top { flex-direction: column; }
}

/* ============================================================
   INVESTIGATION MODE — floating trigger + split-screen tool panel
   ============================================================ */

/* Floating trigger — warm/amber on purpose, so it reads as "the special
   tool" rather than another piece of admin chrome. z-index sits above
   .modal-backdrop (100) so it stays clickable even with a document open —
   investigation and document review are meant to happen side by side. */
.inv-trigger {
  position: fixed; right: 28px; bottom: 28px; z-index: 105;
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: linear-gradient(150deg, #ffc35c, #e6a935);
  color: #2a1d05;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 24px rgba(230, 169, 53, 0.38), 0 2px 6px rgba(8, 23, 45, 0.25);
  transition: transform 160ms cubic-bezier(.3,.7,.4,1), box-shadow 160ms ease;
}
.inv-trigger:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 16px 32px rgba(230, 169, 53, 0.48), 0 4px 10px rgba(8, 23, 45, 0.3); }
.inv-trigger:active { transform: translateY(-1px) scale(0.97); }

/* Split-screen panel — a fixed-width drawer over the right edge of the
   viewport. The rest of the portal (whatever tab/document was open) is
   untouched underneath/beside it — that's the "left side" of the split.
   z-index sits above .modal-backdrop (100) so an open document stays
   visible and interactive beside the panel, not buried under it. */
.inv-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 110;
  width: var(--inv-w); max-width: 92vw;
  background: linear-gradient(180deg, #131a2e 0%, #0a0e1a 100%);
  color: #cfd6e6;
  display: flex; flex-direction: column;
  box-shadow: -16px 0 46px rgba(0, 0, 0, 0.45);
  animation: inv-slide-in 220ms cubic-bezier(.2,.7,.3,1);
}
@keyframes inv-slide-in {
  from { transform: translateX(28px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
/* A document open on the "left side" re-centers into the remaining space
   (and shrinks — see .siu--investigating .doc-viewer above) instead of
   sitting half-hidden under the panel. */
.siu--investigating .modal-backdrop { right: var(--inv-w); }

.inv-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); flex-shrink: 0;
}
.inv-head-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #f2c85b;
}
.inv-close {
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.06); color: #cfd6e6;
  cursor: pointer; display: grid; place-items: center; font-size: 14px; flex-shrink: 0;
}
.inv-close:hover { background: rgba(255,255,255,0.14); color: #fff; }

.inv-tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
.inv-tab {
  background: none; border: none; color: #8b95ab; cursor: pointer;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  padding: 12px 14px; border-bottom: 2px solid transparent;
}
.inv-tab:hover { color: #cfd6e6; }
.inv-tab.active { color: #f2c85b; border-bottom-color: #e6a935; }

.inv-body { flex: 1; overflow-y: auto; padding: 20px; }

.inv-tool { display: flex; flex-direction: column; gap: 18px; }
.inv-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-2); padding: 4px 6px 4px 12px;
}
.inv-search-ico { color: #8b95ab; display: grid; place-items: center; flex-shrink: 0; }
.inv-search input { flex: 1; min-width: 0; background: none; border: none; color: #e8ecf4; font-size: 14px; padding: 9px 4px; font-family: var(--font-sans); }
.inv-search input::placeholder { color: #6b7488; }
.inv-search input:focus { outline: none; }
.inv-search-btn {
  background: #e6a935; color: #1c1404; border: none; border-radius: 6px;
  padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: var(--font-sans); flex-shrink: 0;
}
.inv-search-btn:hover { background: #f2c85b; }

.inv-hint { font-size: 13px; color: #8b95ab; line-height: 1.6; }

.inv-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 12px; }
.inv-empty-ico { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.05); color: #6b7488; display: grid; place-items: center; }
.inv-empty-t { font-size: 14.5px; font-weight: 600; color: #dfe4ee; }
.inv-empty-d { font-size: 13px; line-height: 1.55; color: #8b95ab; max-width: 320px; }

.inv-result { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-3); overflow: hidden; }
.inv-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.inv-result-name { font-size: 16px; font-weight: 700; color: #f2f4f8; letter-spacing: -0.01em; }
.inv-status { flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.inv-status.active { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.inv-status.dissolved { background: rgba(248, 113, 113, 0.15); color: #f87171; }

.inv-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: 20px; }
.inv-result-grid .cell.full { grid-column: 1 / -1; }
.inv-result-grid .k { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #6b7488; font-weight: 700; margin-bottom: 5px; }
.inv-result-grid .v { font-size: 14px; color: #dfe4ee; font-weight: 500; line-height: 1.4; }
.inv-result-grid .v.alert { color: #f87171; font-weight: 700; }

@media (max-width: 1080px) {
  /* No room for genuine side-by-side below this width — Investigation Mode
     takes the full screen instead, same as any other overlay would. */
  .inv-panel { width: 100vw; }
  .siu--investigating .modal-backdrop { right: 0; }
  .siu--investigating .doc-viewer { width: min(920px, calc(100vw - 48px)); }
  .inv-trigger { right: 20px; bottom: 20px; }
}
