/*
 * Toggle buttons: make the native button look like the former control.
 * Colour, size and weight still come from the existing theme classes. Accordion heading buttons share the same reset and add a full-width row.
 *
 * @package paul-davis-child
 * @author  Dan DiCecca
 */

/* Visual parity: native buttons look exactly like the former anchors/span */
button:where(.pd-a11y-toggle-btn){background:transparent;border:0;padding:0;margin:0;font:inherit;line-height:inherit;color:inherit;text-transform:inherit;text-align:inherit;cursor:pointer;border-radius:0;}
button.pd-a11y-toggle-btn{-webkit-appearance:none;appearance:none;}
/* The reset is at :where() specificity (0,0,1) so theme colour/weight/font classes win. Never reset font or colour under html body. */
:where(.team_card_inner) button:where(.pd-a11y-toggle-btn.read_bio_btn_a){display:inline;}
button:where(.pd-a11y-toggle-btn.team_close_button){display:block;}
/* No invisible Tab stop inside a collapsed bio (max-height:0 alone leaves it focusable) */
html body .read_team_bio_card.is-collapsed .card__expander{visibility:hidden;transition:visibility 0s linear .2s;}
html body .read_team_bio_card.is-expanded .card__expander{visibility:visible;transition:visibility 0s;}

/* Accordion headers: heading wraps a full-width button; long titles wrap */
html body .faq_accordion .pd-a11y-acc-heading{display:block;}
:where(.faq_accordion) button:where(.pd-a11y-acc-btn){display:flex;width:100%;text-align:left;font-weight:inherit;letter-spacing:inherit;}
/* The button layout reset is at :where() specificity so theme type classes win. */
html body .faq_accordion button.pd-a11y-acc-btn .pd-a11y-acc-title{flex:1 1 auto;min-width:0;overflow-wrap:anywhere;}

/* Chevron follows aria-expanded (the theme's h4 > i swap no longer matches h4 > button > i). Same glyphs as today. */
html body .faq_accordion button.pd-a11y-acc-btn[aria-expanded="true"] > i.icon-angle-down1::before{content:"\ed92";}
html body .faq_accordion button.pd-a11y-acc-btn[aria-expanded="false"] > i.icon-angle-up1::before{content:"\ed8f";}

/* Theme overrides once these controls are <button>: child-theme.min.css sets
   "button { color:#000 !important; font-weight:300; line-height:36px }" and an inline
   wp_head rule after this sheet sets "button { background-color:#00395e; color:#00395e }".
   Targeted !important rules keep the former look, including when the theme stylesheet
   is printed a second time later in the page. */
html body button.pd-a11y-toggle-btn,
html body button.pd-a11y-toggle-btn:hover,
html body button.pd-a11y-toggle-btn:focus,
html body button.pd-a11y-toggle-btn:active{background:transparent!important;background-color:transparent!important;-webkit-appearance:none!important;appearance:none!important;}
/* Gold controls use the theme's own secondary colour (no inherit: the parent is not gold). */
html body button.pd-a11y-toggle-btn.bc_color_secondary,
html body button.pd-a11y-toggle-btn.bc_color_secondary:hover,
html body button.pd-a11y-toggle-btn.bc_color_secondary:focus,
html body button.pd-a11y-toggle-btn.bc_color_secondary:focus-visible,
html body button.pd-a11y-toggle-btn.bc_color_secondary:active{color:#A1854A!important;}
/* Icons follow the button text colour. */
html body button.pd-a11y-toggle-btn > i{color:inherit!important;}
/* View Full Bio has no line-height utility; keep the inherited line-height. */
html body button.pd-a11y-toggle-btn.read_bio_btn_a{line-height:inherit!important;}

/* Accordion buttons: the heading sets the type and colour (black on the white card
   header). Inherit them with !important so the theme button rules and a late second
   copy of the theme stylesheet cannot change weight, line-height or colour. */
html body .faq_accordion .pd-a11y-acc-heading > button.pd-a11y-toggle-btn.pd-a11y-acc-btn,
html body .faq_accordion .pd-a11y-acc-heading > button.pd-a11y-toggle-btn.pd-a11y-acc-btn:hover,
html body .faq_accordion .pd-a11y-acc-heading > button.pd-a11y-toggle-btn.pd-a11y-acc-btn:focus,
html body .faq_accordion .pd-a11y-acc-heading > button.pd-a11y-toggle-btn.pd-a11y-acc-btn:focus-visible,
html body .faq_accordion .pd-a11y-acc-heading > button.pd-a11y-toggle-btn.pd-a11y-acc-btn:active{color:inherit!important;font-family:inherit!important;font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important;letter-spacing:inherit!important;}
