/* BuchoDenti: resilient content layout, 2026-11-13.
   LAST public stylesheet. Handles administrator-written long copy without horizontal overflow.
   Does not affect /admin styles, theme colors or selected font families. */

html { max-width: 100%; }
body { width: 100%; min-width: 0; }
#main-content, main, .container, .section, .hero, .location, .contact, .footer { min-width: 0; }
.container { max-width: 1240px; }
:where(.hero-grid,.intro-grid,.check-grid,.location-grid,.faq-grid,.contact-grid,
       .detail-grid,.body-columns,.verify-grid,.treatment-grid,.intro-panel,
       .cms-grid,.intl-cards,.intl-related-links,.assurance-grid,.pricing-foot,
       .steps,.footer-main,.section-head,.header-inner,.form-row) > * { min-width: 0; max-width: 100%; }
:where(p,h1,h2,h3,h4,li,small,b,strong,span,blockquote,figcaption,.eyebrow,
       .arrowline,.logo-word,.faq-q,.faq-q span,.intl-card,.intl-related-links a,
       .btn,.contact-chip,.price-row,.price-top,.review-card,.modal-panel) {
  overflow-wrap: anywhere;
  word-break: normal;
}
:where(img,video,iframe,svg) { max-width: 100%; }
:where(h1,h2,h3,h4) { white-space: normal; hyphens: auto; }
:where(p,li,blockquote) { white-space: normal; }

/* Type scale: headings never inherit out-of-control sizes from old custom CSS. */
h1 { font-size: clamp(35px, 4.25vw, 62px); line-height: 1.13; }
h2 { font-size: clamp(29px, 3.1vw, 44px); line-height: 1.22; }
h3 { line-height: 1.33; }
.hero-content h1 { font-size: clamp(37px, 4.1vw, 62px); line-height: 1.13; letter-spacing: -.045em; }
.section-head h2,.intro-left h2,.location-copy h2,.check-copy h2,
.faq-intro h2,.contact-copy h2,.pricing .section-head h2 {
  font-size: clamp(29px, 3.05vw, 44px); line-height: 1.22;
}
.site-page-hero h1 { font-size: clamp(34px, 4.2vw, 58px); }
.reading h2,.warranty-document.reading h2 { font-size: clamp(24px, 2.55vw, 34px); }
.reading h3 { font-size: clamp(20px, 2vw, 26px); }
.hero-content .lead,.reading p,.reading li,.location-copy p,.check-copy > p,
.contact-copy > p { line-height: 1.72; }
.cms-long-heading { font-size: clamp(24px, 2.85vw, 38px) !important; line-height: 1.28 !important; letter-spacing: -.025em !important; text-wrap: pretty; }
.cms-very-long-heading { font-family: var(--sans, Arial, sans-serif) !important; font-size: clamp(19px, 2vw, 26px) !important; font-weight: 500 !important; line-height: 1.43 !important; letter-spacing: normal !important; }
.cms-extended-eyebrow { display:block !important; max-width: 80ch; font-size: 13px !important; font-weight: 550 !important; line-height: 1.65 !important; letter-spacing: .015em !important; text-transform:none !important; white-space:normal !important; }
.cms-extended-eyebrow::before { display:none !important; }
.cms-extended-copy { font: 500 13px/1.68 var(--sans,Arial,sans-serif) !important; letter-spacing: normal !important; text-transform: none !important; }

/* Long-button policy: normal calls-to-action wrap safely. Very long admin labels
   receive a short link label plus their remaining copy as a readable paragraph. */
.btn,.arrowline,.tab,.intl-related-links a,.faq-q,.warranty-link-cta .btn,.warranty-help .btn {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.42;
  height: auto;
}
.btn { padding: 13px 20px; min-height: 47px; gap: 10px; }
.btn > svg,.arrowline > svg { flex: none; width: 16px; height: 16px; }
.hero-cta { display:flex; flex-wrap:wrap; align-items:flex-start; gap:12px; max-width:100%; }
.hero-cta > .btn { flex: 0 1 auto; max-width: 100%; }
.cms-cta-explanation {
  display:block; width:100%; flex:1 1 100%; max-width: 76ch;
  font-size:13px; font-weight:400; line-height:1.72;
  color:var(--muted,#60716b); margin:9px 0 14px;
  overflow-wrap:anywhere;
}
.location .cms-cta-explanation,.contact .cms-cta-explanation { color:#d0dfd8; }
.cms-inline-explanation { margin-top: 14px; }
.topnote {
  height:auto; min-height:31px; padding:8px max(15px,calc((100vw - 1240px)/2));
  display:flex; flex-wrap:wrap; gap:5px 14px; align-items:center; justify-content:center;
  text-align:center; line-height:1.5; letter-spacing:.08em; font-size:10px;
}
.topnote span { min-width:0; max-width:100%; }
.topnote i { flex:none; margin:0 2px; }
.topnote.cms-has-long-copy { text-transform:none; font-size:11px; letter-spacing:.015em; }
.topnote.cms-has-long-copy i { display:none; }
.header-inner { min-width:0; gap:clamp(10px,1.4vw,24px); }
.logo,.logo-word { min-width:0; }
.logo-word strong { max-width: 240px; overflow-wrap:anywhere; }
.header-actions { min-width:0; flex-shrink:0; }
.header-actions .btn { max-width:210px; font-size:11px; padding:10px 14px; }
.nav-links { min-width:0; gap:clamp(9px,1.1vw,23px); }
.nav-links a { white-space:normal; overflow-wrap:anywhere; text-align:center; line-height:1.4; }
.site-header.cms-force-mobile .mobile-toggle { display:flex !important; }
.site-header.cms-force-mobile .header-actions .btn { display:none !important; }
.site-header.cms-force-mobile .nav-links {
  display:none !important; position:absolute; top:100%; left:0; right:0;
  padding:16px max(20px,5vw) 26px; background:#fcfbf8;
  box-shadow:0 16px 28px #092f3129; flex-direction:column;
  align-items:stretch; max-height:min(72vh,650px); overflow-y:auto; gap:0;
  z-index:99;
}
.site-header.cms-force-mobile .nav-links.open { display:flex !important; }
.site-header.cms-force-mobile .nav-links a { font-size:14px; text-align:left; padding:12px 0; }

/* Hero photo/caption keeps its image, not long paragraphs inside a circle. */
.hero-grid { grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr); align-items:stretch; }
.hero-content { min-width:0; padding-right:clamp(18px,2.5vw,42px); }
.hero-photo-wrap { min-width:0; }
.hero-stamp,.photo-label,.check-overlay { overflow-wrap:anywhere; }
.hero-stamp { max-width: min(36%,158px); }
.hero-stamp span,.hero-stamp b,.photo-label b,.photo-label small { overflow-wrap:anywhere; }
.hero-stamp:after { pointer-events:none; }
.photo-label { max-width:calc(100% - 105px); }
.hero-bottom { align-items:flex-start; min-width:0; }
.hero-bottom p { max-width: min(100%, 650px); min-width:0; }
.hero-bottom-rule { flex: 0 0 30px; margin-top:9px; }
.cms-photo-notes {
  width:min(100% - 96px,1240px); margin:0 auto; padding:18px 0 27px;
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr)); gap:15px;
}
.cms-photo-notes:empty { display:none; }
.cms-photo-notes .hero-stamp,.cms-photo-notes .photo-label {
  position:static !important; inset:auto !important; transform:none !important;
  max-width:none !important; width:100%; min-height:0; height:auto;
  box-shadow:none !important; border:1px solid #dce6df; border-radius:12px;
  padding:20px 22px; background:#eff5f0; color:var(--deep); text-align:left;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start;
  gap:6px; font-family:var(--sans,Arial,sans-serif);
}
.cms-photo-notes .hero-stamp:after { display:none; }
.cms-photo-notes .hero-stamp span,.cms-photo-notes .hero-stamp b,
.cms-photo-notes .photo-label b,.cms-photo-notes .photo-label small {
  font-family:var(--sans,Arial,sans-serif); font-size:13px; font-style:normal;
  font-weight:500; line-height:1.6; color:var(--ink2,#305655); text-transform:none;
  letter-spacing:normal; text-align:left; margin:0; display:block;
}
.cms-photo-notes .hero-stamp b { font-size:16px; font-weight:650; color:var(--deep); }
.cms-photo-notes .photo-label .pin { display:none; }
.cms-photo-notes .photo-label > span:last-child { width:100%; }

/* Illustrated media captions are short labels, not containers for articles. */
.check-grid { grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr); gap:clamp(28px,5vw,76px); }
.check-image { min-width:0; }
.check-overlay { max-width:calc(100% - 60px); }
.check-overlay strong { max-width:100%; font-size:clamp(19px,2.3vw,28px); }
.check-copy { min-width:0; }
.cms-image-note {
  position:static !important; inset:auto !important;
  max-width:100% !important; margin:18px 0 0;
  padding:20px 22px; background:#e4eee7; color:var(--deep);
  border:1px solid #ccdcd0; border-radius:12px;
}
.cms-image-note strong,.cms-image-note small {
  display:block; max-width:none; font:500 13px/1.65 var(--sans,Arial,sans-serif);
  letter-spacing:normal; text-transform:none; color:var(--ink2,#365958);
}
.cms-image-note strong { font-weight:650; font-size:15px; margin-top:6px; }

/* Dynamic cards, steps and lower page content. */
.intro-grid { grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr); gap:clamp(24px,5vw,70px); }
.intro-panel { grid-template-columns:repeat(2,minmax(0,1fr)); }
.intro-card,.step,.t-card,.verify-card,.intl-card,.case-card,.review-card,.pricing-info,
.cms-card,.contact-panel,.warranty-document,.warranty-link-cta { min-width:0; max-width:100%; }
.intro-card { min-height:0; }
.intro-card p { max-width:100%; }
.section-head { align-items:start; }
.section-head .copy { min-width:0; flex:1 1 350px; }
.section-head > p { flex:0 1 420px; min-width:0; }
.section-head > .btn { flex:0 1 auto; max-width: min(100%,380px); }
.location-grid { grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:clamp(20px,4vw,54px); }
.location-art { min-width:0; overflow:hidden; }
.location-art .art-ring { max-width:100%; }
.contact-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(26px,4.5vw,66px); }
.contact-panel, .contact-copy { min-width:0; }
.contact-chips { max-width:100%; }
.contact-chip { white-space:normal; }
.form-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
.field,.field input,.field textarea { min-width:0; max-width:100%; }
.assurance-grid,.verify-grid,.treatment-grid,.intl-cards,.pricing-foot,.cms-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.assurance-item,.t-meta,.warranty-help,.warranty-link-cta { min-width:0; }
.assurance-item svg,.t-meta button { flex-shrink:0; }
.footer-main { grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr)) minmax(0,1.15fr); }
.footer-bottom,.footer-bottom .small-links { flex-wrap:wrap; }
.price-board { overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100%; }
.price-row .num,.price-top span { overflow-wrap:anywhere; }
.reading,.page-body,.body-columns,.detail-grid,.warranty-page-wrap { min-width:0; }
.reading a,.reading code,.detail-meta { overflow-wrap:anywhere; }
.modal-panel { overflow-x:auto; max-height:calc(100vh - 36px); overflow-y:auto; }

@media(max-width:1200px) {
  .site-header .mobile-toggle { display:flex; }
  .site-header .header-actions .btn { display:none; }
  .site-header .nav-links { display:none; position:absolute; left:0; right:0; top:100%;
    padding:18px 28px 27px; background:#fcfbf8; box-shadow:0 14px 26px #092f3122;
    flex-direction:column; align-items:stretch; max-height:75vh; overflow-y:auto; gap:0; }
  .site-header .nav-links.open { display:flex; }
  .site-header .nav-links a { text-align:left; font-size:14px; padding:12px 0; }
}
@media(max-width:960px) {
  .hero-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hero-content { padding-block:62px; padding-right:20px; }
  .hero-content h1 { font-size:clamp(34px,4.2vw,49px); }
  .intro-grid,.check-grid,.faq-grid { gap:28px; }
  .assurance-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .assurance-item { padding:20px 12px; }
  .location-grid { gap:23px; }
  .footer-main { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .container,.cms-photo-notes { width:calc(100% - 40px); }
  .section { padding-block:56px; }
  .section-head { display:flex; flex-direction:column; align-items:stretch; gap:16px; }
  .section-head .copy { flex:auto; width:100%; }
  .section-head > .btn { width:fit-content; max-width:100%; }
  .hero-grid { display:flex; flex-direction:column; min-height:0; }
  .hero-content { order:0; padding:43px 0 40px; }
  .hero-photo-wrap { order:1; margin:0 calc((40px - 100vw)/2) !important; min-height:320px; height:clamp(320px,68vw,490px); }
  .hero-content h1 { font-size:clamp(34px,8.2vw,47px); }
  .hero-content .lead { font-size:14px; line-height:1.7; }
  .hero-cta { margin-top:22px; }
  .hero-cta > .btn { flex:1 1 210px; }
  .hero-bottom { margin-top:24px; }
  .hero-photo-wrap .hero-stamp { top:16px; right:16px; width:100px; height:100px; }
  .photo-label { left:25px; bottom:20px; }
  .cms-photo-notes { padding-block:17px; }
  .intro-grid,.check-grid,.faq-grid,.contact-grid,.body-columns,.detail-grid,.location-grid { grid-template-columns:minmax(0,1fr) !important; }
  .intro-grid,.check-grid,.faq-grid,.contact-grid { gap:27px; }
  .location-copy { padding:52px 0 12px; }
  .location-art { min-height:220px; padding:14px 0 32px; }
  .location-art .art-ring { height:230px; width:230px; }
  .location-art img { width:min(100%,330px); }
  .check-image,.check-image>img { height:auto; min-height:0; }
  .check-image>img { height:clamp(280px,70vw,450px); }
  .contact-grid { padding:60px 0; }
  .assurance-grid,.verify-grid,.pricing-foot,.cms-grid { grid-template-columns:minmax(0,1fr); }
  .treatment-grid,.intro-panel,.intl-cards,.steps { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .assurance-item { border-left:0; border-top:1px solid #ffffff22; padding:18px 0; }
  .assurance-item:first-child { border-top:0; }
  .footer-main { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .footer-about { grid-column:1/-1; }
  .footer-col:last-child { grid-column:1/-1; }
  .faq-q { white-space:normal; text-align:left; }
  .faq-q > span:first-child { flex:1 1 auto; min-width:0; }
  .warranty-help { display:flex; flex-wrap:wrap; }
  .warranty-help .btn,.warranty-link-cta .btn { margin:0; }
  .modal-panel { padding:28px 20px; }
}
@media(max-width:520px) {
  .container,.cms-photo-notes { width:calc(100% - 32px); }
  .topnote { font-size:9px; }
  .logo { gap:9px; }
  .logo-mark { flex:none; width:40px; height:40px; }
  .logo-word strong { font-size:16px; max-width:205px; }
  .hero-content h1 { font-size:clamp(33px,8.2vw,40px); }
  h2,.section-head h2,.intro-left h2,.location-copy h2,.check-copy h2,
  .faq-intro h2,.contact-copy h2,.pricing .section-head h2 { font-size:clamp(26px,7vw,34px); }
  .hero-photo-wrap { margin:0 calc((32px - 100vw)/2) !important; }
  .hero-cta { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
  .hero-cta > .btn { width:100%; justify-content:space-between; text-align:left; }
  .hero-cta .cms-cta-explanation { margin:0 0 13px; }
  .intro-panel,.treatment-grid,.intl-cards,.steps,.case-grid,.review-grid,.form-row { grid-template-columns:minmax(0,1fr) !important; }
  .hero-stamp:not(.cms-photo-notes .hero-stamp) { transform:scale(.88); transform-origin:top right; }
  .check-overlay { left:18px; bottom:17px; max-width:calc(100% - 36px); }
  .check-overlay strong { font-size:19px; }
  .check-copy .btn,.location-copy .btn,.contact-panel .btn { width:100%; }
  .form-row { gap:0; }
  .warranty-link-cta { display:flex; flex-wrap:wrap; }
  .warranty-link-cta .btn { width:100%; max-width:100%; }
  .warranty-document.reading { padding-inline:20px; }
  .float-whatsapp { width:48px; height:48px; right:14px; bottom:75px; }
  .float-top { right:14px; }
}
@media(max-width:360px) {
  .container,.cms-photo-notes { width:calc(100% - 26px); }
  .logo-word strong { font-size:15px; max-width:175px; }
  .hero-content h1 { font-size:32px; }
  .hero-photo-wrap { margin:0 calc((26px - 100vw)/2) !important; }
  .hero-content .eyebrow { margin-bottom:17px; }
  .contact-panel { padding:18px; }
}
/* Final viewport-edge alignment. Negative flex margins must not shrink photo width. */
.cms-header-explanation {
  width:100%; max-width:none; margin:0; background:#eef4ef;
  border-bottom:1px solid #d6e4da; color:#506a60;
  padding:12px max(22px,calc((100vw - 1240px)/2));
  line-height:1.6; font-size:12px;
}
@media(max-width:760px) {
  .hero-grid > .hero-photo-wrap {
    box-sizing:border-box;
    flex:0 0 auto !important;
    width:calc(100% + 40px) !important;
    max-width:none !important;
    margin:0 -20px !important;
  }
  .cms-header-explanation { padding:13px 20px; }
}
@media(max-width:520px) {
  .hero-grid > .hero-photo-wrap { width:calc(100% + 32px) !important; margin:0 -16px !important; }
  .cms-header-explanation { padding:12px 16px; }
}
@media(max-width:360px) {
  .hero-grid > .hero-photo-wrap { width:calc(100% + 26px) !important; margin:0 -13px !important; }
  .cms-header-explanation { padding:12px 13px; }
}
/* A full paragraph accidentally entered in a heading field is treated as prose. */
.cms-reflowed-heading { font-size:clamp(27px,3.1vw,43px) !important; line-height:1.24 !important; letter-spacing:-.03em !important; }
.cms-heading-explanation {
  display:block; max-width:75ch; margin:15px 0 20px !important;
  font-family:var(--sans,Arial,sans-serif); font-size:clamp(14px,1.15vw,16px) !important;
  color:var(--muted,#627d70); font-weight:400; line-height:1.75 !important;
  text-align:left; letter-spacing:normal !important; text-transform:none !important;
  overflow-wrap:anywhere;
}
.location .cms-heading-explanation,.contact .cms-heading-explanation { color:#cedbd4; }
/* Edge-to-edge image on wide screens; the image must reach the viewport edge. */
.hero-grid > .hero-photo-wrap { max-width:none; }
/* Microcopy pasted as long-form text gets an appropriate reading area. */
.cms-hero-supplement {
  width:min(100% - 96px,1240px); margin:0 auto; padding:12px 0 32px;
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));
  gap:16px; align-items:start;
}
.cms-hero-supplement:empty { display:none; }
.cms-hero-bottom-long,.cms-announcement-detail {
  display:block; min-width:0; margin:0; padding:19px 23px;
  background:#eef4ef; border:1px solid #dbe6df; border-radius:11px;
  color:#4d6b61; font:400 14px/1.7 var(--sans,Arial,sans-serif);
  text-transform:none; letter-spacing:normal;
}
.cms-hero-bottom-long .hero-bottom-rule { display:none; }
.cms-hero-bottom-long p {
  max-width:none !important; font:400 14px/1.7 var(--sans,Arial,sans-serif) !important;
  text-transform:none !important; letter-spacing:normal !important; color:#4d6b61;
}
.cms-label-details {
  max-width:72ch; margin:12px 0 20px !important;
  font:400 14px/1.72 var(--sans,Arial,sans-serif) !important;
  letter-spacing:normal !important; text-transform:none !important;
  color:var(--muted,#607770); overflow-wrap:anywhere;
}
.location .cms-label-details,.contact .cms-label-details { color:#cadbd4; }
@media(max-width:760px) {
  .cms-hero-supplement { width:calc(100% - 40px); padding:12px 0 24px; }
  .cms-hero-bottom-long,.cms-announcement-detail { padding:16px; }
}
@media(max-width:520px) { .cms-hero-supplement { width:calc(100% - 32px); } }
@media(max-width:360px) { .cms-hero-supplement { width:calc(100% - 26px); } }
