/* guide-v2.css — shared layout for /guides/* and /from/* pages.
 *
 * Built after a screenshot review (2026-09-24): pages were long single
 * columns of prose, the answer sat several screens down, diagrams were wide
 * SVGs whose text shrank to unreadable on a phone, and every page restyled
 * its own "Ready to convert?" box two or three times. The rules here:
 *   1. Answer first — one short-answer box under the H1.
 *   2. Show, then tell — a flow and illustrated step cards before any prose.
 *   3. One tool block per page.
 *   4. Depth is kept (for search and for the curious) but collapsed.
 */

.g-wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* Breadcrumb clears the fixed 56px nav — it used to render on top of it. */
.g-crumbs { padding-top: 76px; font-size: 13px; color: var(--text-tertiary); }
.g-crumbs a { color: var(--text-secondary); text-decoration: none; }
.g-crumbs a:hover { color: var(--text-primary); }
.g-crumbs span[aria-hidden] { margin: 0 6px; }

.g-hero { padding: 20px 0 8px; }
.g-hero h1 {
    font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: -0.03em;
    line-height: 1.12; margin: 0 0 16px; text-wrap: balance;
}
.g-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.g-meta li {
    font-size: 13px; color: var(--text-secondary); padding: 6px 12px; border-radius: 99px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
}

/* The short answer. Everything a skimmer needs, in one box. */
.g-answer {
    border-radius: 16px; padding: 18px 20px; margin: 0 0 8px;
    background: linear-gradient(180deg, rgba(10,132,255,0.12), rgba(10,132,255,0.05));
    border: 1px solid rgba(10,132,255,0.3);
}
.g-answer-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #5aa9ff; margin: 0 0 6px; }
.g-answer p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-primary); }
.g-answer a { color: #5aa9ff; }

.g-section { padding: 44px 0 0; }
.g-section > h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; text-wrap: balance; }
.g-section > .g-lead { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--text-secondary); }

/* Flow: real HTML, so it stays legible at any width. Stacks on phones. */
.g-flow { display: flex; align-items: stretch; gap: 0; margin: 0; padding: 0; list-style: none; }
.g-flow li {
    flex: 1 1 0; min-width: 0; text-align: center; padding: 16px 10px; border-radius: 14px;
    background: var(--bg-elevated); border: 1px solid var(--border); position: relative;
}
.g-flow li + li { margin-left: 28px; }
.g-flow li + li::before {
    content: "→"; position: absolute; left: -22px; top: 50%; transform: translateY(-50%);
    color: var(--text-tertiary); font-size: 18px;
}
.g-flow-icon { font-size: 26px; line-height: 1; display: block; margin-bottom: 8px; }
.g-flow strong { display: block; font-size: 14px; color: var(--text-primary); }
.g-flow span.g-flow-sub { display: block; font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.g-flow li.is-us { border-color: rgba(10,132,255,0.45); background: rgba(10,132,255,0.08); }
@media (max-width: 640px) {
    .g-flow { flex-direction: column; }
    .g-flow li { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; }
    .g-flow li + li { margin-left: 0; margin-top: 22px; }
    .g-flow li + li::before { content: "↓"; left: 24px; top: -20px; transform: none; }
    .g-flow-icon { margin: 0; font-size: 22px; }
}

/* Step cards: picture on top, one short instruction below. */
.g-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: gstep; }
.g-step {
    counter-increment: gstep; border-radius: 16px; overflow: hidden;
    background: var(--bg-elevated); border: 1px solid var(--border); display: flex; flex-direction: column;
}
.g-step-art { background: #0b0d12; border-bottom: 1px solid var(--border); padding: 16px; display: flex; justify-content: center; }
.g-step-art svg { width: 100%; max-width: 340px; height: auto; display: block; }
.g-step-body { padding: 16px 18px 18px; }
.g-step-body h3 { margin: 0 0 6px; font-size: 17px; font-weight: 650; display: flex; gap: 10px; align-items: baseline; }
.g-step-body h3::before {
    content: counter(gstep); flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
    background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; transform: translateY(-2px);
}
.g-step-body p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.g-step-body a { color: #5aa9ff; }
.g-steps.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .g-steps, .g-steps.is-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .g-table-wrap .g-table { min-width: 0; }
    .g-table .g-col-effort { display: none; }
    pre.g-tree { font-size: 12px; padding: 14px; }
}

/* Tool block — the one place on the page that does the thing. */
.g-tool {
    border-radius: 18px; padding: 20px; background: var(--bg-card);
    border: 1px solid rgba(10,132,255,0.35);
}
.g-tool h2 { font-size: 20px; margin: 0 0 4px; }
.g-tool > p { margin: 0 0 14px; color: var(--text-secondary); font-size: 15px; }
.g-tool .guide-drop{display:flex;align-items:center;gap:14px;margin:0;padding:22px 18px;border:1.5px dashed rgba(10,132,255,0.55);border-radius:14px;background:rgba(10,132,255,0.06);cursor:pointer;text-align:left;transition:background .15s,border-color .15s;flex-wrap:wrap;}
.g-tool .guide-drop:hover,.g-tool .guide-drop.is-over{background:rgba(10,132,255,0.12);border-color:#0A84FF;}
.g-tool .guide-drop:focus-visible{outline:2px solid #0A84FF;outline-offset:3px;}
.g-tool .guide-drop-icon{font-size:24px;line-height:1;color:#0A84FF;flex:0 0 auto;}
.g-tool .guide-drop-text strong{display:block;font-size:16px;}
.g-tool .guide-drop-text span{display:block;font-size:13px;color:var(--text-secondary);margin-top:2px;}
.g-tool .guide-drop-status{width:100%;font-size:14px;margin-top:4px;}
.g-tool .guide-drop.is-busy{opacity:.7;pointer-events:none;}
.g-tool > p.g-tool-alt, .g-tool-alt { margin: 12px 0 0; font-size: 14px; color: var(--text-tertiary); }
.g-tool-alt a { color: #5aa9ff; }

/* File tree for "what's inside the zip". */
.g-tree {
    margin: 0; padding: 16px 18px; border-radius: 14px; background: #0b0d12; border: 1px solid var(--border);
    font: 14px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-secondary); overflow-x: auto;
}
.g-tree b { color: var(--text-primary); font-weight: 600; }
.g-tree .ok { color: var(--accent-green); }
.g-tree .no { color: var(--text-tertiary); }

/* Comparison table — scrolls sideways inside itself on phones. */
.g-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); }
.g-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.g-table th, .g-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.g-table th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); background: rgba(255,255,255,0.02); }
.g-table tr:last-child td { border-bottom: 0; }
.g-table td { color: var(--text-secondary); }
.g-table td:first-child { color: var(--text-primary); font-weight: 600; }
.g-table .g-best { color: var(--accent-green); font-weight: 600; }

/* Callout for the one thing people get wrong. */
.g-note {
    display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; margin: 16px 0 0;
    background: rgba(255,159,10,0.08); border: 1px solid rgba(255,159,10,0.3); font-size: 15px; line-height: 1.55;
}
.g-note-icon { flex: 0 0 auto; }
.g-note p { margin: 0; color: var(--text-secondary); }
.g-note strong { color: var(--text-primary); }
.g-note a { color: #5aa9ff; }

/* Collapsed depth: details for readers who want it, still in the HTML. */
.g-more, .g-faq details {
    border-radius: 14px; background: var(--bg-elevated); border: 1px solid var(--border); margin: 0 0 10px;
}
.g-more > summary, .g-faq summary {
    cursor: pointer; list-style: none; padding: 16px 44px 16px 18px; font-weight: 600; font-size: 16px; position: relative;
}
.g-more > summary::-webkit-details-marker, .g-faq summary::-webkit-details-marker { display: none; }
.g-more > summary::after, .g-faq summary::after {
    content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    font-size: 20px; color: var(--text-tertiary); font-weight: 400;
}
.g-more[open] > summary::after, .g-faq details[open] summary::after { content: "–"; }
.g-more-body, .g-faq details > p { padding: 0 18px 16px; margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-secondary); }
.g-more-body h3 { font-size: 15px; color: var(--text-primary); margin: 14px 0 6px; }
.g-more-body ol, .g-more-body ul { padding-left: 20px; margin: 0 0 8px; }
.g-more-body li { margin-bottom: 4px; }
.g-more-body code, .g-step-body code, .g-note code {
    background: rgba(255,255,255,0.07); padding: 1px 6px; border-radius: 5px; font-size: 0.9em; color: var(--text-primary);
}
.g-more-body pre { background: #0b0d12; border: 1px solid var(--border); border-radius: 10px; padding: 12px; overflow-x: auto; font-size: 13px; }
.g-more-body a, .g-faq a { color: #5aa9ff; }

/* Related guides as cards, not a bare link list. */
.g-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.g-related a {
    display: block; height: 100%; padding: 16px; border-radius: 14px; text-decoration: none;
    background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-primary); font-weight: 600; font-size: 15px; line-height: 1.4;
}
.g-related a:hover { border-color: var(--border-hover); }
.g-related a span { display: block; margin-top: 6px; font-weight: 400; font-size: 13px; color: var(--text-tertiary); }
@media (max-width: 720px) { .g-related { grid-template-columns: 1fr; } }

.g-end { height: 64px; }

/* ── Components added for the full rollout (2026-09-24) ───────────────── */

/* Inline Quick Convert (guide-qc.js). */
.g-qc {
    border-radius: 18px; padding: 20px; background: var(--bg-card); border: 1px solid rgba(10,132,255,0.35);
}
.g-qc h2 { font-size: 20px; margin: 0 0 4px; }
.g-qc > p { margin: 0 0 14px; color: var(--text-secondary); font-size: 15px; }
.g-qc label { display: block; font-size: 13px; color: var(--text-tertiary); margin: 0 0 6px; }
.g-qc-row { display: flex; gap: 8px; }
.g-qc-row input {
    flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px; font: inherit; font-size: 16px;
    color: var(--text-primary); background: #0b0d12; border: 1px solid var(--border-hover);
}
.g-qc-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.g-qc-row button {
    flex: 0 0 auto; height: 48px; padding: 0 20px; border: 0; border-radius: 12px; cursor: pointer;
    background: var(--accent); color: #fff; font: inherit; font-size: 16px; font-weight: 650;
}
.g-qc-row button:disabled { opacity: .6; cursor: progress; }
.g-qc-error { margin: 10px 0 0; font-size: 14px; color: #ff9f0a; }
.g-qc-result:empty { display: none; }
.g-qc-card { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(48,209,88,0.07); border: 1px solid rgba(48,209,88,0.35); }
.g-qc-card.is-list { background: rgba(255,159,10,0.07); border-color: rgba(255,159,10,0.35); }
.g-qc-card-name { margin: 0 0 4px; font-weight: 650; color: var(--text-primary); }
.g-qc-card-url { margin: 0 0 12px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-tertiary); word-break: break-all; }
.g-qc-card-text { margin: 0; font-size: 14px; color: var(--text-secondary); }
.g-qc-card-text a { color: #5aa9ff; }
.g-qc-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.g-qc-open, .g-qc-copy {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 11px;
    font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.g-qc-open { background: var(--accent); color: #fff; border: 0; }
.g-qc-copy { background: transparent; color: #5aa9ff; border: 1px solid rgba(10,132,255,0.4); }
.g-qc-hint { margin: 10px 0 0; font-size: 13px; color: var(--text-tertiary); }
.g-qc-hint a { color: #5aa9ff; }
@media (max-width: 480px) { .g-qc-row { flex-direction: column; } .g-qc-row button { width: 100%; } }

/* URL anatomy: a link broken into labelled parts. HTML, so it wraps and stays legible. */
.g-url { border-radius: 14px; background: #0b0d12; border: 1px solid var(--border); padding: 14px 16px; margin: 0 0 12px; }
.g-url-line { font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-tertiary); word-break: break-all; margin: 0; }
.g-url-line b { font-weight: 600; border-radius: 4px; padding: 1px 3px; }
.g-url-line .u1 { color: #5aa9ff; background: rgba(10,132,255,0.12); }
.g-url-line .u2 { color: #30d158; background: rgba(48,209,88,0.12); }
.g-url-line .u3 { color: #ff9f0a; background: rgba(255,159,10,0.12); }
.g-url-line .u4 { color: #bf5af2; background: rgba(191,90,242,0.14); }
.g-url-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-secondary); }
.g-url-key li::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.g-url-key .k1::before { background: #0A84FF; } .g-url-key .k2::before { background: #30d158; }
.g-url-key .k3::before { background: #ff9f0a; } .g-url-key .k4::before { background: #bf5af2; }

/* Format cards: one card per link type, anatomy + one-line verdict. */
.g-formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.g-format { border-radius: 16px; background: var(--bg-elevated); border: 1px solid var(--border); padding: 16px; }
.g-format h3 { margin: 0 0 8px; font-size: 16px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.g-format p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.g-format .g-url { margin: 0; padding: 10px 12px; }
.g-format .g-url-line { font-size: 13px; }
@media (max-width: 720px) { .g-formats { grid-template-columns: 1fr; } }

/* Status pills (works / needs a step / not supported). */
.g-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.g-pill.ok { color: #30d158; background: rgba(48,209,88,0.12); }
.g-pill.step { color: #ff9f0a; background: rgba(255,159,10,0.12); }
.g-pill.no { color: #ff6b6b; background: rgba(255,69,58,0.12); }
.g-pill.info { color: #5aa9ff; background: rgba(10,132,255,0.12); }

/* Settings path: Settings › Apps › Default Apps. */
.g-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.g-path li { font-size: 14px; font-weight: 600; color: var(--text-primary); background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; }
.g-path li + li::before { content: "›"; color: var(--text-tertiary); margin: 0 8px 0 -2px; font-weight: 400; }

/* Choices: two or three ways to do it, with who each one is for. */
.g-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.g-choice { border-radius: 16px; background: var(--bg-elevated); border: 1px solid var(--border); padding: 16px 18px; display: flex; flex-direction: column; }
.g-choice.is-best { border-color: rgba(10,132,255,0.45); background: rgba(10,132,255,0.07); }
.g-choice h3 { margin: 8px 0 6px; font-size: 17px; }
.g-choice p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--text-secondary); flex: 1 1 auto; }
.g-choice a.g-choice-go { align-self: flex-start; font-size: 14px; font-weight: 650; color: #5aa9ff; text-decoration: none; }
.g-choice a.g-choice-go:hover { text-decoration: underline; }

/* On this page — for the few long guides. */
.g-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.g-toc a {
    display: inline-block; font-size: 13px; color: var(--text-secondary); text-decoration: none;
    padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,0.04); border: 1px solid var(--border);
}
.g-toc a:hover { color: var(--text-primary); border-color: var(--border-hover); }
.g-section[id] { scroll-margin-top: 72px; }

/* Verdict rows for comparison pages. */
.g-vs .g-best { white-space: nowrap; }
.g-vs td:nth-child(2), .g-vs td:nth-child(3) { width: 34%; }

/* Info variant of the callout. */
.g-note.is-info { background: rgba(10,132,255,0.07); border-color: rgba(10,132,255,0.3); }

/* Figures: step art used outside a step card. */
.g-figure { margin: 0; border-radius: 16px; overflow: hidden; background: #0b0d12; border: 1px solid var(--border); padding: 16px; display: flex; justify-content: center; }
.g-figure img, .g-step-art img { width: 100%; max-width: 340px; height: auto; display: block; }
.g-figure figcaption { font-size: 13px; color: var(--text-tertiary); }

/* Code sample (developer reference pages). */
pre.g-code {
    margin: 0 0 12px; padding: 14px 16px; border-radius: 12px; background: #0b0d12; border: 1px solid var(--border);
    font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-secondary); overflow-x: auto;
}
.g-section p.g-text { margin: 0 0 12px; font-size: 16px; line-height: 1.65; color: var(--text-secondary); }
.g-section p.g-text a { color: #5aa9ff; }
.g-section ul.g-list { margin: 0 0 12px; padding-left: 20px; color: var(--text-secondary); font-size: 16px; line-height: 1.6; }
.g-section ul.g-list li { margin-bottom: 6px; }
.g-section ul.g-list strong, .g-section p.g-text strong { color: var(--text-primary); }

/* Links in running text inside sections (answer box, cards, tables, lists). */
.g-section :is(p, td) a:not([class]), .g-section ul.g-list a, .g-hero p a { color: #5aa9ff; }
.g-more-body .g-url-key { padding-left: 0; }
.g-section :is(li, td, p.g-text) code {
    background: rgba(255,255,255,0.07); padding: 1px 6px; border-radius: 5px; font-size: 0.9em; color: var(--text-primary);
}
/* Breathing room for a block placed right after a settings path or a note. */
.g-section > .g-path + *, .g-section > .g-note + :not(.g-note) { margin-top: 16px; }
