/* cont-page floats + 6-block nav v20260727d */

body.cont-page.cont-has-mobile-rail {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0));
}

.cont-block-anchor {
    display: block;
    height: 0;
    overflow: hidden;
    scroll-margin-top: 96px;
}

/* --- chapter nav --- */
.cont-chapter-nav {
    position: fixed;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cont-chapter-nav.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.cont-chapter-nav__toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 52px;
    min-height: 52px;
    padding: 8px 10px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 14px;
    background: #fff;
    color: #047857;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    cursor: pointer;
}
.cont-chapter-nav__toggle i { font-size: 16px; }

.cont-chapter-nav__panel {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    width: min(220px, calc(100vw - 96px));
    max-height: min(72vh, 520px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.cont-chapter-nav.is-open .cont-chapter-nav__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}
.cont-chapter-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    color: #111827;
}
.cont-chapter-nav__close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
}
.cont-chapter-nav__list {
    overflow-y: auto;
    padding: 6px 0;
}

.cont-chapter-nav .cont-chapter-link,
.cont-mobile-chapters .cont-chapter-link {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.cont-chapter-nav__list .side-nav-item {
    padding: 9px 14px;
    border-left: 3px solid transparent;
    font-size: 13px;
    color: #4b5563;
    white-space: nowrap;
}
.cont-chapter-nav__list .side-nav-item:hover,
.cont-chapter-nav__list .side-nav-item.active {
    background: #ecfdf5;
    color: #047857;
    border-left-color: #10b981;
    font-weight: 600;
}

.cont-chapter-group {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed #e5e7eb;
}
.cont-chapter-group:first-of-type {
    border-top: none;
    padding-top: 0;
}
.cont-chapter-group.is-active .cont-chapter-group__head { color: #047857; }
.cont-chapter-group__head {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 14px 4px;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    color: #111827;
    cursor: pointer;
}
.cont-chapter-nav__list .side-nav-item--sub {
    padding: 7px 14px 7px 22px;
    font-size: 12px;
    color: #6b7280;
}
.cont-chapter-nav__list .side-nav-item--sub.active {
    color: #047857;
    font-weight: 600;
}

.cont-chapter-nav__cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid #f3f4f6;
}
.cont-chapter-nav__cta a {
    display: block;
    text-align: center;
    padding: 8px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.cont-chapter-nav__cta-pricing {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}
.cont-chapter-nav__cta-coo {
    background: #eff6ff;
    color: #1d4ed8;
}

/* --- mobile rail --- */
body.cont-page .mobile-bottom-nav {
    align-items: stretch;
}
body.cont-page .mobile-bottom-nav:not(.active) {
    display: none !important;
}
.mobile-nav-item--primary,
.mobile-nav-more {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: #4b5563;
}
.mobile-nav-more {
    flex: 0 0 auto;
    padding: 10px 12px;
    color: #047857;
    font-weight: 700;
    white-space: nowrap;
}
.mobile-nav-item--primary {
    padding: 10px 8px;
    font-size: 12px;
}
.mobile-nav-item--primary.active {
    color: #047857;
    font-weight: 700;
}

.cont-mobile-chapters {
    position: fixed;
    inset: 0;
    z-index: 10050;
    pointer-events: none;
}
.cont-mobile-chapters.is-open { pointer-events: auto; }
.cont-mobile-chapters__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.cont-mobile-chapters.is-open .cont-mobile-chapters__backdrop { opacity: 1; }
.cont-mobile-chapters__sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(72vh, 520px);
    background: #fff;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    transition: transform 0.24s ease;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.cont-mobile-chapters.is-open .cont-mobile-chapters__sheet { transform: translateY(0); }
.cont-mobile-chapters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
}
.cont-mobile-chapters__head h2 {
    margin: 0;
    font-size: 16px;
    color: #111827;
}
.cont-mobile-chapters__close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
}
.cont-mobile-chapters__sheet-body {
    overflow-y: auto;
    max-height: calc(min(72vh, 520px) - 56px);
    padding: 8px 16px 16px;
}
.cont-mobile-chapters__group + .cont-mobile-chapters__group { margin-top: 12px; }
.cont-mobile-chapters__group-label {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    color: #047857;
}
.cont-mobile-chapters__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.cont-mobile-chapters__grid .mobile-nav-item {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    text-align: left;
    white-space: normal;
}
.cont-mobile-chapters__grid .mobile-nav-item.active {
    border-color: #10b981;
    background: #ecfdf5;
}

/* --- conclusion cards guard --- */
body.cont-page .selection-advice.compare-section {
    padding: 30px 24px;
    box-sizing: border-box;
}
body.cont-page .selection-advice ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 15px;
}
body.cont-page .selection-advice li {
    background: #f7f9fc;
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 15px;
    line-height: 1.7;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
body.cont-page .selection-advice .section-header {
    margin-bottom: 20px;
}

.cont-back-to-top {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0));
    z-index: 10040;
}
body.cont-has-mobile-rail .cont-back-to-top {
    bottom: calc(3.75rem + env(safe-area-inset-bottom, 0));
}

@media (max-width: 1024px) {
    body.cont-page .cont-chapter-nav { display: none !important; }
    body.cont-page .mobile-bottom-nav.active { display: flex !important; }
    body.cont-page .selection-advice ul {
        grid-template-columns: 1fr;
    }
    body.cont-page .selection-advice li {
        padding: 14px;
        font-size: 14px;
    }
}
@media (min-width: 1025px) {
    body.cont-page .cont-mobile-chapters,
    body.cont-page .mobile-bottom-nav {
        display: none !important;
    }
}
