/* Adapt the supplied D:/dht-redesign-v3/index.html frame to existing page families.
   Palette, type, data colours, product text and calculation UI remain unchanged.
   Layers: existing styles -> supplied skeleton-v3.css -> this responsive adapter. */
@media screen {
  html[data-site-theme="warm"][data-frame-version="v3"] { --content-width:1200px; --site-content:1200px; }

  /* Interior pages use the reference navigation measure and section rhythm. */
  html[data-site-theme="warm"][data-frame-version="v3"] #main-content .dht-page-hero { padding:140px 32px 64px; border-bottom-color:#dedbd2; }
  html[data-site-theme="warm"][data-frame-version="v3"] .dht-page-hero-inner { margin-inline:auto; }
  html[data-site-theme="warm"][data-frame-version="v3"] .dht-page-hero h1 { max-width:1050px; margin-bottom:24px; }
  html[data-site-theme="warm"][data-frame-version="v3"] .copy-hero-intro { max-width:900px; }
  html[data-site-theme="warm"][data-frame-version="v3"] #main-content :is(.dht-section,.dht-section.copy-section) { padding:72px 0; }
  html[data-site-theme="warm"][data-frame-version="v3"] #main-content :is(.dht-hcci-data-section,.dht-video-section) { padding-inline:32px; }
  html[data-site-theme="warm"][data-frame-version="v3"] .copy-section-grid { gap:64px; grid-template-columns:minmax(220px,.72fr) minmax(0,1.55fr); }
  html[data-site-theme="warm"][data-frame-version="v3"] .copy-section-title h2 { font-size:clamp(25px,2.3vw,32px); }
  html[data-site-theme="warm"][data-frame-version="v3"] .dht-section-head { margin-bottom:40px; gap:40px; }
  html[data-site-theme="warm"][data-frame-version="v3"] .copy-toc { padding-block:22px; gap:12px 26px; }
  html[data-site-theme="warm"][data-frame-version="v3"] :is(.dht-cta,.warm-next) { margin-block:40px 64px; padding:32px; }
  html[data-site-theme="warm"][data-frame-version="v3"] .copy-contact-layout { gap:48px; }
  html[data-site-theme="warm"][data-frame-version="v3"] #main-content .dht-section-wide { padding-inline:32px; }
  html[data-site-theme="warm"][data-frame-version="v3"] .dt-hero { padding:140px 32px 64px; }
  html[data-site-theme="warm"][data-frame-version="v3"] .dt-hero h1 { max-width:1050px; margin-inline:auto; }

  /* Resource lists align to the outer frame; long articles keep their reading measure. */
  html[data-site-theme="warm"][data-frame-version="v3"] :is(.blog-page,.resource-page) { max-width:var(--content-width); width:calc(100% - 64px); padding-inline:0; margin-inline:auto; }
  html[data-site-theme="warm"][data-frame-version="v3"] :is(.blog-page,.resource-page) .dht-section { width:100%; }
  html[data-site-theme="warm"][data-frame-version="v3"] :is(.blog-page,.resource-page) .copy-toc { width:100%; }
  html[data-site-theme="warm"][data-frame-version="v3"] :is(.blog-page,.resource-page) h1 { font-size:clamp(30px,3.7vw,46px); line-height:1.3; }
  html[data-site-theme="warm"][data-frame-version="v3"] .article-page { max-width:880px; padding-top:132px; padding-bottom:48px; }
  html[data-site-theme="warm"][data-frame-version="v3"] .article-content>section { padding-block:12px 24px; }
  html[data-site-theme="warm"][data-frame-version="v3"] .article-content>section>h2 { margin-top:32px; }
  html[data-site-theme="warm"][data-frame-version="v3"] .article-page :is(.warm-next,.copy-toc) { width:100%; }
  html[data-site-theme="warm"][data-frame-version="v3"] :is(.standards-toolbar,.standards-summary,.standards-pagination) { background:#f0eee6; border-color:#dedbd2; }
  html[data-site-theme="warm"][data-frame-version="v3"] :is(.standards-table-wrap,.standards-table td) { background:#fffdf8; border-color:#dedbd2; }
  html[data-site-theme="warm"][data-frame-version="v3"] .standards-table th { background:#e7e3d9; border-color:#dedbd2; }
  html[data-site-theme="warm"][data-frame-version="v3"] .standards-table tr:hover td { background:#f0eee6; }
  html[data-site-theme="warm"][data-frame-version="v3"] .standards-toolbar :is(input,select) { background:#fffdf8; color:#141413; border-color:#c4bfb2; }

  /* Calculators stay efficient: wider working surface, no oversized gaps between fields. */
  html[data-site-theme="warm"][data-frame-version="v3"] :is(.di-page,.ce-page,.hv-page,.ha-page,.mw-page,.ms-page) { max-width:var(--content-width); width:calc(100% - 64px); margin-inline:auto; padding:124px 0 56px; }
  html[data-site-theme="warm"][data-frame-version="v3"] :is(.di-hero,.ce-hero,.hv-hero,.ha-hero,.mw-hero,.ms-hero) { margin-bottom:36px; }
  html[data-site-theme="warm"][data-frame-version="v3"] .qa-system { padding-bottom:48px; }
  html[data-site-theme="warm"][data-frame-version="v3"] :is(.di-page,.ce-page,.hv-page,.ha-page,.mw-page,.ms-page) .copy-toc { width:100%; }
  html[data-site-theme="warm"][data-frame-version="v3"][data-page-family="privacy"] main>.copy-prose { max-width:880px; }

  /* Retain the exact supplied desktop homepage; only fix responsive mechanics. */
  html[data-site-theme="warm"][data-frame-version="v3"] .hero-carousel-bg { background:#1c1d1b; }
  html[data-site-theme="warm"][data-frame-version="v3"] .hero-carousel-bg .hero-carousel-slide:first-child { opacity:1; }
  html[data-site-theme="warm"][data-frame-version="v3"] .hero-carousel-bg:has(.hero-carousel-slide.active:not(:first-child)) .hero-carousel-slide:first-child { opacity:0; }
  html[data-site-theme="warm"][data-frame-version="v3"] .hero-carousel-bg .hero-carousel-slide.active { opacity:1; }
  html[data-site-theme="warm"][data-frame-version="v3"] .warm-home-content .hero-content { width:min(1120px,calc(100% - 64px)); margin-inline:auto; }
  html[data-site-theme="warm"][data-frame-version="v3"] .warm-home-content #featured-video video { display:block; }
  html[data-site-theme="warm"][data-frame-version="v3"] .warm-home-content .hero-grid--carousel .hero-copy h1 span { color:#fff; }
  html[data-site-theme="warm"][data-frame-version="v3"] .dht-inquiry-box .anran-inquiry-submit { background:#a43d20; color:#fff; border-radius:4px; }
  html[data-site-theme="warm"][data-frame-version="v3"] .dht-inquiry-box .anran-inquiry-submit:hover { background:#873019; }

  html[data-site-theme="warm"][data-frame-version="v3"] :is(.copy-prose,.copy-section-title,.dht-page-hero-inner,.resource-page-header) { min-width:0; }
  html[data-site-theme="warm"][data-frame-version="v3"] .copy-prose a { overflow-wrap:anywhere; }
  html[data-site-theme="warm"][data-frame-version="v3"] .nav-links>a:is([aria-current="page"],[aria-current="location"]):not(.nav-cta) { color:#f0a085; text-decoration:underline; text-underline-offset:6px; }
  html[data-site-theme="warm"][data-frame-version="v3"] .nav-right.is-open { max-height:calc(100dvh - 76px); overflow-y:auto; }
  html[data-site-theme="warm"][data-frame-version="v3"] .warm-next-grid:has(>a:nth-child(4):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)); }

  @media(min-width:1600px) {
    html[data-site-theme="warm"][data-frame-version="v3"] .warm-home-content .hero-content { width:min(1200px,calc(100% - 64px)); }
  }
  @media(max-width:1100px) {
    html[data-site-theme="warm"][data-frame-version="v3"] #main-content .dht-page-hero { padding-top:120px; padding-bottom:48px; }
    html[data-site-theme="warm"][data-frame-version="v3"] #main-content :is(.dht-section,.dht-section.copy-section) { padding-block:52px; }
    html[data-site-theme="warm"][data-frame-version="v3"] .copy-section-grid { gap:36px; }
    html[data-site-theme="warm"][data-frame-version="v3"] .warm-home-content .hero-grid--carousel { grid-template-columns:minmax(0,1fr); gap:0; }
    html[data-site-theme="warm"][data-frame-version="v3"] .warm-home-content .hero-copy { max-width:680px; }
    html[data-site-theme="warm"][data-frame-version="v3"] .warm-home-content .hero-content { padding-top:56px; }
  }
  @media(max-width:800px) {
    html[data-site-theme="warm"][data-frame-version="v3"] .copy-section-grid { grid-template-columns:1fr; gap:24px; }
    html[data-site-theme="warm"][data-frame-version="v3"] .copy-contact-layout { grid-template-columns:1fr; gap:28px; }
  }
  @media(max-width:700px) {
    html[data-site-theme="warm"][data-frame-version="v3"] #main-content .dht-page-hero { padding:104px 18px 36px; }
    html[data-site-theme="warm"][data-frame-version="v3"] .dht-page-hero h1 { margin-bottom:18px; font-size:30px; }
    html[data-site-theme="warm"][data-frame-version="v3"] #main-content :is(.dht-section,.dht-section.copy-section) { padding-block:36px; }
    html[data-site-theme="warm"][data-frame-version="v3"] #main-content :is(.dht-section-wide,.dht-hcci-data-section,.dht-video-section) { padding-inline:18px; }
    html[data-site-theme="warm"][data-frame-version="v3"] .dht-section-head { margin-bottom:26px; gap:20px; }
    html[data-site-theme="warm"][data-frame-version="v3"] .copy-section-title h2 { font-size:25px; }
    html[data-site-theme="warm"][data-frame-version="v3"] :is(.dht-cta,.warm-next) { margin-block:28px 36px; padding:24px 20px; }
    html[data-site-theme="warm"][data-frame-version="v3"] .copy-toc { padding-block:16px; gap:10px 18px; }
    html[data-site-theme="warm"][data-frame-version="v3"] .dt-hero { padding:104px 18px 36px; }
    html[data-site-theme="warm"][data-frame-version="v3"] :is(.blog-page,.resource-page) { width:calc(100% - 36px); }
    html[data-site-theme="warm"][data-frame-version="v3"] .article-page { padding-top:104px; padding-bottom:32px; }
    html[data-site-theme="warm"][data-frame-version="v3"] :is(.di-page,.ce-page,.hv-page,.ha-page,.mw-page,.ms-page) { width:calc(100% - 36px); padding:104px 0 36px; }
    html[data-site-theme="warm"][data-frame-version="v3"] .nav-right.is-open { max-height:calc(100dvh - 66px); }
    html[data-site-theme="warm"][data-frame-version="v3"] .warm-next-grid:has(>a:nth-child(4):last-child) { grid-template-columns:1fr; }
    html[data-site-theme="warm"][data-frame-version="v3"] .warm-home-content .section { padding-block:48px; }
    html[data-site-theme="warm"][data-frame-version="v3"] .warm-home-content .section-head { margin-bottom:28px; }
    html[data-site-theme="warm"][data-frame-version="v3"] .warm-home-content .hero { min-height:0; }
    html[data-site-theme="warm"][data-frame-version="v3"] .warm-home-content .hero-content { width:calc(100% - 36px); min-height:0; padding:44px 0 24px; }
    html[data-site-theme="warm"][data-frame-version="v3"] .warm-home-content .hero-grid--carousel { gap:0; }
    html[data-site-theme="warm"][data-frame-version="v3"] .warm-home-content .hero .hero-paths { margin-top:32px; }
    html[data-site-theme="warm"][data-frame-version="v3"] .warm-home-content #featured-video { padding:0; margin-top:36px; }
    html[data-site-theme="warm"][data-frame-version="v3"] .warm-home-content #featured-video video { max-height:none; height:auto; object-fit:contain; }
  }
}
@media(prefers-reduced-motion:reduce) {
  html[data-site-theme="warm"][data-frame-version="v3"] .hero-carousel-slide { transition:none; }
}
@media print {
  html[data-site-theme="warm"][data-frame-version="v3"] .hero-carousel-bg { display:none; }
  html[data-site-theme="warm"][data-frame-version="v3"] .warm-home-content :is(.hero,.hero-content) { min-height:0; padding:0; }
  html[data-site-theme="warm"][data-frame-version="v3"] .warm-home-content .hero-grid--carousel .hero-copy :is(h1,p,a,.eyebrow) { color:#141413!important; text-shadow:none!important; }
  html[data-site-theme="warm"][data-frame-version="v3"] .warm-home-content #featured-video { display:none; }
}
