/* restore extras — generated by restore_04_polish.py */

/* Consent overlays: the restore ships no analytics or third-party tracking at all, so there
   is nothing to consent to. Their scripts are gone too, meaning the banner can never be
   dismissed and would cover the top of every page. Removing the markup is unreliable when a
   JS bundle re-renders it, so it is hidden here as well. */
.cookies-banner, .cookies-banner-content, .cookie-banner, .cookie-consent, .cookie-notice,
.cc-window, .cc-banner, #cookie-law-info-bar, #cookieChoiceInfo, .gdpr-banner,
#tarteaucitronRoot, .consent-overlay, .cookiebar {
  display: none !important;
}
body.cookie-banner-open, body.has-cookie-banner, html.cookies-open {
  overflow: auto !important;
}

/* Dead account/login modals left by the CMS (no backend on a static host) */
.modal-login, #loginModal, .login-modal { display: none !important; }

/* Carousel slots the platform's JS bundles would have filled at runtime: without a working
   bundle they stay as <img> elements with no src and render as broken-image icons. Nothing is
   lost by hiding them — they never had content in the restore. */
img:not([src]), img[src=""], img[src="#"] { display: none !important; }

/* The client's backlink block must read as the page's own copy. Where a theme only colours
   links inside specific containers, the anchor would otherwise look like plain text — inherit
   the surrounding colour but keep an underline so it is still visibly a link. */
.content-wraparea a { color: inherit; text-decoration: underline; }

/* A few px of horizontal overflow on phones (an absolutely-positioned login list, a wide footer
   logo) makes the whole page pannable sideways, which reads as broken.
   NB: use `clip`, never `hidden`, and never on html together with height:100%. `overflow:hidden`
   turns the element into a scroll container: on themes that set html{height:100%} it stops body's
   overflow propagating to the viewport, the window stops scrolling entirely and every
   scroll-driven behaviour (sticky nav, back-to-top, in-page anchors, PageDown/End) dies.
   `clip` suppresses the sideways pan without creating a scroll container. */
body { overflow-x: clip; }
/* ---- end generated block; anything below is preserved across re-runs ---- */

/* ============================================================================================
   A PHONE GETS A PHONE LAYOUT (o7 fixer, 2026-10-17)
   WHAT WAS WRONG. Every page is Wysiwyg-Web-Builder absolute positioning: a 800x500 content
   box at left:205 beside a 194px menu, and every block inside placed by left/top in px. The
   build inserted <meta viewport width=device-width>, so a 390px phone laid that ~1000px canvas
   out in 390 CSS px and showed the menu plus a sliver (text cut after 2-3 words). Scaling the
   page down with width=1020 was tried on order 4 and rejected (5px copy), so the meta is KEPT and
   the pinned boxes are released below 769px: logo, menu, page content, the client's block and
   the footer line become one column in document-meaningful order (flex `order`).
   Unpinned: body-level #ContentPlaceHolder1, #SlideMenu1, the logo, the footer divs, the client's
   .content-wraparea (from OUTSIDE - its markup is untouched), and every absolutely placed div
   inside #ContentPlaceHolder1. !important is needed because the positions are inline styles.
   ============================================================================================ */
@media (max-width: 768px) {
  html, body { width: auto; min-width: 0; }
  body { display: flex; flex-direction: column; padding: 0 12px 24px; box-sizing: border-box; }
  body > p { order: 0; margin: 12px 0 8px; }
  body > p img#Text1 { position: static !important; width: auto !important; height: auto !important; max-width: 70%; }
  #SlideMenu1 { order: 1; position: static !important; width: auto !important; height: auto !important; margin: 0 0 14px; }
  #SlideMenu1 li div { width: auto !important; box-sizing: border-box; }
  #ContentPlaceHolder1 { order: 2; position: static !important; width: auto !important; height: auto !important;
    overflow: visible !important; }
  #ContentPlaceHolder1 div, #ContentPlaceHolder1 table {
    position: static !important; left: auto !important; top: auto !important;
    width: auto !important; height: auto !important; max-width: 100% !important; margin-bottom: 14px !important; }
  #ContentPlaceHolder1 img { width: auto !important; height: auto !important; max-width: 100% !important; }
  #ContentPlaceHolder1 iframe { max-width: 100% !important; }
  body > .content-wraparea { order: 3; position: static !important; left: auto !important; top: auto !important;
    width: auto !important; max-width: 100% !important; height: auto !important; margin: 8px 0 18px !important; }
  body > div[id^="wb_"] { order: 4; position: static !important; left: auto !important; top: auto !important;
    width: auto !important; height: auto !important; text-align: left !important; margin: 4px 0 !important; }
  /* empty &nbsp; spacer divs from the builder (home page only) */
  body > div:not([id]):not([class]) { display: none !important; }
  body > div#wb_TextMenu1 { order: 5; }
}


/* THE PAID LINK MUST LOOK LIKE A LINK, IN THIS SITE'S OWN LINK STYLE (owner, 2026-10-18).
   An earlier rule of ours, `.content-wraparea a { color: inherit }`, told the client's anchor to
   take the paragraph's colour - which is precisely what stops a link looking like one. The colour
   below is measured from this site, not chosen: 38 anchors on this site inherit #8b0000; that is its link colour.
   The block is NOT moved. Its position was engineered on purpose and the reason is recorded in
   wf_weaves_daymaodontologos.com.json: this WebBuilder page has no flow at all - its content is an 800x500 absolutely positioned scroll box - so the block carries its own position in the same coordinate system, after the only text run unique to the page.
   CSS only - markup, href and anchor text are byte-identical. */
.content-wraparea a {
  color: #8b0000 !important;
  text-decoration: underline !important;
}

/* CONTRAST FIX (2026-10-19, legibility gate). The "CLÍNICA  DENTAL" line under the wordmark is
   #999999 on white: 2.85:1 (needs 4.5). The grey is kept and darkened to #666666 (5.74:1 on white). */
span[style*="color: #999999"] { color: #666666 !important; }

/* OVERFLOW FIX (2026-10-19, legibility gate: HORIZONTAL OVERFLOW 1029px in 1024px at tablet).
   The legacy absolute text and spacer blocks are written as left:5px; width:1024px, so their right
   edge sits at 1029px. Capping them at the viewport width (less the 5px offset) removes the sideways
   pan. At desktop widths the 1024px width is unchanged, since the cap is larger than the block. */
div[style*="width:1024px"][style*="position:absolute"] { max-width: calc(100% - 5px); }
