/* Theme 0.17.2 (29 Nov 2026), after the launch. Loaded last on every page of the theme (inc/v7.php), never on the
   frozen OT-AM landing page. Emilie, 29 Nov 2026: "fix the layout in safari and the phone".
   Every rule is for phones (up to 700 px) or for Safari; the desktop layout is not changed. */

/* ---- 1. Safari on iPhone: no font growing when the phone is turned ---- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

@media (max-width:700px){

/* ---- 2. one left edge on phones: the logo, the hero text and the text of every section start 24 px in ----
   Before: logo at 16 px, the text of the sub-pages at 24 px, the front page hero text at 64 px (Emilie's picture). */
html body.bc-menu-lp .bc-masthead .bc-bar__inner,
html body.bc-menu-lp .bc-masthead.is-fixed .bc-bar__inner{padding-left:max(24px,env(safe-area-inset-left,0px))!important;padding-right:max(24px,env(safe-area-inset-right,0px))!important}

/* front page: the sections had 44 px at the sides and the hero text 20 px more */
html body .bh11-sec.bh11-sec.bh11-sec.bh11-sec.bh11-sec.bh11-sec.bh11-sec>.elementor-container>.bh11-w>.elementor-widget-wrap,
html body .bh11-sec.bh11-sec.bh11-sec.bh11-sec.bh11-sec.bh11-sec.bh11-sec.bh11-hero>.elementor-container{padding-left:24px!important;padding-right:24px!important}
html body .bh11-sec.bh11-hero .bh11-htxt,
html body .bh11-htxt{padding-left:0!important;padding-right:0!important;max-width:100%}

/* Knowledge Centre: the article had 30 + 25 px at each side (GeneratePress and BetterDocs); now 24 px as everywhere else */
html body.single-docs #content.site-content,
html body.tax-doc_category #content.site-content,
html body:has(.betterdocs-content-wrapper) #content.site-content{padding-left:0!important;padding-right:0!important}
html body .betterdocs-content-wrapper{padding-left:24px!important;padding-right:24px!important}

/* ---- 3. taps: the footer links are at least 32 px high (they were 19 to 21 px) ---- */
html body .bc-footer .bc-footer__col a,
html body .bc-footer .bc-footer__legal a,
html body .bc-footer .bc-footer__contact a{display:inline-block;padding-top:6px;padding-bottom:6px}

/* ---- 4. the cookie button (bottom left) no longer covers the last line of the footer ---- */
html body .bc-footer .bc-footer__bottom{padding-bottom:72px}

/* ---- 5. the cookie button stays under the OT-AM pop-up on the front page, so "No thanks" can be tapped ---- */
html body #CookiebotWidget:not(.CookiebotWidget-open){z-index:99990!important}

/* ---- 6. Safari on iPhone zooms into a field with text under 16 px: every text field is 16 px ---- */
html body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]):not([type=image]):not([type=reset]):not([type=hidden]),
html body select,
html body textarea{font-size:16px!important}
}

/* ---- 7. Safari on iPhone: the open phone menu fits above the browser bar (100vh is taller than the window there) ---- */
@media (max-width:1199px){@supports (height:100dvh){
	html body .bc-nav{max-height:calc(100dvh - var(--bc-mast-h, 72px))}
}}

