/* WebEscola public site. Mobile-first; colors follow the ILIAS theme in scripts/webescola/theme. */

:root {
  --navy: #132b45;
  --navy-soft: #284662;
  --blue: #235780;
  --blue-hover: #1a4566;
  --blue-soft: #e8f0f7;
  --teal: #108787;
  --teal-text: #0a6c6e;
  --teal-soft: #e2f2f1;
  --focus: #087f83;
  --focus-on-dark: #8fdadb;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #eef2f7;
  --border: #dce4ed;
  --border-control: #7d8c9e;
  --text: #172b43;
  --muted: #53657b;
  --danger: #b42335;
  --danger-text: #8a1a29;
  --danger-soft: #fdf0f2;
  --success: #1d7a4e;
  --success-soft: #e9f6ef;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(19 43 69 / 6%), 0 10px 30px rgb(19 43 69 / 8%);
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 1rem;
  --header: 4rem;
}

@media (min-width: 40em) {
  :root { --gutter: 1.5rem; }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0 0 .75rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.875rem, 1.45rem + 1.9vw, 2.625rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.125rem); }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-hover); }

strong { font-weight: 650; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

main:focus { outline: none; }

[id] { scroll-margin-top: calc(var(--header) + 1rem); }

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; color: #fff; outline-color: var(--focus-on-dark); }

.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .625rem 1.125rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn-lg { min-height: 3.25rem; padding: .875rem 1.5rem; font-size: 1.0625rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }

.btn-secondary { background: var(--surface); color: var(--navy); border-color: #b7c4d3; }
.btn-secondary:hover { background: var(--surface-muted); color: var(--navy); border-color: var(--border-control); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e6edf5; color: var(--navy); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 55%); }
.btn-outline-light:hover { background: rgb(255 255 255 / 10%); color: #fff; border-color: #fff; }

.btn[aria-disabled="true"] { opacity: .7; cursor: progress; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.actions .btn { flex: 1 1 auto; }

@media (min-width: 30em) {
  .actions .btn { flex: 0 0 auto; }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: 2.75rem;
  color: var(--navy);
  font-size: 1.1875rem;
  font-weight: 750;
  letter-spacing: -.01em;
  text-decoration: none;
}

.brand:hover { color: var(--navy); }
.brand img { width: 2.25rem; height: 2.25rem; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 .75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 550;
  text-decoration: none;
}

.main-nav a:not(.btn):hover { background: var(--surface-muted); color: var(--navy); }

.nav-section, .nav-cta { display: none; }
.nav-cta { margin-left: .25rem; }
.main-nav-learning .nav-cta { display: block; }
.main-nav [aria-current="page"] { color: var(--blue); text-decoration: underline; text-underline-offset: .3em; }

@media (min-width: 30em) {
  .nav-cta { display: block; }
}

@media (min-width: 62em) {
  .nav-section { display: block; }
}

/* Hero */

.hero {
  padding: 2.5rem 0 3rem;
  background:
    radial-gradient(48rem 26rem at 88% 0%, var(--teal-soft) 0%, transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-grid > * { min-width: 0; }

@media (min-width: 62em) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3.5rem; }
}

.eyebrow {
  margin-bottom: .875rem;
  color: var(--teal-text);
  font-size: .9375rem;
  font-weight: 650;
}

.hero h1 {
  font-size: clamp(2rem, 1.3rem + 3.1vw, 3.25rem);
  letter-spacing: -.025em;
  line-height: 1.1;
}

.lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
}

.hero .actions { margin: 1.75rem 0 1.25rem; }

.hero-note {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: .9375rem;
}

.hero-note .icon { color: var(--teal-text); margin-top: .1rem; }

/* Illustrative course screen */

.mock { margin: 0; }

.mock-window {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.mock-top {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem 1rem;
  background: var(--navy);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
}

.mock-dots { display: inline-flex; gap: .375rem; }
.mock-dots span { width: .5rem; height: .5rem; border-radius: 50%; background: rgb(255 255 255 / 35%); }

.mock-body { padding: 1.25rem 1rem; }

@media (min-width: 30em) {
  .mock-body { padding: 1.5rem; }
}

.mock-kicker { margin: 0 0 .25rem; color: var(--teal-text); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mock-title { margin: 0 0 1rem; color: var(--navy); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }

.mock-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: .375rem;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
}

.mock-track { height: .5rem; overflow: hidden; background: var(--surface-muted); border-radius: 99px; }
.mock-fill { width: 45%; height: 100%; background: var(--teal); border-radius: inherit; }

.mock-list {
  display: grid;
  gap: .5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.mock-item {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr) auto;
  gap: .625rem;
  align-items: center;
  padding: .625rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  line-height: 1.35;
}

@media (min-width: 30em) {
  .mock-item { font-size: .875rem; }
}

.mock-mark {
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid #b7c4d3;
  border-radius: 50%;
}

.mock-item.done .mock-mark {
  border-color: var(--success);
  background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.mock-item.current { border-color: #b9cfe2; background: #f6f9fc; }
.mock-item.current .mock-mark { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 0 38%, transparent 42%); }

.mock-state {
  padding: .125rem .5rem;
  border-radius: 99px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 650;
  white-space: nowrap;
}

.mock-item.done .mock-state { background: var(--success-soft); color: var(--success); }
.mock-item.current .mock-state { background: var(--blue-soft); color: var(--blue); }

.mock figcaption {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .8125rem;
  text-align: center;
}

/* Sections */

.section { padding: 3.5rem 0; }

@media (min-width: 62em) {
  .section { padding: 5rem 0; }
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.0625rem; }

.cards {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40em) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64em) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .audiences { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
}

/* Icon beside the text on phones keeps the long feature list short; stacked from 40em. */
.card-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 1rem;
  padding: 1.125rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card-item .card-icon { grid-row: span 2; margin: 0; }

@media (min-width: 40em) {
  .card-item { display: block; padding: 1.25rem; }
  .card-item .card-icon { margin-bottom: .875rem; }
}

.card-item h3,
.card-item h2 { margin-bottom: .375rem; font-size: 1.0625rem; }
.card-item p { color: var(--muted); font-size: .9375rem; }

.card-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: .875rem;
  border-radius: var(--radius-sm);
  background: var(--teal-soft);
  color: var(--teal-text);
}

.card-icon .icon { width: 1.375rem; height: 1.375rem; }

.banner {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--blue-soft);
  border: 1px solid #c9d9e8;
  border-radius: var(--radius);
}

.banner .card-icon { margin: 0; flex-shrink: 0; background: #fff; color: var(--blue); }

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 48em) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}

.step {
  padding: 1.5rem 1.25rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

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

/* Pricing */

.plans {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 56em) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.plan-featured { border: 2px solid var(--blue); box-shadow: var(--shadow); }

.plan-badge {
  position: absolute;
  top: -.8125rem;
  left: 1.5rem;
  margin: 0;
  padding: .125rem .75rem;
  background: var(--blue);
  color: #fff;
  border-radius: 99px;
  font-size: .8125rem;
  font-weight: 700;
}

.plan h3 { margin-bottom: .5rem; font-size: 1.3125rem; }
.plan-summary { color: var(--muted); font-size: .9375rem; }

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem;
  margin: .25rem 0 .25rem;
  color: var(--navy);
}

.price-value { font-size: 2.25rem; font-weight: 750; line-height: 1.15; letter-spacing: -.02em; }
.price-custom { font-size: 1.75rem; }
.price-period { color: var(--muted); font-weight: 600; }
.price-annual { margin-bottom: 0; color: var(--muted); font-size: .875rem; }

.plan-list, .pricing-notes {
  display: grid;
  gap: .5rem;
  padding: 0;
  list-style: none;
}

.plan-list { margin: 1.25rem 0 1.5rem; font-size: .9375rem; }

.plan-list li, .pricing-notes li { display: flex; gap: .5rem; align-items: flex-start; }
.plan-list .icon, .pricing-notes .icon { margin-top: .15rem; color: var(--teal-text); }

.plan .btn { margin-top: auto; }

.pricing-notes { margin: 2rem 0 0; color: var(--muted); font-size: .9375rem; }

@media (min-width: 48em) {
  .pricing-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 2rem; }
}

/* FAQ */

.faq { max-width: 48rem; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: .875rem 0;
  color: var(--navy);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: .625rem;
  height: .625rem;
  margin: -.25rem .375rem 0 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .15s ease;
}

.faq details[open] summary::after { margin-top: .25rem; transform: rotate(-135deg); }
.faq details > div { padding: 0 0 1.25rem; color: var(--muted); max-width: 42rem; }

/* Closing call to action */

.cta-band {
  padding: 3.5rem 0;
  background: var(--navy);
  color: #fff;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d6e3; font-size: 1.0625rem; }
.cta-band :focus-visible { outline-color: var(--focus-on-dark); }

.cta-inner { display: grid; gap: 1.5rem; align-items: center; }

@media (min-width: 62em) {
  .cta-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; }
}

/* Footer */

.site-footer {
  padding: 2.5rem 0 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9375rem;
}

.footer-grid { display: grid; gap: 1rem; }

@media (min-width: 48em) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 2rem; }
}

.footer-brand .brand { font-size: 1.0625rem; }
.footer-brand .brand img { width: 2rem; height: 2rem; }
.footer-brand p { margin-top: .25rem; }

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text);
  font-weight: 550;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .875rem;
}

.footer-meta p { margin: 0; }

/* Inner pages */

.page { padding: 2.5rem 0 4rem; }

@media (min-width: 62em) {
  .page { padding: 3.5rem 0 5rem; }
}

.page-head { max-width: 46rem; margin-bottom: 2rem; }
.page-head p { color: var(--muted); font-size: 1.0625rem; }

.split { display: grid; gap: 1.5rem; }
.split > * { min-width: 0; }

@media (min-width: 62em) {
  .split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
}

.card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (min-width: 40em) {
  .card { padding: 2rem; }
}

.aside { padding: 1.5rem; background: var(--surface-muted); border-radius: var(--radius); }
.aside h2 { font-size: 1.125rem; }
.aside h3 { margin: 1.25rem 0 .25rem; font-size: 1rem; }
.aside p, .aside li { color: var(--muted); font-size: .9375rem; }
.aside ol, .aside ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.aside li { margin-bottom: .5rem; }
.aside li::marker { color: var(--navy); font-weight: 700; }

/* Forms */

.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .375rem; }

.field > label, .field-label {
  color: var(--navy);
  font-weight: 650;
  line-height: 1.35;
}

.optional { color: var(--muted); font-weight: 400; }
.hint { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.45; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
  width: 100%;
  min-height: 2.875rem;
  padding: .625rem .75rem;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
  background-color: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.4;
}

textarea { min-height: 9rem; resize: vertical; }

select {
  padding-right: 2.5rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23132b45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right .75rem center;
  background-repeat: no-repeat;
  background-size: 1.125rem;
}

input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}

[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }

.field-error {
  margin: 0;
  color: var(--danger-text);
  font-size: .875rem;
  font-weight: 600;
}

.password-field { display: flex; gap: .5rem; }
.password-field input { flex: 1 1 auto; min-width: 0; }
.password-field .btn { flex: 0 0 auto; min-height: 2.875rem; padding-inline: .875rem; font-size: .9375rem; }

.check {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: .5rem;
  align-items: start;
}

.check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: .2rem 0 0;
  accent-color: var(--blue);
}

.check label { font-weight: 500; color: var(--text); }
.check .field-error { grid-column: 2; }

.form-foot { color: var(--muted); font-size: .875rem; }

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Alerts */

.alert {
  margin-bottom: 1.5rem;
  padding: 1rem 1.125rem;
  border: 1px solid;
  border-radius: var(--radius-sm);
}

.alert h2 { margin-bottom: .5rem; color: inherit; font-size: 1rem; }
.alert ul { margin: 0; padding-left: 1.25rem; }
.alert a { color: inherit; font-weight: 650; }
.alert-error { background: var(--danger-soft); border-color: #efc2c8; color: var(--danger-text); }
.alert-info { background: var(--blue-soft); border-color: #c9d9e8; color: var(--navy); }

/* Status pages (sign-up sent, confirmation) */

.status { max-width: 40rem; margin-inline: auto; }
.status h1 { font-size: clamp(1.625rem, 1.35rem + 1.3vw, 2.25rem); }
.status h2 { margin-top: 1.75rem; font-size: 1.125rem; }
.status ul, .status ol { padding-left: 1.25rem; }
.status li { margin-bottom: .5rem; }
.status .actions { margin-top: 1.5rem; }
.status form { margin: 1.5rem 0 1.25rem; }

.status-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.status-icon .icon { width: 1.625rem; height: 1.625rem; }
.status-icon.is-ok { background: var(--success-soft); color: var(--success); }
.status-icon.is-error { background: var(--danger-soft); color: var(--danger); }

.spinner {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  border: 4px solid var(--surface-muted);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.facts {
  display: grid;
  gap: .25rem 1rem;
  margin: 1.25rem 0;
  padding: 1rem 1.125rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

@media (min-width: 30em) {
  .facts { grid-template-columns: auto minmax(0, 1fr); }
}

.facts dt { color: var(--muted); font-size: .875rem; font-weight: 600; }
.facts dd { margin: 0 0 .5rem; color: var(--navy); font-weight: 650; overflow-wrap: anywhere; }

@media (min-width: 30em) {
  .facts dt { font-size: 1rem; }
  .facts dd { margin: 0; }
}

.email { overflow-wrap: anywhere; }
.muted { color: var(--muted); }

/* Legal pages */

.legal { max-width: 46rem; }
.legal h2 { margin-top: 2.75rem; font-size: 1.375rem; }
.legal h3 { margin-top: 1.5rem; font-size: 1.0625rem; }
.legal ul, .legal ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal li { margin-bottom: .5rem; }
.legal > header { margin-bottom: 1.5rem; }
.legal .updated { color: var(--muted); }

.toc {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toc h2 { margin: .25rem 0 .5rem; font-size: 1rem; }
.toc ol { margin: 0; padding-left: 1.5rem; }
.toc li { margin: 0; }
.toc a { display: inline-flex; align-items: center; min-height: 2.75rem; }

@media (min-width: 48em) {
  .toc ol { columns: 2; column-gap: 2.5rem; }
  .toc li { break-inside: avoid; }
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Public learning retains the same quiet, readable layout throughout the journey. */
.reading-width { max-width: 48rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; font-size: .9rem; }
.learning-layout { display: grid; gap: 2.5rem; align-items: start; }
.lesson-body { max-width: 48rem; min-width: 0; }
.lesson-body > p { line-height: 1.8; }
.lesson-body h2, .course-section-title { margin-top: 2.25rem; }
.lesson-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--surface-muted); border-radius: 4px; padding: .1em .3em; overflow-wrap: anywhere; }
.lesson-code { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; overflow-x: auto; line-height: 1.55; font-size: .9rem; }
.lesson-code code { background: none; padding: 0; overflow-wrap: normal; white-space: pre; }
.lesson-list-items { line-height: 1.8; padding-left: 1.4rem; }
.lesson-list-items li + li { margin-top: .35rem; }
.learning-aside { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--teal); padding: 1.5rem; border-radius: var(--radius-sm); }
.learning-aside h2 { font-size: 1.2rem; }
.learning-aside .btn { display: flex; margin-bottom: .75rem; }
.learning-aside .small { font-size: .875rem; color: var(--muted); }
.learning-aside hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.lesson-list, .course-catalog { padding: 0; list-style: none; }
.lesson-list { counter-reset: lesson; }
.lesson-list li { counter-increment: lesson; padding: 1.25rem 0 1.25rem 2.5rem; border-top: 1px solid var(--border); position: relative; }
.lesson-list li::before { content: counter(lesson, decimal-leading-zero); position: absolute; left: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.lesson-list a { font-weight: 650; }
.lesson-list p { color: var(--muted); margin-top: .35rem; }
.lesson-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem; }
.course-outline { padding-left: 1.25rem; font-size: .925rem; }
.course-outline li { margin-top: .75rem; }
.course-outline [aria-current="page"] { font-weight: 700; color: var(--text); }
.catalog-row { border-top: 1px solid var(--border); padding: 1.5rem 0; max-width: 52rem; }
.catalog-row .card-icon { float: left; margin-right: 1rem; }
.catalog-row > p { margin-left: 3.5rem; }
.catalog-row .course-meta { color: var(--muted); font-size: .875rem; }
@media (min-width: 60em) { .learning-layout { grid-template-columns: minmax(0, 1fr) 19rem; gap: 4rem; } }
@media (max-width: 39.99em) { .header-inner { flex-wrap: wrap; padding-block: .5rem; } }
