:root {
  --help-ink: #1a1a1a;
  --help-paper: #fffdf7;
  --help-blue: #3098f3;
  --help-navy: #053356;
  --help-coral: #ff6670;
  --help-green: #4cc38a;
  --help-yellow: #ffec00;
  --help-line: rgba(26, 26, 26, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.help-body {
  color: var(--help-ink);
  background: var(--help-paper);
}

.help-body .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

.help-container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.help-header {
  position: relative;
  z-index: 20;
  border-bottom: 3px solid var(--help-ink);
  background: rgba(255, 253, 247, 0.96);
}

.help-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.help-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.help-brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--help-ink);
  text-decoration: none;
  font-weight: 700;
}

.help-logo {
  display: inline-flex;
  padding: 9px 14px;
}

.help-logo img { width: auto; height: 24px; }

.help-brand-name {
  padding-left: 15px;
  border-left: 2px solid var(--help-line);
  font-size: 1rem;
}

.help-header-link {
  color: var(--help-ink);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}

.help-header-link:hover { text-decoration: underline; }

.help-sign-in {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 17px;
  font-size: .8rem;
  text-decoration: none;
}

.help-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--help-ink);
  background:
    radial-gradient(circle at 88% 24%, var(--help-yellow) 0 72px, transparent 73px),
    linear-gradient(116deg, rgba(48, 152, 243, .22) 0 48%, transparent 48%),
    var(--help-paper);
}

.help-hero::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: -78px;
  width: 250px;
  height: 180px;
  border: 3px solid var(--help-ink);
  background: var(--help-coral);
  transform: rotate(-8deg);
}

.help-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr);
  align-items: center;
  gap: 68px;
  min-height: 350px;
  padding-block: 58px;
}

.help-kicker,
.help-category-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 2px solid var(--help-ink);
  background: var(--help-yellow);
  padding: 5px 9px;
  color: var(--help-ink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.help-hero-copy h1 {
  max-width: 560px;
  margin: 18px 0 12px;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .96;
}

.help-hero-copy p {
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.help-search {
  border: 3px solid var(--help-ink);
  background: white;
  padding: 24px;
  box-shadow: 8px 8px 0 var(--help-ink);
}

.help-search > label {
  display: block;
  margin-bottom: 10px;
  font-size: .82rem;
  font-weight: 700;
}

.help-search-control {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  border: 3px solid var(--help-ink);
  background: var(--help-paper);
}

.help-search-control:focus-within { box-shadow: 4px 4px 0 var(--help-blue); }

.help-search-control svg,
.help-header-search svg {
  width: 20px;
  height: 20px;
  margin-left: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.help-search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 13px 12px;
  color: var(--help-ink);
  font: inherit;
  outline: 0;
}

.help-search-control button {
  align-self: stretch;
  border: 0;
  border-left: 3px solid var(--help-ink);
  background: var(--help-blue);
  padding-inline: 22px;
  color: #111827;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.help-search-control button:hover { background: #57acf7; }

.help-search-hint {
  margin: 14px 0 0;
  color: var(--color-text-muted);
  font-size: .75rem;
}

.help-search-hint kbd {
  display: inline-block;
  min-width: 22px;
  border: 1px solid var(--help-line);
  border-bottom-width: 2px;
  background: var(--help-paper);
  padding: 1px 6px;
  text-align: center;
}

.help-main { padding-block: 56px 76px; }

.help-results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.help-results-summary p { margin: 0; font-size: 1rem; }
.help-results-summary a { color: var(--help-navy); font-weight: 700; }

.help-featured,
.help-category,
.help-related { scroll-margin-top: 24px; }

.help-featured { margin-bottom: 66px; }

.help-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
  align-items: end;
  gap: 30px;
  margin-bottom: 24px;
}

.help-section-heading > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.help-section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.025em;
}

.help-section-heading > p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: .9rem;
  line-height: 1.5;
  text-align: right;
}

.help-section-icon {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--help-ink);
  background: var(--help-blue);
  box-shadow: 3px 3px 0 var(--help-ink);
  font-size: 1rem;
  font-weight: 800;
}

.help-icon-yellow { background: var(--help-yellow); }
.help-icon-blue { background: var(--help-blue); }
.help-icon-getting-started { background: var(--help-coral); }
.help-icon-manage-class { background: var(--help-green); }
.help-icon-teach-review { background: var(--help-blue); }

.help-icon-getting-started::before { content: "01"; }
.help-icon-manage-class::before { content: "02"; }
.help-icon-teach-review::before { content: "03"; }

.help-category-list { display: grid; gap: 64px; }

.help-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.help-card-grid > [data-help-article] { display: flex; }

.help-article-card {
  position: relative;
  display: flex;
  min-height: 190px;
  flex: 1;
  flex-direction: column;
  border: 3px solid var(--help-ink);
  background: white;
  padding: 24px;
  color: var(--help-ink);
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--help-ink);
  transition: transform .12s ease, box-shadow .12s ease;
}

.help-article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 7px;
  background: var(--help-coral);
}

.help-article-card:hover,
.help-article-card:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--help-ink);
}

.help-article-card-title {
  margin-bottom: 10px;
  font-size: 1.03rem;
  font-weight: 750;
  line-height: 1.35;
}

.help-article-card-summary {
  color: var(--color-text-muted);
  font-size: .84rem;
  line-height: 1.55;
}

.help-article-card-meta {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  color: var(--help-navy);
  font-size: .75rem;
  font-weight: 750;
}

.help-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 76px;
  border: 3px solid var(--help-ink);
  background: var(--help-yellow);
  padding: 32px 36px;
  box-shadow: 7px 7px 0 var(--help-ink);
}

.help-support h2 { margin: 10px 0 5px; font-size: 1.65rem; font-weight: 750; }
.help-support p { max-width: 720px; margin: 0; font-size: .88rem; line-height: 1.55; }
.help-support .help-kicker { background: white; }
.help-support .btn-primary { flex: 0 0 auto; padding: 13px 20px; text-decoration: none; }

.help-footer {
  border-top: 3px solid var(--help-ink);
  background: var(--help-navy);
  color: white;
}

.help-footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: .78rem;
}

.help-footer-inner p { margin: 0; opacity: .8; }
.help-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.help-footer a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: white;
  text-decoration: none;
}
.help-footer a:hover { text-decoration: underline; }

.help-no-results {
  max-width: 720px;
  margin: 32px auto 70px;
  text-align: center;
}

.help-no-results-mark {
  display: inline-flex;
  min-width: 88px;
  height: 88px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--help-ink);
  background: var(--help-yellow);
  box-shadow: 6px 6px 0 var(--help-ink);
  font-size: 1.75rem;
  font-weight: 800;
}

.help-no-results h1,
.help-no-results h2 { margin: 30px 0 10px; font-size: 2rem; font-weight: 750; }
.help-no-results p { color: var(--color-text-muted); line-height: 1.6; }
.help-no-results > div:last-child { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.help-no-results .btn-primary,
.help-no-results .btn-secondary { display: inline-flex; align-items: center; padding: 12px 18px; text-decoration: none; }

.help-header-search {
  display: grid;
  width: min(430px, 42vw);
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  border: 2px solid var(--help-ink);
  background: white;
}

.help-header-search:focus-within { box-shadow: 3px 3px 0 var(--help-blue); }
.help-header-search input { min-width: 0; border: 0; padding: 10px 12px 10px 4px; font: inherit; outline: 0; }

.help-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 0;
  color: var(--color-text-muted);
  font-size: .78rem;
}

.help-breadcrumbs a { color: var(--help-navy); font-weight: 650; text-decoration: none; }
.help-breadcrumbs a:hover { text-decoration: underline; }

.help-article-shell { padding-bottom: 78px; }

.help-article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  justify-content: center;
  gap: 70px;
  align-items: start;
}

.help-toc {
  position: sticky;
  top: 24px;
  border-top: 3px solid var(--help-ink);
  padding-top: 16px;
}

.help-toc > p {
  margin: 0 0 12px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.help-toc nav { display: grid; gap: 2px; }

.help-toc nav a {
  border-left: 3px solid transparent;
  padding: 8px 0 8px 12px;
  color: var(--color-text-muted);
  font-size: .8rem;
  line-height: 1.35;
  text-decoration: none;
}

.help-toc nav a:hover { border-left-color: var(--help-coral); color: var(--help-ink); }

.help-toc-support {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  border: 2px solid var(--help-ink);
  background: rgba(255, 236, 0, .3);
  padding: 14px;
  font-size: .78rem;
}

.help-toc-support a { color: var(--help-navy); font-weight: 700; }

.help-article {
  border: 3px solid var(--help-ink);
  background: white;
  box-shadow: 8px 8px 0 var(--help-ink);
}

.help-article-heading {
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--help-ink);
  background: linear-gradient(135deg, rgba(255, 102, 112, .18), rgba(48, 152, 243, .12));
  padding: 44px 48px 38px;
}

.help-article-heading::after {
  content: "";
  position: absolute;
  top: -52px;
  right: -28px;
  width: 150px;
  height: 150px;
  border: 3px solid var(--help-ink);
  border-radius: 50%;
  background: var(--help-yellow);
  opacity: .75;
}

.help-article-heading > * { position: relative; z-index: 1; }

.help-article-heading h1 {
  max-width: 650px;
  margin: 22px 0 13px;
  font-size: clamp(2.15rem, 5vw, 3.45rem);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.help-article-heading > p {
  max-width: 610px;
  margin: 0 0 18px;
  color: rgba(26, 26, 26, .72);
  font-size: 1rem;
  line-height: 1.6;
}

.help-read-time { color: var(--color-text-muted); font-size: .76rem; font-weight: 650; }

.help-article-body { padding: 8px 48px 30px; }

.help-article-body section {
  scroll-margin-top: 22px;
  padding: 34px 0 8px;
}

.help-article-body section + section { border-top: 2px solid var(--help-line); }

.help-article-body h2 {
  margin: 0 0 15px;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -.02em;
}

.help-article-body p,
.help-article-body li {
  color: rgba(26, 26, 26, .78);
  font-size: .96rem;
  line-height: 1.72;
}

.help-article-body p { margin: 0 0 14px; }
.help-article-body ol,
.help-article-body ul { display: grid; gap: 10px; margin: 20px 0; padding-left: 24px; }
.help-article-body ol { counter-reset: help-step; list-style: none; padding-left: 0; }
.help-article-body ol li { position: relative; min-height: 38px; padding: 6px 0 6px 52px; }
.help-article-body ol li::before {
  counter-increment: help-step;
  content: counter(help-step);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--help-ink);
  background: var(--help-yellow);
  box-shadow: 2px 2px 0 var(--help-ink);
  color: var(--help-ink);
  font-size: .8rem;
  font-weight: 800;
}

.help-article-body figure {
  margin: 28px 0 20px;
  border: 3px solid var(--help-ink);
  background: var(--help-paper);
  box-shadow: 5px 5px 0 var(--help-ink);
}

.help-article-body figure picture,
.help-article-body figure img {
  display: block;
  width: 100%;
}

.help-article-body figure img {
  height: auto;
  border-bottom: 2px solid var(--help-ink);
  background: white;
  object-fit: contain;
  object-position: top center;
}

.help-article-body figcaption {
  padding: 11px 14px;
  color: var(--color-text-muted);
  font-size: .72rem;
  line-height: 1.45;
}

.help-callout {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  margin: 24px 0 16px;
  border: 2px solid var(--help-ink);
  background: rgba(255, 236, 0, .24);
  padding: 16px;
}

.help-callout svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.help-callout p { margin: 0; color: var(--help-ink); font-size: .84rem; }

.help-article-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 3px solid var(--help-ink);
  background: var(--help-paper);
  padding: 20px 48px;
  font-size: .76rem;
}

.help-article-end > div { display: flex; align-items: center; gap: 16px; }
.help-article-end span { display: flex; gap: 8px; }
.help-article-end a { border: 1px solid var(--help-line); background: white; padding: 5px 9px; color: var(--help-navy); text-decoration: none; }
.help-article-end a:hover { border-color: var(--help-ink); }
.help-article-end p { margin: 0; color: var(--color-text-muted); }

.help-related { margin-top: 72px; }

.help-not-found { min-height: calc(100vh - 260px); padding: 70px 0; }
.help-not-found-search { max-width: 600px; margin: 34px auto 22px; text-align: left; }
.help-not-found-search .help-search-control { grid-template-columns: minmax(0, 1fr) auto; }

@media (max-width: 900px) {
  .help-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .help-hero::after { opacity: .35; }
  .help-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-article-layout { grid-template-columns: 1fr; gap: 28px; }
  .help-toc { position: static; display: none; }
  .help-article { max-width: 760px; margin-inline: auto; }
  .help-header-search { margin-left: auto; }
}

@media (max-width: 640px) {
  .help-container { width: min(100% - 28px, 1160px); }
  .help-header-inner { min-height: 66px; gap: 12px; }
  .help-brand { gap: 8px; }
  .help-logo { padding: 7px 10px; }
  .help-logo img { height: 20px; }
  .help-brand-name { display: none; }
  .help-header nav { gap: 8px; }
  .help-header-link { display: none; }
  .help-brand,
  .help-sign-in { min-height: 44px; }
  .help-sign-in { height: 44px; padding: 6px 10px; font-size: .68rem; }
  .help-hero-inner { min-height: auto; padding-block: 46px 56px; }
  .help-hero-copy h1 { font-size: 2.75rem; }
  .help-hero-copy p { font-size: .92rem; }
  .help-search { padding: 16px; box-shadow: 5px 5px 0 var(--help-ink); }
  .help-search-control { grid-template-columns: 34px minmax(0, 1fr); }
  .help-search-control svg { margin-left: 10px; }
  .help-search-control button { grid-column: 1 / -1; min-height: 44px; border-top: 3px solid var(--help-ink); border-left: 0; }
  .help-search-hint { display: none; }
  .help-main { padding-block: 42px 58px; }
  .help-section-heading { grid-template-columns: 1fr; gap: 8px; }
  .help-section-heading > p { text-align: left; }
  .help-card-grid { grid-template-columns: 1fr; }
  .help-article-card { min-height: 165px; }
  .help-category-list { gap: 52px; }
  .help-support { align-items: stretch; flex-direction: column; padding: 26px 22px; }
  .help-support .btn-primary { justify-content: center; text-align: center; }
  .help-footer-inner { align-items: flex-start; flex-direction: column; padding-block: 24px; }
  .help-footer nav { gap: 12px 18px; }
  .help-header-search { width: auto; flex: 1; margin-left: 0; }
  .help-header-search svg { margin-left: 8px; }
  .help-header-search input { width: 100%; font-size: .78rem; }
  .help-article-shell { width: 100%; padding-bottom: 54px; }
  .help-breadcrumbs { width: calc(100% - 28px); margin-inline: auto; }
  .help-article { border-inline: 0; box-shadow: none; }
  .help-article-heading { padding: 36px 22px 30px; }
  .help-article-heading h1 { font-size: 2.2rem; }
  .help-article-body { padding: 6px 22px 22px; }
  .help-article-body figure { margin-inline: -6px; box-shadow: 3px 3px 0 var(--help-ink); }
  .help-article-end { align-items: flex-start; flex-direction: column; padding: 18px 22px; }
  .help-article-end > div { align-items: flex-start; flex-direction: column; gap: 10px; }
  .help-related { width: calc(100% - 28px); margin-inline: auto; }
}

@media print {
  .help-header,
  .help-footer,
  .help-toc,
  .help-related,
  .help-article-end { display: none !important; }
  .help-article-shell { width: 100%; padding: 0; }
  .help-article-layout { display: block; }
  .help-article { border: 0; box-shadow: none; }
  .help-article-heading,
  .help-article-body { padding-inline: 0; }
  .help-article-body figure { box-shadow: none; break-inside: avoid; }
}
