/*
 * Michael Miller | 2026-07-20
 * WHAT: Provide a reusable responsive layout for Independent Tinting Network
 * consumer education and technical guide pages.
 * WHY: Every guide needs consistent branding, readable long-form typography,
 * diagram support and strong paths back to independent professionals.
 */
:root {
    --guide-ink: #172027;
    --guide-blue: #1769aa;
    --guide-yellow: #ffd719;
    --guide-green: #657c20;
    --guide-muted: #667380;
    --guide-line: #dbe3e8;
    --guide-page: #f3f6f8;
    --guide-white: #ffffff;
    --guide-soft-blue: #eef6fc;
    --guide-soft-yellow: #fff9d9;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--guide-page);
    color: var(--guide-ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

img { max-width: 100%; height: auto; }
a { color: var(--guide-blue); }

.guide-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.guide-site-header {
    border-bottom: 4px solid var(--guide-yellow);
    background: var(--guide-ink);
}

.guide-site-header__inner {
    display: flex;
    min-height: 92px;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.guide-brand { display: inline-flex; width: 260px; }
.guide-brand img { display: block; }

.guide-nav { display: flex; align-items: center; gap: 24px; }
.guide-nav a { color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.guide-nav .guide-nav__primary {
    padding: 10px 15px;
    border-radius: 5px;
    background: var(--guide-yellow);
    color: var(--guide-ink);
}

.guide-hero { background: var(--guide-white); }
.guide-hero__inner { max-width: 940px; padding: 54px 0 48px; }
.guide-breadcrumbs { margin-bottom: 22px; color: var(--guide-muted); font-size: 13px; }
.guide-breadcrumbs a { text-decoration: none; }
.guide-eyebrow {
    color: var(--guide-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.guide-hero h1 {
    max-width: 900px;
    margin: 8px 0 18px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.04;
    letter-spacing: -.025em;
}

.guide-hero__summary {
    max-width: 820px;
    margin: 0;
    color: #44515d;
    font-size: clamp(18px, 2.5vw, 22px);
    line-height: 1.55;
}

.guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 44px;
    align-items: start;
    padding: 42px 0 70px;
}

.guide-article {
    min-width: 0;
    padding: 38px 44px;
    border: 1px solid var(--guide-line);
    border-radius: 12px;
    background: var(--guide-white);
}

.guide-article h2 {
    margin: 48px 0 14px;
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.18;
}

.guide-article h2:first-child { margin-top: 0; }
.guide-article h3 { margin: 32px 0 10px; font-size: 22px; line-height: 1.3; }
.guide-article p { margin: 0 0 18px; }
.guide-article ul, .guide-article ol { margin: 0 0 22px; padding-left: 24px; }
.guide-article li { margin-bottom: 8px; }
.guide-article strong { color: #11191f; }

.guide-note,
.guide-warning,
.guide-field-note {
    margin: 26px 0;
    padding: 20px 22px;
    border-radius: 8px;
}

.guide-note { border-left: 5px solid var(--guide-blue); background: var(--guide-soft-blue); }
.guide-warning { border-left: 5px solid #d8ae00; background: var(--guide-soft-yellow); }
.guide-field-note { border-left: 5px solid var(--guide-green); background: #f2f6e8; }
.guide-note p:last-child,
.guide-warning p:last-child,
.guide-field-note p:last-child { margin-bottom: 0; }

.guide-formula {
    margin: 22px 0;
    padding: 17px 20px;
    border: 1px solid var(--guide-line);
    border-radius: 7px;
    background: #f7f9fa;
    font-family: Consolas, Monaco, monospace;
    font-weight: 700;
    text-align: center;
}

.guide-table-wrap { margin: 24px 0; overflow-x: auto; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.guide-table th,
.guide-table td { padding: 13px 14px; border: 1px solid var(--guide-line); text-align: left; vertical-align: top; }
.guide-table th { background: var(--guide-ink); color: #fff; }
.guide-table tr:nth-child(even) td { background: #f7f9fa; }

.guide-image {
    margin: 30px 0;
    overflow: hidden;
    border: 1px solid var(--guide-line);
    border-radius: 10px;
    background: #f5f7f8;
}

/* Michael Miller | 2026-07-20
 * WHAT: Give guide hero photography its own full-width spacing treatment.
 * WHY: The photographic opener should bridge the headline and technical copy
 * cleanly without inheriting the narrower article-card margins.
 */
.guide-image--hero { margin: 30px 0 0; }
.guide-image--hero img { aspect-ratio: 16 / 9; object-fit: cover; }

.guide-image img { display: block; width: 100%; }
.guide-image figcaption { padding: 12px 16px; color: var(--guide-muted); font-size: 13px; }

.guide-toc,
.guide-side-card {
    padding: 20px;
    border: 1px solid var(--guide-line);
    border-radius: 10px;
    background: var(--guide-white);
}

.guide-toc { position: sticky; top: 20px; }
.guide-toc strong { display: block; margin-bottom: 10px; }
.guide-toc ol { margin: 0; padding-left: 21px; }
.guide-toc li { margin: 7px 0; color: var(--guide-muted); font-size: 13px; line-height: 1.4; }
.guide-toc a { text-decoration: none; }
.guide-side-card { margin-top: 18px; }
.guide-side-card h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; }
.guide-side-card p { margin: 0 0 14px; color: var(--guide-muted); font-size: 14px; }

.guide-button {
    display: inline-block;
    padding: 12px 17px;
    border-radius: 6px;
    background: var(--guide-yellow);
    color: var(--guide-ink);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.guide-faq { margin-top: 44px; }
.guide-faq details { border-top: 1px solid var(--guide-line); }
.guide-faq details:last-child { border-bottom: 1px solid var(--guide-line); }
.guide-faq summary { padding: 17px 3px; cursor: pointer; font-weight: 700; }
.guide-faq details p { padding: 0 3px 16px; }

.guide-sources {
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid var(--guide-line);
    color: var(--guide-muted);
    font-size: 13px;
}

.guide-cta {
    padding: 44px 0;
    background: var(--guide-ink);
    color: #fff;
}

.guide-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.guide-cta h2 { margin: 0 0 8px; font-size: 30px; }
.guide-cta p { max-width: 720px; margin: 0; color: #d4dce1; }

.guide-footer { border-top: 1px solid var(--guide-line); background: var(--guide-white); }
.guide-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    color: var(--guide-muted);
    font-size: 12px;
}
.guide-powered { display: flex; align-items: center; gap: 12px; }
.guide-powered img { display: block; width: 110px; }

@media (max-width: 900px) {
    .guide-layout { grid-template-columns: 1fr; }
    .guide-sidebar { order: -1; }
    .guide-toc { position: static; }
    .guide-toc ol { columns: 2; column-gap: 32px; }
}

@media (max-width: 640px) {
    .guide-shell { width: min(100% - 20px, 1160px); }
    .guide-site-header__inner { min-height: 76px; }
    .guide-brand { width: 205px; }
    .guide-nav > a:not(.guide-nav__primary) { display: none; }
    .guide-hero__inner { padding: 34px 0 32px; }
    .guide-layout { gap: 20px; padding: 24px 0 44px; }
    .guide-article { padding: 25px 18px; }
    .guide-article h2 { margin-top: 38px; }
    .guide-toc ol { columns: 1; }
    .guide-cta__inner { align-items: flex-start; flex-direction: column; }
    .guide-footer__inner { align-items: flex-start; flex-direction: column; }
}
