/* APY club styling: orange #F97C1F, dark grey #333333 */
:root{--apy-orange:#F97C1F;--apy-orange-dark:#e06f1b;--apy-grey:#333333;--apy-grey-light:#3d3d3d;--apy-bg:#f7f7f7}
body{color:#2b2b2b}
a{color:#c4580a}
h1,h2,h3,h4{color:var(--apy-grey);letter-spacing:-.01em}

/* staging bar */
.apy-staging-bar{background:#111;color:#ffd9b8;text-align:center;font:600 13px/1.4 system-ui,sans-serif;padding:6px 12px}

/* header */
#masthead .site-header-row-container-inner,#masthead .site-main-header-wrap .site-header-row-container-inner{background:var(--apy-grey)}
#masthead .site-title a,#masthead .site-description{color:#fff}
#masthead .site-title{font-weight:800;text-transform:uppercase;letter-spacing:.02em}
#masthead .header-navigation .header-menu-container>ul>li.menu-item>a{color:#fff;font-weight:600}
#masthead .header-navigation .header-menu-container>ul>li.menu-item>a:hover,#masthead .header-navigation .header-menu-container>ul>li.current-menu-item>a{color:var(--apy-orange)}
#masthead .header-navigation .header-menu-container>ul>li.apy-members>a{background:var(--apy-orange);color:#222;border-radius:4px;padding:.55em 1em;margin-left:.5em}
#masthead .header-navigation .header-menu-container>ul>li.apy-members>a:hover{background:#ff9425;color:#222}
#masthead .site-branding img{max-height:64px;width:auto}
#masthead .menu-toggle-open{color:#fff}
#masthead{border-bottom:4px solid var(--apy-orange)}

/* hero slider (full-bleed) */
.apy-hero{position:relative;width:100vw;margin-left:calc(50% - 50vw);height:clamp(380px,72vh,760px);overflow:hidden;background:#222;color:#fff}
.apy-hero__track,.apy-hero__slide{position:absolute;inset:0}
.apy-hero__slide{opacity:0;visibility:hidden;transition:opacity .9s ease,visibility .9s}
.apy-hero__slide.is-active{opacity:1;visibility:visible}
.apy-hero__img{width:100%;height:100%;object-fit:cover;display:block}
.apy-hero__shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(20,20,20,.72) 0%,rgba(20,20,20,.35) 55%,rgba(20,20,20,0) 100%)}
.apy-hero__caption{position:absolute;left:max(5vw,24px);right:24px;bottom:18%;max-width:640px}
.apy-hero__title{color:#fff;font-size:clamp(2rem,5vw,3.6rem);line-height:1.05;margin:0 0 .4em;font-weight:800;text-shadow:0 2px 12px rgba(0,0,0,.4)}
.apy-hero__text{font-size:clamp(1rem,2vw,1.3rem);margin:0 0 1.2em;color:#fff}
.apy-hero__cta{display:inline-block;background:var(--apy-orange);color:#222;font-weight:700;padding:.8em 1.6em;border-radius:4px;text-decoration:none;font-size:1.05rem}
.apy-hero__cta:hover{background:#ff9425;color:#222}
.apy-hero__nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border:0;border-radius:50%;background:rgba(0,0,0,.45);color:#fff;font-size:20px;cursor:pointer;z-index:3}
.apy-hero__nav:hover{background:var(--apy-orange);color:#222}
.apy-hero__prev{left:14px}.apy-hero__next{right:14px}
.apy-hero__dots{position:absolute;left:0;right:0;bottom:16px;display:flex;justify-content:center;gap:10px;z-index:3}
.apy-hero__dots button{width:12px;height:12px;border-radius:50%;border:2px solid #fff;background:transparent;padding:0;cursor:pointer}
.apy-hero__dots button.is-active{background:var(--apy-orange);border-color:var(--apy-orange)}
.apy-hero a:focus-visible,.apy-hero button:focus-visible{outline:3px solid #fff;outline-offset:2px}
@media(max-width:600px){.apy-hero{height:70vh}.apy-hero__nav{display:none}.apy-hero__caption{bottom:14%}}

/* home: no title, full width content */
.apy-home .entry-header,.apy-home .entry-hero-container-inner,.apy-home .page-hero-section{display:none}
.apy-home .content-area{margin-top:0}
.apy-home .entry-content-wrap{padding:0}
.apy-home .content-container.site-container{max-width:none;padding:0}
.apy-home .entry-content>.alignfull,.apy-section{width:100vw;margin-left:calc(50% - 50vw)}
.apy-wrap{max-width:1140px;margin:0 auto;padding:0 24px}
.apy-section{padding:56px 0}
.apy-section.is-grey{background:var(--apy-bg)}
.apy-section.is-dark{background:var(--apy-grey);color:#fff}
.apy-section.is-dark h2,.apy-section.is-dark h3{color:#fff}
.apy-section.is-orange{background:var(--apy-orange);color:#222}
.apy-section.is-orange h2{color:#222}
.apy-center{text-align:center}
.apy-lead{font-size:1.25rem;max-width:760px;margin-left:auto;margin-right:auto}

/* cards */
.apy-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}
.apy-card{background:#fff;border:1px solid #e4e4e4;border-top:5px solid var(--apy-orange);border-radius:6px;padding:26px;box-shadow:0 2px 8px rgba(0,0,0,.05)}
.apy-card h3{margin-top:0}
.apy-btn,.wp-block-button__link{background:var(--apy-orange)!important;color:#222!important;font-weight:700;border-radius:4px!important;text-decoration:none}
.apy-btn:hover,.wp-block-button__link:hover{background:#ff9425!important}
.is-style-outline .wp-block-button__link{background:transparent!important;border:2px solid var(--apy-orange)!important}

/* partners */
.apy-partners{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;margin:24px 0}
.apy-partner{background:#fff;border:2px dashed #bbb;border-radius:6px;padding:26px 12px;text-align:center;font-weight:700;color:#444;min-height:84px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px}
.apy-partner small{font-weight:400;color:#777;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em}

/* placeholder marker */
.apy-placeholder{border:2px dashed var(--apy-orange);background:#fff6ee;padding:14px 18px;border-radius:6px;margin:18px 0;color:#5a3000}
.apy-placeholder::before{content:"PLACEHOLDER";display:inline-block;background:var(--apy-orange);color:#222;font:700 .7rem/1 system-ui,sans-serif;padding:4px 8px;border-radius:3px;margin-right:8px;letter-spacing:.08em}

/* steps */
.apy-steps{counter-reset:s;list-style:none;padding:0;display:grid;gap:16px}
.apy-steps li{counter-increment:s;background:#fff;border:1px solid #e4e4e4;border-left:6px solid var(--apy-orange);border-radius:6px;padding:18px 20px 18px 70px;position:relative}
.apy-steps li::before{content:counter(s);position:absolute;left:18px;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;background:var(--apy-grey);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}

/* pre-footer + footer */
.apy-prefooter{background:var(--apy-grey);color:#e8e8e8;padding:44px 0 20px;border-top:4px solid var(--apy-orange)}
.apy-prefooter h3,.apy-prefooter h4{color:#fff}
.apy-prefooter a{color:#ffb680}
#colophon .site-footer-wrap .site-footer-row-container-inner{background:#222;color:#bbb}
#colophon a{color:#ffb680}
.apy-news-meta{color:#666;font-size:.9rem}
.wp-block-latest-posts__post-title{font-weight:700}
.apy-credit{font-size:.8rem;color:#777}

/* header fixes */
#masthead .site-branding a.brand,#masthead .site-branding .site-title,#masthead .site-branding a.brand:hover{color:#fff}
#masthead .site-branding a.brand{display:flex;align-items:center;gap:12px}
#masthead .site-branding .site-title{font-size:1.15rem;line-height:1.1;white-space:nowrap}
#masthead .site-branding .site-description{display:none}
body{overflow-x:hidden}
@media(max-width:1024px){#masthead .site-branding .site-title{font-size:1rem}}

/* v2 tweaks */
.apy-partners{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.apy-section.is-orange .wp-block-button__link{background:#333!important;color:#fff!important}
.apy-section.is-orange .wp-block-button__link:hover{background:#111!important}
.apy-card .wp-block-button__link,.apy-card a.wp-block-button__link{display:inline-block;padding:.6em 1.2em}
.apy-cards .apy-card>h3:first-child{font-size:1.6rem}

/* v3: Kadence title band unused when split header is on */
.apy-has-page-header .entry-hero,.apy-has-page-header .page-hero-section{display:none}
.entry-content p.apy-lead:not(.apy-center){max-width:none}
.entry-content .apy-steps,.entry-content .apy-placeholder{max-width:none}

/* Split page header (inner pages / posts / News) */
.apy-page-header{width:100%;background:#f3f3f3;border-bottom:1px solid #e5e5e5}
.apy-page-header__inner{display:grid;grid-template-columns:minmax(0,45%) minmax(0,55%);align-items:stretch;max-width:1200px;margin:0 auto;min-height:240px}
.apy-page-header__media{position:relative;overflow:hidden;background:#222;min-height:240px}
.apy-page-header__img{width:100%;height:100%;object-fit:cover;object-position:center 40%;display:block}
.apy-page-header__text{display:flex;flex-direction:column;justify-content:center;padding:1.75rem 2.25rem;background:#f7f7f7;border-left:4px solid var(--apy-orange)}
.apy-page-header__label{margin:0 0 .35rem;color:var(--apy-orange);font:700 .72rem/1.2 system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase}
.apy-page-header__title{margin:0 0 .55rem;color:var(--apy-grey);font-size:clamp(1.55rem,2.6vw,2.35rem);line-height:1.15;font-weight:800;letter-spacing:-.015em}
.apy-page-header__intro{margin:0;color:#444;font-size:1.05rem;line-height:1.55;max-width:36em}
.apy-has-page-header .content-area{margin-top:2.25rem}
@media(max-width:767px){
  .apy-page-header__inner{grid-template-columns:1fr;min-height:0}
  .apy-page-header__media{min-height:0;aspect-ratio:16/9;max-height:200px}
  .apy-page-header__text{border-left:0;border-top:4px solid var(--apy-orange);padding:1.15rem 1.25rem 1.5rem}
  .apy-page-header__title{font-size:1.55rem}
  .apy-page-header__intro{font-size:1rem}
  .apy-has-page-header .content-area{margin-top:1.5rem}
}

/* Partner logo grid */
.apy-partners{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;margin:24px 0;align-items:stretch}
.apy-partner{background:#fff;border:1px solid #e4e4e4;border-radius:8px;padding:18px 14px;min-height:110px;display:flex;align-items:center;justify-content:center;text-decoration:none;transition:border-color .2s,box-shadow .2s,transform .2s}
.apy-partner:hover{border-color:var(--apy-orange);box-shadow:0 4px 14px rgba(0,0,0,.08);transform:translateY(-1px)}
.apy-partner img{max-height:64px;max-width:100%;width:auto;height:auto;object-fit:contain;filter:grayscale(1);opacity:.85;transition:filter .25s,opacity .25s}
.apy-partner:hover img{filter:grayscale(0);opacity:1}
.apy-partner span.apy-partner-name{display:none}
.apy-affiliations{display:flex;flex-wrap:wrap;gap:20px;align-items:center;justify-content:flex-start;margin:16px 0}
.apy-affiliations a{display:inline-flex;align-items:center;padding:10px 14px;background:#fff;border:1px solid #e4e4e4;border-radius:8px}
.apy-affiliations img{max-height:56px;width:auto}
@media(max-width:600px){.apy-partners{grid-template-columns:repeat(2,1fr)}.apy-partner img{max-height:52px}}

/* Nav parents (About / Policies): toggle only, not pages */
li.apy-nav-parent > a,
li.apy-nav-parent > .drawer-nav-drop-wrap > a{
  cursor:default;
}
li.apy-nav-parent > a:hover,
li.apy-nav-parent > .drawer-nav-drop-wrap > a:hover{color:var(--apy-orange)}

/* Contact map */
.apy-map{width:100%;border-radius:6px;overflow:hidden;margin:12px 0 8px;aspect-ratio:auto}
.apy-map iframe{display:block;width:100%;height:450px;border:0}
@media(max-width:767px){.apy-map iframe{height:320px}}

/* Partners page: logos always in colour (homepage strip keeps greyscale→colour on hover) */
.page-id-33 .apy-partner img{filter:none;opacity:1}
.page-id-33 .apy-partner:hover img{filter:none;opacity:1}
