:root {
  --ink: #263545;
  --navy: #203e65;
  --blue: #2170b2;
  --magenta: #d92b75;
  --orange: #f38b2e;
  --teal: #119aa6;
  --yellow: #efbe39;
  --grey: #747b83;
  --paper: #fff;
  --bg: #f5f7f8;
  --line: #e4e9ed;
  --muted: #637181;
  --shadow: 0 16px 45px rgba(31, 56, 82, 0.07);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  margin: 0;
  background: var(--bg);
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  line-height: 1.58;
}
a {
  color: var(--navy);
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
}
header {
  background: white;
  border-bottom: 1px solid var(--line);
}
.rainbow {
  height: 6px;
  background: linear-gradient(
    90deg,
    #d72f78 0 18%,
    #f08528 18% 37%,
    #e6b72a 37% 52%,
    #199aa3 52% 72%,
    #2d83c8 72% 86%,
    #263a64 86%
  );
}
.wrap {
  width: min(1140px, calc(100% - 40px));
  margin: auto;
}
.mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}
.logo {
  width: min(290px, 55vw);
  height: auto;
  display: block;
}
.mast-right {
  text-align: right;
}
.eyebrow {
  letter-spacing: 0.13em;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.docid {
  font-size: 0.85rem;
  color: var(--muted);
}
nav {
  position: sticky;
  top: 0;
  z-index: 8;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.navinner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 8px 0;
}
.navinner a {
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy);
}
.navinner a:hover {
  background: #e9f3fa;
}
main {
  padding-bottom: 60px;
}
.hero {
  padding: 46px 0 34px;
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 30px;
  align-items: end;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 100px;
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.badge.primary {
  background: #e9f2fb;
  color: #235d91;
}
.badge.warn {
  background: #fff0d3;
  color: #8e5c11;
}
.badge.green {
  background: #e4f5ef;
  color: #17634f;
}
h1 {
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin: 17px 0;
  color: var(--navy);
  max-width: 820px;
}
h2 {
  font-size: clamp(1.42rem, 2.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin: 0 0 13px;
}
h3 {
  font-size: 1.16rem;
  color: var(--navy);
  margin: 0 0 12px;
}
h4 {
  font-size: 1rem;
  color: var(--navy);
  margin: 0;
}
p {
  margin: 0 0 12px;
}
.lead {
  font-size: 1.09rem;
  color: #566473;
  max-width: 740px;
}
.hero-aside {
  background: var(--navy);
  color: white;
  border-radius: 22px;
  padding: 25px;
  box-shadow: var(--shadow);
}
.hero-aside h3 {
  color: white;
}
.hero-aside .rule {
  border-top: 1px solid #60728a;
  margin: 14px 0;
}
.hero-aside p {
  color: #d9e4ef;
  font-size: 0.88rem;
}
.section {
  padding-top: 30px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.section-head p {
  color: var(--muted);
  margin: 0;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 25px;
  box-shadow: var(--shadow);
}
.card.soft {
  background: #f8fbfd;
  box-shadow: none;
}
.callout {
  padding: 16px 18px;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: #fff7e8;
  font-size: 0.88rem;
}
.callout.teal {
  background: #eaf8f8;
  border-left-color: var(--teal);
}
.callout.pink {
  background: #fdf0f5;
  border-left-color: var(--magenta);
}
.callout p:last-child {
  margin-bottom: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 7px;
  padding: 6px 10px;
  background: #f2f5f7;
  color: #4e5e6e;
}
.pill {
  display: inline-block;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 4px 9px;
  vertical-align: middle;
  white-space: nowrap;
}
.pill.caution {
  color: #825314;
  background: #fff0d3;
}
.pill.ok {
  color: #136a4d;
  background: #def5eb;
}
.pill.pending {
  background: #eef2f6;
  color: #50637a;
}
.architecture {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 20px;
}
.archbox {
  border: 1px solid #d9e4ee;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}
.archbox strong {
  display: block;
  color: var(--navy);
  margin: 0 0 3px;
}
.archbox .sub {
  color: var(--muted);
  font-size: 0.81rem;
}
.archbox.national {
  grid-column: 1/-1;
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  text-align: center;
}
.archbox.national strong {
  color: white;
}
.archbox.national .sub {
  color: #d9e4ef;
}
.archbox.regional {
  border-top: 4px solid var(--teal);
}
.archbox.gapyear {
  border-top: 4px solid var(--magenta);
}
.archbox.sites {
  grid-column: 2;
  border-top: 4px solid var(--orange);
}
.connector {
  grid-column: 1/-1;
  text-align: center;
  color: #7990a6;
  font-size: 0.76rem;
  line-height: 1;
}
.flow-note {
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 12px;
}
.quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
}
.metric b {
  display: block;
  color: var(--navy);
}
.metric span {
  font-size: 0.78rem;
  color: var(--muted);
}
.account-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}
.objective {
  font-weight: 700;
  color: var(--navy);
}
.copy ul {
  margin: 8px 0 0;
  padding-left: 19px;
}
.copy li {
  margin-bottom: 4px;
}
.label {
  font-size: 0.73rem;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.platform-list {
  display: grid;
  gap: 9px;
}
.platform {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.platform:last-child {
  border-bottom: none;
}
.platform strong {
  font-size: 0.87rem;
  color: var(--navy);
}
.platform p {
  font-size: 0.83rem;
  color: #566677;
  margin: 0;
}
.record-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.record {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
  background: #fff;
}
.record-head {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 45px;
}
.colour-chip {
  width: 37px;
  height: 37px;
  background: var(--swatch);
  border-radius: 9px;
  border: 1px solid #d6dee5;
  flex: 0 0 auto;
}
.colour-chip.none {
  display: grid;
  place-items: center;
  background: #f5f7f8;
  color: #7c8792;
  font-weight: 800;
}
.site-dot {
  width: 37px;
  height: 37px;
  border-radius: 9px;
  background: #f2f6fa;
  display: grid;
  place-items: center;
  color: #70849b;
  flex: 0 0 auto;
}
.micro {
  font-size: 0.77rem;
  color: var(--muted);
  margin: 0;
}
.muted {
  color: var(--muted);
}
.sep {
  padding: 0 5px;
}
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 13px 0 7px;
}
.account-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 750;
  background: #f0f6fb;
  border: 1px solid #dae8f3;
  color: #1d537f;
  border-radius: 7px;
  padding: 6px 9px;
  overflow-wrap: anywhere;
}
.account-link:hover {
  background: #e0f0fc;
}
.state {
  font-size: 0.75rem;
  color: #667584;
  margin: 9px 0 0;
}
.note {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff8ed;
  border-left: 2px solid var(--orange);
}
.stack {
  display: grid;
  gap: 12px;
}
.tablewrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
th {
  color: var(--navy);
  background: #edf3f8;
  text-align: left;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}
td,
th {
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
.expand {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}
.expand summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
  padding: 15px 18px;
  list-style: none;
}
.expand summary:after {
  content: "+";
  float: right;
  color: var(--magenta);
  font-size: 1.1rem;
}
.expand[open] summary:after {
  content: "−";
}
.expand .inside {
  padding: 0 18px 18px;
  color: #536476;
  font-size: 0.88rem;
}
.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.step:first-of-type {
  border-top: 0;
}
.stepnum {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dfeef8;
  color: var(--navy);
  font-weight: 900;
}
.step h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}
.step p {
  margin: 0 0 6px;
  font-size: 0.89rem;
  color: #566677;
}
.step .meta {
  font-size: 0.75rem;
  font-weight: 800;
  color: #567089;
}
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.phase {
  border: 1px solid #e3e9ee;
  border-radius: 12px;
  padding: 18px;
  background: white;
}
.phase .month {
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  color: #2a699d;
  text-transform: uppercase;
}
.phase h3 {
  margin: 6px 0 8px;
}
.phase p {
  font-size: 0.85rem;
  color: #526273;
  margin: 0;
}
.foot {
  background: #223e61;
  color: #d9e6f1;
  padding: 27px 0;
}
.foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.foot a {
  color: white;
}
.toplink {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  margin-top: 15px;
}
.small {
  font-size: 0.8rem;
  color: var(--muted);
}
@media (max-width: 800px) {
  .hero,
  .account-section {
    grid-template-columns: 1fr;
  }
  .quad {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    padding-top: 30px;
  }
  .hero-aside {
    max-width: none;
  }
  .mast-right {
    display: none;
  }
  .record-list {
    grid-template-columns: 1fr;
  }
  .roadmap {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .wrap {
    width: min(100% - 26px, 1140px);
  }
  .card {
    padding: 18px;
  }
  .architecture {
    grid-template-columns: 1fr;
  }
  .archbox.national,
  .archbox.sites,
  .connector {
    grid-column: 1;
  }
  .platform {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .quad {
    grid-template-columns: 1fr;
  }
  .section {
    padding-top: 24px;
  }
  .navinner a {
    padding: 8px 10px;
  }
  h1 {
    font-size: 2.15rem;
  }
}
@media print {
  html {
    scroll-behavior: auto;
  }
  body {
    background: white;
    color: #222;
    font-size: 10.5pt;
  }
  nav,
  .toplink {
    display: none;
  }
  .hero {
    padding: 20px 0;
  }
  .card,
  .record,
  .phase,
  .metric {
    box-shadow: none;
    break-inside: avoid;
  }
  .section {
    break-before: auto;
  }
  .wrap {
    width: 100%;
  }
  details:not([open]) .inside {
    display: block !important;
  }
  details:not([open]) summary:after {
    display: none;
  }
  .foot {
    color: #233b55;
    background: white;
  }
  .foot a {
    color: #233b55;
  }
  a {
    color: #204d7e;
    text-decoration: none;
  }
  .account-link {
    color: #204d7e;
  }
}
/* Active section in the sticky page menu */
.navinner a {
  position: relative;
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
  transition: color 0.15s ease;
}
.navinner a.is-active,
.navinner a[aria-current="location"] {
  color: var(--magenta);
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
}
.navinner a.is-active:hover {
  background: #fdf0f5;
}
/* Shared live register access */
.register-aside {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #60728a;
}
.register-aside .eyebrow {
  color: #b7d1e6;
  margin-bottom: 6px;
}
.register-aside p {
  margin-bottom: 10px;
}
.register-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  padding: 10px 14px;
  background: var(--magenta);
  color: white !important;
  font-weight: 800;
  font-size: 0.83rem;
  text-decoration: none;
  line-height: 1.3;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}
.register-button:hover {
  background: #b71f60;
}
.register-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #eaf8f8;
  border: 1px solid #cceaea;
  border-radius: 13px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.86rem;
  color: #215e68;
}
.register-inline .register-button {
  white-space: nowrap;
}
.site-groups {
  display: grid;
  gap: 19px;
}
.site-group-title {
  font-size: 1.06rem;
  margin: 0 0 11px;
  padding: 0 0 8px;
  border-bottom: 2px solid #dce7f0;
  color: var(--navy);
}
@media (max-width: 480px) {
  .register-inline {
    align-items: flex-start;
  }
  .register-inline .register-button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media (min-width: 601px) {
  html {
    scroll-padding-top: 5rem;
  }
}
/* Mobile refinements: show all eight sections, keep touch targets comfortably sized,
   and preserve the document layout without horizontal page overflow. */
@media (max-width: 600px) {
  html {
    scroll-padding-top: 8.1rem;
  }
  .mast {
    padding: 14px 0;
  }
  .logo {
    width: min(235px, 76vw);
  }
  .navinner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    overflow: visible;
    padding: 6px 0;
  }
  .navinner a {
    min-width: 0;
    min-height: 45px;
    padding: 5px 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.76rem;
    line-height: 1.22;
    text-underline-offset: 4px;
  }
  .navinner a.is-active,
  .navinner a[aria-current="location"] {
    background: #fdf0f5;
    text-underline-offset: 4px;
  }
  .hero {
    padding-top: 24px;
    gap: 18px;
  }
  .hero-aside {
    padding: 19px;
  }
  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .account-link,
  .register-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    overflow-wrap: anywhere;
  }
  .record,
  .card {
    min-width: 0;
  }
  .record-head > :last-child {
    min-width: 0;
  }
  .link-row {
    gap: 8px;
  }
  .expand summary {
    min-height: 48px;
  }
  .tablewrap {
    max-width: 100%;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .tablewrap table {
    min-width: 440px;
  }
  .step {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
  }
  .stepnum {
    width: 30px;
    height: 30px;
  }
  .foot .wrap {
    display: block;
  }
  .foot .wrap > span {
    display: block;
    margin-bottom: 12px;
  }
}
@media (max-width: 350px) {
  .navinner a {
    font-size: 0.71rem;
  }
  .wrap {
    width: calc(100% - 24px);
  }
  h1 {
    font-size: 1.94rem;
  }
  .card {
    padding: 15px;
  }
  .record {
    padding: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .navinner a {
    transition: none;
  }
}
@media print {
  .navinner {
    display: none;
  }
}
.mobile-table-cue {
  display: none;
}
@media (max-width: 600px) {
  .mobile-table-cue {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0 0 7px;
    font-weight: 700;
  }
}
@media print {
  .mobile-table-cue {
    display: none;
  }
}
/* October transition sections share the established UCSA palette and cards. */
.transition-title {
  color: var(--navy);
  font-weight: 800;
  font-size: 1.12rem;
}
.progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.progress-card {
  border-top: 4px solid var(--teal);
}
.progress-card.finalise {
  border-top-color: var(--orange);
}
.progress-card.implementation {
  border-top-color: var(--magenta);
}
.work-list {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 0.89rem;
}
.work-list li {
  margin-bottom: 9px;
}
.register-button {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.register-inline .register-button {
  white-space: normal;
}
.navinner {
  flex-wrap: wrap;
}
html {
  scroll-padding-top: var(--nav-offset, 9rem);
}
@media (max-width: 900px) {
  .progress-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  html {
    scroll-padding-top: var(--nav-offset, 11rem);
  }
}

/* Living project dashboard: current work has a distinct, compact treatment. */
.weekly-focus {
  padding: 24px;
  background: #eaf8f8;
  border: 1px solid #cceaea;
  border-top: 5px solid var(--teal);
  border-radius: 20px;
}
.weekly-grid,
.dashboard-grid,
.programme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.weekly-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.weekly-grid h3 {
  margin: 10px 0 6px;
  font-size: 0.95rem;
}
.weekly-grid p,
.dashboard-grid p {
  font-size: 0.84rem;
  margin-bottom: 0;
}
.review-date {
  margin: 16px 0 0;
  font-size: 0.8rem;
  color: var(--navy);
}
.progress-detail {
  margin-top: 16px;
}
.programme-grid h3 {
  margin: 8px 0;
  font-size: 1rem;
}
#cleanup .register-inline {
  margin-top: 14px;
}
.badge {
  white-space: normal;
}
@media (max-width: 1100px) {
  .weekly-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .weekly-grid,
  .dashboard-grid,
  .programme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .weekly-focus {
    padding: 16px;
  }
  .weekly-grid,
  .dashboard-grid,
  .programme-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .weekly-grid .record {
    padding: 12px;
  }
  .weekly-grid h3 {
    margin-top: 6px;
  }
}

/* Leadership snapshot */
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 12px;
  margin: 16px 0;
}
.snapshot-grid p,
.snapshot-panel p {
  margin: 9px 0;
}
.snapshot-panel,
#network details,
#next details {
  margin-top: 18px;
}
#overview > p {
  max-width: 85ch;
}
#network table {
  width: 100%;
  min-width: 830px;
}
.network-wrap {
  overflow-x: auto;
}
.network-wrap tbody th {
  text-align: left;
}
.network-wrap small {
  display: block;
  font-weight: normal;
  white-space: nowrap;
}
.health {
  display: inline-block;
  border-radius: 1em;
  padding: 3px 9px;
  font-weight: 700;
  font-size: 0.76rem;
  white-space: nowrap;
  color: #21446b;
  background: #eaf2f7;
}
.healthy {
  color: #17634f;
  background: #e4f5ef;
}
.security-issue,
.red .health {
  color: #8b2341;
  background: #ffedf0;
}
.content-gap,
.access-issue,
.amber .health {
  color: #774b12;
  background: #fff1d7;
}
.flag {
  border-top: 4px solid #d49a41;
}
.flag.red {
  border-top-color: #bb405a;
}
.flag h3 {
  margin-top: 9px;
}
.flag dl,
.flag dd {
  margin: 0;
}
.flag dt {
  margin-top: 8px;
  font-weight: 700;
}
.views {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.views dd {
  margin: 0;
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 800;
}
.next-priorities,
.report-sections {
  padding-left: 1.4em;
}
.next-priorities li {
  padding: 4px 0;
}
#reporting {
  scroll-margin-top: var(--nav-offset);
}
