/* The help centre.
 *
 * Two ideas carry the whole design. First, annotations live in HTML on top of
 * a raw screenshot rather than being drawn into the pixels — so re-shooting a
 * screen does not mean redrawing anything, a translation touches strings rather
 * than images, and the text an arrow points at is text a screen reader reads
 * out. Second, every annotation's meaning also exists in the step it belongs
 * to, so the whole site works with images off. That is not a nicety here: the
 * people reading this are often on a phone, on a slow connection, between
 * appointments.
 */

.help-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  max-width: 1160px;
  margin: auto;
  padding: 44px 24px 96px;
}

.help-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 20px;
  font-size: 0.84rem;
}
.help-nav section {
  display: grid;
  gap: 2px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.help-nav section:first-child {
  padding-top: 0;
  border-top: 0;
}
.help-nav section > strong {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--matte-gold, #C69A5B);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: default;
  user-select: none;
}
.help-nav .help-ico { flex: none; }
.help-nav section > strong .help-ico { color: var(--matte-gold); }
.help-nav section a,
.help-subgroup a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.help-nav section a .help-ico {
  margin-top: 2px;
  color: var(--warm-gray);
}
.help-nav section a:hover .help-ico,
.help-nav section a[aria-current="page"] .help-ico { color: inherit; }
.help-subgroup {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}
.help-subgroup > b {
  padding: 2px 0 3px 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.3;
}
.help-subgroup a { margin-left: 10px; }
.help-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--teal-dark);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 700;
}
.help-nav a:hover .help-num { background: #fff; }
.help-nav a[aria-current="page"] .help-num {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}
.help-nav section > a {
  padding: 4px 8px 4px 12px;
  margin-left: 2px;
  border-left: 2px solid var(--line);
  border-radius: 0 6px 6px 0;
  color: var(--slate);
  font-size: 0.83rem;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}
.help-nav section > a:hover {
  border-left-color: var(--matte-gold, #C69A5B);
  background: var(--cream);
  color: var(--brown);
  text-decoration: none;
}
.help-nav section > a[aria-current="page"] {
  border-left-color: var(--teal-dark);
  background: var(--cream);
  color: var(--teal-dark);
  font-weight: 750;
}

.help-article {
  min-width: 0;
  max-width: 760px;
}
.help-article h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.help-lede {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.6;
}
.help-article h2 {
  margin: 42px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}
.help-article p,
.help-article li {
  color: var(--slate);
  font-size: 0.94rem;
  line-height: 1.72;
}
.help-article a {
  color: var(--teal-dark);
  text-decoration: underline;
}

/* Before you start */
.help-prereq {
  margin: 0 0 28px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0;
  background: var(--mist);
}
.help-prereq strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.help-prereq p {
  margin: 0;
  font-size: 0.88rem;
}

/* The numbered steps */
.help-steps {
  display: grid;
  gap: 34px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: help-step;
}
.help-steps > li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  counter-increment: help-step;
}
.help-steps > li::before {
  content: counter(help-step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
}
.help-steps > li > div {
  min-width: 0;
}
.help-steps p {
  margin: 4px 0 0;
}
.help-steps p:first-child {
  margin-top: 3px;
}

/* Screenshot with its annotation layer */
.help-shot {
  position: relative;
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.help-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.help-shot figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  background: var(--mist);
}

/* One highlight over a control, with its number. Percentages throughout, so the
   overlay stays aligned at any displayed width — which is the point, because
   this has to work on a phone. */
.help-mark {
  position: absolute;
  border: 2.5px solid #b93a3a;
  border-radius: 7px;
  box-shadow: 0 0 0 3px rgba(185, 58, 58, 0.16);
  pointer-events: none;
}
.help-mark > span {
  position: absolute;
  top: -12px;
  left: -12px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #b93a3a;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}

/* The key beneath the image. This is the part that carries the meaning when the
   images do not load, so it is never decorative. */
.help-key {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.help-key li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--slate);
}
.help-key b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #b93a3a;
  color: #fff;
  font-size: 0.72rem;
}

/* Worked / did not work */
.help-outcome {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
}
.help-outcome > div {
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.help-outcome > div.worked {
  border-left: 4px solid var(--green);
}
.help-outcome > div.stuck {
  border-left: 4px solid var(--amber);
}
.help-outcome strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.help-outcome > div.worked strong {
  color: var(--green);
}
.help-outcome > div.stuck strong {
  color: var(--amber);
}
.help-outcome p {
  margin: 0 0 8px;
  font-size: 0.89rem;
}
.help-outcome p:last-child {
  margin: 0;
}

.help-next {
  margin: 40px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.help-next span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* The index */
.help-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 30px;
}
.help-index-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.help-index-card h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.help-index-card > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}
.help-index-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.help-index-card li {
  margin: 0;
}
.help-index-card a {
  color: var(--slate);
  font-size: 0.88rem;
  line-height: 1.45;
}
.help-index-card a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.help-quick-head h2 {
  margin: 0 0 4px;
}
.help-quick-head p {
  margin: 0 0 8px;
  color: var(--muted);
}
.help-quick-track {
  margin-top: 22px;
}
.help-quick-track > h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}
.help-quick-intro {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
}
.help-quick-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.help-quick-card {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}
a.help-quick-card:hover {
  border-color: var(--teal-dark);
}
.help-quick-card h3 {
  margin: 8px 0 4px;
  font-size: 1.05rem;
}
.help-quick-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}
.help-quick-card img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.help-quick-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--slate);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.help-quick-tag {
  display: inline-block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.help-quick-more ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.help-quick-more a {
  color: var(--slate);
  font-size: 0.88rem;
}
.help-quick-more a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}
@media (max-width: 760px) {
  .help-quick-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .help-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 18px 64px;
  }
  .help-nav {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .help-steps > li {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
  }
  .help-steps > li::before {
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }
}

@media print {
  .site-header,
  footer,
  .help-nav {
    display: none !important;
  }
  .help-layout {
    display: block;
    padding: 0;
  }
}

/* Keep the article itself visible first on a phone. */
.help-topics {
  position: sticky;
  top: 96px;
  align-self: start;
  min-width: 0;
}
.help-topics > summary { display: none; }
.help-topics .help-nav { position: static; }
.help-topics[open] > .help-nav { display: grid; }
@media (max-width: 900px) {
  .help-topics { position: static; }
  .help-topics > summary {
    display: list-item;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--cream);
    color: var(--brown);
    font-weight: 700;
    cursor: pointer;
  }
  .help-topics[open] > .help-nav { margin-top: 10px; }
  .help-topics .help-nav { max-height: 65vh; overflow-y: auto; }
  .help-layout { gap: 24px; }
}

/* Help centre home: the Quick start introduction. One box across the full row,
   three illustrated steps inside, and the link to the guide underneath. */
.qs-panel { padding: 34px 36px 30px; border: 1px solid #EADBC4; border-radius: 22px; background: linear-gradient(180deg, #FFFDF8 0%, #FBF4E8 100%); box-shadow: 0 18px 44px rgb(60 36 24 / 7%); }
.qs-head { max-width: 640px; margin: 0 auto 26px; text-align: center; }
.qs-head .eyebrow { justify-content: center; }
.qs-head h2 { margin: 8px 0 8px; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.qs-head p { margin: 0; color: var(--muted); }
.qs-steps { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 14px; }
.qs-step { display: flex; flex-direction: column; align-items: center; padding: 22px 22px 24px; border: 1px solid #EFE3D1; border-radius: 16px; background: #fff; text-align: center; box-shadow: 0 6px 16px rgb(60 36 24 / 5%); transition: transform .18s ease, box-shadow .18s ease; }
.qs-step:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgb(60 36 24 / 9%); }
.qs-art svg { display: block; width: 132px; height: auto; margin: 0 auto 10px; }
.qs-num { display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 999px; background: #6E4829; color: #fff; font-size: .74rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.qs-step h3 { margin: 0 0 6px; font-size: 1.08rem; }
.qs-step p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.qs-arrow { display: grid; place-items: center; color: #C9A96E; }
.qs-arrow svg { width: 26px; height: 26px; }
.qs-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 26px; }
.qs-foot span { color: var(--muted); font-size: .88rem; }
@media (max-width: 860px) {
  .qs-panel { padding: 24px 18px; }
  .qs-steps { grid-template-columns: 1fr; }
  .qs-arrow { transform: rotate(90deg); }
}

/* Quick-start step pages: the track position above the short heading. */
.help-step-of{margin:0 0 4px;color:var(--gold-dark,#8a6a2f);font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}

/* A phone screen at phone size, in a simple device frame. */
.help-shot.phone{background:transparent;border:0;box-shadow:none;text-align:center}
.help-shot.phone>div{width:min(300px,100%);margin:0 auto;border:10px solid #2b1d16;border-radius:34px;overflow:hidden;background:#2b1d16;box-shadow:0 14px 34px rgba(43,29,22,.22)}
.help-shot.phone>div img{display:block;width:100%;border-radius:24px}
.help-shot.phone figcaption{max-width:420px;margin:12px auto 0;text-align:center}
