/* AI Governance Essentials - Digital Policy Alliance
   Designed for senior policy makers: clear, authoritative, accessible */

:root {
  /* Professional palette with colour */
  --black: #1a1a1a;
  --white: #ffffff;
  --grey: #555555;
  --grey-light: #f7f7f7;
  --grey-border: #ddd;

  /* Primary accent - strong blue */
  --accent: #1a5276;
  --accent-light: #e8f2fa;
  --accent-dark: #0d2e4a;

  /* Category colors - rich and distinct */
  --responsible: #b44d12;
  --responsible-light: #fef3e6;
  --responsible-mid: #f5dcc3;
  --responsive: #2563a8;
  --responsive-light: #e6f0fb;
  --responsive-mid: #c5daf0;
  --robust: #157a52;
  --robust-light: #e4f5ec;
  --robust-mid: #b8e0cc;

  /* Surface tones for alternating backgrounds */
  --surface-warm: #faf8f6;
  --surface-cool: #f5f7fa;

  /* Alert colors */
  --warning: #b35900;
  --warning-light: #fff4e6;

  /* Typography */
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6rem;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  font-weight: 400;
}

/* Focus states */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
}

h1 {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--grey-border);
  color: var(--accent-dark);
}

h2:first-child,
article h2:first-of-type {
  margin-top: 0;
}

h3 {
  font-size: 1.4rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--accent);
}

h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  max-width: 70ch;
}

.lead {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--grey);
  margin-bottom: var(--space-lg);
}

a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent-dark);
  text-decoration-thickness: 3px;
}

strong {
  font-weight: 700;
  color: var(--black);
}

/* Lists */
ul, ol {
  margin-bottom: var(--space-md);
  padding-left: 1.75rem;
}

li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

li strong {
  color: var(--accent-dark);
}

/* Layout */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header - professional, functional */
header {
  border-bottom: 1px solid var(--grey-border);
  padding: var(--space-md) 0;
  background: rgba(255,255,255,0.97);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.2s;
}

header.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

header .container,
header .container-wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
}

.container-wide {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo a {
  color: var(--accent-dark);
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  padding: 0;
  margin: 0;
}

nav a {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey);
  text-decoration: none;
  padding: 0.5rem 0;
}

nav a:hover {
  color: var(--accent);
}

nav a.active {
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
}

/* Hero - bold and direct */
.hero {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--white);
}

.hero h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  color: var(--white);
}

.hero .subtitle {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

.hero .cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--white);
  padding: 1rem 2rem;
  text-decoration: none;
  border: 2px solid var(--white);
  border-radius: 6px;
  transition: all 0.2s;
}

.hero .cta:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Page header */
.page-header {
  padding: var(--space-xl) 0;
  background: var(--accent);
  color: var(--white);
}

.page-header.responsible { background: var(--responsible); }
.page-header.responsive { background: var(--responsive); }
.page-header.robust { background: var(--robust); }

.page-header h1 {
  margin-bottom: 0.25rem;
  color: var(--white);
}

.page-header .meta {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-sm);
}

.breadcrumb a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--white);
}

/* Main content */
main {
  padding: var(--space-xl) 0;
}

article {
  max-width: 780px;
}

/* Highlight boxes - bold and clear */
.highlight-box {
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--grey-light);
  border-left: 3px solid var(--grey);
  border-radius: 8px;
}

.highlight-box h4 {
  margin-bottom: var(--space-sm);
  font-size: 1.15rem;
  color: var(--black);
}

.highlight-box p:last-child,
.highlight-box ol:last-child,
.highlight-box ul:last-child {
  margin-bottom: 0;
}

.highlight-box.info {
  border-left-color: var(--accent);
  background: var(--accent-light);
}

.highlight-box.info h4 {
  color: var(--accent-dark);
}

.highlight-box.warning {
  border-left-color: var(--warning);
  background: var(--warning-light);
}

.highlight-box.warning h4 {
  color: var(--warning);
}

.highlight-box.reflection {
  border-left-color: var(--robust);
  background: var(--robust-light);
}

.highlight-box.reflection h4 {
  color: var(--robust);
}

/* Questions - key feature for this audience */
.questions-list {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--surface-cool);
  border: 1px solid var(--grey-border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
}

.questions-list h4 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.questions-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.questions-list li {
  padding: var(--space-sm) 0 var(--space-sm) 1.5rem;
  border-bottom: 1px solid rgba(26, 82, 118, 0.15);
  font-style: italic;
  position: relative;
}

.questions-list li::before {
  content: "?";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent);
  font-style: normal;
}

.questions-list li:last-child {
  border-bottom: none;
}

/* Tables - clear, scannable */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--space-lg) 0;
  font-size: 1.1rem;
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--grey-border);
  vertical-align: top;
}

th {
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--accent);
  color: var(--white);
}

tbody tr:nth-child(even) {
  background: var(--surface-warm);
}

tbody tr:hover {
  background: var(--accent-light);
  transition: background 0.15s;
}

/* Cards - for navigation */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.card {
  position: relative;
  padding: var(--space-lg);
  border: 1px solid var(--grey-border);
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s;
}

/* Only linked cards get the interactive hover */
.card:has(h3 a):hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  cursor: pointer;
}

/* Make entire card clickable */
.card h3 a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.card h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.card h3 a {
  color: var(--accent-dark);
  text-decoration: none;
}

.card:has(h3 a):hover h3 a {
  color: var(--accent);
  text-decoration: underline;
}

.card p {
  font-size: 1.1rem;
  color: var(--grey);
  margin-bottom: var(--space-sm);
}

.card .meta {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

/* Dimension labels */
.dimension-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  background: var(--grey-light);
  color: var(--grey);
  margin-bottom: var(--space-sm);
  border-radius: 3px;
}

.dimension-label.responsible {
  background: var(--responsible);
  color: var(--white);
}

.dimension-label.responsive {
  background: var(--responsive);
  color: var(--white);
}

.dimension-label.robust {
  background: var(--robust);
  color: var(--white);
}

/* Card variants - bold top border */
.card.responsible { border-top: 5px solid var(--responsible); }
.card.responsive { border-top: 5px solid var(--responsive); }
.card.robust { border-top: 5px solid var(--robust); }

.card.responsible:has(h3 a):hover { border-color: var(--responsible); background: var(--responsible-light); }
.card.responsive:has(h3 a):hover { border-color: var(--responsive); background: var(--responsive-light); }
.card.robust:has(h3 a):hover { border-color: var(--robust); background: var(--robust-light); }

/* 3R card heading link colours */
.card.responsible h3 a { color: var(--responsible); }
.card.responsive h3 a { color: var(--responsive); }
.card.robust h3 a { color: var(--robust); }

/* Framework overview - compact and clear */
.framework-overview {
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  background: var(--grey-light);
  border: 1px solid var(--grey-border);
  border-radius: 8px;
}

.framework-overview h2 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  border-bottom: none;
  padding-bottom: 0;
  color: var(--accent-dark);
}

.framework-overview > p {
  color: var(--grey);
  margin-bottom: var(--space-md);
}

.framework-diagram {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.framework-column {
  padding: var(--space-md);
  background: var(--white);
  border-radius: 8px;
  border-top: 4px solid var(--grey);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.framework-column.responsible { border-top-color: var(--responsible); background: var(--responsible-light); }
.framework-column.responsive { border-top-color: var(--responsive); background: var(--responsive-light); }
.framework-column.robust { border-top-color: var(--robust); background: var(--robust-light); }

.framework-column h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--black);
}

.framework-column.responsible h4 { color: var(--responsible); }
.framework-column.responsive h4 { color: var(--responsive); }
.framework-column.robust h4 { color: var(--robust); }

.framework-column > p {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--grey);
  margin-bottom: var(--space-sm);
}

.framework-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.framework-column li {
  padding: 0.35rem 0;
  border-top: 1px solid var(--grey-border);
  font-weight: 500;
  color: var(--black);
}

/* Navigation between pages */
.progress-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--grey-border);
  flex-wrap: wrap;
}

.progress-nav a {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.progress-nav a:hover {
  color: var(--accent-dark);
  background: var(--accent-light);
  text-decoration: none;
}

/* CTA button */
.cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  padding: 1rem 2rem;
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: 6px;
  transition: all 0.2s;
}

.cta:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Footer - professional, dark */
footer {
  border-top: 1px solid var(--grey-border);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xl);
  background: var(--accent-dark);
  color: rgba(255,255,255,0.8);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-sans);
  font-size: 1rem;
  max-width: 1120px;
}

footer a {
  color: var(--white);
  font-weight: 600;
}

footer strong {
  color: var(--white);
  font-size: 1.1rem;
}

/* Assessment styles */
.assessment-intro {
  padding: var(--space-lg);
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 8px;
  margin-bottom: var(--space-lg);
}

.assessment-intro h2 {
  margin-top: 0;
  border-bottom: none;
  color: var(--accent-dark);
}

.legend {
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  font-size: 1rem;
  margin-top: var(--space-md);
}

.section-header {
  font-family: var(--font-sans);
  padding: var(--space-md);
  margin: var(--space-xl) 0 var(--space-md);
  background: var(--grey-light);
  border-left: 3px solid var(--grey);
  border-radius: 8px;
}

.section-header.responsible {
  border-left-color: var(--responsible);
  background: var(--responsible-light);
}
.section-header.responsive {
  border-left-color: var(--responsive);
  background: var(--responsive-light);
}
.section-header.robust {
  border-left-color: var(--robust);
  background: var(--robust-light);
}

.section-header h2 {
  font-size: 1.25rem;
  margin: 0;
  padding: 0;
  border: none;
}

.section-header.responsible h2 { color: var(--responsible); }
.section-header.responsive h2 { color: var(--responsive); }
.section-header.robust h2 { color: var(--robust); }

.dimension-section {
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  background: var(--white);
}

.dimension-section h3 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--black);
}

.dimension-number {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-light);
  border-radius: 50%;
  flex-shrink: 0;
}

.dimension-section.responsible .dimension-number {
  background: var(--responsible);
  color: var(--white);
}
.dimension-section.responsive .dimension-number {
  background: var(--responsive);
  color: var(--white);
}
.dimension-section.robust .dimension-number {
  background: var(--robust);
  color: var(--white);
}

.core-question {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--grey);
  margin-bottom: var(--space-md);
  padding-left: calc(36px + var(--space-sm));
}

.rating-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
  padding-left: calc(36px + var(--space-sm));
}

.rating-label {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  min-width: 110px;
}

.rating-scale {
  display: flex;
  gap: 0.5rem;
}

.rating-btn {
  width: 48px;
  height: 48px;
  border: 2px solid var(--grey-border);
  border-radius: 6px;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.rating-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.rating-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn-calculate {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem 3rem;
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-calculate:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Results section */
.results-section {
  display: none;
  margin-top: var(--space-lg);
  padding: var(--space-xl);
  background: var(--grey-light);
  border-radius: 8px;
}

.results-section.visible {
  display: block;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.score-card {
  padding: var(--space-lg);
  background: var(--white);
  text-align: center;
  border-top: 6px solid var(--grey);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.score-card.responsible { border-top-color: var(--responsible); }
.score-card.responsive { border-top-color: var(--responsive); }
.score-card.robust { border-top-color: var(--robust); }

.score-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.score-card.responsible h4 { color: var(--responsible); }
.score-card.responsive h4 { color: var(--responsive); }
.score-card.robust h4 { color: var(--robust); }

.score-value {
  font-family: var(--font-sans);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--black);
}

.score-label {
  font-size: 1rem;
  color: var(--grey);
  font-weight: 500;
}

.score-interpretation {
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey);
  margin-top: 0.5rem;
}

.priority-list {
  margin: var(--space-md) 0;
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  overflow: hidden;
}

.priority-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--white);
  border-bottom: 1px solid var(--grey-border);
}

.priority-item:last-child {
  border-bottom: none;
}

.priority-score {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: var(--white);
  min-width: 65px;
  text-align: center;
  border-radius: 6px;
}

.priority-item strong {
  font-size: 1.1rem;
}

/* Infographic summary */
.infographic-summary {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 8px;
}

.infographic-summary h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: var(--space-md);
  color: var(--accent-dark);
}

.infographic-summary img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  background: var(--white);
}

.infographic-summary figcaption {
  margin-top: var(--space-sm);
  font-size: 1rem;
  color: var(--grey);
  text-align: center;
  font-style: italic;
}

.infographic-placeholder {
  background: var(--white);
  border: 2px dashed var(--grey-border);
  border-radius: 8px;
  padding: var(--space-xl);
  text-align: center;
  color: var(--grey);
  font-size: 1.1rem;
}

/* Whitepaper download buttons */
.btn-download {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--white);
  padding: 0.6rem 1.25rem;
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-download:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-download.coming-soon {
  color: var(--grey);
  border-color: var(--grey-border);
  cursor: default;
  opacity: 0.7;
}

.btn-download.coming-soon:hover {
  background: var(--white);
  color: var(--grey);
  transform: none;
  box-shadow: none;
}

/* Whitepaper banner */
.whitepaper-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 8px;
}

.whitepaper-banner p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-dark);
  max-width: none;
}

/* Session layout on landing page */
.session-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.session-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.session-card.session-wide .card-links {
  justify-content: center;
}

.session-card .card-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
  position: relative;
  z-index: 1;
}

/* Section navigation for briefing pages */
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--grey-border);
}

.section-nav-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey);
  margin-right: var(--space-xs);
}

.section-nav a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: var(--space-2xs) var(--space-sm);
  border-radius: 4px;
  background: var(--surface-cool);
  color: var(--accent-dark);
  transition: background 0.15s, color 0.15s;
}

.section-nav a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.section-nav a.active {
  background: var(--accent);
  color: var(--white);
}

/* Framework index h2 classes for 3R colours */
h2.responsible { color: var(--responsible); border-bottom-color: var(--responsible); }
h2.responsive { color: var(--responsive); border-bottom-color: var(--responsive); }
h2.robust { color: var(--robust); border-bottom-color: var(--robust); }

/* Responsive */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
  }
  .container-wide {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 1.05rem;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .lead { font-size: 1.2rem; }

  .hero { padding: var(--space-xl) 0; }
  .hero h1 { font-size: 2.5rem; }
  .hero .subtitle { font-size: 1.2rem; }

  header { padding: var(--space-sm) 0; }

  /* Header nav wraps on tablets */
  header .container,
  header .container-wide {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  nav ul {
    gap: var(--space-sm) var(--space-md);
    flex-wrap: wrap;
  }

  nav a {
    font-size: 0.9rem;
  }

  .framework-diagram {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .score-grid {
    grid-template-columns: 1fr;
  }

  .rating-row {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
  }

  .core-question {
    padding-left: 0;
  }

  /* Tighter padding on boxes */
  .highlight-box {
    padding: var(--space-md);
  }

  .questions-list {
    padding: var(--space-md);
  }

  .card {
    padding: var(--space-md);
  }

  /* Tables scroll horizontally */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Progress nav stacks */
  .progress-nav {
    flex-direction: column;
    gap: var(--space-sm);
  }

  footer .container {
    flex-direction: column;
    gap: var(--space-md);
  }

  .whitepaper-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md);
  }

  .session-pillars {
    grid-template-columns: 1fr;
  }

  .section-nav {
    gap: var(--space-2xs);
  }

  .page-header { padding: var(--space-lg) 0; }

  /* Assessment: rating buttons shrink */
  .rating-btn {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .dimension-section {
    padding: var(--space-md);
  }

  .priority-item {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .results-section {
    padding: var(--space-lg);
  }

  .assessment-intro {
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  /* Tighter side padding */
  .container,
  .container-wide {
    padding: 0 var(--space-sm);
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }

  .lead { font-size: 1.1rem; }

  .hero h1 { font-size: 1.85rem; letter-spacing: -0.01em; }
  .hero .subtitle { font-size: 1.05rem; }
  .hero .cta {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    display: block;
    text-align: center;
  }

  /* Nav collapses to two rows */
  nav ul {
    gap: var(--space-xs) var(--space-sm);
    justify-content: center;
  }

  nav a {
    font-size: 0.8rem;
    padding: 0.35rem 0;
  }

  .logo {
    font-size: 1rem;
    width: 100%;
    text-align: center;
    margin-bottom: var(--space-2xs);
  }

  header .container,
  header .container-wide {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xs);
  }

  .section-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-nav a {
    font-size: 0.85rem;
  }

  /* Smaller rating buttons on tiny screens */
  .rating-btn {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .rating-scale {
    gap: 0.35rem;
  }

  .btn-calculate {
    width: 100%;
    padding: 0.85rem;
    font-size: 1.1rem;
  }

  .btn-download {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .cta {
    display: block;
    text-align: center;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }

  /* Full-width score value */
  .score-value {
    font-size: 2.75rem;
  }

  /* Page header tighter */
  .page-header {
    padding: var(--space-md) 0;
  }

  .page-header .meta {
    font-size: 0.95rem;
  }

  .breadcrumb {
    font-size: 0.85rem;
  }

  /* Framework overview tighter */
  .framework-overview {
    padding: var(--space-sm);
  }

  .framework-column {
    padding: var(--space-sm);
  }
}

/* Print */
@media print {
  .btn-download,
  .whitepaper-banner,
  .section-nav {
    display: none;
  }
  header, footer, .progress-nav, nav {
    display: none;
  }

  body {
    font-family: var(--font-sans);
    font-size: 11pt;
  }

  .container {
    max-width: 100%;
  }

  .card {
    box-shadow: none;
    transform: none;
  }

  .highlight-box {
    border: 1px solid #ccc;
    background: #f9f9f9 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  main {
    padding: 0;
  }

  a {
    color: var(--black);
  }
}
