:root {
  --ink: #102f38;
  --ink-2: #214752;
  --muted: #647477;
  --paper: #fff8ef;
  --white: #ffffff;
  --mint: #b8f5dc;
  --mint-2: #e6fff2;
  --coral: #ef705f;
  --amber: #ffbf69;
  --blue: #8fd3ff;
  --teal: #195866;
  --line: rgba(16, 47, 56, 0.14);
  --shadow: 0 24px 70px rgba(16, 47, 56, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 10%, rgba(184, 245, 220, 0.8), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(239, 112, 95, 0.18), transparent 25%),
    linear-gradient(135deg, var(--paper), #effcf5 58%, #d5f4e7);
  color: var(--ink);
  font-family: Avenir Next, Trebuchet MS, Verdana, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

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

small {
  font-size: 1rem;
}

:focus-visible {
  outline: 4px solid var(--amber);
  outline-offset: 4px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 12px max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 239, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  background: var(--ink);
  color: var(--mint);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: -0.04em;
}

.brand small {
  color: var(--muted);
  font-size: 1rem;
}

.nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.nav a,
.ghost-button,
.secondary-button,
.primary-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 52px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
}

.nav a[aria-current="page"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.primary-button {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
  font-weight: 850;
}

.secondary-button {
  border-color: rgba(239, 112, 95, 0.42);
  background: rgba(239, 112, 95, 0.12);
  color: var(--ink);
  font-weight: 850;
}

.ghost-button {
  color: var(--muted);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  min-height: min(680px, calc(100vh - 76px));
  margin-top: 18px;
}

.panel,
.card,
.hero-card,
.metric,
.module-card,
.machine-card,
.source-card,
.insight-card,
.video-card,
.routine-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.panel {
  padding: clamp(24px, 5vw, 56px);
}

.hero h1 {
  max-width: 810px;
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 5.4vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 710px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.eyebrow,
.card-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.easy-start {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0 10px;
}

@media (max-width: 980px) {
  .easy-start {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .easy-start {
    grid-template-columns: 1fr;
  }
}

.easy-start article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(16, 47, 56, 0.09);
}

.easy-start img {
  grid-column: 1 / -1;
  width: 100%;
  height: 156px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(16, 47, 56, 0.12);
}

.easy-start strong {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: var(--coral);
  color: var(--white);
  font-size: 1.55rem;
  line-height: 1;
}

.easy-start h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.easy-start p {
  margin: 6px 0 0;
  color: var(--muted);
}

.easy-start a {
  grid-column: 1 / -1;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
}

.visual-story {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr;
  gap: 16px;
  margin: 22px 0 12px;
}

.story-card,
.page-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(16, 47, 56, 0.12);
}

.story-card {
  position: relative;
  min-height: 360px;
}

.story-card img,
.page-visual img,
.module-photo {
  width: 100%;
  object-fit: cover;
}

.story-card img {
  height: 100%;
  min-height: 360px;
  filter: saturate(1.08) contrast(1.02);
}

.story-card > div {
  position: absolute;
  inset: auto 18px 18px;
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 248, 239, 0.9);
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(16, 47, 56, 0.18);
}

.story-card.wide > div {
  max-width: 560px;
}

.story-card h2,
.page-visual h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.story-card p,
.page-visual p {
  margin: 0;
  color: var(--muted);
}

.story-card span {
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.story-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
}

.page-visual {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
  align-items: stretch;
  margin-bottom: 22px;
}

.page-visual img {
  height: 100%;
  min-height: 280px;
}

.page-visual > div {
  display: grid;
  align-content: center;
  padding: clamp(22px, 4vw, 42px);
  background:
    radial-gradient(circle at 90% 18%, rgba(184, 245, 220, 0.75), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 239, 0.88));
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-card {
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(16, 47, 56, 0.96), rgba(21, 72, 82, 0.88)),
    radial-gradient(circle at 20% 20%, rgba(184, 245, 220, 0.5), transparent 30%);
  color: var(--white);
}

.hero-card .card-label {
  background: rgba(255, 255, 255, 0.12);
  color: var(--mint);
}

.hero-card h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.section {
  padding: 54px 0;
  scroll-margin-top: 104px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head h1,
.section-head h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 0.97;
  letter-spacing: -0.07em;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.metric-grid,
.module-grid,
.machine-grid,
.source-grid,
.insight-grid,
.video-grid,
.routine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.module-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.course-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.course-summary article {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(16, 47, 56, 0.08);
}

.course-summary strong {
  display: block;
  color: var(--coral);
  font-size: 1.8rem;
  line-height: 1;
}

.course-summary span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 850;
}

.course-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.course-steps article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 32px rgba(16, 47, 56, 0.08);
}

.course-steps strong {
  display: grid;
  grid-row: span 2;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background: var(--coral);
  color: var(--white);
  font-size: 1.25rem;
}

.course-steps span {
  font-weight: 950;
}

.course-steps small {
  color: var(--muted);
  font-size: 1rem;
}

.filter-bar,
.security-actions {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(16, 47, 56, 0.08);
}

.metric {
  padding: 20px;
}

.metric strong {
  display: block;
  color: var(--coral);
  font-size: 2.45rem;
  line-height: 1;
  letter-spacing: -0.08em;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.35;
}

.dashboard-grid,
.maintenance-layout,
.quality-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.card,
.module-card,
.machine-card,
.source-card,
.insight-card,
.video-card,
.routine-card {
  padding: 22px;
}

.card h3,
.module-card h3,
.machine-card h3,
.source-card h3,
.insight-card h3,
.video-card h3,
.routine-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.card p,
.module-card p,
.machine-card p,
.source-card p,
.insight-card p,
.video-card p,
.routine-card p {
  color: var(--muted);
  line-height: 1.5;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.status-pill {
  display: inline-flex;
  height: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--mint-2);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.status-pill.warning {
  background: rgba(255, 191, 105, 0.38);
}

.status-pill.danger {
  background: rgba(239, 112, 95, 0.18);
}

.list {
  display: grid;
  gap: 10px;
}

.list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.list-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.module-card {
  display: grid;
  gap: 14px;
  align-content: start;
  border-radius: 26px;
  box-shadow: 0 16px 44px rgba(16, 47, 56, 0.1);
}

.module-photo {
  height: 220px;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(16, 47, 56, 0.12);
}

.learning-module {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
}

.module-summary {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 96px;
}

.module-top,
.module-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.module-footer {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.module-footer > div {
  flex: 1;
}

.module-number {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 18px;
  background: var(--ink);
  color: var(--mint);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.lesson-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lesson-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 850;
}

.module-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(230, 255, 242, 0.84), rgba(255, 255, 255, 0.74));
}

.module-links .primary-button,
.module-links .secondary-button {
  width: 100%;
  text-align: center;
}

.module-links small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.4;
}

.assignment-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  border: 1px solid rgba(16, 47, 56, 0.1);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.assignment-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.assignment-heading strong {
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.assignment-heading span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(16, 47, 56, 0.08);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
}

.assignment-card {
  display: grid;
  gap: 9px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.assignment-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 47, 56, 0.24);
  box-shadow: 0 12px 28px rgba(16, 47, 56, 0.1);
}

.assignment-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.assignment-card-top span {
  width: fit-content;
  border-radius: 14px;
  padding: 5px 8px;
  background: var(--mint-2);
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 850;
  text-transform: uppercase;
}

.assignment-card-top small {
  color: var(--muted);
  font-weight: 850;
}

.assignment-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.assignment-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.assignment-card a {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.assignment-card a:hover {
  background: var(--teal);
}

.progress-track {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(16, 47, 56, 0.1);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  transition: width 0.25s ease;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 54px;
  padding: 14px 16px;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.machine-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.machine-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.machine-type {
  color: var(--coral);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.checklist {
  display: grid;
  gap: 14px;
}

.check-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.check-row:hover,
.check-row:focus-within {
  border-color: rgba(16, 47, 56, 0.28);
  box-shadow: 0 12px 28px rgba(16, 47, 56, 0.08);
  transform: translateY(-1px);
}

.check-row input {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  margin-top: 2px;
  accent-color: var(--coral);
}

.check-row strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.35;
}

.check-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.result-card {
  background:
    linear-gradient(145deg, rgba(16, 47, 56, 0.96), rgba(22, 74, 84, 0.9)),
    radial-gradient(circle at 20% 20%, rgba(184, 245, 220, 0.45), transparent 30%);
  color: var(--white);
}

.result-card p {
  color: rgba(255, 255, 255, 0.76);
}

.result-card .card-label {
  background: rgba(255, 255, 255, 0.12);
  color: var(--mint);
}

.source-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-links {
  margin: 22px 0 10px;
}

.product-link-grid,
.role-grid,
.security-grid,
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.product-link-grid a,
.certificate-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(16, 47, 56, 0.08);
  text-decoration: none;
}

.product-link-grid a {
  display: grid;
  gap: 8px;
  min-height: 132px;
  align-content: start;
}

.product-link-grid strong {
  color: var(--ink);
  font-size: 1.24rem;
  letter-spacing: -0.03em;
}

.product-link-grid span {
  color: var(--muted);
}

.login-layout,
.lesson-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  margin-bottom: 18px;
}

.role-grid,
.security-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
}

.success-card {
  border-color: rgba(25, 88, 102, 0.34);
  background:
    radial-gradient(circle at 92% 10%, rgba(184, 245, 220, 0.84), transparent 34%),
    rgba(255, 255, 255, 0.86);
}

.step-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: var(--white);
}

.step-list li::before {
  content: none;
}

.step-index {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: var(--coral);
  color: var(--white);
  font-weight: 950;
}

.step-list span {
  display: block;
  color: var(--muted);
}

.quiz-form {
  display: grid;
  gap: 12px;
}

.quiz-result {
  border-radius: 18px;
  padding: 14px;
  background: var(--mint-2);
  color: var(--ink);
  font-weight: 900;
}

.assignment-links.compact {
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0;
}

.report-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}

.certificate-card {
  display: grid;
  align-content: center;
  min-height: 360px;
  border: 3px solid var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(184, 245, 220, 0.75), transparent 28%),
    linear-gradient(145deg, #fffdf8, #f3fbf5);
  text-align: center;
}

.certificate-card span {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--mint);
  font-size: 1.5rem;
  font-weight: 950;
}

.certificate-card h3 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.certificate-card p {
  color: var(--ink-2);
  font-size: 1.15rem;
}

.certificate-card small {
  color: var(--coral);
  font-weight: 950;
}

.file-button {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.insight-grid {
  grid-template-columns: repeat(3, 1fr);
}

.video-grid,
.routine-grid {
  grid-template-columns: repeat(2, 1fr);
}

.source-card,
.insight-card,
.video-card,
.routine-card {
  box-shadow: 0 14px 38px rgba(16, 47, 56, 0.08);
}

.source-card a,
.insight-card a,
.video-card a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(16, 47, 56, 0.08);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.evidence-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  margin-top: 18px;
}

.data-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.data-map span {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: var(--mint-2);
  color: var(--ink-2);
  font-weight: 900;
}

.source-meta,
.video-meta,
.routine-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.source-meta span,
.video-meta span,
.routine-meta span {
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(16, 47, 56, 0.08);
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 850;
}

.video-card {
  display: grid;
  gap: 12px;
}

.video-card .secondary-button {
  width: fit-content;
}

.routine-card ul,
.module-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.routine-grid {
  margin-top: 18px;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.roadmap div {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.roadmap strong {
  color: var(--coral);
}

.roadmap span,
.muted {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  transform: translateY(18px);
  opacity: 0;
  max-width: 340px;
  border-radius: 18px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {
  .app-header,
  .module-top,
  .module-footer,
  .hero,
  .easy-start,
  .visual-story,
  .page-visual,
  .course-steps,
  .course-summary,
  .filter-bar,
  .product-link-grid,
  .login-layout,
  .lesson-layout,
  .security-actions,
  .report-grid,
  .learning-module,
  .dashboard-grid,
  .maintenance-layout,
  .quality-layout,
  .roadmap,
  .evidence-card,
  .data-map {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
  }

  .metric-grid,
  .machine-grid,
  .source-grid,
  .insight-grid,
  .video-grid,
  .routine-grid,
  .role-grid,
  .security-grid,
  .assignment-links.compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-links {
    grid-template-columns: 1fr;
  }

  .assignment-links {
    grid-template-columns: 1fr;
  }

  .module-summary {
    position: static;
  }

  .story-card,
  .story-card img {
    min-height: 300px;
  }

  .page-visual img {
    min-height: 240px;
  }
}

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

  body {
    font-size: 18px;
  }

  .app-header {
    position: static;
    gap: 14px;
  }

  .nav {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .nav a,
  .ghost-button,
  .secondary-button,
  .primary-button {
    justify-content: center;
    text-align: center;
  }

  main {
    width: min(100% - 22px, 1180px);
  }

  .metric-grid,
  .module-grid,
  .course-steps,
  .course-summary,
  .filter-bar,
  .product-link-grid,
  .role-grid,
  .security-grid,
  .security-actions,
  .report-grid,
  .login-layout,
  .lesson-layout,
  .assignment-links.compact,
  .machine-grid,
  .source-grid,
  .insight-grid,
  .video-grid,
  .routine-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.8rem);
    line-height: 1.03;
    letter-spacing: -0.05em;
  }

  .section {
    padding: 52px 0;
    scroll-margin-top: 18px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .section-head h1,
  .section-head h2 {
    line-height: 1.05;
    letter-spacing: -0.05em;
  }

  .panel,
  .card,
  .hero-card,
  .story-card,
  .page-visual,
  .metric,
  .module-card,
  .machine-card,
  .source-card,
  .insight-card,
  .video-card,
  .routine-card,
  .easy-start article {
    border-radius: 24px;
  }

  .story-card > div {
    inset: auto 12px 12px;
    padding: 14px;
  }

  .easy-start img,
  .module-photo {
    height: 180px;
  }

}

/* Product shell refinement: quieter chrome, clearer hierarchy, better density. */
.app-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  min-height: 72px;
  padding: 10px max(18px, calc((100vw - 1240px) / 2));
  background: rgba(255, 252, 246, 0.94);
  box-shadow: 0 8px 28px rgba(16, 47, 56, 0.06);
}

.brand {
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  font-size: 0.82rem;
}

.nav {
  justify-content: flex-start;
  gap: 5px;
  min-width: 0;
}

.nav-primary {
  display: flex;
  gap: 5px;
  min-width: 0;
}

.nav a,
.nav-more summary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.nav-more summary:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.nav a[aria-current="page"] {
  border-color: rgba(25, 88, 102, 0.18);
  background: var(--mint-2);
  color: var(--ink);
}

.nav-more {
  position: relative;
  flex: 0 0 auto;
}

.nav-more summary {
  cursor: pointer;
  list-style: none;
}

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

.nav-more summary::after {
  content: "⌄";
  margin-left: 7px;
  color: var(--coral);
  font-size: 1rem;
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 205px;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 7px;
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 18px 40px rgba(16, 47, 56, 0.16);
}

.nav-more-menu a {
  justify-content: flex-start;
  border-radius: 9px;
}

.panel,
.card,
.hero-card,
.module-card,
.machine-card,
.source-card,
.insight-card,
.video-card,
.routine-card {
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(16, 47, 56, 0.09);
}

.section {
  padding: 44px 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h1,
.section-head h2 {
  letter-spacing: -0.06em;
}

.course-summary {
  gap: 10px;
}

.course-summary article,
.metric {
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(16, 47, 56, 0.06);
}

.course-summary strong,
.metric strong {
  font-size: 1.9rem;
}

.course-steps article {
  border-radius: 17px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(16, 47, 56, 0.06);
}

.filter-bar {
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(16, 47, 56, 0.06);
}

.primary-button,
.secondary-button,
.ghost-button {
  border-radius: 11px;
}

.actions .primary-button,
.actions .secondary-button {
  min-height: 46px;
}

.module-card {
  gap: 18px;
  padding: 18px;
}

.module-photo {
  height: 190px;
  border-radius: 16px;
}

.module-links,
.assignment-links {
  border-radius: 16px;
}

.assignment-card {
  border-radius: 14px;
}

@media (max-width: 980px) {
  .app-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .app-header .nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

}

@media (max-width: 640px) {
  .app-header {
    gap: 10px;
    padding: 10px 12px;
  }

  .brand small {
    display: none;
  }

  .app-header .nav {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: stretch;
  }

  .nav-primary {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav a,
  .nav-more summary {
    min-height: 38px;
    padding: 8px 9px;
    font-size: 0.8rem;
  }

  .nav-more {
    flex: 0 0 84px;
  }

  .nav-more-menu {
    right: 0;
    min-width: 190px;
  }

  .course-summary,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-summary article,
  .metric {
    min-height: 86px;
  }

  .course-summary strong,
  .metric strong {
    font-size: 1.65rem;
  }

  .section {
    padding: 34px 0;
  }
}

/* Reading-first visual system for the training workspace. */
body {
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
strong,
button,
.nav a,
.nav-more summary {
  font-weight: 700;
}

.app-header {
  min-height: 64px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-weight: 700;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  font-size: 0.78rem;
}

.nav a,
.nav-more summary,
.primary-button,
.secondary-button,
.ghost-button {
  min-height: 40px;
  padding: 9px 13px;
  font-size: 0.9rem;
  font-weight: 650;
}

.main,
main {
  width: min(1140px, calc(100% - 32px));
}

.section {
  padding: 38px 0;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-head p,
.card p,
.module-card p,
.machine-card p,
.source-card p,
.insight-card p,
.video-card p,
.routine-card p {
  line-height: 1.55;
}

.panel,
.card,
.hero-card,
.module-card,
.machine-card,
.source-card,
.insight-card,
.video-card,
.routine-card {
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(16, 47, 56, 0.08);
}

.module-card {
  gap: 16px;
  padding: 16px;
}

.learning-module {
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
}

.learning-module > * {
  min-width: 0;
}

.module-summary {
  gap: 12px;
}

.module-photo {
  height: 204px;
  border-radius: 14px;
}

.module-top {
  align-items: flex-start;
}

.module-number {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 12px;
  font-weight: 700;
}

.module-card h3 {
  margin-bottom: 4px;
  font-size: 1.22rem;
  line-height: 1.18;
}

.module-summary > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-bottom: 0;
}

.card-label,
.eyebrow {
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  font-weight: 400;
}

.lesson-tags {
  gap: 6px;
}

.lesson-tags span {
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 600;
}

.module-links,
.assignment-links {
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
}

.module-links .primary-button,
.module-links .secondary-button {
  min-height: 42px;
  padding: 9px 10px;
  font-size: 0.82rem;
}

.module-links small {
  font-size: 0.78rem;
}

.assignment-card {
  gap: 7px;
  padding: 12px;
  border-radius: 12px;
}

.assignment-card h4 {
  font-size: 0.98rem;
  line-height: 1.25;
}

.assignment-card p {
  font-size: 0.88rem;
  line-height: 1.4;
}

.assignment-card a {
  min-height: 40px;
  padding: 9px 12px;
  font-size: 0.84rem;
}

.module-footer {
  grid-column: 1 / -1;
  gap: 12px;
  padding-top: 12px;
}

.module-footer strong {
  font-size: 0.88rem;
}

.course-summary span,
.course-steps span,
.status-pill,
.assignment-heading strong,
.assignment-card-top span,
.assignment-card-top small {
  font-weight: 650;
}

.progress-track {
  height: 7px;
  margin-top: 6px;
}

@media (max-width: 980px) {
  .course-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-module {
    grid-template-columns: 1fr;
  }

  .module-footer {
    grid-column: auto;
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .assignment-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* French editorial direction: paper, ink, rules and image-led hierarchy. */
:root {
  --ink: #17343a;
  --ink-2: #365158;
  --muted: #697579;
  --paper: #f5f0e7;
  --white: #fffdf8;
  --mint: #d3e7dc;
  --mint-2: #edf6f0;
  --coral: #b95745;
  --amber: #d6a24f;
  --teal: #17343a;
  --line: rgba(23, 52, 58, 0.18);
  --shadow: 0 12px 28px rgba(23, 52, 58, 0.06);
}

body {
  background:
    linear-gradient(rgba(23, 52, 58, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 8px;
  color: var(--ink);
  font-size: 16px;
}

h1,
h2,
h3,
h4 {
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-weight: 600;
}

.app-header {
  min-height: 72px;
  border-bottom: 1px solid var(--ink);
  background: rgba(245, 240, 231, 0.96);
  box-shadow: none;
  backdrop-filter: none;
}

.brand {
  gap: 10px;
}

.brand-mark {
  border-radius: 4px;
  background: var(--coral);
  color: var(--white);
}

.brand strong {
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav {
  gap: 4px;
}

.nav a,
.nav-more summary,
.primary-button,
.secondary-button,
.ghost-button {
  min-height: 38px;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a,
.nav-more summary {
  border-color: transparent;
  background: transparent;
}

.nav a[aria-current="page"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.primary-button {
  border-color: var(--ink);
  background: var(--ink);
}

.secondary-button,
.ghost-button {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.secondary-button:hover,
.ghost-button:hover,
.nav a:hover,
.nav-more summary:hover {
  border-color: var(--coral);
  background: rgba(185, 87, 69, 0.08);
  color: var(--ink);
}

.panel,
.card,
.hero-card,
.module-card,
.machine-card,
.source-card,
.insight-card,
.video-card,
.routine-card,
.story-card,
.page-visual {
  border-radius: 10px;
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: none;
}

.section {
  padding: 48px 0;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-head p {
  max-width: 420px;
  font-size: 0.98rem;
}

.eyebrow,
.card-label {
  border: 0;
  border-radius: 0;
  border-left: 3px solid var(--coral);
  padding: 2px 0 2px 9px;
  background: transparent;
  color: var(--coral);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.course-summary {
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 24px 0;
}

.course-summary article {
  min-height: 90px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 18px;
  background: transparent;
  box-shadow: none;
}

.course-summary article:last-child {
  border-right: 0;
}

.course-summary strong,
.metric strong {
  color: var(--coral);
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.course-summary span,
.metric span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-bar {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: none;
}

.filter-bar label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input,
select,
textarea {
  min-height: 46px;
  border-radius: 4px;
  border-color: var(--line);
  background: var(--white);
  font-size: 0.95rem;
}

.page-visual {
  grid-template-columns: minmax(260px, 1.1fr) 0.9fr;
  margin: 18px 0 20px;
  border-radius: 10px;
}

.page-visual img {
  height: 220px;
  min-height: 220px;
  filter: saturate(0.82) contrast(1.05);
}

.page-visual > div {
  padding: clamp(20px, 3vw, 30px);
  background: var(--mint-2);
}

.page-visual h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 0.98;
}

.module-card {
  gap: 20px;
  border-radius: 10px;
  border-top: 3px solid var(--ink);
  padding: 18px;
}

.module-photo {
  height: 218px;
  border-radius: 6px;
  filter: saturate(0.78) contrast(1.05);
}

.module-top {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.module-number {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 4px;
  background: var(--coral);
  color: var(--white);
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-weight: 600;
}

.module-card h3 {
  font-size: 1.65rem;
  line-height: 1.02;
}

.module-summary > p {
  color: var(--muted);
  font-size: 0.94rem;
}

.module-links,
.assignment-links {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 0 0;
  background: transparent;
}

.module-links .primary-button,
.module-links .secondary-button {
  min-height: 42px;
  border-radius: 4px;
  font-size: 0.72rem;
}

.assignment-heading {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 9px;
}

.assignment-heading strong {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.assignment-heading span {
  border-radius: 3px;
  padding: 5px 8px;
  background: var(--mint);
  color: var(--ink);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.assignment-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: var(--white);
  box-shadow: none;
}

.assignment-card-top span {
  border-radius: 2px;
  padding: 4px 6px;
  background: var(--mint-2);
  color: var(--ink);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.assignment-card-top small {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.assignment-card h4 {
  font-size: 1.08rem;
}

.assignment-card a {
  min-height: 38px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assignment-card a:hover {
  background: var(--ink);
  color: var(--white);
}

.module-footer {
  border-top-color: var(--ink);
}

.progress-track {
  border-radius: 0;
  background: rgba(23, 52, 58, 0.12);
}

.progress-bar {
  border-radius: 0;
  background: var(--coral);
}

@media (max-width: 640px) {
  .app-header {
    min-height: 64px;
  }

  .section {
    padding: 32px 0;
  }

  .section-head h1,
  .section-head h2 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .course-summary article {
    min-height: 78px;
    padding: 12px;
  }

  .page-visual {
    grid-template-columns: 1fr;
  }

  .page-visual img {
    min-height: 220px;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #111111;
    font-size: 14px;
  }

  .app-header,
  .toast,
  .primary-button,
  .secondary-button,
  .ghost-button {
    display: none !important;
  }

  main {
    width: 100%;
  }

  .section {
    padding: 0;
  }

  .card,
  .metric,
  .certificate-card,
  .report-card {
    box-shadow: none;
    break-inside: avoid;
  }
}

/* Bold card system: one frame, one resource rail, and clear task accents. */
.module-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 52, 58, 0.28);
  border-top: 8px solid var(--ink);
  padding: 20px;
  background: var(--white);
  box-shadow: 8px 8px 0 rgba(23, 52, 58, 0.08);
}

.module-card:nth-child(2) {
  border-top-color: var(--coral);
}

.module-card:nth-child(3) {
  border-top-color: var(--amber);
}

.module-card:nth-child(4) {
  border-top-color: #5d8077;
}

.module-summary {
  gap: 16px;
}

.module-photo {
  height: 236px;
  border: 1px solid rgba(23, 52, 58, 0.16);
  border-radius: 4px;
  box-shadow: none;
}

.module-top {
  align-items: center;
  border-bottom: 0;
  padding-bottom: 0;
}

.module-number {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--mint);
  font-size: 1.1rem;
}

.module-card:nth-child(2) .module-number {
  background: var(--coral);
  color: var(--white);
}

.module-card:nth-child(3) .module-number {
  background: var(--amber);
  color: var(--ink);
}

.module-card:nth-child(4) .module-number {
  background: #5d8077;
  color: var(--white);
}

.module-card h3 {
  max-width: 16ch;
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  line-height: 0.98;
}

.module-summary > p {
  max-width: 42ch;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.module-links {
  grid-template-columns: 1fr;
  gap: 8px;
  border: 1px solid rgba(23, 52, 58, 0.18);
  border-radius: 5px;
  padding: 10px;
  background: var(--mint-2);
}

.module-links .primary-button,
.module-links .secondary-button {
  min-height: 44px;
  border-radius: 3px;
  font-weight: 800;
}

.module-links .primary-button:last-child {
  border-color: var(--coral);
  background: var(--coral);
}

.assignment-links {
  gap: 12px;
  border: 1px solid rgba(23, 52, 58, 0.18);
  border-radius: 5px;
  padding: 16px;
  background: #edf3ee;
}

.assignment-heading {
  margin-bottom: 2px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 11px;
}

.assignment-heading strong {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
}

.assignment-heading span {
  border-radius: 3px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.assignment-card {
  gap: 10px;
  border: 1px solid rgba(23, 52, 58, 0.2);
  border-left: 4px solid var(--coral);
  border-radius: 4px;
  padding: 14px;
  background: var(--white);
  box-shadow: 3px 3px 0 rgba(23, 52, 58, 0.06);
}

.assignment-card:nth-of-type(2) {
  border-left-color: var(--amber);
}

.assignment-card:nth-of-type(3) {
  border-left-color: #5d8077;
}

.assignment-card:nth-of-type(4) {
  border-left-color: var(--ink);
}

.assignment-card:nth-of-type(5) {
  border-left-color: var(--coral);
}

.assignment-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 5px 5px 0 rgba(23, 52, 58, 0.1);
}

.assignment-card-top span {
  border-radius: 2px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.assignment-card h4 {
  min-height: 2.35em;
  font-size: 1.08rem;
  line-height: 1.1;
}

.assignment-card a {
  min-height: 40px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.assignment-card a:hover {
  background: var(--ink);
  color: var(--white);
}

.module-footer {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}

.module-footer strong {
  color: var(--ink);
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 1.18rem;
}

@media (max-width: 640px) {
  .module-card {
    padding: 14px;
    box-shadow: 4px 4px 0 rgba(23, 52, 58, 0.08);
  }

  .module-photo {
    height: 190px;
  }

  .assignment-links {
    padding: 12px;
  }
}

/* Learning route: make the sequence visible before the module cards. */
.learning-route {
  margin: 26px 0 30px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 20px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 8px 8px 0 rgba(23, 52, 58, 0.1);
}

.route-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.28);
  padding-bottom: 18px;
}

.route-kicker {
  margin: 0 0 8px;
  color: var(--mint);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.route-header h2 {
  margin: 0;
  color: var(--white);
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 0.95;
}

.route-header > p {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: right;
}

.route-header > p strong {
  color: var(--mint);
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 1.3rem;
}

.route-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.route-step {
  position: relative;
}

.route-step:not(:last-child)::after {
  position: absolute;
  top: 30px;
  right: -10px;
  z-index: 2;
  color: var(--coral);
  content: "→";
  font-size: 1.3rem;
  font-weight: 800;
}

.route-step a {
  display: grid;
  min-height: 150px;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 4px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.06);
  color: var(--white);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.route-step a:hover,
.route-step.is-current a {
  border-color: var(--mint);
  background: rgba(211, 231, 220, 0.14);
  transform: translateY(-3px);
}

.route-step.is-complete a {
  border-color: rgba(211, 231, 220, 0.55);
  background: rgba(211, 231, 220, 0.1);
}

.route-step-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 3px;
  background: var(--coral);
  color: var(--white);
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.route-step.is-complete .route-step-number {
  background: var(--mint);
  color: var(--ink);
}

.route-step-copy {
  display: grid;
  gap: 7px;
}

.route-step-copy small {
  color: var(--mint);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.route-step-copy strong {
  color: var(--white);
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 1.14rem;
  line-height: 1.02;
}

.route-step-copy > span {
  color: rgba(255, 253, 248, 0.62);
  font-size: 0.76rem;
}

.route-step-arrow {
  color: var(--coral);
  font-size: 1.1rem;
  font-weight: 800;
}

.route-endpoints {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
  color: rgba(255, 253, 248, 0.68);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

.route-endpoints b {
  color: var(--mint);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .route-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-step:nth-child(2)::after {
    display: none;
  }
}

@media (min-width: 861px) {
  .route-step:nth-child(4)::after,
  .route-step:nth-child(8)::after {
    display: none;
  }
}

@media (min-width: 641px) and (max-width: 860px) {
  .route-step:nth-child(even)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .learning-route {
    margin-top: 22px;
    padding: 15px;
    box-shadow: 4px 4px 0 rgba(23, 52, 58, 0.1);
  }

  .route-header {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .route-header > p {
    max-width: none;
    text-align: left;
  }

  .route-track {
    grid-template-columns: 1fr;
  }

  .route-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -15px;
    left: 20px;
    content: "↓";
  }

  .route-step:nth-child(2)::after {
    display: block;
  }

  .route-endpoints {
    flex-direction: column;
    gap: 8px;
  }
}

/* Signature art direction: mineral tones with a more distinctive type pairing. */
:root {
  --ink: #213d40;
  --ink-2: #4e6663;
  --muted: #75817b;
  --paper: #f1eee6;
  --white: #fcfaf5;
  --mint: #d8e5da;
  --mint-2: #e8f0e8;
  --coral: #c27b6d;
  --amber: #d2b879;
  --teal: #213d40;
  --line: rgba(33, 61, 64, 0.17);
  --shadow: 0 16px 34px rgba(33, 61, 64, 0.07);
}

body {
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at 92% 8%, rgba(194, 123, 109, 0.12), transparent 26rem),
    radial-gradient(circle at 8% 48%, rgba(216, 229, 218, 0.35), transparent 28rem),
    linear-gradient(rgba(33, 61, 64, 0.016) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 100% 8px, auto;
}

h1,
h2,
h3,
h4,
.hero h1,
.section-head h1,
.section-head h2,
.page-visual h2,
.module-card h3,
.route-header h2,
.route-step-copy strong,
.module-footer strong,
.course-summary strong,
.metric strong {
  font-family: "Bodoni 72", "Didot", "Iowan Old Style", "Baskerville", Georgia, serif;
  font-weight: 500;
}

h1,
.hero h1,
.section-head h1 {
  letter-spacing: -0.065em;
}

h2,
h3,
h4 {
  letter-spacing: -0.045em;
}

.eyebrow,
.card-label,
.route-kicker,
.assignment-heading strong,
.route-step-copy small,
.module-links .primary-button,
.module-links .secondary-button,
.assignment-card a,
.nav a,
.nav-more summary {
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  letter-spacing: 0.12em;
}

.app-header {
  background: rgba(241, 238, 230, 0.9);
}

.brand-mark {
  border-radius: 2px;
  background: var(--coral);
}

.section-head .eyebrow,
.section-head .card-label,
.page-visual .card-label {
  border-left: 3px solid var(--coral);
  border-radius: 0;
  padding-left: 10px;
  background: transparent;
}

.course-summary {
  background: rgba(252, 250, 245, 0.46);
}

.course-summary strong,
.metric strong {
  color: var(--coral);
}

.filter-bar {
  background: rgba(252, 250, 245, 0.68);
}

.page-visual > div {
  background:
    linear-gradient(135deg, rgba(216, 229, 218, 0.92), rgba(232, 240, 232, 0.66)),
    var(--mint-2);
}

.module-card {
  border-color: rgba(33, 61, 64, 0.22);
  background: rgba(252, 250, 245, 0.94);
  box-shadow: 8px 8px 0 rgba(33, 61, 64, 0.07);
}

.module-card:nth-child(2) {
  border-top-color: var(--coral);
}

.module-card:nth-child(2) .module-number {
  background: var(--coral);
}

.module-card:nth-child(3) {
  border-top-color: var(--amber);
}

.module-card:nth-child(3) .module-number {
  background: var(--amber);
}

.module-card:nth-child(4) {
  border-top-color: #789b8d;
}

.module-card:nth-child(4) .module-number {
  background: #789b8d;
}

.module-links {
  background:
    linear-gradient(135deg, rgba(216, 229, 218, 0.72), rgba(252, 250, 245, 0.78)),
    var(--mint-2);
}

.assignment-links {
  background: rgba(232, 240, 232, 0.76);
}

.assignment-card {
  background: rgba(252, 250, 245, 0.96);
  box-shadow: 3px 3px 0 rgba(33, 61, 64, 0.05);
}

.learning-route {
  border-color: #355d60;
  background:
    linear-gradient(135deg, rgba(53, 93, 96, 0.98), rgba(33, 61, 64, 0.98)),
    var(--ink);
  box-shadow: 8px 8px 0 rgba(33, 61, 64, 0.08);
}

.route-step a {
  background: rgba(252, 250, 245, 0.065);
}

.route-step a:hover,
.route-step.is-current a {
  border-color: #d8e5da;
  background: rgba(216, 229, 218, 0.14);
}

.route-step.is-complete a {
  border-color: rgba(216, 229, 218, 0.5);
  background: rgba(216, 229, 218, 0.1);
}

.route-step-number {
  background: var(--coral);
}

.route-step.is-current .route-step-number {
  background: #c88d80;
}

.nav-more[data-current] summary {
  border-color: rgba(194, 123, 109, 0.36);
  color: var(--ink);
}

.progress-bar {
  background: var(--coral);
}

/* Public-ready pass: simpler hierarchy, calmer contrast and larger targets. */
:root {
  --ink: #29484b;
  --ink-2: #506467;
  --muted: #6c7a7b;
  --paper: #f4f1ea;
  --white: #fffdf9;
  --mint: #d9e7df;
  --mint-2: #eef4ef;
  --coral: #ad7468;
  --amber: #c6a56d;
  --line: rgba(41, 72, 75, 0.17);
  --shadow: 0 10px 28px rgba(41, 72, 75, 0.055);
}

body {
  color: var(--ink);
  font-size: 18px;
}

.app-header {
  background: rgba(244, 241, 234, 0.97);
  box-shadow: 0 4px 18px rgba(41, 72, 75, 0.05);
}

.brand-mark,
.nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--white);
}

.panel,
.card,
.hero-card,
.metric,
.module-card,
.machine-card,
.source-card,
.insight-card,
.video-card,
.routine-card,
.page-visual,
.learning-route {
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.section-head {
  align-items: end;
}

.section-head h1,
.section-head h2 {
  max-width: 780px;
}

.course-summary {
  margin-bottom: 18px;
}

.learning-route {
  border: 1px solid var(--line);
  padding: clamp(18px, 3vw, 30px);
  background: var(--white);
  color: var(--ink);
}

.route-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.route-kicker,
.route-header h2,
.route-header-action > p,
.route-header-action > p strong,
.route-next-copy,
.route-next-copy strong,
.route-step-copy strong,
.route-step-copy small,
.route-step-copy > span,
.route-endpoints,
.route-endpoints b {
  color: var(--ink);
}

.route-header-action > p,
.route-next-copy,
.route-step-copy > span,
.route-endpoints {
  color: var(--muted);
}

.route-cta {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.route-steps-simple {
  margin: 16px 0;
}

.route-steps-simple article {
  border-color: var(--line);
  background: var(--mint-2);
}

.route-steps-simple span {
  color: var(--coral);
}

.route-steps-simple strong {
  color: var(--ink);
}

.route-steps-simple small {
  color: var(--muted);
}

.route-track {
  gap: 8px;
  margin-top: 18px;
}

.route-step:not(:last-child)::after {
  display: none;
}

.route-step a,
.route-step.is-complete a {
  min-height: 76px;
  border-color: var(--line);
  background: #faf8f3;
  color: var(--ink);
}

.route-step a:hover,
.route-step.is-current a {
  border-color: var(--ink);
  background: var(--mint-2);
}

.route-step-number {
  background: #d8c4bc;
  color: var(--ink);
}

.route-step.is-current .route-step-number {
  background: var(--ink);
  color: var(--white);
}

.route-step.is-complete .route-step-number {
  background: #779789;
  color: var(--white);
}

.route-step-status {
  min-width: 58px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.route-step.is-current .route-step-status {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.source-promise {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  align-items: center;
  margin-top: 18px;
  border-left: 4px solid var(--coral);
  padding: 14px 18px;
  background: var(--mint-2);
}

.source-promise span {
  color: var(--muted);
  font-size: 0.9rem;
}

.lesson-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.lesson-breadcrumb a {
  color: var(--ink);
  font-weight: 800;
}

.lesson-content-card {
  max-width: 920px;
}

.step-list {
  gap: 10px;
}

.step-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #faf8f3;
}

.step-list li > div > span {
  color: var(--muted);
}

.resource-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.resource-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--white);
  color: var(--muted) !important;
  font-size: 0.68rem !important;
  font-weight: 750;
}

.step-list .step-resource {
  min-height: 52px;
  margin-top: 8px;
  border: 1px solid rgba(41, 72, 75, 0.22);
  border-radius: 7px;
  padding: 10px 12px;
  background: var(--mint-2);
}

.step-list .step-resource:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.empty-state {
  display: grid;
  gap: 7px;
  justify-items: start;
  color: var(--muted);
}

.empty-state strong {
  color: var(--ink);
}

.empty-state a {
  color: var(--ink);
  font-weight: 850;
}

.optional {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.maintenance-history {
  margin: 18px 0;
}

#maintenanceForm :disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

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

  body {
    font-size: 17px;
  }

  .app-header {
    gap: 8px;
    padding: 9px 0 0;
  }

  .brand {
    padding: 0 12px;
  }

  .brand small {
    display: none;
  }

  .app-header .nav {
    display: flex;
    grid-column: 1;
    grid-row: 2;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    padding: 0 12px 9px;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .app-header .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-primary {
    display: flex;
    gap: 6px;
  }

  .nav a,
  .nav-more,
  .nav-more summary {
    width: auto;
    min-width: max-content;
  }

  .nav a,
  .nav-more summary {
    min-height: 44px;
    padding: 10px 13px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .section {
    padding-top: 24px;
  }

  .section-head h1,
  .section-head h2 {
    font-size: clamp(2rem, 10vw, 2.65rem);
    line-height: 1.02;
  }

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

  .learning-route {
    padding: 14px;
  }

  .route-steps-simple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .route-steps-simple article {
    padding: 9px;
  }

  .route-steps-simple small {
    display: none;
  }

  .route-step a {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 82px;
    padding: 11px;
  }

  .route-step-copy strong {
    font-size: 1rem;
  }

  .route-step-status {
    min-width: 50px;
    padding: 6px;
    font-size: 0.65rem;
  }

  .source-promise {
    grid-template-columns: 1fr;
  }

  .page-visual img {
    min-height: 160px;
    height: 160px;
  }

  .step-list li {
    padding: 13px;
  }

  .resource-meta span:last-child {
    display: none;
  }

  .maintenance-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .easy-start {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Simple course mode: one decision at a time. */
#moduleGrid {
  display: block;
}

.current-module {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.module-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 4px;
}

.module-section-head h2 {
  margin: 3px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.module-section-head p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.current-module > .module-card {
  max-width: 780px;
}

.other-modules {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.other-modules > summary,
.route-all > summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-grid-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.route-steps-simple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.route-steps-simple article {
  border: 1px solid rgba(216, 229, 218, 0.24);
  border-radius: 6px;
  padding: 12px;
  background: rgba(255, 253, 248, 0.07);
}

.route-steps-simple span {
  display: block;
  margin-bottom: 7px;
  color: var(--mint);
  font-size: 0.7rem;
  font-weight: 850;
}

.route-steps-simple strong {
  display: block;
  color: var(--white);
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 1.15rem;
}

.route-steps-simple small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 253, 248, 0.7);
  font-size: 0.74rem;
  line-height: 1.35;
}

.route-next-copy {
  margin: 16px 0 0;
  color: rgba(255, 253, 248, 0.76);
  font-size: 0.84rem;
}

.route-next-copy strong {
  color: var(--mint);
}

.route-all {
  margin-top: 18px;
  border-top: 1px solid rgba(216, 229, 218, 0.2);
  padding-top: 14px;
}

.route-all > summary {
  color: var(--mint);
}

.route-all[open] > summary {
  margin-bottom: 14px;
}

@media (max-width: 760px) {
  .module-section-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .module-grid-secondary,
  .route-steps-simple {
    grid-template-columns: 1fr;
  }
}

/* First-time flow: make the next action obvious. */
.home-next-action {
  display: grid;
  gap: 3px;
  max-width: 440px;
  margin-top: 20px;
  border-left: 4px solid var(--coral);
  padding: 10px 0 10px 14px;
}

.home-next-action span,
.home-next-action small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-next-action strong {
  font-size: 1rem;
}

.home-next-action small {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.route-header-action {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.route-header-action > p {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: right;
}

.route-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mint);
  border-radius: 4px;
  padding: 9px 14px;
  background: var(--mint);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.route-cta:hover {
  background: var(--white);
}

@media (max-width: 640px) {
  .home-next-action {
    margin-top: 16px;
  }

  .route-header-action {
    justify-items: start;
  }

  .route-header-action > p {
    text-align: left;
  }

  .route-cta {
    width: 100%;
  }
}

/* Lesson completion: keep the four actions visible and ordered. */
#lessonSteps,
#quizForm,
#moduleComplete {
  scroll-margin-top: 24px;
}

.module-footer {
  align-items: end;
}

.module-footer > div {
  display: grid;
  gap: 6px;
}

.module-footer .card-label {
  color: var(--coral);
}

.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ghost-button:disabled:hover {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

/* Module workspaces: keep summary, videos, and images together. */
.learning-module {
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 0 18px 18px;
}

.learning-module > .module-photo,
.learning-module > .module-top,
.learning-module > h3,
.learning-module > .module-tabs,
.learning-module > .module-panel,
.learning-module > .module-footer {
  grid-column: 1 / -1;
}

.learning-module > .module-photo {
  width: calc(100% + 36px);
  height: 210px;
  margin-left: -18px;
  border-radius: 24px 24px 0 0;
  object-fit: cover;
}

.learning-module > h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.02;
}

.module-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

.module-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  padding: 8px 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.module-tabs button:hover,
.module-tabs button[aria-selected="true"] {
  background: var(--mint-2);
  color: var(--ink);
}

.module-panel {
  display: grid;
  gap: 12px;
}

.module-panel[hidden] {
  display: none;
}

.module-panel > p {
  margin: 0;
  min-height: 48px;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.45;
}

.module-facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.module-facts span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.module-facts strong {
  color: var(--ink);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.video-card {
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 164px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--mint-2);
}

.video-card-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 0.9rem;
}

.video-card h4 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.15;
}

.video-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.video-card a {
  margin-top: auto;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
}

.video-card a:hover {
  color: var(--coral);
}

.module-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.module-gallery figure {
  display: grid;
  gap: 6px;
  margin: 0;
}

.module-gallery img {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
}

.module-gallery figcaption {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

@media (max-width: 640px) {
  .learning-module {
    padding: 0 14px 14px;
  }

  .learning-module > .module-photo {
    width: calc(100% + 28px);
    height: 180px;
    margin-left: -14px;
  }

  .module-tabs button {
    font-size: 0.64rem;
    letter-spacing: 0;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .module-gallery img {
    height: 96px;
  }
}

@media (max-width: 640px) {
  .module-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .module-footer .ghost-button {
    width: 100%;
  }
}

.step-list li > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.step-list .step-resource {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.step-list .step-resource:hover {
  color: var(--coral);
}

.step-list .step-resource span,
.step-list .step-resource strong {
  display: block;
  min-width: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.step-list .step-resource span:first-child {
  color: var(--coral);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .step-list .step-resource {
    grid-template-columns: auto minmax(0, 1fr) auto;
    font-size: 0.78rem;
  }
}

/* Capacitación overview: compact image-led cards instead of long stacked panels. */
.module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.learning-module {
  display: block;
  overflow: hidden;
  padding: 0;
}

.learning-module .module-summary {
  position: static;
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.learning-module .module-photo {
  width: calc(100% + 36px);
  height: 170px;
  margin: 0 -18px;
  border-radius: 0;
  box-shadow: none;
}

.learning-module .module-top {
  padding-top: 12px;
}

.learning-module h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1;
}

.learning-module .module-summary > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.92rem;
  line-height: 1.35;
}

.learning-module .module-links {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.learning-module .module-links .primary-button {
  min-height: 44px;
}

.learning-module .resource-disclosure {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.learning-module .resource-disclosure > summary {
  min-height: 42px;
  padding: 8px 13px;
  font-size: 0.72rem;
}

.learning-module .resource-disclosure[open] {
  grid-column: 1 / -1;
  border-radius: 5px;
}

.learning-module .term-help {
  margin: 0;
}

.learning-module .assignment-disclosure {
  margin: 0 18px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.learning-module .module-footer {
  margin: 0 18px;
}

@media (max-width: 640px) {
  .module-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile shell: keep the route readable and every action easy to tap. */
@media (max-width: 640px) {
  html {
    scroll-padding-top: 16px;
  }

  body {
    min-width: 0;
    font-size: 16px;
  }

  .app-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding: 10px 12px 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 1rem;
  }

  .app-header .nav {
    display: grid;
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
  }

  .nav-primary {
    display: contents;
  }

  .nav a,
  .nav-more,
  .nav-more summary {
    width: 100%;
    min-width: 0;
  }

  .nav a,
  .nav-more summary {
    min-height: 42px;
    padding: 8px 4px;
    font-size: 0.7rem;
    letter-spacing: 0.025em;
    white-space: normal;
  }

  .nav-more {
    flex: none;
  }

  .nav-more-menu {
    right: 0;
    min-width: 220px;
  }

  main {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 30px 0;
  }

  .section-head {
    gap: 12px;
    margin-bottom: 16px;
  }

  .section-head h1,
  .section-head h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .course-summary {
    gap: 8px;
    margin-bottom: 12px;
  }

  .course-summary article,
  .metric {
    min-height: 76px;
    padding: 12px;
  }

  .course-summary strong,
  .metric strong {
    font-size: 1.45rem;
  }

  .course-summary span,
  .metric span {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .learning-route {
    margin: 18px 0 22px;
    padding: 14px;
  }

  .route-header {
    gap: 9px;
  }

  .route-header h2 {
    font-size: 2rem;
  }

  .route-header > p {
    font-size: 0.82rem;
  }

  .route-step a {
    min-height: 72px;
    padding: 12px;
  }

  .filter-bar {
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px;
  }

  input,
  select,
  textarea {
    min-height: 48px;
    width: 100%;
  }

  textarea {
    min-height: 100px;
  }

  .learning-module .module-summary {
    gap: 10px;
    padding: 0 14px 14px;
  }

  .learning-module .module-photo {
    width: calc(100% + 28px);
    height: 180px;
    margin: 0 -14px;
  }

  .learning-module .module-links {
    grid-template-columns: 1fr;
  }

  .learning-module .resource-disclosure,
  .learning-module .module-links .primary-button {
    width: 100%;
  }

  .learning-module .resource-disclosure > summary {
    justify-content: center;
  }

  .learning-module .assignment-disclosure,
  .learning-module .module-footer {
    margin-right: 14px;
    margin-left: 14px;
  }

  .learning-module .module-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .learning-module .module-footer .ghost-button {
    width: 100%;
  }

  .page-visual,
  .story-card {
    border-radius: 18px;
  }

  .page-visual img {
    min-height: 180px;
  }

  .page-visual > div {
    padding: 20px;
  }

  .next-action,
  .lesson-complete-action {
    gap: 12px;
  }

  .next-action .primary-button,
  .lesson-complete-action .primary-button,
  .lesson-complete-action .stage-badge {
    width: 100%;
  }

  .stage-heading {
    gap: 10px;
  }

  .stage-heading h2 {
    font-size: 1.65rem;
  }

  .stage-heading small {
    font-size: 0.84rem;
  }

  .step-list li {
    gap: 8px;
    padding: 12px;
  }

  .step-index {
    width: 34px;
    height: 34px;
  }

  .card,
  .panel,
  .hero-card,
  .module-card,
  .machine-card,
  .source-card,
  .insight-card,
  .video-card,
  .routine-card {
    padding: 16px;
    border-radius: 18px;
  }

  .module-card {
    padding: 0;
  }
}

/* Lesson sequence: learning is visibly completed before the quiz appears. */
.lesson-stage {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  scroll-margin-top: 24px;
}

.stage-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.stage-heading h2 {
  margin: 3px 0 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.stage-heading small {
  max-width: 220px;
  color: var(--muted);
  text-align: right;
}

.stage-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.lesson-content-card {
  max-width: 860px;
}

.lesson-complete-action {
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--white);
}

.stage-badge {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stage-badge.complete {
  background: var(--mint-2);
  border-color: rgba(33, 61, 64, 0.28);
}

.lesson-quiz-stage {
  border-top: 4px solid var(--coral);
  padding-top: 18px;
}

.quiz-locked {
  border-style: dashed;
  background: rgba(252, 250, 245, 0.7);
}

@media (max-width: 760px) {
  .stage-heading {
    grid-template-columns: auto 1fr;
  }

  .stage-heading small {
    grid-column: 2;
    max-width: none;
    text-align: left;
  }

  .lesson-complete-action {
    align-items: stretch;
    flex-direction: column;
  }

  .lesson-complete-action .primary-button,
  .lesson-complete-action .stage-badge {
    justify-content: center;
    width: 100%;
  }
}

/* Keep the editorial type expressive without sacrificing reading comfort. */
h1,
.hero h1,
.section-head h1 {
  letter-spacing: -0.035em;
  word-spacing: 0.06em;
}

.hero-card {
  background:
    linear-gradient(145deg, rgba(53, 93, 96, 0.98), rgba(33, 61, 64, 0.98)),
    var(--ink);
  color: var(--white);
}

.hero-card .card-label {
  border-color: rgba(216, 229, 218, 0.35);
  background: rgba(216, 229, 218, 0.12);
  color: var(--mint);
}

.hero-card h2 {
  color: var(--white);
  word-spacing: 0.04em;
}

.hero-card p {
  color: rgba(252, 250, 245, 0.8);
}

/* One visible action per screen; everything else opens on demand. */
.next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0 24px;
  border: 1px solid rgba(33, 61, 64, 0.18);
  border-left: 5px solid var(--coral);
  border-radius: 6px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(216, 229, 218, 0.78), rgba(252, 250, 245, 0.82));
}

.next-action > div {
  display: grid;
  gap: 4px;
}

.next-action > div > span,
.next-action > span {
  color: var(--coral);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.next-action strong {
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.next-action small {
  color: var(--ink-2);
  font-size: 0.85rem;
}

.next-action .primary-button {
  flex: 0 0 auto;
  min-height: 42px;
  border-radius: 3px;
  white-space: nowrap;
}

.module-next-action {
  margin: 0;
  padding: 11px 12px;
  background: var(--mint-2);
}

.module-next-action strong {
  font-size: 0.9rem;
}

.module-next-action small {
  font-size: 0.78rem;
}

.resource-disclosure,
.term-help,
.assignment-disclosure,
.lesson-resources,
.machine-details {
  border: 1px solid rgba(33, 61, 64, 0.18);
  border-radius: 4px;
  background: rgba(252, 250, 245, 0.68);
}

.resource-disclosure summary,
.term-help summary,
.assignment-disclosure > summary,
.lesson-resources > summary,
.machine-details summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  list-style: none;
}

.resource-disclosure summary::-webkit-details-marker,
.term-help summary::-webkit-details-marker,
.assignment-disclosure summary::-webkit-details-marker,
.lesson-resources summary::-webkit-details-marker,
.machine-details summary::-webkit-details-marker {
  display: none;
}

.resource-disclosure summary::after,
.term-help summary::after,
.assignment-disclosure > summary::after,
.lesson-resources > summary::after,
.machine-details summary::after {
  color: var(--coral);
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
}

.resource-disclosure[open] summary::after,
.term-help[open] summary::after,
.assignment-disclosure[open] > summary::after,
.lesson-resources[open] > summary::after,
.machine-details[open] summary::after {
  content: "−";
}

.resource-disclosure > .secondary-button {
  display: flex;
  margin: 0 10px 10px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.term-help p {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 11px 12px 13px;
  color: var(--ink-2);
  font-size: 0.84rem;
}

.assignment-disclosure,
.lesson-resources {
  grid-column: 1 / -1;
}

.assignment-disclosure[open] > .assignment-links,
.lesson-resources[open] > .assignment-links {
  margin-top: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.machine-next {
  margin: 0;
}

.machine-details {
  margin-top: 2px;
}

.machine-specs {
  border-top: 1px solid var(--line);
  padding: 8px 14px 4px;
}

.machine-specs p {
  margin: 8px 0;
}

.result-card {
  background:
    linear-gradient(145deg, rgba(53, 93, 96, 0.98), rgba(33, 61, 64, 0.98)),
    var(--ink);
  color: var(--white);
}

.result-card h3 {
  color: var(--white);
}

.result-card p {
  color: rgba(252, 250, 245, 0.82);
}

.result-card .secondary-button {
  border-color: rgba(216, 229, 218, 0.5);
  color: var(--white);
}

.help-route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.help-step {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--coral);
  border-radius: 6px;
  padding: 18px;
  background: var(--white);
}

.help-step > span {
  color: var(--coral);
  font-family: "Bodoni 72", "Didot", "Iowan Old Style", serif;
  font-size: 2.4rem;
  line-height: 0.8;
}

.help-step h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.help-step p {
  min-height: 4.5em;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.help-step .primary-button,
.help-step .secondary-button {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  text-align: center;
}

.glossary-card {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  background: var(--mint-2);
}

.glossary-card h2 {
  margin: 0 0 16px;
  font-size: 2rem;
}

.glossary-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
}

.glossary-card dl > div {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.glossary-card dt {
  color: var(--ink);
  font-weight: 800;
}

.glossary-card dd {
  margin: 3px 0 0;
  color: var(--ink-2);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .help-route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-visual img {
    height: 180px;
    min-height: 180px;
  }

  .next-action {
    align-items: stretch;
    flex-direction: column;
  }

  .next-action .primary-button {
    width: 100%;
  }

  .help-route,
  .glossary-card dl {
    grid-template-columns: 1fr;
  }
}

/* Purple comfort palette: restrained violet tones for longer training sessions. */
/* Public course route: keep the dark navigation panel fully legible. */
.learning-route .route-kicker,
.learning-route .route-header h2,
.learning-route .route-header-action > p,
.learning-route .route-header-action > p strong,
.learning-route .route-next-copy,
.learning-route .route-next-copy strong,
.learning-route .route-endpoints,
.learning-route .route-endpoints b {
  color: #f7fbff;
}

.learning-route .route-header {
  border-bottom-color: rgba(247, 251, 255, 0.28);
}

.learning-route .route-steps-simple article {
  border-color: rgba(247, 251, 255, 0.26);
  background: rgba(247, 251, 255, 0.08);
}

.learning-route .route-steps-simple span,
.learning-route .route-steps-simple strong,
.learning-route .route-steps-simple small {
  color: #f7fbff;
}

:root {
  --ink: #332e48;
  --ink-2: #59536d;
  --muted: #6b667b;
  --paper: #f6f4fa;
  --white: #fefcff;
  --mint: #e5dff0;
  --mint-2: #f0edf6;
  --coral: #766894;
  --amber: #9184aa;
  --teal: #5f587d;
  --line: rgba(51, 46, 72, 0.15);
  --shadow: 0 12px 28px rgba(51, 46, 72, 0.07);
}

body {
  background:
    linear-gradient(rgba(51, 46, 72, 0.016) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 8px;
}

.module-card:nth-child(2) {
  border-top-color: var(--coral);
}

.module-card:nth-child(2) .module-number {
  background-color: var(--coral);
}

.module-card:nth-child(3) {
  border-top-color: var(--amber);
}

.module-card:nth-child(3) .module-number {
  background-color: var(--amber);
}

.module-card:nth-child(4) {
  border-top-color: #80749a;
}

.module-card:nth-child(4) .module-number {
  background-color: #80749a;
}

.module-card:nth-child(2) .module-number,
.module-card:nth-child(4) .module-number {
  color: var(--white);
}

.learning-route {
  border-color: #554b70;
  background: #554b70;
  box-shadow: 8px 8px 0 rgba(51, 46, 72, 0.07);
}

.route-step-number {
  background: var(--coral);
}

.route-step.is-complete .route-step-number {
  background: var(--mint);
}

.route-step.is-current .route-step-number {
  background: #8a79a8;
}

.route-step:not(:last-child)::after,
.route-step-arrow {
  color: #c9bedb;
}

.assignment-card:nth-of-type(2) {
  border-left-color: var(--amber);
}

.assignment-card:nth-of-type(3) {
  border-left-color: #80749a;
}

.assignment-card:nth-of-type(4) {
  border-left-color: var(--ink);
}

.progress-bar {
  background: var(--coral);
}

.app-header {
  background: rgba(246, 244, 250, 0.97);
}

.nav-more-menu {
  background: rgba(254, 252, 255, 0.98);
}

/* Atelier indigo: one cold blue-violet system across every product surface. */
:root {
  --ink: #2d314a;
  --ink-2: #515873;
  --muted: #666d86;
  --paper: #f5f6fb;
  --white: #fdfdff;
  --mint: #dde2f2;
  --mint-2: #eceff8;
  --coral: #686fa3;
  --amber: #858bb8;
  --teal: #4a527d;
  --line: rgba(45, 49, 74, 0.15);
  --shadow: 0 14px 34px rgba(45, 49, 74, 0.07);
}

body {
  background:
    radial-gradient(circle at 92% 7%, rgba(104, 111, 163, 0.11), transparent 28rem),
    radial-gradient(circle at 5% 58%, rgba(91, 119, 169, 0.07), transparent 30rem),
    linear-gradient(rgba(45, 49, 74, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 100% 8px, auto;
}

.app-header {
  border-bottom-color: var(--ink);
  background: rgba(245, 246, 251, 0.97);
  box-shadow: 0 5px 22px rgba(45, 49, 74, 0.055);
}

.brand-mark,
.nav a[aria-current="page"] {
  background: linear-gradient(145deg, #363a5d, #24283f);
}

.nav-more-menu {
  border-color: var(--line);
  background: rgba(253, 253, 255, 0.98);
  box-shadow: 0 18px 40px rgba(45, 49, 74, 0.12);
}

.nav-more[data-current] summary {
  border-color: rgba(104, 111, 163, 0.4);
  color: var(--ink);
}

.secondary-button:hover,
.ghost-button:hover,
.nav a:hover,
.nav-more summary:hover {
  border-color: var(--coral);
  background: rgba(104, 111, 163, 0.1);
}

.panel,
.card,
.hero-card,
.module-card,
.machine-card,
.source-card,
.insight-card,
.video-card,
.routine-card,
.story-card,
.page-visual,
.report-card {
  border-color: var(--line);
  background: rgba(253, 253, 255, 0.94);
  box-shadow: var(--shadow);
}

.course-summary,
.filter-bar {
  border-color: var(--line);
  background: rgba(226, 230, 243, 0.58);
}

.page-visual > div {
  background:
    linear-gradient(135deg, rgba(221, 226, 242, 0.95), rgba(239, 241, 249, 0.86)),
    var(--mint-2);
}

.module-links,
.next-action {
  border-color: var(--line);
  background:
    linear-gradient(135deg, rgba(221, 226, 242, 0.82), rgba(247, 248, 252, 0.9)),
    var(--mint-2);
}

.assignment-links {
  background: rgba(231, 234, 246, 0.88);
}

.assignment-card,
.resource-disclosure,
.term-help,
.assignment-disclosure,
.lesson-resources,
.machine-details,
.quiz-locked {
  border-color: var(--line);
  background: rgba(253, 253, 255, 0.82);
}

.source-card a,
.insight-card a,
.video-card a,
.source-card span {
  background: rgba(104, 111, 163, 0.1);
}

.module-card:nth-child(1) {
  border-top-color: #626b9f;
}

.module-card:nth-child(1) .module-number {
  background: #626b9f;
}

.module-card:nth-child(2) {
  border-top-color: #7770a5;
}

.module-card:nth-child(2) .module-number {
  background: #7770a5;
}

.module-card:nth-child(3) {
  border-top-color: #647eaa;
}

.module-card:nth-child(3) .module-number {
  background: #647eaa;
}

.module-card:nth-child(4) {
  border-top-color: #8187b4;
}

.module-card:nth-child(4) .module-number {
  background: #8187b4;
}

.learning-route,
.hero-card,
.result-card {
  border-color: #4f547e;
  background:
    radial-gradient(circle at 92% 8%, rgba(139, 145, 197, 0.2), transparent 24rem),
    linear-gradient(145deg, #52577f, #373b5f);
  color: #f9faff;
  box-shadow: 10px 10px 0 rgba(45, 49, 74, 0.07);
}

.learning-route .route-header,
.learning-route .route-steps-simple article {
  border-color: rgba(249, 250, 255, 0.24);
}

.learning-route .route-steps-simple article,
.learning-route .route-step a,
.learning-route .route-step.is-complete a {
  background: rgba(249, 250, 255, 0.075);
}

.learning-route .route-step a:hover,
.learning-route .route-step.is-current a {
  border-color: rgba(249, 250, 255, 0.72);
  background: rgba(221, 226, 242, 0.16);
}

.learning-route .route-step-number {
  background: #777eaf;
  color: #ffffff;
}

.learning-route .route-step.is-current .route-step-number {
  background: #9a8cc0;
}

.learning-route .route-step.is-complete .route-step-number {
  background: #7188b0;
}

.learning-route .route-step-status {
  border-color: rgba(249, 250, 255, 0.32);
  color: #f9faff;
}

.hero-card .card-label,
.result-card .card-label {
  border-color: rgba(221, 226, 242, 0.34);
  background: rgba(221, 226, 242, 0.12);
  color: #edf0fb;
}

.hero-card p,
.result-card p {
  color: rgba(249, 250, 255, 0.82);
}

.result-card .secondary-button {
  border-color: rgba(221, 226, 242, 0.52);
}

.route-step:not(:last-child)::after,
.route-step-arrow {
  color: #c9cdea;
}

.route-step a,
.lesson-content-card .step-list li {
  background: rgba(249, 250, 255, 0.9);
}

.progress-track {
  background: rgba(45, 49, 74, 0.12);
}

.status-pill.warning {
  background: rgba(133, 139, 184, 0.25);
}

.status-pill.danger {
  background: rgba(124, 102, 157, 0.2);
}

.success-card {
  border-color: rgba(100, 126, 170, 0.36);
  background:
    radial-gradient(circle at 92% 10%, rgba(205, 214, 239, 0.85), transparent 35%),
    rgba(253, 253, 255, 0.9);
}

.certificate-card {
  border-color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(205, 214, 239, 0.72), transparent 29%),
    linear-gradient(145deg, #fdfdff, #eef0f8);
  box-shadow: var(--shadow);
}

.data-map span,
.glossary-card,
.quiz-result,
.module-next-action {
  border-color: var(--line);
  background: var(--mint-2);
}

/* Reading pass: large, high-contrast course cards for older learners. */
.section-head > p {
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.65;
}

.learning-route .route-kicker {
  font-size: 0.8rem;
}

.learning-route .route-header-action > p,
.learning-route .route-next-copy {
  font-size: 0.94rem;
  line-height: 1.55;
}

.learning-route .route-steps-simple small {
  font-size: 0.86rem;
  line-height: 1.45;
}

.learning-route .route-track {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.learning-route .route-step a,
.learning-route .route-step.is-complete a {
  min-height: 116px;
  border: 2px solid transparent;
  background: #f7f8fc;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(32, 36, 61, 0.12);
}

.learning-route .route-step a:hover,
.learning-route .route-step.is-current a {
  border-color: #aeb5d8;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(32, 36, 61, 0.18);
}

.learning-route .route-step-copy small {
  color: #565d7c;
  font-size: 0.83rem;
  line-height: 1.35;
}

.learning-route .route-step-copy strong {
  color: #252941;
  font-size: 1.16rem;
  font-weight: 650;
  line-height: 1.18;
}

.learning-route .route-step-copy > span {
  color: #5b627e;
  font-size: 0.88rem;
  line-height: 1.4;
}

.learning-route .route-step-status {
  min-width: 64px;
  border-color: rgba(45, 49, 74, 0.24);
  background: #eceff8;
  color: #2d314a;
  font-size: 0.8rem;
}

.learning-route .route-step.is-current .route-step-status {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.learning-route .route-endpoints {
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .learning-route .route-track {
    grid-template-columns: 1fr;
  }

  .learning-route .route-step a,
  .learning-route .route-step.is-complete a {
    min-height: 122px;
    padding: 16px;
  }

  .learning-route .route-step-copy strong {
    font-size: 1.2rem;
  }
}

/* Galerie Technique: focused course direction selected for the public route. */
body.training-body {
  --gallery-ink: #171b39;
  --gallery-indigo: #252a66;
  --gallery-violet: #6256a5;
  --gallery-blue: #6689c8;
  --gallery-pale: #eef1fa;
  --gallery-paper: #f7f8fc;
  --gallery-line: #d9deed;
  background: var(--gallery-paper);
  color: var(--gallery-ink);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
}

.training-body .app-header {
  min-height: 72px;
  border-bottom: 1px solid rgba(23, 27, 57, 0.12);
  background: rgba(247, 248, 252, 0.96);
  box-shadow: 0 1px 0 rgba(23, 27, 57, 0.04);
}

.training-body .brand-mark {
  border-radius: 10px;
  background: var(--gallery-indigo);
  color: #ffffff;
}

.training-body .nav a {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #363b5c;
  font-size: 0.95rem;
  font-weight: 700;
}

.training-body .nav a:hover,
.training-body .nav a:focus-visible {
  background: #e9ecf7;
}

.training-body .nav a[aria-current="page"] {
  background: var(--gallery-indigo);
  color: #ffffff;
}

.training-body main {
  width: 100%;
  margin: 0;
}

.training-hero {
  position: relative;
  min-height: 392px;
  overflow: hidden;
  background-color: #20264d;
  background-image: url("assets/labforma-cad-technician-hero.png");
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.training-hero-copy {
  display: flex;
  width: min(62%, 820px);
  min-height: 392px;
  padding: 42px max(34px, calc((100vw - 1340px) / 2));
  flex-direction: column;
  justify-content: center;
  background: rgba(15, 20, 57, 0.86);
}

.training-eyebrow {
  margin: 0 0 14px;
  color: #d9def8;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.training-hero h1 {
  max-width: 700px;
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 5.4vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.training-hero-copy > p:not(.training-eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: #e7eaf8;
  font-size: 1.08rem;
  line-height: 1.55;
}

.training-hero-progress {
  display: flex;
  width: min(440px, 100%);
  gap: 14px;
  align-items: center;
  margin-top: 26px;
}

.training-hero-progress progress {
  width: min(270px, 65%);
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}

.training-hero-progress progress::-webkit-progress-bar {
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}

.training-hero-progress progress::-webkit-progress-value {
  border-radius: 99px;
  background: #c8d4ff;
}

.training-hero-progress progress::-moz-progress-bar {
  border-radius: 99px;
  background: #c8d4ff;
}

.training-hero-progress strong {
  color: #ffffff;
  font-size: 0.92rem;
  white-space: nowrap;
}

.training-hero-quote {
  position: absolute;
  right: max(34px, calc((100vw - 1340px) / 2));
  bottom: 36px;
  width: min(270px, 24vw);
  margin: 0;
  padding-left: 18px;
  border-left: 3px solid rgba(255, 255, 255, 0.76);
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-style: italic;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(13, 18, 48, 0.5);
}

.training-course-shell {
  width: min(1340px, calc(100% - 48px));
  margin: -18px auto 0;
  padding-bottom: 64px;
}

.gallery-learning-route {
  position: relative;
  z-index: 2;
}

.gallery-current {
  padding: 20px 24px 22px;
  border: 1px solid rgba(23, 27, 57, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 55px rgba(27, 32, 77, 0.16);
}

.gallery-current-label {
  margin: 0 0 14px;
  color: var(--gallery-violet);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gallery-current-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(430px, 1.8fr) minmax(200px, 0.72fr);
  gap: 24px;
  align-items: stretch;
}

.gallery-current-module {
  display: flex;
  gap: 18px;
  align-items: center;
}

.gallery-current-number {
  min-width: 76px;
  color: var(--gallery-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.8rem;
  line-height: 1;
}

.gallery-current-module h2 {
  margin: 0;
  color: var(--gallery-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.gallery-current-module p {
  display: flex;
  gap: 14px;
  margin: 12px 0 0;
  color: #626987;
  font-size: 0.84rem;
}

.gallery-current-module p span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.gallery-current-module img,
.gallery-route-list img,
.gallery-primary-action img {
  width: 21px;
  height: 21px;
}

.gallery-method {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gallery-method article {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border-left: 1px solid var(--gallery-line);
}

.gallery-method article > img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.gallery-method strong,
.gallery-method span {
  display: block;
}

.gallery-method strong {
  margin-bottom: 3px;
  color: var(--gallery-ink);
  font-size: 0.96rem;
}

.gallery-method span {
  color: #626987;
  font-size: 0.78rem;
  line-height: 1.35;
}

.gallery-primary-action {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--gallery-indigo);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.gallery-primary-action:hover {
  background: #343a82;
  transform: translateY(-2px);
}

.gallery-primary-action img {
  filter: brightness(0) invert(1);
}

.gallery-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  margin-top: 30px;
}

.gallery-route-main {
  overflow: hidden;
  border: 1px solid var(--gallery-line);
  border-radius: 18px;
  background: #ffffff;
}

.gallery-route-heading {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--gallery-line);
}

.gallery-route-heading h2 {
  margin: 0;
  color: var(--gallery-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.gallery-route-heading p {
  max-width: 390px;
  margin: 0;
  color: #626987;
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: right;
}

.gallery-route-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-route-list li + li {
  border-top: 1px solid var(--gallery-line);
}

.gallery-route-list a {
  display: grid;
  grid-template-columns: 58px minmax(220px, 1fr) auto auto 24px;
  gap: 16px;
  align-items: center;
  min-height: 70px;
  padding: 10px 20px;
  color: var(--gallery-ink);
  text-decoration: none;
}

.gallery-route-list a:hover,
.gallery-route-list a:focus-visible {
  background: #f0f2f9;
}

.gallery-route-number {
  color: var(--gallery-violet);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.gallery-route-list strong {
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.25;
}

.gallery-route-meta,
.gallery-route-status {
  color: #626987;
  font-size: 0.8rem;
  white-space: nowrap;
}

.gallery-route-status {
  min-width: 86px;
  padding: 6px 9px;
  border: 1px solid var(--gallery-line);
  border-radius: 99px;
  background: #f6f7fb;
  color: #4b526f;
  font-weight: 750;
  text-align: center;
}

.gallery-route-list .is-complete .gallery-route-status {
  border-color: #b9c7e7;
  background: #e9eefb;
  color: #2f4f86;
}

.gallery-route-note {
  min-height: 100%;
  padding: 34px 28px;
  border-radius: 18px;
  background-color: #dfe7fa;
  background-image: url("assets/labforma-mountain-note.png");
  background-position: center bottom;
  background-size: cover;
  color: var(--gallery-ink);
}

.gallery-route-note span,
.gallery-route-note strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.02;
}

.gallery-route-note strong {
  color: var(--gallery-violet);
}

.gallery-route-note p {
  max-width: 220px;
  margin: 18px 0 0;
  color: #4c5575;
  font-size: 0.9rem;
  line-height: 1.5;
}

.training-body .source-promise {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  margin: 18px 0 0;
  padding: 17px 20px;
  border: 1px solid var(--gallery-line);
  border-radius: 12px;
  background: #eef1f9;
  color: #39405f;
}

.training-body .source-promise strong {
  color: var(--gallery-indigo);
  font-size: 0.88rem;
  white-space: nowrap;
}

.training-body .source-promise span {
  font-size: 0.84rem;
  line-height: 1.45;
}

@media (max-width: 1080px) {
  .training-hero-copy {
    width: 70%;
  }

  .gallery-current-grid {
    grid-template-columns: 1fr 1.5fr;
  }

  .gallery-primary-action {
    grid-column: 1 / -1;
    min-height: 60px;
  }

  .gallery-route {
    grid-template-columns: 1fr 240px;
  }

  .gallery-route-list a {
    grid-template-columns: 52px minmax(180px, 1fr) auto 24px;
  }

  .gallery-route-status {
    display: none;
  }
}

@media (max-width: 760px) {
  body.training-body {
    font-size: 17px;
  }

  .training-body .app-header {
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: 104px;
    padding: 10px 14px;
  }

  .training-body .brand small {
    display: none;
  }

  .training-body .brand {
    width: max-content;
    justify-self: start;
  }

  .training-body .app-header .nav {
    display: flex;
    grid-column: 1;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .training-body .nav::-webkit-scrollbar {
    display: none;
  }

  .training-body .nav a {
    width: auto;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 13px;
    white-space: nowrap;
  }

  .training-body .nav-more {
    width: auto;
    flex: 0 0 auto;
  }

  .training-body .nav-more summary {
    width: auto;
    min-height: 44px;
    padding: 10px 13px;
    white-space: nowrap;
  }

  .training-hero {
    min-height: 430px;
    background-position: 67% center;
  }

  .training-hero-copy {
    width: 100%;
    min-height: 430px;
    padding: 44px 22px 62px;
    background: rgba(15, 20, 57, 0.88);
  }

  .training-hero h1 {
    font-size: clamp(3.1rem, 15vw, 4rem);
  }

  .training-hero-copy > p:not(.training-eyebrow) {
    max-width: 520px;
    font-size: 1rem;
  }

  .training-hero-quote {
    display: none;
  }

  .training-hero-progress {
    align-items: flex-start;
    flex-direction: column;
  }

  .training-hero-progress progress {
    width: 100%;
  }

  .training-course-shell {
    width: calc(100% - 24px);
    margin-top: -28px;
    padding-bottom: 36px;
  }

  .gallery-current {
    padding: 18px;
    border-radius: 15px;
  }

  .gallery-current-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-current-number {
    min-width: 58px;
    font-size: 3rem;
  }

  .gallery-current-module h2 {
    font-size: 1.55rem;
  }

  .gallery-method {
    grid-template-columns: 1fr;
  }

  .gallery-method article {
    min-height: 64px;
    padding: 9px 0;
    border-top: 1px solid var(--gallery-line);
    border-left: 0;
  }

  .gallery-method strong {
    font-size: 1rem;
  }

  .gallery-method span {
    font-size: 0.84rem;
  }

  .gallery-primary-action {
    min-height: 60px;
    grid-column: auto;
  }

  .gallery-route {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .gallery-route-heading {
    display: block;
    padding: 22px 18px;
  }

  .gallery-route-heading h2 {
    font-size: 1.85rem;
  }

  .gallery-route-heading p {
    margin-top: 10px;
    text-align: left;
  }

  .gallery-route-list a {
    grid-template-columns: 46px 1fr 22px;
    gap: 11px;
    min-height: 82px;
    padding: 12px 14px;
  }

  .gallery-route-number {
    font-size: 1.35rem;
  }

  .gallery-route-list strong {
    font-size: 1rem;
  }

  .gallery-route-meta,
  .gallery-route-status {
    display: none;
  }

  .gallery-route-note {
    min-height: 230px;
    background-position: center 58%;
  }

  .training-body .source-promise {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .training-body .source-promise strong {
    white-space: normal;
  }
}
