/* Help centre — numbers from gen.js on help-centre (19:4) and help-centre-mobile (47:4). */

/* ── hero ─────────────────────────────────────────────────────────────── */
.hhero { display: flex; gap: 40px; align-items: center; padding: 64px; background: var(--color-dark-2); color: var(--color-ink); }
.hhero__plaque { display: flex; flex-direction: column; gap: 24px; flex: 1; min-width: 0; padding: 48px; border-radius: 16px; background: var(--color-brand); }
.hhero__eyebrow { letter-spacing: .125em; }
.hhero__title { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-family: var(--font-display); text-transform: uppercase; }
.hhero__l1 { font-size: 72px; line-height: 65px; }
.hhero__l2 { font-size: 56px; line-height: 50px; padding: 8px 16px; background: var(--color-dark); color: var(--color-brand); }
.hhero__text { font-size: 16px; line-height: 26px; }
.hhero__graphic {
  position: relative; display: grid; place-items: center; flex: none; width: 500px; height: 400px;
  padding: 40px; border-radius: 16px; background: var(--color-dark); overflow: hidden;
}
.hhero__sq { position: absolute; }
.hhero__sq--1 { right: 20px; top: 20px; width: 120px; height: 120px; background: var(--color-brand); opacity: .15; }
.hhero__sq--2 { left: 20px; bottom: 20px; width: 140px; height: 140px; border: 1px solid var(--color-cream); opacity: .1; }
.hhero__q { font-family: var(--font-display); font-size: 220px; line-height: 220px; color: var(--color-brand); opacity: .3; }
.hhero__tags { position: absolute; left: 50px; right: 50px; top: 342px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hhero__tags span { padding: 6px 12px; border-radius: 4px; background: var(--color-dark-2); border: 1px solid var(--color-gold); color: var(--color-brand); font-size: 11px; line-height: 14px; font-weight: 700; text-transform: uppercase; }

/* ── topic directory ──────────────────────────────────────────────────── */
.topics { display: flex; flex-direction: column; gap: 40px; padding: 80px 64px; background: var(--color-cream); color: var(--color-ink); }
.topics__head { display: flex; flex-direction: column; gap: 12px; }
.topics__title { font-family: var(--font-display); font-size: 48px; line-height: 72px; text-transform: uppercase; color: var(--color-dark); }
.topics__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }   /* the frame: 640+640, 420+420+440, 640+656, 640 → halves and thirds of six columns; fractions fill the row whatever the scrollbar takes */
.topic { border-radius: 12px; }
.topic__link {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 10px 32px; border-radius: 12px; text-decoration: none; color: inherit;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.topic__link:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.topic__link:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.topic__top { display: flex; align-items: flex-start; justify-content: space-between; min-height: 48px; }
.topic__num { font-family: var(--font-display); font-size: 32px; line-height: 48px; opacity: .2; }
.topic__arrow { font-size: 24px; line-height: 31px; font-weight: 800; transition: transform var(--dur-fast) var(--ease); }
.topic__link:hover .topic__arrow { transform: translateX(4px); }
.topic__label { font-family: var(--font-display); font-size: 24px; line-height: 36px; text-transform: uppercase; color: var(--color-dark); }
.topic--s3 { grid-column: span 3; }
.topic--s2 { grid-column: span 2; }
.topic.is-open .topic__link { box-shadow: inset 0 0 0 3px var(--color-dark); }   /* the open topic: the frame outlines its first card the same way */
.topic--dark-accent.is-open .topic__link, .topic--dark.is-open .topic__link { box-shadow: inset 0 0 0 3px var(--color-brand); }
.topic.is-open .topic__arrow { transform: rotate(90deg); }
.topic--dark-accent .topic__link { background: var(--color-dark); box-shadow: inset 0 0 0 3px var(--color-brand); color: var(--color-brand); }
.topic--dark-accent .topic__num { opacity: .6; }
.topic--dark-accent .topic__label { font-size: 28px; line-height: 42px; color: var(--color-white); }
.topic--white .topic__link, .topic--white-ink .topic__link { background: var(--color-white); box-shadow: inset 0 0 0 1px var(--color-border-light-2); }
.topic--white-ink .topic__link { box-shadow: inset 0 0 0 1px var(--color-dark); }
.topic--white:nth-child(2) .topic__label { font-size: 28px; line-height: 42px; }
.topic--brand .topic__link { background: var(--color-brand); box-shadow: inset 0 0 0 1px var(--color-gold); }
.topic--brand .topic__num { opacity: .4; }
.topic--brand .topic__label { font-size: 26px; line-height: 39px; }
.topic--dark .topic__link { background: var(--color-dark); color: var(--color-brand); }
.topic--dark .topic__label { font-size: 26px; line-height: 39px; color: var(--color-brand); }
.topic--bg .topic__link { background: var(--color-bg); box-shadow: inset 0 0 0 1px var(--color-border-light-2); }
.topic--brand-ink .topic__link { background: var(--color-brand); box-shadow: inset 0 0 0 2px var(--color-dark); }
.topic--brand-ink .topic__num { opacity: .5; }
.topic--brand-ink .topic__top { align-items: center; }

/* ── getting started ──────────────────────────────────────────────────── */
.started { display: flex; gap: 48px; align-items: flex-start; padding: 80px 64px; background: var(--color-bg); color: var(--color-ink); }
.toc { position: relative; display: flex; flex-direction: column; gap: 24px; width: 380px; min-height: 640px; flex: none; padding: 32px; border-radius: 12px; background: var(--color-brand); overflow: hidden; }
.toc__wm { font-family: var(--font-display); font-size: 64px; line-height: 96px; color: var(--color-dark); opacity: .1; }
.toc__head { display: flex; flex-direction: column; gap: 4px; }
.toc__eyebrow { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.toc__title { font-family: var(--font-display); font-size: 40px; line-height: 60px; text-transform: uppercase; color: var(--color-dark); }
.toc__list { display: flex; flex-direction: column; gap: 16px; }
.toc__link { display: flex; align-items: center; gap: 12px; min-height: 37px; padding: 8px; border-radius: 6px; text-decoration: none; color: var(--color-ink); font-size: 14px; line-height: 18px; font-weight: 500; transition: background-color var(--dur-fast) var(--ease); }
.toc__link:hover { background: rgba(255, 255, 255, .35); }
.toc__num { font-family: var(--font-display); font-size: 14px; line-height: 21px; font-weight: 400; opacity: .4; }
.articles { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.started { scroll-margin-top: 108px; }
.article { display: flex; gap: 24px; min-height: 160px; padding: 32px 16px; border-radius: 8px; box-shadow: inset 0 -1px 0 var(--color-border-light-2); scroll-margin-top: 140px; }
.article:last-child { box-shadow: none; }
.article__num { font-family: var(--font-display); font-size: 48px; line-height: 72px; color: var(--color-dark); opacity: .2; }
.article__body { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.article__title { font-family: var(--font-display); font-size: 24px; line-height: 36px; color: var(--color-dark); }
.article__text { font-size: 15px; line-height: 24px; }

/* ── mobile (390 frame) ───────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .hhero { flex-direction: column; align-items: stretch; gap: 0; padding: 0; background: var(--color-brand); border-bottom: 2px solid var(--color-dark-2); }
  .hhero__plaque { gap: 16px; padding: 32px 16px 24px; border-radius: 0; }
  .hhero__eyebrow { font-size: 11px; line-height: 14px; color: var(--color-dark-2); }
  .hhero__title { gap: 6px; }
  .hhero__l1 { font-size: 48px; line-height: 43px; color: var(--color-dark-2); }
  .hhero__l2 { font-size: 38px; line-height: 34px; padding: 4px 12px; border-radius: 4px; }
  .hhero__text { font-size: 14px; line-height: 21px; color: var(--color-dark-2); }
  .hhero__graphic { width: auto; height: 280px; padding: 24px; border-radius: 0; }
  .hhero__sq--1 { right: 16px; top: 16px; width: 72px; height: 72px; opacity: .12; }
  .hhero__sq--2 { left: 16px; bottom: 16px; width: 80px; height: 80px; opacity: .08; }
  .hhero__q { font-size: 140px; line-height: 140px; opacity: .25; }
  .hhero__tags { left: 16px; right: 16px; top: 239px; gap: 6px; }
  .hhero__tags span { border-color: var(--color-brand); font-size: 10px; line-height: 13px; font-weight: 800; }

  .topics { gap: 24px; padding: 48px 16px; }
  .topics__head { gap: 8px; }
  .topics__title { font-size: 38px; line-height: 57px; }
  .topics__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .topic--s3, .topic--s2 { grid-column: auto; }
  .topic__link { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "num label arrow"; align-items: center; column-gap: 16px; min-height: 68px; padding: 16px 20px; }
  .topic__top { display: contents; }
  .topic__num { grid-area: num; font-size: 24px; line-height: 36px; opacity: 1; }
  .topic__label { grid-area: label; font-size: 18px; line-height: 27px; }
  .topic__arrow { grid-area: arrow; font-size: 20px; line-height: 26px; font-weight: 700; }
  .topic--dark-accent .topic__link { box-shadow: none; }
  .topic--dark-accent .topic__label, .topic--white:nth-child(2) .topic__label, .topic--brand .topic__label, .topic--dark .topic__label { font-size: 18px; line-height: 27px; }
  .topic--dark-accent .topic__label { color: var(--color-brand); }
  .topic--white .topic__label, .topic--white .topic__num, .topic--white .topic__arrow { color: var(--color-dark-2); }

  .started { flex-direction: column; align-items: stretch; gap: 40px; padding: 48px 16px; }
  .toc { width: auto; min-height: 0; gap: 20px; padding: 24px; box-shadow: inset 0 0 0 1px var(--color-dark-2); }
  .toc__wm { font-size: 56px; line-height: 45px; opacity: .08; }
  .toc__eyebrow { font-size: 11px; line-height: 14px; color: var(--color-dark-2); }
  .toc__title { font-size: 32px; line-height: 48px; }
  .toc__list { gap: 8px; }
  .toc__link { min-height: 34px; background: rgba(255, 255, 255, .25); font-size: 13px; line-height: 17px; font-weight: 600; }
  .toc__num { font-size: 12px; line-height: 18px; }
  .article { flex-direction: column; gap: 12px; min-height: 0; padding: 24px 0; border-radius: 0; }
  .article__num { font-size: 38px; line-height: 57px; opacity: .15; }
  .article__body { gap: 12px; }
  .article__title { font-size: 22px; line-height: 33px; }
  .article__text { font-size: 14px; line-height: 21px; }
  .article { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "num title" "text text"; column-gap: 16px; row-gap: 12px; align-items: baseline; }
  .article__num { grid-area: num; }
  .article__body { display: contents; }
  .article__title { grid-area: title; }
  .article__text { grid-area: text; }
}
