/*
Theme Name: APC Clinic
Theme URI: https://apc.com.np/
Author: Advanced Poly Clinic
Description: The Advanced Poly Clinic website (2026): teal, phone-first, English and Nepali, with booking and My Reports buttons linked to the APC Patient Portal. Settings in Appearance → APC Website.
Version: 1.5.7
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: Private — for Advanced Poly Clinic. Mukta font: SIL Open Font License 1.1 (assets/fonts/Mukta-OFL.txt).
Text Domain: apc-clinic
*/

/* Small extras that theme.json cannot express. Everything else is in theme.json. */

:root { --apc-teal: #0f766e; --apc-teal-dark: #0b5d57; --apc-soft: #e6f2f0; --apc-ink: #1c2a28; --apc-muted: #4b5b58; --apc-sand: #f6f5f1; --apc-line: #dde3e1; }

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
:where(a, button, summary):focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ── top strip and header ─────────────────────────────────────────── */
.apc-topbar { background: var(--apc-teal-dark); color: #e6f2f0; font-size: 14px; }
.apc-topbar__in { max-width: 1200px; margin: 0 auto; padding: 6px 16px; display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; }
.apc-topbar a { color: #ffffff; text-decoration: none; }
.apc-header { border-bottom: 1px solid var(--apc-line); background: #ffffff; position: relative; z-index: 20; }
.apc-header__in { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.apc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--apc-ink); margin-right: auto; }
.apc-brand img { width: 56px; height: auto; }
.apc-brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.apc-brand__name strong { font-size: 19px; font-weight: 800; }
.apc-brand__name span { font-size: 13px; color: var(--apc-muted); }
.apc-header .wp-block-navigation { font-weight: 600; font-size: 16px; flex: 0 1 auto; }
@media (min-width: 1280px) { .apc-header__in { flex-wrap: nowrap; } .apc-header .wp-block-navigation__container { flex-wrap: nowrap; gap: 4px 18px; } .apc-header .wp-block-navigation a { white-space: nowrap; } }
.apc-actions .apc-btn, .apc-brand__name span { white-space: nowrap; }
@media (min-width: 600px) and (max-width: 1279px) { .apc-header .wp-block-navigation { order: 3; flex-basis: 100%; } }
.apc-header .wp-block-navigation a { color: var(--apc-ink); text-decoration: none; }
.apc-header .wp-block-navigation a:hover { color: var(--apc-teal); }
.apc-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── buttons ───────────────────────────────────────────────────────── */
.apc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 700; text-decoration: none; line-height: 1.15; border: 2px solid var(--apc-teal); background: var(--apc-teal); color: #ffffff; cursor: pointer; text-align: center; }
.apc-btn:hover { background: var(--apc-teal-dark); border-color: var(--apc-teal-dark); color: #ffffff; }
.apc-btn--ghost { background: #ffffff; color: var(--apc-teal); }
.apc-btn--ghost:hover { background: var(--apc-soft); color: var(--apc-teal-dark); }
.apc-btn--plain { background: #ffffff; color: var(--apc-ink); border-color: var(--apc-line); }
.apc-btn--plain:hover { background: var(--apc-sand); color: var(--apc-ink); border-color: var(--apc-line); }
.apc-btn small { display: block; font-weight: 500; font-size: 15px; opacity: .92; }
.apc-btn__two { display: flex; flex-direction: column; align-items: flex-start; }
.apc-bigbtns { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; max-width: 760px; }
.apc-bigbtns .apc-btn { min-height: 68px; justify-content: flex-start; padding: 0 18px; font-size: 20px; border-radius: 16px; }
.apc-bigbtns svg { flex: none; }

/* ── cards ─────────────────────────────────────────────────────────── */
.apc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.apc-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--apc-line); border-radius: 18px; background: #ffffff; }
.apc-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.apc-card__code { font-weight: 800; color: var(--apc-teal); font-size: 14px; letter-spacing: .4px; }
.apc-chip { display: inline-block; background: var(--apc-teal); color: #ffffff; font-size: 13px; font-weight: 700; padding: 1px 10px; border-radius: 999px; }
.apc-card h3 { margin: 0; font-size: 20px; line-height: 1.2; }
.apc-card h3 a { color: var(--apc-ink); text-decoration: none; }
.apc-who { align-self: flex-start; background: var(--apc-sand); padding: 1px 10px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.apc-card p { margin: 0; color: var(--apc-muted); font-size: 15px; flex-grow: 1; }
.apc-price { font-size: 26px; font-weight: 800; color: var(--apc-ink); }
.apc-card__btns { display: flex; gap: 8px; }
.apc-card__btns .apc-btn { flex: 1; padding: 0 10px; }

.apc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.apc-tile { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 6px 16px; border: 1px solid var(--apc-line); border-radius: 14px; text-decoration: none; color: var(--apc-ink); font-weight: 600; background: #fff; }
.apc-tile:hover { border-color: var(--apc-teal); color: var(--apc-teal); }
.apc-tile span[aria-hidden] { color: var(--apc-teal); }

.apc-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.apc-doc { display: flex; gap: 12px; align-items: center; border: 1px solid var(--apc-line); border-radius: 14px; padding: 12px; background: #fff; scroll-margin-top: 90px; text-decoration: none; color: var(--apc-ink); }
a.apc-doc:hover { border-color: var(--apc-teal); }
a.apc-doc:hover strong { color: var(--apc-teal); }
.apc-doc__txt { flex: 1; min-width: 0; }
.apc-doc__photo { border-radius: 999px; object-fit: cover; flex: none; background: #fff; box-shadow: 0 0 0 2px var(--apc-soft), 0 0 0 3px var(--apc-line); }
.apc-doc__ini { flex: none; width: 56px; height: 56px; border-radius: 999px; background: var(--apc-soft); color: var(--apc-teal-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; }
.apc-doc__txt { display: flex; flex-direction: column; line-height: 1.3; }
.apc-doc__txt span { color: var(--apc-muted); font-size: 15px; }

.apc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: apcstep; padding: 0; margin-top: 0; margin-bottom: 0; list-style: none; }
.apc-steps li { background: #fff; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 4px; counter-increment: apcstep; }
.apc-steps li::before { content: counter(apcstep); width: 40px; height: 40px; border-radius: 999px; background: var(--apc-teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.apc-steps strong { font-size: 18px; }
.apc-steps span { color: var(--apc-muted); }

.apc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.apc-fact { display: flex; gap: 12px; align-items: center; }
.apc-fact > span:last-child { display: flex; flex-direction: column; }
.apc-facts strong { font-size: 22px; font-weight: 800; color: var(--apc-ink); line-height: 1.2; }
.apc-facts span { color: var(--apc-muted); font-size: 15px; }

.apc-checklist { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; display: flex; flex-direction: column; gap: 8px; }
.apc-checklist li { position: relative; padding-left: 30px; }
.apc-checklist li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 16px; height: 9px; border-left: 3px solid var(--apc-teal); border-bottom: 3px solid var(--apc-teal); transform: rotate(-45deg); }

.apc-note { background: var(--apc-sand); border-radius: 14px; padding: 14px 16px; }
.apc-pricebox { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: var(--apc-sand); border-radius: 14px; padding: 12px 16px; flex-wrap: wrap; }
.apc-pricebox .apc-price { font-size: 30px; }

.apc-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.apc-map { width: 100%; min-height: 280px; border: 0; border-radius: 18px; background: #dfe7e5; }

.apc-az { columns: 2 260px; column-gap: 32px; }
.apc-az h3 { break-after: avoid; margin: 18px 0 6px; color: var(--apc-teal); }
.apc-az ul { margin: 0; padding-left: 18px; }
.apc-az li { break-inside: avoid; margin: 2px 0; }

/* ── bar at the bottom of phone screens ────────────────────────────── */
.apc-bottombar { display: none; }
@media (max-width: 781px) {
  .apc-bottombar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #ffffff; border-top: 1px solid var(--apc-line); z-index: 50; }
  .apc-bottombar .apc-btn { min-height: 52px; padding: 0 8px; }

  body { padding-bottom: 76px; }
  .apc-topbar__hide-phone { display: none; }
  .apc-brand img { width: 46px; }
  .apc-brand__name strong { font-size: 17px; }
  .apc-header .apc-actions { display: none; }
}

/* ── reviews plugin: keep it inside our width ──────────────────────── */
.apc-reviews { max-width: 100%; overflow: hidden; }

/* ── page bits ─────────────────────────────────────────────────────── */
.apc-ne { color: var(--apc-teal-dark); font-weight: 600; font-size: 1.15em; line-height: 1.6; margin-top: 10px; }
h1.wp-block-heading { line-height: 1.18; }
.apc-crumb { color: var(--apc-muted); }
.apc-crumb a { color: var(--apc-teal); }
.has-white-color .apc-ne { color: #e6f2f0; }
.wp-block-image img { border-radius: 18px; }
.apc-section-reviews { max-width: 1200px; margin: 0 auto; padding: 48px 0; }

.apc-footer a { color: #ffffff; }
.apc-footer a:hover { color: #e6f2f0; }

/* no white strip between the header, the page and the footer */
.wp-site-blocks > * + * { margin-block-start: 0; }
main.wp-block-group > .wp-block-post-content { margin-block-start: 0; }
.wp-block-post-content > .alignfull:first-child { margin-block-start: 0; }
.wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }

/* ── icons in coloured circles ─────────────────────────────────────── */
.apc-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }
.apc-tile { gap: 12px; justify-content: flex-start; padding: 10px 14px; }
.apc-tile__txt { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.apc-tile__txt small { color: var(--apc-muted); font-weight: 500; font-size: 14px; margin-top: 2px; }
.apc-tile__go { color: var(--apc-teal); flex: none; }
.apc-card__id { display: inline-flex; align-items: center; gap: 10px; }
.apc-spechead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.apc-spechead a { color: inherit; text-decoration: none; }

/* ── a doctor's own page ───────────────────────────────────────────── */
.apc-profile { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.apc-profile__txt { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.apc-profile__txt h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); }
.apc-profile__role { margin: 0; color: var(--apc-muted); font-size: 19px; }
.apc-chip-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 15px; }
.apc-profile__bio { font-size: 18px; max-width: 46em; }

/* ── our promise ───────────────────────────────────────────────────── */
.apc-promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 24px; }
.apc-promise .apc-fact { align-items: flex-start; }
.apc-promise .apc-fact > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.apc-promise strong { font-size: 19px; }
.apc-promise .apc-fact > span:last-child > span { color: var(--apc-muted); }

/* ── photos (v1.3) ─────────────────────────────────────────────────── */
.apc-photo { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: var(--apc-soft); }
.apc-photo img, .apc-photo video { display: block; width: 100%; height: 100%; object-fit: cover; }
.apc-photo:not([style*="aspect-ratio"]) img { height: auto; }
.apc-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; color: #fff; font-weight: 700; font-size: 15px; line-height: 1.25; background: linear-gradient(to top, rgba(10, 30, 28, .72), rgba(10, 30, 28, 0)); }
.apc-photo--hero { box-shadow: 0 18px 40px -18px rgba(11, 93, 87, .45); }
.apc-photo--hero::after { content: "ISO 9001:2015 · since 2008"; position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--apc-teal-dark); font-weight: 800; font-size: 14px; }

/* health check-up cards with a photo on top */
.apc-card--photo { padding-top: 0; overflow: hidden; }
.apc-card__img { display: block; width: calc(100% + 40px); max-width: none; margin: 0 -20px 6px; aspect-ratio: 16 / 10; object-fit: cover; height: auto; }
.apc-swipehint { display: none; }

/* how a check-up works, with photos */
.apc-steps--photo { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.apc-steps--photo li { position: relative; padding: 0; overflow: hidden; gap: 0; border: 1px solid var(--apc-line); }
.apc-steps--photo li::before { position: absolute; top: 12px; left: 12px; margin: 0; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); z-index: 1; }
.apc-steps__img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; height: auto; }
.apc-steps__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 18px; }
.apc-steps .apc-steps__body > span { color: var(--apc-muted); }

/* doctors' photo row */
.apc-strip { position: relative; }
.apc-strip__row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; }
.apc-dcard { flex: 0 0 210px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; border: 1px solid var(--apc-line); border-radius: 18px; overflow: hidden; background: #fff; color: var(--apc-ink); text-decoration: none; }
.apc-dcard .apc-doc__photo { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; border-radius: 0; box-shadow: none; margin-bottom: 8px; }
.apc-dcard strong, .apc-dcard span, .apc-dcard em { margin: 0 14px; }
.apc-dcard strong { font-size: 17px; line-height: 1.25; }
.apc-dcard span { color: var(--apc-muted); font-size: 14px; line-height: 1.3; flex-grow: 1; }
.apc-dcard em { align-self: flex-start; margin-top: 6px; padding: 2px 10px; border-radius: 999px; font-style: normal; font-weight: 700; font-size: 13px; }
.apc-dcard:hover strong, .apc-dcard:focus-visible strong { color: var(--apc-teal); text-decoration: underline; }
.apc-strip__btn { position: absolute; top: 90px; z-index: 2; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--apc-line); background: #fff; color: var(--apc-teal-dark); font-size: 20px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.apc-strip__btn--prev { left: -14px; }
.apc-strip__btn--next { right: -14px; }
.apc-strip__btn:disabled { opacity: 0; pointer-events: none; }

/* inside APC: a photo mosaic */
.apc-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.apc-mosaic > * { margin: 0 !important; height: 100%; }
.apc-mosaic .apc-photo img { height: 100%; }
.apc-mosaic > :first-child { grid-column: span 2; grid-row: span 2; }

/* a word from the managing director */
.apc-md-quote { position: relative; font-size: 19px; line-height: 1.6; }
.apc-md-quote::before { content: "“"; display: block; height: 40px; font-size: 84px; line-height: 1; color: var(--apc-teal); opacity: .3; font-family: Georgia, serif; }
.apc-md-sign { font-weight: 800; margin-bottom: 0; }
.apc-md-sign + p { margin-top: 0; color: var(--apc-muted); }

@media (max-width: 781px) {
	.apc-cards--swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 2px 16px 12px; scrollbar-width: none; }
	.apc-cards--swipe::-webkit-scrollbar { display: none; }
	.apc-cards--swipe > .apc-card { flex: 0 0 84%; scroll-snap-align: center; }
	.apc-swipehint { display: block; margin: 0 0 8px; color: var(--apc-teal-dark); font-weight: 700; font-size: 15px; }
	.apc-strip__row { margin: 0 -16px; padding: 4px 16px 14px; }
	.apc-dcard { flex-basis: 64%; }
	.apc-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 10px; }
	.apc-steps--photo { grid-template-columns: 1fr 1fr; gap: 10px; }
	.apc-steps--photo .apc-steps__body { padding: 10px 12px 14px; }
	.apc-steps--photo strong { font-size: 16px; }
	.apc-steps--photo .apc-steps__body > span { font-size: 14px; }
	.apc-steps--photo li::before { width: 32px; height: 32px; font-size: 15px; top: 8px; left: 8px; }
	.apc-md-quote { font-size: 17px; }
	.apc-photo--hero::after { font-size: 12px; left: 10px; bottom: 10px; }
}

/* doctors as a grid of photo cards (Our doctors page and each specialty page) */
.apc-dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.apc-dgrid .apc-dcard { flex: none; }
.apc-dcard .apc-dcard__ini { margin: 0 0 8px; flex-grow: 0; line-height: 1; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; margin-bottom: 8px; font-weight: 800; font-size: 54px; }
@media (max-width: 781px) {
	.apc-dgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.apc-dgrid .apc-dcard strong { font-size: 15px; }
	.apc-dgrid .apc-dcard strong, .apc-dgrid .apc-dcard span { margin: 0 10px; }
}
@media (max-width: 781px) {
	.apc-photo--hero { aspect-ratio: 16 / 10 !important; }
	.apc-photo--hero img { object-position: 50% 30%; }
}

/* swipe rows: arrows and dots (v1.4.1) */
.apc-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.apc-dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--apc-line); transition: background .2s, width .2s; }
.apc-dots span.is-on { width: 22px; background: var(--apc-teal); }
.apc-strip--cards > .apc-strip__btn, .apc-strip--cards > .apc-dots { display: none; }
.apc-strip--cards { position: relative; }
@media (max-width: 781px) {
	.apc-strip__btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; top: 70px; background: rgba(255, 255, 255, .95); }
	.apc-strip__btn--prev { left: -6px; }
	.apc-strip__btn--next { right: -6px; }
	.apc-strip--cards > .apc-strip__btn { display: flex; top: 80px; }
	.apc-strip--cards > .apc-dots { display: flex; margin-top: 2px; }
}
/* on computers and tablets the check-up cards stay a grid (the swipe row is for phones only) */
@media (min-width: 782px) {
	.apc-cards.apc-strip__row { display: grid; overflow: visible; scroll-snap-type: none; padding: 0; margin: 0; }
}

/* ── My Reports (v1.5.0) ───────────────────────────────────────────── */
.apc-preview-note { margin: 0 auto 16px; max-width: 1200px; padding: 8px 14px; border-radius: 10px; background: #fef3c7; color: #7c4a03; font-size: 14px; font-weight: 600; }
.apc-phone { margin: 0; width: 100%; max-width: 270px; border: 9px solid #1c2a28; border-radius: 34px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -24px rgba(11, 60, 55, .55); }
.apc-phone img { display: block; width: 100%; height: auto; }
.apc-phone figcaption { padding: 8px 10px; background: #1c2a28; color: #fff; font-size: 13px; text-align: center; }
.apc-phone--sm { max-width: 220px; }
.apc-phones { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.apc-phones .apc-phone { flex: 1 1 200px; max-width: 230px; }

.apc-promo { padding: 56px 16px; background: linear-gradient(135deg, #e6f2f0 0%, #f6f5f1 100%); overflow: hidden; }
.apc-promo__in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.apc-promo__txt h2 { margin: 4px 0 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; }
.apc-kicker { margin: 0; color: var(--apc-teal); font-weight: 800; letter-spacing: .4px; text-transform: uppercase; font-size: 14px; }
.apc-promo__list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 12px; }
.apc-promo__list li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; }
.apc-promo__phones { position: relative; height: 470px; }
.apc-promo__phones .apc-phone { position: absolute; max-width: 230px; }
.apc-phone--front { right: 8%; top: 30px; z-index: 2; }
.apc-phone--back { left: 6%; top: 0; transform: rotate(-6deg); opacity: .97; }

.apc-hero-dark .apc-phone { max-width: 250px; }
.apc-hero-phones { display: flex; justify-content: center; gap: 16px; align-items: flex-start; }
.apc-hero-phones .apc-phone:last-child { margin-top: 40px; }

.apc-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.apc-features .apc-fact { align-items: flex-start; padding: 16px; border: 1px solid var(--apc-line); border-radius: 16px; background: #fff; }
.apc-features .apc-fact > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.apc-features strong { font-size: 17px; }
.apc-features .apc-fact > span:last-child > span { color: var(--apc-muted); font-size: 15px; }

.apc-story { border-left: 5px solid #c81e1e; background: #fff; border-radius: 0 16px 16px 0; padding: 18px 22px; font-size: 18px; }
.apc-story p { margin: 0 0 10px; }
.apc-story p:last-child { margin-bottom: 0; }

.apc-howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: apchow; }
.apc-howto > div { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; counter-increment: apchow; }
.apc-howto > div::before { content: counter(apchow); width: 40px; height: 40px; border-radius: 999px; background: var(--apc-teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.apc-howto h3 { margin: 0; font-size: 19px; }
.apc-howto p { margin: 0; color: var(--apc-muted); }
.apc-howto .apc-phone { max-width: 220px; }

.apc-faq .wp-block-details { border: 1px solid var(--apc-line); border-radius: 14px; background: #fff; padding: 0; margin: 0 0 10px; }
.apc-faq .wp-block-details summary { padding: 14px 18px; font-weight: 700; font-size: 17px; cursor: pointer; }
.apc-faq .wp-block-details > :not(summary) { padding: 0 18px; }
.apc-faq .wp-block-details[open] { padding-bottom: 6px; }

@media (max-width: 781px) {
	.apc-promo { padding: 36px 16px; }
	.apc-promo__in { grid-template-columns: 1fr; gap: 10px; }
	.apc-promo__phones { height: 360px; order: -1; }
	.apc-promo__phones .apc-phone { max-width: 170px; border-width: 7px; border-radius: 26px; }
	.apc-phone--front { right: 6%; top: 24px; }
	.apc-phone--back { left: 6%; }
	.apc-promo__list li { font-size: 16px; }
	.apc-howto { grid-template-columns: 1fr; gap: 26px; }
	.apc-hero-phones .apc-phone { max-width: 46%; border-width: 6px; border-radius: 22px; }
	.apc-story { font-size: 17px; padding: 14px 16px; }
}
/* on the dark teal bands: a see-through outlined button, and a light label */
.has-teal-dark-background-color .apc-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.has-teal-dark-background-color .apc-btn--ghost svg { stroke: #fff; }
.has-teal-dark-background-color .apc-btn--ghost small { color: rgba(255, 255, 255, .85); }
.has-teal-dark-background-color .apc-kicker { color: #9be3d8; }
.has-teal-dark-background-color .apc-btn:not(.apc-btn--ghost):not(.apc-btn--plain) { background: #fff; color: var(--apc-teal-dark); }
.has-teal-dark-background-color .apc-btn:not(.apc-btn--ghost):not(.apc-btn--plain) svg { stroke: var(--apc-teal-dark); }
.has-teal-dark-background-color .apc-btn:not(.apc-btn--ghost):not(.apc-btn--plain) small { color: var(--apc-teal); }
.apc-promo__in > * { min-width: 0; }
@media (max-width: 781px) { .apc-promo__in { grid-template-columns: minmax(0, 1fr); } .apc-promo .apc-bigbtns { flex-wrap: wrap; } .apc-promo .apc-bigbtns .apc-btn { flex: 1 1 100%; } }
.apc-features--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 1000px) { .apc-features--3 { grid-template-columns: repeat(2, 1fr); } }

/* a clinic that doesn't feel like a clinic (v1.5.6) */
.apc-comfort { display: grid; gap: 14px; margin-top: 8px; }
.apc-comfort .apc-fact { align-items: flex-start; }
.apc-comfort .apc-fact > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.apc-comfort strong { font-size: 17px; }
.apc-comfort .apc-fact > span:last-child > span { color: var(--apc-muted); font-size: 15px; }
