* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 8% 88%, rgba(192, 228, 211, .34), transparent 34rem),
    radial-gradient(ellipse at 94% 6%, rgba(238, 242, 207, .5), transparent 31rem),
    var(--paper);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
}

/* Home: centred announcement card */
.main-center {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 64px 28px 76px;
}

.announcement {
  position: relative;
  isolation: isolate;
  width: min(100%, 1060px);
  padding: clamp(48px, 8vw, 94px) clamp(28px, 8vw, 104px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 28px;
  background: linear-gradient(132deg, #1c6262 0%, var(--deep) 51%, var(--deep-dark) 100%);
  box-shadow: 0 28px 70px rgba(16, 59, 62, .15);
  text-align: center;
}

.announcement::before,
.announcement::after {
  position: absolute;
  z-index: -1;
  display: block;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.announcement::before {
  top: -270px;
  right: -125px;
  width: 530px;
  height: 530px;
  box-shadow:
    0 0 0 32px rgba(255, 255, 255, .025),
    0 0 0 66px rgba(255, 255, 255, .022);
}

.announcement::after {
  bottom: -324px;
  left: -172px;
  width: 480px;
  height: 480px;
  border-color: rgba(255, 174, 0, .16);
  box-shadow: 0 0 0 34px rgba(255, 174, 0, .035);
}

.announcement .eyebrow {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #e6f4ef;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.announcement h1 {
  max-width: 780px;
  margin: 27px auto 0;
  color: var(--white);
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: 1.04;
}

.intro {
  max-width: 670px;
  margin: 27px auto 0;
  color: rgba(240, 248, 244, .88);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 400;
  line-height: 1.75;
}

.login-link {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  padding: 0 25px;
  border: 0;
  border-radius: 10px;
  background: var(--gold);
  box-shadow: 0 8px 20px rgba(7, 34, 36, .18);
  color: #173b3d;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.login-link:hover {
  background: #ffc13a;
  box-shadow: 0 10px 24px rgba(7, 34, 36, .24);
  transform: translateY(-2px);
}

.login-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.login-link svg {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform .18s ease;
}

.login-link:hover svg { transform: translateX(3px); }

.login-hint {
  margin: 18px 0 0;
  color: rgba(240, 248, 244, .66);
  font-size: 13px;
  line-height: 1.6;
}

/* Declaration on the legal documents (member dashboard) */
.consent-card {
  max-width: 720px;
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(22, 79, 80, .14);
  border-left: 4px solid var(--gold);
  border-radius: 16px;
  background: #fff;
}

.consent-card h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 24px);
}

.consent-card p {
  margin: 12px 0 0;
  color: #4d6463;
  font-size: 15px;
  line-height: 1.65;
}

.consent-card a { color: #08776e; }

.consent-card .alert { margin-top: 18px; }

/* Highlighted notice of a legal document in the declaration (yellow band) */
.consent-card .consent-notice {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(199, 139, 0, .35);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: #fff8e1;
  color: #4a3b06;
}
.consent-card .consent-notice h3 { margin: 0 0 8px; color: #5c4300; font-size: 17px; line-height: 1.35; }
.consent-card .consent-notice p { margin: 8px 0 0; color: #4a3b06; font-size: 14px; line-height: 1.6; }
.consent-card .consent-notice p:first-of-type { margin-top: 0; }
.consent-card .consent-notice ul { margin: 8px 0 0; padding-left: 20px; color: #4a3b06; font-size: 14px; line-height: 1.6; }
.consent-card .consent-notice li + li { margin-top: 4px; }
.consent-card .consent-notice a { color: #7a5600; font-weight: 700; }

.consent-form { margin-top: 20px; }

/* Large touch targets: the whole row toggles the box */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(22, 79, 80, .16);
  border-radius: 12px;
  background: var(--mint);
  color: var(--deep-dark);
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

.consent-check input {
  width: 22px;
  height: 22px;
  flex: none;
  margin: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.consent-card .consent-note { font-size: 14px; }

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

.consent-actions button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}

.consent-confirm {
  border: 0;
  background: var(--gold);
  color: #173b3d;
}

.consent-confirm:hover { background: #ffc13a; }

.consent-logout {
  border: 1px solid rgba(22, 79, 80, .3);
  background: transparent;
  color: var(--deep);
}

.consent-logout:hover { border-color: #b3321f; color: #b3321f; }

.consent-actions button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.consent-card .consent-help {
  margin-top: 20px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .consent-actions { flex-direction: column; }
  .consent-actions button { width: 100%; }
}

/* Newsletter invitation at the end of the home page block */
.newsletter-teaser {
  max-width: 640px;
  margin: 46px auto 0;
  padding-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.newsletter-teaser h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.newsletter-teaser p {
  margin: 14px auto 0;
  color: rgba(240, 248, 244, .82);
  font-size: 15px;
  line-height: 1.7;
}

/* Secondary to the login button: outlined, fills on hover */
.teaser-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 0 22px;
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.teaser-link:hover {
  background: var(--gold);
  color: #173b3d;
  transform: translateY(-2px);
}

.teaser-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.teaser-link svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Document pages (legal texts, information) */
.main-document {
  flex: 1;
  padding: 58px 28px 76px;
}

.document {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(22, 79, 80, .1);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 22px 58px rgba(16, 59, 62, .09);
}

.document .eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.document h1 {
  margin: 0;
  color: var(--deep-dark);
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -.045em;
  line-height: 1.08;
}

.lead {
  max-width: 690px;
  margin: 18px 0 0;
  color: #506968;
  font-size: 17px;
  line-height: 1.7;
}

.review-note {
  margin: 30px 0 38px;
  padding: 20px 22px;
  border: 1px solid rgba(199, 139, 0, .32);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: #fff8e7;
  color: #4a5551;
}

.review-note h2 { margin: 0 0 10px; color: #654900; font-size: 16px; }
.review-note p, .review-note ul, .review-note ol { font-size: 14px; line-height: 1.7; }
.review-note p { margin: 0 0 10px; }
.review-note p:last-child { margin-bottom: 0; }
.review-note ul, .review-note ol { margin: 0; padding-left: 20px; }
.review-note li + li { margin-top: 4px; }

.legal-section {
  padding-top: 28px;
  border-top: 1px solid rgba(22, 79, 80, .12);
}

.legal-section + .legal-section { margin-top: 32px; }

.legal-section h2 {
  margin: 0 0 18px;
  color: var(--deep-dark);
  font-size: 21px;
  letter-spacing: -.02em;
}

/*
 * Label–value list (<dl class="details">). The grid is on the list itself, so
 * it works with each pair wrapped in a <div> and without (the admin's editor
 * removes those wrappers when the page is saved there).
 */
.details {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr);
  margin: 0;
}

.details > div { display: contents; }

.details dt,
.details dd {
  padding: 13px 0;
  border-bottom: 1px solid rgba(22, 79, 80, .09);
}

.details dt { padding-right: 18px; color: #58706e; font-size: 14px; font-weight: 650; }

.details dd {
  margin: 0;
  color: #203c3e;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.details a, .legal-section a { color: #08776e; text-underline-offset: 3px; }

.to-confirm {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid rgba(199, 139, 0, .3);
  border-radius: 6px;
  background: #fff4d1;
  color: #765400;
  font-size: 13px;
  font-weight: 750;
}

.status-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff1c7;
  color: #765400;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.legal-copy { margin: 0; color: #506968; font-size: 15px; line-height: 1.75; }
.legal-copy + .legal-copy,
.legal-copy + .bullet-list { margin-top: 10px; }
.last-updated { margin: 32px 0 0; color: #5e7473; font-size: 13px; }

.bullet-list { margin: 0; padding-left: 22px; color: #506968; font-size: 15px; line-height: 1.75; }
.bullet-list li + li { margin-top: 8px; }
.bullet-list + .legal-copy,
.legal-copy + .details { margin-top: 10px; }

.action-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0 20px;
  border-radius: 9px;
  background: var(--gold);
  color: #173b3d !important;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.action-link:hover { background: #ffc13a; text-decoration: none; }

.action-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.action-links .action-link { margin-top: 18px; }

@media (max-width: 640px) {

  .main-center { padding: 38px 18px 48px; }

  .announcement {
    padding: 48px 24px 52px;
    border-radius: 22px;
  }

  .announcement .eyebrow {
    font-size: 10px;
    letter-spacing: .09em;
  }

  .announcement h1 {
    margin-top: 23px;
    letter-spacing: -.045em;
  }

  .intro {
    margin-top: 21px;
    line-height: 1.65;
  }

  .login-link {
    width: 100%;
    max-width: 300px;
    margin-top: 28px;
  }

  .main-document { padding: 36px 18px 48px; }
  .document { padding: 30px 22px; border-radius: 19px; }
  .lead { font-size: 16px; }
  .review-note { padding: 17px; }
  .details { grid-template-columns: 1fr; }
  .details dt { padding-right: 0; padding-bottom: 0; border-bottom: 0; }
  .details dd { padding-top: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/*
 * Page content edited in the admin (TinyMCE): plain HTML without classes.
 * The draft texts use the .legal-section / .details classes above instead.
 */
.page-content > header { margin-bottom: 30px; }
.page-content > header + .lead { margin-top: -12px; }
.page-content > .lead + p:not([class]) { margin-top: 14px; }
.page-content > .lead + .legal-section { margin-top: 30px; }

.page-content > h2,
.page-content > h3 {
  margin: 36px 0 14px;
  color: var(--deep-dark);
  letter-spacing: -.02em;
  line-height: 1.3;
}

.page-content > h2 { font-size: 23px; }
.page-content > h3 { font-size: 19px; }
.page-content > h4 { margin: 26px 0 10px; color: var(--deep-dark); font-size: 16px; line-height: 1.35; }

/* Legal documents: the section numbers Word generates (1, 1.1, 1.1.1) */
.page-content .doc-num { display: inline-block; min-width: 2.2em; margin-right: .35em; color: #08776e; font-variant-numeric: tabular-nums; }
.page-content > h2[id], .page-content > h3[id], .page-content > h4[id] { scroll-margin-top: 20px; }
.page-content td p, .page-content th p { margin: 0; }
.page-content td p + p, .page-content th p + p { margin-top: 6px; }
.page-content td ul, .page-content th ul { margin: 6px 0 0; padding-left: 20px; }
.page-content th { background: #f1f6f5; color: #203c3e; }
.page-content > h2 strong,
.page-content > h3 strong { font-weight: inherit; }

.page-content > p:not([class]),
.page-content > ul:not([class]),
.page-content > ol:not([class]) {
  margin: 0 0 14px;
  color: #3f5857;
  font-size: 15px;
  line-height: 1.75;
}

.page-content > ul:not([class]),
.page-content > ol:not([class]) { padding-left: 24px; }
.page-content li + li { margin-top: 6px; }
.page-content a { color: #08776e; text-underline-offset: 3px; }

/* A link as a button in the page text: <a class="page-button"> */
.page-content a.page-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--gold);
  color: #173b3d;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.page-content a.page-button:hover { background: #ffc13a; transform: translateY(-2px); }
.page-content a.page-button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.page-content strong { color: #203c3e; }
.page-content img { max-width: 100%; height: auto; }

.page-content table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-content th,
.page-content td {
  padding: 8px 10px;
  border: 1px solid rgba(22, 79, 80, .15);
  text-align: left;
  vertical-align: top;
}

.page-content .table-responsive { overflow-x: auto; }

/* Auth pages: login, forgot / reset password */
.auth-card {
  width: min(100%, 460px);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid rgba(22, 79, 80, .1);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 22px 58px rgba(16, 59, 62, .09);
}

.auth-card .eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 0;
  color: var(--deep-dark);
  font-size: clamp(28px, 4vw, 34px);
  letter-spacing: -.04em;
  line-height: 1.1;
}

.auth-card .auth-lead {
  margin: 12px 0 0;
  color: #506968;
  font-size: 15px;
  line-height: 1.65;
}

.auth-form { margin-top: 26px; }
.form-field + .form-field { margin-top: 16px; }

.form-field label {
  display: block;
  margin-bottom: 6px;
  color: #34504f;
  font-size: 14px;
  font-weight: 650;
}

.form-field input[type="email"],
.form-field input[type="password"] {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(22, 79, 80, .22);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.form-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 143, 131, .15);
  outline: none;
}

.form-field input[aria-invalid="true"] { border-color: #c2412d; }

.field-error {
  margin: 6px 0 0;
  color: #b3321f;
  font-size: 13px;
  font-weight: 600;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: #34504f;
  font-size: 14px;
}

.form-check input { width: 17px; height: 17px; accent-color: var(--teal); }

.auth-submit {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  border: 0;
  border-radius: 10px;
  background: var(--gold);
  color: #173b3d;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.auth-submit:hover { background: #ffc13a; transform: translateY(-1px); }

.auth-submit:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.auth-links {
  margin: 20px 0 0;
  font-size: 14px;
  text-align: center;
}

.auth-links a { color: #08776e; font-weight: 650; text-underline-offset: 3px; }

.auth-note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(22, 79, 80, .1);
  color: #5e7473;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.auth-note a { color: #08776e; }

.alert {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.alert ul { margin: 0; padding-left: 18px; }
.alert-success { border: 1px solid rgba(22, 143, 131, .3); background: #e8f3ed; color: #145b52; }
.alert-error { border: 1px solid rgba(194, 65, 45, .3); background: #fdecea; color: #8f2a1b; }
.alert-warning { border: 1px solid rgba(199, 139, 0, .32); background: #fff8e7; color: #654900; }

/* Member area: dashboard and orders */
.main-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.course-dashboard {
  width: min(100%, 1060px);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(22, 79, 80, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 42px rgba(16, 59, 62, .08);
  scroll-margin-top: 24px;
}

.dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.course-dashboard .eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.course-dashboard h1,
.course-dashboard h2 {
  margin: 0;
  color: var(--deep-dark);
  font-size: 26px;
  letter-spacing: -.02em;
}

.dashboard-head p,
.dashboard-empty {
  margin: 10px 0 0;
  color: #506968;
  font-size: 15px;
  line-height: 1.7;
}

.dashboard-empty { margin-top: 24px; }
.dashboard-empty a { color: #08776e; }

.dashboard-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(22, 79, 80, .2);
  border-radius: 9px;
  color: var(--deep);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-link:hover { border-color: var(--teal); color: var(--teal); }

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.course-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(22, 79, 80, .12);
  border-radius: 14px;
  background: var(--white);
}

.course-card h3 {
  margin: 0;
  color: var(--deep-dark);
  font-size: 18px;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.course-desc {
  margin: 8px 0 0;
  color: #5e7473;
  font-size: 14px;
  line-height: 1.6;
}

.course-progress { margin-top: auto; padding-top: 18px; }

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--mint);
}

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

.course-progress p {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 0;
  color: #5e7473;
  font-size: 13px;
}

.course-progress strong { color: var(--deep-dark); }

.course-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.course-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}

.btn-primary { background: var(--gold); color: #173b3d; }
.btn-primary:hover { background: #ffc13a; }
.btn-secondary { border: 1px solid rgba(22, 79, 80, .22); color: var(--deep); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

.course-actions-single { grid-template-columns: 1fr; }

.course-complete {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: var(--mint);
  color: var(--deep-dark);
  font-size: 14px;
  font-weight: 700;
}

.course-reset { margin-top: 12px; text-align: center; }

.course-reset button {
  padding: 4px 6px;
  border: 0;
  background: none;
  color: #7a8d8b;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.course-reset button:hover { color: #b3321f; }

.table-wrap { margin-top: 24px; overflow-x: auto; }

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.orders-table th {
  padding: 10px 12px;
  border-bottom: 2px solid rgba(22, 79, 80, .15);
  color: #58706e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.orders-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(22, 79, 80, .09);
  color: #203c3e;
  vertical-align: top;
}

.cell-line { display: block; }
.cell-line + .cell-line { margin-top: 4px; }

.status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.status-paid { background: #e8f3ed; color: #145b52; }
.status-pending { background: #fff1c7; color: #765400; }
.status-failed { background: #fdecea; color: #8f2a1b; }

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

  /* Orders: one card per order instead of a wide table */
  .orders-table thead { display: none; }
  .orders-table tr { display: block; padding: 12px 0; border-bottom: 1px solid rgba(22, 79, 80, .12); }
  .orders-table td { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 5px 0; border: 0; }
  .orders-table td::before { content: attr(data-label); color: #58706e; font-size: 12px; font-weight: 700; }
}

/* Member profile form */
.dashboard-links { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-card { max-width: 760px; }

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

.form-row > .form-field + .form-field { margin-top: 0; }

.form-row + .form-field,
.form-field + .form-row,
.form-row + .form-row { margin-top: 16px; }

.form-field input[type="text"] {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(22, 79, 80, .22);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.form-group {
  margin: 28px 0 0;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid rgba(22, 79, 80, .1);
}

.form-group legend {
  float: left;
  width: 100%;
  margin: 0;
  color: var(--deep-dark);
  font-size: 17px;
  font-weight: 750;
}

.form-group legend + * { clear: both; }

.form-hint {
  margin: 4px 0 12px;
  color: #5e7473;
  font-size: 13px;
  line-height: 1.55;
}

.form-confirm {
  margin-top: 28px;
  padding: 18px;
  border-radius: 12px;
  background: var(--mint);
}

.form-confirm .form-hint { margin-top: 0; }
.profile-submit { width: auto; padding: 0 28px; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .profile-submit { width: 100%; }
}

/* Error pages (404, 403, 419, 500, 503) */
.error-card { text-align: center; }

.error-code {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: clamp(56px, 10vw, 76px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
}

.error-card .auth-submit { text-decoration: none; }

/* Newsletter page: Mautic form ([hirlevel-urlap]) and the notes around it */
.page-content .form-note { margin: 22px 0 0; color: #5e7473; font-size: 14px; line-height: 1.65; }

.page-content .form-after {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(22, 79, 80, .1);
  color: #5e7473;
  font-size: 14px;
  line-height: 1.7;
}

.page-content .form-after p { margin: 0; }
.page-content .form-after p + p { margin-top: 12px; }
.page-content .form-company { margin: 18px 0 0; color: #5e7473; font-size: 13px; line-height: 1.7; }

.newsletter-form {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid rgba(22, 79, 80, .12);
  border-radius: 16px;
  background: var(--mint);
}

.newsletter-form .mauticform-row { margin-bottom: 18px; }

/* Last name and first name side by side */
.newsletter-form-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.newsletter-form .newsletter-form-names .mauticform-row:last-child { margin-bottom: 18px; }
.newsletter-form .mauticform-row:last-child { margin-bottom: 0; }

.newsletter-form .mauticform-label {
  display: block;
  margin-bottom: 6px;
  color: #34504f;
  font-size: 14px;
  font-weight: 650;
}

.newsletter-form .mauticform-required > .mauticform-label::after { content: " *"; color: #b3321f; }

.newsletter-form .mauticform-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(22, 79, 80, .22);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.newsletter-form .mauticform-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 143, 131, .15);
  outline: none;
}

.newsletter-form .mauticform-checkboxgrp-row { display: flex; align-items: flex-start; gap: 10px; }

.newsletter-form .mauticform-checkboxgrp-checkbox {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--teal);
}

.newsletter-form .mauticform-checkboxgrp-label { color: #34504f; font-size: 14px; line-height: 1.6; }
.newsletter-form .mauticform-checkboxgrp-label a { color: #08776e; }

.newsletter-form .mauticform-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--gold);
  color: #173b3d;
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  transition: background-color .18s ease;
}

.newsletter-form .mauticform-button:hover { background: #ffc13a; }
.newsletter-form .mauticform-button:disabled { opacity: .65; cursor: wait; }

.newsletter-form .mauticform-button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.newsletter-form .mauticform-errormsg { display: block; margin-top: 6px; color: #b3321f; font-size: 13px; font-weight: 600; }
.newsletter-form .mauticform-error:not(:empty) { margin-bottom: 16px; color: #8f2a1b; font-size: 14px; }

.newsletter-form .mauticform-message:not(:empty) {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(22, 143, 131, .3);
  border-radius: 12px;
  background: var(--white);
  color: #145b52;
  font-size: 15px;
  line-height: 1.65;
}

/* Robot check (Turnstile widget) */
.newsletter-captcha-widget { min-height: 65px; }

@media (max-width: 640px) {
  .newsletter-form { padding: 20px 16px; }
  .newsletter-form-names { grid-template-columns: 1fr; }
}

/* Legal documents: PDF download and print, at the end of the text */
.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(22, 79, 80, .12);
}

.document-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border: 1.5px solid rgba(22, 143, 131, .45);
  border-radius: 10px;
  background: #fff;
  color: #145b52;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.page-content a.document-action { color: #145b52; text-decoration: none; }
.document-action:hover { background: #eef6f4; border-color: var(--teal); }
.document-action:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.document-action svg { width: 18px; height: 18px; flex: 0 0 18px; }

@media (max-width: 480px) {
  .document-action { flex: 1 1 100%; justify-content: center; }
}

/* Printing a page: only the document itself */
@media print {
  .site-header,
  .notice-banner,
  .site-footer,
  .document-actions { display: none !important; }
  body, .page { background: #fff !important; }
  .main-document { padding: 0; }
  .document { width: 100%; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; }
  .page-content a { color: inherit; }
}

/* Fiókom: deleting the account (link box, confirmation page) */
.account-delete-box {
  margin-top: 40px;
  padding: 20px 22px;
  border: 1px solid rgba(194, 65, 45, .28);
  border-radius: 14px;
  background: #fffaf9;
}
.course-dashboard .account-delete-box h2 { margin: 0 0 8px; color: #8f2a1b; font-size: 18px; }
.account-delete-box p { margin: 0 0 14px; color: #4b5f5e; font-size: 15px; line-height: 1.6; }
.account-delete-link { color: #b3321f; font-weight: 700; text-underline-offset: 3px; }

.account-delete-warning {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(194, 65, 45, .35);
  border-left: 4px solid #b3321f;
  border-radius: 12px;
  background: #fdecea;
  color: #6f2014;
  font-size: 15px;
  line-height: 1.6;
}
.account-delete-warning strong { display: block; margin-bottom: 4px; color: #8f2a1b; }

.course-dashboard .account-delete-heading { margin: 26px 0 8px; color: var(--deep-dark); font-size: 17px; line-height: 1.35; letter-spacing: 0; }
.account-delete-list { margin: 0; padding-left: 20px; color: #34504f; font-size: 15px; line-height: 1.6; }
.account-delete-list li + li { margin-top: 6px; }
.account-delete-text { margin: 0 0 10px; color: #34504f; font-size: 15px; line-height: 1.65; }
.account-delete-text a { color: #08776e; }

.account-delete-form .form-field { margin-top: 18px; }

.account-delete-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 22px;
}

.account-delete-submit {
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: #b3321f;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  transition: background-color .18s ease;
}
.account-delete-submit:hover { background: #8f2a1b; }
.account-delete-submit:focus-visible { outline: 3px solid #b3321f; outline-offset: 3px; }

.account-delete-cancel {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  padding: 0 20px;
  border: 1px solid rgba(22, 79, 80, .22);
  border-radius: 10px;
  background: #fff;
  color: var(--deep-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.account-delete-cancel:hover { border-color: var(--teal); }

.account-deleted-home { display: inline-flex; align-items: center; margin-top: 18px; text-decoration: none; }

@media (max-width: 640px) {
  .account-delete-submit,
  .account-delete-cancel { width: 100%; justify-content: center; }
}
