/* ── Shared styles for scope-of-work pages (Verify / Validate / OIM) ── */
/* Nav is now the SiteNav component (src/components/SiteNav.astro), scoped there. */

/* SCOPE HERO */
.scope-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-navy-deep);
  color: var(--color-text-on-dark);
  padding: 5.5rem 2rem 4.5rem;
}

.scope-hero-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-orange);
}

.scope-hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.scope-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-orange-soft);
  margin-bottom: 1.5rem;
}

.scope-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--color-text-on-dark);
  margin-bottom: 1rem;
  max-width: 760px;
}

.scope-hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text-on-dark-muted);
  line-height: 1.35;
  margin-bottom: 1.5rem;
  max-width: 640px;
}

.scope-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-text-on-dark-a68);
  max-width: 760px;
}

/* BODY */
.scope-body {
  background: var(--color-bg-body);
  padding: 4.5rem 2rem 5.5rem;
}

.scope-body-frame {
  max-width: var(--content-width);
  margin: 0 auto;
}

.scope-inner {
  max-width: 760px;
}

.scope-block {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.block-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue-faint);
  margin-bottom: 1.25rem;
}

.scope-block p {
  font-size: 16.5px;
  line-height: 1.74;
  color: var(--color-blue-muted);
  margin-bottom: 1.25rem;
}

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

.scope-emphasis {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--color-navy-text);
}

.scope-block a {
  color: var(--color-navy-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.15s, border-color 0.15s;
}

.scope-block a:hover { color: var(--color-orange); border-color: var(--color-orange); }

.scope-aside {
  border-left: 2px solid var(--color-border);
  padding-left: 1.5rem;
  font-size: 16px !important;
  line-height: 1.66 !important;
  font-weight: 600;
  color: var(--color-navy-text) !important;
}

/* numbered steps */
.scope-steps {
  list-style: none;
  counter-reset: step;
}

.scope-steps li {
  position: relative;
  counter-increment: step;
  padding-left: 3rem;
  margin-bottom: 1.6rem;
  font-size: 16px;
  line-height: 1.72;
  color: var(--color-blue-muted);
}

.scope-steps li:last-child { margin-bottom: 0; }

.scope-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-orange);
}

.step-k {
  display: block;
  font-weight: 700;
  color: var(--color-navy-text);
  margin-bottom: 0.2rem;
}

/* SYNTHETIC EXAMPLE table (matches the Fieldbook article-body table format:
   navy header row, zebra body rows, mono figures). */
.synth-table {
  width: var(--grid-width);
  max-width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.synth-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--table-border);
  font-size: 14.5px;
  color: var(--color-blue-muted);
  align-items: center;
}

/* Verify's table carries a Rows column: five columns instead of four. */
.synth-table--5col .synth-row {
  grid-template-columns: 1.4fr 0.9fr 1fr 1fr 1.1fr;
}

.synth-row:last-child { border-bottom: none; }

/* Zebra body rows, from the shared table tokens (same look as the Fieldbook
   article-body table). */
.synth-table .synth-row:nth-of-type(odd)  { background: var(--table-row-odd); }
.synth-table .synth-row:nth-of-type(even) { background: var(--table-row-even); }

/* Navy header with an orange underline, framing the table the way the page's
   top and bottom orange rules frame the page. */
.synth-head,
.synth-table .synth-head:nth-of-type(odd) {
  background: var(--table-head-bg);
  border-bottom: var(--table-head-rule);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--table-head-fg);
}

.synth-flag { background: var(--table-row-flag) !important; }

.synth-flag .synth-mono,
.synth-flag span { color: var(--color-navy-text); }

.synth-mono {
  font-family: 'DM Mono', monospace;
  color: var(--color-navy-text);
}

.synth-pass {
  font-weight: 600;
  color: var(--color-navy-mid);
}

.synth-fail {
  font-weight: 600;
  color: var(--color-orange);
}

.synth-note {
  font-size: 15px !important;
  color: var(--color-blue-muted);
}

/* SYNTHETIC VALIDATION REPORT (Validate page). Mirrors the real OIM Validate
   report output: score headline for leadership, findings underneath. */
.report {
  border: 1px solid var(--table-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--color-card-bg);
}

.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--table-head-bg);
  border-bottom: var(--table-head-rule);
  padding: 1.4rem 1.5rem;
}

.report-title h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.report-sub {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--color-text-on-dark-a60);
}

.report-scores {
  display: flex;
  gap: 2rem;
}

.report-score {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 150px;
}

.report-score-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-on-dark-a55);
}

.report-score-value {
  font-family: 'DM Mono', monospace;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
  color: var(--color-text-on-dark);
}

.report-score-value.report-score-warn { color: var(--color-orange-soft); }

.report-score-note {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--color-text-on-dark-a55);
}

.report-section {
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--table-border);
}

.report-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue-faint);
  margin-bottom: 0.6rem;
}

.report-line {
  font-size: 14.5px !important;
  color: var(--color-navy-text) !important;
  font-weight: 600;
  margin-bottom: 0.9rem !important;
}

.report-matched {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 1.5rem;
}

.report-matched li {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--color-blue-muted);
  padding-left: 1.3rem;
  position: relative;
}

.report-matched li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-navy-mid);
}

.report-finding {
  border-left: 2px solid var(--color-orange);
  padding-left: 1rem;
  margin-bottom: 1.1rem;
}

.report-finding:last-child { margin-bottom: 0; }

.report-finding-head {
  font-family: 'DM Mono', monospace;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-navy-text);
  margin-bottom: 0.4rem;
}

.report-finding-head span {
  font-weight: 400;
  color: var(--color-blue-faint);
  margin-left: 0.4rem;
}

.report-finding ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.report-finding li {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-blue-muted);
}

.report-finding li.report-more {
  color: var(--color-blue-faint);
  font-style: italic;
}

.report-foot {
  padding: 1.1rem 1.5rem;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-blue-muted);
  background: var(--color-bg-page);
}

@media (max-width: 640px) {
  .report-scores { gap: 1.5rem; }
  .report-matched { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .synth-row,
  .synth-table--5col .synth-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.25rem 0.75rem;
  }
  .synth-head { display: none; }
}

/* PACK METRICS list (the "what comes with it" block on Pack pages). Same
   left-marker, block-key structure as the numbered steps, but a bullet instead
   of a counter, since these are a set, not a sequence. */
.pack-metrics {
  list-style: none;
  margin-bottom: 1.25rem;
}

.pack-metrics li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-blue-muted);
}

.pack-metrics li:last-child { margin-bottom: 0; }

.pack-metrics li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-orange);
}

.pack-metric-k {
  display: block;
  font-weight: 700;
  color: var(--color-navy-text);
  margin-bottom: 0.15rem;
}

.pack-metrics-note {
  font-size: 15px !important;
  color: var(--color-blue-muted);
}

/* PACK PRICE block. A quiet figure, not a hard sell: the number, then the terms
   in one paragraph. Navy panel to set it apart from the body prose the way the
   contact island does on the home page. */
.pack-price {
  background: var(--color-navy-deep);
  border-radius: 3px;
  padding: 1.85rem 2rem;
}

.pack-price-figure {
  font-family: 'DM Mono', monospace;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--color-orange-soft);
  margin-bottom: 0.9rem;
}

.pack-price-figure span {
  font-size: 0.9rem;
  color: var(--color-text-on-dark-a55);
  letter-spacing: 0;
}

.pack-price-note {
  font-size: 15px !important;
  line-height: 1.66 !important;
  color: var(--color-text-on-dark-a70) !important;
  margin-bottom: 0 !important;
  max-width: 620px;
}

/* THINKING-BEHIND card */
.scope-thinking { margin-top: 0.5rem; }

.thinking-card {
  display: block;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 1.9rem;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

.thinking-card:hover {
  box-shadow: var(--shadow-hover-light-sm);
}

.thinking-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.thinking-num {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-orange);
  letter-spacing: 0.06em;
}

.thinking-tag {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--color-blue-faint);
  letter-spacing: 0.06em;
}

.thinking-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy-text);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.thinking-card p {
  font-size: 14.5px;
  color: var(--color-blue-muted);
  line-height: 1.62;
  margin-bottom: 1.25rem;
}

.thinking-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-navy-mid);
}

.thinking-card:hover .thinking-link { color: var(--color-orange); }