/* AUTISM FAMILY - CRISP LAYER, every page (owner 2026-11-12 "change logo across the board - convert all pills to card
   styles, and change background color to super shiny white and heading of every webpage to shiny black").
   Loaded LAST on every page (finalize.py adds it), so it wins over the older styles without rewriting them.
   Keeps: photo shading on banners, the dark AI chat panel, content and layout. */

/* ---- 1. solid cube colours instead of light-to-deep gradients (one flat colour each) */
html:root{
  --f-sky:#9ADAF3;--f-peach:#F7C3A3;--f-mint:#A6EBB9;--f-peri:#B9C4F6;
  --af-cube-grad:#FFFFFF;
  --t-sky:#FFFFFF;--t-peach:#FFFFFF;--t-mint:#FFFFFF;--t-peri:#FFFFFF;
  --cx-ink:#101820;--cx-line:#E6EAF0;--cx-blue:#2B5AA8;
}

/* ---- 2. pure white backgrounds everywhere (pages, sections, cards, panels) */
/* (never on photo sections: banners carry their photo inline as style="background-image:url(...)" or .bg-cover) */
html,body,.page,main,section:not([style*="url"]):not(.bg-cover):not(.af-banner-photo),header:not([style*="url"]):not(.bg-cover),footer:not([style*="url"]),.rd-navbar,.rd-navbar-wrap,.rd-navbar-panel,.rd-navbar-nav-wrap,
.bg-madison,.bg-catskill,.bg-gray-light,.bg-index-body,.mk-app-wrap,
.af-facts>.af-fact,.af-studies>.af-study,
.pp-head,.pp-about,.pp-services,.pp-connect-head,.pp-form,.pp-mustread,.pp-preview-bar,.pp-claim,
.ai-summary,.mk-steps li:not(.is-now),.gi-hero,.gi-final,.gi-pay,.gi-peach,.gi-sky{
  background-color:#FFFFFF!important;background-image:none!important}
.af-facts>.af-fact,.af-studies>.af-study,.pp-head,.pp-about,.pp-services,.pp-connect-head,.pp-form,.pp-mustread,
.pp-preview-bar,.pp-claim,.ai-summary,.gi-hero,.gi-final,.gi-pay,.gi-peach,.gi-sky{border:1px solid var(--cx-line)!important;box-shadow:none!important}
body:not(.afc){background:#FFFFFF!important}
/* covers / category banners with no photo: plain white with a hairline instead of the colour wash */
.pp-cover:not([style*="url"]),.pp-cover.is-brand,.cr-photo.is-brand,.mk-pcard-media.is-brand{background:#FFFFFF!important;background-image:none!important;border:1px solid var(--cx-line)}
.cr-photo.is-brand:after{display:none!important}

/* ---- 3. buttons: one solid colour, card shape (no pills, no gradients, no glow) */
.btn.btn-primary,.btn.btn-madison,.btn.btn-sm.btn-ellipse,.af-promo-btn,.af-nudge-go,.mkh-btn:not(.mkh-btn-ghost),
.mk-finish,.mk-finish .ai-btn,.ai-btn,.ai-chat .ai-btn,.ai-progress-bar,.ai-summary::before,.mk-ad-card em{
  background:var(--cx-blue)!important;background-image:none!important;box-shadow:none!important}
.btn.btn-primary:hover,.btn.btn-madison:hover,.af-promo-btn:hover,.af-nudge-go:hover,.mkh-btn:not(.mkh-btn-ghost):hover,.ai-btn:hover{
  background:#1F4688!important;box-shadow:none!important;transform:none!important}
.pp-btn-fill,.pp-mb-cta,.pd-ini,.pd-pill-plan,.ai-card-go a.is-map,.af-pro-up,.mk-ad-thumb i.mk-ad-thumb-b,.mk-tile-ico.mk-t-blue{background:var(--f-sky)!important;background-image:none!important}
.pp-btn-line,.pp-ins .pp-pill,.pp-mustread h2:before,.pd-badge,.pd-pill,.pd-t-peach,.pd-wel-st,.ai-card-go a.is-pro,.mk-t-yellow,.mk-tile-ico.mk-t-red,.mk-tile-ico.mk-t-yellow{background:var(--f-peach)!important;background-image:none!important}
.pp-send,.pp-cat,.pp-pills-svc .pp-pill,.pd-pill.is-live,.pd-t-mint,.pd-wel-steps>li.is-done .pd-wel-st,.ai-card .ai-card-svc,.mk-t-green,.mk-tile-ico.mk-t-green{background:var(--f-mint)!important;background-image:none!important}
.pp-badge,.pp-svc-ico,.pp-claim-btn,.pd-nav-i.is-on,.pd-pill.is-draft,.pd-pill.is-basic,.pd-menu-btn,.pd-wel-n,.mk-askai-btn,.ai-chat .ai-card .ai-card-go a{background:var(--f-peri)!important;background-image:none!important}
.ai-chat .ai-card .ai-card-go a.is-map{background:var(--f-sky)!important}
.ai-chat .ai-card .ai-card-go a.is-pro{background:var(--f-peach)!important}
.mk-t-blue{background:#4F5FC9!important;background-image:none!important}
.mk-t-red{background:#B5532F!important;background-image:none!important}
.pp-pills .pp-pill:nth-child(4n+1){background:var(--f-sky)!important}.pp-pills .pp-pill:nth-child(4n+2){background:var(--f-peach)!important}
.pp-pills .pp-pill:nth-child(4n+3){background:var(--f-mint)!important}.pp-pills .pp-pill:nth-child(4n){background:var(--f-peri)!important}
html body .af-face,html body .af-face.af-face.af-face{box-shadow:none!important;background-image:none!important}

/* every pill-shaped thing becomes a card shape: buttons/chips 10px, small tags 6px */
.btn,.btn-ellipse.btn,.btn-ellipse.btn-lg,.af-promo-btn,.af-nudge-go,.af-pro-btns a,.mkh-btn,.mk-finish .ai-btn,.ai-btn,
.ai-chat .ai-card .ai-card-go a,.pp-btn,.pp-btn-fill,.pp-btn-line,.pp-mb-cta,.pp-send,.pp-claim-btn,.mk-askai-btn,
.pd-menu-btn,.cr-search a,.form-subscribe .btn,.form-subscribe-type-2 .btn,.form-search-widget .form-button .btn,
.mk-chip,.mk-tier,.mk-phone,.mk-steps li,.mk-note,.st-chip,.af-state-chip,.af-state-kicker,.af-based .af-based-chip,
.pp-cat,.pp-pill,.pp-badge,.pp-cover-tag,.gi-pills li,.gi-topics li,.afc .pill,.ai-step-pill,.tabs-classic .nav-link,
.af-face,.mkh-tag,.mk-ticks>li,.pd-nav-i,.af-pic{border-radius:10px!important}
.af-free,.ai-free,.ps-free,.pd-soon,.mk-launch,.mk-badge,.mk-status,.mk-ad-status,.mk-ad-size,.mk-found .mk-found-tag,
.mk-emails .mk-tag,.af-tag,.af-soon small,.ai-card .ai-card-svc,.pd-pill,.pd-wel-count,.mk-ad-card em,.mk-tile-badge,.cr-credit{border-radius:6px!important}
/* text boxes and search fields: card corners too */
.form-input,.af-ai-form input,.ai-ask input,.cr-search,.select2-container--bootstrap .select2-selection,.rd-file-picker,
.rd-navbar-search-form-input,.select2-container--bootstrap .select2-search--dropdown .select2-search__field{border-radius:10px!important}
.btn,.af-promo-btn,.mkh-btn,.ai-btn,.pp-btn,.pp-btn-fill,.pp-btn-line,.pp-send,.af-face{box-shadow:none!important;filter:none!important}

/* ---- 4. headings in near-black on white (white headings stay white on photos and the dark AI panel) */
html body .page h1,html body .page h2,html body .page h3,html body .page h4,html body .page h5,html body .page h6,
html body .page .h1,html body .page .h2,html body .page .h3,html body .page .h4,
html body .bg-madison h1,html body .bg-madison h2,html body .bg-madison h3,html body .bg-madison h4,html body .bg-madison h5,html body .bg-madison h6,
html body main h1,html body main h2,html body main h3,html body main h4,html body .afc h1,html body .afc h2,html body .afc h3{color:var(--cx-ink)!important}
html body .breadcrumb-classic h1,html body .breadcrumb-classic h2,html body .af-banner-photo h1,html body .af-banner-photo h2,
html body .af-state-banner-text h1,html body .af-state-banner-text h2,html body .ai-chat h1,html body .ai-chat h2,html body .ai-chat h3,
html body .context-dark:not(.bg-madison) h1,html body .context-dark:not(.bg-madison) h2,html body .context-dark:not(.bg-madison) h3,
html body .cr-photo:not(.is-brand) h1,html body .gi-hero.has-photo h1{color:#FFFFFF!important}

/* ---- 5. stronger where older rules (nth-child colour washes, navy headings) out-rank the lines above */
html body .af-facts>.af-fact.af-fact.af-fact,html body .af-studies>.af-study.af-study.af-study{background:#FFFFFF!important;background-image:none!important;border:1px solid var(--cx-line)!important;box-shadow:none!important}
html body .page .af-studies .af-study.af-study h4,html body .page .af-studies .af-study.af-study h3,html body .page .af-facts .af-fact.af-fact h3,html body .page .af-facts .af-fact.af-fact h4,html body .page .af-facts .af-fact.af-fact strong{color:var(--cx-ink)!important}
html body .mk-steps.mk-steps li:not(.is-now){background:#FFFFFF!important;background-image:none!important;border:1px solid var(--cx-line)!important}
html body .band-pro a,html body .band a.sc{white-space:nowrap}

/* ---- PHONE HEADER LOGO IN THE CENTRE (owner 2026-11-13 "ON THE MOBILE MOVE THE LOGO CENTER OF THE HEADER") ----
   Inner pages: the phone bar (.rd-navbar-fixed) shows the logo centred; the page title stays for screen readers only.
   Menu button stays left, AI cube stays right. Desktop unchanged (.af-panel-logo hidden there). */
.af-panel-logo{display:none}
.rd-navbar-fixed .rd-navbar-panel .panel-title{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0);white-space:nowrap;padding:0!important;margin:-1px!important}
.rd-navbar-fixed .rd-navbar-panel .af-panel-logo{display:block;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);line-height:0;z-index:1}
.rd-navbar-fixed .rd-navbar-panel .af-panel-logo img{display:block;height:40px;width:auto}
@media (max-width:340px){.rd-navbar-fixed .rd-navbar-panel .af-panel-logo img{height:34px}}
/* the phone page title sits just before the logo link; the template's "h4 + *" rule gave the logo a 19px top margin */
.rd-navbar-panel .af-panel-logo{margin:0!important}
/* AI link outside the AI page = words only, no cube (owner 2026-11-13): phone/tablet bar "AI" over "Instant response" */
.rd-navbar-panel .af-panel-ai .af-panel-ai-t{display:flex;flex-direction:column;align-items:flex-end;font:700 15px/1.1 "Open Sans",sans-serif;color:#101820;letter-spacing:0}
.rd-navbar-panel .af-panel-ai .af-panel-ai-t small{font:600 11px/1.2 "Open Sans",sans-serif;color:#3A4757;white-space:nowrap}
@media (max-width:340px){.rd-navbar-panel .af-panel-ai{right:6px!important}.rd-navbar-panel .af-panel-ai .af-panel-ai-t{font-size:14px}.rd-navbar-panel .af-panel-ai .af-panel-ai-t small{font-size:10px}}

/* owner 2026-11-14 "Cube-AI Mode": the header AI link on every page = moving cube + "AI Mode" (clear cube, no dark disc) */
.af-ai-cube{display:block;width:38px;height:38px;flex:none;line-height:0}
.af-ai-cube video{display:block;width:100%;height:100%;object-fit:contain}
.af-ai-link{gap:8px}
.af-ai-link .af-ai-text{font:700 16px/1.1 "Open Sans",sans-serif;color:#101820;white-space:nowrap}
.rd-navbar-panel .af-panel-ai{gap:6px}
.rd-navbar-panel .af-panel-ai .af-ai-cube{width:34px;height:34px}
.rd-navbar-panel .af-panel-ai .af-panel-ai-t{flex-direction:row;font:700 14px/1 "Open Sans",sans-serif;color:#101820;white-space:nowrap}
@media (max-width:360px){.rd-navbar-panel .af-panel-ai .af-ai-cube{width:30px;height:30px}.rd-navbar-panel .af-panel-ai .af-panel-ai-t{font-size:13px}}
.ai-link .ai-txt{font:700 16px/1.1 "Open Sans",sans-serif;color:#101820}
/* owner 2026-11-16 ("skip pin"): Clerk sign-in window shows only Google (+ email/phone). Facebook, LinkedIn and Microsoft
   are switched on in Clerk Production but have no keys yet (Clerk won't turn them off without keys) - hidden until set up. */
.cl-socialButtonsIconButton__facebook,.cl-socialButtonsBlockButton__facebook,
.cl-socialButtonsIconButton__linkedin_oidc,.cl-socialButtonsBlockButton__linkedin_oidc,
.cl-socialButtonsIconButton__microsoft,.cl-socialButtonsBlockButton__microsoft{display:none!important}
