@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/SourceSans3-Latin-Variable.woff2") format("woff2");
}

:root {
  --navy: #182b49;
  --navy-deep: #101f36;
  --gold: #c69214;
  --gold-bright: #f5c242;
  --blue: #00629b;
  --blue-dark: #004f7d;
  --light-blue: #dae8f0;
  --sand: #f5f0e6;
  --green: #6e963b;
  --ink: #182b49;
  --text: #344861;
  --muted: #627187;
  --line: #d6dee7;
  --surface: #ffffff;
  --surface-soft: #f4f7fa;
  --danger-soft: #fff4d6;
  --shadow: 0 12px 30px rgba(24, 43, 73, 0.12);
  --content: 1180px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
}

body.aida-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

h3 {
  font-size: 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  color: white;
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}

.header-shell {
  width: min(calc(100% - 40px), 1580px);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.site-brand img {
  width: 170px;
  height: auto;
}

.site-brand span {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  font-size: 1.12rem;
  font-weight: 800;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.primary-nav a,
.nav-aida {
  border: 0;
  color: var(--navy);
  background: transparent;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.primary-nav a:hover,
.nav-aida:hover,
.primary-nav a[aria-current="page"] {
  color: var(--blue);
}

.primary-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 9px;
}

.primary-nav .nav-aida {
  padding: 9px 13px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  color: var(--blue);
}

.primary-nav .nav-aida:hover {
  color: white;
  background: var(--blue);
}

.primary-nav .nav-signin {
  color: var(--muted);
  font-weight: 600;
}

.nav-account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav .nav-create-account {
  padding: 9px 13px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  min-width: 76px;
  min-height: 42px;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  color: var(--navy);
  background: white;
  font-weight: 700;
}

.mobile-aida {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: var(--gold-bright);
  font-weight: 800;
  cursor: pointer;
}

.hero {
  min-height: 620px;
  display: grid;
  align-items: center;
  color: white;
  background:
    linear-gradient(90deg, rgba(16, 31, 54, 0.98) 0%, rgba(16, 31, 54, 0.9) 38%, rgba(16, 31, 54, 0.18) 72%),
    url("assets/hpc-hero.png") center / cover no-repeat;
}

.hero-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 80px 0 68px;
}

.hero-content {
  max-width: 720px;
}

.hero h1,
.hero h2 {
  color: white;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 22px;
}

.hero .lede {
  max-width: 650px;
  margin-bottom: 32px;
  color: #edf4f8;
  font-size: 1.32rem;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold-bright);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
}

.route-action {
  min-height: 94px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  color: white;
  background: rgba(16, 31, 54, 0.72);
  text-decoration: none;
}

button.route-action {
  text-align: left;
  cursor: pointer;
}

.route-action:hover {
  border-color: var(--gold-bright);
  color: white;
  background: rgba(0, 98, 155, 0.9);
}

.route-action strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1.08rem;
}

.route-action span {
  color: #e2ecf2;
  font-size: 0.91rem;
}

.section,
.page-hero,
.band {
  width: 100%;
}

.section-shell,
.page-hero__shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.section {
  padding: 82px 0;
}

.section--compact {
  padding: 56px 0;
}

.section--soft {
  background: var(--surface-soft);
}

.section--blue {
  background: var(--light-blue);
}

.section--sand {
  background: var(--sand);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 12px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading--split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-heading--split > div {
  max-width: 760px;
}

#buttons {
  margin-bottom: 20px;
}

.text-link {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.topic-grid,
.program-grid,
.material-grid,
.event-grid,
.path-grid {
  display: grid;
  gap: 18px;
}

.topic-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.material-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-grid,
.path-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.browse-tile,
.program-card,
.path-card,
.event-card,
.material-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.browse-tile {
  min-height: 146px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 23px;
  color: var(--ink);
  text-decoration: none;
}

.browse-tile:hover {
  border-color: var(--blue);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.browse-tile__type {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.browse-tile strong {
  font-size: 1.35rem;
}

.browse-tile span:last-child {
  color: var(--blue);
  font-weight: 700;
}

.material-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.material-card--compact {
  min-height: 310px;
}

.material-card__body {
  flex: 1;
  padding: 25px 25px 18px;
}

.material-card__meta {
  min-height: 24px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.material-card h3 {
  margin-bottom: 12px;
}

.material-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.material-card h3 a:hover {
  color: var(--blue);
}

.material-card p {
  color: var(--text);
  font-size: 0.96rem;
}

.material-card__footer {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 25px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 0.86rem;
}

.material-card__footer > span {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--light-blue);
  font-size: 0.78rem;
  font-weight: 700;
}

.program-card,
.path-card {
  min-height: 260px;
  padding: 30px;
}

.program-card h3,
.path-card h3 {
  margin-bottom: 12px;
  font-size: 1.65rem;
}

.program-card p,
.path-card p {
  color: var(--muted);
}

.program-card__footer,
.path-card__footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  color: white;
  background: var(--blue);
}

.button--primary:hover {
  color: white;
  background: var(--blue-dark);
}

.button--gold {
  color: var(--navy);
  background: var(--gold-bright);
}

.button--gold:hover {
  color: var(--navy);
  background: #ffd86c;
}

.button--secondary {
  border-color: var(--navy);
  color: var(--navy);
  background: white;
}

.button--secondary:hover {
  color: white;
  background: var(--navy);
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0;
  color: var(--text);
  font-size: 0.95rem;
}

.auth-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.auth-checkbox small {
  color: var(--muted);
}

.maintainer-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.role-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--navy);
  background: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.maintainer-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}

.maintainer-summary > div {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  background: var(--surface-soft);
}

.maintainer-summary strong {
  color: var(--navy);
  font-size: 2.2rem;
  line-height: 1;
}

.maintainer-summary span,
.form-help {
  color: var(--muted);
  font-size: 0.95rem;
}

.maintainer-heading {
  margin-bottom: 28px;
}

.maintainer-form {
  display: grid;
  gap: 28px;
  max-width: 960px;
}

.maintainer-form fieldset {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.maintainer-form legend {
  padding: 0 8px;
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid--wide {
  grid-column: 1 / -1;
}

.maintainer-form .auth-fields,
.maintainer-form .auth-field {
  overflow: visible;
  clip: auto;
  white-space: normal;
  margin: 0;
}

.maintainer-form .auth-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-weight: 700;
}

.maintainer-form input,
.maintainer-form textarea,
.maintainer-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: white;
}

.maintainer-form textarea {
  resize: vertical;
}

.form-help {
  margin: 0 0 16px;
}

.resource-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.4fr 1fr;
  gap: 14px;
}

.resource-row input[type="file"] {
  padding: 8px;
  font-size: 0.9rem;
}

.maintainer-form__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.maintainer-form__actions .auth-status {
  margin: 0;
}

.draft-panel {
  max-width: 960px;
  margin-top: 42px;
  padding: 26px;
  border-left: 4px solid var(--gold);
  background: var(--sand);
}

.draft-panel h2 {
  margin: 5px 0 8px;
  font-size: 1.7rem;
}

.draft-panel p {
  margin: 0;
}

.auth-page {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  padding: 76px 0;
  background: linear-gradient(135deg, var(--surface-soft) 0%, var(--light-blue) 100%);
}

.auth-shell {
  width: min(calc(100% - 40px), 980px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 76px;
  align-items: center;
}

.auth-intro {
  max-width: 510px;
}

.auth-intro h1 {
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 5vw, 4.35rem);
}

.auth-intro > p {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1.17rem;
}

.auth-intro .auth-intro__note {
  max-width: 430px;
  margin-top: 28px;
  margin-bottom: 0;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-size: 0.94rem;
}

.auth-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  margin: 10px;
}

.auth-card__heading {
  margin-bottom: 26px;
}

.auth-card__heading h2 {
  margin-bottom: 7px;
  font-size: 2rem;
}

.auth-card__heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.auth-switch {
  padding: 0;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-switch:hover {
  color: var(--blue);
}

.auth-fields {
  display: grid;
  gap: 18px;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 800;
}

.auth-field input,
.auth-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid #aab8c7;
  border-radius: var(--radius);
  color: var(--ink);
  background: white;
  font: inherit;
  resize: vertical;
}

.auth-status {
  min-height: 1.55em;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.saved-material-choice {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  padding: 9px 11px;
  border-radius: var(--radius);
  color: var(--text) !important;
  font-weight: 400 !important;
  cursor: pointer;
}

.saved-material-choice:hover {
  background: var(--surface-soft);
}

.saved-material-choice input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.saved-material-choice span {
  line-height: 1.35;
}

.auth-submit,
.auth-create-action {
  width: 100%;
}

.auth-create-action {
  margin-top: 12px;
}

.aida-band {
  color: white;
  background: var(--navy);
}

.aida-band__layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: 70px;
}

.aida-band h2 {
  color: white;
}

.aida-band p {
  color: #dce7ee;
}

.aida-band__sample {
  padding: 28px;
  border-left: 4px solid var(--gold-bright);
  background: rgba(255, 255, 255, 0.08);
}

.aida-band__sample strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-bright);
}

.account-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 34px 0;
}

.account-band h2 {
  margin-bottom: 7px;
  font-size: 1.5rem;
}

.account-band p {
  margin-bottom: 0;
}

.prototype-note {
  padding: 12px 15px;
  border-left: 4px solid var(--gold);
  color: var(--navy);
  background: var(--danger-soft);
  font-size: 0.9rem;
}

.page-hero {
  padding: 64px 0 58px;
  color: white;
  background: var(--navy);
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 14px;
  color: white;
  font-size: clamp(2.5rem, 4.5vw, 4.4rem);
}

.page-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: #dce7ee;
  font-size: 1.2rem;
}

.page-hero .eyebrow {
  color: var(--gold-bright);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.catalog-filters {
  position: sticky;
  top: 100px;
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 800;
}

.filter-group select,
.catalog-search {
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid #aab8c7;
  border-radius: var(--radius);
  color: var(--ink);
  background: white;
}

.catalog-search-wrap {
  position: relative;
  margin-bottom: 22px;
}

.catalog-search {
  padding-right: 52px;
  font-size: 1.05rem;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.catalog-count {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.active-filters {
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  background: var(--light-blue);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.catalog-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.empty-state {
  padding: 54px 28px;
  border: 1px dashed #9aacbd;
  text-align: center;
  background: var(--surface-soft);
}

.empty-state h2 {
  font-size: 1.6rem;
}

.material-hero {
  padding: 56px 0;
  background: var(--sand);
}

.material-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.65fr);
  gap: 64px;
  align-items: start;
}

.material-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 4.2vw, 4.2rem);
}

.material-summary {
  max-width: 780px;
  font-size: 1.16rem;
}

.material-facts {
  border-top: 4px solid var(--gold);
  padding: 24px;
  background: white;
}

.fact-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.fact-row:last-child {
  border-bottom: 0;
}

.fact-row strong,
.fact-row span {
  display: block;
}

.fact-row strong {
  color: var(--ink);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.resource-link {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  color: var(--navy);
  background: white;
  text-decoration: none;
}

.resource-link:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.path-detail {
  display: none;
  margin-top: 10px;
}

.path-detail.is-active {
  display: block;
}

.path-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 50px;
  margin-bottom: 44px;
}

.path-meta {
  padding: 24px;
  border-top: 4px solid var(--green);
  background: var(--surface-soft);
}

.path-steps {
  counter-reset: path-step;
  display: grid;
  gap: 20px;
}

.path-step {
  counter-increment: path-step;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.path-step::before {
  content: counter(path-step);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-weight: 800;
}

.path-step h3 {
  margin-bottom: 7px;
}

.event-card {
  min-height: 300px;
  padding: 25px;
}

.event-card__date {
  margin-bottom: 14px;
  color: var(--blue);
  font-weight: 800;
}

.event-card h3 {
  margin-bottom: 10px;
}

.event-card__type {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-card .prototype-note {
  margin-top: 20px;
}

.event-detail {
  max-width: 820px;
}

.event-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.site-footer {
  padding: 58px 0 42px;
  color: #d7e2e9;
  background: var(--navy-deep);
}

.footer-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
}

.footer-shell h2 {
  margin-bottom: 14px;
  color: white;
  font-size: 1rem;
}

.footer-shell a {
  display: block;
  margin-bottom: 9px;
  color: #d7e2e9;
}

.footer-shell p {
  font-size: 0.91rem;
}

.footer-brand img {
  width: 210px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.prototype-label {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.aida-launcher {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 65;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 10px;
  border: 0;
  border-radius: 30px;
  color: white;
  background: var(--navy);
  box-shadow: 0 10px 30px rgba(16, 31, 54, 0.28);
  font-weight: 800;
  cursor: pointer;
}

.aida-launcher:hover {
  background: var(--blue);
}

.aida-launcher__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--gold-bright);
  font-weight: 800;
}

.aida-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(16, 31, 54, 0.52);
}

.aida-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 75;
  width: min(440px, 100%);
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  color: var(--text);
  background: white;
  box-shadow: -18px 0 45px rgba(16, 31, 54, 0.2);
  transform: translateX(105%);
  transition: transform 200ms ease;
}

.aida-drawer.is-open {
  transform: translateX(0);
}

.aida-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  color: white;
  background: var(--navy);
}

.aida-header h2 {
  margin: 0;
  color: white;
  font-size: 1.55rem;
}

.aida-header .eyebrow {
  margin-bottom: 3px;
  color: var(--gold-bright);
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: white;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.aida-context {
  padding: 11px 24px;
  color: var(--navy);
  background: var(--light-blue);
  font-size: 0.86rem;
}

.aida-messages {
  overflow-y: auto;
  padding: 22px;
  background: var(--surface-soft);
}

.aida-message {
  max-width: 92%;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
}

.aida-message p:last-child {
  margin-bottom: 0;
}

.aida-message--assistant {
  border: 1px solid var(--line);
  background: white;
}

.aida-message--user {
  margin-left: auto;
  color: white;
  background: var(--blue);
}

.aida-message.is-caution {
  border-left: 4px solid var(--gold);
  background: var(--danger-soft);
}

.aida-suggestions {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.aida-suggestions button {
  padding: 10px 12px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  color: var(--blue-dark);
  background: white;
  text-align: left;
  cursor: pointer;
}

.aida-suggestions button:hover {
  background: var(--light-blue);
}

.aida-results {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.aida-result {
  display: block;
  padding: 10px 12px;
  border-left: 3px solid var(--blue);
  color: var(--navy);
  background: var(--surface-soft);
  text-decoration: none;
}

.aida-result strong,
.aida-result span {
  display: block;
}

.aida-result span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.aida-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.aida-form input {
  min-width: 0;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid #9aacbd;
  border-radius: var(--radius);
}

.aida-form button {
  min-width: 74px;
  border: 0;
  border-radius: var(--radius);
  color: white;
  background: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 1280px) {
  .site-brand span {
    display: none;
  }

  .primary-nav {
    gap: 15px;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .material-grid,
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1060px) {
  .header-shell {
    min-height: 72px;
    justify-content: flex-start;
  }

  .mobile-aida,
  .menu-toggle {
    display: grid;
  }

  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    padding: 16px 20px 22px;
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a,
  .nav-aida {
    min-height: 42px;
    display: flex;
    align-items: center;
  }

  .primary-nav a[aria-current="page"] {
    text-underline-offset: 5px;
  }

  .hero {
    min-height: 650px;
    background-position: 62% center;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .route-action {
    min-height: 74px;
  }

  .catalog-layout,
  .material-hero__layout,
  .path-overview,
  .aida-band__layout,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    max-width: 620px;
    gap: 38px;
  }

  .auth-intro {
    max-width: 560px;
  }

  .catalog-filters {
    position: static;
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header-shell,
  .hero-shell,
  .section-shell,
  .page-hero__shell,
  .footer-shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .site-brand img {
    width: 145px;
  }

  .maintainer-hero {
    display: block;
  }

  .role-badge {
    display: inline-block;
    margin-top: 20px;
  }

  .maintainer-summary,
  .form-grid,
  .resource-row {
    grid-template-columns: 1fr;
  }

  .maintainer-form fieldset {
    padding: 18px;
  }

  .maintainer-form__actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 720px;
    background:
      linear-gradient(180deg, rgba(16, 31, 54, 0.97) 0%, rgba(16, 31, 54, 0.86) 68%, rgba(16, 31, 54, 0.72) 100%),
      url("assets/hpc-hero.png") 67% center / cover no-repeat;
  }

  .hero-shell {
    padding: 58px 0 110px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero .lede {
    font-size: 1.1rem;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading--split,
  .account-band,
  .catalog-toolbar {
    display: block;
  }

  .section-heading--split .text-link,
  .catalog-toolbar .button {
    display: inline-flex;
    margin-top: 14px;
  }

  .topic-grid,
  .material-grid,
  .program-grid,
  .path-grid,
  .event-grid,
  .catalog-results,
  .resource-list {
    grid-template-columns: 1fr;
  }

  .material-card {
    min-height: 0;
  }

  .material-card__footer {
    align-items: start;
    flex-direction: column;
  }

  .program-card,
  .path-card {
    min-height: 0;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .aida-launcher {
    display: none;
  }

  .aida-form {
    grid-template-columns: minmax(0, 1fr) 68px;
  }

  .page-hero {
    padding: 48px 0;
  }

  .auth-page {
    min-height: 0;
    padding: 52px 0;
  }

  .auth-shell {
    width: min(calc(100% - 28px), var(--content));
    gap: 30px;
  }

  .auth-intro h1 {
    font-size: 2.8rem;
  }

  .auth-card {
    padding: 26px 20px;
  }


}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* v0.0.6 signed-in experience */

.account-menu {
  position: relative;
}

.account-menu__trigger {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 9px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: white;
  font-weight: 800;
  cursor: pointer;
}

.account-menu__trigger:hover,
.account-menu__trigger[aria-expanded="true"] {
  border-color: var(--blue);
  background: var(--surface-soft);
}

.account-avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.account-avatar--gold {
  color: var(--navy);
  background: var(--gold-bright);
}

.account-chevron {
  color: var(--muted);
  font-size: 0.75rem;
}

.account-menu__panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.account-menu__panel[hidden] {
  display: none;
}

.account-menu__identity {
  display: grid;
  gap: 2px;
  padding: 10px 10px 13px;
  border-bottom: 1px solid var(--line);
}

.account-menu__identity span {
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.account-menu__identity .role-chip {
  width: fit-content;
  margin-top: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--sand);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-menu__panel > a,
.account-menu__panel > button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  color: var(--navy);
  background: transparent;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-menu__panel > a:hover,
.account-menu__panel > button:hover {
  color: var(--blue);
  background: var(--surface-soft);
}

.bookmark-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: white;
  font-weight: 800;
  cursor: pointer;
}

.bookmark-button:hover {
  border-color: var(--gold);
  background: #fffaf0;
}

.bookmark-button.is-saved {
  border-color: var(--gold);
  color: #725100;
  background: #fff4cf;
}

.bookmark-button > span:first-child {
  font-size: 1.25rem;
  line-height: 1;
}

.material-card {
  position: relative;
}

.material-card > .bookmark-button--compact {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 42px;
  padding: 0;
  border-radius: 50%;
}

.material-card__body {
  padding-right: 66px;
}

.material-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.material-title-row h1 {
  flex: 1;
}

.site-toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 24px;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 18px;
  border-radius: var(--radius);
  color: white;
  background: var(--navy-deep);
  box-shadow: var(--shadow);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.auth-shell {
  width: min(calc(100% - 40px), 1120px);
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 72px;
}

.auth-back {
  display: inline-flex;
  margin-bottom: 42px;
  font-weight: 700;
}

.auth-benefits {
  display: grid;
  gap: 13px;
  margin-top: 32px;
}

.auth-benefits > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  align-items: start;
}

.auth-benefits > div > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-dark);
  background: white;
  font-weight: 800;
}

.auth-benefits p {
  margin: 0;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.35;
}

.auth-stack {
  display: grid;
  gap: 18px;
}

.auth-card {
  margin: 0;
}

.auth-step {
  display: block;
  margin-bottom: 7px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.field-link,
.text-button,
.text-link[type="button"] {
  padding: 0;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-button--danger {
  color: #a63a32;
}

.auth-callout {
  margin: -8px 0 20px;
  padding: 11px 13px;
  border-left: 3px solid var(--gold);
  color: var(--navy);
  background: #fff8e7;
  font-size: 0.9rem;
}

.auth-status.is-success {
  color: #466c20;
  font-weight: 700;
}

.prototype-inline {
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-accounts {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.demo-accounts h2 {
  margin: 3px 0 6px;
  font-size: 1.35rem;
}

.demo-accounts p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.demo-account-grid {
  display: grid;
  gap: 9px;
}

.demo-account {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: white;
  text-align: left;
  cursor: pointer;
}

.demo-account:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(24, 43, 73, 0.09);
}

.demo-account span:nth-child(2) {
  display: grid;
}

.demo-account small {
  margin-top: 2px;
  color: var(--muted);
}

.auth-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.auth-progress span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-progress span strong {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
}

.auth-progress span.is-current,
.auth-progress span.is-complete {
  color: var(--blue-dark);
}

.auth-progress span.is-current strong,
.auth-progress span.is-complete strong {
  border-color: var(--blue);
  color: white;
  background: var(--blue);
}

.auth-progress i {
  height: 1px;
  background: var(--line);
}

.verification-demo {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  background: #fffaf0;
}

.verification-demo span,
.verification-demo small {
  color: var(--muted);
  font-size: 0.8rem;
}

.verification-demo strong {
  color: var(--navy);
  font-size: 2rem;
  letter-spacing: 0.2em;
}

.verification-input {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.18em;
  text-align: center;
}

.verification-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.learner-home {
  color: white;
  background: var(--navy-deep);
}

.learner-home__shell {
  padding-top: 58px;
  padding-bottom: 42px;
}

.learner-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
}

.learner-welcome h1,
.maintainer-home-callout h1 {
  margin: 3px 0 10px;
  color: white;
  font-size: 3.4rem;
}

.learner-welcome p,
.maintainer-home-callout p {
  max-width: 690px;
  margin-bottom: 0;
  color: #dce7f2;
  font-size: 1.12rem;
}

.learner-home__actions,
.account-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.learner-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.18);
}

.learner-stat-grid > a,
.learner-stat-grid > button {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border: 0;
  color: white;
  background: var(--navy);
  text-decoration: none;
  cursor: pointer;
}

.learner-stat-grid > a:hover,
.learner-stat-grid > button:hover {
  color: white;
  background: #213a60;
}

.learner-stat-grid strong {
  color: var(--gold-bright);
  font-size: 1.8rem;
}

.learner-stat-grid span {
  font-weight: 700;
}

.learner-overview {
  padding-top: 42px;
}

.learner-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 42px;
  align-items: start;
}

.learner-overview__main {
  min-width: 0;
}

.continue-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid #bdd2df;
  border-radius: var(--radius);
  background: #eef6fa;
}

.continue-card__mark,
.empty-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-weight: 800;
}

.continue-card h3 {
  margin: 4px 0 6px;
}

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

.continue-card p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-track {
  height: 7px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: #ccdbe4;
}

.progress-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--green);
}

.progress-row strong {
  color: var(--navy);
  font-size: 0.82rem;
}

.personal-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 38px 0 18px;
}

.personal-section-heading h2 {
  margin: 2px 0 0;
  font-size: 2rem;
}

.personal-section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.material-grid--personal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.learner-rail {
  display: grid;
  gap: 18px;
}

.rail-panel {
  padding: 24px;
  border-left: 4px solid var(--green);
  background: var(--surface-soft);
}

.rail-panel--aida {
  border-left-color: var(--gold);
  background: var(--sand);
}

.rail-panel h2 {
  margin: 5px 0 9px;
  font-size: 1.35rem;
}

.rail-panel p {
  color: var(--muted);
  font-size: 0.92rem;
}

.learner-empty {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px dashed #9badbe;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.learner-empty > div {
  flex: 1;
}

.learner-empty h2,
.learner-empty h3,
.learner-empty p {
  margin-bottom: 5px;
}

.learner-empty p {
  color: var(--muted);
}

.learner-empty--large {
  min-height: 290px;
  justify-content: center;
}

.maintainer-home-callout {
  padding: 64px 0;
  color: white;
  background: var(--navy-deep);
}

.maintainer-home-callout .section-shell,
.my-learning-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.account-band {
  align-items: center;
}

.my-learning-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.my-learning-tabs {
  display: flex;
  gap: 6px;
}

.my-learning-tabs button {
  min-height: 46px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.my-learning-tabs button[aria-selected="true"] {
  border-bottom-color: var(--gold);
  color: var(--navy);
}

.my-learning-tabs button span {
  min-width: 24px;
  display: inline-grid;
  place-items: center;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--light-blue);
  font-size: 0.78rem;
}

.my-learning-content {
  padding-top: 10px;
}

.path-builder {
  margin: 20px 0 36px;
  padding: 28px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: #f3f9fc;
}

.path-builder__heading,
.saved-path-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.path-builder__heading h2,
.saved-path-card__heading h2 {
  margin: 3px 0 6px;
}

.path-builder__heading p,
.saved-path-card__heading p {
  margin: 0;
  color: var(--muted);
}

.icon-button--light {
  color: var(--navy);
  background: white;
}

.path-builder__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 30px;
}

.path-choice-list {
  max-height: 330px;
  margin: 0;
  padding: 16px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.path-choice-list legend {
  padding: 0 6px;
  color: var(--navy);
  font-weight: 800;
}

.saved-material-choice span {
  display: grid;
}

.saved-material-choice small {
  margin-top: 3px;
  color: var(--muted);
}

.path-builder__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.saved-path-list {
  display: grid;
  gap: 24px;
}

.saved-path-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.path-step--saved {
  grid-template-columns: 54px minmax(0, 1fr);
}

.path-step__content {
  min-width: 0;
}

.path-step--saved h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

.path-step--saved h3 a {
  overflow-wrap: anywhere;
}

.path-step--saved p {
  max-width: 78ch;
  color: var(--muted);
}

@media (max-width: 1260px) {
  .header-shell {
    width: min(calc(100% - 28px), 1180px);
  }

  .primary-nav {
    gap: 12px;
  }

  .primary-nav a,
  .nav-aida {
    font-size: 0.88rem;
  }

  .site-brand span {
    display: none;
  }
}

@media (max-width: 980px) {
  .learner-welcome,
  .maintainer-home-callout .section-shell,
  .my-learning-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .learner-overview__grid,
  .path-builder__grid {
    grid-template-columns: 1fr;
  }

  .learner-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-account-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .primary-nav .account-menu {
    width: 100%;
  }

  .account-menu__trigger {
    width: 100%;
    justify-content: flex-start;
  }

  .account-menu__panel {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }

  .learner-home__shell {
    padding-top: 42px;
  }

  .learner-welcome h1,
  .maintainer-home-callout h1 {
    font-size: 2.55rem;
  }

  .learner-stat-grid,
  .learner-rail,
  .material-grid--personal {
    grid-template-columns: 1fr;
  }

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

  .continue-card > .button {
    grid-column: 1 / -1;
  }

  .personal-section-heading,
  .my-learning-shell,
  .path-builder__heading,
  .saved-path-card__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .learner-empty {
    align-items: flex-start;
    flex-direction: column;
  }

  .my-learning-tabs {
    width: 100%;
  }

  .my-learning-tabs button {
    flex: 1;
  }

  .verification-actions,
  .path-builder__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .material-title-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .auth-back {
    margin-bottom: 28px;
  }

  .auth-progress span {
    font-size: 0.72rem;
  }

  .learner-home__actions,
  .account-band__actions,
  .learner-home__actions .button,
  .account-band__actions .button {
    width: 100%;
  }

  .my-learning-tabs {
    align-items: stretch;
    flex-direction: column;
  }

  .my-learning-tabs button {
    width: 100%;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-toast {
    transition: none;
  }
}
