.hb-help-header,
.help-layout,
.help-home {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.hb-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.hb-help-header {
  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}

.hb-help-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hb-help-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.hb-help-brand img {
  width: 7.5rem;
  height: auto;
}

.hb-help-footer {
  box-sizing: border-box;
  width: 100%;
  margin-top: 4rem;
  padding: 2rem 1rem;
  background: #364959;
  color: #d7dde2;
}

.hb-help-footer-inner {
  display: flex;
  width: min(100%, 72rem);
  margin-inline: auto;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, white 16%, transparent);
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.hb-help-footer p {
  margin: 0;
}

.hb-help-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
}

.hb-help-footer a {
  color: #fff;
  text-decoration: none;
}

.hb-help-footer a:hover,
.hb-help-footer a:focus-visible {
  text-decoration: underline;
  text-decoration-color: #fbbf24;
  text-underline-offset: 0.22em;
}

.help-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: 2.25rem 5rem;
}

.help-family-nav {
  align-self: start;
  position: sticky;
  top: 1rem;
}

.help-nav-label {
  margin: 0 0 0.75rem;
  color: color-mix(in srgb, currentColor 62%, transparent);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.help-family-nav ul,
.help-entry ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-family-list {
  display: grid;
  gap: 0.15rem;
}

.help-family-list a {
  display: block;
  padding: 0.42rem 0.55rem;
  border-radius: 0.4rem;
  color: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
}

.help-family-list a:hover {
  background: color-mix(in srgb, currentColor 5%, transparent);
}

.help-family-nav-current a {
  display: grid;
  grid-template-columns: 0.45rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.45rem;
  background: color-mix(in srgb, #fbbf24 21%, transparent);
  color: oklch(32% 0.055 78);
  font-weight: 700;
}

.help-family-nav-current a::before {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #d99a05;
  content: "";
}

.help-article {
  min-width: 0;
  max-width: 52rem;
  font-size: max(1rem, 16px);
  line-height: 1.65;
}

.help-article h1 {
  max-width: 18ch;
  margin-block: 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.help-article h2 {
  margin-block: 2.5rem 0.65rem;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 650;
  line-height: 1.2;
}

.help-article h3 {
  margin-block: 2rem 0.5rem;
  font-size: 1.12rem;
  font-weight: 650;
}

.help-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  font-size: 0.9rem;
}

.help-breadcrumb-family {
  border-radius: 0.3rem;
  background: color-mix(in srgb, #fbbf24 18%, transparent);
  color: oklch(32% 0.055 78);
  font-weight: 650;
  padding-inline: 0.32rem;
  text-decoration-color: #d99a05;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.help-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.help-figure {
  width: 100%;
  margin: 1.75rem 0 2.25rem;
  text-align: center;
}

.help-figure > .help-image-link img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  border-radius: 0.5rem;
}

.help-image-link {
  display: inline-block;
  max-width: 100%;
  border-radius: 0.5rem;
  cursor: zoom-in;
  vertical-align: top;
}

.help-figure > .hb-lightbox img {
  width: auto;
  max-width: min(1600px, 100%);
  max-height: 100%;
  height: auto;
}

.help-image-link:focus-visible {
  outline: 3px solid #d99a05;
  outline-offset: 4px;
}

.help-image-link img {
  transition: filter 160ms cubic-bezier(0.25, 1, 0.5, 1);
}

.help-image-link:hover img {
  filter: brightness(0.96);
}

@media (prefers-reduced-motion: reduce) {
  .help-image-link img {
    animation-duration: 0.01ms;
    transition-duration: 0.01ms;
  }
}

.help-figure figcaption,
.help-page-meta {
  margin-top: 0.6rem;
  color: color-mix(in srgb, currentColor 68%, transparent);
  font-size: 0.875rem;
}

.help-figure figcaption {
  text-align: center;
}

.help-home {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.help-hero {
  max-width: 52rem;
}

.help-hero h1 {
  margin-block: 0.35rem 0.55rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.help-hero > p:last-child {
  margin: 0;
  color: color-mix(in srgb, currentColor 70%, transparent);
  font-size: 1.05rem;
}

.help-home .bnd-ls-q {
  box-sizing: border-box;
  width: 100%;
  max-width: 42rem;
  margin-top: 2rem;
  min-height: 3.25rem;
  margin-bottom: 0.4rem;
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 0.45rem;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 1rem;
}

.help-home .bnd-ls-q:focus {
  border-color: #d99a05;
  outline: 3px solid color-mix(in srgb, #fbbf24 28%, transparent);
  outline-offset: 1px;
}

.help-home .bnd-ls-none {
  margin: 0.5rem 0 0;
  color: color-mix(in srgb, currentColor 68%, transparent);
  font-size: 0.9rem;
  font-style: normal;
}

.help-family-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  margin-top: 2.25rem;
}

.help-home .bnd-ls-q ~ .help-family-grid {
  margin-top: 1.25rem;
}

.help-directory-intro {
  grid-column: 1 / span 3;
}

.help-directory-intro h2 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 650;
}

.help-directory-intro p,
.help-family-description {
  margin: 0;
  color: color-mix(in srgb, currentColor 68%, transparent);
}

.help-family-card {
  min-width: 0;
  scroll-margin-top: 2rem;
}

.help-family-card-technical-reference {
  grid-column: 4;
  grid-row: 1 / span 6;
  padding-left: clamp(2rem, 5vw, 4rem);
  border-left: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.help-family-card:target {
  margin: -0.7rem;
  padding: 0.7rem;
  border-radius: 0.45rem;
  background: color-mix(in srgb, #fbbf24 14%, transparent);
  box-shadow: inset 3px 0 0 #d99a05;
}

.help-family-card:target .help-family-title {
  color: oklch(32% 0.055 78);
}

.help-family-title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.help-family-card ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  list-style: none;
}

.help-family-card a {
  color: inherit;
  font-size: 0.94rem;
  line-height: 1.4;
  text-decoration-color: color-mix(in srgb, #fbbf24 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

@media (max-width: 48rem) {
  .help-layout,
  .help-family-grid {
    grid-template-columns: 1fr;
  }

  .help-family-nav {
    display: none;
  }

  .help-directory-intro,
  .help-family-card-technical-reference {
    grid-column: 1;
    grid-row: auto;
  }

  .help-family-card-technical-reference {
    padding-top: 2rem;
    padding-left: 0;
    border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    border-left: 0;
  }

  .hb-help-header {
    align-items: center;
  }

  .hb-help-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Academy home: hero, start-here paths, courses band and the searchable article cards. */
.academy-hero {
  max-width: 46rem;
}

.academy-hero > p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.academy-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border: 1px solid var(--c-border, #e2e7ed);
  border-radius: var(--r-btn, 10px);
  background: #fff;
  color: var(--c-ink, #364959);
  font-weight: 600;
  text-decoration: none;
}

.academy-button:hover {
  background: var(--c-surface, #f6f8fa);
}

.academy-button-primary {
  border-color: var(--c-accent, #ffbd26);
  background: var(--c-accent, #ffbd26);
  color: var(--c-on-accent, #15212b);
}

.academy-button-primary:hover {
  background: var(--c-accent-hover, #f0a810);
}

.academy-section-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.academy-start {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  scroll-margin-top: 1.5rem;
}

.academy-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.academy-path {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--r-card, 16px);
  background: var(--c-surface-warm, #fdf4e8);
}

.academy-path-step {
  margin: 0;
  color: var(--c-accent-text, #996a00);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.academy-path h3 {
  margin: 0.4rem 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 650;
}

.academy-path > p:not(.academy-path-step) {
  margin: 0 0 1rem;
  color: var(--c-text, #586673);
}

.academy-path ul,
.academy-courses ul {
  display: grid;
  gap: 0.45rem;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.academy-path a,
.academy-card-title a,
.academy-courses a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, #fbbf24 60%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.academy-path a {
  font-weight: 600;
}

.academy-courses {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.5rem 2.5rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: 1.75rem;
  border-radius: var(--r-card, 16px);
  background: var(--c-ink, #364959);
  color: var(--c-on-ink, #fff);
}

.academy-courses p {
  margin: 0;
  color: var(--c-on-ink-2, #cbd5e1);
}

.academy-courses ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.academy-courses li {
  display: grid;
  gap: 0.3rem;
  align-content: start;
}

.academy-courses a {
  color: var(--c-on-ink, #fff);
  font-weight: 650;
}

.academy-courses span {
  color: var(--c-on-ink-2, #cbd5e1);
  font-size: 0.92rem;
  line-height: 1.45;
}

.academy-directory {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  scroll-margin-top: 1.5rem;
}

.academy-directory-intro p {
  margin: 0;
  color: var(--c-text, #586673);
}

.academy-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.academy-card {
  min-width: 0;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--c-border, #e2e7ed);
  border-radius: 12px;
  background: #fff;
}

.academy-card:hover {
  box-shadow: var(--shadow, 0 1px 2px rgba(54, 73, 89, 0.06), 0 8px 24px rgba(54, 73, 89, 0.06));
}

.academy-card-topic {
  margin: 0 0 0.35rem;
  color: var(--c-accent-text, #996a00);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.academy-card-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}

.academy-card-text {
  margin: 0;
  color: var(--c-text, #586673);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 60rem) {
  .academy-paths,
  .academy-card-grid,
  .academy-courses ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .academy-courses {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  .academy-paths,
  .academy-card-grid,
  .academy-courses ul {
    grid-template-columns: 1fr;
  }
}

.academy-courses .academy-section-title {
  color: var(--c-on-ink, #fff);
}

/* Embedded video: a 16:9 frame that scales with the column. */
.help-video {
  margin: 1.5rem 0 2rem;
}

.help-video-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #15212b;
}

.help-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.help-video figcaption {
  margin-top: 0.5rem;
  color: color-mix(in srgb, currentColor 68%, transparent);
  font-size: 0.9rem;
  text-align: center;
}
