/* Help center (Figma frame 21:2361) and its article "What do the colours
   mean?" (49:2959).

   Line heights are in whole pixels: Figma rounds every line (Inter's auto
   1.21 x the size, or the design's percentage) to a pixel, and var(--lh)'s
   fractions add up down a stack of rows until the borders sit a pixel off. */

/* ── the help center ── */
/* the shared header and section label, at Figma's whole-pixel lines (41 + 6 + 23) */
.help .ph h1 { line-height: 41px; }
.help .ph-sub { line-height: 23px; }
.help .label-s { line-height: 18px; }
.topics { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.topic {
  padding: 7px 14px; border: 1px solid #e8e0d5; border-radius: 999px; background: #fff;
  color: var(--ink); font-size: 13px; font-weight: 600; line-height: 16px; white-space: nowrap;
  letter-spacing: .05px; /* Figma's semibold sets a hair wider; this keeps the row of chips as long as the design's */
  transition: background-color .15s ease;
}
.topic:hover { background: var(--cream); }
/* the chosen topic: a tint with no border, as the design draws "All topics" */
.topic[aria-pressed="true"], .topic[aria-pressed="true"]:hover { border: 0; background: rgba(255, 87, 34, .12); color: #c2410c; }

.qs { border: 1px solid #e8e0d5; border-radius: 16px; background: #fff; overflow: hidden; }
.q { display: block; border-bottom: 1px solid #e8e0d5; }
.q:last-child, .q.is-last { border-bottom: 0; }
.q[hidden], .helpful [hidden] { display: none; }
.q summary, .q-link {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  list-style: none; cursor: pointer; transition: background-color .15s ease;
}
.q summary::-webkit-details-marker { display: none; }
.q summary:hover, .q-link:hover { background: #fbf8f4; }
.q summary:focus-visible, .q-link:focus-visible { outline-offset: -2px; }
.q-title { flex: 1 0 0; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.q img { flex: none; width: 18px; height: 18px; }
.q .chev-open, .q[open] .chev-closed { display: none; }
.q[open] .chev-open { display: block; }
.q[open] summary { align-items: flex-start; padding-bottom: 0; }
.q[open] summary:hover { background: none; }
.q-answer { margin-top: 6px; padding: 0 54px 16px 20px; color: var(--body); font-size: 14px; line-height: 22px; }
.q[open] .q-answer { animation: rise .2s var(--ease); }
.q-answer a, .help-none a { color: var(--orange-ink); font-weight: 600; }
.q-answer a:hover, .help-none a:hover { text-decoration: underline; }
.help-none { color: var(--body); font-size: 14px; line-height: 22px; }

.stuck { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 14px; background: #fff0e3; }
.stuck-text { display: flex; flex: 1 0 0; flex-direction: column; gap: 4px; min-width: 0; }
.stuck h2 { font-size: 15px; font-weight: 700; line-height: 18px; }
.stuck p { color: var(--body); font-size: 13px; line-height: 16px; }
.stuck p a:hover, .rail-stuck a:hover { color: var(--ink); text-decoration: underline; }

/* ── an article ── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--body); font-size: 13px; font-weight: 500; line-height: 16px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--faint); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.article { display: flex; align-items: flex-start; gap: 48px; }
.article-body { display: flex; flex: 1 0 0; flex-direction: column; gap: 18px; min-width: 0; }
.article-body h1 { font-size: 40px; font-weight: 700; line-height: 48px; letter-spacing: -1.2px; }
.read-time { color: var(--faint); font-size: 13px; font-weight: 500; line-height: 16px; }
.article-lede { color: var(--body); font-size: 17px; line-height: 28px; }
.article-body h2 { font-size: 22px; font-weight: 700; line-height: 27px; letter-spacing: -0.33px; }
.article-text { color: var(--body); font-size: 16px; line-height: 26px; }

.colours { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.colour { display: flex; align-items: flex-start; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.colour:last-child { border-bottom: 0; }
.swatch { flex: none; width: 28px; height: 3px; margin-top: 9px; border-radius: 2px; background: var(--c); }
.colour-text { display: flex; flex: 1 0 0; flex-direction: column; gap: 5px; min-width: 0; }
.colour h3 { font-size: 16px; font-weight: 600; line-height: 19px; }
.colour p { color: var(--body); font-size: 14px; line-height: 22px; }
.colour .todo { color: var(--ink); }
.colour .todo b { font-weight: 600; }

.helpful { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 14px; background: #fff0e3; }
.helpful p { flex: 1 0 0; min-width: 0; font-size: 15px; font-weight: 600; line-height: 18px; }
.helpful p a { color: var(--orange-ink); }
.helpful p a:hover { text-decoration: underline; }

.rail { display: flex; flex: none; flex-direction: column; gap: 16px; width: 300px; }
.related { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.related h2 { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; line-height: 17px; }
.related a {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 500; line-height: 18px; transition: background-color .15s ease;
}
.related a:last-child { border-bottom: 0; }
.related a:hover { background: #fbf8f4; }
.related a:focus-visible { outline-offset: -2px; }
.related a span { flex: 1 0 0; min-width: 0; }
.related a img { flex: none; width: 14px; height: 14px; }
.rail-stuck { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 14px; background: #fff0e3; }
.rail-stuck h2 { font-size: 14px; font-weight: 700; line-height: 17px; }
.rail-stuck p { color: var(--body); font-size: 13px; line-height: 20px; }

@media (max-width: 960px) {
  .article { flex-direction: column; gap: 32px; }
  .rail { width: 100%; }
}
@media (max-width: 640px) {
  .q summary, .q-link { padding: 14px 16px; }
  .q-answer { padding: 0 16px 14px; }
  .stuck, .helpful { flex-wrap: wrap; }
  .article-body h1 { font-size: 30px; line-height: 36px; letter-spacing: -0.9px; }
  .article-lede { font-size: 16px; line-height: 26px; }
  .colour { gap: 14px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .q[open] .q-answer { animation: none; }
}
