/* 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 ---- */

/* ------------------------------------------------------------------ order-7 fixer, 2026-10-16
   WHY !important AND WHY HERE. This site's own stylesheets are linked AFTER </html> (the capture
   put them there), so they are later in document order than the <head> link to this file and win
   every tie. The three rules below are AA contrast repairs measured by qa_legibility, so they
   have to win.

   1. The menu bar: white nav labels and the phone number on #347ccb measure 4.29:1, under the
      4.5 floor. #3277c3 is the same blue 4% darker and measures 4.60:1.
   2. .blau-clar is the theme's light blue (#2CADFF) used for page subtitles, sidebar subtitles
      AND a body paragraph on the homepage - 2.46:1 on white, i.e. barely readable. #1f7bb5 keeps
      the hue and measures 4.61:1.
   3. The footer legal links and the social icon row are 16px-tall hit targets; padding takes them
      over the 24px floor without moving anything else. */
.navbar { background-color: #3277c3 !important; }
.blau-clar { color: #1f7bb5 !important; }
.ftr-links a, .firma-credit a { display: inline-block; padding: 5px 2px !important; }
.xarxes a, .xarxes-2 a, .ftr-logos a { display: inline-block; padding: 4px !important; }

/* ------------------------------------------------- order-7 fixer, 2026-10-16, second round
   4. LINKS. The theme's `a { color:#2CADFF }` measures 2.46:1 on white - under AA for every
      link on the site, including the footer's legal links and a sidebar call-out. #1f7bb5 is
      the same hue at 4.61:1. Written as `html body a` (0,0,3) rather than !important so that
      every class-scoped colour the theme sets - the white nav labels, the red "Ver todas",
      the grey dropdown items - still wins, which an !important on `a` would have destroyed.
   5. AN INLINE <a> THAT WRAPS AN IMAGE IS A 16px HIT TARGET. The anchor's box is a line box
      from the font metrics while the image overflows it, so the logo measured 750x16 and the
      social icons 50x16. inline-block makes the anchor wrap its image.
   6. THE HERO CAPTIONS SIT OVER A ROTATING PHOTOGRAPH. Measured behind the caption on each of
      the six slides, white text scores 14.1, 9.4, 3.6, 8.9, 1.65 and 8.1 to 1 - and on the
      lightest patch of dra6 it reaches 1.00:1, i.e. invisible. The caption cannot carry an
      opaque background without hiding the photograph, so it gets a shadow that holds on every
      slide, and .caption-3's muted #8CA2BE (2.62:1) is lifted to a light tint.
   7. THE CONSENT CLAUSE shipped at 7px. At the 12px floor the clinic's full LOPD text fills
      the sidebar, so it keeps every word in a scrolled box instead. */
html body a { color: #1f7bb5; }
a:has(> img) { display: inline-block; }
.carousel-caption { text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 16px rgba(0, 0, 0, .75); }
.caption-3 { color: #dfe7f1 !important; }
.consent-text {
  font-size: 12px !important;
  max-height: 150px;
  overflow-y: auto;
  padding: 6px 8px;
  border: 1px solid #dfe6ee;
  border-radius: 3px;
  background: #fbfcfe;
}

/* ------------------------------------------- order-7 fixer, 2026-10-16, the rest of the palette
   Every text colour this theme sets was measured against the white it is printed on; these five
   were the ones under AA, and each new value is the same hue darkened only until it passes:
     .pagina-cv .titol-pagina  #ff9900 2.14:1 -> #cf7c00 3.21:1  (bold ~22px, large-text floor 3)
     .groc (heading)           #ff6600 2.94:1 -> #f26100 3.24:1  (large-text floor 3)
     .ver-mas-taronja a        #ff6600 2.94:1 -> #c44f00 4.70:1  (body size, floor 4.5)
     .ver-mas-vermell a        #fb2901 3.87:1 -> #e42501 4.60:1
     .post-info, breadcrumb    #808080 3.95:1 -> #747474 4.67:1
   The hero caption colours are deliberately NOT in this list: they are printed over a rotating
   photograph, not over white, and the measured ground there is 14.1 / 9.4 / 3.6 / 8.9 / 1.65 /
   8.1 to 1 across the six slides. */
.pagina-cv .titol-pagina { color: #cf7c00 !important; }
.groc { color: #f26100 !important; }
.ver-mas-taronja a { color: #c44f00 !important; }
.ver-mas-vermell a { color: #e42501 !important; }
.post-info, .breadcrumb-blog > div > a { color: #747474 !important; }

/* The last two hit targets: "Ver todas"/"Ver mas" are inline anchors whose box is a 16px line
   box, and jsSocials draws its share buttons as a 31x28 anchor owning 2px of it. */
.ver-mas-vermell a, .ver-mas-taronja a { display: inline-block; padding: 4px 2px; }
.jssocials-share-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

/* /politica-de-cookies/ scrolls sideways on a phone: 497px of content in a 390px viewport. The
   policy prints four browser-help URLs as their own link text (65 characters with no break
   opportunity) and carries a table whose "table-responsive" class is on the TABLE, where
   Bootstrap 3 does nothing with it - it only works on a wrapping div. Both are given the
   behaviour they were meant to have. */
.main a { overflow-wrap: anywhere; }
/* MEASURED: the cookie table's own box starts 32px in and `width:100%` resolved against a
   containing block that is itself 10px wider than the viewport, so the table ended at
   x=400 in a 390px page while its rows ran to x=498. width:auto + max-width:100% keeps
   the box inside its parent and lets the table scroll inside itself, so no column of the
   clinic's cookie table is lost. */
.main table { display: block; width: auto; max-width: 100%; overflow-x: auto; }
