:root {
  font: 100%/1.55 system-ui, sans-serif;
  color: var(--first-ink);
  background: var(--first-background);
  --ink: var(--first-ink);
  --muted: var(--first-muted);
  --accent: var(--first-purple-dark);
  --line: var(--first-border);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .23em; }
button, input, select { font: inherit; }
button, .button {
  cursor: pointer; padding: .65rem 1rem; border: 1px solid transparent;
  border-radius: .55rem; color: white; background: var(--accent); font-weight: 650;
}
button:hover { filter: brightness(.88); }
:focus-visible { outline: 3px solid var(--first-purple-dark); outline-offset: 3px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.13; margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.45rem); letter-spacing: -.055em; margin-bottom: .65em; }
h2 { font-size: clamp(1.38rem, 3vw, 1.85rem); letter-spacing: -.035em; }
h3 { font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: .5rem; }
img, video { display: block; max-width: 100%; }
.layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--first-orange); color: var(--ink); padding: 2rem 1.1rem; }
.sidebar .first-lockup img { width: 7.35rem; }
.sidebar nav { margin-top: 2.4rem; }
.sidebar nav a, .nav-button {
  display: block; padding: .65rem .9rem; border-radius: .45rem; margin-bottom: .3rem;
  font-size: .97rem; color: var(--ink); text-decoration: none;
}
.sidebar nav a:hover { background: rgb(255 255 255 / 29%); }
.sidebar nav a[aria-current=page] { background: var(--accent); color: white; }
.sidebar nav a:focus-visible, .sidebar button:focus-visible { outline-color: var(--ink); }
.nav-button { background: transparent; font-weight: 400; }
.menu-toggle { display: none; }
.main { padding: clamp(1rem, 4vw, 3.8rem); max-width: 94rem; width: 100%; margin: 0 auto; }
.main > section { margin-bottom: 2rem; }
.hero {
  padding: clamp(1.5rem, 5vw, 3.8rem); border-radius: 1.1rem; color: white;
  background: linear-gradient(115deg, #493178, var(--accent));
}
.hero :focus-visible { outline-color: white; }
.hero h1 { margin-bottom: .34em; }
.hero p { margin: 0 0 1.2rem; color: #f1e8ff; }
.search { display: flex; flex-wrap: wrap; gap: .55rem; }
.search input { width: min(19rem, 100%); }
.search button { background: var(--first-orange); color: var(--ink); }
.metrics, .cards, .brands {
  display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.metrics > div, .card, .panel, .brand-card, .empty {
  background: white; border: 1px solid var(--line); border-radius: .8rem; padding: 1.2rem;
}
.metrics strong { display: block; font-size: 2rem; line-height: 1.15; letter-spacing: -.04em; }
.metrics span, .meta, .brand-card span, .empty { color: var(--muted); }
.meta { font-size: .88rem; }
.section-top { display: flex; justify-content: space-between; align-items: baseline; gap: .65rem; flex-wrap: wrap; }
.card a { color: var(--ink); }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.empty { grid-column: 1 / -1; margin: 0; }
.brand-card {
  color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: .35rem;
  border-top: 4px solid var(--brand, var(--accent));
}
.brand-card img, .brand-hero .logo { max-width: 7rem; max-height: 4rem; object-fit: contain; object-position: left; }
.brand-hero { border-top: .4rem solid var(--brand, var(--accent)); border-radius: 1rem; background: white; padding: 1.5rem; margin-bottom: 2rem; }
.brand-hero img { width: 100%; max-height: 17rem; object-fit: cover; border-radius: .6rem; margin-bottom: 1rem; }
.cover, .detail-image { border-radius: .5rem; max-height: 22rem; object-fit: contain; }
.cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.panel { padding: clamp(1.1rem, 4vw, 2.4rem); margin-bottom: 1rem; }
.panel form + form { margin-top: .6rem; }
.secondary { background: var(--first-purple-tint); color: var(--ink); }
.notice { padding: .7rem 1rem; background: var(--first-purple-tint); border-radius: .4rem; }
progress { display: block; width: min(100%, 25rem); margin: .5rem 0 1.1rem; accent-color: var(--accent); }
.lesson-youtube { max-width: 56rem; }
.lesson-youtube iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: .55rem; background: #171321; }
.lesson-locked { color: var(--muted); }
.lesson-list { padding: 0; list-style: none; }
.lesson-list li { padding: .65rem 0; border-top: 1px solid var(--line); display: flex; gap: .9rem; align-items: baseline; }
.text-button { background: transparent; padding: 0; color: var(--accent); text-align: left; text-decoration: underline; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; margin-bottom: 1.4rem; }
.filters label { flex: 1 1 8rem; }
label { font-weight: 600; }
input:not([type=hidden]):not([type=checkbox]), select {
  color: var(--ink); background: #fff; border: 1px solid #aa9eb8; border-radius: .48rem; padding: .62rem .7rem;
}
.filters input, .filters select, .form-panel input:not([type=hidden]):not([type=checkbox]) { display: block; width: 100%; }
.pager { display: flex; gap: 1rem; margin-top: 1.2rem; flex-wrap: wrap; }
.public { min-height: 100vh; background: var(--first-background); }
.public header { padding: 1.4rem clamp(1rem, 5vw, 4rem); background: var(--first-orange); color: var(--ink); }
.public-main { max-width: 39rem; margin: auto; padding: clamp(1rem, 6vw, 3rem) 1rem; }
.form-panel { max-width: 37rem; }
.errorlist { color: #9e2129; padding-left: 1.3rem; }
footer { margin-top: 2.8rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; z-index: 2; background: white; padding: .8rem; }
@media (max-width: 750px) {
  .layout { display: block; }
  .sidebar { padding: 1rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; }
  .sidebar nav { margin: 0; width: 100%; }
  .sidebar nav[hidden] { display: none; }
  .sidebar[data-js] .menu-toggle { display: inline-block; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.journey-catalog { max-width: 76rem; margin-inline: auto; }
.journey-intro { margin-bottom: 1.5rem; }
.journey-intro h1 { margin-bottom: .35em; }
.journey-intro p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.journey-filters, .journey-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.journey-filters { padding: .95rem 1.15rem; margin-bottom: 1rem; }
.journey-filters .filters { margin: 0; }
.filter-reset { align-self: center; margin-top: 1.3rem; font-size: .88rem; }

.journey-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.journey-nav a {
  padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 2rem;
  background: #fff; font-weight: 650; text-decoration: none;
}
.journey-nav a:hover { background: var(--first-purple-tint); }

.journey-panel {
  margin-bottom: 1.1rem; overflow: hidden; scroll-margin-top: 1rem;
}
.journey-panel-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .55rem 1rem; padding: 1rem clamp(.85rem, 2.7vw, 1.75rem);
  border-left: .3rem solid var(--journey-brand, var(--accent));
  border-bottom: 1px solid var(--line); background: var(--first-background);
}
.journey-panel-header p { color: var(--muted); margin: 0; font-size: .89rem; }
.journey-brand { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.journey-brand h2 { margin: 0; }
.journey-brand img { width: auto; max-width: 5rem; max-height: 2rem; object-fit: contain; }

.journey-steps {
  list-style: none; margin: 0; padding: .15rem clamp(.85rem, 2.7vw, 1.75rem);
}
.journey-step {
  position: relative; margin-left: .4rem; padding-left: clamp(.9rem, 2.5vw, 1.6rem);
}
.journey-step::before {
  content: ""; position: absolute; left: -.35rem; top: 1.37rem; z-index: 1;
  width: .75rem; height: .75rem; border: 2px solid var(--accent); border-radius: 50%; background: #fff;
}
.journey-step:not(:last-child)::after {
  content: ""; position: absolute; left: 0; top: 1.8rem; bottom: -1.4rem;
  width: 1px; background: var(--line);
}
.journey-step-started::before { background: var(--first-purple-tint); }
.journey-step-complete::before { background: var(--accent); }

.journey-course {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(9rem, 12rem);
  align-items: center; gap: .7rem 1.5rem; padding: 1.08rem 0;
}
.journey-step + .journey-step .journey-course { border-top: 1px solid var(--line); }
.journey-course .meta, .journey-course h3, .journey-description { margin: 0; }
.journey-course h3 { margin-block: .25rem; }
.journey-course h3 a { color: var(--ink); }
.journey-course h3 a:hover { color: var(--accent); }
.journey-description { color: var(--muted); font-size: .94rem; max-width: 65ch; }
.journey-course-actions { justify-self: end; width: 100%; max-width: 12rem; }
.journey-course-actions button, .journey-action {
  display: block; width: 100%; text-align: center; font-size: .9rem;
}
.journey-status, .journey-progress-label {
  display: block; margin-bottom: .38rem; color: var(--muted); font-size: .82rem; font-weight: 600;
}
.journey-course-actions progress { width: 100%; height: .45rem; margin: 0 0 .55rem; }
.journey-action-review {
  border: 1px solid var(--line); border-radius: .55rem; padding: .6rem .7rem;
  background: var(--first-background); text-decoration: none; font-weight: 650;
}
.journey-action-review:hover { background: var(--first-purple-tint); }
.journey-empty h2 { margin-bottom: .4rem; }

@media (max-width: 620px) {
  .journey-course { grid-template-columns: 1fr; }
  .journey-course-actions { justify-self: start; }
  .filter-reset { margin-top: 0; }
}

.course-back {
  display: inline-block; background: var(--first-purple-tint); color: var(--ink);
  border-radius: .55rem; font-weight: 650; text-decoration: none; padding: .5rem .8rem;
}
.course-back:hover { text-decoration: underline; }
.course-finish-link { display: inline-block; text-decoration: none; }
.course-finish { max-width: 50rem; }
.course-feedback { display: grid; gap: 1rem; }
.course-feedback fieldset { border: 0; margin: 0; padding: 0; }
.course-feedback legend { font-weight: 700; margin-bottom: .4rem; }
.course-feedback #id_rating { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.course-feedback #id_rating label { display: inline-flex; align-items: center; gap: .35rem; }
.course-feedback textarea {
  display: block; width: 100%; padding: .6rem; border: 1px solid #aa9eb8;
  border-radius: .48rem; font: inherit; resize: vertical; color: var(--ink);
}
.course-feedback button { justify-self: start; }

.brand-page { max-width: 76rem; margin-inline: auto; }
.brand-overview {
  display: grid; background: #fff; border: 1px solid var(--line);
  border-left: .35rem solid var(--journey-brand, var(--accent));
  border-radius: 1rem; margin: .95rem 0 1rem; overflow: hidden;
}
.brand-overview-with-banner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.brand-overview-copy { padding: clamp(1.1rem, 3.5vw, 2.25rem); align-self: center; }
.brand-overview-copy h1 { margin-bottom: 0; }
.brand-overview-copy p { color: var(--muted); margin: .65rem 0 0; max-width: 62ch; }
.brand-overview-logo { max-width: 8rem; max-height: 3.2rem; object-fit: contain; margin-bottom: .65rem; }
.brand-overview-banner { width: 100%; height: 100%; min-height: 9rem; max-height: 18rem; object-fit: cover; }

.brand-workspace {
  display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(15rem, 1fr);
  align-items: start; gap: 1rem;
}
.brand-workspace-without-journey { display: block; }
.brand-workspace .journey-panel { margin-bottom: 0; }
.brand-sidebar { display: grid; gap: 1rem; }
.brand-side-panel {
  padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem;
}
.brand-side-panel h2 { font-size: 1.22rem; margin: 0 0 .85rem; }
.brand-side-panel p { margin: 0; }
.brand-side-panel > a { display: inline-block; margin-top: .8rem; }
.brand-side-panel .section-top h2 { margin-bottom: .3rem; }
.brand-side-item { padding-block: .7rem; }
.brand-side-item + .brand-side-item { border-top: 1px solid var(--line); }
.brand-side-item .brand-side-title { font-size: 1rem; font-weight: 700; margin: .2rem 0; }
.brand-side-item .brand-side-title + p { color: var(--muted); font-size: .9rem; }
.brand-reminders { background: var(--first-purple-tint); }
.brand-reminders .brand-side-item:first-of-type { padding-top: 0; }
.brand-reminders .brand-side-item:last-child { padding-bottom: 0; }
.brand-materials { margin-top: 1.5rem; }
.brand-page section { scroll-margin-top: 1rem; }
@media (max-width: 920px) {
  .brand-workspace { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .brand-overview-with-banner { grid-template-columns: 1fr; }
}

.course-points-awarded { padding: .65rem .9rem; background: var(--first-purple-tint); border-radius: .55rem; }
.course-points-awarded strong { color: var(--accent); }
