/* Help pages: on top of /style.css (same colors and font as the landing) */
.top nav { align-items: center; }
.top .langs { color: var(--muted); font-size: 15px; }
.top .langs a { color: var(--muted); }
.help { padding-bottom: 40px; }
.help h2 { font-size: clamp(24px, 4.2vw, 30px); line-height: 1.25; margin: 0 0 12px; }
.help h3 { font-size: 19px; margin: 0 0 6px; }

/* search on top, sticky while scrolling */
.help-hero { padding: 28px 0 8px; }
.help-hero h1 { font-size: clamp(30px, 6vw, 44px); margin-bottom: 18px; }
.search { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 0; }
.search label { display: block; font-weight: 500; margin-bottom: 6px; }
.search input {
  width: 100%; font: inherit; font-size: 19px; padding: 14px 18px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--card); color: var(--text); outline: none;
}
.search input:focus { border-color: var(--accent); }

/* quick start */
.quick { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 18px 0 28px; }
.quick ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: q; }
.quick li { counter-increment: q; display: grid; gap: 4px; padding-inline-start: 52px; position: relative; }
.quick li::before {
  content: counter(q); position: absolute; inset-inline-start: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 19px;
}
.quick li span { color: var(--muted); }

/* how do I… */
.tasks ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tasks a {
  display: grid; gap: 2px; height: 100%; padding: 14px 16px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500;
}
.tasks a span { color: var(--muted); font-weight: 400; font-size: 14px; }
.tasks a:hover, .tasks a:focus-visible { border-color: var(--accent); }
.nothing { color: var(--muted); }

/* all sections: thumbnails */
.contents { margin: 34px 0 10px; }
.contents ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.contents a { display: grid; gap: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; text-align: center; }
.contents img, .contents .noimg {
  width: 100%; height: 150px; object-fit: cover; object-position: top; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card);
}
.contents .noimg { display: grid; place-items: center; color: var(--muted); font-size: 34px; }
.contents a:hover img { border-color: var(--accent); }

/* a section */
.topic { padding: 38px 0 8px; border-top: 1px solid var(--line); margin-top: 30px; scroll-margin-top: 90px; }
.topic .intro { font-size: 19px; margin: 0 0 18px; }
.badge { font-size: 14px; font-weight: 500; vertical-align: middle; background: var(--accent-soft); color: var(--accent); padding: 3px 10px; border-radius: 99px; }
.shots { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.shot { margin: 0; display: grid; gap: 10px; }
.phone {
  position: relative; display: block; width: 100%; max-width: 330px; margin: 0 auto; padding: 0; border: 0;
  border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 6px 24px rgb(0 0 0 / 0.16); cursor: zoom-in;
  outline: 6px solid #1c1f26; outline-offset: -1px;
}
.phone img { display: block; width: 100%; height: auto; }
.mark { position: absolute; border: 2.5px solid #ff6a00; border-radius: 10px; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.7); transition: background 0.15s; pointer-events: none; }
.mark i, .legend i {
  font-style: normal; font-weight: 700; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #ff6a00; color: #fff; font-size: 15px; flex: none;
}
.mark i { position: absolute; top: -13px; left: -13px; box-shadow: 0 0 0 2px #fff; }
.mark.on { background: rgb(255 106 0 / 0.22); }
.shot figcaption { color: var(--muted); font-size: 15px; text-align: center; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legend li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; cursor: default; border-radius: 10px; padding: 4px 6px; }
.legend li.on { background: var(--accent-soft); }
.legend li.plain { padding-inline-start: 42px; color: var(--muted); }
.points, .say { margin: 18px 0 0; padding-inline-start: 22px; }
.points li, .say li { margin-bottom: 8px; }
.say { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.say li { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; margin: 0; }
b.ui { font-weight: 500; color: var(--text); }
.help { overflow-wrap: anywhere; }
.box { border-radius: 14px; padding: 12px 16px; margin: 16px 0 0; }
.box.tip { background: var(--accent-soft); }
.box.pro { background: var(--card); border: 2px solid var(--accent); }
.more { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 20px; align-items: start; margin-top: 26px; }
.more .shot.small .phone { max-width: 220px; border-radius: 16px; outline-width: 4px; }
.more .legend { font-size: 15px; }
.more p { margin: 0; }
@media (max-width: 560px) {
  .more { grid-template-columns: 1fr; }
  .more .shot.small .phone { max-width: 260px; }
}
.up { display: inline-block; margin-top: 18px; font-size: 15px; text-decoration: none; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.contact { margin-top: 36px; text-align: center; color: var(--muted); }

/* zoomed picture */
#zoom { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; }
#zoom::backdrop { background: rgb(0 0 0 / 0.8); }
#zoom .big { position: relative; height: min(92vh, 1400px); aspect-ratio: 1080 / 2400; max-width: 96vw; }
#zoom .big.cropped { aspect-ratio: auto; height: auto; width: min(96vw, 540px); }
#zoom .big img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 18px; }
#zoom .close {
  position: fixed; top: 12px; inset-inline-end: 12px; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: #fff; color: #000; font-size: 28px; cursor: pointer;
}
[hidden] { display: none !important; }
