@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,500;0,7..72,600;1,7..72,400;1,7..72,500&display=swap");

:root {
  --gtp-ink: #19224a;
  --gtp-slate: #4f5874;
  --gtp-royal: #2445c2;
  --gtp-royal-deep: #1b3599;
  --gtp-marigold: #df6a0e;
  --gtp-mist: #f4f6fb;
  --gtp-line: #e1e5ef;
  --gtp-field: #7d869e;
  --gtp-white: #fff;
  --primary: var(--gtp-royal);
  --primary-container: var(--gtp-royal);
  --secondary: var(--gtp-slate);
  --secondary-container: var(--gtp-royal);
  --surface: var(--gtp-white);
  --surface-container: var(--gtp-mist);
  --surface-container-low: var(--gtp-mist);
  --surface-container-lowest: var(--gtp-white);
  --surface-container-high: var(--gtp-line);
  --on-surface: var(--gtp-ink);
  --on-surface-variant: var(--gtp-slate);
  --outline: var(--gtp-field);
  --outline-variant: var(--gtp-line);
  --font-body: "Hanken Grotesk", Arial, sans-serif;
  --font-scripture: "Literata", Georgia, serif;
  color-scheme: light;
}

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  width: 100%;
  max-width: 100%;
}

body {
  color: var(--gtp-ink);
  background: var(--gtp-white);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.font-display-lg,
.font-display-lg-mobile,
.font-headline-lg,
.font-headline-md,
.font-headline-sm,
.font-title-md {
  font-family: "Literata", Georgia, serif !important;
}

.font-body-md,
.font-body-lg,
.font-label-md,
.font-label-lg,
.font-caption {
  font-family: "Hanken Grotesk", Arial, sans-serif !important;
}

.text-display-lg {
  font-size: clamp(3.5rem, 8vw, 6.75rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em !important;
  font-weight: 500 !important;
}

.text-display-lg-mobile {
  font-size: clamp(2.5rem, 9vw, 3.5rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
  font-weight: 500 !important;
}

.text-headline-lg {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
  font-weight: 500 !important;
}

.text-headline-md {
  font-size: clamp(2rem, 4vw, 3.25rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -.025em !important;
  font-weight: 500 !important;
}

.text-headline-sm {
  font-size: clamp(1.65rem, 3vw, 2.4rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em !important;
  font-weight: 500 !important;
}

.text-title-md {
  font-size: clamp(1.15rem, 2vw, 1.5rem) !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
}

.text-body-md {
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

.text-body-lg {
  font-size: 1.0625rem !important;
  line-height: 1.75 !important;
}

a {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

button,
input,
select,
textarea {
  font: inherit;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  color: var(--gtp-ink);
  border-color: var(--gtp-line);
  background-color: var(--gtp-white);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--gtp-royal) !important;
  box-shadow: 0 0 0 3px rgb(36 69 194 / 12%);
}

button[type="submit"],
a.bg-primary,
a.bg-secondary-container,
button.bg-primary,
button.bg-secondary-container {
  border-radius: 999px !important;
  min-height: 3.25rem;
  font-weight: 600;
  letter-spacing: .01em;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgb(36 69 194 / 35%);
  outline-offset: 3px;
}

/* Shared visitor shell */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--gtp-line);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  width: min(100% - 48px, 1360px);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--gtp-ink);
  text-decoration: none;
}

.site-brand:hover {
  color: var(--gtp-ink);
}

.site-brand img {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.site-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-brand-name {
  color: var(--gtp-ink);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.025em;
}

.brand-period {
  color: var(--gtp-marigold);
}

.site-brand-tagline {
  margin-top: 4px;
  color: var(--gtp-slate);
  font-size: .68rem;
  letter-spacing: .015em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.7vw, 28px);
  margin-left: auto;
}

.desktop-nav a,
.header-login,
.header-account {
  color: var(--gtp-slate);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a {
  position: relative;
  padding: 10px 0;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--gtp-royal);
}

.desktop-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  background: var(--gtp-royal);
  content: "";
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-login,
.header-account {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--gtp-royal);
  border-radius: 999px;
  color: var(--gtp-royal);
}

.header-login:hover,
.header-account:hover {
  background: var(--gtp-royal);
  color: #fff;
}

.site-main {
  min-width: 0;
  width: 100%;
  padding-bottom: 0 !important;
  background: #fff;
}

.site-main > .flex.flex-col.w-full {
  width: min(100%, 1360px);
  margin-inline: auto;
}

.mobile-bottom-nav {
  display: none;
}

.site-footer {
  background: var(--gtp-mist);
  border-top: 1px solid var(--gtp-line);
}

.site-footer-inner {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  padding: 38px 0 24px;
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) 1fr;
  gap: 18px 56px;
  align-items: start;
}

.footer-brand-block > p {
  max-width: 430px;
  margin: 14px 0 0;
  color: var(--gtp-slate);
  font-size: .93rem;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 8px;
}

.footer-links a {
  color: var(--gtp-slate);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gtp-royal);
}

.site-footer-inner > small {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--gtp-line);
  color: var(--gtp-slate);
  font-size: .78rem;
}

.page-content.about-gtp-page {
  width: 100%;
}

.about-gtp-page .container {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

body[data-page="about-gtp.php"] .about-gtp-page > section:first-child {
  color: var(--gtp-ink) !important;
  background: var(--gtp-mist) !important;
  border-bottom: 1px solid var(--gtp-line);
}

body[data-page="about-gtp.php"] .about-gtp-page > section:first-child h1,
body[data-page="about-gtp.php"] .about-gtp-page > section:first-child p {
  color: var(--gtp-ink) !important;
}

.about-gtp-page .about-core-message {
  background: linear-gradient(135deg, var(--gtp-royal-deep), var(--gtp-royal));
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  color: var(--gtp-white);
  padding: clamp(18px, 5vw, 40px);
  text-align: center;
}

.about-gtp-page .about-core-message h3 {
  color: var(--gtp-white);
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  line-height: 1.25;
  margin: 0 0 14px;
}

.about-gtp-page .about-core-message p {
  color: var(--gtp-white);
  line-height: 1.45;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
  white-space: normal;
}

.about-gtp-page .about-core-message .core-message-first {
  font-family: var(--font-scripture);
  font-size: clamp(1.1rem, 4.3vw, 1.25rem);
  font-style: italic;
  margin-bottom: 10px;
}

.about-gtp-page .about-core-message .core-message-second {
  font-size: clamp(1.1rem, 4.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: normal;
  margin-bottom: 0;
  text-transform: none;
}

.about-gtp-page .roles-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-page .container {
  width: min(100% - 48px, 1120px);
  margin-inline: auto;
}

/* Page layouts follow the desktop and mobile reference boards. */
@media (min-width: 900px) {
  .site-main > .flex.flex-col.w-full > section,
  .site-main > .flex.flex-col.w-full > div:not(.max-w-xl) {
    padding-right: 32px;
    padding-left: 32px;
  }

  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(390px, .96fr);
    grid-template-areas:
      "eyebrow visual"
      "title visual"
      "lead visual"
      "truth visual"
      "actions visual";
    align-items: center;
    gap: 18px 64px;
    padding: 68px 56px 74px;
  }

  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:first-child > :nth-child(3) { grid-area: eyebrow; margin: 0; }
  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:first-child > :nth-child(4) { grid-area: title; margin: 0; }
  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:first-child > :nth-child(5) { grid-area: lead; margin: 0; max-width: 590px; font-size: 1.15rem !important; }
  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:first-child > :nth-child(6) { grid-area: visual; height: 100%; min-height: 500px; margin: 0; border-radius: 32px; }
  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:first-child > :nth-child(6) img { min-height: 500px; }
  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:first-child > :nth-child(7) { grid-area: truth; max-width: 580px; margin: 0; border: 1px solid var(--gtp-line); border-radius: 16px; background: var(--gtp-mist); box-shadow: none; }
  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:first-child > :nth-child(8) { grid-area: actions; flex-direction: row; align-items: center; gap: 12px; }
  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:first-child > :nth-child(8) > a { width: auto; min-width: 190px; padding: 0 24px; }

  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:nth-of-type(2) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-top: 36px;
    padding-bottom: 46px;
  }

  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:nth-of-type(2) > div:first-child { grid-column: 1 / -1; }
  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:nth-of-type(2) > a { height: 100%; border: 1px solid var(--gtp-line); }

  body[data-page="gtp-series.php"] .site-main > .flex.flex-col.w-full > section:nth-child(3) {
    position: sticky;
    top: 78px;
    z-index: 30;
    padding-top: 10px;
    padding-bottom: 12px;
    background: rgb(255 255 255 / 96%);
    border-bottom: 1px solid var(--gtp-line);
    backdrop-filter: blur(12px);
  }

  body[data-page="gtp-series.php"] #rolesListContainer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-bottom: 20px;
  }

  body[data-page="gtp-series.php"] #rolesListContainer > #toggleRolesBtn {
    grid-column: 1 / -1;
  }

  body[data-page="gtp-series.php"] #rolesListContainer .role-card {
    min-height: 205px;
    padding: 22px;
    border: 1px solid var(--gtp-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 26px rgb(25 34 74 / 4%);
  }

  body[data-page="become-a-gtp.php"] #gtp-assessment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
  }

  body[data-page="become-a-gtp.php"] #gtp-assessment-form > button { grid-column: 1 / -1; }
  body[data-page="become-a-gtp.php"] #gtp-assessment-form .question-card { border: 1px solid var(--gtp-line); box-shadow: 0 7px 22px rgb(25 34 74 / 4%); }

  body[data-page="programmes.php"] .programmes-layout {
    width: min(100% - 64px, 1200px);
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 0 48px;
  }

  body[data-page="programmes.php"] .programmes-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    align-items: stretch;
    gap: 20px;
  }

  body[data-page="programmes.php"] .programmes-intro > section { min-width: 0; }
  body[data-page="programmes.php"] .programmes-intro > section:first-child > div:first-child { min-height: 300px; }
  body[data-page="programmes.php"] .programmes-intro > section:nth-child(2) { height: 100%; }

  body[data-page="programmes.php"] .programmes-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
  }

  body[data-page="programmes.php"] .programmes-form > section { min-width: 0; }
  body[data-page="programmes.php"] .programmes-form > section:nth-of-type(1),
  body[data-page="programmes.php"] .programmes-form > section:nth-of-type(2),
  body[data-page="programmes.php"] .programmes-form > section:nth-of-type(3) { grid-column: 1 / -1; }
  body[data-page="programmes.php"] #offeringSelectorGroup { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  body[data-page="programmes.php"] .programmes-form > section:nth-of-type(2) > .bg-surface-container-lowest {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
  }

  body[data-page="programmes.php"] .programmes-form > section:nth-of-type(2) > .bg-surface-container-lowest > :nth-child(1),
  body[data-page="programmes.php"] .programmes-form > section:nth-of-type(2) > .bg-surface-container-lowest > :nth-child(2),
  body[data-page="programmes.php"] .programmes-form > section:nth-of-type(2) > .bg-surface-container-lowest > :nth-child(5),
  body[data-page="programmes.php"] .programmes-form > section:nth-of-type(2) > .bg-surface-container-lowest > :nth-child(6),
  body[data-page="programmes.php"] .programmes-form > section:nth-of-type(2) > .bg-surface-container-lowest > :nth-child(7) { grid-column: 1 / -1; }
  body[data-page="programmes.php"] .programmes-form > section:nth-of-type(2) > .bg-surface-container-lowest > :nth-child(4),
  body[data-page="programmes.php"] .programmes-form > section:nth-of-type(2) > .bg-surface-container-lowest > :nth-child(5) { min-width: 0; }

  body[data-page="about-author.php"] .site-main > .flex.flex-col.w-full { max-width: 1180px; }
  body[data-page="about-author.php"] .site-main .rounded-2xl,
  body[data-page="events.php"] .site-main .rounded-xl,
  body[data-page="contact.php"] .site-main .rounded-xl { border-color: var(--gtp-line); }

  body[data-page="become-a-gtp.php"] .site-main > .flex.flex-col.w-full > .px-4.pb-8 { max-width: 1160px; }
}

.role-card,
.question-card,
.stat-card,
.dashboard-card,
.bg-surface-container-lowest {
  border-color: var(--gtp-line);
}

.role-card:hover {
  border-color: var(--gtp-royal);
  box-shadow: 0 14px 32px rgb(25 34 74 / 10%);
}

.custom-alert {
  border-left-color: var(--gtp-royal) !important;
  color: var(--gtp-ink) !important;
}

.custom-alert.alert-error { border-left-color: #ba1a1a !important; }
.custom-alert.alert-warning { border-left-color: var(--gtp-field) !important; }

.likert-btn {
  min-height: 64px;
  border: 1px solid var(--gtp-line);
  background: #fff;
}

.likert-btn.selected,
.likert-btn[aria-pressed="true"] {
  color: #fff !important;
  background: var(--gtp-royal) !important;
  border-color: var(--gtp-royal) !important;
}

/* Older account screens share the same type, fields and palette. */
body.account-auth-page {
  min-height: 100vh;
  background: var(--gtp-mist);
}

.account-auth-topbar {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--gtp-line);
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 4px 18px rgb(25 34 74 / 4%);
}

.account-auth-topbar > div {
  width: min(100%, 1120px);
  min-height: 68px;
  height: auto;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.account-auth-topbar > div > a:first-child img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
}

.account-auth-topbar > div > a:last-child {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-auth-main {
  padding: clamp(20px, 4vh, 44px) 16px 40px;
}

.account-auth-content {
  width: min(100%, 480px);
  max-width: 480px;
  padding: 20px 0 32px;
  justify-content: flex-start;
}

.account-auth-page .account-auth-hero {
  isolation: isolate;
  padding: 26px 24px;
  border: 1px solid rgb(255 255 255 / 14%);
  background: linear-gradient(135deg, var(--gtp-royal-deep), var(--gtp-royal));
  box-shadow: 0 14px 34px rgb(27 53 153 / 16%);
}

.account-auth-logo-shell {
  width: 76px;
  height: 76px;
  border: 1px solid rgb(25 34 74 / 8%);
  box-shadow: 0 6px 18px rgb(25 34 74 / 12%);
}

.account-auth-logo-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
}

.account-auth-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2rem) !important;
  line-height: 1.2 !important;
}

.account-auth-hero p {
  color: rgb(255 255 255 / 88%);
  font-size: .92rem !important;
}

.account-auth-form {
  padding: clamp(20px, 5vw, 28px);
  border-color: var(--gtp-line);
  box-shadow: 0 12px 32px rgb(25 34 74 / 6%);
}

.account-auth-form label {
  color: var(--gtp-ink);
}

.account-auth-form input:not([type="checkbox"]),
.account-auth-form select,
.account-auth-form textarea {
  min-height: 48px;
  border: 1px solid var(--gtp-line);
  border-radius: 10px;
  background: #fff;
}

.account-auth-form input:not([type="checkbox"]):focus-visible,
.account-auth-form select:focus-visible,
.account-auth-form textarea:focus-visible {
  border-color: var(--gtp-royal);
  outline: 3px solid rgb(36 69 194 / 16%);
  outline-offset: 1px;
}

.account-auth-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gtp-royal);
}

.account-auth-form button[type="submit"] {
  min-height: 48px;
  box-shadow: 0 7px 16px rgb(36 69 194 / 18%);
}

.account-auth-content > p a {
  text-underline-offset: 3px;
}

@media (min-height: 820px) {
  .account-auth-content { justify-content: center; }
}

@media (max-width: 480px) {
  .account-auth-main { padding: 12px 12px 28px; }
  .account-auth-content { padding-top: 12px; }
  .account-auth-hero { padding: 22px 18px; }
  .account-auth-topbar > div { padding-inline: 14px; }
}

.header {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--gtp-line);
  background: rgb(255 255 255 / 96%);
  box-shadow: none;
}

.header .logo-text h1,
.dashboard-header h1,
.content-block h2,
.section-title,
.modal h2 {
  color: var(--gtp-ink);
  font-family: "Literata", Georgia, serif;
}

.header .nav-links li a,
.header .nav-menu a {
  color: var(--gtp-slate);
}

.header .nav-links li a.active,
.header .nav-menu a.active {
  color: #fff;
  background: var(--gtp-royal);
}

.btn-primary,
.bg-primary {
  background-color: var(--gtp-royal);
}

.btn-primary:hover,
.bg-primary:hover {
  background-color: var(--gtp-royal-deep);
}

.btn-secondary,
.bg-secondary-container {
  background-color: var(--gtp-royal);
  color: #fff;
}

.btn-secondary:hover,
.bg-secondary-container:hover {
  background-color: var(--gtp-royal-deep);
  color: #fff;
}

.dashboard-section,
.auth-section {
  background: var(--gtp-mist);
}

.admin-login-page {
  background: linear-gradient(135deg, #f4f6fb, #e8edf8) !important;
}

.admin-login-box {
  border: 1px solid var(--gtp-line);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgb(25 34 74 / 12%);
}

@media (max-width: 899px) {
  html { scroll-padding-top: 70px; }

  .site-header-inner {
    width: 100%;
    min-height: 68px;
    padding: 0 18px;
    gap: 12px;
  }

  .site-brand img { height: 36px; }
  .site-brand-tagline { display: none; }
  .desktop-nav { display: none; }
  .header-login,
  .header-account { min-height: 40px; padding: 0 17px; font-size: .85rem; }

  .site-main { padding-bottom: 92px !important; }
  body[data-page="programmes.php"] .site-main { padding-bottom: 36px !important; }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    min-height: calc(66px + env(safe-area-inset-bottom, 0px));
    padding: 6px 4px env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--gtp-line);
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 -6px 24px rgb(25 34 74 / 6%);
    backdrop-filter: blur(14px);
  }

  .mobile-bottom-nav a {
    display: flex;
    min-width: 44px;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    color: var(--gtp-slate);
    font-size: .66rem;
    font-weight: 600;
    line-height: 1.05;
    text-decoration: none;
  }

  .mobile-bottom-nav .material-symbols-outlined { font-size: 21px; }
  .mobile-bottom-nav a.active { color: var(--gtp-royal); }

  .site-footer-inner {
    width: min(100% - 36px, 700px);
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0 20px;
  }

  .footer-links { justify-content: flex-start; gap: 10px 18px; padding-top: 2px; }
  .site-footer-inner > small { grid-column: auto; }

  .site-main > .flex.flex-col.w-full { width: 100%; }
  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:first-child { padding-top: 30px; }
  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:first-child h1 { max-width: 720px; }
  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:first-child > :nth-child(6) { height: 280px; }
  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:nth-of-type(2) { display: flex; }

  body[data-page="gtp-series.php"] .site-main > .flex.flex-col.w-full > section:nth-child(3) { top: 68px; }
  body[data-page="gtp-series.php"] #rolesListContainer { display: flex; }
  body[data-page="become-a-gtp.php"] #gtp-assessment-form { display: flex; }

  body[data-page="programmes.php"] .programmes-layout { width: 100%; max-width: 56rem; gap: 20px; padding: 16px 16px 28px; }
  body[data-page="programmes.php"] .programmes-intro { display: flex; gap: 16px; }
  body[data-page="programmes.php"] .programmes-intro > section:first-child > div:first-child { min-height: 0; }
  body[data-page="programmes.php"] .programmes-form { display: flex; gap: 18px; }
  body[data-page="programmes.php"] #offeringSelectorGroup { grid-template-columns: minmax(0, 1fr); }
  body[data-page="programmes.php"] .programmes-form > section:nth-of-type(2) > .bg-surface-container-lowest { display: flex; }
}

@media (max-width: 480px) {
  .text-headline-lg { font-size: 2.45rem !important; }
  .text-headline-md { font-size: 2rem !important; }
  .text-headline-sm { font-size: 1.65rem !important; }

  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:first-child { padding-top: 22px; }
  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:first-child > :nth-child(6) { height: 230px; }
  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:first-child > :nth-child(8) { gap: 10px; }
  body[data-page="index.php"] .site-main > .flex.flex-col.w-full > section:first-child > :nth-child(8) > a { font-size: .8rem; }

  body[data-page="become-a-gtp.php"] #gtp-assessment-form .question-card { padding: 14px; }
  body[data-page="become-a-gtp.php"] .likert-btn { min-height: 60px; padding: 7px 2px; }
  body[data-page="become-a-gtp.php"] .likert-btn .font-caption { font-size: 9px !important; }
}

@media (min-width: 900px) and (max-width: 1120px) {
  .site-header-inner { width: min(100% - 32px, 1360px); gap: 14px; }
  .desktop-nav { gap: 10px; }
  .desktop-nav a { font-size: .78rem; }
  .site-brand-tagline { display: none; }
  .site-brand img { height: 36px; }
  .header-login,
  .header-account { padding-inline: 14px; }
}

@media (min-width: 900px) {
  body[data-page="about-author.php"] .site-main > .flex.flex-col.w-full > .max-w-xl {
    width: min(100% - 64px, 1120px);
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: start;
    gap: 20px;
    padding-top: 36px;
    padding-bottom: 48px;
  }

  body[data-page="about-author.php"] .site-main > .flex.flex-col.w-full > .max-w-xl > section:first-child {
    grid-row: span 2;
    border: 1px solid var(--gtp-line);
    box-shadow: 0 12px 32px rgb(25 34 74 / 6%);
  }

  body[data-page="about-author.php"] .site-main > .flex.flex-col.w-full > .max-w-xl > section:first-child > div:first-child {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
    gap: 8px 28px;
    padding: 34px;
    text-align: left;
  }

  body[data-page="about-author.php"] .site-main > .flex.flex-col.w-full > .max-w-xl > section:first-child > div:first-child > div:first-child {
    grid-row: 1 / 5;
    margin: 0;
  }

  body[data-page="about-author.php"] .site-main > .flex.flex-col.w-full > .max-w-xl > section:first-child > div:first-child > div:first-child > div:first-child {
    padding: 0;
    border-radius: 20px;
    background: transparent;
    box-shadow: none;
  }

  body[data-page="about-author.php"] .site-main > .flex.flex-col.w-full > .max-w-xl > section:first-child img {
    width: 220px;
    height: 280px;
    border-radius: 18px;
  }

  body[data-page="about-author.php"] .site-main > .flex.flex-col.w-full > .max-w-xl > section:first-child .flex.flex-wrap {
    justify-content: flex-start;
  }

  body[data-page="about-author.php"] .site-main > .flex.flex-col.w-full > .max-w-xl > section:nth-child(2) .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 899px) {
  .site-footer { padding-bottom: 72px; }
}
