:root {
  --paper: var(--portal-paper, #faf6f1);
  --ink: var(--portal-ink, #302722);
  --navy: var(--portal-primary, #aa3907);
  --blue: var(--portal-primary, #aa3907);
  --cyan: var(--portal-highlight, #ffe1b8);
  --white: #fff;
  --accent: var(--navy);
  --line: var(--portal-line, #dfcfc3);
  --control-border: var(--portal-control, #8a6d5d);
  --muted: var(--portal-muted, #6b5b51);
  --soft: var(--portal-soft, #f7eee7);
  --success: #2f5d4e;
  --error: #9f243a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.55 Montserrat,
    Arial,
    sans-serif;
  overflow-wrap: break-word;
}
a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
/* Text links remain recognizable without hover. Button/card chrome stays plain. */
a.button,
a.brand,
a.avatar,
a.workspace-step-action,
a.workspace-resource,
a.module,
.workspace-staff-links > a { text-decoration: none; }
.workspace-resource strong,
.workspace-staff-links strong,
.module strong { text-decoration: underline; text-underline-offset: 3px; }
.checkbox a,
footer a { display: inline-flex; align-items: center; min-height: 44px; }
button,
input,
select,
textarea {
  font: inherit;
}
button,
a.button {
  min-height: 44px;
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
  border-radius: 5px;
  padding: 11px 20px;
  cursor: pointer;
  font-weight: 600;
  display: inline-block;
}
button:hover:not(:disabled),
a.button:hover {
  background: var(--portal-primary-strong, #7c2905);
  border-color: var(--portal-primary-strong, #7c2905);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.secondary,
a.secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--control-border);
}
button.secondary:hover:not(:disabled),
a.secondary:hover {
  background: var(--soft);
  border-color: var(--navy);
}
button.accent,
a.accent {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
button.accent:hover:not(:disabled),
a.accent:hover {
  background: var(--portal-primary-strong, #7c2905);
  border-color: var(--portal-primary-strong, #7c2905);
}
.text-link {
  color: var(--accent);
  text-decoration: underline;
}
h1,
h2,
h3 {
  font-family: "Lexend Deca", Arial, sans-serif;
  font-weight: 500;
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(34px, 4vw, 48px);
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 23px;
}
p {
  margin: 0 0 16px;
}
.muted,
small {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.review-banner {
  padding: 9px 24px;
  text-align: center;
  color: #fff;
  background: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.review-banner span {
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 14px;
}
header {
  max-width: 1240px;
  padding: 21px 32px;
  margin: auto;
  display: flex;
  gap: 35px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  font:
    500 24px "Lexend Deca",
    Arial,
    sans-serif;
  color: var(--navy);
  flex-shrink: 0;
}
.brand span {
  display: block;
  font:
    8px Montserrat,
    Arial,
    sans-serif;
  color: var(--accent);
  letter-spacing: 2px;
  font-weight: 700;
  margin-top: 3px;
}
nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  font-size: 13px;
}
nav a {
  position: relative;
}
nav a.active::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -10px;
  border-bottom: 3px solid var(--blue);
  pointer-events: none;
}
nav a:hover,
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.avatar {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: var(--navy);
  color: white;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}
.mobile-menu {
  display: none;
}
main {
  max-width: 1080px;
  margin: auto;
  padding: 40px 30px 70px;
  min-height: 70vh;
}
footer {
  padding: 24px 32px;
  background: var(--soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
}
.hero {
  background: linear-gradient(120deg, var(--navy), var(--ink));
  color: white;
  min-height: 320px;
  border-radius: 12px;
  padding: 46px;
  display: flex;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: "";
  opacity: 0.4;
  pointer-events: none;
  width: 330px;
  height: 330px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  position: absolute;
  right: -30px;
  top: -140px;
  box-shadow:
    0 0 0 60px #fff1,
    0 0 0 120px #fff1;
}
.hero .eyebrow,
.split-art .eyebrow,
.split-art .brand span {
  color: var(--white);
}
.hero h1,
.hero h2,
.split-art h1,
.split-art .brand {
  color: var(--white);
}
.hero > div {
  position: relative;
  z-index: 1;
  max-width: 570px;
}
.hero p {
  max-width: 470px;
  color: var(--white);
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.grid > *,
.split > *,
.form-row > * {
  min-width: 0;
}
.card {
  background: white;
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 12px;
}
.checklist {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.checklist .step {
  width: 25px;
  height: 25px;
  border: 1px solid var(--control-border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 12px;
}
.checklist .done {
  background: var(--success);
  color: white;
  border-color: var(--success);
}
.checklist div {
  flex: 1;
  min-width: 0;
}
.checklist strong {
  font-size: 14px;
}
.checklist small {
  display: block;
}
.checklist a {
  font-size: 12px;
  flex-shrink: 0;
}
.progress {
  height: 5px;
  background: var(--soft);
  border-radius: 8px;
  margin-top: 15px;
  overflow: hidden;
}
.progress span {
  height: 100%;
  display: block;
  background: var(--blue);
}
.side-links a {
  display: block;
  border: 1px solid var(--line);
  background: white;
  padding: 20px;
  margin-bottom: 12px;
  border-radius: 10px;
}
.side-links small {
  display: block;
}
.number {
  color: var(--accent);
  margin-right: 12px;
}
.narrow {
  max-width: 740px;
  margin: auto;
}
.reading {
  white-space: pre-line;
  line-height: 1.75;
}
.resource-head {
  padding: 32px 0 12px;
}
.pill {
  font-size: 10px;
  color: var(--navy);
  background: var(--soft);
  border-radius: 4px;
  padding: 4px 8px;
  white-space: nowrap;
}
.warning {
  padding: 16px 20px;
  background: #fff4d6;
  color: #674600;
  border: 1px solid #d5b772;
  border-left: 4px solid #b5801c;
  border-radius: 7px;
  font-size: 13px;
  margin: 20px 0;
}
.module {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 14px 0;
  background: white;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 12px;
}
.training-icon {
  width: 80px;
  height: 80px;
  background: var(--soft);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--navy);
  flex-shrink: 0;
}
.training-icon img {
  display: block;
  width: 100%;
  height: 100%;
}
.training-intro {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 20px 0;
}
.training-intro p {
  margin: 5px 0 0;
  color: var(--muted);
}
.module div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.module strong {
  display: block;
}
.module small {
  font-size: 12px;
}
.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 15px;
}
label {
  display: block;
  font-size: 12px;
  margin-bottom: 16px;
  font-weight: 600;
}
input:not([type="checkbox"]),
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--control-border);
  border-radius: 5px;
  padding: 11px;
  background: white;
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--navy);
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}
.checkbox {
  min-height: 44px;
  font-weight: 400;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 650px;
  border: 1px solid var(--line);
  margin: 0 -10px;
}
.split-art {
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(150deg, var(--navy), var(--ink));
  color: white;
}
.split-art h1 {
  font-size: 44px;
}
.split-art p {
  font-size: 14px;
  color: var(--white);
}
.split-form {
  padding: clamp(24px, 4vw, 48px);
  background: var(--white);
}
.drop {
  background: #fff;
  border: 1.5px dashed var(--control-border);
  border-radius: 12px;
  text-align: center;
  padding: 42px 20px;
  position: relative;
  cursor: pointer;
}
.drop .up {
  font-size: 30px;
  color: var(--accent);
  display: block;
}
.drop input {
  max-width: 100%;
  font-size: 12px;
}
.files {
  margin-top: 18px;
}
.file {
  background: white;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 9px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.file img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 5px;
}
.file span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.file small {
  display: block;
}
.file button {
  font-size: 11px;
  padding: 6px 9px;
}
.file .selection-remove {
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  flex-shrink: 0;
  padding: 10px 12px;
  font-size: 13px;
  white-space: normal;
}
/* Keep the destructive action visually secondary without shrinking its target. */
.file-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
  gap: 12px;
}
.file-actions .file-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 14px;
}
.file .file-remove {
  background: transparent;
  border-color: transparent;
  color: var(--navy);
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.file .file-remove:hover:not(:disabled) {
  background: transparent;
  border-color: transparent;
  color: var(--ink);
  text-decoration-thickness: 2px;
}
.receipt {
  text-align: center;
  padding: 55px 25px;
}
.receipt .check {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  font-size: 25px;
  margin-bottom: 24px;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
summary:after {
  content: "+";
  float: right;
  color: var(--accent);
}
details[open] summary:after {
  content: "−";
}
details p {
  padding-top: 16px;
  margin-bottom: 0;
  color: var(--muted);
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  max-width: 90vw;
  padding: 12px 22px;
  border-radius: 6px;
  display: none;
  z-index: 10;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.empty {
  padding: 40px;
  text-align: center;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.inbox {
  margin: 18px 0;
}
.inbox .meta {
  font-size: 12px;
  color: var(--muted);
}
.inbox h3 {
  margin: 12px 0;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.error {
  color: var(--error);
  background: #fff0f2;
  border: 1px solid #dcabb5;
  padding: 14px;
  border-radius: 6px;
  margin: 15px 0;
}
.inline-note {
  font-size: 12px;
  margin-top: 10px;
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid var(--portal-focus, #5a2108);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--white);
}
@media (max-width: 960px) {
  input:not([type="checkbox"]),
  select,
  textarea {
    font-size: 16px;
  }
  button,
  a.button,
  .text-link,
  nav a,
  summary,
  .checkbox {
    min-height: 44px;
  }
  button,
  a.button {
    max-width: 100%;
  }
  .text-link,
  nav a {
    display: inline-flex;
    align-items: center;
  }
  summary {
    padding-block: 10px;
  }
  .avatar {
    width: 44px;
    height: 44px;
  }
  header {
    padding: 17px 20px;
    gap: 14px;
    position: relative;
  }
  .brand {
    flex: 1;
  }
  nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 20px;
    background: var(--paper);
    z-index: 5;
    border-bottom: 1px solid var(--line);
  }
  nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .mobile-menu {
    display: block;
    min-width: 44px;
    padding: 5px 10px;
    font-size: 19px;
  }
}
@media (max-width: 760px) {
  .file {
    flex-wrap: wrap;
  }
  .file span {
    flex-basis: 140px;
  }
  .file img {
    flex: none;
  }
  .file-actions {
    width: 100%;
  }
  .file > a,
  .file > button {
    margin-left: auto;
  }
  main {
    padding: 25px 20px 45px;
  }
  .grid,
  .split,
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 26px;
    min-height: 310px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .review-banner {
    padding: 7px 12px;
  }
  .review-banner span {
    display: block;
    margin: 0;
    font-size: 10px;
  }
  .split {
    margin: 0;
  }
  .split-art {
    padding: 28px;
    min-height: 235px;
  }
  .split-art .brand {
    display: none;
  }
  .split-art h1 {
    font-size: 36px;
    margin-top: 20px;
  }
  .split-form {
    padding: 25px;
  }
  .card {
    padding: 21px;
  }
  .checklist a {
    padding: 7px 10px;
  }
  .module {
    gap: 12px;
    padding: 12px;
  }
  .module .training-icon {
    width: 48px;
    height: 48px;
  }
  .module .pill {
    font-size: 9px;
  }
  .actions {
    flex-wrap: wrap;
  }
  footer {
    flex-direction: column;
    gap: 6px;
  }
  .receipt {
    padding: 35px 15px;
  }
}

/* Active upload controls remain usable on touch screens and while fields lock. */
.upload-status-panel { display: grid; gap: 12px; margin-top: 16px; }
.upload-status-panel button { min-height: 44px; width: 100%; white-space: normal; }
.upload-status-panel [hidden] { display: none; }
.upload-status-panel small { line-height: 1.5; }

.portal-rich-content { white-space:normal; line-height:1.7; overflow-wrap:anywhere; }
.portal-rich-content p { margin:.65em 0; }
.portal-rich-content h1,.portal-rich-content h2,.portal-rich-content h3,.portal-rich-content h4,.portal-rich-content h5,.portal-rich-content h6 { font-weight:700; line-height:1.3; margin:1.2em 0 .6em; }
.portal-rich-content h1 { font-size:1.8em; }.portal-rich-content h2 {font-size:1.5em}.portal-rich-content h3 {font-size:1.25em}
.portal-rich-content ul,.portal-rich-content ol { padding-left:1.6em; margin:.65em 0; }
.portal-rich-content ul {list-style:disc}.portal-rich-content ol {list-style:decimal}
.portal-rich-content a {text-decoration:underline}.portal-rich-content strong {font-weight:700}.portal-rich-content em {font-style:italic}

.portal-rich-content .portal-editorial-image { max-width:100%; margin:1.25rem auto; }
.portal-rich-content .portal-editorial-image img { display:block; max-width:100%; width:100%; height:auto; border-radius:.35rem; }
.portal-rich-content .portal-editorial-image figcaption { margin-top:.5rem; font-size:.9em; line-height:1.5; overflow-wrap:anywhere; }
.portal-rich-content .portal-editorial-image.image-left { margin-left:0; }
.portal-rich-content .portal-editorial-image.image-right { margin-right:0; }
.portal-rich-content .portal-editorial-image.image-wide,.portal-rich-content .portal-editorial-image.image-full { width:100%!important; }

.faq-support { margin-top:30px; min-width:0; overflow-wrap:anywhere; }
.faq-support-message { white-space:pre-wrap; }
.faq-support-name { font-weight:600; }
.faq-support-email { display:inline-block; max-width:100%; min-height:44px; padding:10px 0; text-decoration:underline; overflow-wrap:anywhere; }
