/* Today – help page (help/index.html). Builds on site.css: its colors, header and footer. */

/* ---------- Hero with search ---------- */
.help-hero { padding: 8px 0 0; }
.help-hero .sky-card {
  background: var(--sky-today); color: #fff;
  padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 56px) clamp(84px, 11vw, 140px);
}
.help-hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 800; }
.help-hero p { margin-top: 12px; max-width: 40rem; font-size: clamp(16px, 2.2vw, 19px); opacity: 0.94; }
.help-hero .sun {
  position: absolute; top: clamp(18px, 4vw, 34px); right: clamp(16px, 5vw, 48px);
  width: clamp(64px, 11vw, 120px); height: clamp(64px, 11vw, 120px); z-index: 0;
}
.help-hero-inner { position: relative; z-index: 2; }

.help-search { position: relative; margin-top: 24px; max-width: 34rem; }
.help-search input {
  width: 100%; min-height: 52px; padding: 0 18px 0 48px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.96); color: #0b2540; font: 500 17px/1 var(--font-body);
  box-shadow: 0 10px 30px -12px rgba(0, 40, 90, 0.5);
}
.help-search input::placeholder { color: #66798e; }
.help-search svg { position: absolute; left: 17px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: #66798e; pointer-events: none; }
.help-search-empty { margin-top: 14px; font-weight: 600; }

/* ---------- Layout: contents beside the topics ---------- */
.help-layout { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 72px; }
@media (min-width: 980px) {
  .help-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-top: 40px; }
}

.toc { font-size: 15px; }
.toc details { background: var(--surface); border-radius: var(--radius-m); box-shadow: var(--shadow-card); }
.toc summary {
  list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 9px; height: 9px; border: solid var(--ink-3); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s; }
.toc details[open] summary::after { transform: rotate(-135deg); }
.toc .toc-body { padding: 0 10px 12px; }
.toc h2 { font: 700 12px/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 14px 8px 6px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: block; padding: 7px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2);
  line-height: 1.3;
}
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.toc a[aria-current="true"] { background: var(--surface-2); color: var(--accent-strong); font-weight: 650; }
@media (min-width: 980px) {
  .toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; }
  .toc details { background: none; box-shadow: none; }
  .toc summary { display: none; }
  .toc .toc-body { padding: 0; }
}

/* ---------- Parts and topics ---------- */
.help-part + .help-part { margin-top: 56px; }
.part-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.part-head h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
.level {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px;
  font: 700 12px/1 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.level.basic { background: #e1f3e3; color: #1d6b2a; }
.level.daily { background: #e2efff; color: #0a5bb5; }
.level.advanced { background: #fbe9da; color: #9a4a0c; }
@media (prefers-color-scheme: dark) {
  .level.basic { background: #173522; color: #8fe0a2; }
  .level.daily { background: #13304f; color: #9ccaff; }
  .level.advanced { background: #3a2410; color: #ffc08a; }
}

.topic {
  background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow-card);
  padding: clamp(20px, 4vw, 34px);
}
.topic + .topic { margin-top: 18px; }
.topic h3 { font-size: clamp(22px, 3.2vw, 27px); font-weight: 750; display: flex; align-items: center; gap: 10px; }
.topic h3 .ico {
  flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent-strong);
}
.topic h3 .ico svg { width: 20px; height: 20px; }
.topic h4 { font-size: 18px; font-weight: 700; margin: 22px 0 8px; }
.topic p { margin-top: 10px; color: var(--ink-2); }
.topic p:first-of-type { margin-top: 12px; }
.topic ul, .topic ol { margin: 10px 0 0; padding-left: 1.3em; color: var(--ink-2); }
.topic li + li { margin-top: 6px; }
.topic strong { color: var(--ink); }
.topic a { color: var(--accent-strong); }

.topic-body { display: grid; gap: 22px; align-items: start; }
@media (min-width: 760px) {
  .topic-body.with-media { grid-template-columns: minmax(0, 1fr) 260px; gap: 34px; }
}

ol.steps { list-style: none; padding: 0; counter-reset: step; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 40px; min-height: 28px; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 700 14px/1 var(--font-body);
}
ol.steps > li + li { margin-top: 10px; }

.tip {
  margin-top: 16px; padding: 14px 16px 14px 46px; border-radius: var(--radius-s); position: relative;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface)); color: var(--ink-2); font-size: 16px;
}
.tip::before {
  content: "💡"; position: absolute; left: 15px; top: 13px; font-size: 18px;
}
.tip.note::before { content: "ℹ️"; }

kbd {
  display: inline-block; min-width: 1.6em; padding: 1px 6px; border-radius: 6px; text-align: center;
  font: 600 14px/1.5 var(--font-body); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--line); color: var(--ink);
}

/* A label of the app, set as in the app */
.ui {
  font-weight: 650; color: var(--ink); white-space: nowrap;
  padding: 0 6px; border-radius: 6px; background: var(--surface-2);
}

/* ---------- Media: screenshots and videos ---------- */
.media { display: grid; gap: 16px; justify-items: center; }
.media.row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: start; }
.shot { margin: 0; width: 100%; max-width: 260px; }
.shot img, .clip video, .clip .poster {
  width: 100%; height: auto; border-radius: 26px; background: #0b2540;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-card);
}
.shot.wide { max-width: 520px; }
.shot.wide img { border-radius: 18px; }
.shot.watch { max-width: 190px; }
.shot.watch img { border-radius: 38px; }
.shot figcaption, .clip figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); text-align: center; line-height: 1.35; }

.clip { margin: 0; width: 100%; max-width: 260px; position: relative; }
.clip button {
  all: unset; display: block; position: relative; width: 100%; cursor: pointer; border-radius: 26px;
}
.clip button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.clip .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: rgba(8, 25, 45, 0.78); color: #fff; font: 700 15px/1 var(--font-body);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease;
}
.clip button:hover .play { transform: translate(-50%, -50%) scale(1.05); }
.clip .play svg { width: 18px; height: 18px; }
.clip .len { position: absolute; right: 12px; bottom: 12px; padding: 4px 8px; border-radius: 8px; background: rgba(8, 25, 45, 0.7); color: #fff; font: 600 12px/1 var(--font-body); }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:first-of-type { border-top: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 650; position: relative; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; }
.faq details > div p:first-child { margin-top: 0; }

.help-contact { text-align: center; margin-top: 40px; color: var(--ink-2); }
.help-contact a { color: var(--accent-strong); font-weight: 650; }

/* Search: hidden topics */
.topic[hidden], .help-part[hidden], .toc li[hidden] { display: none !important; }
mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 1px; }
@media (prefers-color-scheme: dark) { mark { background: #6b5a10; } }
