/* Theme additions on top of the design's own styles (design.css). */

/* State wrappers (the prototype's <sc-if> branches) draw no box of their own. */
ih-if { display:contents; }
ih-if[hidden] { display:none !important; }

/* Image slots: the design's <image-slot> — a block filling its frame (3:2 when
   the frame has no height), the photo cropped to cover (or letterboxed), and
   the slot's caption while no photo has been chosen. */
[data-slot] { display:block; position:relative; width:100%; height:100%; aspect-ratio:3/2; overflow:hidden;
  background:rgba(127,127,127,.08); font:13px/1.3 system-ui,-apple-system,sans-serif; color:#6b6778; }
[data-slot] > img { position:absolute; inset:0; width:100%; height:100%; max-width:none; object-fit:cover; display:block; }
[data-slot][data-fit="contain"] > img { object-fit:contain; }
[data-slot][data-shape="circle"] { border-radius:50%; }
[data-slot] > img[src=""] { display:none; }
.ih-slot-empty { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center;
  padding:12px; font-weight:500; letter-spacing:.01em; opacity:.75; }
.ih-slot-empty::after { content:''; position:absolute; inset:0; border:1.5px dashed currentColor; opacity:.35; border-radius:inherit; pointer-events:none; }
[data-slot] > img:not([src=""]) ~ .ih-slot-empty { display:none; }
[data-slot][data-shape="circle"] .ih-slot-empty { border-radius:50%; }

/* Before ih.js runs (and without it): the parts the design's scripts size to
   the window. The scripts then set the same values themselves. */
@media (max-width:1099.98px) {
  html:not(.ih-js) ih-if[data-if="desktop"] { display:none !important; }
  html:not(.ih-js) ih-if[data-if="mobile"][hidden] { display:contents !important; }
}
@media (max-width:1179.98px) {
  html:not(.ih-js) ih-if[data-if="wide"] { display:none !important; }
  html:not(.ih-js) ih-if[data-if="cardFlow"][hidden] { display:contents !important; }
}
@media (max-width:899.98px) {
  html:not(.ih-js) [data-bt-style*="{{ scrim }}"] { background:linear-gradient(0deg, rgba(246,245,248,0.98) 0%, rgba(246,245,248,0.85) 55%, rgba(246,245,248,0.1) 85%) !important; }
  html:not(.ih-js) [data-bt-style*="{{ heroJustify }}"] { justify-content:flex-end !important; }
}
@media (max-width:759.98px) {
  html:not(.ih-js) ih-if[data-if="wheel"] { display:none !important; }
  html:not(.ih-js) ih-if[data-if="list"][hidden] { display:contents !important; }
  html:not(.ih-js) [data-bt-style*="{{ levelCols }}"] { grid-template-columns:minmax(0,1fr) !important; }
}

/* Contact: the office map fills its frame (Leaflet draws inside). */
ih-map { display:block; position:absolute; inset:0; }
ih-map .ih-map-tiles { filter:saturate(.55) brightness(1.04) contrast(.94); }

/* The header stays pinned for the whole page (the design's preview pins it
   only within the first screen). Logged-in editors: below the WordPress toolbar. */
@media (min-width:783px) { body.admin-bar .ih-host[data-c="SiteHeader"] { top:32px !important; } }
@media (min-width:601px) and (max-width:782px) { body.admin-bar .ih-host[data-c="SiteHeader"] { top:46px !important; } }

/* Keyboard users see where they are; mouse users see the design. */
:focus-visible { outline:2px solid #2E9BD8; outline-offset:2px; }
.ih-skip { position:absolute; left:16px; top:-60px; z-index:100; padding:12px 18px; border-radius:999px; background:#4A2C8F; color:#fff !important; font-weight:700; }
.ih-skip:focus { top:12px; }

/* A blog post's own content, styled as the design's sample article. */
.ih-article > :first-child { margin-top:0; }
.ih-article > p { margin:0 0 24px; text-wrap:pretty; }
.ih-article > p:first-child { font-size:21px; line-height:1.65; color:#1d1a26; font-weight:500; }
.ih-article > p:has(+ ul), .ih-article > p:has(+ ol) { margin-bottom:16px; }
.ih-article > p:last-child { margin-bottom:0; }
.ih-article h2 { font-size:26px; font-weight:800; letter-spacing:-0.015em; color:#4A2C8F; margin:40px 0 12px; line-height:1.25; }
.ih-article h3 { font-size:21px; font-weight:800; color:#1d1a26; margin:32px 0 10px; }
.ih-article ul { list-style:none; padding:0; margin:0 0 24px; display:flex; flex-direction:column; gap:10px; }
.ih-article ul > li { display:flex; gap:14px; align-items:baseline; }
.ih-article ul > li::before { content:''; width:7px; height:7px; border-radius:50%; background:#2E9BD8; flex-shrink:0; transform:translateY(-3px); }
.ih-article ol { margin:0 0 24px; padding-left:1.3em; }
.ih-article blockquote { margin:40px 0; padding:28px 32px; border-radius:22px; background:#fff; border:1px solid #e4e2ea; font-size:22px; line-height:1.5; font-weight:700; color:#4A2C8F; letter-spacing:-0.01em; }
.ih-article blockquote p { margin:0; }
.ih-article a { text-decoration:underline; text-underline-offset:3px; }
.ih-article img { max-width:100%; height:auto; border-radius:20px; }

/* Pages outside the design (privacy policy, HIPAA notice). */
.ih-prose { max-width:820px; font-size:16.5px; line-height:1.75; color:#3d3a48; }
.ih-prose > :first-child { margin-top:0; }
.ih-prose h2 { margin:1.8em 0 .5em; font-size:clamp(24px,2.4vw,30px); font-weight:800; letter-spacing:-0.02em; line-height:1.2; color:#4A2C8F; }
.ih-prose h3 { margin:1.5em 0 .4em; font-size:19px; font-weight:800; color:#1d1a26; }
.ih-prose h4 { margin:1.3em 0 .3em; font-size:17px; font-weight:700; color:#1d1a26; }
.ih-prose a { text-decoration:underline; text-underline-offset:3px; }
.ih-prose ul, .ih-prose ol { padding-left:1.3em; }
.ih-prose li { margin:.3em 0; }
.ih-card:hover { color:#4A2C8F; transform:translateY(-4px); }
.ih-pager { margin-top:40px; }
.ih-pager .nav-links { display:flex; gap:8px; flex-wrap:wrap; }
.ih-pager .page-numbers { padding:10px 16px; border-radius:999px; border:1px solid #d9d6e2; background:#fff; font-weight:600; }
.ih-pager .page-numbers.current { background:#4A2C8F; border-color:#4A2C8F; color:#fff; }

/* Reduced motion: no smooth scrolling either. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto !important; } }
