/* Interior pages: mobile reading and contact controls. Home v2 keeps its own layout. */
body:not(.home-v2) .ti-service-image,
body:not(.home-v2) .ti-service-photo {
  width: 100%;
  max-width: 960px;
  min-width: 0;
  margin: 32px auto;
}

body:not(.home-v2) :is(.ti-service-image, .ti-service-photo) img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: 8px;
}

body:not(.home-v2) :is(.ti-service-image, .ti-service-photo) figcaption {
  padding-top: 10px;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  body:not(.home-v2) .ti-mobile-disclosure > summary {
    list-style: none;
    cursor: default;
  }

  body:not(.home-v2) .ti-mobile-disclosure > summary::-webkit-details-marker {
    display: none;
  }

  body:not(.home-v2) .ti-mobile-disclosure > summary::marker {
    content: "";
  }
}

@media (max-width: 767px) {
  html:has(> body:not(.home-v2)) {
    scroll-padding-top: 84px;
    scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  body:not(.home-v2) {
    --interior-header-height: 64px;
    --interior-contact-height: 56px;
    padding-bottom: calc(var(--interior-contact-height) + env(safe-area-inset-bottom, 0px));
    font-size: 17px;
    line-height: 1.6;
  }

  body:not(.home-v2) *,
  body:not(.home-v2) *::before,
  body:not(.home-v2) *::after {
    box-sizing: border-box;
  }

  body:not(.home-v2) :is(h1, h2, h3, h4, [id]) {
    scroll-margin-top: calc(var(--interior-header-height) + 20px);
  }

  body:not(.home-v2) .site-header {
    background: #fffdf8;
    backdrop-filter: none;
    box-shadow: 0 1px 0 #061b2e14;
  }

  body:not(.home-v2) .utility-bar {
    display: none;
  }

  body:not(.home-v2) .header-inner {
    width: calc(100% - 32px);
    min-height: var(--interior-header-height);
    gap: 16px;
    justify-content: space-between;
  }

  body:not(.home-v2) .brand {
    width: 168px;
    flex: 0 1 168px;
    min-width: 0;
  }

  body:not(.home-v2) .brand img.brand-logo {
    width: 100%;
    height: 45px;
  }

  body:not(.home-v2) .mobile-menu {
    margin-left: auto;
    flex: 0 0 48px;
  }

  body:not(.home-v2) .mobile-menu summary {
    width: 48px;
    height: 48px;
    border-color: #bdc7cb;
    border-radius: 6px;
  }

  body:not(.home-v2) .mobile-menu nav {
    width: min(352px, calc(100vw - 32px));
    max-height: calc(100vh - 152px);
    max-height: calc(100dvh - 152px);
    overflow-y: auto;
    overscroll-behavior: contain;
    top: calc(100% + 8px);
    padding: 8px;
    border-color: #cbd5dc;
    border-radius: 8px;
    box-shadow: 0 12px 28px #061b2e26;
  }

  body:not(.home-v2) .mobile-menu nav a {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.35;
  }

  body:not(.home-v2) #main-content {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-wrap: break-word;
  }

  body:not(.home-v2) #main-content.rtlf-page {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }

  body:not(.home-v2) #main-content :is(h1, h2, h3, h4, h5, h6) {
    font-family: inherit;
    text-transform: none;
    letter-spacing: -0.025em;
    font-weight: 750;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    text-wrap: pretty;
  }

  body:not(.home-v2) #main-content h1 {
    font-size: clamp(2rem, 8.8vw, 2.375rem);
    line-height: 1.15;
    max-width: 100%;
    margin-bottom: 20px;
  }

  body:not(.home-v2) #main-content :is(.dt-hero-content, .dt-section-head, .dt-trust-inner > *, .dt-cta-final-inner > *, .ti-mobile-disclosure) {
    min-width: 0;
  }

  body:not(.home-v2) #main-content h2 {
    font-size: clamp(1.625rem, 6.7vw, 1.875rem);
    line-height: 1.2;
  }

  body:not(.home-v2) #main-content h3 {
    font-size: 1.25rem;
    line-height: 1.35;
  }

  body:not(.home-v2) #main-content :is(h4, h5, h6) {
    font-size: 1.0625rem;
    line-height: 1.4;
    margin-block: 20px 8px;
  }

  body:not(.home-v2) #main-content :is(p, .dt-hero-sub, .dt-section-sub, .dt-trust-sub, .dt-step p, .dt-service-body p) {
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: normal;
  }

  body:not(.home-v2) #main-content :is(ul, ol) {
    font-size: 17px;
    line-height: 1.6;
  }

  body:not(.home-v2) #main-content :is(.dt-wrap, .dt-hero-inner, .dt-trust-inner) {
    width: 100%;
    padding-inline: 20px;
  }

  body:not(.home-v2) #main-content > nav[aria-label] {
    font-size: 13px;
    line-height: 1.4;
  }

  body:not(.home-v2) #main-content > nav[aria-label] ol {
    font-size: 13px;
    line-height: 1.4;
    gap: 4px 8px;
  }

  body:not(.home-v2) #main-content .dt-hero {
    min-height: 0;
    height: auto;
    align-items: start;
    background: #061b2e;
  }

  body:not(.home-v2) #main-content .dt-hero::after {
    background: linear-gradient(180deg, #061b2ef5, #061b2ee6);
  }

  body:not(.home-v2) #main-content .dt-hero-content {
    max-width: 100%;
    padding-block: 36px;
  }

  body:not(.home-v2) #main-content :is(.dt-hero-eyebrow, .dt-section-kicker) {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1.5;
  }

  body:not(.home-v2) #main-content .dt-hero-sub {
    margin-bottom: 24px;
    color: #f2f5f7;
  }

  body:not(.home-v2) #main-content .dt-hero-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 10px;
    margin-bottom: 20px;
  }

  body:not(.home-v2) #main-content .dt-hero-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
  }

  body:not(.home-v2) #main-content .dt-hero-list li {
    background: transparent;
    border: 0;
    border-left: 2px solid #fbbf24;
    border-radius: 0;
    padding: 0 0 0 12px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    backdrop-filter: none;
  }

  body:not(.home-v2) #main-content .dt-hero-fade {
    display: none;
  }

  body:not(.home-v2) #main-content :is(.dt-section, .dt-trust-strip) {
    padding-block: 36px;
  }

  body:not(.home-v2) #main-content .dt-section:has(> .dt-wrap > .ti-mobile-disclosure) {
    padding-block: 16px;
  }

  body:not(.home-v2) #main-content .dt-section-head {
    text-align: left;
    margin: 0 0 24px;
    max-width: 100%;
  }

  body:not(.home-v2) #main-content .dt-section-title::after {
    width: 40px;
    height: 3px;
    margin: 16px 0 0;
  }

  body:not(.home-v2) #main-content .dt-section-sub {
    margin-top: 16px;
  }

  body:not(.home-v2) #main-content :is(.dt-grid-2, .dt-grid-3, .dt-services-grid, .dt-steps, .dt-trust-grid, .dt-trust-inner, .dt-whatsapp-evidence, .dt-cta-final-inner) {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  body:not(.home-v2) #main-content :is(.dt-card, .dt-step) {
    min-width: 0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: none;
    transform: none;
  }

  body:not(.home-v2) #main-content :is(.dt-card:hover, .dt-service-card:hover) {
    transform: none;
  }

  body:not(.home-v2) #main-content .dt-card :is(p + p, p + ul) {
    margin-top: 12px;
  }

  body:not(.home-v2) #main-content .dt-card a:not(.dt-btn):not(.button) {
    color: #075781;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  body:not(.home-v2) #main-content .dt-proof-cta {
    padding: 16px;
    border-radius: 6px;
  }

  body:not(.home-v2) #main-content :is(.dt-checks, .dt-trust-list) {
    gap: 12px;
  }

  body:not(.home-v2) #main-content :is(.dt-checks li, .dt-trust-list li) {
    font-size: 17px;
    line-height: 1.55;
    font-weight: 500;
  }

  body:not(.home-v2) #main-content .dt-checks-icon {
    flex: 0 0 auto;
  }

  body:not(.home-v2) #main-content .dt-service-card {
    border-radius: 8px;
    box-shadow: none;
  }

  body:not(.home-v2) #main-content .dt-service-body {
    padding: 20px;
  }

  body:not(.home-v2) #main-content .dt-cta-final {
    padding: 24px 20px;
    border-radius: 8px;
  }

  body:not(.home-v2) #main-content .dt-cta-final :is(p, li) {
    font-weight: 400;
  }

  body:not(.home-v2) #main-content .dt-cta-final ul {
    padding-left: 20px;
  }

  body:not(.home-v2) #main-content a.dt-btn,
  body:not(.home-v2) :is(.page-cta, .hero-actions, .editorial-hero, .cookie-banner) .button {
    min-height: 48px;
    height: auto;
    max-width: 100%;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 6px !important;
    clip-path: none;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 750;
    letter-spacing: normal;
    text-transform: none;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    justify-content: center;
    align-items: center;
    display: inline-flex;
  }

  body:not(.home-v2) #main-content a.dt-btn--whatsapp,
  body:not(.home-v2) .page-cta .button,
  body:not(.home-v2) .hero-actions .button[href*="wa.me"],
  body:not(.home-v2) .editorial-hero .button[href*="wa.me"] {
    color: #fff;
    background: #08763f;
    border-color: #08763f;
  }

  body:not(.home-v2) #main-content a.dt-btn--primary {
    color: #061b2e;
    background: #fbbf24;
    border-color: #fbbf24;
  }

  body:not(.home-v2) #main-content a.dt-btn--whatsapp:hover,
  body:not(.home-v2) .page-cta .button:hover {
    color: #fff;
    background: #075f34;
    border-color: #075f34;
  }

  body:not(.home-v2) #main-content a.dt-btn--primary:hover {
    color: #061b2e;
    background: #fcd15c;
    border-color: #fcd15c;
  }

  body:not(.home-v2) :is(a, button, summary, input, select, textarea):focus-visible {
    outline: 3px solid #1774a5;
    outline-offset: 3px;
  }

  body:not(.home-v2) #main-content :is(.dt-hero, .dt-trust-strip, .dt-step, .dt-cta-final) :is(a, summary):focus-visible {
    outline-color: #fbbf24;
  }

  body:not(.home-v2) #main-content details.dt-card {
    padding: 0 20px;
  }

  body:not(.home-v2) #main-content details.dt-card summary {
    min-height: 56px;
    margin-bottom: 0 !important;
    padding-block: 16px;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 700;
    cursor: pointer;
  }

  body:not(.home-v2) #main-content details.dt-card[open] {
    padding-bottom: 20px;
  }

  body:not(.home-v2) #main-content details.dt-card[open] summary {
    margin-bottom: 8px !important;
  }

  body:not(.home-v2) #main-content .ti-mobile-disclosure {
    min-width: 0;
    border-top: 1px solid #d9e1e6;
    border-bottom: 1px solid #d9e1e6;
  }

  body:not(.home-v2) #main-content .ti-mobile-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding-block: 16px;
    color: #061b2e;
    list-style: none;
    cursor: pointer;
  }

  body:not(.home-v2) #main-content .ti-mobile-disclosure > summary::-webkit-details-marker {
    display: none;
  }

  body:not(.home-v2) #main-content .ti-mobile-disclosure > summary::after {
    content: "+";
    flex: 0 0 28px;
    font-size: 28px;
    line-height: 1;
    text-align: center;
    font-weight: 500;
  }

  body:not(.home-v2) #main-content .ti-mobile-disclosure[open] > summary::after {
    content: "−";
  }

  body:not(.home-v2) #main-content .ti-mobile-disclosure > summary :is(h2, h3) {
    margin: 0;
    min-width: 0;
    font-size: 20px;
    line-height: 1.35;
  }

  body:not(.home-v2) #main-content .ti-mobile-disclosure > summary :is(h2, h3)::after {
    display: none;
  }

  body:not(.home-v2) #main-content .ti-mobile-disclosure[open] {
    padding-bottom: 20px;
  }

  body:not(.home-v2) #main-content :is(.ti-service-image, .ti-service-photo) {
    margin: 24px 0;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
  }

  body:not(.home-v2) #main-content :is(.ti-service-image, .ti-service-photo) img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  body:not(.home-v2) #main-content :is(.ti-service-image, .ti-service-photo) figcaption {
    padding-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
  }

  /* Labeled tables become single-column records; table headers remain available to AT. */
  body:not(.home-v2) #main-content .ti-mobile-table {
    display: table;
    width: 100%;
    min-width: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    overflow: visible;
    background: transparent;
  }

  body:not(.home-v2) #main-content .ti-mobile-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  body:not(.home-v2) #main-content .ti-mobile-table tbody {
    display: block;
    width: 100%;
  }

  body:not(.home-v2) #main-content .ti-mobile-table tbody tr {
    display: block;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #d9e1e6;
    border-radius: 8px;
    background: #fff;
  }

  body:not(.home-v2) #main-content .ti-mobile-table tbody :is(th, td) {
    display: block;
    width: auto;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #e6ebef;
    color: #334155;
    background: transparent;
    text-align: left;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
    overflow-wrap: break-word;
  }

  body:not(.home-v2) #main-content .ti-mobile-table tbody :is(th, td):first-child {
    padding-top: 0;
    color: #061b2e;
    font-weight: 650;
  }

  body:not(.home-v2) #main-content .ti-mobile-table tbody :is(th, td):last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  body:not(.home-v2) #main-content .ti-mobile-table [data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #061b2e;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 750;
  }

  /* Other tables keep native table semantics inside a keyboard-focusable scroll region. */
  body:not(.home-v2) #main-content :is(.ti-table-scroll, .dt-table-wrap, .editorial-table) {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.home-v2) #main-content .ti-table-scroll > table:not(.ti-mobile-table) {
    width: 100%;
    min-width: 36rem;
  }

  body:not(.home-v2) #main-content .roof-type-marquee {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  body:not(.home-v2) #main-content .roof-type-track {
    animation: none;
    transform: none;
    width: max-content;
  }

  body:not(.home-v2) #main-content .roof-type-group[aria-hidden="true"] {
    display: none;
  }

  body:not(.home-v2) #main-content .roof-type-group a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }

  body:not(.home-v2) .page-cta {
    width: calc(100% - 40px);
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-block: 36px;
    padding: 24px 20px;
    border-left-width: 4px;
    border-radius: 8px;
    clip-path: none;
  }

  body:not(.home-v2) .page-cta h2 {
    font-family: inherit;
    max-width: 100%;
    font-size: 26px;
    line-height: 1.2;
    text-transform: none;
  }

  body:not(.home-v2) .page-cta p:not(.eyebrow) {
    font-size: 17px;
    line-height: 1.6;
  }

  body:not(.home-v2) .page-cta-actions {
    width: 100%;
    gap: 10px;
  }

  body:not(.home-v2) .page-cta .text-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    border: 1px solid #8ba3b3;
    border-radius: 6px;
    padding: 12px;
    color: #fff;
    font-size: 16px;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
  }

  body:not(.home-v2) .whatsapp-float {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: calc(var(--interior-contact-height) + env(safe-area-inset-bottom, 0px));
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-top: 1px solid #ffffff66;
    border-radius: 0;
    clip-path: none;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background: #08763f;
    font-size: 16px;
    line-height: 1.35;
    box-shadow: 0 -2px 12px #061b2e14;
  }

  body:not(.home-v2) .whatsapp-float span {
    display: inline;
  }

  body:not(.home-v2) .whatsapp-float svg {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }

  body:not(.home-v2) .whatsapp-float:focus-visible {
    outline-color: #fbbf24;
    outline-offset: -4px;
  }

  body:not(.home-v2):has([data-cookie-banner]:not([hidden])) .whatsapp-float,
  body:not(.home-v2):has(.cookie-banner:not([hidden])) .whatsapp-float,
  body:not(.home-v2).ti-inline-contact-visible .whatsapp-float {
    display: none;
  }

  body:not(.home-v2) .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    padding: 20px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.55;
  }
}

@media (max-width: 359px) {
  body:not(.home-v2) #main-content h1 {
    font-size: 30px;
    letter-spacing: -0.03em;
  }

  body:not(.home-v2) #main-content :is(.dt-wrap, .dt-hero-inner, .dt-trust-inner) {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  body:not(.home-v2) #main-content :is(.dt-card, .dt-service-card, .dt-btn) {
    transition: none;
  }
}
