/* Shared chrome for every page under /tips/ — hubs and articles alike.
   Pair this with EITHER tips-hub.css (the /tips/ index and the seven
   category hubs) OR tips-article.css (the ten guide articles). Every tips
   page loads exactly two stylesheets and carries no inline <style> block,
   so a fix lands once instead of eighteen times. */

/* ── Overflow hardening ──────────────────────────────────────────────────
   style.css makes <body> a flex column. Flex items default to
   `min-width: auto`, so a body child CANNOT shrink below its own
   min-content width — it pushes the document wider instead, and Chrome's
   mobile viewport then expands to match, rendering the whole page zoomed
   out (0.69x on a 320px phone). `min-width: 0` on the body children is the
   rule that stops that; the rest is belt and braces. */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; margin: 0; }
*, *::before, *::after { box-sizing: border-box; }
body > * { min-width: 0; max-width: 100%; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Breadcrumb bar ── */
.breadcrumb-bar {
    padding: 2px 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.2);
}
.breadcrumb-inner {
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.88rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumb-inner a { color: var(--primary); text-decoration: none; }
.breadcrumb-inner a:hover { text-decoration: underline; }
.bc-sep { color: rgba(255,255,255,0.25); }

/* ── Buttons ── */
.btn-primary-sm {
    background: linear-gradient(135deg, #ff7a1a, var(--primary));
    color: #fff !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.6rem;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 12px rgba(255,107,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary-sm:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,107,0,0.35); text-decoration: none; }
.btn-secondary-sm {
    background: rgba(255,255,255,0.08);
    color: var(--text-main) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.6rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}
.btn-secondary-sm:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); text-decoration: none; }

.btn-primary-cta {
    background: linear-gradient(135deg, #ff7a1a, var(--primary)); color: #fff !important;
    font-weight: 600; font-size: 0.95rem; padding: 0.75rem 1.8rem; border-radius: 10px;
    text-decoration: none; display: inline-block; transition: transform 0.2s;
}
.btn-primary-cta:hover { transform: translateY(-2px); }
.btn-secondary-cta {
    background: rgba(255,255,255,0.08); color: var(--text-main) !important;
    font-weight: 600; font-size: 0.95rem; padding: 0.75rem 1.8rem; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15); text-decoration: none; display: inline-block; transition: all 0.2s;
}
.btn-secondary-cta:hover { background: rgba(255,255,255,0.12); }

/* Car check packs pill — same colours as the packs-page Select button */
.cta-btns .btn-secondary-sm,
.cta-bottom-btns .btn-secondary-sm,
.bottom-cta .btn-secondary-cta,
.hero-cta .btn-secondary-cta {
    background: transparent; border: 1px solid #FF700A; color: #FF700A !important; font-weight: 700;
}
.cta-btns .btn-secondary-sm:hover,
.cta-bottom-btns .btn-secondary-sm:hover,
.bottom-cta .btn-secondary-cta:hover,
.hero-cta .btn-secondary-cta:hover {
    background: #FF700A; color: #fff !important;
}

/* ── Reg-plate CTA form — shared by every CTA banner in the tips section ──
   `.cta-reg-plate input` MUST keep `width: 0`. An <input> with no `size`
   attribute reports a default 20-character intrinsic width (~156px in
   Courier New at 1rem with 2px letter-spacing). That floors the plate at
   250px, the form at 363px, and — once the CTA's own padding is added —
   the whole page at 461px, which is what forced the mobile zoom-out.
   `flex: 1` grows the input back to fill, so the visible size is unchanged.
   `min-width: 0` on the form and plate alone does NOT fix it; measured. */
.cta-reg-form { display: flex; align-items: stretch; gap: 1px; height: 2.85rem; min-width: 0; }
.cta-reg-plate {
    display: flex; align-items: stretch; background: #FFD700;
    border-radius: 10px 0 0 10px; overflow: hidden; width: 11.5rem; min-width: 0;
}
.cta-reg-band {
    background: #003399; color: #fff; font-weight: 800; font-size: 0.7rem;
    padding: 0 8px; display: flex; align-items: center; justify-content: center; letter-spacing: 1px;
}
.cta-reg-plate input {
    flex: 1; width: 0; min-width: 0;
    border: none; background: transparent;
    font-size: 1rem; font-weight: 900; text-transform: uppercase; text-align: center;
    color: #000; padding: 0 0.4rem; outline: none;
    font-family: 'Courier New', Courier, monospace; letter-spacing: 2px;
}
.cta-reg-plate input::placeholder { color: rgba(0,0,0,0.3); }
.cta-reg-plate input:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
.cta-reg-btn {
    border: none; cursor: pointer; font-family: inherit; border-radius: 0 10px 10px 0;
    display: inline-flex; align-items: center; padding-top: 0; padding-bottom: 0;
}

@media (max-width: 600px) {
    .cta-reg-form { width: 100%; }
    .cta-reg-plate { flex: 1; width: auto; }
}

/* Below ~380px the button's 1.6rem side padding squeezes the reg field to
   about 80px, too narrow to read an 8-character plate back. Take the space
   out of the button and keep both on ONE row.

   Do NOT stack these with `flex-direction: column`. The ≤600px rule above
   gives the plate `flex: 1`, i.e. `flex-basis: 0%`, which in a column
   layout applies to the HEIGHT — the plate collapses to an 18px yellow
   stripe and any `height` set here loses to it. That is what a column
   layout shipped as, and it did not look like a number plate. */
@media (max-width: 380px) {
    .cta-reg-btn { padding: 0 0.85rem; font-size: 0.85rem; white-space: nowrap; }
}

/* ── FAQ accordion ──
   Item chrome is identical on hubs and articles; the surrounding
   `.faq-section` differs, so it lives in each page-type stylesheet. */
.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1.25rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}
.faq-question:hover { background: rgba(255, 255, 255, 0.04); }
.faq-question .faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-answer-inner {
    padding: 0 1.25rem 1rem;
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.7;
}
.faq-answer-inner a { color: var(--primary); }
.faq-item.open .faq-answer { max-height: 1400px; }

/* ── Legal disclaimer ── */
.legal-note {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-style: italic;
    margin-top: 1.5rem;
    opacity: 0.7;
    line-height: 1.7;
}
.legal-note a { color: var(--primary); }
