/*
Theme Name: Abar Orthodontics
Theme URI: https://abarorthodontics.com/
Author: BrandHelm (Dashcare)
Description: Lightweight block theme for the merged Abar Orthodontics site (Pinole + Danville offices). Carries over the current Abar Next.js look (Tailwind tokens, Mulish + Poppins, outline pill buttons). Local design preview for PROD-975/976; no tracking, no remote assets.
Version: 0.3.8
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: Proprietary
Text Domain: abar-orthodontics
*/

/* Only what theme.json cannot express. Tokens come from theme.json custom properties. */

body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.abar-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(20,20,43,.06); }
.admin-bar .abar-header { top: 32px; }
.abar-header__inner { min-height: var(--wp--custom--header--height); }
.abar-header .wp-block-site-logo img { width: 100px; height: 60px; object-fit: contain; }
.abar-header .wp-block-site-logo { flex-shrink: 0; }
.abar-header .wp-block-navigation .wp-block-navigation-item__content { padding: 0; border-bottom: 5px solid transparent; }
.abar-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.abar-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--wp--preset--color--brand-blue-strong); color: var(--wp--preset--color--brand-blue-strong); }
.abar-header .wp-block-navigation__submenu-container { border: 0 !important; background: var(--wp--preset--color--dropdown) !important; box-shadow: var(--wp--preset--shadow--panel); border-radius: 6px; padding: 6px 0; min-width: 230px !important; }
.abar-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: #fff !important; }
.abar-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: rgba(255,255,255,.12); }
.abar-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; box-shadow: none; }
.abar-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: var(--wp--preset--color--nav-text) !important; }
.abar-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 4px 16px; border-bottom: 0; line-height: 1.6; }
.abar-header .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.abar-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 18px; border-bottom: 0; }

/* Two-office phone selector (details/summary, no JS) */
.abar-phone { position: relative; font-size: 14px; }
.abar-phone > summary, a.abar-phone--direct { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--wp--preset--color--brand-blue-strong); border: 1px solid var(--wp--preset--color--brand-blue-strong); border-radius: 24px; padding: 11px 16px; font-weight: 600; line-height: 16px; white-space: nowrap; transition: .4s; }
.abar-phone > summary::-webkit-details-marker { display: none; }
.abar-phone > summary:hover, .abar-phone[open] > summary, a.abar-phone--direct:hover, a.abar-phone--direct:focus-visible { background: var(--wp--preset--color--brand-blue-strong); color: #fff; }
.abar-phone__caret { font-size: 10px; }
.abar-phone__menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 6px; box-shadow: var(--wp--preset--shadow--card-hover); padding: 8px; min-width: 250px; z-index: 60; }
.abar-phone__menu a { display: block; padding: 10px 12px; border-radius: 4px; color: var(--wp--preset--color--text-strong); }
.abar-phone__menu a:hover { background: var(--wp--preset--color--soft); }
.abar-phone__menu strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 14px; font-weight: 600; }
.abar-phone__menu span { color: var(--wp--preset--color--brand-blue-strong); font-weight: 600; }
.abar-book { display: inline-block; background: var(--wp--preset--color--brand-blue-strong); color: #fff !important; border-radius: 24px; padding: 11px 18px; font-size: 14px; font-weight: 600; line-height: 16px; white-space: nowrap; transition: .4s; }
.abar-book:hover { background: var(--wp--preset--color--brand-navy); }
a.abar-phone--direct { text-decoration: none; }
.abar-phone__label-short, .abar-book__label-short { display: none; }

/* PROD-976 slimmer header: logo left; four menus + "Call an office" + "Request a Consultation" right, one row at 1440px */
.abar-header .wp-block-navigation { font-size: 16px; }
.abar-header .wp-block-navigation .wp-block-navigation-item { white-space: nowrap; }
.abar-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container { flex-wrap: nowrap; }
.abar-header .wp-block-navigation .wp-block-navigation__submenu-icon { margin-left: 4px; }
.abar-header .wp-block-navigation__submenu-container { white-space: normal; }
.abar-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { display: block; width: 100%; padding: 6px 18px; }
@media (max-width: 1100px) {
	.abar-header__inner > .wp-block-group { gap: 12px; }
	.abar-header .wp-block-navigation__container { gap: 16px !important; }
}
@media (min-width: 600px) and (max-width: 782px) {
	.abar-header .wp-block-navigation .wp-block-navigation-item__content { font-size: 14px; }
	.abar-header .wp-block-navigation__container { gap: 12px !important; }
	.abar-header .wp-block-site-logo img { width: 80px; height: 48px; }
	.abar-phone__caret { display: none; }
}
@media (max-width: 1023px) {
	.abar-phone > summary, a.abar-phone--direct { padding: 9px 12px; }
	.abar-book { padding: 10px 14px; }
	.abar-phone__label-long, .abar-book__label-long { display: none; }
	.abar-phone__label-short, .abar-book__label-short { display: inline; }
}
@media (min-width: 600px) and (max-width: 700px) {
	.abar-header__inner { gap: 12px; }
	.abar-header__inner > .wp-block-group { gap: 8px; }
	.abar-header .wp-block-site-logo img { width: 70px; height: 42px; }
	.abar-header .wp-block-navigation .wp-block-navigation-item__content { font-size: 13px; }
	.abar-header .wp-block-navigation__container { gap: 8px !important; }
	.abar-header .wp-block-navigation .wp-block-navigation__submenu-icon { margin-left: 2px; }
}
@media (max-width: 600px) {
	.abar-phone > summary, a.abar-phone--direct { padding: 8px 12px; font-size: 12px; }
	.abar-book { padding: 9px 12px; font-size: 12px; }
	.abar-header .wp-block-site-logo img { width: 80px; height: 48px; }
}

/* Mobile overlay menu (core overlayMenu "mobile"): submenus listed open, readable, no horizontal overflow */
.abar-header .wp-block-navigation__responsive-container.is-menu-open { overflow-x: hidden; }
.abar-header .wp-block-navigation__responsive-container.is-menu-open,
.abar-header .wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__container, .wp-block-navigation-item) { --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; text-align: left; }
.abar-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch; gap: 18px; padding-top: 24px; }
.abar-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: stretch; gap: 18px; width: 100%; }
.abar-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { white-space: normal; max-width: 100%; }
.abar-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content { font-weight: 700; color: var(--wp--preset--color--text-strong); }
.abar-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { min-width: 0 !important; width: 100%; padding: 6px 0 0 14px !important; gap: 4px; border-left: 2px solid #E5E7EB !important; border-radius: 0; }
.abar-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 16px; padding: 6px 0; line-height: 1.4; }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: .4s; }
.wp-block-button.is-style-fill-blue .wp-block-button__link { background: var(--wp--preset--color--brand-blue-strong); border-color: var(--wp--preset--color--brand-blue-strong); color: #fff; border-radius: 6px; box-shadow: var(--wp--preset--shadow--panel); }
.wp-block-button.is-style-fill-blue .wp-block-button__link:hover { background: var(--wp--preset--color--brand-navy); border-color: var(--wp--preset--color--brand-navy); }
.wp-block-button.is-style-outline-white .wp-block-button__link { border-color: #fff; color: #fff; }
.wp-block-button.is-style-outline-white .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--brand-blue-strong); }
/* PROD-980: brand-navy (#1B528F, 7.9:1 on white); brand-blue (#2d82b5) was 4.2:1 and failed color-contrast. */
.abar-readmore a, a.abar-readmore { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--brand-navy); }
.abar-readmore a::after, a.abar-readmore::after { content: " ›"; }

/* PROD-980 link-in-text-block: links in running text (content paragraphs and lists) are underlined, not told apart
   by colour alone. Buttons, cards ("Read More", office meta) and the consultation pill keep no underline; header and
   footer are outside the post content. */
.wp-block-post-content :where(p, li) a { text-decoration: underline; text-underline-offset: .15em; }
.wp-block-post-content :where(.abar-card, .abar-readmore, .wp-block-buttons, .abar-inq-newpatient) a,
.wp-block-post-content a:where(.wp-block-button__link, .abar-inq-newpatient__link, .abar-readmore) { text-decoration: none; }

/* ---------- Home hero ---------- */
.abar-hero { overflow: hidden; }
.abar-hero__text { padding-left: max(16px, calc((100vw - 1140px) / 2 + 16px)) !important; }
.abar-hero__headline { position: relative; z-index: 1; }
.abar-hero__headline mark { background: none; position: relative; color: inherit; }
.abar-hero__headline mark::after { content: ""; position: absolute; left: -150%; top: 22%; width: 360%; height: 62%; z-index: -1; opacity: .9; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 50'%3E%3Cpath d='M4 40 C70 48 150 34 216 6' stroke='%23F9C47F' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.abar-hero__text > * { max-width: 480px; }
.abar-hero__image { align-self: stretch; }
.abar-hero__image figure, .abar-hero__image img { height: 100%; width: 100%; object-fit: cover; margin: 0; }
@media (max-width: 781px) {
	.abar-hero__text { padding: 48px 24px !important; }
	.abar-hero__image img { max-height: 300px; }
}

/* ---------- Cards ---------- */
.abar-grid-4 > *, .abar-grid-3 > *, .abar-grid-2 > *, .abar-grid-1 > * { margin-top: 0 !important; margin-block-start: 0 !important; }
.abar-card .wp-block-image a { display: block; }
.abar-card:not(.abar-doctor) > .wp-block-image img { width: 100% !important; height: 240px !important; aspect-ratio: auto !important; object-fit: cover; }
.abar-office > .wp-block-image img { height: 300px !important; }
.abar-card { background: #fff; border-radius: var(--wp--custom--radius--md); box-shadow: var(--wp--preset--shadow--card); overflow: hidden; transition: box-shadow .3s; display: flex; flex-direction: column; height: 100%; }
.abar-card:hover { box-shadow: var(--wp--preset--shadow--card-hover); }
.abar-card > .wp-block-image, .abar-card > figure { margin: 0 !important; }
.abar-card > .wp-block-image img { width: 100%; aspect-ratio: 16 / 12.5; object-fit: cover; border-radius: 6px 6px 0 0; display: block; }
.abar-card__body { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.abar-card__body > .abar-readmore { margin-top: auto !important; padding-top: 20px; }
.abar-service-grid .abar-card__body p:not(.abar-readmore) { text-align: justify; color: var(--wp--preset--color--text-strong); font-size: 14px; line-height: 21px; }
.abar-service-grid .wp-block-column { display: flex; }
.abar-service-grid .wp-block-column > .abar-card { width: 100%; }
.abar-grid-4 { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 28px; }
.abar-grid-3 { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.abar-grid-2 { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.abar-grid-1 { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 420px; margin-left: auto; margin-right: auto; }
/* Home highlights (3 services) and patient resources (cards without images) */
.abar-service-highlights { max-width: 1080px; margin-left: auto !important; margin-right: auto !important; }
.abar-resource .abar-card__body { padding: 24px; }
.abar-resource .abar-card__body p:not(.abar-readmore) { color: var(--wp--preset--color--text-strong); font-size: 15px; line-height: 23px; }
@media (max-width: 1024px) { .abar-grid-4, .abar-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .abar-grid-4, .abar-grid-3, .abar-grid-2 { grid-template-columns: 1fr; } }

.abar-eyebrow { text-transform: uppercase; font-size: 14px !important; letter-spacing: .5px; color: var(--wp--preset--color--text-ink-blue) !important; margin-bottom: 0 !important; }

/* Doctor cards */
.abar-grid-2 > .abar-doctor, .abar-grid-1 > .abar-doctor { margin-top: 50px !important; }
.abar-page-hero .wp-block-cover__inner-container { width: 100%; }
.abar-doctor { text-align: center; padding: 0 20px 30px; overflow: visible; margin-top: 50px; }
.abar-doctor .wp-block-image { margin: -50px auto 10px !important; }
.abar-doctor .wp-block-image img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; box-shadow: var(--wp--preset--shadow--card); }
.abar-doctor h3 { font-size: 30px; margin: 10px 0 0; }

/* Office cards */
.abar-office .abar-office__meta p { margin: 0 0 6px; color: var(--wp--preset--color--text-muted); font-size: 15px; }
.abar-office .abar-office__meta a { color: var(--wp--preset--color--brand-blue-strong); font-weight: 600; }
.abar-note { background: #FFF8EC; border-left: 4px solid var(--wp--preset--color--swoosh); padding: 10px 14px !important; font-size: 14px !important; color: #6b4e16 !important; border-radius: 4px; }
.abar-pending { color: var(--wp--preset--color--text-body); font-style: italic; }

/* Hours table */
.abar-hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.abar-hours td { padding: 6px 0; border-bottom: 1px solid #E5E7EB; color: var(--wp--preset--color--text-strong); }
.abar-hours td:last-child { text-align: right; color: var(--wp--preset--color--text-muted); }

/* Google Maps embed (keyless iframe; pending Ilya's own confirmation (D12); relayed feedback on PROD-976 4b7e47f2) */
.abar-map-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 260px; border-radius: 6px; overflow: hidden; background: #eef3f8; border: 1px solid #dbe5ef; }
.abar-map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.abar-map-directions { margin: 10px 0 0 !important; font-size: 15px; }
.abar-map-directions a { color: var(--wp--preset--color--brand-blue, #2d82b5); font-weight: 600; }
.abar-office-maps { margin-top: 16px; gap: 32px; }
@media (max-width: 781px) { .abar-map-frame { aspect-ratio: 4 / 3; } }

/* Reviews band */
.abar-reviews > .wp-block-column:first-child { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.abar-reviews > .wp-block-column:last-child { position: relative; }
.abar-reviews { gap: 0 !important; }
.abar-review-card { border-bottom: 1px solid #E5E7EB; padding: 20px 0; text-align: center; }
.abar-stars { color: #F5B301; letter-spacing: 2px; font-size: 20px; margin: 0 !important; }
.abar-review-card p.abar-review-text { color: #000; font-size: 14px; line-height: 20px; }
.abar-review-card .abar-review-src { font-size: 12px; color: var(--wp--preset--color--text-body); }
.abar-quote { position: absolute; right: 20px; top: 20px; font-family: Georgia, serif; font-size: 120px; line-height: 1; color: #e3e3f3; }

/* Footer */
.abar-footer h2 { font-size: 18px; line-height: 1.3; margin-bottom: 14px; }
.abar-footer p, .abar-footer li { font-size: 14px; line-height: 21px; color: var(--wp--preset--color--text-muted); }
.abar-footer a { color: var(--wp--preset--color--text-muted); }
.abar-footer a:hover { color: var(--wp--preset--color--brand-navy); }
.abar-footer .abar-hours-list strong { color: var(--wp--preset--color--text-strong); }
.abar-footer .wp-block-social-links { gap: 18px; font-size: 22px; margin-top: 16px; }
.abar-footer .wp-block-social-links .wp-social-link { color: #000; }
.abar-footer .wp-social-link svg { width: 22px; height: 22px; }
.abar-footer .wp-block-button__link { border-color: var(--wp--preset--color--brand-navy); color: var(--wp--preset--color--brand-navy); font-size: 16px; }
.abar-footer .wp-block-button__link:hover { background: var(--wp--preset--color--brand-navy); color: #fff; }
.abar-footer-bar p { color: #353535; font-size: 13px; }

/* Inner-page hero (cover with left-to-right blue fade like abar service/contact pages) */
.abar-page-hero h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; color: #fff; }
.abar-page-hero p { color: #fff; font-size: 18px; line-height: 28px; }
.abar-hero-copy > * { max-width: 600px; }
.abar-post-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 500; color: #fff; }
.abar-post-hero .wp-block-post-date, .abar-post-hero .wp-block-post-author-name, .abar-post-hero .wp-block-post-date a { color: #fff; font-weight: 600; font-size: 16px; }

/* Long-form content (services, posts) — mirrors .cus-our-orthodontics */
.abar-prose > h2 { font-size: 30px; font-weight: 400; margin-top: 30px; }
.abar-prose > h3 { font-size: 28px; font-weight: 400; margin-top: 24px; }
.abar-prose > p, .abar-prose > ul > li, .abar-prose > ol > li, .abar-faq p { font-size: 18px; line-height: 27px; color: var(--wp--preset--color--text-body); }
.abar-prose li strong { color: var(--wp--preset--color--text-muted); }
@media (max-width: 1000px) { .abar-prose > h2, .abar-prose > h3 { font-size: 25px; } .abar-prose > p, .abar-prose > ul > li, .abar-prose > ol > li { font-size: 16px; line-height: 24px; } }
@media (max-width: 700px) { .abar-prose > h2, .abar-prose > h3 { font-size: 21px; } }

/* Inline images in long-form content */
.abar-prose figure.wp-block-image { text-align: center; margin: 20px 0; }
.abar-share__note { color: var(--wp--preset--color--text-body) !important; font-size: 13px !important; }

/* FAQ accordion (core/details) */
.abar-faq .wp-block-details summary { font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 18px; color: var(--wp--preset--color--text-strong); cursor: pointer; }
.abar-faq .wp-block-details[open] summary { color: var(--wp--preset--color--brand-blue-strong); }
.abar-faq .wp-block-details p { margin-top: 10px; }

/* Blog cards */
.abar-blog-grid .wp-block-post { background: #fff; border-radius: 6px; box-shadow: var(--wp--preset--shadow--card); overflow: hidden; display: flex; flex-direction: column; }
.abar-blog-grid .wp-block-post-featured-image { margin: 0; }
.abar-blog-grid .wp-block-post-featured-image img { height: 230px; object-fit: cover; width: 100%; }
/* Only an image reserves the 230px block (PROD-963 port): an imageless card shows no empty image area. */
.abar-blog-grid .wp-block-post-featured-image:not(:has(img)) { display: none; }
.abar-blog-grid .wp-block-post-title { font-family: var(--wp--preset--font-family--heading); font-size: 18px; font-weight: 600; line-height: 1.35; }
.abar-blog-grid .wp-block-post-title a { color: var(--wp--preset--color--text-strong); }
.abar-blog-grid .wp-block-post-title a:hover { color: var(--wp--preset--color--brand-blue-strong); }
.abar-blog-grid .wp-block-post-excerpt__more-link { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--brand-navy); }

/* Share row on posts */
.abar-share { border-top: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB; padding: 18px 0 !important; }
.abar-share p:first-child { font-family: var(--wp--preset--font-family--heading); color: var(--wp--preset--color--text-strong) !important; font-size: 20px !important; margin: 0; }

/* Forms (card + base fields) */
.abar-form-card { background: #fff; box-shadow: var(--wp--preset--shadow--card-hover); border-radius: 4px; padding: clamp(20px, 3vw, 32px); }
.abar-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.abar-form .abar-form__full { grid-column: 1 / -1; }
.abar-form label { display: block; font-weight: 600; font-size: 16px; color: var(--wp--preset--color--text-strong); margin-bottom: 8px; }
.abar-form * { box-sizing: border-box; }
.abar-form input[type=text], .abar-form input[type=email], .abar-form input[type=tel], .abar-form select, .abar-form textarea { width: 100%; background: var(--wp--preset--color--input-bg); border: 1px solid #e5e7eb; border-radius: 3px; padding: 12px 16px; font: inherit; font-size: 16px; color: var(--wp--preset--color--text-strong); }
.abar-form textarea { min-height: 140px; }
.abar-form .abar-form__consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.abar-form .abar-form__submit { text-align: center; }
.abar-form button { background: var(--wp--preset--color--brand-navy); color: #fff; border: 0; border-radius: var(--wp--custom--radius--sm); padding: 14px 40px; font: inherit; font-size: 16px; text-transform: uppercase; cursor: pointer; }
.abar-form button:hover { background: #2B528F; }
.abar-form__preview-note { grid-column: 1 / -1; background: #FFF8EC; border: 1px solid #F9C47F; border-radius: 4px; padding: 10px 14px; font-size: 14px; color: #6b4e16; margin: 0; }
.abar-form__status { grid-column: 1 / -1; font-size: 14px; color: var(--wp--preset--color--brand-navy); text-align: center; min-height: 1em; margin: 0; }
@media (max-width: 640px) { .abar-form { grid-template-columns: 1fr; } }

/* Live forms (abar-inquiries plugin, PROD-1044): states, help, errors, choices — mockup look (PROD-1000) */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.abar-form [hidden] { display: none !important; }
.abar-form__field { min-width: 0; }
.abar-form__lede, .abar-form__privacy { font-size: 14px; color: var(--wp--preset--color--text-muted); margin: 0; }
.abar-form__privacy { text-align: center; }
.abar-form__req { color: #b42318; font-weight: 800; }
.abar-form__optional { font-weight: 400; font-size: 14px; color: var(--wp--preset--color--text-muted); }
.abar-form__help { display: block; font-size: 13px; color: var(--wp--preset--color--text-muted); margin-top: 5px; }
.abar-form__err { display: block; font-size: 13px; font-weight: 700; color: #b42318; margin-top: 5px; }
.abar-form .is-invalid input, .abar-form .is-invalid select, .abar-form .is-invalid textarea { border: 2px solid #b42318; background: #fef3f2; }
.abar-form__errors { border: 2px solid #b42318; background: #fef3f2; color: #b42318; border-radius: 4px; padding: 10px 14px; font-size: 14px; }
.abar-form__errors p { margin: 0; }
.abar-form__errors ul { margin: 6px 0 0; padding-left: 18px; }
.abar-form__errors a { color: #b42318; text-decoration: underline; }
.abar-form__errors:focus { outline: 3px solid #1669b6; outline-offset: 2px; }
.abar-form__fieldset { border: 0; margin: 0; padding: 0; }
.abar-form__fieldset legend { font-weight: 600; font-size: 16px; color: var(--wp--preset--color--text-strong); margin-bottom: 8px; padding: 0; }
.abar-form__choices { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.abar-form label.abar-form__choice { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; margin: 0; min-height: 44px; }
.abar-form input[type=radio], .abar-form input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--wp--preset--color--brand-navy); flex: none; }
.abar-form .abar-form__consent input { margin-top: 2px; }
.abar-form :focus-visible { outline: 3px solid #1669b6; outline-offset: 2px; }
.abar-inq-newpatient { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; background: var(--wp--preset--color--soft); border-left: 4px solid var(--wp--preset--color--brand-blue-strong); border-radius: 3px; padding: 12px 16px; margin: 0 0 22px; }
.abar-inq-newpatient p { margin: 0; font-size: 15px; }
.abar-inq-newpatient__link { display: inline-block; background: var(--wp--preset--color--brand-blue-strong); color: #fff !important; border-radius: 24px; padding: 11px 18px; font-size: 14px; font-weight: 600; line-height: 16px; text-decoration: none; }
.abar-inq-newpatient__link:hover { background: var(--wp--preset--color--brand-navy); }
@media (max-width: 640px) { .abar-form button { width: 100%; } }

/* Preview ribbon */
.abar-preview-ribbon { background: #14142B; color: #fff; font-size: 12px; text-align: center; padding: 4px 8px; letter-spacing: .3px; }

/* Template-level sections butt together (header / main / footer) */
.wp-site-blocks > * { margin-block-start: 0 !important; }

/* Blog query grid: one column on phones, two on tablets */
@media (max-width: 600px) { .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr !important; } }
@media (min-width: 601px) and (max-width: 900px) { .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* PROD-977: migrated content (posts, pages) */
.entry-content img, .wp-block-post-content img { max-width: 100%; height: auto; }
.wp-block-post-content figure, .wp-block-post-content table { max-width: 100%; }
.wp-block-post-content table { display: block; overflow-x: auto; border-collapse: collapse; }
.wp-block-post-content td, .wp-block-post-content th { border: 1px solid #e3e3e3; padding: 6px 10px; vertical-align: top; }
.abar-migrated-image { margin: 20px 0; text-align: center; }
.abar-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.abar-gallery-grid .abar-migrated-image { margin: 0; }
.abar-gallery-grid img { width: 100%; height: auto; border-radius: 6px; }
.abar-testimonial { border-left: 4px solid var(--wp--preset--color--brand-blue); background: var(--wp--preset--color--soft); margin: 0 0 18px; padding: 14px 18px; border-radius: 3px; }
.abar-testimonial p { margin: 0 0 8px; }
.abar-testimonial cite { font-style: normal; font-weight: 600; font-size: 14px; color: var(--wp--preset--color--text-muted); }
.abar-prod977-section { margin-top: 40px; }
.abar-post-meta p, .abar-post-meta .wp-block-post-date { margin: 0; }
.abar-post-image img { width: 100%; height: auto; border-radius: 6px; }
.abar-next-steps { margin-top: 40px; padding: 18px 22px; border: 1px solid #e3e3e3; border-radius: 6px; }
.abar-next-steps h2 { font-size: 22px; margin: 0 0 10px; }
.abar-next-steps ul { margin: 0; padding-left: 20px; }
.abar-next-steps li { margin: 6px 0; }
