/* Calculover journal — self-contained article layer; existing site assets remain compatible. */
body.cx-blog {
    --cx-bg: #0d1520;
    --cx-card: #131f2c;
    --cx-ink: #f1f5f8;
    --cx-copy: #c5d1dc;
    --cx-muted: #9fafc0;
    --cx-line: #30404f;
    --cx-accent: #68ddd0;
    --cx-soft: #153730;
    --cx-soft-ink: #a4eee2;
    --cx-nav: #101b28;
    --cx-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    margin: 0;
    background: var(--cx-bg);
    background-image: none;
    color: var(--cx-ink);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
html[data-theme='light'] body.cx-blog {
    --cx-bg: #f7f8f5;
    --cx-card: #fff;
    --cx-ink: #152b35;
    --cx-copy: #344b55;
    --cx-muted: #586d75;
    --cx-line: #dce4df;
    --cx-accent: #076958;
    --cx-soft: #eaf5ee;
    --cx-soft-ink: #155849;
    --cx-nav: #fff;
    --cx-shadow: 0 16px 48px rgba(22, 44, 34, 0.05);
}
.cx-shell * {
    box-sizing: border-box;
}
.cx-shell [hidden] {
    display: none !important;
}
.cx-shell a {
    color: var(--cx-accent);
}
.cx-shell a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.cx-shell :focus-visible {
    outline: 3px solid var(--cx-accent);
    outline-offset: 4px;
}
.cx-shell button,
.cx-shell input,
.cx-shell select,
.cx-shell textarea {
    font: inherit;
}
.cx-shell button {
    cursor: pointer;
}
.cx-shell img {
    max-width: 100%;
}
.cx-shell h1,
.cx-shell h2,
.cx-shell h3,
.cx-shell p {
    margin-top: 0;
}
.cx-shell h1,
.cx-shell h2,
.cx-shell h3 {
    color: var(--cx-ink);
    font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
}
.cx-shell h1 {
    font-size: clamp(2.15rem, 4.5vw, 3.8rem);
    line-height: 1.12;
    letter-spacing: -0.042em;
    font-weight: 800;
}
.cx-shell main {
    display: block;
    min-width: 0;
}
.cx-shell .cx-skip {
    position: fixed;
    left: 16px;
    top: -100px;
    z-index: 10000;
    background: var(--cx-card);
    padding: 12px 20px;
    border: 2px solid var(--cx-accent);
    border-radius: 8px;
}
.cx-shell .cx-skip:focus {
    top: 12px;
}
.cx-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cx-accent);
    z-index: 9998;
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}
body.cx-blog > main.cx-shell {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}
.cx-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}
.cx-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--cx-muted);
    font-size: 12px;
    margin: 31px 0 32px;
}
.cx-breadcrumb a {
    color: var(--cx-muted);
    text-decoration: none;
}
.cx-breadcrumb .cx-separator {
    opacity: 0.5;
}
.cx-hero {
    max-width: 1030px;
    padding-bottom: 38px;
}
.cx-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--cx-accent);
    margin-bottom: 19px;
}
.cx-eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: currentcolor;
}
.cx-hero h1 {
    max-width: 1000px;
    margin-bottom: 24px;
}
.cx-deck {
    max-width: 830px;
    font-size: clamp(1rem, 1.45vw, 1.19rem);
    line-height: 1.75;
    color: var(--cx-copy);
    margin-bottom: 23px;
}
.cx-meta {
    display: flex;
    gap: 8px 18px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 12px;
    color: var(--cx-muted);
}
.cx-meta a {
    font-weight: 650;
    color: var(--cx-copy);
    text-decoration: none;
}
.cx-meta .cx-byline {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cx-author-mark {
    display: inline-grid;
    place-items: center;
    height: 27px;
    width: 27px;
    background: var(--cx-soft);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 850;
    color: var(--cx-accent);
}
.cx-meta time {
    font-variant-numeric: tabular-nums;
}
.cx-meta .cx-read-time::before {
    content: '·';
    margin-right: 15px;
}
.cx-layout {
    display: grid;
    grid-template-columns: minmax(0, 840px) 260px;
    gap: clamp(30px, 5vw, 80px);
    align-items: start;
    border-top: 1px solid var(--cx-line);
    padding-top: 30px;
}
.cx-main-column {
    min-width: 0;
}
.cx-answer {
    padding: 26px 29px 25px;
    border: 1px solid var(--cx-line);
    border-left: 4px solid var(--cx-accent);
    background: var(--cx-soft);
    border-radius: 0 15px 15px 0;
    margin: 0 0 32px;
}
.cx-answer h2 {
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 850;
    color: var(--cx-accent);
    margin: 0 0 12px;
}
.cx-answer p {
    color: var(--cx-soft-ink);
    font-size: 17px;
    line-height: 1.75;
    margin: 0;
}
.cx-answer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.cx-btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 10px 17px;
    border: 1px solid var(--cx-accent);
    border-radius: 8px;
    background: var(--cx-accent);
    color: var(--cx-bg) !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
    transition:
        transform 0.15s,
        opacity 0.15s;
}
.cx-btn:hover {
    opacity: 0.86;
    transform: translateY(-1px);
}
.cx-btn-quiet {
    color: var(--cx-accent) !important;
    background: transparent;
    border-color: var(--cx-line);
}
.cx-btn-quiet:hover {
    border-color: var(--cx-accent);
    opacity: 1;
}
.cx-answer .cx-btn-quiet {
    border-color: color-mix(in srgb, var(--cx-accent) 25%, transparent);
}
.cx-toc {
    position: sticky;
    top: 130px;
    padding-top: 4px;
    max-height: calc(100vh - 150px);
    overflow: auto;
    font-size: 12px;
    scrollbar-width: thin;
}
.cx-toc-label {
    font-size: 10px;
    letter-spacing: 0.15em;
    font-weight: 850;
    color: var(--cx-muted);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.cx-toc ol {
    padding: 0;
    margin: 0;
    list-style: none;
}
.cx-toc li {
    margin: 0;
}
.cx-toc a {
    display: block;
    line-height: 1.55;
    text-decoration: none;
    color: var(--cx-muted);
    border-left: 2px solid var(--cx-line);
    padding: 8px 0 8px 16px;
}
.cx-toc a[aria-current],
.cx-toc a:hover {
    color: var(--cx-accent);
    border-left-color: var(--cx-accent);
}
.cx-side-note {
    border-top: 1px solid var(--cx-line);
    margin-top: 24px;
    padding-top: 20px;
    color: var(--cx-muted);
    font-size: 11px;
    line-height: 1.7;
}
.cx-side-note strong {
    display: block;
    color: var(--cx-copy);
    font-size: 12px;
    margin-bottom: 6px;
}
.cx-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.cx-share button {
    min-height: 36px;
    font-size: 11px;
    padding: 7px 11px;
}
.cx-mobile-toc {
    display: none;
}
.cx-prose {
    color: var(--cx-copy);
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: break-word;
}
.cx-prose h2 {
    margin: 40px 0 17px;
    font-size: clamp(1.35rem, 2.1vw, 1.7rem);
    line-height: 1.3;
    letter-spacing: -0.025em;
    font-weight: 780;
    scroll-margin-top: 130px;
}
.cx-prose > h2:first-child {
    margin-top: 0;
}
.cx-prose h3 {
    font-size: 18px;
    line-height: 1.4;
    margin: 27px 0 12px;
}
.cx-prose p {
    margin-bottom: 19px;
}
.cx-prose strong {
    color: var(--cx-ink);
    font-weight: 720;
}
.cx-prose ul,
.cx-prose ol {
    padding-left: 24px;
    margin: 16px 0 24px;
}
.cx-prose li {
    margin: 8px 0;
}
.cx-prose a:not(.cx-btn) {
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.cx-prose sup {
    line-height: 0;
    font-size: 10px;
    font-weight: 800;
}
.cx-prose sup a {
    display: inline-block;
    padding: 0 3px;
    text-decoration: none !important;
}
.cx-prose code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.86em;
    color: var(--cx-ink);
    background: var(--cx-soft);
    padding: 3px 6px;
    border-radius: 5px;
    overflow-wrap: anywhere;
}
.cx-prose blockquote {
    margin: 23px 0;
    padding: 19px 22px;
    background: var(--cx-card);
    border: 1px solid var(--cx-line);
    border-left: 3px solid var(--cx-accent);
    border-radius: 0 10px 10px 0;
    font-size: 16px;
    font-weight: 620;
    color: var(--cx-ink);
}
.cx-prose blockquote p {
    margin: 0;
}
.cx-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--cx-line);
    border-radius: 10px;
    background: var(--cx-card);
    scrollbar-width: thin;
}
.cx-prose table,
.cx-scenarios table {
    width: 100%;
    border-collapse: collapse;
    border: 0;
    font-size: 13px;
    line-height: 1.65;
    text-align: left;
}
.cx-shell caption {
    text-align: left;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 750;
    color: var(--cx-muted);
    caption-side: top;
    border-bottom: 1px solid var(--cx-line);
}
.cx-shell thead {
    background: var(--cx-soft);
    color: var(--cx-soft-ink);
}
.cx-shell th,
.cx-shell td {
    padding: 13px 16px;
    vertical-align: top;
    border-bottom: 1px solid var(--cx-line);
    font-variant-numeric: tabular-nums;
}
.cx-shell tbody tr:last-child > * {
    border-bottom: 0;
}
.cx-shell th {
    font-weight: 700;
}
.cx-shell tbody th {
    font-weight: 550;
}
.cx-prose .cx-table-wrap + * {
    margin-top: 20px;
}
.cx-anchor-alias {
    display: block;
    height: 0;
    scroll-margin-top: 130px;
}

.cx-faq {
    margin: 40px 0;
}
.cx-faq > h2,
.cx-sources > h2 {
    margin-top: 0;
}
.cx-faq details {
    border-top: 1px solid var(--cx-line);
    padding: 0 2px;
}
.cx-faq details:last-child {
    border-bottom: 1px solid var(--cx-line);
}
.cx-faq summary {
    position: relative;
    cursor: pointer;
    color: var(--cx-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    padding: 20px 28px 20px 0;
    list-style: none;
}
.cx-faq summary::-webkit-details-marker {
    display: none;
}
.cx-faq summary::after {
    content: '+';
    position: absolute;
    right: 2px;
    top: 17px;
    font-size: 22px;
    font-weight: 400;
    color: var(--cx-accent);
}
.cx-faq details[open] summary::after {
    content: '−';
}
.cx-faq details p {
    padding-right: 20px;
    font-size: 14px;
    margin: 0 0 20px;
    color: var(--cx-copy);
}
.cx-sources {
    padding: 26px;
    background: var(--cx-card);
    border: 1px solid var(--cx-line);
    border-radius: 12px;
    margin: 38px 0 28px;
}
.cx-sources h2 {
    font-size: 20px;
    margin-bottom: 12px;
}
.cx-sources p,
.cx-sources li {
    font-size: 12px;
    line-height: 1.8;
}
.cx-sources ol {
    padding-left: 20px;
    margin-bottom: 0;
}
.cx-sources li {
    margin: 9px 0;
    padding-left: 4px;
    scroll-margin-top: 130px;
}
.cx-editorial-note {
    font-size: 12px !important;
    line-height: 1.8 !important;
    padding: 0 0 28px;
    color: var(--cx-muted);
    border-bottom: 1px solid var(--cx-line);
}
.cx-tool-links {
    margin-top: 130px;
}
.cx-tool-links h2 {
    font-size: 19px;
    margin: 0 0 14px;
}
.cx-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.cx-link-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--cx-line);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 680;
    text-decoration: none !important;
    line-height: 1.6;
}
.cx-link-grid a::after {
    content: '↗';
    font-size: 16px;
}
.cx-link-grid a:hover {
    background: var(--cx-soft);
}
.cx-scenarios {
    margin: 38px 0;
    padding: 22px;
    background: var(--cx-card);
    border: 1px solid var(--cx-line);
    border-radius: 12px;
}
.cx-scenarios h2 {
    font-size: 22px;
    margin-top: 0;
}
.cx-scenarios p {
    font-size: 13px;
}
.cx-scenario-bars {
    display: grid;
    gap: 18px;
    margin: 24px 0;
}
.cx-scenario-bar-label {
    font-size: 12px;
    color: var(--cx-copy);
    margin-bottom: 7px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.cx-scenario-track {
    height: 9px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--cx-line);
}
.cx-scenario-fill {
    height: 100%;
    background: var(--cx-accent);
    min-width: 0;
}
.cx-related {
    border-top: 1px solid var(--cx-line);
    padding: 43px 0 65px;
    margin-top: 55px;
}
.cx-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.cx-section-head h2 {
    font-size: 25px;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin: 0;
}
.cx-section-head a {
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.cx-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.cx-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--cx-line);
    border-radius: 13px;
    background: var(--cx-card);
    padding: 24px;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.cx-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--cx-shadow);
}
.cx-card .cx-card-category {
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--cx-accent);
    margin: 0 0 15px;
}
.cx-card h3 {
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.cx-card h3 a {
    text-decoration: none;
    color: var(--cx-ink);
}
.cx-card h3 a:hover {
    color: var(--cx-accent);
}
.cx-card p {
    font-size: 13px;
    color: var(--cx-muted);
    line-height: 1.75;
    margin-bottom: 22px;
}
.cx-card .cx-card-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    font-size: 11px;
    color: var(--cx-muted);
    border-top: 1px solid var(--cx-line);
    padding-top: 16px;
}
.cx-card-bottom a {
    font-weight: 750;
    text-decoration: none;
}
/* Library index */
.cx-library-hero {
    padding: 47px 0 42px;
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 70px;
    align-items: center;
}
.cx-library-hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.65rem);
    max-width: 850px;
    margin-bottom: 22px;
}
.cx-library-hero h1 em {
    font-style: normal;
    color: var(--cx-accent);
}
.cx-library-hero .cx-deck {
    max-width: 700px;
}
.cx-library-mark {
    position: relative;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--cx-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cx-line);
}
.cx-library-mark::before,
.cx-library-mark::after {
    content: '';
    position: absolute;
    border: 1px solid var(--cx-line);
    border-radius: 50%;
    inset: 18px;
}
.cx-library-mark::after {
    inset: 40px;
}
.cx-library-mark .cx-mark-inner {
    text-align: center;
    z-index: 1;
}
.cx-library-mark strong {
    display: block;
    font-size: 80px;
    line-height: 1;
    font-weight: 750;
    letter-spacing: -0.07em;
    color: var(--cx-accent);
}
.cx-library-mark span {
    display: block;
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 14px;
    color: var(--cx-muted);
}
.cx-library-values {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--cx-muted);
    margin-top: 25px;
}
.cx-library-values span::before {
    content: '✓';
    margin-right: 7px;
    color: var(--cx-accent);
}
.cx-featured {
    margin: 18px 0 47px;
}
.cx-featured .cx-related-grid .cx-card:first-child {
    background: var(--cx-soft);
}
.cx-library-toolbar {
    border-top: 1px solid var(--cx-line);
    padding-top: 36px;
    margin-bottom: 28px;
    scroll-margin-top: 25px;
}
.cx-search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.cx-search-row h2 {
    font-size: 26px;
    margin: 0;
}
.cx-search-box {
    flex-basis: 380px;
    max-width: 100%;
    position: relative;
}
.cx-search-box label {
    display: block;
    font-size: 11px;
    font-weight: 750;
    margin-bottom: 6px;
    color: var(--cx-muted);
}
.cx-search-box input {
    display: block;
    width: 100%;
    min-height: 48px;
    background: var(--cx-card);
    border: 1px solid var(--cx-line);
    border-radius: 9px;
    color: var(--cx-ink);
    font-size: 15px;
    padding: 12px 16px;
}
.cx-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cx-filter {
    padding: 9px 12px;
    min-height: 39px;
    border: 1px solid var(--cx-line);
    border-radius: 7px;
    background: transparent;
    color: var(--cx-muted);
    font-size: 11px;
    font-weight: 650;
}
.cx-filter[aria-pressed='true'] {
    background: var(--cx-accent);
    color: var(--cx-bg);
    border-color: var(--cx-accent);
}
.cx-filter span {
    font-size: 10px;
    opacity: 0.8;
    margin-left: 4px;
}
.cx-search-status {
    font-size: 12px;
    color: var(--cx-muted);
    margin: 21px 0 0;
}
.cx-library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 60px;
}
.cx-empty {
    padding: 45px 20px;
    text-align: center;
    border: 1px dashed var(--cx-line);
    border-radius: 12px;
    margin-bottom: 50px;
}
.cx-empty h3 {
    font-size: 21px;
}
.cx-empty p {
    color: var(--cx-muted);
    font-size: 14px;
}
.cx-index-note {
    padding: 26px 0 42px;
    border-top: 1px solid var(--cx-line);
    max-width: 840px;
    color: var(--cx-muted);
    font-size: 13px;
    line-height: 1.8;
}
.cx-state-directory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 15px;
    list-style: none;
    padding: 0 !important;
}
.cx-state-directory li {
    margin: 0 !important;
}
.cx-state-directory a {
    font-size: 12px;
    display: block;
    padding: 6px 0;
}

@media (max-width: 1200px) {
    .cx-layout {
        grid-template-columns: minmax(0, 1fr) 230px;
        gap: 36px;
    }
}
@media (max-width: 1000px) {
    .cx-layout {
        grid-template-columns: minmax(0, 1fr) 210px;
        gap: 26px;
    }
    .cx-library-hero {
        grid-template-columns: 1fr 200px;
        gap: 35px;
    }
    .cx-library-mark strong {
        font-size: 64px;
    }
    .cx-library-grid,
    .cx-related-grid {
        gap: 15px;
    }
    .cx-card {
        padding: 20px;
    }
}
@media (max-width: 800px) {
    .cx-layout {
        display: block;
    }
    .cx-toc {
        display: none;
    }
    .cx-mobile-toc {
        display: block;
        margin: 0 0 30px;
        border: 1px solid var(--cx-line);
        border-radius: 9px;
        background: var(--cx-card);
        padding: 0 18px;
    }
    .cx-mobile-toc summary {
        font-size: 12px;
        font-weight: 750;
        color: var(--cx-ink);
        padding: 15px 0;
        cursor: pointer;
    }
    .cx-mobile-toc ol {
        margin: 0;
        padding: 0 0 17px 18px;
        font-size: 12px;
        line-height: 1.6;
    }
    .cx-mobile-toc li {
        padding: 6px 0;
    }
    .cx-mobile-toc a {
        text-decoration: none;
        color: var(--cx-copy);
    }
    .cx-hero {
        padding-bottom: 28px;
    }
    .cx-hero h1 {
        max-width: 750px;
    }
    .cx-meta {
        gap: 9px 15px;
    }
    .cx-library-hero {
        grid-template-columns: 1fr 170px;
    }
    .cx-library-hero h1 {
        font-size: 3rem;
    }
    .cx-library-mark strong {
        font-size: 55px;
    }
    .cx-library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cx-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .cx-card h3 {
        font-size: 16px;
    }
    .cx-related-grid .cx-card p {
        font-size: 12px;
    }
    .cx-breadcrumb {
        margin-top: 25px;
    }
    .cx-prose {
        font-size: 16px;
    }
}
@media (max-width: 580px) {
    .cx-shell {
        padding: 0 20px;
    }
    .cx-breadcrumb {
        font-size: 11px;
        margin: 23px 0 25px;
        gap: 8px;
    }
    .cx-hero h1 {
        font-size: 2.3rem;
        margin-bottom: 19px;
        letter-spacing: -0.035em;
    }
    .cx-hero .cx-deck {
        font-size: 15px;
        line-height: 1.75;
    }
    .cx-eyebrow {
        font-size: 10px;
        margin-bottom: 15px;
        letter-spacing: 0.11em;
    }
    .cx-meta {
        font-size: 10px;
        gap: 10px 12px;
    }
    .cx-meta .cx-read-time::before {
        margin-right: 10px;
    }
    .cx-layout {
        padding-top: 23px;
    }
    .cx-answer {
        padding: 22px 21px;
        margin-bottom: 22px;
    }
    .cx-answer p {
        font-size: 15px;
        line-height: 1.75;
    }
    .cx-answer-links {
        gap: 8px;
    }
    .cx-btn {
        font-size: 11px;
        padding: 10px 13px;
    }
    .cx-prose {
        font-size: 15px;
        line-height: 1.85;
    }
    .cx-prose h2 {
        font-size: 22px;
        margin-top: 32px;
    }
    .cx-prose blockquote {
        font-size: 14px;
        padding: 17px;
    }
    .cx-shell th,
    .cx-shell td {
        padding: 11px 12px;
        font-size: 12px;
    }
    .cx-faq summary {
        font-size: 14px;
    }
    .cx-sources {
        padding: 22px 19px;
    }
    .cx-link-grid {
        grid-template-columns: 1fr;
    }
    .cx-related {
        margin-top: 36px;
        padding-top: 32px;
        padding-bottom: 40px;
    }
    .cx-section-head h2 {
        font-size: 23px;
    }
    .cx-related-grid {
        grid-template-columns: 1fr;
    }
    .cx-related-grid .cx-card {
        padding: 23px;
    }
    .cx-related-grid .cx-card h3 {
        font-size: 19px;
    }
    .cx-related-grid .cx-card p {
        font-size: 13px;
    }
    .cx-library-hero {
        display: block;
        padding: 35px 0 28px;
    }
    .cx-library-hero h1 {
        font-size: 3rem;
        max-width: 440px;
    }
    .cx-library-mark {
        display: none;
    }
    .cx-library-values {
        gap: 10px 18px;
        margin-top: 20px;
    }
    .cx-library-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-bottom: 38px;
    }
    .cx-card {
        padding: 24px;
    }
    .cx-card h3 {
        font-size: 19px;
    }
    .cx-featured {
        margin-top: 16px;
        margin-bottom: 35px;
    }
    .cx-featured .cx-related-grid {
        grid-template-columns: 1fr;
    }
    .cx-search-row {
        display: block;
    }
    .cx-search-row h2 {
        margin-bottom: 22px;
        font-size: 25px;
    }
    .cx-filters {
        gap: 7px;
    }
    .cx-filter {
        font-size: 10px;
        padding: 8px 10px;
    }
    .cx-search-box {
        width: 100%;
    }
    .cx-state-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cx-editorial-note {
        font-size: 11px !important;
    }
}
@media (max-width: 360px) {
    .cx-shell {
        padding: 0 15px;
    }
    .cx-hero h1 {
        font-size: 2rem;
    }
    .cx-meta {
        font-size: 10px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .cx-shell * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
    .cx-card:hover,
    .cx-btn:hover {
        transform: none;
    }
}
@media print {
    html {
        background: #fff !important;
    }
    .cx-blog {
        --cx-bg: #fff !important;
        --cx-card: #fff !important;
        --cx-ink: #000 !important;
        --cx-copy: #222 !important;
        --cx-muted: #444 !important;
        --cx-line: #ccc !important;
        --cx-accent: #174f42 !important;
        --cx-soft: #f4f4f4 !important;
        --cx-soft-ink: #111 !important;
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt;
    }
    .cx-blog .navbar-wrapper,
    .cx-progress,
    .cx-toc,
    .cx-mobile-toc,
    .cx-share,
    .cx-answer-links,
    .cx-related,
    .cx-blog .foot,
    .cx-library-toolbar,
    .cx-featured {
        display: none !important;
    }
    .cx-shell {
        max-width: none;
        padding: 0;
    }
    .cx-layout {
        display: block;
        border: 0;
    }
    .cx-hero {
        padding-bottom: 14px;
    }
    .cx-hero h1 {
        font-size: 28pt;
    }
    .cx-prose {
        font-size: 11pt;
        line-height: 1.55;
    }
    .cx-answer,
    .cx-sources {
        box-shadow: none;
        break-inside: avoid;
    }
    .cx-prose h2 {
        font-size: 17pt;
        break-after: avoid;
    }
    .cx-table-wrap {
        overflow: visible !important;
        max-height: none !important;
    }
    .cx-shell table {
        font-size: 10pt;
    }
    .cx-shell thead {
        display: table-header-group;
    }
    .cx-shell tr {
        break-inside: avoid;
    }
    .cx-faq details > p {
        display: block !important;
    }
    .cx-library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cx-card {
        break-inside: avoid;
    }
    .cx-sources a::after {
        content: ' (' attr(href) ')';
        font-size: 8pt;
        overflow-wrap: anywhere;
    }
    .cx-shell a {
        text-decoration: none;
    }
    .cx-breadcrumb {
        margin-top: 0;
    }
}

/* Read first; calculator actions navigate to a standalone page. */
.cx-next-step {
    padding: 25px 26px;
    border: 1px solid var(--cx-line);
    border-left: 4px solid var(--cx-accent);
    background: var(--cx-soft);
    border-radius: 0 13px 13px 0;
    margin: 20px 0 24px;
    break-inside: avoid;
}
.cx-next-step .cx-next-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--cx-accent);
    margin: 0 0 10px;
}
.cx-next-step h3 {
    font-size: 22px;
    margin: 0 0 12px;
    line-height: 1.35;
}
.cx-next-step p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--cx-copy);
    margin-bottom: 18px;
}
.cx-next-step .cx-btn {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    justify-content: space-between;
    min-height: 46px;
}
.cx-next-step .cx-btn span[aria-hidden] {
    flex: none;
}
.cx-next-step .cx-next-note {
    display: block;
    font-size: 11px;
    line-height: 1.65;
    color: var(--cx-muted);
    margin: 12px 0 0;
}
.cx-tool-links .cx-related-tools-label {
    font-size: 12px;
    color: var(--cx-muted);
    font-weight: 700;
    margin: 22px 0 12px;
}
@media (max-width: 580px) {
    .cx-next-step {
        padding: 22px 19px;
    }
    .cx-next-step h3 {
        font-size: 20px;
    }
    .cx-next-step p {
        font-size: 13px;
    }
    .cx-next-step .cx-btn {
        font-size: 12px;
        width: 100%;
        padding: 12px 14px;
    }
}
@media print {
    .cx-next-step {
        box-shadow: none;
    }
    .cx-next-step .cx-btn {
        display: inline;
        color: #000 !important;
        background: none !important;
        border: 0 !important;
        padding: 0 !important;
        font-size: 10pt;
    }
    .cx-next-step .cx-btn::after {
        content: ' (calculover.com/' attr(data-cx-path) ')';
        font-size: 8pt;
        overflow-wrap: anywhere;
    }
    .cx-next-step .cx-btn span[aria-hidden] {
        display: none;
    }
    .cx-next-step .cx-next-note {
        display: none;
    }
}

.cx-blog .cx-skip {
    position: fixed;
    left: 16px;
    top: -100px;
    z-index: 10000;
    background: var(--cx-card);
    padding: 12px 20px;
    color: var(--cx-ink);
}
.cx-blog .cx-skip:focus {
    top: 12px;
}
.cx-blog .cx-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cx-accent);
    z-index: 9998;
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}
