:root {
    --rc-zt-ink: #172a2e;
    --rc-zt-muted: #50636a;
    --rc-zt-teal: #0f766e;
    --rc-zt-teal-dark: #0a5c57;
    --rc-zt-teal-soft: #e8f6f3;
    --rc-zt-amber: #a5520d;
    --rc-zt-amber-soft: #fff6e9;
    --rc-zt-line: #cfdedb;
    --rc-zt-surface: #f7fbfa;
    --rc-zt-white: #fff;
    --rc-zt-shadow: 0 12px 30px rgba(18, 58, 57, 0.09);
}

.rc-zt-card,
.rc-zt-reader-tools,
.rc-zt-faq-controls,
.rc-visual-grid,
.rc-article-figure,
.rc-consultation-grid {
    box-sizing: border-box;
}

.rc-zt-card *,
.rc-zt-reader-tools *,
.rc-zt-faq-controls *,
.rc-visual-grid *,
.rc-article-figure *,
.rc-consultation-grid * {
    box-sizing: border-box;
}

.rc-zt-card {
    max-width: 100%;
    margin: 2rem 0;
    padding: clamp(1.15rem, 3vw, 2rem);
    border: 1px solid var(--rc-zt-line);
    border-radius: 1rem;
    background: linear-gradient(145deg, var(--rc-zt-white), var(--rc-zt-surface));
    box-shadow: var(--rc-zt-shadow);
    color: var(--rc-zt-ink);
}

.rc-zt-card h2,
.rc-zt-card h3 {
    color: var(--rc-zt-ink);
}

.rc-zt-card h2 {
    margin: 0.15rem 0 0.65rem;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    line-height: 1.25;
}

.rc-zt-card h3 {
    margin-top: 0;
}

.rc-zt-card p {
    color: var(--rc-zt-muted);
}

.rc-zt-eyebrow {
    color: var(--rc-zt-teal);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rc-zt-button,
.rc-zt-filter {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border: 1px solid var(--rc-zt-teal);
    border-radius: 0.65rem;
    background: var(--rc-zt-teal);
    color: #fff;
    font: inherit;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.rc-zt-button:hover,
.rc-zt-filter:hover,
.rc-zt-filter.is-active {
    border-color: var(--rc-zt-teal-dark);
    background: var(--rc-zt-teal-dark);
    color: #fff;
}

.rc-zt-button-secondary,
.rc-zt-filter {
    background: #fff;
    color: var(--rc-zt-teal-dark);
}

.rc-zt-button-link {
    border-color: transparent;
    background: transparent;
    color: var(--rc-zt-teal-dark);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.rc-zt-button-link:hover {
    border-color: var(--rc-zt-teal-soft);
    background: var(--rc-zt-teal-soft);
    color: var(--rc-zt-teal-dark);
}

.rc-zt-button:focus-visible,
.rc-zt-filter:focus-visible,
.rc-zt-card input:focus-visible,
.rc-zt-card select:focus-visible,
.rc-zt-reader-tools select:focus-visible,
.rc-zt-lightbox-close:focus-visible,
a[data-rc-lightbox]:focus-visible {
    outline: 3px solid #f0a64a;
    outline-offset: 3px;
}

.rc-zt-actions,
.rc-zt-filter-bar,
.rc-zt-scenario-buttons,
.rc-zt-faq-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.rc-zt-quiz-progress {
    margin: 1rem 0;
    color: var(--rc-zt-teal-dark);
    font-weight: 750;
}

.rc-zt-question {
    margin: 0;
    padding: 1.25rem 0;
    border: 0;
    border-top: 1px solid var(--rc-zt-line);
}

.rc-zt-question legend {
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0;
    color: var(--rc-zt-ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.rc-zt-question legend:focus-visible {
    outline: 3px solid #f0a64a;
    outline-offset: 4px;
}

.rc-zt-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.rc-zt-choice {
    position: relative;
    display: flex;
    min-height: 3.5rem;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--rc-zt-line);
    border-radius: 0.7rem;
    background: #fff;
    color: var(--rc-zt-ink);
    cursor: pointer;
}

.rc-zt-choice:hover {
    border-color: var(--rc-zt-teal);
    background: var(--rc-zt-teal-soft);
}

.rc-zt-choice:has(input:checked) {
    border-color: var(--rc-zt-teal);
    background: var(--rc-zt-teal-soft);
    box-shadow: inset 0 0 0 1px var(--rc-zt-teal);
}

.rc-zt-choice input {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
    accent-color: var(--rc-zt-teal);
}

.rc-zt-result {
    margin-top: 1.2rem;
    padding: 1.15rem;
    border-left: 0.3rem solid var(--rc-zt-teal);
    border-radius: 0.7rem;
    background: var(--rc-zt-teal-soft);
}

.rc-zt-result[hidden] {
    display: none;
}

.rc-zt-saved-return {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--rc-zt-line);
    border-radius: 0.7rem;
    background: var(--rc-zt-teal-soft);
}

.rc-zt-saved-return[hidden],
.rc-zt-scenario-fallback[hidden] {
    display: none;
}

.rc-zt-warning {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #efc492;
    border-radius: 0.65rem;
    background: var(--rc-zt-amber-soft);
    color: #663609;
}

.rc-zt-warning ul {
    margin-bottom: 0;
}

.rc-zt-reader-tools {
    position: static;
    width: 100%;
    margin: 0.75rem 0 1.5rem;
    border: 1px solid var(--rc-zt-line);
    border-radius: 0.8rem;
    background: var(--rc-zt-surface);
    box-shadow: 0 6px 18px rgba(18, 58, 57, 0.08);
}

.rc-zt-meter {
    height: 0.3rem;
    overflow: hidden;
    border-radius: 1rem;
    background: #deebe8;
}

.rc-zt-meter span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--rc-zt-teal), #2ca48f);
    transition: width 160ms ease-out;
}

.rc-zt-reader-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem;
}

.rc-zt-reader-note {
    flex: 1 1 16rem;
    margin: 0 0.25rem;
    color: var(--rc-zt-ink);
    font-size: 0.88rem;
    font-weight: 750;
}

.rc-zt-reader-tools select,
.rc-zt-card select,
.rc-zt-card input[type="number"] {
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #aebfbc;
    border-radius: 0.55rem;
    background: #fff;
    color: var(--rc-zt-ink);
    font: inherit;
}

.rc-zt-reader-tools select {
    min-width: 10rem;
    flex: 1 1 15rem;
}

.rc-zt-reader-tools .rc-zt-button {
    min-height: 2.35rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
}

.rc-zt-sr-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.rc-zt-filter-bar,
.rc-zt-scenario-buttons {
    margin: 1rem 0;
}

.rc-zt-filter {
    min-height: 2.45rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    font-size: 0.88rem;
}

.rc-zt-table-scroll,
.rc-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--rc-zt-line);
    border-radius: 0.7rem;
}

.rc-zt-table-scroll:focus-visible,
.rc-table-scroll:focus-visible {
    outline: 3px solid #f0a64a;
    outline-offset: 2px;
}

.rc-zt-table-scroll table,
.rc-table-scroll table {
    width: 100%;
    min-width: 760px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.rc-zt-table-scroll th,
.rc-zt-table-scroll td,
.rc-table-scroll th,
.rc-table-scroll td {
    padding: 0.8rem;
    border: 0;
    border-bottom: 1px solid var(--rc-zt-line);
    vertical-align: top;
    text-align: left;
}

.rc-zt-table-scroll thead th,
.rc-table-scroll thead th {
    background: var(--rc-zt-teal-dark);
    color: #fff;
}

.rc-zt-table-scroll tbody th,
.rc-table-scroll tbody th {
    background: var(--rc-zt-surface);
    color: var(--rc-zt-ink);
}

.rc-zt-table-scroll tr:last-child th,
.rc-zt-table-scroll tr:last-child td,
.rc-table-scroll tr:last-child th,
.rc-table-scroll tr:last-child td {
    border-bottom: 0;
}

.rc-zt-table-scroll tr[hidden],
.rc-table-scroll tr[hidden] {
    display: none;
}

.rc-zt-filter-target tr[hidden] {
    display: none !important;
}

.rc-table-hint {
    margin: 0.45rem 0;
    color: var(--rc-zt-muted);
    font-size: 0.82rem;
}

.rc-zt-status,
.rc-zt-footnote {
    font-size: 0.86rem;
}

.rc-zt-tco-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1.1rem 0;
}

.rc-zt-tco-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--rc-zt-line);
    border-radius: 0.75rem;
    background: #fff;
}

.rc-zt-tco-panel legend {
    padding: 0 0.35rem;
    color: var(--rc-zt-ink);
    font-weight: 800;
}

.rc-zt-tco-panel label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: var(--rc-zt-ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.rc-zt-tco-panel label small {
    color: var(--rc-zt-muted);
    font-weight: 400;
}

.rc-zt-tco-panel .rc-zt-check {
    flex-direction: row;
    align-items: flex-start;
}

.rc-zt-tco-panel .rc-zt-check input {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
    accent-color: var(--rc-zt-teal);
}

.rc-zt-tco [hidden] {
    display: none !important;
}

.rc-zt-cost-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1rem 0;
}

.rc-zt-cost-results article {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--rc-zt-teal-soft);
}

.rc-zt-cost-results strong {
    color: var(--rc-zt-teal-dark);
    font-size: clamp(1.45rem, 4vw, 2.1rem);
}

.rc-zt-cost-results small {
    color: var(--rc-zt-muted);
    line-height: 1.45;
}

.rc-zt-callout {
    padding: 0.9rem 1rem;
    border-left: 0.28rem solid var(--rc-zt-amber);
    border-radius: 0.45rem;
    background: var(--rc-zt-amber-soft);
    color: #663609;
}

.rc-zt-scenario-output {
    min-height: 8rem;
    padding: 1rem;
    border: 1px solid var(--rc-zt-line);
    border-radius: 0.75rem;
    background: #fff;
}

.rc-zt-scenario-fallback {
    margin-top: 1rem;
}

.rc-zt-scenario-fallback details {
    margin: 0.55rem 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--rc-zt-line);
    border-radius: 0.65rem;
    background: #fff;
}

.rc-zt-scenario-fallback summary {
    color: var(--rc-zt-ink);
    font-weight: 800;
    cursor: pointer;
}

.rc-zt-meter {
    height: 0.55rem;
    margin-top: 1rem;
}

.rc-zt-checklist-items {
    margin: 1rem 0;
    padding-left: 2.2rem;
}

.rc-zt-checklist-items li {
    margin-bottom: 0.55rem;
    padding: 0.35rem 0 0.35rem 0.2rem;
}

.rc-zt-checklist-items label {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    color: var(--rc-zt-ink);
    cursor: pointer;
}

.rc-zt-checklist-items input {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    margin-top: 0.2rem;
    accent-color: var(--rc-zt-teal);
}

.rc-zt-checklist-items input:checked + span {
    color: var(--rc-zt-muted);
    text-decoration: line-through;
}

.rc-zt-faq-controls {
    margin: 1rem 0;
    padding: 0.75rem;
    border: 1px solid var(--rc-zt-line);
    border-radius: 0.75rem;
    background: var(--rc-zt-surface);
}

.rc-zt-faq-controls > span:first-child {
    color: var(--rc-zt-ink);
    font-weight: 800;
}

details.rc-faq-item,
details[data-rc-faq],
.rc-faq-list details {
    margin: 0.7rem 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--rc-zt-line);
    border-radius: 0.65rem;
    background: #fff;
}

details.rc-faq-item summary,
details[data-rc-faq] summary,
.rc-faq-list details summary {
    color: var(--rc-zt-ink);
    font-weight: 800;
    cursor: pointer;
}

.rc-visual-grid,
.rc-consultation-grid,
.rc-dashboard-mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.rc-visual-card,
.rc-consultation-grid > *,
.rc-dashboard-mosaic > * {
    min-width: 0;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid var(--rc-zt-line);
    border-radius: 0.8rem;
    background: #fff;
}

.rc-dashboard-mosaic {
    margin: 0;
}

.rc-article-figure {
    max-width: 100%;
    margin: 1.5rem auto;
    padding: 0;
}

.rc-visual-card img,
.rc-article-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.55rem;
}

.rc-visual-card figcaption,
.rc-article-figure figcaption {
    margin-top: 0.6rem;
    color: var(--rc-zt-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.rc-image-note {
    color: var(--rc-zt-muted);
    font-size: 0.86rem;
}

.rc-consultation-grid .rc-as-help {
    max-width: none;
    margin: 0;
}

/*
 * The live ReconScribe reader theme applies long-form typography with
 * !important. Keep those rules outside the embedded decision tools, form and
 * image mosaics so their compact UI remains usable without changing the rest
 * of the article.
 */
body.single-post .reader-article-content .rc-zt-card,
body.single-post .reader-article-content .rc-zt-reader-tools,
body.single-post .reader-article-content .rc-zt-faq-controls,
body.single-post .reader-article-content .rc-as-help {
    font-family: var(--font-ui, Arial, sans-serif) !important;
}

body.single-post .reader-article-content .rc-zt-card h2 {
    margin: 0.15rem 0 0.65rem !important;
    color: var(--rc-zt-ink) !important;
    font-family: var(--font-ui, Arial, sans-serif) !important;
    font-size: clamp(1.35rem, 3vw, 1.85rem) !important;
    line-height: 1.25 !important;
    letter-spacing: normal !important;
}

body.single-post .reader-article-content .rc-zt-card h3,
body.single-post .reader-article-content .rc-as-help h3 {
    margin: 0 0 0.65rem !important;
    color: var(--rc-zt-ink) !important;
    font-family: var(--font-ui, Arial, sans-serif) !important;
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
    letter-spacing: normal !important;
}

body.single-post .reader-article-content .rc-as-help h3 {
    color: var(--rc-zt-teal) !important;
    font-size: 1.375rem !important;
}

body.single-post .reader-article-content .rc-zt-card p,
body.single-post .reader-article-content .rc-as-help p {
    margin: 0 0 0.85rem !important;
    color: var(--rc-zt-muted) !important;
    font-family: var(--font-ui, Arial, sans-serif) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

body.single-post .reader-article-content .rc-zt-card p strong,
body.single-post .reader-article-content .rc-as-help p strong {
    color: inherit !important;
}

body.single-post .reader-article-content .rc-zt-card ul,
body.single-post .reader-article-content .rc-zt-card ol,
body.single-post .reader-article-content .rc-as-help ul,
body.single-post .reader-article-content .rc-as-help ol {
    margin: 0.75rem 0 1rem 1.35rem !important;
    padding-left: 0.75rem !important;
    color: var(--rc-zt-ink) !important;
    font-family: var(--font-ui, Arial, sans-serif) !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
}

body.single-post .reader-article-content .rc-zt-card li,
body.single-post .reader-article-content .rc-as-help li {
    margin-bottom: 0.45rem !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

body.single-post .reader-article-content .rc-visual-grid,
body.single-post .reader-article-content .rc-dashboard-mosaic,
body.single-post .reader-article-content .rc-consultation-grid {
    margin: 1.5rem 0 !important;
}

body.single-post .reader-article-content .rc-dashboard-mosaic {
    margin: 0 !important;
}

body.single-post .reader-article-content .rc-visual-card,
body.single-post .reader-article-content .rc-dashboard-mosaic > *,
body.single-post .reader-article-content .rc-consultation-grid > * {
    margin: 0 !important;
}

body.single-post .reader-article-content .rc-article-figure {
    margin: 1.5rem auto !important;
}

body.single-post .reader-article-content .rc-consultation-grid > .rc-article-figure {
    margin: 0 !important;
}

body.single-post .reader-article-content .rc-visual-card img,
body.single-post .reader-article-content .rc-dashboard-mosaic img,
body.single-post .reader-article-content .rc-article-figure img,
body.single-post .reader-article-content .rc-consultation-grid img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 0.55rem !important;
    box-shadow: none !important;
}

body.single-post .reader-article-content .rc-visual-card figcaption,
body.single-post .reader-article-content .rc-article-figure figcaption {
    margin: 0.6rem 0 0 !important;
    color: var(--rc-zt-muted) !important;
    font-family: var(--font-ui, Arial, sans-serif) !important;
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
}

body.single-post .reader-article-content .rc-consultation-grid .rc-as-help {
    max-width: none !important;
    margin: 0 !important;
}

body.single-post .reader-article-content .rc-table-scroll table,
body.single-post .reader-article-content .rc-zt-table-scroll table {
    margin: 0 !important;
    font-family: var(--font-ui, Arial, sans-serif) !important;
    font-size: 0.92rem !important;
    box-shadow: none !important;
}

body.single-post .reader-article-content .rc-zt-card .rc-zt-checklist-items {
    margin: 1rem 0 !important;
    padding-left: 2.2rem !important;
}

body.single-post .reader-article-content .rc-zt-card .rc-zt-warning ul {
    margin: 0.5rem 0 0 1.2rem !important;
    padding-left: 0.75rem !important;
}

.entry-content h2[id],
.post-content h2[id],
article h2[id] {
    scroll-margin-top: 7rem;
}

.rc-answer-routes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0 1.5rem;
}

.rc-answer-routes a {
    display: inline-flex;
    min-height: 2.65rem;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--rc-zt-teal);
    border-radius: 999px;
    color: var(--rc-zt-teal-dark);
    font-weight: 750;
    text-decoration: none;
}

.rc-answer-routes a:hover,
.rc-answer-routes a:focus-visible {
    background: var(--rc-zt-teal-soft);
}

a[data-rc-lightbox] {
    display: block;
    border-radius: 0.55rem;
    cursor: zoom-in;
}

.rc-zt-modal-open {
    overflow: hidden;
}

.rc-zt-lightbox {
    width: min(94vw, 1180px);
    max-width: none;
    max-height: 92vh;
    padding: 2.75rem 1rem 1rem;
    border: 0;
    border-radius: 0.8rem;
    background: #0d181a;
    color: #fff;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

.rc-zt-lightbox::backdrop {
    background: rgba(4, 16, 18, 0.86);
}

.rc-zt-lightbox figure {
    margin: 0;
}

.rc-zt-lightbox img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 75vh;
    margin: 0 auto;
    object-fit: contain;
}

.rc-zt-lightbox figcaption {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
    margin-top: 0.7rem;
    color: #e6efed;
    font-size: 0.9rem;
}

.rc-zt-lightbox figcaption a {
    color: #8de1d5;
}

.rc-zt-lightbox-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    min-height: 2.2rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid #8de1d5;
    border-radius: 0.45rem;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

@media (max-width: 760px) {
    .rc-zt-choice-grid,
    .rc-zt-tco-grid,
    .rc-zt-cost-results,
    .rc-visual-grid,
    .rc-consultation-grid,
    .rc-dashboard-mosaic {
        grid-template-columns: 1fr;
    }

    .rc-zt-reader-row {
        align-items: center;
        padding: 0.55rem;
    }

    .rc-zt-reader-tools .rc-zt-button {
        width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
    }

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

@media (prefers-reduced-motion: reduce) {
    .rc-zt-meter span {
        transition: none;
    }
}

@media print {
    .rc-zt-reader-tools,
    .rc-zt-faq-controls,
    .rc-zt-actions,
    .rc-zt-filter-bar,
    .rc-zt-scenario-buttons {
        display: none !important;
    }

    .rc-zt-card {
        break-inside: avoid;
        box-shadow: none;
    }

    .rc-zt-table-scroll,
    .rc-table-scroll {
        overflow: visible;
    }

    details.rc-faq-item > *:not(summary),
    .rc-faq-list details > *:not(summary),
    .rc-zt-scenario-fallback details > *:not(summary) {
        display: block !important;
    }
}
