/* Guides layout (components/guides-layout). Extracted from the inline <style> block,
   November 2026. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --ink:     #1c2128;
    --ink-2:   #374151;
    --muted:   #6b7280;
    --subtle:  #9ca3af;
    --border:  #e5e7eb;
    --amber:   #d97706;
    --green:   #16a34a;
    --white:   #ffffff;
    --surface: #f9fafb;
    --surface2:#f3f4f6;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
}
.nav-inner {
    max-width: 860px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 56px;
}
.logo { font-size: 1.1rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.logo span { color: var(--amber); }
.nav-cta {
    background: var(--amber); color: var(--white);
    padding: 0.4rem 1rem; border-radius: 6px;
    font-size: 0.875rem; font-weight: 600;
    text-decoration: none;
}
.guide-wrap { max-width: 860px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.guide-breadcrumb {
    font-size: 0.8rem; color: var(--muted);
    margin-bottom: 2rem;
}
.guide-breadcrumb a { color: var(--amber); text-decoration: none; }
.guide-breadcrumb a:hover { text-decoration: underline; }
h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700; line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--ink);
}
.guide-meta {
    font-size: 0.85rem; color: var(--muted);
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
h2 {
    font-size: 1.35rem; font-weight: 700;
    margin: 2.5rem 0 0.75rem;
    color: var(--ink);
}
h3 {
    font-size: 1.1rem; font-weight: 600;
    margin: 1.75rem 0 0.5rem;
    color: var(--ink);
}
p { margin-bottom: 1rem; color: var(--ink-2); }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; color: var(--ink-2); }
strong { color: var(--ink); }
.callout {
    background: #fffbeb;
    border-left: 3px solid var(--amber);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}
.callout p { margin: 0; color: var(--ink-2); }
.checklist { list-style: none; padding: 0; }
.checklist li {
    padding: 0.6rem 0 0.6rem 2rem;
    position: relative;
    border-bottom: 1px solid var(--border);
    color: var(--ink-2);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
    content: '✓';
    position: absolute; left: 0;
    color: var(--green); font-weight: 700;
}
.cta-box {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}
.cta-box h2 { margin-top: 0; font-size: 1.35rem; }
.cta-box p { color: var(--muted); margin-bottom: 1.5rem; }
.cta-btn {
    display: inline-block;
    background: var(--amber); color: var(--white);
    padding: 0.75rem 2rem; border-radius: 8px;
    font-weight: 700; text-decoration: none;
    font-size: 0.95rem;
}
.related-guides {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.related-guides h2 { font-size: 1rem; color: var(--muted); margin-top: 0; text-transform: uppercase; letter-spacing: 0.05em; }
.related-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.related-links a {
    color: var(--amber); text-decoration: none;
    font-size: 0.875rem; border: 1px solid rgba(217,119,6,0.3);
    padding: 0.4rem 0.875rem; border-radius: 6px;
}
.related-links a:hover { background: rgba(217,119,6,0.06); }
footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
@media (max-width: 640px) {
    .guide-wrap { padding: 2rem 1.25rem 4rem; }
}

/* Sourced claims in guides: footnote markers (components/guides/fn) and the Sources list
   (components/landing/sources). Added November 2026 with the guide fact-check. */
sup.cite { font-size: 0.7em; line-height: 0; margin-left: 0.1em; }
sup.cite a { color: var(--amber); text-decoration: none; font-weight: 600; }
.sources-section { border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem; }
.sources-section h2 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 0.75rem; }
.sources-section ol { padding-left: 1.25rem; font-size: 0.8125rem; color: var(--muted); line-height: 1.6; }
.sources-section li { margin-bottom: 0.35rem; scroll-margin-top: 80px; }
.sources-section a { color: var(--amber); }
.guide-checked { font-size: 0.8125rem; color: var(--muted); margin-top: 0.75rem; }


/* Simple data table in guide copy (CQC training matrix example). */
.guide-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1rem 0; }
.guide-table th, .guide-table td { padding: 0.6rem 0.8rem; text-align: left; border: 1px solid var(--border); }
.guide-table thead tr, .guide-table tbody tr:nth-child(even) { background: var(--surface2); }
.guide-table td.rag-g { background: rgba(22, 163, 74, 0.14); }
.guide-table td.rag-a { background: rgba(217, 119, 6, 0.18); }
.guide-table td.rag-r { background: rgba(220, 38, 38, 0.16); }

/* Scorecard call to action under the breadcrumb (CHANGELOG [106]). */
.scorecard-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 0.9rem 1.1rem; margin: 0 0 1.75rem; }
.scorecard-cta p { margin: 0; font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }
.scorecard-cta strong { color: var(--ink); }
.scorecard-cta a { flex-shrink: 0; background: var(--amber); color: var(--white); font-weight: 700; font-size: 0.875rem; padding: 0.55rem 1rem; border-radius: 6px; text-decoration: none; }
.scorecard-cta a:hover { background: #b45309; }
