@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap");

:root {
  --bg: #edf4fb;
  --surface: #ffffff;
  --surface-soft: #f3f8ff;
  --surface-ink: #e9f2fd;
  --text: #172235;
  --text-muted: #46566d;
  --primary: #2b58de;
  --primary-strong: #1a3488;
  --accent: #ff7b42;
  --line: #cad8ea;
  --shadow: 0 16px 36px rgba(17, 49, 83, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --container: min(1120px, 92vw);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.62;
  text-wrap: pretty;
  background:
    radial-gradient(1400px 680px at 95% -8%, rgba(240, 140, 58, 0.18), transparent 58%),
    radial-gradient(1200px 560px at 0% 110%, rgba(43, 88, 222, 0.18), transparent 56%),
    var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 2.4rem 0 1rem;
}

.section-soft {
  background: linear-gradient(135deg, rgba(43, 88, 222, 0.08), rgba(255, 255, 255, 0.86));
}

.section-feature {
  padding-bottom: 5.5rem;
}

.kicker {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  line-height: 1.04;
  margin: 0;
  color: #0f2942;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  margin-top: 0.5rem;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

p {
  margin: 0;
}

.lead {
  margin-top: 1.2rem;
  color: #dfe9e5;
  max-width: 52ch;
  font-size: 1.1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #000;
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(237, 244, 251, 0.9);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 26px rgba(23, 61, 104, 0.16);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 22px rgba(15, 64, 90, 0.28);
}

.site-header .brand-logo {
  width: 74px;
  height: 74px;
  transform: scale(1.08);
  transform-origin: center;
}

.brand-text {
  display: grid;
}

.brand-text strong {
  font-size: 1.03rem;
  line-height: 1.1;
}

.brand-text small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  color: #2b4361;
  padding: 0.62rem 0.8rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary-strong);
  background: linear-gradient(135deg, rgba(43, 88, 222, 0.14), rgba(255, 123, 66, 0.17));
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  border-radius: 0.6rem;
  padding: 0.45rem;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: #1f2d34;
  margin: 5px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 6.2rem;
  padding-bottom: 5.4rem;
  color: #f4fbff;
  isolation: isolate;
}

.home-hero {
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.hero-content {
  max-width: 66ch;
}

.hero-content h1 {
  max-width: 12ch;
  background: linear-gradient(120deg, #ffffff 5%, #d9e4ff 52%, #ffd7bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 24px rgba(7, 25, 46, 0.28);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(11, 29, 73, 0.93), rgba(41, 77, 165, 0.88)),
    url("../images/hero-bg.png") center/cover no-repeat;
  z-index: -2;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
  pointer-events: none;
  z-index: -1;
}

.hero-glow-a {
  width: 340px;
  height: 340px;
  right: 6%;
  top: 16%;
  background: radial-gradient(circle, rgba(240, 140, 58, 0.35), rgba(240, 140, 58, 0));
}

.hero-glow-b {
  width: 280px;
  height: 280px;
  left: 5%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(142, 178, 255, 0.26), rgba(142, 178, 255, 0));
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 -40px 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(243, 241, 234, 0), var(--bg));
  z-index: -1;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
}

.hero-panel {
  background: rgba(244, 252, 255, 0.94);
  color: #17384d;
  padding: 1.45rem;
  border: 1px solid rgba(216, 221, 216, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.hero-panel-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(15, 50, 39, 0.22);
}

.hero-panel-brand p {
  color: #204761;
  font-weight: 700;
  font-size: 0.92rem;
}

.hero-subline {
  margin-top: 1.1rem;
  max-width: 58ch;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(217, 245, 255, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #e0eef7;
}

.home-intro-band {
  margin-top: -1.1rem;
  padding-top: 3.1rem;
}

.home-intro-card {
  border-top: 4px solid rgba(43, 88, 222, 0.44);
}

.lesson-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.lesson-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(43, 88, 222, 0.25);
  background: rgba(255, 255, 255, 0.8);
  color: #264a9a;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.lesson-band {
  padding-top: 2.1rem;
  padding-bottom: 1.1rem;
}

.lesson-spotlight {
  background: linear-gradient(150deg, #ffffff, #eef4ff);
}

.home-areas,
.home-pathways,
.home-resources {
  position: relative;
}

.home-areas::before,
.home-pathways::before,
.home-resources::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 88, 222, 0.32), transparent);
}

.area-card {
  border-top: 5px solid transparent;
}

.area-public {
  border-top-color: #189088;
}

.area-pupil {
  border-top-color: #2e6eb8;
}

.area-coach {
  border-top-color: #f08c3a;
}

.pathway-spotlight {
  position: relative;
  overflow: hidden;
}

.pathway-spotlight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(43, 88, 222, 0.11), rgba(43, 88, 222, 0));
  pointer-events: none;
}

.section-head h2 {
  position: relative;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 88px;
  height: 4px;
  border-radius: 99px;
  margin-top: 0.45rem;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.hero-panel h2 {
  font-size: 1.45rem;
}

.hero-panel ul {
  margin: 0.8rem 0;
  padding-left: 1rem;
}

.hero-panel li + li {
  margin-top: 0.45rem;
}

.panel-note {
  font-size: 0.92rem;
  color: #425258;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.45rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.78rem 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #f7fcf9;
  background: linear-gradient(135deg, var(--primary), #1a3488);
  box-shadow: 0 12px 24px rgba(24, 56, 145, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 26px rgba(24, 56, 145, 0.34);
}

.btn-secondary {
  color: #eef7f2;
  border: 1px solid rgba(233, 245, 238, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.btn-tertiary {
  color: var(--primary-strong);
  background: rgba(43, 88, 222, 0.1);
}

.section-head {
  max-width: 64ch;
  margin-bottom: 1.55rem;
}

.section-head h2 {
  margin-top: 0.35rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 10px 26px rgba(23, 59, 97, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #9cb8db;
  box-shadow: 0 18px 36px rgba(22, 62, 99, 0.16);
}

.card h3 {
  margin-bottom: 0.48rem;
}

.card p {
  color: #3f4f56;
}

.card ul {
  margin: 0.7rem 0 1rem;
  padding-left: 1rem;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(320px, 540px) minmax(280px, 1fr);
  gap: 1.2rem;
  align-items: start;
}
.login-card h2 {
  margin-top: 0.35rem;
}
.login-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.login-field-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.login-field-row > label {
  flex: 0 0 110px;
  margin: 0;
}

.login-field-row > input,
.login-field-row > .login-input-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.login-form label {
  font-weight: 700;
  color: #18324c;
}
.login-form input {
  width: 100%;
  min-height: 46px;
  padding: 0.62rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fcff;
  color: #123149;
  font: inherit;
}

.login-form textarea,
.admin-grid-form input,
.admin-grid-form select {
  width: 100%;
  min-height: 46px;
  padding: 0.62rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fcff;
  color: #123149;
  font: inherit;
}

.login-form textarea {
  min-height: 140px;
  resize: vertical;
}

.login-form input:focus {
  outline: 2px solid rgba(43, 88, 222, 0.28);
  outline-offset: 1px;
  border-color: #7e9edf;
  background: #ffffff;
}

.login-form textarea:focus,
.admin-grid-form input:focus,
.admin-grid-form select:focus {
  outline: 2px solid rgba(43, 88, 222, 0.28);
  outline-offset: 1px;
  border-color: #7e9edf;
  background: #ffffff;
}

.admin-grid-form {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.admin-grid-form > label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: #18324c;
}

.ai-suggestions-page .ai-suggestions-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.ai-suggestions-page .ai-suggestions-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.ai-suggestions-page .ai-suggestions-table {
  width: 100%;
  min-width: 1320px;
  border-collapse: collapse;
}

.ai-suggestions-page .ai-suggestions-table th,
.ai-suggestions-page .ai-suggestions-table td {
  vertical-align: top;
}

.ai-suggestions-page .ai-suggestions-table .col-select {
  width: 62px;
  min-width: 62px;
}

.ai-suggestions-page .ai-suggestions-table .col-suggestion {
  min-width: 190px;
}

.ai-suggestions-page .ai-suggestions-table .col-document {
  min-width: 180px;
}

.ai-suggestions-page .ai-suggestions-table .col-type {
  min-width: 130px;
}

.ai-suggestions-page .ai-suggestions-table .col-confidence {
  min-width: 96px;
}

.ai-suggestions-page .ai-suggestions-table .col-occurrences {
  min-width: 120px;
}

.ai-suggestions-page .ai-suggestions-table .col-context {
  min-width: 150px;
}

.ai-suggestions-page .ai-suggestions-table .col-existing {
  min-width: 160px;
}

.ai-suggestions-page .ai-suggestions-table .col-sample {
  min-width: 260px;
  max-width: 420px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.ai-suggestions-page .ai-suggestions-table .col-actions {
  min-width: 380px;
}

.ai-suggestions-page .ai-suggestions-actions-form {
  grid-template-columns: repeat(3, minmax(110px, 1fr));
}

.ai-suggestions-page .ai-suggestions-actions-form .btn {
  white-space: normal;
  text-align: center;
}

.ai-library-inventory-page .ai-library-inventory-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.ai-library-inventory-page .ai-library-inventory-table {
  width: 100%;
  min-width: 1780px;
}

.ai-library-inventory-page .ai-library-inventory-table th,
.ai-library-inventory-page .ai-library-inventory-table td {
  vertical-align: top;
}

.ai-library-inventory-page .ai-library-inventory-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.ai-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(360px, 1.2fr) minmax(300px, 0.8fr);
  align-items: start;
}

.ai-page .ai-question-card .ai-question-field {
  display: grid;
  gap: 0.5rem;
  align-items: start;
}

.ai-page .ai-question-card .ai-question-field > label {
  display: block;
  flex: initial;
  margin: 0;
}

.ai-page .ai-question-card .ai-question-field > textarea {
  width: 100%;
  min-height: 11.5rem;
  max-height: 55vh;
  padding: 0.8rem 0.92rem;
  line-height: 1.5;
  resize: vertical;
}

.ai-page .ai-question-card .ai-question-help,
.ai-page .ai-question-card .ai-question-disclaimer {
  display: block;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ai-page .ai-question-card .ai-question-disclaimer {
  margin-top: 0.1rem;
}

.ai-page .ai-question-card .login-form .btn {
  margin-top: 0.85rem;
}

.ai-answer-panel h2,
.ai-answer-panel h3 {
  margin-bottom: 0.7rem;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap input {
  padding-right: 4.7rem;
}

.login-toggle {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #bfd1e7;
  background: #ffffff;
  color: #21456d;
  border-radius: 8px;
  padding: 0.3rem 0.62rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.login-page a:focus-visible,
.login-page button:focus-visible,
.login-page input:focus-visible {
  outline: 3px solid rgba(255, 123, 66, 0.6);
  outline-offset: 2px;
}

.login-page .page-intro::before {
  background:
    linear-gradient(94deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.36) 70%, rgba(255, 255, 255, 0.2) 100%),
    url("../images/lawn_bowls_coaching_on_the_green.png") center/cover no-repeat;
}

.login-page main > .section + .section {
  padding-top: 1.75rem;
}

.login-form .btn {
  margin-top: 0.45rem;
  width: fit-content;
  min-width: 132px;
}
.login-error {
  margin-top: 0.9rem;
  border: 1px solid #edb4b4;
  background: #fff3f3;
  color: #8f2626;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-weight: 600;
}

.login-notice {
  margin-top: 0.9rem;
  border: 1px solid #c2d8ee;
  background: #edf5ff;
  color: #1b4468;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-weight: 600;
}
.text-link,
.doc-link {
  margin-top: 0.85rem;
  display: inline-flex;
  text-decoration: none;
  color: var(--primary-strong);
  font-weight: 700;
}

.text-link:hover,
.doc-link:hover {
  text-decoration: underline;
}

.doc-link[aria-disabled="true"] {
  text-decoration: none;
  opacity: 0.72;
  cursor: default;
}

.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.checklist li + li {
  margin-top: 0.65rem;
}

.checklist input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: translateY(1px);
}

.resource-card {
  border-top: 4px solid var(--accent);
}

.topic-image-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius);
  min-height: 0;
  isolation: isolate;
}

.topic-image-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.topic-image-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(180deg, rgba(5, 13, 24, 0.08) 16%, rgba(5, 13, 24, 0.74) 62%, rgba(5, 13, 24, 0.9) 100%);
  z-index: 2;
}

.topic-image-card__overlay h2,
.topic-image-card__overlay h3 {
  color: #f8fbff;
  margin-bottom: 0.34rem;
  text-shadow: 0 1px 2px rgba(4, 11, 20, 0.42);
}

.topic-image-card__overlay p {
  color: #deebf7;
  margin: 0;
  text-shadow: 0 1px 2px rgba(4, 11, 20, 0.35);
}

.topic-image-card .coming-soon-note {
  margin-top: 0.72rem;
  color: #e7f1fd;
  border-color: rgba(198, 220, 244, 0.72);
  background: rgba(13, 35, 58, 0.58);
}

.topic-image-card .text-link,
.topic-image-card .doc-link {
  color: #d6ebff;
  margin-top: 0.66rem;
}

.topic-image-card:focus-within {
  outline: 3px solid rgba(214, 235, 255, 0.95);
  outline-offset: 0;
}

.topic-image-card .btn {
  margin-top: 0.8rem;
}

.pathway-card {
  background: linear-gradient(160deg, #ffffff, #eef6ff);
}

.course-card {
  position: relative;
  overflow: hidden;
}

.course-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -54px;
  bottom: -62px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 110, 184, 0.18), transparent 67%);
  pointer-events: none;
}

.resource-type {
  display: inline-block;
  color: #4f5e63;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.feature-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

.feature-content {
  background: linear-gradient(145deg, #ffffff, #f3f7ff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.feature-content h2 {
  margin-top: 0.45rem;
}

.feature-content p + p {
  margin-top: 0.7rem;
}

.feature-image {
  min-height: 290px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 219, 212, 0.85);
  background:
    linear-gradient(120deg, rgba(43, 88, 222, 0.24), rgba(15, 52, 125, 0.32)),
    url("../images/hero-bg.png") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.page-intro {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0));
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  background: var(--surface);
  color: #415158;
  font-weight: 600;
  font-size: 0.82rem;
}

.meta-list {
  display: grid;
  gap: 0.65rem;
}

.meta-list strong {
  color: #1b3036;
}

.highlight-panel {
  background: linear-gradient(145deg, #1a3488, #2b58de);
  color: #f2f8f5;
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid rgba(202, 216, 255, 0.32);
  box-shadow: var(--shadow);
}

.highlight-panel p {
  color: #e7ecff;
}

.highlight-panel h2,
.highlight-panel h3,
.highlight-panel h4,
.highlight-panel strong,
.highlight-panel li {
  color: #ffffff;
}

.highlight-panel .text-link,
.highlight-panel .doc-link {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.highlight-panel .text-link:hover,
.highlight-panel .doc-link:hover {
  text-decoration-color: #ffffff;
}

.highlight-panel .btn-tertiary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.highlight-panel .btn-tertiary:hover {
  background: rgba(255, 255, 255, 0.24);
}

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-clean li + li {
  margin-top: 0.55rem;
}

.muted {
  color: var(--text-muted);
}

.surface-ink {
  background: var(--surface-ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.timeline-list li {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #f2f6ff);
}

.timeline-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #1f3f9a;
}

.faq {
  display: grid;
  gap: 0.7rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.7rem 0.9rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #1b3f44;
}

.faq p {
  margin-top: 0.55rem;
}

.footer-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4c5a61;
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body:not(.home-page) {
  background: #f7f5ef;
  color: #1f2f3a;
}

body:not(.home-page) .site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #dbe2d9;
}

body:not(.home-page) .site-nav a {
  color: #22374d;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: 0.68rem 0.5rem;
  font-size: 0.9rem;
}

body:not(.home-page) .site-nav a:hover,
body:not(.home-page) .site-nav a.active {
  background: transparent;
  color: #10253d;
  border-bottom-color: #2f6d42;
}

body:not(.home-page) .brand-text strong {
  font-size: 1.62rem;
  letter-spacing: -0.012em;
  line-height: 0.96;
  color: #122741;
  white-space: nowrap;
}

body:not(.home-page) .brand-text small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  color: #2c425f;
}

.nav-wrap .brand {
  flex: 0 0 auto;
}

.admin-site-nav {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.34rem;
}

.admin-site-nav .admin-nav-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.34rem;
  width: 100%;
}

.admin-site-nav a {
  white-space: nowrap;
}

body:not(.home-page) .page-intro {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #dce4dc;
  background: linear-gradient(180deg, #ffffff, #f2f6f2 82%);
}

body:not(.home-page) .page-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(94deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.36) 70%, rgba(255, 255, 255, 0.2) 100%),
    url("../images/golden_hour_lawn_bowls_practice_green.png") center/cover no-repeat;
  pointer-events: none;
}

body.public-page .page-intro::before {
  background:
    linear-gradient(94deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.36) 70%, rgba(255, 255, 255, 0.2) 100%),
    url("../images/club-green.jpg") center/cover no-repeat;
}

body.pupil-page .page-intro::before {
  background:
    linear-gradient(94deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.36) 70%, rgba(255, 255, 255, 0.2) 100%),
    url("../images/golden_hour_lawn_bowls_practice_green.png") center/cover no-repeat;
}

body.coach-page .page-intro::before {
  background:
    linear-gradient(94deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.36) 70%, rgba(255, 255, 255, 0.2) 100%),
    url("../images/coach-session.jpg") center/cover no-repeat;
}

body:not(.home-page) .page-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 260px at 95% 0%, rgba(34, 90, 62, 0.12), transparent 70%),
    radial-gradient(560px 220px at 0% 100%, rgba(24, 62, 110, 0.1), transparent 72%);
  opacity: 1;
  pointer-events: none;
}

body:not(.home-page) .page-intro .container {
  position: relative;
  z-index: 1;
}

body:not(.home-page) .page-intro .reveal,
body:not(.home-page) .page-intro.reveal,
body:not(.home-page) .page-intro .container.reveal {
  opacity: 1;
  transform: none;
}

body:not(.home-page) .page-intro h1 {
  max-width: 21ch;
  font-size: clamp(2rem, 4vw, 3rem);
}

body:not(.home-page) .page-intro .muted {
  color: #3e5159;
}

body:not(.home-page) .section-soft {
  background: #f1f4f8;
}

body:not(.home-page) .surface-ink {
  background: #eef2f6;
}

body:not(.home-page) .card,
body:not(.home-page) .feature-content,
body:not(.home-page) .highlight-panel,
body:not(.home-page) .feature-image {
  border-radius: 12px;
}

body:not(.home-page) .card {
  border-color: #d7e0e9;
  box-shadow: 0 8px 22px rgba(24, 50, 76, 0.08);
}

body:not(.home-page) .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(24, 50, 76, 0.12);
}

body:not(.home-page) .feature-content {
  background: #ffffff;
  border-color: #d7e0e9;
}

body:not(.home-page) .pathway-card,
body:not(.home-page) .course-card {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #f4f7f4;
}

body:not(.home-page) .pathway-card::before,
body:not(.home-page) .course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(18deg, rgba(8, 31, 44, 0.85), rgba(8, 31, 44, 0.48));
}

body:not(.home-page) .pathway-card > *,
body:not(.home-page) .course-card > * {
  position: relative;
  z-index: 1;
}

body:not(.home-page) .pathway-card h3,
body:not(.home-page) .course-card h3,
body:not(.home-page) .pathway-card p,
body:not(.home-page) .course-card p,
body:not(.home-page) .pathway-card li,
body:not(.home-page) .course-card li {
  color: #f1f6f4;
}

body:not(.home-page) .pathway-card .text-link,
body:not(.home-page) .course-card .text-link {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.75);
}

body:not(.home-page) .pathway-card .btn-tertiary,
body:not(.home-page) .course-card .btn-tertiary {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.95);
  color: #1a3e66;
}

/* Public page visual cards */
body:not(.home-page) #next .course-card:nth-child(1) {
  background-image: url("../images/players-coaching.jpg");
}

body:not(.home-page) #next .course-card:nth-child(2) {
  background-image: url("../images/coach-session.jpg");
}

/* Pupil page visual cards */
body:not(.home-page) #lessons .pathway-card:nth-child(1) {
  background-image: url("../images/players-coaching.jpg");
}

body:not(.home-page) #lessons .pathway-card:nth-child(2) {
  background-image: url("../images/golden_hour_lawn_bowls_practice_green.png");
}

/* Coach page visual cards */
body.coach-page #development .card-grid-3 .pathway-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body.coach-page #development .card-grid-3 .pathway-card .text-link {
  margin-top: auto;
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(1) {
  background-image: url("../images/coach-session.jpg");
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(2) {
  background-image: url("../images/golden_hour_lawn_bowls_coaching.png");
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(3) {
  background-image: url("../images/players-coaching.jpg");
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(4) {
  background-image: url("../images/resources.jpg");
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(5) {
  background-image: url("../images/club-green.jpg");
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(6) {
  background-image: url("../images/hero-background-right-bowls.jpg");
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(7) {
  background-image: url("../images/purposeful-practice.jpg");
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(8) {
  background-image: url("../images/lawn_bowls_coaching_on_the_green.png");
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(9) {
  background-image: url("../images/golden_hour_lawn_bowls_practice_green.png");
}

body.coach-page #development .card-grid-3 .pathway-card:nth-child(10) {
  background-image: url("../images/hero-bowls.jpg");
}

/* CPD Level 2 page visual cards */
body.cpd-level2-page .cpd-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body.cpd-level2-page .cpd-card .text-link {
  margin-top: auto;
}

body.cpd-level2-page .cpd-correcting-ingrained-faults {
  background-image: url("../images/01_Correcting_Ingrained_Faults.png");
}

body.cpd-level2-page .cpd-deliver-under-pressure {
  background-image: url("../images/02_Deliver_Under_Pressure.png");
}

body.cpd-level2-page .cpd-indoor-vs-outdoor-coaching {
  background-image: url("../images/03_Indoor_vs_Outdoor_Coaching.png");
}

body.cpd-level2-page .cpd-building-consistency {
  background-image: url("../images/04_Building_Consistency.png");
}

body.cpd-level2-page .cpd-creating-effective-practice {
  background-image: url("../images/05_Creating_Effective_Practice.png");
}

body.cpd-level2-page .cpd-technology-data-coaching {
  background-image: url("../images/06_Technology_Data_Coaching.png");
}

body.cpd-level2-page .cpd-one-to-one-coaching-clinic {
  background-image: url("../images/07_One_to_One_Coaching_Clinic.png");
}

body.cpd-level2-page .cpd-head-building-for-high-performance {
  background-image: url("../images/08_Head_Building_for_High_Performance.png");
}

body.cpd-level2-page .cpd-advanced-shot-making {
  background-image: url("../images/09_Advanced_Shot_Making.png");
}

body.cpd-level2-page .cpd-advanced-tactical-play {
  background-image: url("../images/10_Advanced_Tactical_Play.png");
}

body.cpd-level2-page .cpd-team-dynamics-and-communication {
  background-image: url("../images/01_Team_Dynamics_and_Communication.png");
}

body.cpd-level2-page .cpd-mental-resilience-focus {
  background-image: url("../images/02_Mental_Resilience_Focus.png");
}

body.cpd-level2-page .cpd-observation-masterclass {
  background-image: url("../images/03_Observation_Masterclass.png");
}

body.cpd-level2-page .cpd-questioning-for-critical-thinking {
  background-image: url("../images/04_Questioning_for_Critical_Thinking.png");
}

body.cpd-level2-page .cpd-developing-coaching-philosophy {
  background-image: url("../images/05_Developing_Coaching_Philosophy.png");
}

body.cpd-level2-page .cpd-tournament-preparation-and-match-play-coaching {
  background-image: url("../images/06_Tournament_Preparation_and_Match_Play_Coaching.png");
}

body.cpd-level2-page .cpd-adapting-coaching-to-different-abilities {
  background-image: url("../images/07_Adapting_Coaching_to_Different_Abilities.png");
}

body.cpd-level2-page .cpd-equality-diversity-and-inclusion-in-bowls {
  background-image: url("../images/08_Equality_Diversity_and_Inclusion_in_Bowls_Coming_Soon.png");
}

body.cpd-level2-page .cpd-coaching-ethics-and-safeguarding {
  background-image: url("../images/09_Coaching_Ethics_and_Safeguarding.png");
}

body:not(.home-page) .feature-image {
  min-height: 280px;
  background:
    linear-gradient(120deg, rgba(12, 45, 95, 0.24), rgba(14, 51, 34, 0.25)),
    url("../images/golden_hour_lawn_bowls_practice_green.png") center/cover no-repeat;
}

body:not(.home-page) .section-head h2::after {
  background: linear-gradient(90deg, #1c4670, #2f6d42);
}

body:not(.home-page) .resource-type {
  background: #eef4ff;
  border-color: #d2deee;
  color: #31485f;
}

body:not(.home-page) .btn-primary {
  background: #1f5b34;
  box-shadow: none;
}

body:not(.home-page) .btn-secondary {
  background: #1e3e63;
  color: #ffffff;
  border-color: #1e3e63;
}

body:not(.home-page) .btn-tertiary {
  background: #ecf2fc;
  border: 1px solid #d1dded;
  color: #193d66;
}

body:not(.home-page) .site-footer {
  background: #0f2240;
  border-top: none;
}

body:not(.home-page) .site-footer a,
body:not(.home-page) .site-footer p,
body:not(.home-page) .footer-wrap {
  color: #c7d4e8;
}

body:not(.home-page) .site-footer a:hover {
  color: #ffffff;
}

body.home-page {
  background: #f7f5ef;
  color: #1e2e3b;
}

.home-page .site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #d9e1d8;
  backdrop-filter: blur(5px);
}

.home-page .site-nav a {
  color: #243348;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: 0.46rem 0.42rem;
  font-size: 0.86rem;
  line-height: 1.1;
  white-space: nowrap;
}

.home-page .site-nav {
  gap: 0.14rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  margin-left: auto;
}

.home-page .site-nav-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.12rem;
  flex-wrap: nowrap;
}

.home-page .site-nav-row-secondary {
  margin-top: 0.02rem;
}

.home-page .nav-wrap {
  justify-content: flex-start;
  align-items: center;
  gap: 0.72rem;
}

.home-page .brand {
  align-items: center;
  gap: 0.95rem;
  flex: 0 0 auto;
  min-width: 0;
}

.home-page .brand-text {
  display: grid;
  grid-template-columns: 1fr;
  line-height: 1;
  max-width: 100%;
}

.home-page .brand-title {
  display: block;
  font-size: 1.84rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #11263f;
  line-height: 0.95;
  white-space: nowrap;
}

.home-page .brand-tagline {
  display: block;
  width: 100%;
  margin-top: 0.28rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: #2b4160;
  white-space: nowrap;
}

.home-page .site-nav a:hover,
.home-page .site-nav a.active {
  background: transparent;
  color: #10253d;
  border-bottom-color: #2f6d42;
}

.home-page .hero {
  padding-top: 7rem;
  padding-bottom: 5.2rem;
  color: #f4f7f4;
}

.home-page .home-hero {
  clip-path: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.home-page .hero::before {
  background: linear-gradient(180deg, rgba(247, 245, 239, 0), #f7f5ef);
}

.home-page .hero-backdrop {
  background:
    linear-gradient(95deg, rgba(7, 22, 30, 0.72), rgba(7, 22, 30, 0.2) 62%, rgba(7, 22, 30, 0.08)),
    url("../images/hero-bowls.jpg") center 42%/cover no-repeat;
}

.home-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.hero-access {
  align-self: end;
  justify-self: end;
  width: min(100%, 300px);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 12px;
  background: rgba(10, 31, 39, 0.58);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.hero-access p {
  margin: 0 0 0.65rem;
  color: #ffffff;
  font-weight: 700;
}

.hero-access .btn {
  width: 100%;
  justify-content: center;
}

.home-page .hero-content h1 {
  color: #ffffff;
  max-width: 13ch;
  font-size: clamp(2.6rem, 5vw, 4.15rem);
  text-shadow: 0 7px 20px rgba(0, 0, 0, 0.34);
  background: none;
}

.home-page .lead {
  color: #f0f5ef;
  font-size: 1.35rem;
  max-width: 36ch;
}

.home-page .btn {
  border-radius: 10px;
}

.home-page .btn-primary {
  background: #1f5b34;
  box-shadow: none;
}

.home-page .btn-primary:hover {
  box-shadow: none;
  background: #154528;
}

.home-page .btn-secondary {
  background: rgba(11, 32, 50, 0.55);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.home-page .btn-quiet {
  color: #123352;
  border: 1px solid #c8d2df;
  background: #ffffff;
  padding: 0.62rem 0.95rem;
}

.home-page .btn-quiet:hover {
  background: #f5f9ff;
}

.home-page .home-welcome {
  padding-top: 3rem;
}

.home-page .audience-grid {
  margin-top: 0.6rem;
}

.home-page .audience-grid .area-panel {
  min-height: 250px;
}

.home-page .area-protected {
  background-image: url("../images/resources.jpg");
}

.home-page .area-protected .resource-type {
  color: #f2f7f4;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
}

.welcome-head {
  text-align: center;
  max-width: 76ch;
  margin: 0 auto 1.7rem;
}

.welcome-head h2 {
  font-size: clamp(1.95rem, 3.4vw, 2.45rem);
}

.welcome-head p {
  margin-top: 0.6rem;
  color: #3f4f58;
}

.home-page .area-panel {
  min-height: 270px;
  border: 1px solid #d7dfd7;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.65rem;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.home-page .area-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(15deg, rgba(7, 28, 39, 0.85), rgba(7, 28, 39, 0.45));
}

.home-page .area-panel > * {
  position: relative;
  z-index: 1;
}

.home-page .area-panel h3,
.home-page .area-panel p {
  color: #f4f7f4;
}

.home-page .area-public {
  background-image: url("../images/club-green.jpg");
}

.home-page .area-player {
  background-image: url("../images/coach-session.jpg");
}

.home-page .area-coach {
  background-image: url("../images/resources.jpg");
}

.home-page .home-thoughts {
  background: #f1f4f8;
}

.thought-rotator {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.thought-card {
  border-radius: 12px;
  border: 1px solid #d7e0ea;
  box-shadow: none;
}

.thought-card--shared {
  background: linear-gradient(160deg, #ffffff, #eef5ff);
  border-color: #c7d8f2;
}

.thought-card blockquote {
  margin: 0;
}

.thought-card p {
  color: #20364d;
}

.thought-rotator.is-rotating {
  position: relative;
  grid-template-columns: 1fr;
  height: 320px;
  padding-bottom: 3.3rem;
}

.thought-rotator.is-rotating .thought-card {
  position: absolute;
  inset: 0 0 3.3rem 0;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.38s ease, transform 0.38s ease;
  pointer-events: none;
}

.thought-rotator.is-rotating .thought-card blockquote {
  margin: 0;
  flex: 1;
}

.thought-rotator.is-rotating .thought-card.is-active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.thought-rotator-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.6rem;
  min-height: 2.25rem;
}

.thought-rotator.is-rotating .thought-rotator-controls {
  position: absolute;
  right: 0;
  bottom: 0;
}

.thought-control {
  min-width: 90px;
  padding: 0.45rem 0.85rem;
}

.thought-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.thought-rotator-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  height: 2rem;
  padding: 0 0.65rem;
  border: 1px solid #d1d9e4;
  border-radius: 999px;
  background: #ffffff;
  color: #274564;
  font-size: 0.84rem;
  font-weight: 700;
}

.home-page .home-pathway {
  background: #f1f4f8;
}

.home-page .pathway-grid {
  margin-top: 1.2rem;
}

.home-page .pathway-panel {
  border: 1px solid #d6dee8;
  border-radius: 14px;
  box-shadow: none;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.home-page .pathway-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(20deg, rgba(7, 28, 39, 0.83), rgba(7, 28, 39, 0.42));
}

.home-page .pathway-panel > * {
  position: relative;
  z-index: 1;
}

.home-page .pathway-player {
  background-image: url("../images/players-coaching.jpg");
}

.home-page .pathway-coach {
  background-image: url("../images/coach-session.jpg");
}

.home-page .pathway-panel h3 {
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.home-page .pathway-panel ul {
  color: #f2f6f3;
}

.home-page .pathway-panel .resource-type {
  color: #f2f7f4;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
}

.home-page .pathway-actions .btn-tertiary {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.92);
  color: #17395f;
}

.home-page .home-progression {
  padding-top: 3.4rem;
}

.progression-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.progression-card {
  border-radius: 12px;
  border: 1px solid #d9e0e7;
  box-shadow: none;
  min-height: 262px;
}

.progression-card img {
  width: 58px;
  height: 58px;
  margin-bottom: 0.8rem;
}

.progression-card h3 {
  font-size: 1.44rem;
  margin-bottom: 0.38rem;
}

.flow-arrow {
  font-size: 2rem;
  color: #8f9ca9;
}

.workflow-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0.55rem;
  align-items: stretch;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.workflow-step {
  border: 1px solid #d4deec;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f6faff);
  padding: 0.9rem;
  box-shadow: 0 8px 20px rgba(29, 66, 110, 0.08);
}

.workflow-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.28rem;
}

.workflow-step p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #2b58de, #1a3488);
  margin-bottom: 0.42rem;
}

.workflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #8797ad;
}

.home-page .home-resources {
  background: #f1f4f8;
}

.home-page .home-improve-preview {
  background: #f7f5ef;
}

.structured-learning-card {
  border-top: 4px solid #1f5b34;
}

.structured-learning-list {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.structured-learning-list li {
  border: 1px solid #d7e0e9;
  border-radius: 10px;
  padding: 0.52rem 0.68rem;
  background: #f8fbff;
  color: #1f3550;
  font-weight: 600;
}

.structured-learning-list li::before {
  content: "Protected";
  display: inline-block;
  margin-right: 0.45rem;
  border: 1px solid #c9d8ec;
  border-radius: 999px;
  padding: 0.05rem 0.48rem;
  font-size: 0.72rem;
  color: #27486f;
  background: #edf4ff;
}

.coming-soon-note {
  margin-top: 0.7rem;
  display: inline-flex;
  border: 1px solid #d0dceb;
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  font-size: 0.84rem;
  color: #39546f;
  background: #f3f8ff;
  font-weight: 600;
}

.wwyp-framework {
  margin-top: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.wwyp-list {
  display: grid;
  gap: 1rem;
}

.wwyp-card {
  border-top: 4px solid #1f5b34;
}

.wwyp-situation {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.wwyp-situation li {
  border: 1px solid #d7e0e9;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  background: #f8fbff;
  color: #1f3550;
}

.wwyp-diagram {
  margin: 0.95rem 0 0;
  border: 1px solid #c9d7e8;
  border-radius: 12px;
  background: #f3f8ff;
  padding: 0.55rem;
}

.wwyp-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.wwyp-diagram figcaption {
  margin-top: 0.4rem;
  color: #3d5169;
  font-size: 0.88rem;
}

.wwyp-choice-group {
  margin-top: 0.9rem;
  border: 1px solid #d4e0ef;
  border-radius: 12px;
  padding: 0.75rem;
  background: #f8fbff;
}

.wwyp-choice-group legend {
  font-weight: 700;
  color: #1a3554;
  padding: 0 0.2rem;
}

.wwyp-choices {
  display: grid;
  gap: 0.55rem;
}

.wwyp-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  border: 1px solid #cfdcec;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  background: #ffffff;
}

.wwyp-choice input {
  margin-top: 0.2rem;
}

.wwyp-choice span {
  color: #1f3550;
  font-weight: 600;
}

.wwyp-choice:focus-within {
  outline: 3px solid rgba(43, 88, 222, 0.28);
  outline-offset: 1px;
}

.wwyp-status {
  margin-top: 0.55rem;
  min-height: 1.3rem;
}

.wwyp-analysis {
  margin-top: 0.85rem;
  border: 1px solid #d6e1f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.9rem;
}

.wwyp-analysis h3 {
  margin-bottom: 0.6rem;
}

.wwyp-analysis-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.4rem;
}

.wwyp-analysis-list li {
  color: #31475f;
}

.wwyp-analysis-list strong {
  color: #16314f;
}

.home-wwyp-teaser .card {
  border-top: 4px solid #1f5b34;
}

.wwyp-mini-head {
  margin-top: 0.85rem;
  border: 1px solid #d3deec;
  border-radius: 12px;
  padding: 0.5rem;
  background: #f8fbff;
}

.wwyp-mini-head svg {
  display: block;
  width: 100%;
  height: auto;
}

.assessment-intro-card ul {
  margin-top: 0.7rem;
}

.assessment-panel {
  border-top: 4px solid #1f5b34;
}

.assessment-question {
  margin: 0.9rem 0 0;
  border: 1px solid #d7e0e9;
  border-radius: 12px;
  padding: 0.75rem;
  background: #f8fbff;
}

.assessment-question legend {
  font-weight: 700;
  color: #18324c;
  padding: 0 0.3rem;
}

.assessment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.assessment-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #cfdcec;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  background: #ffffff;
}

.assessment-option span {
  color: #1f3550;
  font-weight: 600;
}

.assessment-option:focus-within {
  outline: 3px solid rgba(43, 88, 222, 0.28);
  outline-offset: 1px;
}

.assessment-error {
  min-height: 1.3rem;
  margin-top: 0.8rem;
  color: #1d3d66;
  font-weight: 600;
}

.assessment-profiles {
  display: grid;
  gap: 0.8rem;
}

.assessment-profile {
  border: 1px solid #d7e0e9;
  border-radius: 12px;
  padding: 0.75rem;
  background: #ffffff;
}

.assessment-profile h3 {
  margin-bottom: 0.35rem;
}

.assessment-bar {
  margin-top: 0.5rem;
  height: 14px;
  border-radius: 999px;
  background: #e9f0fb;
  border: 1px solid #cad8ea;
  overflow: hidden;
}

.assessment-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f5b34, #2b58de);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.featured-card {
  padding: 0.7rem;
  border-radius: 12px;
  border: 1px solid #d9e1ea;
  box-shadow: none;
}

.featured-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #dce4eb;
  margin-bottom: 0.7rem;
}

.featured-card h3 {
  font-size: 1.18rem;
}

.featured-card .text-link {
  margin-top: 0.65rem;
}

.home-page .home-benefits {
  background: linear-gradient(180deg, #154a2f, #123f28);
  color: #f4f8f4;
}

.home-page .home-benefits .section-head h2,
.home-page .home-benefits h3 {
  color: #ffffff;
}

.home-page .home-benefits .section-head h2::after {
  background: #5cc183;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.benefit-item {
  border: 1px solid rgba(154, 201, 171, 0.35);
  border-radius: 10px;
  padding: 1rem 0.9rem;
  background: rgba(9, 37, 23, 0.25);
}

.benefit-item p {
  color: #d3e9da;
  margin-top: 0.45rem;
  font-size: 0.95rem;
}

.home-page .home-links {
  background: #f7f5ef;
  padding-top: 2.6rem;
}

.quick-link-card {
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  box-shadow: none;
}

.home-page .site-footer-rich {
  border-top: none;
  background: #0f2240;
  color: #c8d5eb;
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(169, 186, 215, 0.25);
}

.home-page .site-footer-rich .footer-brand {
  margin-bottom: 0.6rem;
}

.home-page .site-footer-rich .brand-text strong,
.home-page .site-footer-rich h3 {
  color: #ffffff;
}

.home-page .site-footer-rich .brand-text small,
.footer-note,
.home-page .site-footer-rich .footer-wrap,
.home-page .site-footer-rich .footer-links a,
.home-page .site-footer-rich .footer-links li {
  color: #c8d5eb;
}

.home-page .site-footer-rich .footer-links a {
  text-decoration: none;
}

.home-page .site-footer-rich .footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-note {
  max-width: 28ch;
}

.home-page .site-footer-rich .footer-wrap {
  justify-content: center;
  min-height: 56px;
}

.home-page .site-footer-rich .brand-logo {
  border-color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 961px) {
  .home-page .home-header-inner {
    width: min(1540px, 96vw);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.1rem;
  }

  .home-page .home-brand-block {
    flex: 0 0 auto;
    min-width: 0;
  }

  .home-page .home-nav-block {
    flex: 0 1 auto;
    margin-left: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    min-width: 0;
  }

  .home-page .home-nav-block .site-nav-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.34rem;
    width: auto;
    margin: 0;
  }

  .home-page .home-nav-block .site-nav-row + .site-nav-row {
    margin-top: 0.35rem;
  }

  .home-page .home-nav-block a {
    white-space: nowrap;
    font-size: 0.84rem;
    line-height: 1.1;
    padding: 0.42rem 0.34rem;
  }
}

@media (max-width: 1150px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 4vw;
    width: min(320px, 92vw);
    background: #fefcf8;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 0.6rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem;
    border-radius: 0.5rem;
    white-space: normal;
  }

  .home-page .site-nav-row,
  .home-page .home-nav-block .site-nav-row {
    display: contents;
  }

  .home-page .site-nav {
    margin-left: 0;
    gap: 0;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    max-width: 100%;
  }

  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .structured-learning-list {
    grid-template-columns: 1fr;
  }

  .thought-rotator.is-rotating {
    height: 344px;
  }

  .progression-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    display: none;
  }

  .workflow-flow {
    grid-template-columns: 1fr;
  }

  .workflow-arrow {
    display: none;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .brand-title {
    font-size: 1.66rem;
  }

  .home-page .brand-tagline {
    font-size: 0.86rem;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .ai-page .ai-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 3.6rem 0;
  }

  body:not(.home-page) .brand-text strong {
    font-size: 1.32rem;
    white-space: normal;
  }


  .login-page .section.section-tight {
    padding: 1.8rem 0 1.2rem;
  }

  .login-page .section {
    padding: 2.2rem 0;
  }

  .login-page .login-layout {
    gap: 0.85rem;
  }

  .login-page .card {
    padding: 1rem;
  }

  .login-page .login-form {
    margin-top: 0.8rem;
  }

  .login-field-row {
    gap: 0.55rem;
  }

  .login-field-row > label {
    flex-basis: 92px;
  }

  .admin-grid-form {
    grid-template-columns: 1fr;
  }

  .ai-suggestions-page .ai-suggestions-table {
    min-width: 1180px;
  }

  .ai-suggestions-page .ai-suggestions-table .col-actions {
    min-width: 340px;
  }

  .ai-library-inventory-page .ai-library-inventory-table {
    min-width: 1380px;
  }

  .ai-layout {
    grid-template-columns: 1fr;
  }

  .ai-page .ai-question-card .ai-question-field > textarea {
    min-height: 9.5rem;
    max-height: 50vh;
  }

  .login-page main > .section + .section {
    padding-top: 1.2rem;
  }

  .section-tight {
    padding: 2rem 0 1rem;
  }

  .brand-text small {
    display: none;
  }

  .admin-site-nav {
    position: static;
    width: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.34rem;
  }

  .admin-site-nav .admin-nav-row {
    flex-wrap: wrap;
    width: auto;
    gap: 0.28rem;
  }

  .admin-site-nav a {
    padding: 0.48rem 0.56rem;
    white-space: nowrap;
  }


  .thought-rotator.is-rotating {
    height: 372px;
  }

  .thought-control {
    min-width: 84px;
    padding: 0.42rem 0.7rem;
  }

  .thought-rotator-status {
    min-width: 4.1rem;
    font-size: 0.82rem;
  }

  .site-header .brand-logo {
    width: 62px;
    height: 62px;
  }

  .card-grid-3,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .benefits-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .assessment-options {
    grid-template-columns: 1fr;
  }

  .home-page .hero {
    padding-top: 5.8rem;
  }

  .home-page .lead {
    font-size: 1.08rem;
  }

  body:not(.home-page) .page-intro::after {
    display: none;
  }

  .home-page .brand-title {
    font-size: 1.34rem;
  }

  .home-page .brand-tagline {
    font-size: 0.74rem;
    white-space: normal;
  }

  .home-hero {
    clip-path: none;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }

  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    text-align: center;
    padding: 0.85rem 0;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .home-page .home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.55fr);
  }
}

@media (max-width: 640px) {
  .home-page .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-access {
    justify-self: stretch;
    width: 100%;
    padding: 0.85rem 1rem;
  }

  .thought-rotator.is-rotating {
    height: 392px;
  }

  .thought-rotator.is-rotating .thought-rotator-controls {
    left: 0;
    right: 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .thought-rotator.is-rotating .thought-card {
    transition: none;
  }

}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .print-hide {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .section,
  .section-tight {
    padding: 1rem 0;
  }

  .card,
  .highlight-panel,
  .feature-content {
    box-shadow: none;
    border: 1px solid #999;
    background: #fff;
    color: #111;
  }

  .card-grid,
  .feature-grid {
    display: block;
  }

  .card,
  .feature-content,
  .highlight-panel {
    margin-bottom: 0.8rem;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
