/* Copied verbatim from the approved design canvas artboard (Main.dc.html,
   Dudhal design canvas — ecole.dudhal.net). Keep this file in sync with the
   canvas rather than diverging: if the canvas changes, re-copy its <style>
   block here rather than hand-editing both independently. */

* { box-sizing: border-box; }
body { margin: 0; }
:root {
  --bg: #f6f8f4; --bg-alt: #eef3ee; --ink: #16231f; --ink-soft: #55655f;
  --teal: #0f5c52; --teal-deep: #0a3f38; --gold: #dd9f34; --red: #c23b3b; --flag-green: #1a8f4c;
  --card-bg: #ffffff; --card-border: #dde5e0;
}
.page { font-family: "Work Sans", -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); padding-block: 0 90px; }
.sheet { max-width: 760px; margin: 0 auto; padding-inline: 28px; }
a { color: var(--teal-deep); }
a:hover { color: var(--teal); }

.letterhead {
  font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-soft);
  line-height: 1.7; margin: 34px 0 46px; border-left: 3px solid var(--gold); padding-left: 14px;
}
.letterhead strong { display: block; color: var(--ink); font-size: 0.78rem; letter-spacing: 0.1em; font-weight: 700; }

.wordmark { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
h1 {
  font-family: "Zilla Slab", Georgia, serif; font-weight: 700; font-size: 3.6rem; line-height: 0.98;
  color: var(--teal-deep); margin: 0; letter-spacing: -0.01em;
}
.name-note { font-size: 0.92rem; color: var(--ink-soft); font-style: italic; }
.subtitle { font-size: 0.92rem; color: var(--ink-soft); margin: 10px 0 30px; }
.subtitle strong { color: var(--ink); font-weight: 600; }

.thesis {
  font-family: "Zilla Slab", Georgia, serif; font-size: 1.55rem; line-height: 1.4; color: var(--ink);
  margin: 0 0 40px; max-width: 640px; text-wrap: balance;
}
.thesis strong { color: var(--teal-deep); font-weight: 700; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2px; background: var(--card-border); border-radius: 14px; overflow: hidden; margin-bottom: 54px; }
.stat { background: var(--card-bg); padding: 24px 16px; text-align: center; }
.stat .n { font-family: "Zilla Slab", Georgia, serif; font-weight: 700; font-size: 2.1rem; color: var(--teal-deep); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 0.72rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.35; }

.section { margin-bottom: 54px; }
.eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin: 0 0 10px; }
h2 { font-family: "Zilla Slab", Georgia, serif; font-weight: 700; font-size: 1.65rem; color: var(--teal-deep); margin: 0 0 18px; text-wrap: balance; }
.lede { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.65; max-width: 620px; margin: 0 0 20px; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.feature { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; padding: 20px 22px; }
.feature .ico { width: 34px; height: 34px; color: var(--teal); margin-bottom: 12px; }
/* Some Icons.scala helpers (status, check, documentsPedagogiques) don't carry the
   `.ico` class the rule above targets, so their `<svg>` had no width/height at all —
   this sizes by descendant selector instead, regardless of which helper built it. */
.feature .feature-icon { display: block; width: 34px; height: 34px; color: var(--teal); margin-bottom: 12px; }
.feature .feature-icon svg { display: block; width: 100%; height: 100%; }
.feature h3 { font-size: 0.98rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.feature p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: baseline; }
.steps .mark {
  font-family: "Zilla Slab", serif; font-weight: 700; font-size: 0.86rem; color: #fff;
  background: var(--teal); border-radius: 50%; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { font-size: 0.96rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.steps p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); }
.steps .ext { color: var(--teal-deep); font-weight: 600; }

.compare { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.compare th { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; padding: 0 14px 10px 0; color: var(--ink-soft); font-weight: 700; border-bottom: 2px solid var(--card-border); }
.compare td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--card-border); vertical-align: top; line-height: 1.5; }
.compare tr:last-child td { border-bottom: none; }
.compare .before { color: var(--ink-soft); }
.compare .after { color: var(--ink); font-weight: 500; }

.status { background: var(--bg-alt); border: 1px solid var(--card-border); border-radius: 14px; padding: 26px 28px; }
.status .tag {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--teal-deep); background: #fff; border: 1px solid var(--teal); border-radius: 999px;
  padding: 5px 12px 5px 10px; margin-bottom: 14px;
}
.status .tag svg { width: 13px; height: 13px; }
/* InspectionValue's own status tag — same rule under the name that artboard
   authored it with (avoid a cross-artboard rename that isn't in the canvas). */
.status .tag2 {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--teal-deep); background: #fff; border: 1px solid var(--teal); border-radius: 999px;
  padding: 5px 12px 5px 10px; margin-bottom: 14px;
}
.status .tag2 svg { width: 13px; height: 13px; }
.status p { margin: 0; font-size: 0.96rem; line-height: 1.6; color: var(--ink); max-width: none; }

/* InspectionValue — reporting-chain diagram */
.chain { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.chain .node {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 10px;
  padding: 12px 16px; text-align: center; flex: 1; min-width: 130px;
}
.chain .node .abbr { font-family: "Zilla Slab", serif; font-weight: 700; font-size: 1.1rem; color: var(--teal-deep); }
.chain .node .full { font-size: 0.68rem; color: var(--ink-soft); margin-top: 3px; line-height: 1.3; }
.chain .arrow { color: var(--ink-soft); flex-shrink: 0; width: 18px; height: 18px; }
.chain-note { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.55; margin: 12px 0 0; max-width: 620px; }

/* InspectionValue — ERRC (Eliminate/Reduce/Raise/Create) grid */
.errc { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.errc-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; padding: 20px 22px; }
.errc-card .tag {
  display: inline-block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.errc-card.elim .tag { background: #f6e6e6; color: var(--red); }
.errc-card.red .tag { background: #fbf1de; color: #96660f; }
.errc-card.raise .tag { background: #e6f3ec; color: #157a4a; }
.errc-card.create .tag { background: #e6eef6; color: #1e5a96; }
.errc-card h3 { font-size: 0.96rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.errc-card p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }

.commitment {
  background: var(--teal-deep); color: #eef6f2; border-radius: 16px; padding: 34px 32px; text-align: center;
}
.commitment .date { font-family: "Zilla Slab", Georgia, serif; font-weight: 700; font-size: 2.3rem; margin-bottom: 6px; }
.commitment .label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; margin-bottom: 14px; }
.commitment p { margin: 0; font-size: 0.94rem; line-height: 1.6; opacity: 0.92; max-width: 480px; margin-inline: auto; }

.divider { border: none; border-top: 1px solid var(--card-border); margin: 0 0 54px; }

footer {
  margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--card-border); font-size: 0.78rem; color: var(--ink-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

@media (max-width: 640px) {
  h1 { font-size: 2.5rem; }
  .thesis { font-size: 1.25rem; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid2 { grid-template-columns: 1fr; }
  .compare, .compare thead { display: block; }
  .compare tbody, .compare tr, .compare td { display: block; }
  .compare tr { padding: 12px 0; border-bottom: 1px solid var(--card-border); }
  .compare td { border: none; padding: 4px 0; }
  .compare th { display: none; }
  .commitment .date { font-size: 1.9rem; }
}

/* InspectionValue was authored at a slightly smaller scale than the
   national pitch page — real differences in the canvas source (smaller h1,
   tighter section spacing), not values to unify away. Scoped under
   .page.inspection so NationalPitch's own h1/.thesis/.section/h2/.divider
   sizing above is untouched. */
.page.inspection .letterhead { margin: 34px 0 40px; }
.page.inspection h1 { font-size: 2.5rem; line-height: 1.05; margin: 0 0 16px; }
.page.inspection .thesis { font-size: 1.35rem; line-height: 1.42; margin: 0 0 34px; }
.page.inspection .lede { font-size: 1rem; }
.page.inspection .section { margin-bottom: 50px; }
.page.inspection h2 { font-size: 1.5rem; margin: 0 0 16px; }
.page.inspection .divider { margin: 0 0 50px; }

@media (max-width: 640px) {
  .page.inspection h1 { font-size: 2rem; }
  .page.inspection .thesis { font-size: 1.12rem; }
  .errc { grid-template-columns: 1fr; }
  .chain { flex-direction: column; align-items: stretch; }
  .chain .arrow { transform: rotate(90deg); align-self: center; }
}
