/* Mobile / Safari hotfix (A-103, 2026-10-31) — loaded on every page by wp-content/mu-plugins/alb-mobile.php. Sections 1–3 leave desktop (> 1024 px) untouched;
   section 4 (A-105) is the Home Hero on short laptop screens only. */

/* 1. Header: the Atomic SVG widget prints the logo as <svg width="1366" style="width: 100%">. Safari resolves that percentage from the free space of the flex bar
   (logo 287 px instead of 181 px at 390) and the Menu button, min-width 0, is squeezed below its label (43 px for a 70 px «MENU»). Width from the height and the viewBox,
   as Chrome already draws it; the button keeps its own width. Same logo rule in the header and in the footer. */
.elementor .logo .alb-svgimg > svg { width: auto !important; }
.elementor .menu-toggle { flex-shrink: 0; }

/* 2. LinkedIn: «↗» (U+2197) is not in the site fonts, so iOS draws it with Apple Color Emoji (white arrow on a blue tile). Replaced by an inline SVG (alb-mobile.php). */
.alb-ext { display: inline-block; width: .76em; height: .76em; vertical-align: -.04em; overflow: visible; stroke-width: 2.1; }
/* the open phone / tablet menu sets the links in the 900 display face: heavier stroke to match */
@media (max-width: 1024px) { .js :is(.nav, .home-nav) .alb-ext { stroke-width: 3; } }
@media (forced-colors: active) { .alb-ext { color: LinkText; } }

/* 3. Static composition (reduced motion / no JS: html without .fx) on phones and tablets — the kinetic version is unchanged.
   Tapes: without the marquee the band showed only the first words, cut at the right edge; the words now wrap inside the band. */
@media (max-width: 1024px) {
  html:not(.fx) .elementor .tape-track { width: auto; padding-right: calc(6vw + var(--gutter)); }
  html:not(.fx) .elementor .tape-list { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; row-gap: 2px; }
  html:not(.fx) .elementor .tape-list > :is(li, [data-tag="li"]):last-child::after { display: none; }
}

@media (max-width: 760px) {
  /* Stack: the wrapped word wall at 41.6 px put one or two words per line (Screaming Frog, Google Analytics, Visual Studio Code ≈ the full width). One step down
     on phones, same weight and case: 28 px at 320, 33 px at 390, unchanged from 496 px. */
  html:not(.fx) .elementor .stack .wall-list :is(li, [data-tag="li"]) { font-size: clamp(1.75rem, 8.4vw, 2.6rem); }
}

@media (max-width: 1024px) {
  /* Footer signature: without the loop it was a static «ANDREA LA BAR…» cut by the frame. On phones and tablets it becomes the whole name on two lines
     (ANDREA LA / BARBERA), as large as the frame allows (67 px at 320, 83 px at 390, 144 px from 650); the duplicate copy, needed only by the loop, is hidden. */
  html:not(.fx) footer [aria-hidden="true"] > div:has(> span[data-t]) { display: block; width: auto; padding-inline: var(--gutter); font-size: min(calc((100vw - 2 * var(--gutter)) / 4.3), 9rem); }
  html:not(.fx) footer [aria-hidden="true"] > div:has(> span[data-t]) > span { display: block; padding-right: 0; }
  html:not(.fx) footer [aria-hidden="true"] > div:has(> span[data-t]) > span + span { display: none; }
}

/* 4. Home Hero on short laptop screens (A-105, 2026-11-12). The name grows with the height (31svh) while the description box is pinned 76 px above the
   bottom with a fixed ~255 px (CTA and link on two rows): below ~830 px of viewport height the box covered «LA BARBERA» (by 9–62 px at 1440 × 800 … 1600 × 700).
   Name, portrait and badge now shrink a little more when the screen is short; the box is a bit wider so CTA and link share one row (~190 px tall).
   No change from 1000 px of height (1728 × 1000, 1920 × 1080), on tablets and phones (≤ 1024 px wide, so 200 % zoom too), nor to motion. */
@media (min-width: 1025px) {
  .home .elementor .hero { --s1-height: calc(100% - max(0px, 1000px - 100svh) * .2); --s2-height: calc(100% - max(0px, 1000px - 100svh) * .2); }
  .home .elementor .hero .name { font-size: min(21.5vw, 31svh, 40svh - 90px); }
  .home .elementor .hero .plate--2 ~ span { font-size: clamp(2rem, min(4.6vw, 8svh), 5rem); }   /* badge «Web designer.» */
}
@media (min-width: 1025px) and (max-height: 900px) {
  .home .elementor .hero div:has(> .lead) { width: min(520px, 40vw + 2rem); padding: 18px 22px 16px; gap: 14px; }
  /* logged-in only: the 32 px WordPress admin bar pushed the stage down, the ticker below the fold and the motion toggle onto the box */
  .admin-bar.home .elementor .hero div:has(> .plate--1) { height: clamp(588px, 100svh - var(--bar) - 32px, 908px); }
}
