/* site palette */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100%; }
html:root {
    --bg: #FAF7F4;
    --surface: #FAF7F4;
    --surface-alt: #F6ECEE;
    --text: #271F18;
    --text-muted: #72665A;
    --border: #E4DED8;
    --primary: #561E2B;
    --primary-hover: #3C151E;
    --on-primary: #FFFFFF;
    --primary-text: #561E2B;
    --accent: #DDCDB5;
    --on-accent: #111111;
    --accent-text: #886A3E;
    --dark-band: #321119;
    --on-dark: #FFFFFF;
    --on-dark-muted: #C3BDB6;
    --brand-btn-bg: #FFFFFF;
    --brand-btn-text: #321119;
    --section-alt-bg: #F6ECEE;
    --dark-band-bg: #321119;
    --brand-band-bg: #561E2B;
    --hero-bg: #321119;
}

/* /site palette */

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

body {
    font-family: 'Karla', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.text-muted {
    color: var(--text-muted) !important;
}

.esy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: var(--on-primary);
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease-in-out, border-color 0.25s ease-in-out, color 0.25s ease-in-out, transform 0.2s ease-in-out;
}

.esy-btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--on-primary);
}

.esy-btn-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--primary-text);
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease-in-out, border-color 0.25s ease-in-out, color 0.25s ease-in-out;
}

.esy-btn-alt:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
}

.esy-card {
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2.25rem;
    box-shadow: 0 4px 20px -2px rgba(39, 31, 24, 0.05);
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.esy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -4px rgba(39, 31, 24, 0.09);
}

.esy-media {
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    border-radius: 4px;
    border: 1px solid var(--border);
    overflow: hidden;
    background-color: var(--surface-alt);
}

.esy-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.esy-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.esy-title {
    font-size: 2.25rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0 0 1rem 0;
}

.esy-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    background-color: var(--surface-alt);
    color: var(--primary-text);
    border: 1px solid var(--border);
}

.esy-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--surface-alt);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    flex-shrink: 0;
}

.esy-section {
    background-color: var(--bg);
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.esy-section-alt {
    background-color: var(--section-alt-bg, var(--surface-alt));
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.esy-section-dark {
    background-color: var(--dark-band-bg, var(--dark-band));
    color: var(--on-dark);
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.esy-section-brand {
    background-color: var(--brand-band-bg, var(--primary));
    color: var(--on-primary);
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 768px) {

    .esy-section,
    .esy-section-alt,
    .esy-section-dark,
    .esy-section-brand {
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }
}

.esy-on-dark,
.esy-section-dark {
    color: var(--on-dark);
}

.esy-on-dark h1,
.esy-on-dark h2,
.esy-on-dark h3,
.esy-on-dark h4,
.esy-section-dark h1,
.esy-section-dark h2,
.esy-section-dark h3,
.esy-section-dark h4 {
    color: var(--on-dark);
}

.esy-on-dark p,
.esy-section-dark p {
    color: var(--on-dark-muted);
}

.esy-on-dark .esy-eyebrow,
.esy-section-dark .esy-eyebrow {
    color: var(--accent-text, #DDCDB5);
}

.esy-on-dark .esy-title,
.esy-section-dark .esy-title {
    color: var(--on-dark);
}

.esy-on-dark .esy-btn-alt,
.esy-section-dark .esy-btn-alt {
    border-color: var(--on-dark);
    color: var(--on-dark);
}

.esy-on-dark .esy-btn-alt:hover,
.esy-section-dark .esy-btn-alt:hover {
    background-color: var(--on-dark);
    color: var(--dark-band);
}

.esy-section-brand .esy-btn {
    background-color: var(--brand-btn-bg, #FFFFFF);
    color: var(--brand-btn-text, #321119);
    border-color: var(--brand-btn-bg, #FFFFFF);
}

.esy-section-brand .esy-btn:hover {
    background-color: var(--bg);
    color: var(--primary);
    border-color: var(--bg);
}

.esy-section-brand .esy-btn-alt {
    border-color: var(--on-primary);
    color: var(--on-primary);
}

.esy-section-brand .esy-btn-alt:hover {
    background-color: var(--on-primary);
    color: var(--primary);
}

.esy-section-dark .esy-card,
.esy-on-dark .esy-card {
    background-color: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.esy-section-dark .esy-card p,
.esy-on-dark .esy-card p {
    color: var(--text-muted);
}

.esy-section-dark .esy-card h1,
.esy-section-dark .esy-card h2,
.esy-section-dark .esy-card h3,
.esy-section-dark .esy-card h4,
.esy-on-dark .esy-card h1,
.esy-on-dark .esy-card h2,
.esy-on-dark .esy-card h3,
.esy-on-dark .esy-card h4 {
    color: var(--text);
}

/* ===== header ===== */
.cdl-header {
    font-family: 'Karla', sans-serif;
}

.cdl-header a,
.cdl-header button {
    outline-offset: 2px;
}

.cdl-header .cdl-dropdown-panel {
    box-shadow: 0 12px 30px rgba(50, 17, 25, 0.08);
}

.cdl-header .js-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.cdl-header .js-mobile-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .cdl-header .cdl-nav {
        height: 68px;
    }
}

/* ===== hero ===== */
.hero-ledger-block {
    background-color: var(--dark-band, #321119);
    position: relative;
}

.hero-ledger-block__dots-left,
.hero-ledger-block__dots-right {
    background-image: radial-gradient(#DDCDB5 1.5px, transparent 1.5px);
    background-size: 12px 12px;
}

.hero-ledger-block .hero-ledger-block__input::placeholder {
    color: #72665A;
    opacity: 1;
}

.hero-ledger-block .hero-ledger-block__input:focus {
    border-color: var(--primary, #561E2B);
}

.hero-ledger-block a {
    overflow-wrap: anywhere;
}

.hero-ledger-block h1 {
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .hero-ledger-block {
        padding-top: 2.5rem;
        padding-bottom: 3.5rem;
    }

    .hero-ledger-block__form-card {
        padding: 1rem;
    }
}

/* ===== architecture_features ===== */
.arch-features-section {
    background-color: var(--primary);
    color: var(--on-primary);
}

.arch-features-section .esy-card {
    min-height: 100%;
    overflow-wrap: anywhere;
}

.arch-features-section h2,
.arch-features-section h3,
.arch-features-section h4 {
    overflow-wrap: anywhere;
    hyphens: auto;
}

@media (max-width: 767px) {
    .arch-features-section .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== featured_case ===== */
.featured-case-block .case-discipline-card {
    transition: transform .25s ease-in-out, box-shadow .25s ease-in-out
}

.featured-case-block .case-discipline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -4px rgba(39, 31, 24, .08)
}

.featured-case-block .js-case-filter.active {
    background: var(--primary);
    color: var(--on-primary)
}

.featured-case-block .js-case-filter:not(.active) {
    background: var(--surface-alt);
    color: var(--text);
    border: 1px solid var(--border)
}

.featured-case-block .js-case-filter:not(.active):hover {
    background: var(--border);
    color: var(--primary)
}

.featured-case-block .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1
}

@media (max-width:767px) {
    .featured-case-block .grid {
        grid-template-columns: 1fr
    }
}

/* ===== included_excluded ===== */
.scope-grid {
    align-items: stretch;
}

.scope-grid .esy-card {
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.scope-grid .esy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -4px rgba(39, 31, 24, 0.09);
}

@media (max-width: 767px) {
    .scope-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== interactive_tour ===== */
.interactive-tour-block .tour-step-btn.active {
    background-color: #240B12;
    border-top: 2px solid #DDCDB5;
}

.interactive-tour-block .tour-step-btn.active .step-num {
    background-color: #DDCDB5;
    color: #1C080E;
}

.interactive-tour-block .tour-step-btn:hover:not(.active) {
    background-color: #38151F;
}

.interactive-tour-block .js-map-toggle.active {
    background-color: #561E2B;
    color: #FFFFFF;
    border-color: #561E2B;
}

.interactive-tour-block .js-verdict-btn.active {
    outline: 2px solid #DDCDB5;
    outline-offset: 1px;
}

@media (max-width: 767px) {
    .interactive-tour-block .workbench-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .interactive-tour-block .tour-step-btn {
        border-bottom: 1px solid rgba(228, 222, 216, 0.1);
    }
}

/* ===== problem_selector ===== */
.cdiff-prob-section {
    background-color: var(--bg, #FAF7F4);
}

.cdiff-prob-section .cdiff-prob-filter {
    background-color: var(--surface, #FAF7F4);
    color: var(--text, #271F18);
    border: 1px solid var(--border, #E4DED8);
}

.cdiff-prob-section .cdiff-prob-filter:hover {
    border-color: var(--primary, #561E2B);
    color: var(--primary, #561E2B);
}

.cdiff-prob-section .cdiff-prob-filter.is-active {
    background-color: var(--primary, #561E2B);
    color: var(--on-primary, #FFFFFF);
    border-color: var(--primary, #561E2B);
}

.cdiff-prob-section .cdiff-prob-card {
    box-shadow: 0 4px 20px -2px rgba(39, 31, 24, 0.05);
}

.cdiff-prob-section .cdiff-prob-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -4px rgba(39, 31, 24, 0.09);
    border-color: var(--primary, #561E2B);
}

.cdiff-prob-section .cdiff-prob-card.is-hidden {
    display: none;
}

@media (max-width: 767px) {
    .cdiff-prob-section .js-problem-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== press_mentions ===== */
.cdiff-press-section .cdiff-press-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-wrap: anywhere;
}

.cdiff-press-section .esy-media img {
    transition: transform 0.35s ease;
}

.cdiff-press-section .cdiff-press-card:hover .esy-media img {
    transform: scale(1.03);
}

@media (max-width: 767px) {
    .cdiff-press-section .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Editorial Coverage: mobile card fixes ===== */
@media (max-width: 767px) {
    .cdiff-press-section .grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding-left: 0;
        padding-right: 0;
        margin: 0;
    }
    .cdiff-press-section .max-w-\[1200px\] {
        padding-left: 16px;
        padding-right: 16px;
    }
    .cdiff-press-section .cdiff-press-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        margin: 0;
        padding: 16px;
        overflow: hidden;
    }
    .cdiff-press-section .cdiff-press-card .esy-media {
        width: 100%;
        max-width: 100%;
        height: 180px;
        overflow: hidden;
    }
    .cdiff-press-section .cdiff-press-card .esy-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .cdiff-press-section .cdiff-press-card > div:first-child {
        min-width: 0;
    }
    .cdiff-press-section .cdiff-press-card .flex.items-center.justify-between {
        flex-wrap: wrap;
        gap: 8px;
    }
    .cdiff-press-section .cdiff-press-card .pt-4.mt-4 {
        flex-wrap: wrap;
        gap: 8px;
        align-items: flex-start;
    }
    .cdiff-press-section .cdiff-press-card .pt-4.mt-4 > span {
        flex: 0 0 auto;
    }
    .cdiff-press-section .cdiff-press-card .cdiff-coverage-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* ===== Editorial Coverage: Read Coverage buttons ===== */
.cdiff-press-section .cdiff-coverage-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    background-color: var(--primary);
    color: var(--on-primary);
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.cdiff-press-section .cdiff-coverage-btn i {
    color: var(--on-primary);
}
.cdiff-press-section .cdiff-coverage-btn:hover,
.cdiff-press-section .cdiff-coverage-btn:focus,
.cdiff-press-section .cdiff-coverage-btn:active {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--on-primary);
}
.cdiff-press-section .cdiff-coverage-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== grid_comparison ===== */
#grid-comparison-section .esy-eyebrow {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #561E2B
}

#grid-comparison-section .esy-card {
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out
}

#grid-comparison-section .esy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -4px rgba(39, 31, 24, 0.09)
}

#grid-comparison-section .esy-media {
    transition: transform 0.4s ease-out
}

#grid-comparison-section .esy-card:hover .esy-media {
    transform: scale(1.03)
}

@media (max-width:767px) {
    #grid-comparison-section .grid {
        grid-template-columns: 1fr
    }
}

/* ===== footer ===== */
.cd-footer {
    background-color: var(--dark-band, #321119);
    font-family: var(--font-family-base, 'Karla', sans-serif);
    overflow-wrap: anywhere;
}

.cd-footer-disclaimer {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.2);
}

.cd-footer a {
    transition: color 0.2s ease-in-out;
}

@media (max-width: 767px) {
    .cd-footer .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE: hp-tuners-guide ===== */
.hp-guide-root .js-stage-btn.active{background-color:var(--primary);color:var(--on-primary);border-color:var(--primary);}.hp-guide-root .js-stage-btn:hover:not(.active){border-color:var(--primary);color:var(--primary-text);}.hp-guide-root .esy-card{transition:box-shadow 0.25s ease-in-out,border-color 0.25s ease-in-out;}.hp-guide-root a{transition:color 0.2s ease-in-out;}

/* ===== PAGE: calibration-guides ===== */
.guide-category-page .guide-plan-card.is-active{border-color:var(--primary);background-color:#FFFFFF}.guide-category-page .guide-plan-card{transition:all .2s ease-in-out}.guide-category-page .guide-plan-card:hover{transform:translateY(-2px)}

/* ===== PAGE: version-comparison ===== */
.c-diff-catalog .esy-card{transition:transform 0.25s ease,box-shadow 0.25s ease;}.c-diff-catalog .esy-card:hover{transform:translateY(-3px);}.c-diff-catalog input::placeholder,.c-diff-catalog textarea::placeholder,.c-diff-service input::placeholder,.c-diff-service textarea::placeholder{color:var(--text-muted);opacity:0.85;}
/* Uniform grid: 3 cols desktop, 2 tablet, 1 mobile, 24px gap, equal heights */
.c-diff-uniform-grid{display:grid;grid-template-columns:1fr;gap:24px;align-items:stretch;}
@media (min-width:768px){.c-diff-uniform-grid{grid-template-columns:repeat(2,1fr);}}
@media (min-width:1024px){.c-diff-uniform-grid{grid-template-columns:repeat(3,1fr);}}
.c-diff-uniform-grid .esy-card{display:flex;flex-direction:column;height:100%;}
.c-diff-uniform-grid .esy-card > a{display:block;width:100%;height:200px;overflow:hidden;}
.c-diff-uniform-grid .esy-card > a img{width:100%;height:100%;object-fit:cover;}
.c-diff-uniform-grid .esy-card > div{display:flex;flex-direction:column;flex-grow:1;}
.c-diff-uniform-grid .esy-card .mt-auto{margin-top:auto;}

/* ===== PAGE: tools-software ===== */
.tools-catalog-section input::placeholder {
  color: #72665A;
  opacity: 0.8;
}

.tools-catalog-section .tariff-btn.is-active {
  background-color: #561E2B;
  color: #FFFFFF;
  border-color: #561E2B;
}

.tools-catalog-section .tariff-btn.is-active span {
  color: #FFFFFF;
}

@media (max-width: 767px) {
  .tools-catalog-section .tools-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PAGE: change-ledger ===== */
.category-ledger-section .ledger-item-card {
  min-height: 100%;
  overflow-wrap: anywhere;
}
.category-ledger-section .ledger-item-card:hover {
  border-color: #561E2B;
}
.category-ledger-section .ledger-item-card img {
  transition: transform 0.3s ease;
}
.category-ledger-section .ledger-item-card:hover img {
  transform: scale(1.03);
}
.category-ledger-section input::placeholder,
.category-ledger-section textarea::placeholder {
  color: #72665A;
  opacity: 0.85;
}
@media (max-width: 767px) {
  .category-ledger-section .ledger-item-card {
    width: 100%;
  }
}

/* ===== PAGE: documentation-standards ===== */
.category-standards-block input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}
.category-standards-block .js-tariff-btn.is-active {
  background-color: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}
@media (max-width: 767px) {
  .category-standards-block .grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PAGE: about ===== */
.about-block .about-media-wrapper { background-color: #F6ECEE; } @media (max-width: 767px) { .about-block .about-media-wrapper img { height: 260px; } }

/* ===== PAGE: privacy ===== */
.privacy-policy-block {
  overflow-wrap: anywhere;
}
.privacy-policy-block a {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
@media (max-width: 767px) {
  .privacy-policy-block .grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PAGE: terms ===== */
.legal-content-block h2,
.legal-content-block h3 {
  overflow-wrap: anywhere;
}
.legal-content-block p,
.legal-content-block li {
  overflow-wrap: break-word;
}
.legal-content-block a {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
@media (max-width: 767px) {
  .legal-content-block .esy-card {
    padding: 1.25rem;
  }
}

/* ===== PAGE: disclaimer ===== */
.legal-disclaimer-block {
  word-break: break-word;
  overflow-wrap: anywhere;
}
.legal-disclaimer-block h2 {
  line-height: 1.3;
}
.legal-disclaimer-block p {
  line-height: 1.65;
}
@media (max-width: 767px) {
  .legal-disclaimer-block h2 {
    font-size: 16px;
  }
}

.audit-comment-item {
    font-family: 'Karla', sans-serif;
}

.audit-avatar {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    line-height: 1;
    border: 1px solid #E4DED8;
}

.comment-action-btn:hover {
    background-color: #F6ECEE;
}

.comment-action-btn:active {
    transform: translateY(1px);
}

.audit-reply-item {
    font-family: 'Karla', sans-serif;
}

.audit-avatar {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    line-height: 1;
}

.comment-action-btn:hover {
    background-color: #F6ECEE;
}

.comment-action-btn:active {
    transform: translateY(1px);
}


/* ===== PAGE TEMPLATE: calibration-guides-list ===== */
.cdl-header {
    font-family: 'Karla', sans-serif;
}

.cdl-header a,
.cdl-header button {
    outline-offset: 2px;
}

.cdl-header .cdl-dropdown-panel {
    box-shadow: 0 12px 30px rgba(50, 17, 25, 0.08);
}

.cdl-header .js-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.cdl-header .js-mobile-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .cdl-header .cdl-nav {
        height: 68px;
    }
}

.cd-footer {
    background-color: var(--dark-band, #321119);
    font-family: var(--font-family-base, 'Karla', sans-serif);
    overflow-wrap: anywhere;
}

.cd-footer-disclaimer {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.2);
}

.cd-footer a {
    transition: color 0.2s ease-in-out;
}

@media (max-width: 767px) {
    .cd-footer .grid {
        grid-template-columns: 1fr;
    }
}

.cdl-article-container {
    font-family: 'Karla', sans-serif;
}

.cdl-article-body h2.cdl-section-title {
    position: relative;
}

.cdl-pullquote {
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .cdl-facts-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE TEMPLATE: version-comparison-list ===== */
.cdl-header {
    font-family: 'Karla', sans-serif;
}

.cdl-header a,
.cdl-header button {
    outline-offset: 2px;
}

.cdl-header .cdl-dropdown-panel {
    box-shadow: 0 12px 30px rgba(50, 17, 25, 0.08);
}

.cdl-header .js-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.cdl-header .js-mobile-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .cdl-header .cdl-nav {
        height: 68px;
    }
}

.cd-footer {
    background-color: var(--dark-band, #321119);
    font-family: var(--font-family-base, 'Karla', sans-serif);
    overflow-wrap: anywhere;
}

.cd-footer-disclaimer {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.2);
}

.cd-footer a {
    transition: color 0.2s ease-in-out;
}

@media (max-width: 767px) {
    .cd-footer .grid {
        grid-template-columns: 1fr;
    }
}

.cd-article-main {
    overflow-wrap: anywhere;
}

.cd-article-main .cd-main-image-wrap .cd-image-offset-bg {
    border-radius: 4px;
}

.cd-article-main .cd-toc .js-toc-toggle {
    user-select: none;
}

.cd-article-main .cd-article-content p {
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

@media (max-width: 767px) {
    .cd-article-main table thead {
        display: none;
    }

    .cd-article-main table,
    .cd-article-main table tbody,
    .cd-article-main table tr,
    .cd-article-main table td {
        display: block;
        width: 100%;
    }

    .cd-article-main table tr {
        margin-bottom: 1rem;
        border-bottom: 1px solid #E4DED8;
        padding-bottom: 0.5rem;
    }

    .cd-article-main table td {
        padding: 0.5rem 1rem;
    }
}

/* ===== PAGE TEMPLATE: tools-software-list ===== */
.cdl-header {
    font-family: 'Karla', sans-serif;
}

.cdl-header a,
.cdl-header button {
    outline-offset: 2px;
}

.cdl-header .cdl-dropdown-panel {
    box-shadow: 0 12px 30px rgba(50, 17, 25, 0.08);
}

.cdl-header .js-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.cdl-header .js-mobile-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .cdl-header .cdl-nav {
        height: 68px;
    }
}

.cd-footer {
    background-color: #321119;
    font-family: 'Karla', sans-serif;
    overflow-wrap: anywhere;
}

.cd-footer-disclaimer {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.2);
}

.cd-footer a {
    transition: color 0.2s ease-in-out;
}

.cdl-article-panel {
    overflow-wrap: anywhere;
}

.cdl-article-body h2,
.cdl-article-body h3 {
    overflow-wrap: anywhere;
    hyphens: auto;
}

.cdl-input::placeholder {
    color: #72665A;
    opacity: 0.8;
}

.cdl-toc-open .js-toc-icon {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .cdl-facts-table thead {
        display: none;
    }

    .cdl-facts-table,
    .cdl-facts-table tbody,
    .cdl-facts-table tr,
    .cdl-facts-table td {
        display: block;
        width: 100%;
    }

    .cdl-facts-table td {
        padding: 0.6rem 0.8rem;
    }

    .cdl-cta-split {
        flex-direction: column;
        text-align: center;
    }

    .cd-footer .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE TEMPLATE: change-ledger-list ===== */
.cdl-header {
    font-family: 'Karla', sans-serif;
}

.cdl-header a,
.cdl-header button {
    outline-offset: 2px;
}

.cdl-header .cdl-dropdown-panel {
    box-shadow: 0 12px 30px rgba(50, 17, 25, 0.08);
}

.cdl-header .js-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.cdl-header .js-mobile-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.cd-article-wrapper {
    font-family: 'Karla', sans-serif;
    overflow-wrap: anywhere;
}

.cd-article-content p {
    line-height: 1.7;
}

.cd-footer {
    background-color: var(--dark-band, #321119);
    font-family: var(--font-family-base, 'Karla', sans-serif);
    overflow-wrap: anywhere;
}

.cd-footer-disclaimer {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.2);
}

.cd-footer a {
    transition: color 0.2s ease-in-out;
}

@media (max-width: 767px) {
    .cdl-header .cdl-nav {
        height: 68px;
    }

    .cd-footer .grid {
        grid-template-columns: 1fr;
    }

    .cd-article-wrapper .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE TEMPLATE: documentation-standards-list ===== */
.cdl-header {
    font-family: 'Karla', sans-serif;
}

.cdl-header a,
.cdl-header button {
    outline-offset: 2px;
}

.cdl-header .cdl-dropdown-panel {
    box-shadow: 0 12px 30px rgba(50, 17, 25, 0.08);
}

.cdl-header .js-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.cdl-header .js-mobile-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .cdl-header .cdl-nav {
        height: 68px;
    }
}

.cd-footer {
    background-color: var(--dark-band, #321119);
    font-family: var(--font-family-base, 'Karla', sans-serif);
    overflow-wrap: anywhere;
}

.cd-footer-disclaimer {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.2);
}

.cd-footer a {
    transition: color 0.2s ease-in-out;
}

@media (max-width: 767px) {
    .cd-footer .grid {
        grid-template-columns: 1fr;
    }
}

.std-article-dashboard {
    font-family: 'Karla', sans-serif;
    overflow-wrap: anywhere;
}

.std-article-dashboard .std-content-prose h2 {
    color: var(--text, #271F18);
}

.std-article-dashboard .std-content-prose p {
    color: var(--text-muted, #72665A);
}

.std-article-dashboard .js-faq-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

/* mobile-text-guard */
@media (max-width: 767px) {
  h1, h2, h3, h4, h5, h6, p, li, dt, dd, blockquote, figcaption, td, th, label {
    overflow-wrap: anywhere;
  }
  a, button, .btn {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  img, video, iframe {
    max-width: 100%;
  }
}
