/* ═══════════════════════════════════════════════════════════════════════════
   Critical Path Partners: shared page chrome (2026-10-01)
   ───────────────────────────────────────────────────────────────────────────
   One footer on every page, and the site menu on the pages whose own design
   does not carry it (the Ontario notes, the validation page, the thank-you
   page). Everything here is scoped to footer.cppf and nav.cppc, with its own
   colour tokens, so it renders the same on a page that links the brand sheet
   and on a document-style page that does not. cpp-nav.css, linked after this
   sheet, supplies the Free Tools menu and the collapsed (burger) menu.
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: local('Inter'), local('Inter-Regular'),
         url('/fonts/Inter-Variable.woff2') format('woff2');
}

nav.cppc, footer.cppf, .cppc-strip {
    --navy: #0F2540;
    --navy-mid: #1a3a52;
    --red: #C8392F;
    --white: #FFFFFF;
    --slate-50: #f1f5f9;
    --slate-100: #e2e8f0;
    --slate-200: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-700: #334155;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
/* Document-style pages style bare p, a and footer elements; reset what they
   can leak in, then set it again below where the chrome wants it. */
nav.cppc *, footer.cppf * {
    box-sizing: border-box;
    letter-spacing: normal;
    text-transform: none;
    font-family: inherit;
}

/* ═══ MENU (pages without the brand sheet) ═══ */
.cppc-strip { height: 4px; background: var(--red); }
nav.cppc {
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid var(--slate-100);
    padding: 18px 0;
    position: sticky; top: 0; z-index: 100;
    margin: 0;
}
nav.cppc .container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1340px; margin: 0 auto; padding: 0 32px;
    position: relative;
}
nav.cppc .nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
nav.cppc .nav-brand-mark {
    width: 36px; height: 36px; background: var(--navy); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 13px; letter-spacing: 0.5px;
    border-left: 3px solid var(--red);
}
nav.cppc .nav-brand-text { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; color: var(--navy); }
nav.cppc .nav-links a {
    color: var(--slate-700); text-decoration: none;
    font-size: 14px; font-weight: 500; transition: color 0.15s;
}
nav.cppc .nav-links a:hover, nav.cppc .nav-links a.active { color: var(--red); }
nav.cppc .nav-cta {
    background: var(--navy); color: var(--white) !important;
    padding: 10px 20px; border-radius: 4px;
    font-weight: 600; font-size: 13px; border-left: 3px solid var(--red);
}
nav.cppc .nav-cta:hover { background: var(--navy-mid); }
nav.cppc .nav-burger {
    display: none;
    background: transparent; border: 1px solid var(--slate-200);
    width: 44px; height: 44px; border-radius: 4px; cursor: pointer; padding: 0;
    align-items: center; justify-content: center; color: var(--navy);
}
@media (max-width: 900px) {
    nav.cppc .container { padding: 0 20px; }
}

/* ═══ FOOTER (every page) ═══ */
footer.cppf {
    background: #0a1a2e;
    color: var(--slate-400);
    padding: 48px 0 32px;
    border-top: 3px solid var(--red);
    margin: 0;
    text-align: left;
}
footer.cppf .cppf-in { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
footer.cppf .cppf-row {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 32px;
}
footer.cppf .cppf-brand {
    font-size: 18px; font-weight: 800; color: var(--white);
    margin: 0 0 8px; letter-spacing: -0.01em;
}
footer.cppf .cppf-tag { font-size: 13px; color: var(--slate-400); line-height: 1.55; max-width: 380px; margin: 0; }
footer.cppf .cppf-col h2 {
    font-size: 12px; font-weight: 700; color: var(--white);
    text-transform: uppercase; letter-spacing: 2px; margin: 0 0 16px;
    padding: 0; border: 0; line-height: 1.4; font-style: normal;
}
footer.cppf .cppf-col a {
    display: block; color: var(--slate-400); text-decoration: none;
    font-size: 14px; padding: 5px 0; transition: color 0.15s; border: 0;
}
footer.cppf a:hover { color: var(--white); }
footer.cppf .cppf-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
    font-size: 12px; color: var(--slate-400);
}
footer.cppf .cppf-bottom a { color: var(--slate-400); text-decoration: none; border: 0; }
@media (max-width: 900px) {
    footer.cppf .cppf-in { padding: 0 24px; }
    footer.cppf .cppf-row { grid-template-columns: 1fr 1fr; gap: 28px; }
    footer.cppf .cppf-row > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    footer.cppf .cppf-row { grid-template-columns: 1fr; }
}

/* Documents print without the site chrome. */
@media print {
    nav.cppc, .cppc-strip, footer.cppf { display: none !important; }
}
