/* site palette */
html:root {
    --bg: #14120F;
    --surface: #28231E;
    --surface-alt: #1E1A14;
    --text: #F0EEEC;
    --text-muted: #BFB8B0;
    --border: #3D362D;
    --primary: #D1BB8A;
    --primary-hover: #C5AA6D;
    --on-primary: #111111;
    --primary-text: #D1BB8A;
    --accent: #9347B4;
    --on-accent: #FFFFFF;
    --accent-text: #B279CA;
    --dark-band: #24112C;
    --on-dark: #FFFFFF;
    --on-dark-muted: #C3BDB6;
    --brand-btn-bg: #111111;
    --brand-btn-text: #D1BB8A;
    --section-alt-bg: linear-gradient(190deg, #1E1A14 0%, #231F19 100%);
    --dark-band-bg: linear-gradient(151deg, #24112C 0%, #3B3017 100%);
    --brand-band-bg: #D1BB8A;
    --hero-bg: linear-gradient(151deg, #24112C 0%, #3B3017 100%);
}

/* /site palette */

body {
    font-family: 'Sora', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

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

.text-muted {
    color: #BFB8B0 !important;
}

.uwq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: 2px;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.uwq-btn:hover {
    background-color: var(--primary-hover);
    color: var(--on-primary);
    transform: translateY(-2px);
}

.uwq-btn-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--primary-text);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.uwq-btn-alt:hover {
    color: #F0EEEC;
    transform: translateX(2px);
}

.uwq-card {
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.uwq-card:hover {
    border-color: var(--primary);
}

.uwq-media {
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    flex-grow: 0;
    border-radius: 2px;
    border: 1px solid var(--border);
    overflow: hidden;
    width: 100%;
}

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

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

.uwq-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0 0 1.25rem 0;
}

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

.uwq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 9999px;
    background-color: var(--surface-alt);
    color: var(--primary-text);
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.uwq-section {
    background-color: var(--bg);
    padding: clamp(3.5rem, 7vw, 6rem) 1rem;
}

.uwq-section-alt {
    background: var(--section-alt-bg, var(--surface-alt));
    padding: clamp(3.5rem, 7vw, 6rem) 1rem;
}

.uwq-section-dark {
    background: var(--dark-band-bg, var(--dark-band));
    color: var(--on-dark);
    padding: clamp(3.5rem, 7vw, 6rem) 1rem;
}

.uwq-section-brand {
    background-color: var(--brand-band-bg, var(--primary));
    color: var(--on-primary);
    padding: clamp(3.5rem, 7vw, 6rem) 1rem;
}

.uwq-section-brand .uwq-btn {
    background-color: var(--brand-btn-bg, #111111);
    color: var(--brand-btn-text, #D1BB8A);
}

.uwq-section-brand .uwq-btn:hover {
    background-color: #28231E;
    color: #D1BB8A;
}

.uwq-section-brand .uwq-btn-alt {
    color: var(--on-primary);
    border-bottom: 2px solid var(--on-primary);
}

.uwq-section-dark .uwq-title,
.uwq-section-dark h1,
.uwq-section-dark h2,
.uwq-section-dark h3,
.uwq-section-dark p,
.uwq-section-dark span,
.uwq-section-dark a {
    color: var(--on-dark);
}

.uwq-section-dark .uwq-eyebrow {
    color: var(--primary-text);
}

.uwq-section-dark .text-muted {
    color: var(--on-dark-muted) !important;
}

.uwq-section-dark .uwq-btn-alt {
    color: var(--primary-text);
}

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

.uwq-section-dark .uwq-card .uwq-title,
.uwq-section-dark .uwq-card h3,
.uwq-section-dark .uwq-card h4 {
    color: var(--text);
}

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

.uwq-on-dark {
    color: var(--on-dark);
}

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

.uwq-on-dark p {
    color: var(--on-dark-muted);
}

.uwq-on-dark .uwq-card {
    background-color: var(--surface);
    color: var(--text);
}

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

@media (min-width: 768px) {

    .uwq-section,
    .uwq-section-alt,
    .uwq-section-dark,
    .uwq-section-brand {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

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

.criteriashift-header .js-dropdown-menu.is-active {
    display: block !important;
}

.criteriashift-header .js-mobile-menu.is-active {
    display: block !important;
}

/* ===== hero ===== */
.uwq-hero {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.uwq-hero * {
    box-sizing: border-box;
}

.uwq-hero h1 {
    overflow-wrap: anywhere;
    hyphens: auto;
}

.uwq-hero p {
    overflow-wrap: anywhere;
}

.uwq-hero-visual-wrapper {
    max-width: 100%;
}

.uwq-hero .uwq-btn:focus-visible,
.uwq-hero .uwq-btn-alt:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .uwq-hero {
        min-height: auto !important;
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    .uwq-hero h1 {
        font-size: 18px;
        line-height: 1.25;
    }
}

/* ===== benefits ===== */
.criteria-benefits .criteria-benefit-card {
    min-height: 100%;
    box-sizing: border-box;
}

.criteria-benefits .criteria-benefit-card:hover {
    border-color: var(--primary);
    background-color: var(--surface-alt);
}

.criteria-benefits .criteria-benefit-card h3 {
    overflow-wrap: anywhere;
}

.criteria-benefits .criteria-benefit-card p {
    overflow-wrap: anywhere;
}

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

/* ===== articles_grid ===== */
.criteria-articles-section {
    position: relative;
    background-color: var(--bg);
    color: var(--text);
}

.criteria-articles-section .criteria-grid {
    display: grid;
}

.criteria-articles-section .criteria-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

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

.criteria-articles-section .criteria-card:hover .criteria-action-link span:last-child {
    transform: translateX(4px);
}

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

/* ===== tools_grid ===== */
.cshift-tools .uwq-title {
    overflow-wrap: anywhere;
}

.cshift-tools .uwq-card {
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.cshift-tools .cshift-modal.hidden {
    display: none;
}

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

/* ===== glossary ===== */
.uwq-section-alt .js-glossary-tab:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.uwq-section-alt .js-glossary-item {
    min-height: 100%;
}

@media (max-width: 767px) {
    .uwq-section-alt #glossary-list {
        grid-template-columns: 1fr;
    }
}

/* ===== press ===== */
.csa-press-section {
    position: relative;
    overflow-wrap: anywhere;
}

.csa-press-section .uwq-card {
    min-width: 0;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.csa-press-section .uwq-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

/* ===== what_we_work_with ===== */
.csa-tools-block {
    background-color: var(--bg);
}

.csa-tools-block .csa-tab-item.active {
    color: var(--primary);
    border-color: var(--primary);
}

.csa-tools-block .csa-tab-item:not(.active) {
    color: var(--text-muted);
    border-color: transparent;
}

.csa-tools-block .js-tool-card {
    min-height: 100%;
}

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

/* ===== contractor_questions ===== */
.cs-audit-block .cs-question-item:hover {
    border-color: #D1BB8A;
}

.cs-audit-block .js-audit-trigger {
    cursor: pointer;
}

.cs-audit-block .js-audit-panel {
    animation: fadeInQuestion 0.2s ease-in-out;
}

@keyframes fadeInQuestion {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== footer ===== */
.cs-footer {
    position: relative;
}

.cs-footer a {
    transition: color 0.15s ease, background-color 0.15s ease;
}

.cs-footer__stripe--tl {
    background: repeating-linear-gradient(45deg, #D1BB8A, #D1BB8A 2px, transparent 2px, transparent 8px);
}

.cs-footer__stripe--tr {
    background: repeating-linear-gradient(-45deg, #D1BB8A, #D1BB8A 2px, transparent 2px, transparent 8px);
}

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

.criteriashift-header {
    font-family: 'Sora', sans-serif;
}

.criteriashift-header .js-dropdown-menu.is-active {
    display: block !important;
}

.criteriashift-header .js-mobile-menu.is-active {
    display: block !important;
}

.uwq-hero {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.uwq-hero * {
    box-sizing: border-box;
}

.uwq-hero h1 {
    overflow-wrap: anywhere;
    hyphens: auto;
}

.uwq-hero p {
    overflow-wrap: anywhere;
}

.kb-template-container {
    width: 100%;
    overflow: hidden;
}

.kb-template-container h2,
.kb-template-container h3,
.kb-template-container p {
    overflow-wrap: anywhere;
}

.kb-template-container .js-kb-card {
    box-sizing: border-box;
}

.kb-template-container .js-kb-card.is-hidden {
    display: none !important;
}

.cs-footer {
    position: relative;
}

.cs-footer a {
    transition: color 0.15s ease, background-color 0.15s ease;
}

.cs-footer__stripe--tl {
    background: repeating-linear-gradient(45deg, #D1BB8A, #D1BB8A 2px, transparent 2px, transparent 8px);
}

.cs-footer__stripe--tr {
    background: repeating-linear-gradient(-45deg, #D1BB8A, #D1BB8A 2px, transparent 2px, transparent 8px);
}

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

    .uwq-hero h1 {
        font-size: 18px;
        line-height: 1.25;
    }

    .kb-template-container h2 {
        font-size: 16px;
        line-height: 1.3;
    }

    .kb-template-container h3 {
        font-size: 14px;
        line-height: 1.3;
    }
}


/* ===== PAGE: about ===== */
.csa-about-page .csa-watermark{font-family:'Sora',sans-serif;letter-spacing:-0.05em;pointer-events:none}.csa-about-page .csa-node{transition:border-color 0.2s ease,background-color 0.2s ease}.csa-about-page .csa-node:hover{border-color:#D1BB8A;background-color:#2e2822}.csa-about-page .js-tab-btn{cursor:pointer;outline:none}.csa-about-page .js-tab-content.hidden{display:none}.csa-about-page .js-tab-content.block{display:block}@media (max-width:767px){.csa-about-page .grid{grid-template-columns:1fr!important}.csa-about-page .csa-tab-wrapper .flex-wrap{flex-direction:column;gap:0.5rem}.csa-about-page .js-tab-btn{width:100%;text-align:left;padding-bottom:0.5rem}}

/* ===== PAGE: methodology ===== */
.methodology-tabs-wrapper button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.methodology-tabs-wrapper .js-tab-panel {
  transition: opacity 0.2s ease;
}

/* ===== PAGE: tc-brand-support ===== */
.tc-guide-wrapper {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Sora', sans-serif;
}

.tc-guide-wrapper .tc-feature-col {
  background-color: transparent;
}

.tc-guide-wrapper .tc-tab-item {
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tc-guide-wrapper .tc-tab-item:focus {
  outline: none;
}

.tc-guide-wrapper code {
  word-break: break-all;
  white-space: pre-wrap;
}

.tc-guide-wrapper input::placeholder,
.tc-guide-wrapper textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

@media (max-width: 767px) {
  .tc-guide-wrapper .grid {
    grid-template-columns: 1fr;
  }
  .tc-guide-wrapper h2 {
    hyphens: auto;
    max-width: 100%;
  }
}

/* ===== PAGE: contact ===== */
.contact-portal { overflow-wrap: anywhere; hyphens: auto; }
.contact-portal .contact-input::placeholder { color: var(--text-muted); opacity: 0.8; }
.contact-portal .contact-input:focus { border-color: var(--primary); }
@media (max-width: 767px) {
  .contact-portal .uwq-title { font-size: 16px; line-height: 1.25; }
  .contact-portal h3 { font-size: 14px; line-height: 1.3; }
}

/* ===== PAGE: privacy ===== */
.cs-privacy-block a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cs-privacy-sidebar { border-radius: 2px; }
@media (max-width: 767px) {
  .cs-privacy-sidebar { position: static; margin-bottom: 1.5rem; }
  .cs-privacy-block h2 { font-size: 16px !important; line-height: 1.3; hyphens: auto; }
  .cs-privacy-block h3 { font-size: 14px !important; line-height: 1.3; hyphens: auto; }
}

/* ===== PAGE: terms ===== */
.terms-content {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-family-body, 'Sora', sans-serif);
}

.terms-content a {
  transition: color 0.15s ease, border-color 0.15s ease;
}

.terms-content .js-clause-link.is-active {
  color: var(--primary-text);
  border-left-color: var(--primary);
  background-color: var(--surface-alt);
  font-weight: 600;
}

.terms-content input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

@media (max-width: 767px) {
  .terms-content h2 {
    font-size: 16px;
    line-height: 1.3;
  }
  .terms-content h3 {
    font-size: 14px;
    line-height: 1.35;
  }
  .terms-content p, 
  .terms-content li {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

/* ===== PAGE: disclaimer ===== */
.csa-disclaimer {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-family-primary, 'Sora', sans-serif);
}

.csa-disclaimer .js-jump-btn:focus {
  outline: 1px solid var(--primary);
}

.csa-disclaimer .js-faq-item {
  transition: border-color 0.15s ease;
}

.csa-disclaimer .js-faq-item.is-active {
  border-color: var(--primary);
}

@media (max-width: 767px) {
  .csa-disclaimer .grid {
    grid-template-columns: 1fr !important;
  }
}

.comment-card {
    font-family: 'Sora', sans-serif;
}

.comment-avatar,
.comment-avatar img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 9999px;
}

.comment-avatar {
    box-shadow: 0 0 0 1px #3D362D;
}

.comment-action-btn:hover svg {
    stroke: #D1BB8A;
}

.comment-card:hover {
    border-color: #D1BB8A;
}

.comment-reply-card {
    font-family: 'Sora', sans-serif;
}

.comment-reply-card .comment-avatar,
.comment-reply-card .comment-avatar img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 9999px;
}

.comment-reply-card .comment-avatar {
    box-shadow: 0 0 0 1px #3D362D;
}

.comment-action-btn:hover svg {
    stroke: #D1BB8A;
}

.comment-reply-card:hover {
    border-color: #3D362D;
    border-left-color: #D1BB8A;
}


/* ===== PAGE TEMPLATE: articles ===== */
.criteriashift-header {
    font-family: 'Sora', sans-serif;
}

.criteriashift-header .js-dropdown-menu.is-active {
    display: block !important;
}

.criteriashift-header .js-mobile-menu.is-active {
    display: block !important;
}

.article-detail-template {
    font-family: 'Sora', sans-serif;
}

.article-detail-template .detail-heading {
    overflow-wrap: anywhere;
    hyphens: auto;
}

.article-detail-template .article-body p {
    overflow-wrap: anywhere;
}

.article-detail-template dl dd,
.article-detail-template dl dt {
    overflow-wrap: anywhere;
}

.cs-footer {
    position: relative;
}

.cs-footer a {
    transition: color 0.15s ease, background-color 0.15s ease;
}

.cs-footer__stripe--tl {
    background: repeating-linear-gradient(45deg, #D1BB8A, #D1BB8A 2px, transparent 2px, transparent 8px);
}

.cs-footer__stripe--tr {
    background: repeating-linear-gradient(-45deg, #D1BB8A, #D1BB8A 2px, transparent 2px, transparent 8px);
}

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

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

/* ===== PAGE TEMPLATE: tools ===== */
.criteriashift-header {
    font-family: 'Sora', sans-serif;
}

.criteriashift-header .js-dropdown-menu.is-active {
    display: block !important;
}

.criteriashift-header .js-mobile-menu.is-active {
    display: block !important;
}

.cs-detail-content {
    font-family: 'Sora', sans-serif;
}

.cs-heading-accent h2 {
    border-left: 3px solid #D1BB8A;
    padding-left: 0.75rem;
}

.cs-striped-table tr:nth-child(even) {
    background-color: #24112C;
}

.cs-striped-table tr:nth-child(odd) {
    background-color: #1E1A14;
}

.cs-footer {
    position: relative;
}

.cs-footer a {
    transition: color 0.15s ease, background-color 0.15s ease;
}

.cs-footer__stripe--tl {
    background: repeating-linear-gradient(45deg, #D1BB8A, #D1BB8A 2px, transparent 2px, transparent 8px);
}

.cs-footer__stripe--tr {
    background: repeating-linear-gradient(-45deg, #D1BB8A, #D1BB8A 2px, transparent 2px, transparent 8px);
}

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

    .cs-striped-table thead {
        display: none;
    }

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

    .cs-striped-table td {
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid #3D362D;
    }
}

/* ===== PAGE TEMPLATE: knowledge ===== */
.criteriashift-header {
    font-family: 'Sora', sans-serif;
}

.criteriashift-header .js-dropdown-menu.is-active {
    display: block !important;
}

.criteriashift-header .js-mobile-menu.is-active {
    display: block !important;
}

.uwq-hero {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.uwq-hero * {
    box-sizing: border-box;
}

.uwq-hero h1 {
    overflow-wrap: anywhere;
    hyphens: auto;
}

.uwq-hero p {
    overflow-wrap: anywhere;
}

.bento-container .bento-tile {
    min-width: 0;
    box-sizing: border-box;
}

.knowledge-content-wrapper {
    overflow-wrap: anywhere;
}

.knowledge-content-wrapper h2 {
    overflow-wrap: anywhere;
    hyphens: auto;
}

.knowledge-content-wrapper p {
    overflow-wrap: anywhere;
}

.faq-item .js-accordion-icon.is-rotated {
    transform: rotate(180deg);
}

.cs-footer {
    position: relative;
}

.cs-footer a {
    transition: color 0.15s ease, background-color 0.15s ease;
}

.cs-footer__stripe--tl {
    background: repeating-linear-gradient(45deg, #D1BB8A, #D1BB8A 2px, transparent 2px, transparent 8px);
}

.cs-footer__stripe--tr {
    background: repeating-linear-gradient(-45deg, #D1BB8A, #D1BB8A 2px, transparent 2px, transparent 8px);
}

@media (max-width: 767px) {
    .uwq-hero {
        min-height: auto !important;
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .bento-container {
        grid-template-columns: 1fr !important;
    }

    .cs-footer .grid {
        grid-template-columns: 1fr;
    }
}

/* 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%;
  }
}
