/* ==========================================================================
   Pax Family — "Simple page" template (long-form / legal)
   Implementation of marketing_mocks/page-simple.html from Claude Design.
   Loads after tokens.css. Designed to be reused for privacy, terms, and
   any future long-form one-off pages. Everything scoped under .page.simple.

   Layout: header strip with crumb + h1 + last-updated meta, then a 2-col
   body — sticky TOC on the left, 720px reading column on the right.
   At ≤900px the TOC collapses and the reading column goes full-width.
   ========================================================================== */

/* Page-frame override — warm cream */
.page.simple { background: #FBF5EA; min-height: 100vh; }
.simple .topnav { padding-top: 28px; }

/* ===== HEADER STRIP ===== */
.s-head {
    padding: 48px var(--page-gutter) 36px;
    border-bottom: 1px dashed #E9B949;
}
.s-head .crumb {
    font-family: var(--font-display); font-style: italic;
    font-size: 13px; color: #8A6A1F;
    margin-bottom: 14px;
}
.s-head .crumb a {
    color: #8A6A1F; text-decoration: underline;
    text-decoration-color: #E9B949;
}
.s-head h1 {
    font-family: var(--font-display); font-size: 56px; font-weight: 800;
    letter-spacing: -0.035em; line-height: 1; color: #1b2a3a;
    margin: 0;
}
.s-head .meta {
    margin-top: 14px;
    font-family: var(--font-display); font-style: italic;
    font-size: 14px; color: #5a4a1f;
}
.s-head .meta strong { font-weight: 800; color: #1b2a3a; font-style: normal; }

/* ===== BODY (white background) ===== */
.s-body {
    padding: 56px var(--page-gutter) 80px;
    background: #fff;
}
.s-body .grid {
    display: grid; grid-template-columns: 220px minmax(0, 720px);
    gap: 80px;
    justify-content: center;
    max-width: 1180px; margin: 0 auto;
}
.s-body.narrow .grid {
    grid-template-columns: minmax(0, 720px);
}

/* ===== STICKY TOC ===== */
.s-toc {
    position: sticky; top: 24px; align-self: flex-start;
    font-family: var(--font-display);
}
.s-toc h4 {
    font-size: 11px; font-weight: 800; color: #8A6A1F;
    text-transform: uppercase; letter-spacing: .12em;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #E9B949;
}
.s-toc ol {
    list-style: none; padding: 0; margin: 0;
    counter-reset: tocn;
}
.s-toc li {
    counter-increment: tocn;
    margin-bottom: 2px;
}
.s-toc a {
    display: flex; gap: 10px;
    padding: 8px 12px; border-radius: 8px;
    text-decoration: none; color: #1b2a3a;
    font-size: 13px; font-weight: 600; line-height: 1.4;
    transition: background 0.15s;
}
.s-toc a::before {
    content: counter(tocn, decimal-leading-zero);
    font-size: 10px; font-weight: 800; color: #C9A227;
    letter-spacing: .05em; flex-shrink: 0;
}
.s-toc a:hover { background: #FBF5EA; text-decoration: none; }
.s-toc a.active { background: #FDF4DC; color: #095FA1; }

/* ===== READING COLUMN ===== */
.s-content {
    font-size: 16px; line-height: 1.7; color: #2a3848;
    max-width: 720px;
}
.s-content h2 {
    font-family: var(--font-display); font-size: 28px; font-weight: 800;
    letter-spacing: -0.02em; color: #1b2a3a;
    margin: 56px 0 14px; line-height: 1.2;
    scroll-margin-top: 24px;
}
.s-content h2:first-child { margin-top: 0; }
.s-content h2 em { font-style: italic; color: #66A367; }
.s-content h3 {
    font-family: var(--font-display); font-size: 19px; font-weight: 800;
    letter-spacing: -0.01em; color: #1b2a3a;
    margin: 32px 0 8px;
}
.s-content p { margin: 0 0 16px; }
.s-content p:first-of-type { font-size: 18px; color: #1b2a3a; }
.s-content a {
    color: #095FA1; text-decoration: underline;
    text-decoration-color: rgba(9,95,161,.3);
    text-underline-offset: 3px;
}
.s-content a:hover { text-decoration-color: #095FA1; }
.s-content strong { color: #1b2a3a; font-weight: 700; }
.s-content ul { margin: 0 0 16px; padding-left: 22px; }
.s-content ul li { margin-bottom: 6px; }
.s-content ul li::marker { color: #C9A227; font-weight: 800; }
.s-content blockquote {
    margin: 24px 0; padding: 16px 22px;
    background: #FBF5EA;
    border-left: 3px solid #C9A227;
    border-radius: 0 8px 8px 0;
    font-style: italic; color: #5a4a1f;
}
.s-content code {
    background: #FDF4DC; padding: 2px 6px; border-radius: 4px;
    font-size: .92em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #5a4a1f;
}
.s-content hr {
    border: 0; border-top: 1px dashed #E9B949;
    margin: 36px 0;
}
.s-content .callout {
    background: #EEF6EC; border: 1px solid #d5e8d2;
    border-radius: 12px;
    padding: 18px 22px; margin: 24px 0;
}
.s-content .callout strong { font-family: var(--font-display); color: #3a6f3b; }
.s-content .callout p { margin: 0; color: #3a6f3b; font-size: 15px; }
.s-content .callout p:first-of-type { font-size: 15px; color: #3a6f3b; }
.s-content .callout p + p { margin-top: 8px; }

/* Amber callout variant (for [TODO] placeholders or attention notes) */
.s-content .callout.amber {
    background: #FDF4DC; border-color: #F4E4BC;
}
.s-content .callout.amber strong { color: #8A6A1F; }
.s-content .callout.amber p { color: #5a4a1f; }
.s-content .callout.amber p:first-of-type { color: #5a4a1f; }

/* ===== FOOTER CARD ("Still have questions?") ===== */
.s-foot {
    margin: 48px 0 0;
    background: #FBF5EA; border-radius: 16px;
    padding: 28px 32px;
    display: flex; gap: 20px;
    align-items: center; justify-content: space-between;
    flex-wrap: wrap;
}
.s-foot .ft {
    font-family: var(--font-display); font-size: 18px; font-weight: 800;
    color: #1b2a3a;
}
.s-foot .ft em { font-style: italic; color: #095FA1; }
.s-foot .fp { font-size: 14px; color: #4a5568; margin-top: 4px; }
.s-foot .links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.s-foot .links a {
    font-family: var(--font-display); font-weight: 700;
    font-size: 14px; color: #095FA1; text-decoration: none;
}
.s-foot .links a:hover { text-decoration: underline; }
.s-foot .links a.btn-3d { color: #fff; }
.s-foot .links a.btn-3d:hover { text-decoration: none; }

/* Footer override — warm cream */
.simple-footer { background: #FBF5EA; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .s-head { padding: 40px 32px 30px; }
    .s-head h1 { font-size: 44px; }
    .s-body { padding: 40px 32px 64px; }
    .s-body .grid { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 900px) {
    /* Collapse to single column — drop the sticky TOC */
    .s-body .grid { grid-template-columns: 1fr; gap: 0; }
    .s-toc {
        position: static;
        margin-bottom: 32px;
        padding: 16px 18px;
        background: #FBF5EA; border-radius: 12px;
    }
    .s-toc h4 { border-bottom: 0; padding-bottom: 0; margin-bottom: 8px; }
    .s-toc ol {
        display: grid; grid-template-columns: 1fr 1fr;
        gap: 0;
    }
    .s-toc a { padding: 6px 10px; font-size: 12px; }
}

@media (max-width: 700px) {
    .s-head { padding: 32px 20px 24px; }
    .s-head h1 { font-size: 34px; }
    .s-body { padding: 32px 20px 56px; }
    .s-content { font-size: 15px; }
    .s-content h2 { font-size: 24px; margin: 40px 0 12px; }
    .s-content h3 { font-size: 17px; }
    .s-content p:first-of-type { font-size: 16px; }
    .s-toc ol { grid-template-columns: 1fr; }
    .s-foot { padding: 22px 24px; }
    .s-foot .links { width: 100%; }
}
