/*
  Field Guide — Workforce Intelligence report styles.
  Design system lifted from the Duck & Dry franchise deck (house style):
  deep petrol teal + cream + gold, Montserrat caps titles, Mulish body,
  sharp rectangles, tracked eyebrows, teal stat cards, full-bleed dividers.
*/

:root {
  /* Pertemps brand: navy primary + bright-blue accent. Variable names kept
     (--teal/--cream/--gold) so usages elsewhere need no change. */
  --teal: #213667;        /* Pertemps navy */
  --teal-deep: #005381;   /* Pertemps deep blue */
  --cream: #eaeff5;        /* light blue-grey panel */
  --cream-soft: #f4f7fa;
  --gold: #52c0fe;         /* Pertemps bright accent blue */
  --ink: #20242b;
  --ink-soft: #545b66;
  --line: #dfe3ea;
  --white: #ffffff;

  /* RAG status palette */
  --rag-hard: #c0392b;
  --rag-med: #d98b32;
  --rag-low: #2f8f6f;

  --page: 1040px;
  --space: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  --radius: 0; /* house style is square */
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  background: #d8d4cc;
  color: var(--ink);
  font-family: "Exo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.sheet {
  max-width: var(--page);
  margin: 0 auto;
  background: var(--white);
}

/* ---- Typography primitives ---- */

.eyebrow {
  font-family: "Exo", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1.1rem;
}

.title {
  font-family: "Exo", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.04;
  color: var(--teal);
  margin: 0 0 1.6rem;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem);
}
.title .light { font-weight: 300; }
.title .bold { font-weight: 700; }

.subhead {
  font-family: "Exo", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 1rem;
}

p { margin: 0 0 1rem; color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 700; }
.lead-teal { color: var(--teal); font-weight: 800; }

/* ---- Section scaffolding ---- */

.section { padding: var(--space) clamp(1.5rem, 0.5rem + 4vw, 4.5rem); }
.section + .section { border-top: 1px solid var(--line); }

.divider {
  background: var(--teal);
  color: var(--white);
  padding: clamp(4rem, 3rem + 6vw, 8rem) clamp(1.5rem, 0.5rem + 4vw, 4.5rem);
  display: flex;
  justify-content: flex-end;
}
.divider .inner { max-width: 60%; }
.divider .eyebrow { color: rgba(255,255,255,0.72); }
.divider .title { color: var(--white); }
.divider p { color: rgba(255,255,255,0.82); margin: 0; }

/* ---- Cover ---- */

.cover {
  background: var(--teal);
  color: var(--white);
  padding: clamp(3rem, 2rem + 5vw, 6rem) clamp(1.5rem, 0.5rem + 4vw, 4.5rem);
}
.cover .kicker {
  font-family: "Exo", sans-serif;
  font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  font-size: 0.72rem; color: var(--gold); margin: 0 0 1.4rem;
}
.cover h1 {
  font-family: "Exo", sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  font-size: clamp(2.2rem, 1.2rem + 4vw, 3.8rem); line-height: 1.05;
  margin: 0 0 1rem;
}
.cover .sub { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin: 0 0 2rem; max-width: 38ch; }
.cover .meta { font-family: "Exo"; font-size: 0.92rem; color: rgba(255,255,255,0.7); }
.cover .tag {
  display: inline-block; margin-top: 1.6rem; padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.4); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; font-family: "Exo"; font-weight: 600;
}

/* ---- Stat cards ---- */

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin: 2rem 0; }
.stat {
  background: var(--teal); color: var(--white);
  padding: 1.6rem 1.4rem; min-height: 132px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.stat .num { font-family: "Exo"; font-weight: 700; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1; }
.stat .label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.82); font-family: "Exo"; font-weight: 600; }

/* ---- Callout / key insight ---- */

.callout {
  background: var(--cream); border-left: 4px solid var(--gold);
  padding: 1.4rem 1.6rem; margin: 1.8rem 0;
}
.callout p { color: var(--ink); margin: 0; }
.callout .label { color: var(--teal); font-weight: 800; }

/* ---- Numbered feature grid ---- */

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.feature {
  background: var(--teal); color: var(--white); padding: 1.6rem 1.6rem 1.8rem;
}
.feature .n { font-family: "Exo"; font-weight: 700; font-size: 1.7rem; opacity: 0.85; }
.feature h4 { font-family: "Exo"; font-weight: 800; font-size: 1.1rem; margin: 0.3rem 0 0.8rem; color: var(--white); }
.feature p { color: rgba(255,255,255,0.82); margin: 0; font-size: 0.95rem; }

/* ---- Two column text ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
@media (max-width: 820px) { .two-col, .feature-grid, .stat-band { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .two-col, .feature-grid, .stat-band { grid-template-columns: 1fr; } .divider .inner { max-width: 100%; } }

/* ---- Charts ---- */
.chart-note { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 1.4rem; }
.chart-wrap { position: relative; width: 100%; margin: 0 auto 1rem; }
.chart-wrap.tall { height: 460px; }
.chart-wrap.mid { height: 380px; }

/* ---- Tables ---- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 1.5rem 0; }
.data-table thead th {
  background: var(--teal); color: var(--white); text-align: left;
  font-family: "Exo"; font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.85rem 1rem;
}
.data-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.data-table tbody tr.rag-hard { background: #f7e7e2; }
.data-table tbody tr.rag-med  { background: #f7efda; }
.data-table tbody tr.rag-low  { background: #e6f0ec; }
.data-table .pill { font-weight: 700; }
.rag-hard .pill { color: var(--rag-hard); }
.rag-med .pill  { color: #9a7826; }
.rag-low .pill  { color: var(--rag-low); }

/* ---- Pathway cards ---- */
.path { border-left: 4px solid var(--teal); background: var(--cream-soft); padding: 1.2rem 1.4rem; margin: 1rem 0; }
.path .tag { display: inline-block; background: var(--gold); color: var(--white); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: "Exo"; font-weight: 700; padding: 0.25rem 0.6rem; margin-left: 0.6rem; }
.path h4 { margin: 0 0 0.5rem; font-family: "Exo"; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal); font-size: 0.95rem; }
.path p { margin: 0; font-size: 0.92rem; }

/* ---- Value scenario ---- */
.scenario { display: grid; grid-template-columns: 1.1fr 1.6fr 1.1fr; gap: 0; margin: 1.8rem 0; }
.scenario .panel { padding: 2rem 1.6rem; }
.scenario .panel.teal { background: var(--teal); color: var(--white); display: flex; flex-direction: column; justify-content: center; }
.scenario .panel.gold { background: var(--rag-hard); color: var(--white); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.scenario .big { font-family: "Exo"; font-weight: 700; font-size: 2.2rem; line-height: 1; margin: 0.2rem 0; }
.scenario .lvr { background: var(--white); border: 1px solid var(--line); padding: 1.1rem 1.3rem; }
.scenario .lvr + .lvr { border-top: none; }
.scenario .lvr .save { font-family: "Exo"; font-weight: 700; color: var(--teal); font-size: 1.3rem; }
@media (max-width: 720px) { .scenario { grid-template-columns: 1fr; } }

/* ---- Footer ---- */
.foot {
  text-align: center; padding: 2rem; color: var(--ink-soft);
  font-family: "Exo"; font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.2em; text-transform: uppercase; border-top: 1px solid var(--line);
}
.foot a { color: var(--teal); text-decoration: none; }

.demo-note { background: var(--cream); padding: 1rem 1.3rem; font-size: 0.88rem; color: var(--ink); border: 1px solid #e8dcc4; }

/* ---- Pertemps brand additions ---- */
:root { --radius: 8px; }
.stat, .feature, .callout, .path, .demo-note, .cover .tag { border-radius: var(--radius); }
.cover-logo { height: 38px; width: auto; display: block; margin-bottom: 1.8rem; }
.divider-logo { height: 32px; width: auto; display: block; margin-bottom: 1.4rem; }
.quote {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700; color: var(--gold);
  font-size: 5rem; line-height: 0.4; display: block; margin: 0 0 0.6rem;
}

/* ---- Print: clean A4-ish export via Cmd-P ---- */
@media print {
  body { background: #fff; }
  .sheet { max-width: none; }
  .section, .divider, .cover { break-inside: avoid; }
  .chart-wrap { break-inside: avoid; }
}
