.tmc-portal {
  --tmc-ink: #17171b;
  --tmc-muted: #62636b;
  --tmc-paper: #fffaf2;
  --tmc-surface: #ffffff;
  --tmc-line: #e4ddd2;
  --tmc-burgundy: #8f1737;
  --tmc-navy: #18324a;
  --tmc-teal: #0f766e;
  --tmc-gold: #d69b24;
  color: var(--tmc-ink);
  background: var(--tmc-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.tmc-portal a {
  color: inherit;
}

.tmc-portal h1,
.tmc-portal h2,
.tmc-portal h3,
.tmc-portal p {
  margin-top: 0;
}

.tmc-hero {
  position: relative;
  min-height: min(720px, calc(100vh - 72px));
  overflow: hidden;
  background: var(--tmc-navy);
}

.tmc-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tmc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 22, 32, 0.8), rgba(16, 22, 32, 0.42) 48%, rgba(16, 22, 32, 0.2));
}

.tmc-hero-overlay {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  padding: clamp(72px, 11vw, 140px) clamp(18px, 6vw, 72px);
  color: white;
}

.tmc-eyebrow {
  margin: 0 0 10px;
  color: var(--tmc-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tmc-portal h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 7vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.tmc-portal h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.tmc-portal h3 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.tmc-hero p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  line-height: 1.6;
}

.tmc-hero-actions,
.tmc-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tmc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.tmc-primary {
  background: var(--tmc-burgundy);
  color: white;
}

.tmc-secondary {
  border-color: rgba(255, 255, 255, 0.58);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.tmc-tertiary {
  border-color: var(--tmc-line);
  background: white;
  color: var(--tmc-ink);
}

.tmc-section {
  padding: clamp(48px, 7vw, 88px) clamp(18px, 5vw, 72px);
}

.tmc-intro-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  background: var(--tmc-surface);
}

.tmc-intro-band p,
.tmc-split p,
.tmc-enrolment p,
.tmc-dashboard-grid article p {
  color: var(--tmc-muted);
  line-height: 1.55;
}

.tmc-stat-strip span {
  min-width: 150px;
  padding: 16px;
  border-left: 4px solid var(--tmc-teal);
  background: #f5efe5;
}

.tmc-stat-strip strong {
  display: block;
  font-size: 1.8rem;
  color: var(--tmc-navy);
}

.tmc-split,
.tmc-enrolment {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.tmc-path-grid,
.tmc-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tmc-path-grid article,
.tmc-dashboard-grid article,
.tmc-login-panel,
.tmc-enrol-form {
  border: 1px solid var(--tmc-line);
  border-radius: 8px;
  background: var(--tmc-surface);
  box-shadow: 0 10px 30px rgba(23, 23, 27, 0.06);
}

.tmc-path-grid article {
  padding: 18px;
}

.tmc-path-grid span {
  display: block;
  margin-top: 8px;
  color: var(--tmc-muted);
  line-height: 1.45;
}

.tmc-dashboard-shell {
  background: #eef4f1;
}

.tmc-login-panel,
.tmc-member-dashboard {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.tmc-login-panel {
  padding: clamp(24px, 4vw, 44px);
}

.tmc-login-form,
.tmc-enrol-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.tmc-portal label {
  display: grid;
  gap: 8px;
  color: var(--tmc-ink);
  font-weight: 750;
}

.tmc-portal input,
.tmc-portal select,
.tmc-portal textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cdc5b8;
  border-radius: 8px;
  color: var(--tmc-ink);
  background: white;
  font: inherit;
}

.tmc-portal textarea {
  resize: vertical;
}

.tmc-hint,
.tmc-form-status {
  align-self: center;
  margin: 0;
  color: var(--tmc-muted);
}

.tmc-hidden {
  display: none;
}

.tmc-member-dashboard {
  border-radius: 8px;
}

.tmc-dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.tmc-dashboard-grid article {
  padding: 20px;
}

.tmc-progress-card {
  grid-row: span 2;
}

.tmc-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.tmc-card-head span {
  color: var(--tmc-teal);
  font-weight: 900;
}

.tmc-progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e0d8;
}

.tmc-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tmc-teal), var(--tmc-gold));
}

.tmc-levels,
.tmc-task-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.tmc-levels li {
  padding: 12px;
  border-radius: 8px;
  background: #f6f1e9;
  color: var(--tmc-muted);
}

.tmc-levels .tmc-done {
  color: var(--tmc-teal);
  font-weight: 800;
}

.tmc-levels .tmc-active {
  border: 1px solid rgba(143, 23, 55, 0.34);
  color: var(--tmc-burgundy);
  font-weight: 800;
  background: #fff2f4;
}

.tmc-task-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--tmc-muted);
}

.tmc-task-list span {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--tmc-gold);
  flex: 0 0 auto;
}

.tmc-role-list {
  display: grid;
  gap: 10px;
}

.tmc-role-list p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--tmc-line);
}

.tmc-role-list p:last-child {
  border-bottom: 0;
}

.tmc-role-list span {
  color: var(--tmc-muted);
}

.tmc-enrol-form {
  padding: 24px;
}

.tmc-wide {
  grid-column: 1 / -1;
}

@media (max-width: 820px) {
  .tmc-hero {
    min-height: 680px;
  }

  .tmc-hero-overlay {
    padding-top: 92px;
  }

  .tmc-intro-band,
  .tmc-split,
  .tmc-enrolment,
  .tmc-path-grid,
  .tmc-dashboard-grid,
  .tmc-login-form,
  .tmc-enrol-form {
    grid-template-columns: 1fr;
  }

  .tmc-progress-card {
    grid-row: auto;
  }

  .tmc-dashboard-head,
  .tmc-role-list p {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .tmc-portal h1 {
    font-size: 2.7rem;
  }

  .tmc-button {
    width: 100%;
  }
}
