/* WordPress integration for the Groove Kids Dental theme */

/* Template-part wrappers must not box in the header: the sticky header sticks to the whole page. */
.wp-site-blocks > .wp-block-template-part { display: contents; }

/* Keep the sticky header below the admin toolbar when signed in. */
body.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }

/* Phones held sideways (short screens): the sticky header would cover a quarter of the screen and
   the full-height hero pushed the headline below the fold. Scroll the header away with the page,
   start the hero text at the top and keep the hero photo within the screen height. */
@media (orientation: landscape) and (max-height: 500px) {
  body .site-header, body.admin-bar .site-header { position: relative; top: 0; }
  .hero > .wrap { min-height: 0; padding-top: 16px; padding-bottom: 24px; align-items: start; }
  .hero > .wrap > .photo, .hero > .wrap > .hero-shot { width: min(100%, calc((100svh - 40px) * .8)); justify-self: center; }
}

/* Bigger tap areas (44px tall) for small text links, without changing how they look. */
.gkd-page-doctor span.full a, .gkd-page-contact dd a { position: relative; }
.gkd-page-doctor span.full a::after, .gkd-page-contact dd a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }

/* Hero text shows at first paint. The samples fade the headline in word by word (and the kicker,
   lede, Dr. Mangal's role line, the guides' tagline and the Contact / Emergencies phone card
   after it), which kept the main text invisible until the page scripts and fonts had loaded and
   slowed the page's main paint (LCP) on phones. That text now appears straight away; the
   highlight sweep, buttons, photo reveal, search box, in-page menus and dots still animate. */
.motion .hero h1:not(.is-split), .motion .hero h1 .w, .motion .hero .hero-title:not(.is-split), .motion .hero .hero-title .w, .motion .hero-place, .motion .hero-lede, .motion .hero--doc .role,
.motion .hero .tagline, .motion .gkd-page-contact .call, .motion .gkd-page-emergencies .call-card {
  opacity: 1; transform: none; filter: none; transition: none;
}
/* Home: Dr. Mangal's hero photo is the page's main paint (LCP) on phones. Its circle reveal kept it
   hidden for about 2 s (PageSpeed mobile 75, LCP 5.5 s, 2026-11-17), so it now shows straight away.
   The Dr. Mangal page keeps its reveal (its main paint is the headline). */
.motion .gkd-page-home .hero .photo img { clip-path: none; transition: none; }

/* Photos carry width/height so the browser reserves their space while they load; the page CSS
   still decides their size (zero-specificity rule: any sizing rule in the page CSS wins). */
:where(.gkd-main img[width][height], main img[width][height]) { height: auto; }

/* Plain pages and posts (no designed layout): readable column in the brand type. */
.gkd-plain { padding: 72px 28px 104px; }
.gkd-plain > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.gkd-plain h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 28px; }
.gkd-plain .gkd-meta { font-size: .95rem; margin: -12px auto 28px; }
.gkd-prose > * { margin-top: 0; margin-bottom: 1.1em; }
.gkd-prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-top: 1.6em; margin-bottom: .5em; }
.gkd-prose h3 { font-size: 1.35rem; margin-top: 1.4em; margin-bottom: .4em; }
.gkd-prose a, .gkd-list a { color: var(--current); font-weight: 600; }
.gkd-prose img { height: auto; border-radius: 18px; }
.gkd-list .wp-block-post-template { list-style: none; padding: 0; margin: 0; }
.gkd-list .wp-block-post-template > li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.gkd-list h2 { font-size: 1.6rem; }
.gkd-list h2 a { color: var(--deep); text-decoration: none; }
@media (max-width: 560px) { .gkd-plain { padding: 48px 16px 80px; } }