/* ==========================================================================
   Kismet Reusable Decision Guides Stylesheet
   Matches kimset-v2 palette, Century Gothic typography, rounded hero shell,
   and full-color-block visual hierarchy.
   ========================================================================== */

body.kismet-guide-page #all-content-wrapper {
    overflow: visible;
    overflow-x: clip;
}

/* 1. White Floating Header Integration (matches Home & About hero treatment) */
body.kismet-guide-page .header-nav {
    padding-top: 4.69vw;
}

body.kismet-guide-page .header-logo-color {
    display: none;
}

body.kismet-guide-page .header-logo-white {
    display: block;
}

body.kismet-guide-page .header-nav nav > ul > li:not(.btn) > a {
    color: var(--white);
}

body.kismet-guide-page .header-nav nav > ul > li:not(.btn) > a:hover {
    color: var(--sage);
}

body.kismet-guide-page .header-nav nav > ul > li:not(.btn) > a:hover:after {
    background-color: var(--sage);
}

/* 2. Base Guide Typography & Container Overrides */
.kismet-guide {
    font-family: var(--font-body, "Century Gothic", sans-serif);
    color: var(--body, #343516);
    background-color: var(--white, #ffffff);
    font-size: 17.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.kismet-guide *,
.kismet-guide *::before,
.kismet-guide *::after {
    box-sizing: border-box;
}

.kismet-guide :focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

.guide-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 32px;
}

/* 3. Rounded Dark-Teal Guide Hero (echoes Home & About inset rounded hero) */
.guide-hero {
    margin-top: -9.11vw;
    padding-bottom: 40px;
}

.guide-hero-shell {
    max-width: var(--wide-hero-section, 94.79vw);
    margin: 0 auto;
    background-color: var(--dark-teal, #1D4A46);
    color: var(--white, #ffffff);
    border-radius: var(--big-border-radius, 1.3vw);
    padding: 11.2vw 0 4.4vw;
    position: relative;
    overflow: hidden;
}

.guide-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.85fr);
    gap: 48px;
    align-items: center;
}

.guide-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 18px;
}

.guide-breadcrumb a {
    color: rgba(220, 228, 184, 0.92);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.guide-breadcrumb a:hover {
    color: var(--white);
    border-bottom-color: var(--sage);
}

.guide-breadcrumb-sep {
    opacity: 0.45;
}

.guide-eyebrow {
    display: inline-block;
    background-color: rgba(220, 228, 184, 0.16);
    color: var(--sage, #DCE4B8);
    border: 1px solid rgba(220, 228, 184, 0.32);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin: 0 0 20px;
}

.guide-hero h1 {
    color: var(--sage, #DCE4B8);
    font-size: clamp(2.25rem, 3.6vw, 3.45rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin: 0 0 20px;
}

.guide-hero h1 em {
    font-style: italic;
    color: var(--white, #ffffff);
}

.guide-hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.05rem, 1.3vw, 1.24rem);
    line-height: 1.55;
    margin: 0;
    max-width: 58ch;
}

/* Right-Column Hero Overview Card */
.guide-hero-card {
    background-color: rgba(0, 73, 68, 0.55);
    border: 1px solid rgba(220, 228, 184, 0.26);
    border-radius: 16px;
    padding: 26px 26px 22px;
}

.guide-hero-card-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sage, #DCE4B8);
    margin: 0 0 14px;
}

.guide-hero-chapters {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guide-hero-chapters li a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.guide-hero-chapters li a:hover {
    background-color: rgba(220, 228, 184, 0.15);
    color: var(--sage);
}

.guide-hero-chapter-num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--sage);
    flex-shrink: 0;
    min-width: 22px;
}

.guide-hero-highlights {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.guide-hero-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.94);
    margin: 0;
}

.guide-hero-highlight-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--sage, #DCE4B8);
    flex-shrink: 0;
    margin-top: 7px;
}

.guide-hero-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(220, 228, 184, 0.2);
}

.guide-hero-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    background-color: var(--sage, #DCE4B8);
    color: var(--dark-teal, #1D4A46);
    transition: background-color 0.18s ease, color 0.18s ease;
}

.guide-hero-quick-link:hover {
    background-color: var(--white);
    color: var(--dark-teal);
}

.guide-hero-quick-link--ghost {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.36);
}

.guide-hero-quick-link--ghost:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--sage);
}

.guide-mobile-only-link {
    display: none;
}

/* 4. Opening Intro & Shortlist Band */
.guide-intro-band {
    background-color: var(--off-white, #FAF9F8);
    border-top: 1px solid rgba(29, 74, 70, 0.08);
    border-bottom: 1px solid rgba(29, 74, 70, 0.12);
    padding: 52px 0 58px;
}

.guide-intro-lead {
    max-width: 780px;
    margin: 0 0 40px;
}

.guide-intro-lead p {
    font-size: 18px;
    line-height: 1.65;
    color: var(--body);
    margin: 0 0 16px;
}

.guide-intro-lead p:last-child {
    margin-bottom: 0;
}

.guide-shortlist-header {
    margin: 0 0 22px;
}

.guide-shortlist-header .guide-kicker {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tan, #A35A39);
    margin: 0 0 6px;
}

.guide-shortlist-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-teal, #1D4A46);
    line-height: 1.2;
    margin: 0;
}

.guide-shortlist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.guide-shortlist-card {
    background-color: var(--white, #ffffff);
    border: 1px solid rgba(29, 74, 70, 0.16);
    border-radius: 14px;
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-shortlist-card:hover {
    border-color: var(--dark-teal);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 73, 68, 0.08);
}

.guide-shortlist-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    margin: 0 0 10px;
    background-color: var(--sage, #DCE4B8);
    color: var(--dark-teal, #1D4A46);
}

.guide-shortlist-card--teal .guide-shortlist-tag {
    background-color: var(--dark-teal);
    color: var(--white);
}

.guide-shortlist-card--tan .guide-shortlist-tag {
    background-color: var(--tan);
    color: var(--white);
}

.guide-shortlist-card--burgundy .guide-shortlist-tag {
    background-color: var(--burgundy);
    color: var(--white);
}

.guide-shortlist-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-teal);
    line-height: 1.3;
    margin: 0 0 8px;
}

.guide-shortlist-card p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--body);
    margin: 0;
}

.guide-shortlist-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--teal, #004944);
    text-decoration: underline;
    text-underline-offset: 3px;
    align-self: flex-start;
}

.guide-shortlist-jump:hover {
    color: var(--burgundy);
}

.guide-shortlist-note {
    margin: 22px 0 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-teal);
    line-height: 1.5;
}

/* 5. Main Two-Column Guide Layout (Left Sticky Sidebar + Reading Column) */
.guide-body-section {
    padding: 64px 0 84px;
    background-color: var(--white);
}

.guide-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

/* Left Sticky Sidebar (Desktop) */
.guide-sidebar {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(29, 74, 70, 0.25) transparent;
}

body.admin-bar .guide-sidebar {
    top: 46px;
    max-height: calc(100vh - 60px);
}

.guide-sidebar::-webkit-scrollbar {
    width: 4px;
}

.guide-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.guide-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(29, 74, 70, 0.24);
    border-radius: 999px;
}

.guide-toc-box {
    background-color: var(--off-white, #FAF9F8);
    border: 1px solid rgba(29, 74, 70, 0.16);
    border-radius: 14px;
    padding: 14px;
}

.guide-toc-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tan, #A35A39);
    margin: 0 0 6px;
    padding: 0 8px;
}

.guide-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.guide-toc-list a {
    display: block;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-teal, #1D4A46);
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.guide-toc-list a:hover {
    background-color: rgba(220, 228, 184, 0.55);
    color: var(--teal);
}

.guide-toc-list a.is-active {
    background-color: var(--sage, #DCE4B8);
    color: var(--dark-teal, #1D4A46);
    font-weight: 700;
}

.guide-toc-sublist {
    list-style: none;
    margin: 2px 0 4px 10px;
    padding: 0 0 0 9px;
    border-left: 1px solid rgba(29, 74, 70, 0.18);
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.guide-toc-sublist a {
    font-size: 12.5px;
    font-weight: 400;
    padding: 3.5px 8px;
    color: rgba(29, 74, 70, 0.85);
}

.guide-toc-sublist a.is-active {
    background-color: rgba(220, 228, 184, 0.72);
    color: var(--dark-teal);
    font-weight: 700;
}

.guide-sidebar-cta {
    margin-top: 10px;
    background-color: var(--dark-teal, #1D4A46);
    color: var(--white);
    border-radius: 14px;
    padding: 14px;
}

.guide-sidebar-cta-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sage);
    margin: 0 0 6px;
}

.guide-sidebar-cta p {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 11px;
}

.guide-sidebar-cta a {
    display: inline-block;
    width: 100%;
    text-align: center;
    background-color: var(--sage);
    color: var(--dark-teal);
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.18s ease;
}

.guide-sidebar-cta a:hover {
    background-color: var(--white);
}

/* Mobile Compact Contents Drawer (hidden on desktop) */
.guide-mobile-toc-wrap {
    display: none;
}

/* 6. Article Reading Column Typography & Chapters */
.guide-article {
    max-width: 760px;
    min-width: 0;
}

.guide-chapter {
    padding-top: 56px;
    margin-top: 56px;
    border-top: 1px solid rgba(29, 74, 70, 0.14);
}

.guide-chapter:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.guide-chapter-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tan, #A35A39);
    margin: 0 0 8px;
}

.guide-article h2 {
    font-size: clamp(1.65rem, 2.3vw, 2.15rem);
    font-weight: 700;
    color: var(--dark-teal, #1D4A46);
    line-height: 1.2;
    margin: 0 0 22px;
    scroll-margin-top: 28px;
}

.guide-article h3 {
    font-size: 1.38rem;
    font-weight: 700;
    color: var(--dark-teal, #1D4A46);
    line-height: 1.28;
    margin: 40px 0 14px;
    scroll-margin-top: 28px;
}

body.admin-bar .guide-article h2,
body.admin-bar .guide-article h3,
body.admin-bar .guide-disclosure {
    scroll-margin-top: 64px;
}

.guide-article h4 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--teal, #004944);
    line-height: 1.35;
    margin: 26px 0 10px;
}

.guide-article p {
    font-size: 17.5px;
    line-height: 1.68;
    color: var(--body, #343516);
    margin: 0 0 18px;
}

.guide-article a:where(:not(.guide-btn):not(.guide-shortlist-jump):not(.guide-mid-cta-btn)) {
    color: var(--teal, #004944);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: color 0.18s ease;
}

.guide-article a:where(:not(.guide-btn):not(.guide-shortlist-jump):not(.guide-mid-cta-btn)):hover {
    color: var(--burgundy, #570228);
}

.guide-article ul:where(:not(.guide-step-list):not(.guide-brief-list):not(.guide-related-list)) {
    list-style: disc;
    margin: 0 0 22px;
    padding-left: 24px;
}

.guide-article ol:where(:not(.guide-step-list)) {
    list-style: decimal;
    margin: 0 0 22px;
    padding-left: 24px;
}

.guide-article :where(ul:not(.guide-step-list):not(.guide-brief-list):not(.guide-related-list), ol:not(.guide-step-list)) li {
    font-size: 17px;
    line-height: 1.62;
    color: var(--body);
    margin-bottom: 10px;
}

.guide-article :where(li) strong {
    color: var(--dark-teal);
}

/* Platform Section Dividers inside Chapter 3 */
.guide-platform-block {
    padding-top: 34px;
    margin-top: 38px;
    border-top: 1px solid rgba(29, 74, 70, 0.12);
}

.guide-platform-block:first-of-type {
    padding-top: 24px;
    margin-top: 28px;
}

.guide-platform-block > h3 {
    margin-top: 0;
}

.guide-platform-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: var(--off-white);
    border: 1px solid rgba(29, 74, 70, 0.2);
    color: var(--dark-teal);
    margin-bottom: 10px;
}

/* Platform Snapshot Strip (Best For / Maintenance / Watch-Out) */
.guide-snapshot {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    background-color: var(--off-white, #FAF9F8);
    border: 1px solid rgba(29, 74, 70, 0.16);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 14px 0 22px;
}

.guide-snapshot-item {
    min-width: 0;
}

.guide-snapshot-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tan, #A35A39);
    margin-bottom: 3px;
}

.guide-snapshot-val {
    display: block;
    font-size: 13.5px;
    line-height: 1.42;
    font-weight: 600;
    color: var(--dark-teal, #1D4A46);
}

/* Chapter 5 Responsive 2x2 Cost Framework Grid */
.guide-cost-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0 24px;
}

.guide-cost-card {
    background-color: var(--off-white, #FAF9F8);
    border: 1px solid rgba(29, 74, 70, 0.16);
    border-radius: 12px;
    padding: 18px 20px;
}

.guide-cost-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: var(--dark-teal, #1D4A46);
    color: var(--white, #ffffff);
    margin: 0 0 10px;
}

.guide-cost-card--teal .guide-cost-badge {
    background-color: var(--teal, #004944);
}

.guide-cost-card--tan .guide-cost-badge {
    background-color: var(--tan, #A35A39);
}

.guide-cost-card--burgundy .guide-cost-badge {
    background-color: var(--burgundy, #570228);
}

.guide-cost-card h4 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--dark-teal, #1D4A46);
    margin: 0 0 6px;
    line-height: 1.3;
}

.guide-cost-card p {
    font-size: 14.5px;
    line-height: 1.52;
    color: var(--body, #343516);
    margin: 0;
}

/* Mid-Guide Inline Conversion Strip (visible on desktop & mobile) */
.guide-mid-cta {
    margin: 38px 0 10px;
    padding: 22px 24px;
    background-color: var(--sage, #DCE4B8);
    border: 1px solid rgba(29, 74, 70, 0.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.guide-mid-cta-copy {
    min-width: 0;
}

.guide-mid-cta-kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dark-teal);
    margin: 0 0 4px;
}

.guide-mid-cta p {
    font-size: 15.5px;
    line-height: 1.48;
    color: var(--dark-teal);
    font-weight: 600;
    margin: 0;
}

.guide-mid-cta a.guide-mid-cta-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 999px;
    background-color: var(--dark-teal, #1D4A46);
    color: var(--white, #ffffff);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.guide-mid-cta a.guide-mid-cta-btn:hover {
    background-color: var(--teal, #004944);
    color: var(--sage, #DCE4B8);
}

/* Related Resources Editorial Callout (keeps internal links clean & non-interruptive) */
.guide-related {
    margin: 24px 0 28px;
    padding: 18px 20px;
    background-color: var(--off-white, #FAF9F8);
    border: 1px solid rgba(29, 74, 70, 0.16);
    border-radius: 12px;
}

.guide-related-kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tan, #A35A39);
    margin: 0 0 4px;
}

.guide-related-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--dark-teal, #1D4A46);
    margin: 0 0 10px;
    line-height: 1.35;
}

.guide-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-related-list li {
    margin: 0;
    padding: 0;
    font-size: 14.5px;
    line-height: 1.45;
}

.guide-related-list a {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    color: var(--teal, #004944);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.guide-related-list a:hover {
    color: var(--burgundy, #570228);
}

/* 7. Color-Blocked Editorial Components (full 4-sided rounded blocks) */

/* Compact Platform Comparison Table */
.guide-table-hint {
    display: none;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--tan, #A35A39);
    margin: 22px 0 8px;
}

.guide-table-wrap {
    margin: 26px 0 32px;
    border: 1px solid rgba(29, 74, 70, 0.18);
    border-radius: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background-color: var(--white);
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    line-height: 1.44;
    min-width: 710px;
}

.guide-table thead th {
    background-color: var(--dark-teal, #1D4A46);
    color: var(--white, #ffffff);
    font-weight: 700;
    text-align: left;
    padding: 12px 11px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.guide-table tbody td {
    padding: 11px;
    border-top: 1px solid rgba(29, 74, 70, 0.12);
    vertical-align: top;
    color: var(--body);
}

.guide-table tbody tr:nth-child(even) {
    background-color: var(--off-white, #FAF9F8);
}

.guide-table thead th:first-child,
.guide-table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
}

.guide-table thead th:first-child {
    background-color: var(--dark-teal, #1D4A46);
    z-index: 3;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.14);
}

.guide-table tbody td:first-child {
    font-weight: 700;
    color: var(--dark-teal);
    white-space: nowrap;
    background-color: var(--white, #ffffff);
    box-shadow: 2px 0 6px rgba(29, 74, 70, 0.08);
}

.guide-table tbody tr:nth-child(even) td:first-child {
    background-color: var(--off-white, #FAF9F8);
}

.guide-table tbody td:first-child a {
    color: var(--dark-teal);
}

/* Full Color-Block Callouts (Burgundy, Dark Teal, Sage, Tan) */
.guide-block {
    border-radius: 14px;
    padding: 28px 28px 26px;
    margin: 28px 0;
}

.guide-block-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    margin: 0 0 12px;
}

.guide-block h3,
.guide-block h4 {
    margin-top: 0;
}

.guide-block p:last-child,
.guide-block ul:last-child {
    margin-bottom: 0;
}

.guide-block--burgundy {
    background-color: var(--burgundy, #570228);
    color: var(--white);
}

.guide-block--burgundy .guide-block-tag {
    background-color: rgba(255, 255, 255, 0.16);
    color: var(--sage);
}

.guide-block--burgundy h3,
.guide-block--burgundy h4 {
    color: var(--white);
}

.guide-block--burgundy p,
.guide-block--burgundy li {
    color: rgba(255, 255, 255, 0.95);
}

.guide-block--burgundy strong,
.guide-block--burgundy li strong {
    color: var(--sage);
}

.guide-block--burgundy a:not(.guide-btn) {
    color: var(--sage);
}

.guide-block--burgundy a:not(.guide-btn):hover {
    color: var(--white);
}

.guide-block--teal {
    background-color: var(--dark-teal, #1D4A46);
    color: var(--white);
}

.guide-block--teal .guide-block-tag {
    background-color: rgba(220, 228, 184, 0.18);
    color: var(--sage);
}

.guide-block--teal h3,
.guide-block--teal h4 {
    color: var(--white);
}

.guide-block--teal p,
.guide-block--teal li {
    color: rgba(255, 255, 255, 0.95);
}

.guide-block--teal strong,
.guide-block--teal li strong {
    color: var(--sage);
}

.guide-block--teal a:not(.guide-btn) {
    color: var(--sage);
}

.guide-block--teal a:not(.guide-btn):hover {
    color: var(--white);
}

.guide-block--sage {
    background-color: var(--sage, #DCE4B8);
    color: var(--dark-teal);
    border: 1px solid rgba(29, 74, 70, 0.16);
}

.guide-block--sage .guide-block-tag {
    background-color: var(--dark-teal);
    color: var(--white);
}

.guide-block--sage h3,
.guide-block--sage h4 {
    color: var(--dark-teal);
}

.guide-block--sage p,
.guide-block--sage li {
    color: var(--body);
}

.guide-block--offwhite {
    background-color: var(--off-white, #FAF9F8);
    border: 1px solid rgba(29, 74, 70, 0.16);
}

.guide-block--offwhite .guide-block-tag {
    background-color: var(--tan);
    color: var(--white);
}

/* Membership Workflow Visual Sequence (Priority 2 HTML Diagram) */
.guide-step-list {
    list-style: none;
    margin: 20px 0 22px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.guide-step-list li {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14.5px;
    line-height: 1.48;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.guide-step-num {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 4px;
}

/* Side-by-Side Scale Comparison (Chapter 4: 2-Hour WP Fix vs Proprietary Rebuild) */
.guide-contrast-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 24px 0 28px;
}

.guide-contrast-grid .guide-block {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.guide-contrast-stat {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sage);
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/* Hypothetical 3-Year App Budget Grid (Chapter 5) */
.guide-budget-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 18px;
}

.guide-budget-item {
    background-color: var(--white);
    border: 1px solid rgba(29, 74, 70, 0.18);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
}

.guide-budget-item-label {
    display: block;
    font-size: 12px;
    color: rgba(29, 74, 70, 0.78);
    margin-bottom: 4px;
}

.guide-budget-item-price {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-teal);
}

.guide-budget-totals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 14px;
}

.guide-budget-total-box {
    background-color: var(--dark-teal);
    color: var(--white);
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
}

.guide-budget-total-box--accent {
    background-color: var(--tan);
}

.guide-budget-total-label {
    display: block;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 4px;
}

.guide-budget-total-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
}

.guide-budget-footnote {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    color: var(--dark-teal) !important;
    margin: 0 !important;
}

/* 8. Native Accessible Disclosures (<details>/<summary>) */
.guide-disclosure {
    margin: 24px 0 28px;
    background-color: var(--off-white, #FAF9F8);
    border: 1px solid rgba(29, 74, 70, 0.22);
    border-radius: 12px;
    overflow: hidden;
    scroll-margin-top: 28px;
}

.guide-disclosure[open] {
    border-color: var(--dark-teal);
    background-color: var(--white);
}

.guide-disclosure > summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark-teal);
    background-color: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: background-color 0.18s ease;
}

.guide-disclosure > summary::-webkit-details-marker,
.guide-disclosure > summary::marker {
    display: none;
    content: '';
}

.guide-disclosure > summary:hover {
    background-color: rgba(220, 228, 184, 0.45);
}

.guide-disclosure-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--sage);
    color: var(--dark-teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.guide-disclosure[open] > summary {
    border-bottom: 1px solid rgba(29, 74, 70, 0.14);
}

.guide-disclosure[open] .guide-disclosure-icon,
.guide-mobile-toc[open] .guide-disclosure-icon {
    transform: rotate(180deg);
    background-color: var(--dark-teal);
    color: var(--white);
}

.guide-disclosure-body {
    padding: 22px 24px 24px;
}

.guide-disclosure-body p:last-child,
.guide-disclosure-body ul:last-child {
    margin-bottom: 0;
}

/* Fictional Decision Brief List inside Disclosure */
.guide-brief-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    border: 1px solid rgba(29, 74, 70, 0.14);
    border-radius: 10px;
    overflow: hidden;
}

.guide-brief-list li {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.55;
    border-top: 1px solid rgba(29, 74, 70, 0.1);
    margin: 0;
}

.guide-brief-list li:first-child {
    border-top: none;
}

.guide-brief-list li:nth-child(even) {
    background-color: var(--off-white);
}

.guide-brief-key {
    font-weight: 700;
    color: var(--dark-teal);
}

/* Interactive & Printable Blank CMS Decision Brief Worksheet */
.guide-worksheet {
    margin: 22px 0 28px;
    background-color: var(--off-white, #FAF9F8);
    border: 1px solid rgba(29, 74, 70, 0.22);
    border-radius: 16px;
    padding: 26px 26px 24px;
    scroll-margin-top: 28px;
}

body.admin-bar .guide-worksheet {
    scroll-margin-top: 64px;
}

.guide-worksheet-print-brand,
.guide-worksheet-print-footer {
    display: none;
}

.guide-worksheet-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(29, 74, 70, 0.14);
}

.guide-worksheet-header h4 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    color: var(--dark-teal, #1D4A46);
}

.guide-worksheet-subtitle {
    font-size: 14px !important;
    line-height: 1.48 !important;
    color: rgba(29, 74, 70, 0.85) !important;
    margin: 0 !important;
}

.guide-worksheet-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.guide-ws-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.guide-ws-btn--primary {
    background-color: var(--dark-teal, #1D4A46);
    color: var(--white, #ffffff);
}

.guide-ws-btn--primary:hover {
    background-color: var(--teal, #004944);
    color: var(--sage, #DCE4B8);
}

.guide-ws-btn--secondary {
    background-color: var(--white, #ffffff);
    color: var(--dark-teal, #1D4A46);
    border-color: rgba(29, 74, 70, 0.28);
}

.guide-ws-btn--secondary:hover {
    background-color: var(--sage, #DCE4B8);
    border-color: var(--dark-teal, #1D4A46);
}

.guide-ws-btn--subtle {
    background-color: transparent;
    color: rgba(29, 74, 70, 0.82);
    border-color: transparent;
    padding: 9px 10px;
}

.guide-ws-btn--subtle:hover {
    color: var(--burgundy, #570228);
}

.guide-worksheet-meta-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.guide-worksheet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.guide-worksheet-field {
    background-color: var(--white, #ffffff);
    border: 1px solid rgba(29, 74, 70, 0.15);
    border-radius: 10px;
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guide-worksheet-field label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--dark-teal, #1D4A46);
    line-height: 1.3;
    margin: 0;
}

.guide-worksheet-prompt {
    display: block;
    font-size: 12.5px;
    font-weight: 400;
    color: rgba(29, 74, 70, 0.82);
    margin-top: 2px;
}

.guide-worksheet-field input[type="text"],
.guide-worksheet-field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.48;
    color: var(--body, #343516);
    background-color: var(--off-white, #FAF9F8);
    border: 1px solid rgba(29, 74, 70, 0.22);
    border-radius: 7px;
    padding: 8px 10px;
    margin: 0;
    resize: vertical;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.guide-worksheet-field input[type="text"]::placeholder,
.guide-worksheet-field textarea::placeholder {
    color: rgba(52, 53, 22, 0.5);
}

.guide-worksheet-field input[type="text"]:focus,
.guide-worksheet-field textarea:focus {
    background-color: var(--white, #ffffff);
    border-color: var(--teal, #004944);
}

.guide-worksheet-print-val {
    display: none;
}

.guide-worksheet-status {
    font-size: 13px;
    font-weight: 700;
    color: var(--teal, #004944);
    margin: 12px 0 0;
    min-height: 18px;
}

/* 9. Closing CTA Band */
.guide-cta-band {
    margin-top: 56px;
    background-color: var(--dark-teal, #1D4A46);
    color: var(--white);
    border-radius: 16px;
    padding: 36px 36px 34px;
}

.guide-cta-band .guide-block-tag {
    background-color: rgba(220, 228, 184, 0.18);
    color: var(--sage);
}

.guide-cta-band h2 {
    color: var(--white);
    font-size: 1.75rem;
    margin: 0 0 14px;
}

.guide-cta-band p {
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 18px;
}

.guide-cta-band a:not(.guide-btn) {
    color: var(--sage);
}

.guide-cta-band a:not(.guide-btn):hover {
    color: var(--white);
}

.guide-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.guide-btn--primary {
    background-color: var(--sage, #DCE4B8);
    color: var(--dark-teal, #1D4A46);
}

.guide-btn--primary:hover {
    background-color: var(--white);
    color: var(--dark-teal);
}

.guide-btn--ghost {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.36);
}

.guide-btn--ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--sage);
}

/* 10. Responsive Breakpoints */
@media (max-width: 1080px) {
    .guide-layout {
        grid-template-columns: 235px minmax(0, 1fr);
        gap: 36px;
    }

    .guide-shortlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 966px) {
    body.kismet-guide-page .header-nav {
        padding-top: 45px;
    }

    body.kismet-guide-page #mobile-menu-toggle span {
        background-color: #ffffff;
    }

    .guide-hero {
        margin-top: -150px;
        padding-bottom: 24px;
    }

    .guide-hero-shell {
        max-width: calc(100% - 40px);
        border-radius: 20px;
        padding: 180px 0 36px;
    }

    .guide-container {
        padding: 0 22px;
    }

    .guide-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .guide-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .guide-sidebar {
        display: none;
    }

    .guide-mobile-toc-wrap {
        display: block;
        position: sticky;
        top: 12px;
        z-index: 40;
        margin: 0 0 24px;
    }

    body.admin-bar .guide-mobile-toc-wrap {
        top: 52px;
    }

    .guide-mobile-toc {
        background-color: var(--off-white);
        border: 1px solid rgba(29, 74, 70, 0.24);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 8px 22px rgba(29, 74, 70, 0.1);
    }

    .guide-mobile-toc > summary {
        list-style: none;
        cursor: pointer;
        padding: 13px 16px;
        font-size: 14.5px;
        font-weight: 700;
        color: var(--dark-teal);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .guide-mobile-toc > summary::-webkit-details-marker,
    .guide-mobile-toc > summary::marker {
        display: none;
        content: '';
    }

    .guide-mobile-toc[open] > summary {
        border-bottom: 1px solid rgba(29, 74, 70, 0.14);
        background-color: rgba(220, 228, 184, 0.35);
    }

    .guide-mobile-toc-body {
        padding: 12px 14px 16px;
        max-height: 62vh;
        overflow-y: auto;
    }

    .guide-mobile-only-link {
        display: inline-flex;
    }

    .guide-article h2,
    .guide-article h3,
    .guide-disclosure,
    .guide-worksheet {
        scroll-margin-top: 80px;
    }

    body.admin-bar .guide-article h2,
    body.admin-bar .guide-article h3,
    body.admin-bar .guide-disclosure,
    body.admin-bar .guide-worksheet {
        scroll-margin-top: 120px;
    }

    .guide-table-hint {
        display: block;
    }

    .guide-table-hint + .guide-table-wrap {
        margin-top: 0;
    }

    .guide-body-section {
        padding: 40px 0 64px;
    }

    .guide-article {
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .guide-hero-shell {
        padding: 156px 0 28px;
    }

    .guide-hero-card {
        padding: 18px 18px 16px;
    }

    .guide-intro-band {
        padding: 30px 0 34px;
    }

    .guide-intro-lead {
        margin-bottom: 24px;
    }

    .guide-intro-lead p {
        font-size: 16px;
        line-height: 1.58;
        margin-bottom: 12px;
    }

    .guide-shortlist-header {
        margin-bottom: 14px;
    }

    .guide-shortlist-grid,
    .guide-contrast-grid,
    .guide-step-list,
    .guide-snapshot,
    .guide-cost-grid,
    .guide-worksheet-meta-row,
    .guide-worksheet-grid {
        grid-template-columns: 1fr;
    }

    .guide-shortlist-grid {
        gap: 12px;
    }

    .guide-shortlist-card {
        padding: 15px 16px 14px;
        gap: 8px;
    }

    .guide-shortlist-card h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .guide-shortlist-card p {
        font-size: 14px;
        line-height: 1.48;
    }

    .guide-worksheet {
        padding: 20px 18px;
    }

    .guide-mid-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 20px;
    }

    .guide-budget-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-budget-totals {
        grid-template-columns: 1fr;
    }

    .guide-brief-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .guide-cta-band {
        padding: 28px 22px;
    }

    .guide-block {
        padding: 22px 20px;
    }
}

/* 11. Print Stylesheet */
@media print {
    header,
    footer,
    .guide-sidebar,
    .guide-mobile-toc-wrap,
    .guide-hero-card,
    .guide-cta-actions {
        display: none !important;
    }

    .guide-hero {
        margin-top: 0 !important;
    }

    .guide-hero-shell {
        max-width: 100% !important;
        padding: 24px 0 !important;
        background: #ffffff !important;
        color: #000000 !important;
        border-radius: 0 !important;
    }

    .guide-hero h1,
    .guide-hero h1 em,
    .guide-hero-subtitle {
        color: #000000 !important;
    }

    .guide-layout {
        display: block !important;
    }

    .guide-article {
        max-width: 100% !important;
    }

    .guide-disclosure {
        break-inside: avoid;
    }

    .guide-worksheet-toolbar,
    .guide-worksheet-status {
        display: none !important;
    }

    .guide-worksheet {
        background: #ffffff !important;
        border: 1px solid #1D4A46 !important;
        padding: 18px 20px !important;
        break-inside: avoid;
    }

    .guide-worksheet-field input[type="text"],
    .guide-worksheet-field textarea {
        display: none !important;
    }

    .guide-worksheet-print-val {
        display: block !important;
        font-size: 12.5px;
        line-height: 1.5;
        color: #111111;
        white-space: pre-wrap;
        min-height: 44px;
        padding: 6px 0 4px;
        border-bottom: 1px solid #9aa8a6;
    }

    .guide-worksheet-print-val.is-short {
        min-height: 24px;
    }

    /* Focused 1-page Worksheet-Only Print Mode */
    body.guide-print-worksheet .guide-hero,
    body.guide-print-worksheet .guide-intro-band,
    body.guide-print-worksheet .guide-chapter:not(.is-printing-worksheet-host),
    body.guide-print-worksheet .guide-cta-band,
    body.guide-print-worksheet .is-printing-worksheet-host > :not(.guide-worksheet) {
        display: none !important;
    }

    body.guide-print-worksheet .guide-body-section,
    body.guide-print-worksheet .guide-container,
    body.guide-print-worksheet .guide-chapter {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    body.guide-print-worksheet .guide-worksheet {
        margin: 0 !important;
        border: none !important;
        padding: 0 !important;
    }

    body.guide-print-worksheet .guide-worksheet-header {
        display: none !important;
    }

    body.guide-print-worksheet .guide-worksheet-print-brand {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 12px;
        margin-bottom: 16px;
        border-bottom: 2px solid #1D4A46;
        color: #1D4A46;
    }

    body.guide-print-worksheet .guide-worksheet-print-logo {
        display: block;
        width: 132px;
        height: auto;
        margin: 0;
    }

    body.guide-print-worksheet .guide-worksheet-print-title-block {
        text-align: right;
        line-height: 1.3;
    }

    body.guide-print-worksheet .guide-worksheet-print-title-block strong {
        display: block;
        font-size: 16px;
        color: #1D4A46;
    }

    body.guide-print-worksheet .guide-worksheet-print-title-block span {
        display: block;
        font-size: 11px;
        color: #556b68;
    }

    body.guide-print-worksheet .guide-worksheet-print-val {
        min-height: 54px;
    }

    body.guide-print-worksheet .guide-worksheet-print-val.is-short {
        min-height: 24px;
    }

    body.guide-print-worksheet .guide-worksheet-print-footer {
        display: block !important;
        margin-top: 14px;
        padding-top: 10px;
        border-top: 1px solid #c5d1cf;
        font-size: 11px;
        color: #556b68;
        text-align: center;
    }

    body.guide-print-worksheet .guide-worksheet-grid,
    body.guide-print-worksheet .guide-worksheet-meta-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.guide-print-worksheet .guide-worksheet-field {
        padding: 10px 12px !important;
        border-color: #c5d1cf !important;
        break-inside: avoid;
    }
}
