/* Color-only layer for the two case templates. The light styles remain in
   style.css and fidelity.css, and product images retain their light surfaces. */
@media screen {
body.tt-theme-dark .tt-cases{
  --tt-ink:#f5f4f2;
  --tt-muted:#b5b5b2;
  --tt-line:#3b3b38;
  --tt-soft:#232323;
  color:var(--tt-ink);
  color-scheme:dark;
}
body.tt-theme-dark .tt-cases h1,
body.tt-theme-dark .tt-cases h2,
body.tt-theme-dark .tt-cases h3{color:var(--tt-ink)}
body.tt-theme-dark .tt-cases .tt-lead,
body.tt-theme-dark .tt-cases-list .tt-list-hero-grid .tt-lead,
body.tt-theme-dark .tt-cases-detail .tt-detail-hero .tt-lead{color:#c5c5c5}
body.tt-theme-dark .tt-cases .tt-breadcrumb,
body.tt-theme-dark .tt-cases .tt-breadcrumb span,
body.tt-theme-dark .tt-cases-detail .tt-detail-hero .tt-breadcrumb,
body.tt-theme-dark .tt-cases-detail .tt-detail-hero .tt-breadcrumb span{color:#aaa}
body.tt-theme-dark .tt-cases .tt-button-light,
body.tt-theme-dark .tt-cases-detail .tt-detail-hero .tt-button-light,
body.tt-theme-dark .tt-cases .tt-cta-actions .tt-button-light{background:transparent;border-color:#62625e;color:#eee!important}
body.tt-theme-dark .tt-cases .tt-button-light:hover{border-color:var(--tt-accent);color:var(--tt-accent)!important}

/* Listing: the structure, typography and image frames are unchanged. */
body.tt-theme-dark .tt-cases-list .tt-hero-list{background:#1b1b1b}
body.tt-theme-dark .tt-cases-list .tt-hero-steps{border-color:#3b3b38;color:#c5c5c5}
body.tt-theme-dark .tt-cases-list .tt-hero-steps>span{color:#eee}
body.tt-theme-dark .tt-cases-list .tt-hero-steps li:before{border-color:#604124}
body.tt-theme-dark .tt-cases-list .tt-quickline{border-color:#3b3b38;color:#aaa}
body.tt-theme-dark .tt-cases-list .tt-quickline a{color:#b5b5b2}
body.tt-theme-dark .tt-cases-list .tt-quickline a:last-child{color:var(--tt-accent)}
body.tt-theme-dark .tt-cases .tt-filter-panel,
body.tt-theme-dark .tt-cases .tt-discussion{background:#202020;border-color:var(--tt-line)}
body.tt-theme-dark .tt-cases .tt-search input,
body.tt-theme-dark .tt-cases .tt-mobile-filter select{background:#181818;border-color:#484848;color:var(--tt-ink)}
body.tt-theme-dark .tt-cases .tt-search input::placeholder{color:#aaa;opacity:1}
body.tt-theme-dark .tt-cases .tt-filter-tag,
body.tt-theme-dark .tt-cases .tt-discussion-tags button{background:#232323;border-color:#454545;color:#d0d0d0}
body.tt-theme-dark .tt-cases .tt-filter-tag:hover,
body.tt-theme-dark .tt-cases .tt-discussion-tags button:hover{border-color:var(--tt-accent);color:#fff}
body.tt-theme-dark .tt-cases .tt-filter-tag.is-active{background:var(--tt-accent);border-color:var(--tt-accent);color:#171717}
body.tt-theme-dark .tt-cases .tt-case-card,
body.tt-theme-dark .tt-cases .tt-condition{background:#232323;border-color:var(--tt-line)}
body.tt-theme-dark .tt-cases .tt-case-card:hover{border-color:#725132;box-shadow:0 10px 30px #0003}
body.tt-theme-dark .tt-cases .tt-case-snippet b,
body.tt-theme-dark .tt-cases .tt-card-equipment>span{color:#aaa}
body.tt-theme-dark .tt-cases .tt-card-equipment>div span{background:#2c2c2c;border-color:#454545;color:#d0d0d0}
body.tt-theme-dark .tt-cases .tt-card-result{background:#2c2925}
body.tt-theme-dark .tt-cases .tt-card-result p{color:#d8d5d1}
body.tt-theme-dark .tt-cases .tt-empty{background:#232323;border-color:var(--tt-line)}
body.tt-theme-dark .tt-cases .tt-condition-grid{border-color:var(--tt-line)}
body.tt-theme-dark .tt-cases .tt-condition-icon{background:transparent}
body.tt-theme-dark .tt-cases .tt-discussion-tags button span{color:var(--tt-accent)}
body.tt-theme-dark .tt-cases .tt-cta{background:#272420!important;border-color:#554334!important}
body.tt-theme-dark .tt-cases .tt-cta-copy p{color:#c6c2be}
body.tt-theme-dark .tt-cases .tt-cta-actions p{color:#bbb!important}
body.tt-theme-dark .tt-cases .tt-cta-actions a{color:#eee!important}

/* Case detail: text panels follow the dark mockup; photographs remain white. */
body.tt-theme-dark .tt-cases-detail .tt-detail-hero,
body.tt-theme-dark .tt-cases-detail .tt-detail-facts{background:#1b1b1b;color:var(--tt-ink)}
body.tt-theme-dark .tt-cases-detail .tt-detail-hero h1,
body.tt-theme-dark .tt-cases-detail .tt-detail-facts .tt-facts strong{color:var(--tt-ink)}
body.tt-theme-dark .tt-cases-detail .tt-detail-hero .tt-pill{background:#2e2925;border-color:#604124;color:var(--tt-accent)}
body.tt-theme-dark .tt-cases-detail .tt-hero-labels>span+span{border-color:#555;color:#b5b5b2}
body.tt-theme-dark .tt-cases-detail .tt-detail-nav{background:#232323;color:#d0d0d0;border-color:var(--tt-line)}
body.tt-theme-dark .tt-cases-detail .tt-detail-nav a{color:#d0d0d0}
body.tt-theme-dark .tt-cases-detail .tt-detail-nav a:hover{color:var(--tt-accent)}
body.tt-theme-dark .tt-cases-detail .tt-mini-grid article,
body.tt-theme-dark .tt-cases-detail .tt-requirement-grid article,
body.tt-theme-dark .tt-cases-detail #tt-requirements>.tt-accordion,
body.tt-theme-dark .tt-cases-detail .tt-detail-note,
body.tt-theme-dark .tt-cases-detail #tt-stages .tt-note{background:#232323;border-color:var(--tt-line)}
body.tt-theme-dark .tt-cases-detail .tt-parameter-accordion[open]>summary{border-color:var(--tt-line)}
body.tt-theme-dark .tt-cases-detail .tt-parameter-table table{background:#1d1d1d;border-color:var(--tt-line)}
body.tt-theme-dark .tt-cases-detail .tt-parameter-table th{background:#292929;color:#bdbdbd}
body.tt-theme-dark .tt-cases-detail .tt-parameter-table td{color:var(--tt-ink)}
body.tt-theme-dark .tt-cases-detail .tt-parameter-table th,body.tt-theme-dark .tt-cases-detail .tt-parameter-table td{border-color:var(--tt-line)}
body.tt-theme-dark .tt-cases-detail .tt-conditions-box{background:transparent}
body.tt-theme-dark .tt-cases-detail .tt-conditions-box dd,
body.tt-theme-dark .tt-cases-detail .tt-supply-model{color:var(--tt-ink)}
body.tt-theme-dark .tt-cases-detail .tt-supply-table th{background:#282828;color:#b5b5b2}
body.tt-theme-dark .tt-cases-detail .tt-supply-table,
body.tt-theme-dark .tt-cases-detail .tt-supply-table th,
body.tt-theme-dark .tt-cases-detail .tt-supply-table td{border-color:var(--tt-line)}
body.tt-theme-dark .tt-cases-detail #tt-supply .tt-section-head>a{color:var(--tt-ink)!important}
body.tt-theme-dark .tt-cases-detail .tt-compare-grid article{background:#232323;border-color:var(--tt-line)}
body.tt-theme-dark .tt-cases-detail .tt-compare-card--compare_after{background:#2c2925!important}
body.tt-theme-dark .tt-cases-detail .tt-compare-grid article .tt-eyebrow{color:var(--tt-ink)}
body.tt-theme-dark .tt-cases-detail .tt-logic-note{background:#3a2624!important;border-color:#9a5147!important;color:#f0d7d2!important}
body.tt-theme-dark .tt-cases-detail .tt-material-grid figure,
body.tt-theme-dark .tt-cases-detail .tt-related-grid article{background:#232323;border-color:var(--tt-line)}
body.tt-theme-dark .tt-cases-detail .tt-expert-avatar{background:#3a3a3a;color:#d0d0d0}
body.tt-theme-dark .tt-cases-detail .tt-form-section{background:#232323}
body.tt-theme-dark .tt-cases-detail .tt-form-section .tt-request-form{background:#282828;border-color:var(--tt-line)}
body.tt-theme-dark .tt-cases-detail .tt-purpose-options input:checked+span{background:#3a3026;border-color:var(--tt-accent);color:#ffad65}
body.tt-theme-dark .tt-cases-detail .tt-file-drop{background:#1b1b1b;border-color:#595959}
body.tt-theme-dark .tt-cases-detail .tt-related-grid article>div{background:#232323}

/* Forms and dialogs on both templates. */
body.tt-theme-dark .tt-cases .tt-modal-panel,
body.tt-theme-dark .tt-cases .tt-listing-modal .tt-form-panel,
body.tt-theme-dark .tt-cases .tt-listing-modal-header{background:#232323;color:var(--tt-ink);border-color:var(--tt-line)}
body.tt-theme-dark .tt-cases .tt-listing-modal{background:#000c}
body.tt-theme-dark .tt-cases .tt-modal-close{background:#2c2c2c;border-color:#555;color:#eee}
body.tt-theme-dark .tt-cases .tt-listing-form-grid input:not([type=checkbox]):not([type=file]),
body.tt-theme-dark .tt-cases .tt-listing-form-grid textarea,
body.tt-theme-dark .tt-cases .tt-request-form input:not([type=checkbox]):not([type=file]):not([type=radio]),
body.tt-theme-dark .tt-cases .tt-request-form textarea,
body.tt-theme-dark .tt-cases .tt-request-form select{background:#181818;border-color:#555;color:var(--tt-ink)}
body.tt-theme-dark .tt-cases .tt-listing-form-grid input::placeholder,
body.tt-theme-dark .tt-cases .tt-listing-form-grid textarea::placeholder,
body.tt-theme-dark .tt-cases .tt-request-form input::placeholder,
body.tt-theme-dark .tt-cases .tt-request-form textarea::placeholder{color:#a8a8a8;opacity:1}
body.tt-theme-dark .tt-cases .tt-tech-fields{background:#232323;border-color:var(--tt-line)}
body.tt-theme-dark .tt-cases .tt-tech-fields summary{color:var(--tt-ink)}
body.tt-theme-dark .tt-cases .tt-purpose-options span{border-color:var(--tt-line);color:#ddd}
body.tt-theme-dark .tt-cases .tt-purpose legend{color:var(--tt-ink)}
body.tt-theme-dark .tt-cases .tt-file-drop input[type=file]{background:transparent;border:0;color:var(--tt-ink)}
body.tt-theme-dark .tt-cases .tt-file-drop input[type=file]::file-selector-button{background:#353535;border:1px solid #626262;color:var(--tt-ink);padding:5px 10px;margin-right:10px;cursor:pointer}
body.tt-theme-dark .tt-cases-detail .tt-related-grid .tt-pill{background:#332922;color:var(--tt-accent)}
body.tt-theme-dark .tt-cases .tt-form-status,
body.tt-theme-dark .tt-cases .tt-listing-request-form .tt-form-status{color:#ff9a9a}
body.tt-theme-dark .tt-cases .tt-form-status.is-success,
body.tt-theme-dark .tt-cases .tt-listing-request-form .tt-form-status.is-success{color:#93d8aa}
}
