/* ====================================================================
   Bleedpoint Guides: shared article and landing page styles.
   Loaded by every page under /guides/.

   Designed to inherit the global site styles from styles.min.css
   (nav, footer, fonts, buttons, brand colors) and only add the
   long-form-article specific styling on top.
   ==================================================================== */

/* ---------- Layout shell ------------------------------------------- */

.guide-layout {
    max-width: 880px;
    margin: 0 auto;
    padding: 56px 32px 96px;
}

.guide-eyebrow {
    display: inline-block;
    font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #0f6848;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.guide-title {
    font-family: "IBM Plex Serif", "Charter", "Georgia", serif;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    margin: 0 0 24px;
}

.guide-deck {
    font-family: "IBM Plex Serif", "Charter", "Georgia", serif;
    font-size: 19px;
    line-height: 1.6;
    color: #3e3a34;
    margin: 0 0 32px;
}

.guide-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-top: 1px solid #e0dccf;
    border-bottom: 1px solid #e0dccf;
    margin: 0 0 48px;
    font-size: 13px;
    color: #7a7468;
}

.guide-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-meta-divider {
    color: #c8c0b0;
}

/* ---------- Article body ------------------------------------------ */

.guide-body {
    font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16.5px;
    line-height: 1.75;
    color: #1f1d18;
}

.guide-body p {
    margin: 0 0 22px;
}

.guide-body p:first-of-type {
    font-size: 18px;
    line-height: 1.7;
    color: #1a1a1a;
}

.guide-body h2 {
    font-family: "IBM Plex Serif", "Charter", "Georgia", serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: #1a1a1a;
    margin: 56px 0 16px;
    scroll-margin-top: 32px;
}

.guide-body h3 {
    font-family: "IBM Plex Serif", "Charter", "Georgia", serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #1a1a1a;
    margin: 36px 0 12px;
    scroll-margin-top: 32px;
}

.guide-body strong {
    color: #0f0e0a;
    font-weight: 600;
}

.guide-body a {
    color: #0f6848;
    text-decoration: underline;
    text-decoration-color: #b8d4c8;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s ease;
}

.guide-body a:hover {
    text-decoration-color: #0f6848;
}

.guide-body ul,
.guide-body ol {
    margin: 0 0 24px;
    padding-left: 28px;
}

.guide-body li {
    margin-bottom: 10px;
}

.guide-body code {
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: #f3f0ea;
    color: #3e3a34;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #e0dccf;
}

/* ---------- Pull-quote / cost-shock callout ---------------------- */

.guide-callout {
    background: #f5fbf8;
    border-left: 4px solid #0f6848;
    border-radius: 0 8px 8px 0;
    padding: 22px 28px;
    margin: 32px 0;
    font-family: "IBM Plex Serif", "Charter", "Georgia", serif;
    font-size: 17px;
    line-height: 1.6;
    color: #1a1a1a;
}

.guide-callout strong {
    color: #094835;
}

/* ---------- Citations -------------------------------------------- */

.guide-body sup.cite {
    font-size: 0.7em;
    font-weight: 600;
    vertical-align: super;
    line-height: 0;
    margin-left: 1px;
}

.guide-body sup.cite a {
    color: #0f6848;
    text-decoration: none;
    padding: 0 3px;
    border-radius: 3px;
    background: rgba(15, 104, 72, 0.08);
}

.guide-body sup.cite a:hover {
    background: rgba(15, 104, 72, 0.18);
}

/* ---------- Comparison table ------------------------------------- */

.guide-table-wrap {
    margin: 32px 0;
    overflow-x: auto;
    border: 1px solid #e0dccf;
    border-radius: 8px;
    background: #ffffff;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    line-height: 1.55;
    min-width: 640px;
}

.guide-table th {
    background: #faf7f0;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    color: #3e3a34;
    padding: 14px 18px;
    border-bottom: 1px solid #e0dccf;
}

.guide-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #f0ede4;
    color: #1f1d18;
    vertical-align: top;
}

.guide-table tr:last-child td {
    border-bottom: none;
}

.guide-table td:first-child {
    font-weight: 600;
    color: #0f0e0a;
    white-space: nowrap;
}

/* ---------- FAQ section ------------------------------------------ */

.guide-faqs {
    margin: 48px 0 0;
}

.guide-faq {
    border-top: 1px solid #e0dccf;
    padding: 4px 0;
}

.guide-faq:last-child {
    border-bottom: 1px solid #e0dccf;
}

.guide-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 22px 0;
    font-family: "IBM Plex Serif", serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    list-style: none;
    transition: color 0.15s ease;
}

.guide-faq-question::-webkit-details-marker {
    display: none;
}

.guide-faq-question::after {
    content: "+";
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 24px;
    font-weight: 300;
    color: #0f6848;
    transition: transform 0.2s ease;
    margin-left: 16px;
    flex-shrink: 0;
}

.guide-faq[open] .guide-faq-question::after {
    content: "−";
}

.guide-faq-question:hover {
    color: #0f6848;
}

.guide-faq-answer {
    padding: 0 0 22px;
    font-size: 16px;
    line-height: 1.7;
    color: #1f1d18;
}

.guide-faq-answer p {
    margin: 0 0 14px;
}

.guide-faq-answer p:last-child {
    margin-bottom: 0;
}

/* ---------- End-of-article CTA ----------------------------------- */

.guide-cta {
    margin: 64px 0 0;
    padding: 36px 40px;
    background: linear-gradient(135deg, #094835 0%, #0f6848 100%);
    border-radius: 12px;
    color: #ffffff;
    text-align: center;
}

.guide-cta-title {
    font-family: "IBM Plex Serif", serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px;
    color: #ffffff;
}

.guide-cta-body {
    font-size: 16px;
    line-height: 1.6;
    color: #d1e5dc;
    margin: 0 0 24px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.guide-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.guide-cta .btn-primary {
    background: #ffffff;
    color: #094835;
    border-color: #ffffff;
}

.guide-cta .btn-primary:hover {
    background: #f5fbf8;
    color: #094835;
}

.guide-cta .btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.guide-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* ---------- Bibliography ----------------------------------------- */

.guide-bibliography {
    margin: 56px 0 0;
    padding: 28px 32px;
    background: #faf7f0;
    border: 1px solid #e0dccf;
    border-radius: 8px;
}

.guide-bibliography h2 {
    font-family: "IBM Plex Serif", serif;
    font-size: 18px;
    font-weight: 600;
    color: #3e3a34;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.guide-bibliography ol {
    margin: 0;
    padding-left: 24px;
    font-size: 13.5px;
    line-height: 1.65;
    color: #3e3a34;
    counter-reset: bib;
    list-style: none;
}

.guide-bibliography li {
    counter-increment: bib;
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
}

.guide-bibliography li::before {
    content: counter(bib) ".";
    position: absolute;
    left: 0;
    color: #0f6848;
    font-weight: 600;
}

.guide-bibliography li:last-child {
    margin-bottom: 0;
}

.guide-bibliography a {
    color: #0f6848;
    text-decoration: underline;
    text-decoration-color: #b8d4c8;
    word-break: break-word;
}

/* ---------- Metadata table --------------------------------------- */

.guide-metadata-wrap {
    margin: 56px 0 0;
    padding: 24px 28px;
    background: #ffffff;
    border: 1px dashed #d0c8b8;
    border-radius: 8px;
}

.guide-metadata-wrap h2 {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #7a7468;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.guide-metadata-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    line-height: 1.55;
}

.guide-metadata-table th,
.guide-metadata-table td {
    text-align: left;
    padding: 9px 14px 9px 0;
    vertical-align: top;
    border-bottom: 1px solid #f0ede4;
}

.guide-metadata-table tr:last-child th,
.guide-metadata-table tr:last-child td {
    border-bottom: none;
}

.guide-metadata-table th {
    color: #7a7468;
    font-weight: 600;
    width: 200px;
    white-space: nowrap;
}

.guide-metadata-table td {
    color: #1f1d18;
}

.guide-metadata-table code {
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: #f3f0ea;
    padding: 1px 6px;
    border-radius: 3px;
}

/* ---------- Guides landing page ---------------------------------- */

.guides-list {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: grid;
    gap: 16px;
}

.guides-list-item {
    background: #ffffff;
    border: 1px solid #e0dccf;
    border-radius: 10px;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.guides-list-item:hover {
    border-color: #0f6848;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 104, 72, 0.08);
}

.guides-list-link {
    display: block;
    padding: 26px 30px;
    text-decoration: none;
    color: inherit;
}

.guides-list-eyebrow {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #7a7468;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.guides-list-title {
    font-family: "IBM Plex Serif", serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.guides-list-deck {
    font-size: 15px;
    line-height: 1.55;
    color: #3e3a34;
    margin: 0;
}

.guides-list-coming-soon {
    opacity: 0.55;
    pointer-events: none;
}

.guides-list-coming-soon .guides-list-eyebrow {
    color: #c47a1a;
}

/* ---------- Mobile ------------------------------------------------ */

@media (max-width: 720px) {
    .guide-layout {
        padding: 36px 20px 64px;
    }
    .guide-title {
        font-size: 32px;
    }
    .guide-deck {
        font-size: 17px;
    }
    .guide-body {
        font-size: 16px;
    }
    .guide-body h2 {
        font-size: 24px;
        margin-top: 44px;
    }
    .guide-body h3 {
        font-size: 19px;
    }
    .guide-cta {
        padding: 28px 24px;
    }
    .guide-bibliography,
    .guide-metadata-wrap {
        padding: 20px 22px;
    }
    .guide-metadata-table th {
        width: 140px;
    }
}


/* CTA consistency override: the article nests .guide-cta inside .guide-body,
   whose h2/p/a element selectors out-specify the single-class .guide-cta-*
   rules. These higher-specificity rules keep the article CTA identical to the
   landing-page CTA regardless of context. */
.guide-cta .guide-cta-title {
    font-family: "IBM Plex Serif", serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px;
    color: #ffffff;
}
.guide-cta .guide-cta-body {
    font-size: 16px;
    line-height: 1.6;
    color: #d1e5dc;
    margin: 0 auto 24px;
    max-width: 540px;
}
.guide-cta a {
    text-decoration: none;
}


/* CTA body specificity fix: .guide-body p:first-of-type (0,2,1) sets a near-black
   color and 18px size, and it matches the CTA paragraph because that <p> is the
   first-of-type inside .guide-cta. This (0,3,0) rule out-specifies it. */
.guide-body .guide-cta .guide-cta-body {
    color: #d1e5dc;
    font-size: 16px;
    line-height: 1.6;
}
