:root {
  --primary: #1f4e79;
  --primary-dark: #17395a;
  --secondary: #7faecf;
  --accent: #c0504d;
  --good: #2e7d32;
  --warn: #e09a2d;
  --ink: #1c2431;
  --muted: #617080;
  --line: #e2e8f0;
  --bg: #f6f8fb;
  --card: #ffffff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
}
.wrap { max-width: 780px; margin: 0 auto; padding: 0 1.4rem; }

/* ---------- header ---------- */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 0.95rem 0;
  box-shadow: 0 1px 3px rgba(23, 57, 90, 0.25);
}
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { font-weight: 700; letter-spacing: 0.01em; font-size: 1.02rem; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.brand-mark { width: 20px; height: 20px; border-radius: 6px; background: #fff; display: inline-grid; place-items: center; }
.brand-mark::after { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--primary); }
.brand-lens { font-weight: 400; opacity: 0.75; }
.header-nav { display: flex; align-items: center; gap: 1.1rem; font-size: 0.86rem; }
.header-nav a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.header-nav a:hover { color: #fff; text-decoration: underline; }
.client-name { color: #fff; font-weight: 600; }

main { padding: 2.6rem 0 4.5rem; }

/* ---------- typography ---------- */
h1 { font-size: 2rem; line-height: 1.22; margin: 0.3rem 0 0.9rem; color: var(--primary-dark); letter-spacing: -0.01em; }
h2 { font-size: 1.38rem; line-height: 1.3; margin: 2.4rem 0 0.7rem; color: var(--primary-dark); }
h3 { font-size: 1.12rem; margin: 1.7rem 0 0.5rem; color: var(--ink); }
p { margin: 0.75rem 0; }
a { color: var(--primary); }
.doc-date { color: var(--muted); font-size: 0.84rem; margin: 0; text-transform: uppercase; letter-spacing: 0.06em; }
.standfirst { font-size: 1.12rem; color: var(--muted); border-left: 3px solid var(--secondary); padding: 0.15rem 0 0.15rem 1.05rem; margin: 1.3rem 0 2.2rem; }
.standfirst p { margin: 0.3rem 0; }

.deliverable, .page-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.4rem 2.6rem 2.8rem;
  box-shadow: 0 1px 2px rgba(28, 36, 49, 0.04);
}
.breadcrumb { font-size: 0.86rem; margin: 0 0 1.3rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- blocks ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.85rem; margin: 1.5rem 0; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.05rem; }
.stat-value { font-size: 1.55rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.stat-label { font-size: 0.84rem; color: var(--muted); margin-top: 0.2rem; }
.stat-note { font-size: 0.75rem; color: var(--muted); margin-top: 0.4rem; }

.table-scroll { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.55rem 0.85rem; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--bg); color: var(--primary-dark); font-weight: 600; white-space: nowrap; }

figure { margin: 1.7rem 0; }
figure img { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.45rem; }

.callout { border-radius: 10px; padding: 0.95rem 1.15rem; margin: 1.5rem 0; background: var(--bg); border-left: 4px solid var(--secondary); }
.callout-good { border-left-color: var(--good); }
.callout-warn { border-left-color: var(--warn); }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }

/* ---------- report / client lists ---------- */
.list-intro { color: var(--muted); margin-top: -0.4rem; }
.card-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.85rem; }
.card-list a.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}
.card-list a.card:hover {
  border-color: var(--secondary);
  box-shadow: 0 3px 10px rgba(31, 78, 121, 0.10);
  transform: translateY(-1px);
}
.card-title { color: var(--primary-dark); font-weight: 650; font-size: 1.06rem; }
.card-sub { color: var(--muted); font-size: 0.88rem; margin-top: 0.25rem; }
.card-sub p { margin: 0; display: inline; }
.empty-state {
  background: var(--card); border: 1px dashed var(--line); border-radius: 12px;
  padding: 2.2rem; text-align: center; color: var(--muted); margin-top: 1.6rem;
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 1.3rem 0 2.2rem; color: var(--muted); font-size: 0.8rem; background: var(--card); }

/* ---------- responsive & print ---------- */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .deliverable, .page-card { padding: 1.5rem 1.2rem 1.8rem; border-radius: 10px; }
  h1 { font-size: 1.6rem; }
}
@media print {
  body { background: #fff; font-size: 12pt; }
  .site-header, .site-footer, .breadcrumb, .header-nav { display: none; }
  .deliverable, .page-card { border: 0; box-shadow: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
