/* ============================================================
   Help centre — documentation layout on the ETEST theme tokens
   ============================================================ */
.help-shell {
  --help-ink: #1f2433;
  --help-body: #464b5c;
  --help-soft: #6b7083;
  --help-rule: #e6e8f0;
  --help-tint: #f4f6fb;
  --help-measure: 44rem;
  max-width: 72rem;
  color: var(--help-body);
}

/* Breadcrumb */
.help-breadcrumb { font-size: .82rem; margin-bottom: 1.25rem; }
.help-breadcrumb a { color: var(--help-soft); text-decoration: none; }
.help-breadcrumb a:hover { color: var(--et-primary); text-decoration: underline; }
.help-breadcrumb .active { color: var(--help-ink); }

/* Hero */
.help-hero {
  background: var(--et-card-bg);
  border: 1px solid var(--help-rule);
  border-radius: var(--et-radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.help-hero::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--et-primary), #7c94e8);
}
.help-eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--et-primary); margin-bottom: .75rem;
}
.help-eyebrow .bi { margin-right: .35rem; }
.help-hero h1 {
  color: var(--help-ink); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem); line-height: 1.2; margin-bottom: .75rem;
}
.help-lead { font-size: 1.075rem; line-height: 1.65; max-width: var(--help-measure); margin-bottom: 0; }
.help-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none;
  padding: 1.25rem 0 0; margin: 1.25rem 0 0; border-top: 1px solid var(--help-rule);
  font-size: .85rem; color: var(--help-soft);
}
.help-meta .bi { color: var(--et-primary); margin-right: .35rem; }

/* Help-centre home */
.help-hero-home { text-align: left; }
.help-search { position: relative; max-width: 32rem; margin-top: 1.5rem; }
.help-search .bi {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--help-soft); pointer-events: none;
}
.help-search .form-control {
  padding: .8rem 1rem .8rem 2.6rem; border-radius: var(--et-radius-sm);
  border-color: var(--help-rule); background: var(--help-tint); font-size: .95rem;
}
.help-search .form-control:focus { background: #fff; }

.help-category { margin-bottom: 2.5rem; }
.help-category-head { margin-bottom: 1rem; }
.help-category-head h2 { color: var(--help-ink); font-size: 1.15rem; font-weight: 700; margin-bottom: .25rem; }
.help-category-head p { color: var(--help-soft); margin: 0; font-size: .92rem; }
.help-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.help-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--et-card-bg); border: 1px solid var(--help-rule); border-radius: var(--et-radius);
  padding: 1.25rem; text-decoration: none; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.help-card:hover, .help-card:focus-visible {
  border-color: var(--et-primary); box-shadow: 0 .5rem 1.5rem rgba(78, 115, 223, .12);
  transform: translateY(-1px); color: inherit;
}
.help-card[hidden] { display: none; }
.help-card-icon {
  flex: 0 0 2.75rem; height: 2.75rem; border-radius: .65rem;
  display: grid; place-items: center; font-size: 1.25rem;
  background: var(--et-primary-subtle); color: var(--et-primary);
}
.help-card-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.help-card-title { color: var(--help-ink); font-weight: 600; line-height: 1.35; }
.help-card-summary { font-size: .9rem; line-height: 1.55; }
.help-card-meta { font-size: .78rem; color: var(--help-soft); margin-top: .25rem; }
.help-card-arrow { margin-left: auto; color: var(--help-soft); align-self: center; }
.help-card:hover .help-card-arrow { color: var(--et-primary); }
.help-no-results { color: var(--help-soft); margin-top: 1rem; }

.help-empty {
  text-align: center; background: var(--et-card-bg); border: 1px dashed var(--help-rule);
  border-radius: var(--et-radius); padding: 3rem 1.5rem; margin-bottom: 2rem;
}
.help-empty > .bi { font-size: 2rem; color: var(--et-primary); }
.help-empty h2 { color: var(--help-ink); font-size: 1.15rem; font-weight: 700; margin: .75rem 0 .5rem; }
.help-empty p { max-width: 30rem; margin: 0 auto 1.25rem; }

.help-support {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--help-tint); border-radius: var(--et-radius); padding: 1.5rem;
}
.help-support h2 { color: var(--help-ink); font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.help-support p { margin: 0; font-size: .9rem; }

/* Guide layout: article with an "On this page" rail */
.help-layout { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) {
  .help-layout { grid-template-columns: minmax(0, var(--help-measure)) 14rem; justify-content: space-between; }
}
.help-doc {
  background: var(--et-card-bg); border: 1px solid var(--help-rule); border-radius: var(--et-radius);
  padding: clamp(1.25rem, 4vw, 2.75rem); min-width: 0;
}
.help-doc p, .help-doc li { font-size: 1rem; line-height: 1.75; }
.help-doc strong { color: var(--help-ink); font-weight: 600; }
.help-section + .help-section { margin-top: 2.75rem; padding-top: 2.25rem; border-top: 1px solid var(--help-rule); }
.help-section h2 {
  color: var(--help-ink); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em;
  margin-bottom: 1rem; scroll-margin-top: calc(var(--et-topbar-h) + 1rem);
}

/* Numbered steps */
.help-steps { list-style: none; counter-reset: help-step; padding: 0; margin: 1.5rem 0; }
.help-steps li {
  counter-increment: help-step; position: relative;
  padding: 0 0 1.5rem 3.25rem; margin: 0;
}
.help-steps li::before {
  content: counter(help-step);
  position: absolute; left: 0; top: .1rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--et-primary); color: #fff; font-size: .85rem; font-weight: 700;
}
.help-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(1rem - 1px); top: 2.4rem; bottom: .35rem;
  width: 2px; background: var(--help-rule);
}
.help-steps li > strong:first-child { display: block; font-size: 1.02rem; margin-bottom: .2rem; }

/* Screenshot */
.help-figure { margin: 2rem 0; }
.help-figure-frame {
  background: var(--help-tint); border: 1px solid var(--help-rule); border-radius: var(--et-radius);
  padding: clamp(.75rem, 3vw, 1.5rem); display: flex; justify-content: center;
}
.help-figure img {
  display: block; width: auto; max-width: 100%; height: auto;
  border-radius: var(--et-radius-sm); box-shadow: 0 .35rem 1.25rem rgba(31, 36, 51, .12);
}
.help-figure figcaption { font-size: .85rem; color: var(--help-soft); line-height: 1.55; margin-top: .75rem; }
.help-figure figcaption .bi { color: var(--et-primary); margin-right: .25rem; }

/* Troubleshooting */
.help-faq { border: 1px solid var(--help-rule); border-radius: var(--et-radius); overflow: hidden; margin-top: 1rem; }
.help-faq details + details { border-top: 1px solid var(--help-rule); }
.help-faq summary {
  list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.25rem; position: relative;
  color: var(--help-ink); font-weight: 600;
}
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary::after {
  content: "\F282"; font-family: "bootstrap-icons"; position: absolute; right: 1.25rem; top: 50%;
  transform: translateY(-50%); transition: transform .2s ease; color: var(--help-soft);
}
.help-faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.help-faq summary:hover { background: var(--help-tint); }
.help-faq summary:focus-visible { outline: 2px solid var(--et-primary); outline-offset: -2px; }
.help-faq-body { padding: 0 1.25rem 1.1rem; font-size: .97rem; line-height: 1.7; }

/* Call to action */
.help-next {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-top: 2.75rem; padding: 1.5rem; border-radius: var(--et-radius);
  background: var(--et-primary-subtle); border: 1px solid rgba(78, 115, 223, .2);
}
.help-next-icon { font-size: 1.6rem; color: var(--et-primary); line-height: 1; }
.help-next h2 { color: var(--help-ink); font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }
.help-next p { margin-bottom: 1rem; }
.help-open-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.help-open-group .form-select { width: auto; min-width: min(100%, 16rem); flex: 1 1 16rem; }

.help-doc-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--help-rule);
  font-size: .85rem; color: var(--help-soft);
}
.help-doc-footer a { text-decoration: none; }

/* On this page */
.help-toc { display: none; }
@media (min-width: 1100px) {
  .help-toc { display: block; position: sticky; top: calc(var(--et-topbar-h) + 1.5rem); align-self: start; }
}
.help-toc-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--help-soft); margin-bottom: .75rem;
}
.help-toc ol { list-style: none; padding: 0; margin: 0 0 1.25rem; border-left: 2px solid var(--help-rule); }
.help-toc a {
  display: block; padding: .35rem 0 .35rem 1rem; margin-left: -2px; border-left: 2px solid transparent;
  font-size: .875rem; color: var(--help-soft); text-decoration: none; line-height: 1.4;
}
.help-toc a:hover { color: var(--help-ink); }
.help-toc a.is-active { color: var(--et-primary); border-left-color: var(--et-primary); font-weight: 600; }
.help-print { padding: 0; font-size: .85rem; color: var(--help-soft); text-decoration: none; }
.help-print:hover { color: var(--et-primary); }

/* Print: just the guide */
@media print {
  .et-sidebar, .et-topbar, .help-breadcrumb, .help-toc, .help-next, .help-doc-footer a { display: none !important; }
  .help-hero, .help-doc { border: 0; padding: 0; }
  .help-hero::before { display: none; }
  .help-layout { display: block; }
  .help-faq details { break-inside: avoid; }
  .help-faq details:not([open]) > .help-faq-body { display: block; }
  .help-steps li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.help-card-meta .bi { margin-right: .25rem; }
.help-category[hidden] { display: none; }
.help-support + .help-support { margin-top: 1rem; }
