/* ============================================
   Website Mockup — Shared Styles
   ============================================ */

   :root {
    --font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --header-height: 72px;
    --header-side-inset: 200px;
    --content-max-width: 960px;
    --transition-speed: 0.25s;
  
    /* Dark mode (default) */
    --bg-gradient-start: #4f46e5;
    --bg-gradient-end: #818cf8;
    --text-color: #ffffff;
    --icon-color: #ffffff;
    --header-bg: transparent;
    --header-scrolled-bg: rgba(79, 70, 229, 0.28);
    --btn-bg: rgba(255, 255, 255, 0.15);
    --btn-hover-bg: rgba(255, 255, 255, 0.28);
    --nav-link-hover: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.25);
    --mobile-menu-bg: rgba(49, 46, 129, 0.97);
    --generic-title-accent: #342d5a;
  }
  
  body.light-mode {
    --bg-gradient-start: #e0e7ff;
    --bg-gradient-end: #ffffff;
    --text-color: #2e294e;
    --icon-color: #2e294e;
    --header-scrolled-bg: rgba(224, 231, 255, 0.45);
    --btn-bg: rgba(79, 70, 229, 0.1);
    --btn-hover-bg: rgba(79, 70, 229, 0.18);
    --nav-link-hover: rgba(79, 70, 229, 0.12);
    --shadow-color: rgba(79, 70, 229, 0.15);
    --mobile-menu-bg: rgba(224, 231, 255, 0.98);
    --generic-title-accent: #665da1;
  }
  
  /* Reset & Base */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-family);
    color: var(--text-color);
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
    transition: color var(--transition-speed), background var(--transition-speed);
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  /* ============================================
     Header
     ============================================ */
  
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0;
    background: var(--header-bg);
    transition: background var(--transition-speed), backdrop-filter var(--transition-speed);
  }
  
  .header.scrolled {
    background: var(--header-scrolled-bg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  
  .header__inner {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  
  .header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    grid-column: 1;
    justify-self: start;
    padding-left: var(--header-side-inset);
  }
  
  .header__inner .header__nav {
    display: flex;
    align-items: center;
    justify-self: center;
    gap: 0.25rem;
    grid-column: 2;
  }
  
  .header__logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
  }
  
  .header__title {
    font-weight: 700;
    font-size: 1.25rem;
    white-space: nowrap;
  }
  
  .header__nav-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background var(--transition-speed);
  }
  
  .header__nav-link:hover,
  .header__nav-link.active {
    background: var(--nav-link-hover);
  }
  
  .header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    justify-self: end;
    padding-right: var(--header-side-inset);
    grid-column: 3;
  }
  
  .icon-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: var(--btn-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-speed);
    color: var(--icon-color);
  }
  
  .icon-btn:hover {
    background: var(--btn-hover-bg);
  }
  
  .icon-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }
  
  .icon-btn .icon-sun {
    fill: none;
    stroke: currentColor;
  }
  
  .icon-btn .icon-moon {
    display: none;
  }
  
  body.light-mode .icon-btn .icon-sun {
    display: none;
  }
  
  body.light-mode .icon-btn .icon-moon {
    display: block;
  }
  
  .header__hamburger {
    display: none;
  }
  
  .header__hamburger .icon-close {
    display: none;
  }
  
  .header__hamburger.active .icon-menu {
    display: none;
  }
  
  .header__hamburger.active .icon-close {
    display: block;
  }
  
  /* Mobile Menu Overlay */
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
  }
  
  .mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .mobile-menu__link {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    transition: background var(--transition-speed);
  }
  
  .mobile-menu__link:hover,
  .mobile-menu__link.active {
    background: var(--nav-link-hover);
  }
  
  /* ============================================
     Main Content
     ============================================ */
  
  .main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: calc(var(--header-height) + 2.5rem) 1.5rem 3rem;
  }
  
  .main--home {
    max-width: 1400px;
  }
  
  /* Home Page */
  .home-hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .landing-placeholder {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  .home-hero .welcome__step {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
  
  .home-hero__image {
    width: 100%;
    max-width: 1400px;
    height: auto;
    aspect-ratio: 1871 / 1041;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
  }
  
  .home-hero__image--light {
    display: none;
  }
  
  body.light-mode .home-hero__image--dark {
    display: none;
  }
  
  body.light-mode .home-hero__image--light {
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.4);
  }
  
  /* Welcome Page */
  .welcome {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }
  
  .welcome__title {
    font-size: clamp(2rem, 5.25vw, 3rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
    max-width: 900px;
    margin: 0 auto;
  }
  
  .generic__title-accent {
    color: var(--generic-title-accent);
  }
  
  .welcome__step {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
  }
  
  .welcome__image-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  .welcome__image {
    width: 100%;
    max-width: 746px;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
  }
  
  /* Help Page — see Help Section Styles block below */
  
  /* ============================================
     Responsive
     ============================================ */
  
  @media (max-width: 767px) {
    :root {
      --header-side-inset: 1rem;
    }
  
    .header__inner {
      display: flex;
      justify-content: space-between;
      padding: 0 1rem;
    }
  
    .header__brand {
      padding-left: 0;
    }
  
    .header__actions {
      padding-right: 0;
      grid-column: auto;
    }
  
    .header__inner .header__nav {
      display: none;
    }
  
    .header__hamburger {
      display: flex;
    }
  
    .header__title {
      font-size: 1.05rem;
    }
  
    .welcome__title {
      font-size: clamp(1.75rem, 5vw, 3rem);
    }
  }
  
  @media (min-width: 768px) {
    .welcome__title {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
  }
  
  
  /* ============================================
     Help Page — styles to append to styles.css
     ============================================ */
  
  /* ── Help Page layout ─────────────────────────────────────── */
  
  .main--help {
    max-width: 1200px;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 5rem;
  }
  
  .help-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-height: auto;
    justify-content: flex-start;
  }
  
  /* ── Help Hero ────────────────────────────────────────────── */
  
  .help-hero {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .help-hero__sub {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin: 0.75rem auto 1.5rem;
    max-width: 540px;
  }
  
  .help-search {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 10px 18px;
    max-width: 440px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
  }
  
  .help-search:focus-within {
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  }
  
  .help-search svg {
    flex-shrink: 0;
    opacity: 0.6;
  }
  
  .help-search__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-size: 0.9rem;
    color: var(--text-color);
  }
  
  .help-search__input::placeholder {
    opacity: 0.5;
    color: var(--text-color);
  }
  
  body.light-mode .help-search {
    border-color: rgba(79, 70, 229, 0.25);
    background: rgba(79, 70, 229, 0.06);
  }
  
  body.light-mode .help-search:focus-within {
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  }
  
  /* ── Section Nav pills ────────────────────────────────────── */
  
  .help-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
  }
  
  .help-nav__pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: background var(--transition-speed), border-color var(--transition-speed), opacity var(--transition-speed);
    opacity: 0.8;
  }
  
  .help-nav__pill:hover,
  .help-nav__pill.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
  }
  
  body.light-mode .help-nav__pill {
    background: rgba(79, 70, 229, 0.07);
    border-color: rgba(79, 70, 229, 0.18);
  }
  
  body.light-mode .help-nav__pill:hover,
  body.light-mode .help-nav__pill.active {
    background: rgba(79, 70, 229, 0.14);
    border-color: rgba(79, 70, 229, 0.4);
  }
  
  /* ── Chapters ─────────────────────────────────────────────── */
  
  .help-chapter {
    margin-bottom: 4rem;
    scroll-margin-top: calc(var(--header-height) + 12px);
  }
  
  .help-chapter__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  
  body.light-mode .help-chapter__header {
    border-bottom-color: rgba(79, 70, 229, 0.15);
  }
  
  .help-chapter__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }
  
  body.light-mode .help-chapter__icon {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.2);
  }
  
  .help-chapter__title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  
  .help-chapter__subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 2px;
  }
  
  .help-chapter__num {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    opacity: 0.35;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.04em;
  }
  
  body.light-mode .help-chapter__num {
    background: rgba(79, 70, 229, 0.06);
    border-color: rgba(79, 70, 229, 0.12);
  }
  
  /* ── Callout ──────────────────────────────────────────────── */
  
  .help-callout {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
  
  body.light-mode .help-callout {
    background: rgba(79, 70, 229, 0.05);
    border-color: rgba(79, 70, 229, 0.18);
    border-left-color: #4f46e5;
  }
  
  .help-callout__icon {
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
  }
  
  .help-callout__text {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.6;
  }
  
  .help-callout__text strong {
    opacity: 1;
    font-weight: 600;
  }
  
  /* ── Card Grid ────────────────────────────────────────────── */
  
  .help-grid {
    display: grid;
    gap: 16px;
  }
  
  .help-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .help-grid--3 { grid-template-columns: repeat(3, 1fr); }
  
  /* ── Card ─────────────────────────────────────────────────── */
  
  .help-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
  }
  
  .help-card:hover {
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  }
  
  body.light-mode .help-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(79, 70, 229, 0.15);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.06);
  }
  
  body.light-mode .help-card:hover {
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.12);
  }
  
  /* ── Card Thumbnail ───────────────────────────────────────── */
  
  .help-card__thumb {
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
    flex: 1;
  }
  
  body.light-mode .help-card__thumb {
    background: rgba(79, 70, 229, 0.06);
  }
  
  .help-card__thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 40%);
    opacity: 0;
    transition: opacity var(--transition-speed);
    pointer-events: none;
  }
  
  .help-card:hover .help-card__thumb::after {
    opacity: 1;
  }
  
  /* Aspect ratios */
  .help-card__thumb--landscape  { aspect-ratio: 16 / 9; }
  .help-card__thumb--portrait   { aspect-ratio: 3 / 4; }
  .help-card__thumb--tall       { aspect-ratio: 2 / 3; }
  .help-card__thumb--square     { aspect-ratio: 1 / 1; }
  .help-card__thumb--icon-strip { aspect-ratio: 1 / 3; }
  .help-card__thumb--wide-strip { aspect-ratio: 16 / 5; }
  .help-card__thumb--export-strip { aspect-ratio: 16 / 6; }
  
  /* Images inside thumb */
  .help-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity var(--transition-speed);
  }
  
  .help-card__img--contain {
    object-fit: contain;
    padding: 12px;
  }
  
  .help-card:hover .help-card__img {
    transform: scale(1.03);
  }
  
  /* Dark / light image switching */
  .help-card__img--light { display: none; }
  .help-card__img--dark  { display: block; }
  
  body.light-mode .help-card__img--dark  { display: none; }
  body.light-mode .help-card__img--light { display: block; }
  
  /* Zoom icon overlay */
  .help-card__zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity var(--transition-speed);
  }
  
  .help-card:hover .help-card__zoom-icon {
    opacity: 1;
  }
  
  /* ── Card Body ────────────────────────────────────────────── */
  
  .help-card__body {
    padding: 14px 16px 16px;
    flex-shrink: 0;
  }
  
  .help-card__label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.45;
    margin-bottom: 4px;
  }
  
  .help-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin-bottom: 5px;
  }
  
  .help-card__desc {
    font-size: 0.78rem;
    opacity: 0.9;
    line-height: 1.55;
  }
  
  /* ── Badges ───────────────────────────────────────────────── */
  
  .help-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 7px;
    margin-right: 4px;
    letter-spacing: 0.03em;
  }
  
  .help-badge--indigo {
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.3);
  }
  body.light-mode .help-badge--indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #4338ca;
    border-color: rgba(99, 102, 241, 0.25);
  }
  
  .help-badge--green {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.25);
  }
  body.light-mode .help-badge--green {
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.2);
  }
  
  .help-badge--amber {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.25);
  }
  body.light-mode .help-badge--amber {
    background: rgba(217, 119, 6, 0.1);
    color: #92400e;
    border-color: rgba(217, 119, 6, 0.2);
  }
  
  .help-badge--rose {
    background: rgba(244, 63, 94, 0.15);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.25);
  }
  body.light-mode .help-badge--rose {
    background: rgba(225, 29, 72, 0.1);
    color: #9f1239;
    border-color: rgba(225, 29, 72, 0.2);
  }
  
  /* ── Lightbox ─────────────────────────────────────────────── */
  
  .help-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 20, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
  }
  
  .help-lightbox--open {
    opacity: 1;
    visibility: visible;
  }
  
  .help-lightbox__container {
    position: relative;
    max-width: 1100px;
    max-height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .help-lightbox--open .help-lightbox__container {
    transform: scale(1) translateY(0);
  }
  
  .help-lightbox__img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(90vh - 72px);
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
  }
  
  .help-lightbox__img-wrap img {
    max-width: 100%;
    max-height: calc(90vh - 72px);
    width: auto;
    height: auto;
    display: block;
    border-radius: 12px;
  }
  
  .help-lightbox__footer {
    display: flex;
    align-items: center;
    padding: 0 4px;
  }
  
  .help-lightbox__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
  }
  
  .help-lightbox__desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    margin-top: 2px;
  }
  
  .help-lightbox__close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    transition: background var(--transition-speed), color var(--transition-speed);
    z-index: 201;
    line-height: 1;
  }
  
  .help-lightbox__close:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
  }
  
  .help-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.75);
    font-size: 22px;
    transition: background var(--transition-speed), color var(--transition-speed);
    z-index: 201;
    line-height: 1;
  }
  
  .help-lightbox__nav:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
  }
  
  .help-lightbox__nav--prev { left: 14px; }
  .help-lightbox__nav--next { right: 14px; }
  
  /* ── Responsive ───────────────────────────────────────────── */
  
  @media (max-width: 900px) {
    .help-grid--3 { grid-template-columns: repeat(2, 1fr); }
  }
  
  @media (max-width: 600px) {
    .help-grid--3,
    .help-grid--2 { grid-template-columns: 1fr; }
  
    .help-nav { gap: 6px; }
    .help-nav__pill { font-size: 0.75rem; padding: 5px 11px; }
  
    .main--help { padding-top: calc(var(--header-height) + 1.25rem); }
  }
  
  /* ── Horizontal card variant ─────────────────────────────── */

.help-card--horizontal {
  flex-direction: row;
  align-items: stretch;
}

.help-card--horizontal .help-card__thumb {
  flex: 0 0 auto;
  width: 55%;
  aspect-ratio: auto;
  min-height: 120px;
}

.help-card--horizontal .help-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Topbar thumbnail — wide banner ratio */
.help-card__thumb--topbar {
  aspect-ratio: 16 / 2;
}

/* When horizontal, override the aspect-ratio so height is driven by flex */
.help-card--horizontal .help-card__thumb--topbar {
  aspect-ratio: auto;
  width: 100%;
  flex: 0 0 auto;
}

/* Full-width single-card grid */
.help-grid--1 {
  grid-template-columns: 1fr;
}

/* Topbar card: stack thumb on top, body below (not side-by-side) */
.help-card--horizontal:has(.help-card__thumb--topbar) {
  flex-direction: column;
}

@media (max-width: 600px) {
  .help-card--horizontal {
    flex-direction: column;
  }

  .help-card--horizontal .help-card__thumb {
    width: 100%;
    min-height: unset;
  }
}

/* Sidebar collapsed strip thumbnail */
.help-card__thumb--sidebar-strip {
  aspect-ratio: 2 / 3;
}

.help-card--horizontal .help-card__thumb--sidebar-strip {
  object-fit: contain;
  width: auto;
  max-width: 100%;
}
