/* Broadband help guides (internet-speed-test folder). Scoped to .guide; light theme to match the site layout. */
.guide {
    --g-text: #1d2330;
    --g-muted: #5b6475;
    --g-border: #e1e5ec;
    --g-soft: #f3f5f9;
    --g-accent: #2563eb;
    --g-good: #15803d;
    --g-warn: #b45309;
    --g-bad: #b91c1c;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px 48px;
    color: var(--g-text);
    font: 16px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.guide h1 { font: 700 clamp(28px, 4.5vw, 38px)/1.15 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: -.02em; margin: 6px 0 14px; color: var(--g-text); }
.guide h2 { font: 700 24px/1.25 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; margin: 40px 0 10px; color: var(--g-text); letter-spacing: -.01em; scroll-margin-top: 80px; }
.guide h3 { font: 650 19px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; margin: 26px 0 6px; color: var(--g-text); }
.guide p, .guide li { color: var(--g-text); }
.guide a { color: var(--g-accent); }
.guide ul, .guide ol { padding-left: 22px; }
.guide li { margin: 4px 0; }
.guide-eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--g-muted) !important; margin: 0; }
.guide-lead { font-size: 18px; color: var(--g-muted) !important; margin-top: 0; }

.guide-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--g-soft); border: 1px solid var(--g-border); border-radius: 12px; padding: 14px 18px; margin: 22px 0; }
.guide-cta p { margin: 0; flex: 1 1 260px; }
.guide-btn { display: inline-block; background: var(--g-accent); color: #fff !important; text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 10px; white-space: nowrap; }

.guide-toc { background: var(--g-soft); border-radius: 12px; padding: 14px 18px; margin: 22px 0; }
.guide-toc strong { display: block; margin-bottom: 4px; }
.guide-toc ol { margin: 0; }

.guide-note { border-left: 4px solid var(--g-accent); background: var(--g-soft); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 18px 0; }
.guide-note.warn { border-left-color: var(--g-warn); }
.guide-note.good { border-left-color: var(--g-good); }
.guide-note p { margin: 0; }
.guide-note p + p { margin-top: 8px; }

.guide-table { width: 100%; overflow-x: auto; margin: 16px 0; }
.guide-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--g-border); }
.guide-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--g-muted); }

.guide-steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.guide-steps > li { counter-increment: step; position: relative; padding-left: 44px; margin: 18px 0; }
.guide-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--g-accent); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.guide-steps > li > strong:first-child { display: block; font-size: 17px; }

.guide-template { background: var(--g-soft); border: 1px dashed var(--g-border); border-radius: 10px; padding: 14px 18px; font-size: 15px; white-space: pre-line; }

.guide-faq details { border-top: 1px solid var(--g-border); padding: 12px 0; }
.guide-faq details:last-of-type { border-bottom: 1px solid var(--g-border); }
.guide-faq summary { cursor: pointer; font-weight: 600; }
.guide-faq details p { margin: 8px 0 0; color: var(--g-muted); }

.guide-related { margin-top: 40px; }
.guide-related ul { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.guide-related li { margin: 0; }
.guide-related a { display: block; height: 100%; background: var(--g-soft); border: 1px solid var(--g-border); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--g-text); font-weight: 600; }
.guide-related a span { display: block; font-weight: 400; font-size: 14px; color: var(--g-muted); margin-top: 2px; }
.guide-related a:hover { border-color: var(--g-accent); }

/* Small calculators inside guides (e.g. Mbps vs MB/s) */
.guide-calc { background: var(--g-soft); border: 1px solid var(--g-border); border-radius: 12px; padding: 16px 18px; margin: 22px 0; }
.guide .guide-calc h2 { font-size: 18px; margin: 0 0 10px; }
.guide-calc-row { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.guide-calc-row label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--g-muted); }
.guide-calc-pair { display: flex; }
.guide-calc-pair input, .guide-calc-pair select { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--g-border); background: #fff; color: var(--g-text); }
.guide-calc-pair input { width: 120px; border-radius: 8px 0 0 8px; min-width: 0; }
.guide-calc-pair select { border-left: 0; border-radius: 0 8px 8px 0; }
.guide-calc-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.guide-calc-out div { background: #fff; border: 1px solid var(--g-border); border-radius: 10px; padding: 8px 10px; }
.guide-calc-out b { display: block; font-size: 20px; line-height: 1.25; color: var(--g-accent); font-variant-numeric: tabular-nums; }
.guide-calc-out span { font-size: 13px; color: var(--g-muted); }
.guide-calc-hint { font-size: 13px; color: var(--g-muted) !important; margin: 10px 0 0; }
@media (max-width: 560px) { .guide-calc-out { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
