/* The help pages. They load app.css first (tokens, fonts, the top bar, buttons, the footer) and add
   only reading: a calm column, real headings, the dash display as the one object. Mobile first. */

.doc { max-width: 720px; margin: 0 auto; padding: 8px var(--pad) 56px; }
.doc-crumb { margin: 8px 0 0; font: 600 13px/1.2 var(--f-body); letter-spacing: .02em; }
.doc-crumb a { color: var(--ink-3); text-decoration: none; }
.doc-crumb a:active { color: var(--ink); }
.doc-h1 {
  margin: 10px 0 10px; font: 800 clamp(32px, 8.2vw, 54px)/1.02 var(--f-display);
  letter-spacing: -.035em; text-wrap: balance;
}
.doc-lede { margin: 0 0 26px; font: 500 18px/1.45 var(--f-body); color: var(--ink-2); text-wrap: pretty; }
.doc-sec { margin: 0 0 26px; }
.doc-sec h2, .doc-faq h2, .doc-more h2 {
  margin: 0 0 8px; font: 750 22px/1.15 var(--f-display); letter-spacing: -.02em;
}
.doc p, .doc li { font-size: 17px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin: 0 0 6px; }
.doc li::marker { color: var(--amber-ink); font-weight: 700; }
.doc a { color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc i { font-style: normal; font: 600 .92em/1 var(--f-dot); letter-spacing: .02em; color: var(--amber-ink); white-space: nowrap; }
.doc b { font-weight: 700; }

/* the one object: a dash display that says what the page is about, and the way back to the tool */
.doc-cta {
  margin: 30px 0 34px; padding: 16px; border-radius: 22px;
  background: var(--paper-2); border: 1px solid var(--line);
  display: grid; gap: 14px; align-items: center;
}
.doc-disp {
  border-radius: 14px; padding: 12px 16px 14px;
  background: radial-gradient(120% 140% at 30% 0%, var(--glass-1), var(--glass-2));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 10px 30px rgba(0,0,0,.45);
  overflow: hidden;
}
.doc-disp-top { display: flex; justify-content: space-between; font: 600 11px/1 var(--f-dot); color: var(--dot-dim); letter-spacing: .12em; }
.doc-disp-main {
  margin-top: 8px; font: 800 clamp(20px, 5.6vw, 28px)/1.05 var(--f-dot); color: var(--dot);
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden;
  text-shadow: 0 0 12px rgba(255,160,26,.45);
}
.doc-disp-main span { display: inline-block; animation: doc-in 1.6s var(--ease) both; }
@keyframes doc-in { from { opacity: 0; transform: translateX(-14px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.doc-cta .btn { justify-self: start; }
.doc-cta-line { margin: 0; font: 500 15px/1.4 var(--f-body); color: var(--ink-2); }

/* questions: plain rows that open */
.doc-faq { margin: 6px 0 30px; }
.doc-faq details { border-top: 1px solid var(--line); }
.doc-faq details:last-child { border-bottom: 1px solid var(--line); }
.doc-faq summary {
  list-style: none; cursor: pointer; padding: 15px 34px 15px 0; position: relative;
  font: 650 17px/1.35 var(--f-body); min-height: 44px;
}
.doc-faq summary::-webkit-details-marker { display: none; }
.doc-faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--ink-3); border-bottom: 2.5px solid var(--ink-3); transform: rotate(45deg);
  transition: transform .25s var(--ease), margin .25s var(--ease);
}
.doc-faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.doc-faq details p { margin: -4px 0 16px; color: var(--ink-2); }

/* the hours a stick holds */
.doc-cap { margin: 2px 0 0 !important; font: 700 13px/1.3 var(--f-body) !important; color: var(--ink-2) !important; }
.doc-table { width: 100%; border-collapse: collapse; margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.doc-table th, .doc-table td { padding: 10px 4px; text-align: right; border-bottom: 1px solid var(--line); font-size: 15px; white-space: nowrap; }
@media (max-width: 420px) { .doc-table th, .doc-table td { font-size: 14px; padding: 9px 2px; } .doc-table thead th { font-size: 10.5px; letter-spacing: .03em; white-space: normal; } }
.doc-table th:first-child, .doc-table td:first-child { text-align: left; }
.doc-table thead th { font: 700 12px/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.doc-table td.hi { font-weight: 750; color: var(--ink); }
.doc-table td { color: var(--ink-2); }
.doc-note { font-size: 14px !important; color: var(--ink-3) !important; }

.doc-more { margin-top: 10px; }
.doc-more ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.doc-more li { margin: 0; }
.doc-more a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px;
  padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  text-decoration: none; font: 650 16px/1.3 var(--f-body);
}
.doc-more a::after { content: "›"; font: 700 22px/1 var(--f-body); color: var(--amber-ink); }
.doc-more a:active { background: var(--amber-tint); }

/* the help index */
.doc-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.doc-list li { margin: 0; }
.doc-list a {
  display: block; padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  text-decoration: none; min-height: 52px;
}
.doc-list a b { display: block; font: 750 18px/1.25 var(--f-display); letter-spacing: -.01em; }
.doc-list a span { display: block; margin-top: 4px; font: 500 15px/1.4 var(--f-body); color: var(--ink-2); }
.doc-list a:active { background: var(--amber-tint); }

@media (min-width: 760px) {
  .doc { padding-top: 18px; }
  .doc-cta { grid-template-columns: 1.3fr auto; padding: 18px 20px; }
  .doc-cta .btn { justify-self: end; }
  .doc-cta-line { grid-column: 1 / -1; }
  .doc-list { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .doc-disp-main span { animation-duration: 2.4s; }
}
