/* ==========================================================================
   sugusearch: the other pages (help, what's new, terms, privacy, refunds, renew).
   iromote's text pages (style.css "Text pages"), with sugusearch's header and a help layout.
   ========================================================================== */
.doc-top { position: sticky; top: 0; z-index: 50; padding: 18px 0; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.doc-top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.doc-top img { height: 26px; width: auto; }
.doc-top nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 20px; font-size: 14px; }
.doc-top nav a { text-decoration: none; color: var(--ink-2); }
.doc-top nav a:hover, .doc-top nav a[aria-current] { color: var(--ink); }
.doc-top nav a[aria-current] { font-weight: 600; }

.doc { max-width: 760px; margin: 0 auto; padding: 64px 32px 40px; }
.doc h1 { font: 800 52px/1.05 var(--display); letter-spacing: -0.035em; margin-bottom: 12px; text-wrap: balance; }
.doc .updated { color: var(--ink-2); font-size: 15px; margin-bottom: 40px; }
.doc h2 { font: 700 23px/1.3 var(--display); letter-spacing: -0.015em; margin: 44px 0 12px; scroll-margin-top: 90px; }
.doc h3 { font: 700 17px/1.35 var(--body); margin: 28px 0 8px; scroll-margin-top: 90px; }
.doc p, .doc li { color: #333; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { margin: 10px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--ink); text-underline-offset: 3px; }
.doc .summary { padding: 20px 22px; border-radius: 18px; background: var(--soft); margin-bottom: 8px; }
.doc kbd.cap { font-size: 0.85em; }
.doc .footer { margin-top: 64px; }   /* the same one-row footer as the home page, as on iromote's pages */
.doc-wide { max-width: 1100px; }

/* forms in a card of their own (refunds, renew) */
.renew-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 460px; margin: 28px 0 36px; padding: 28px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 24px 50px rgba(0, 0, 0, 0.06); }
.doc .renew-box > p { margin: 0; }
.renew-box input, .renew-box select { padding: 13px 15px; border: 1.5px solid #e2e2e2; border-radius: 14px; font: 16px var(--body); background: #fff; outline: none; }
.renew-box input:focus, .renew-box select:focus { border-color: var(--ink); }
.renew-box .btn { justify-content: center; }
.renew-box label { margin-top: 4px; }
.renew-box .price-amount { font: 800 44px/1 var(--display); letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 8px; }
.renew-box .price-amount small { font: 500 16px var(--body); letter-spacing: 0; color: var(--ink-2); }

/* ---------- help: contents on the side, steps with pictures of the app ---------- */
.help { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.help-toc { position: sticky; top: 96px; font-size: 14px; }
.help-toc p { margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.help-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.help-toc > ol > li { counter-increment: t; margin-top: 12px; }
.help-toc > ol > li > a { font-weight: 600; }
.help-toc > ol > li > a::before { content: counter(t) ". "; color: var(--ink-2); }
.help-toc ol ol { margin: 4px 0 0 18px; }
.help-toc ol ol li { margin-top: 3px; }
.help-toc a { text-decoration: none; color: var(--ink); }
.help-toc ol ol a { color: var(--ink-2); }
.help-toc a:hover, .help-toc a.on { color: var(--ink); }
.help-toc a.on { box-shadow: inset 0 -0.45em 0 var(--marker); }
.help-body > h2:first-child { margin-top: 0; }
.doc-wide > h1 { margin-left: 276px; }
.doc-wide > .updated { margin-left: 276px; }
.shot-fig { margin: 18px 0 8px; }
.shot-fig img { display: block; width: 100%; max-width: 620px; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 16px 36px rgba(0, 0, 0, 0.12); }
.shot-fig figcaption { max-width: 620px; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.keys-table { width: 100%; max-width: 620px; margin: 14px 0 0; border-collapse: collapse; font-size: 15px; }
.keys-table td { padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: top; color: #333; }
.keys-table td:first-child { width: 150px; white-space: nowrap; }
.fix { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--soft); }
.fix b { display: block; margin-bottom: 4px; }
.doc .fix p { margin: 0; }
.say { font-family: var(--app); font-size: 0.95em; padding: 1px 6px; border-radius: 4px; background: #eef1f5; color: #24324a; }

/* ---------- what's new ---------- */
.release { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.release:first-of-type { border-top: 0; padding-top: 0; }
.release h2 { margin: 0 0 4px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.release h2 small { font: 500 14px var(--body); color: var(--ink-2); }
.release ul { margin-top: 12px; }

@media (max-width: 900px) {
  .help { grid-template-columns: 1fr; gap: 28px; }
  .help-toc { position: static; padding: 18px 20px; border-radius: 18px; background: var(--soft); }
  .doc-wide > h1, .doc-wide > .updated { margin-left: 0; }
}
@media (max-width: 560px) {
  .doc { padding: 40px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); }
  .doc h1 { font-size: 38px; }
  .doc-top nav { gap: 4px 14px; font-size: 13px; }
  .doc-top nav .hide-sm { display: none; }
  .doc-top img { height: 22px; }
  .keys-table td:first-child { width: 110px; }
}
