/* The guides (/how-to/, /print/, /app/ in every language; scripts/guides.mjs). They are app.css's about section
   (.about, .h3, .steps, .ticks, .faq, .ideas, .cta, .site-foot) standing as a page of its own; this adds only the
   header, the tables and the button's "Free" tag, in the same colors and type. */
body.g-page .about, body.g-page .site-foot { display: grid; }    /* app.css shows them on the home page's first screen only */
.g-page .about { padding-top: 8px; }

.g-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 16px 10px; background: rgba(246,246,246,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid #e8e8e8; }
.g-logo { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 16px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.g-logo img { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.g-start { flex: none; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 99px; padding: 8px 14px; background: var(--go); color: #ffffff; font-size: 14px; font-weight: 700; text-decoration: none; }

.g-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-3); }
.g-crumbs a { color: var(--ink-3); }
.g-h1 { margin: 4px 0 0; font-size: clamp(30px, 8.4vw, 46px); line-height: 1.06; font-weight: 800; letter-spacing: -.04em; overflow-wrap: break-word; hyphens: auto; text-wrap: balance; }
.g-h1:is(:lang(ja), :lang(zh), :lang(ko)) { font-size: clamp(26px, 7vw, 40px); letter-spacing: -.02em; }
.about .g-h1 + .lead { margin-top: 4px; }
.g-sec { display: grid; gap: 12px; scroll-margin-top: 64px; }
.g-sec .h3, .guide > .h3, .g-more .h3 { margin-top: 26px; overflow-wrap: break-word; hyphens: auto; }
.g-h4 { margin: 0 0 6px; font-size: 16px; }

/* the short answer: numbered like the steps in the phone's first-press window */
.g-quick { margin: 0; }
.g-quick li { font-weight: 500; color: var(--ink-2); }
.g-quick li strong { color: var(--ink); }

.g-go { display: grid; gap: 8px; margin: 10px 0 0; }
.g-go .cta { max-width: 360px; margin: 0 auto; }
.g-note { text-align: center; font-size: 13px; color: var(--ink-2); }
.g-tag { display: inline-block; margin-inline-end: 2px; padding: 1px 8px; border-radius: 99px; background: #ffffff; color: var(--accent-ink); font-size: 12px; font-weight: 800; font-style: normal; line-height: 1.6; flex: none; }

/* Tables scroll sideways inside their own box on a narrow phone, never the page */
.g-table { overflow-x: auto; background: var(--card); border-radius: 16px; }
.g-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.g-table th, .g-table td { padding: 10px 12px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.g-table tr:last-child > * { border-bottom: 0; }
.g-table thead th { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.g-table tbody th { font-weight: 700; color: var(--ink); min-width: 92px; }
.g-table td:last-child { color: var(--ink); }
.g-prices td { font-size: 16px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.g-prices tbody th { display: grid; gap: 1px; }
.g-prices tbody th span { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.g-table:is(:lang(ja), :lang(zh), :lang(ko), :lang(th)) thead th { text-transform: none; letter-spacing: 0; }

.g-more ul { margin-top: 6px; }

@media (min-width: 900px) {
  .g-top { padding: 12px 28px; }
  .g-start { max-width: none; }
}
