/* PCWF chrome and home sections. Tokens only, no raw colour values. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.has-surface { background: var(--color-surface); }

/* Focus on navy: gold ring */
:where(.pcwf-topbar, .pcwf-header-bar, .pcwf-footer, .wp-block-navigation__responsive-container.is-menu-open) :where(a, button, summary):focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  box-shadow: none;
}
.pcwf-cta :where(a, button):focus-visible { outline-color: var(--color-brand); box-shadow: none; }

/* Skip link */
.skip-link.screen-reader-text:focus {
  background: var(--color-accent); color: var(--color-brand); padding: var(--space-3) var(--space-5);
  z-index: 1000; border-radius: var(--radius-md); font-weight: 700;
}

/* Top bar */
.pcwf-topbar { min-height: var(--topbar-h); display: flex; align-items: center; }
.pcwf-topbar > * { width: 100%; }
.pcwf-topbar a { color: var(--color-on-brand); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.pcwf-topbar a:hover { text-decoration: underline; }
.pcwf-topbar p { margin: 0; }
.pcwf-topbar__inner { width: 100%; gap: var(--space-2) var(--space-5); }
.pcwf-topbar__right { gap: var(--space-2) var(--space-5); align-items: center; }
.pcwf-topbar .wp-block-social-links { gap: var(--space-1); }
.pcwf-topbar .wp-social-link { color: var(--color-on-brand); background: none; }
.pcwf-topbar .wp-social-link a { min-width: 44px; justify-content: center; padding: 0; }
.pcwf-langswitch { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; font-size: var(--text-sm); }
.pcwf-langswitch li { margin: 0; display: flex; }
.pcwf-langswitch .lang-item-en { order: -1; }
.pcwf-langswitch .lang-item-en::after { content: "|"; opacity: .6; align-self: center; }
.pcwf-langswitch a { padding: 0 var(--space-3); min-width: 44px; justify-content: center; }
.pcwf-langswitch .current-lang a { color: var(--color-accent); font-weight: 700; }
@media (max-width: 600px) {
  .pcwf-topbar__social { display: none !important; }
  .pcwf-topbar__inner { justify-content: center; }
}

/* Sticky header with shrink */
.pcwf-site-header { position: sticky; top: 0; z-index: 100; transition: box-shadow var(--motion-base) var(--ease); }
.admin-bar .pcwf-site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.pcwf-site-header.is-scrolled { box-shadow: var(--shadow-pop); }
.pcwf-header-inner { min-height: var(--header-h); gap: var(--space-5); transition: min-height var(--motion-base) var(--ease); }
.pcwf-site-header.is-scrolled .pcwf-header-inner { min-height: 64px; }
.pcwf-logo { margin: 0; flex: 0 0 auto; }
.pcwf-logo img { height: auto; max-height: 56px; width: auto; transition: max-height var(--motion-base) var(--ease); }
.pcwf-site-header.is-scrolled .pcwf-logo img { max-height: 44px; }
.pcwf-logo a { display: inline-flex; min-height: 44px; align-items: center; }
.pcwf-header-phone { gap: 0; text-align: end; }
.pcwf-header-phone p { margin: 0; line-height: 1.3; }
.pcwf-header-phone a { color: var(--color-on-brand); text-decoration: none; font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }
.pcwf-header-phone p:first-child { color: var(--color-on-brand-muted); }
@media (max-width: 1000px) { .pcwf-header-phone { display: none !important; } }

.pcwf-main-nav { flex: 1 1 auto; }
.pcwf-main-nav .wp-block-navigation-item__content,
.pcwf-main-nav .wp-block-navigation-submenu__toggle { color: var(--color-on-brand); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--space-3); border-bottom: 3px solid transparent; }
.pcwf-main-nav .wp-block-navigation-item__content:hover,
.pcwf-main-nav .wp-block-navigation-item__content:focus-visible,
.pcwf-main-nav .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--color-accent); text-decoration: none; }
.pcwf-main-nav .wp-block-navigation__submenu-container {
  background: var(--color-brand); color: var(--color-on-brand); border: 0; border-top: 3px solid var(--color-accent);
  border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: var(--shadow-pop); min-width: 17rem; padding: var(--space-2) 0;
}
.pcwf-main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { border-bottom: 0; padding: var(--space-2) var(--space-4); width: 100%; }
.pcwf-main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--color-brand-soft); }
.pcwf-main-nav .wp-block-navigation__submenu-icon { color: var(--color-accent); min-width: 32px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.pcwf-main-nav .wp-block-navigation__responsive-container-open,
.pcwf-main-nav .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; color: var(--color-on-brand); align-items: center; justify-content: center; }
@media (max-width: 599px) { .pcwf-main-nav .wp-block-navigation__responsive-container-open { display: inline-flex; } }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--color-brand); color: var(--color-on-brand); padding: var(--space-5); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: var(--text-lg); min-height: 48px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: var(--color-brand-soft); border: 0; box-shadow: none; }

/* Hero extras and phone */
.pcwf-hero__actions { gap: var(--space-4) var(--space-6); margin-top: var(--space-6); }
.pcwf-hero .pcwf-phone, .pcwf-cta .pcwf-phone { margin: 0; }
.pcwf-phone__label { display: block; font-size: var(--text-xs); }
.pcwf-phone a { font-weight: 800; font-size: var(--text-lg); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.pcwf-hero p.pcwf-phone, .pcwf-hero .pcwf-phone a { color: var(--color-on-brand); max-width: none; }
.pcwf-cta { text-align: center; }
.pcwf-cta__actions { gap: var(--space-4) var(--space-6); margin-top: var(--space-5); }
.pcwf-cta .pcwf-phone a, .pcwf-cta p.pcwf-phone { color: var(--color-on-accent); }
.pcwf-cta .wp-block-button__link:hover { box-shadow: var(--shadow-card); }

/* Sections */
.pcwf-section__title { margin: 0 0 var(--space-6); }
.pcwf-section__title a { color: var(--color-brand); text-decoration: none; display: inline-block; border-bottom: 4px solid var(--color-accent); }
.pcwf-section__title a:hover { border-bottom-color: var(--color-highlight); }

/* Numbers strip (renders only when values are set) */

/* Wing and committee tiles */
.pcwf-wingtiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--space-5); }
.pcwf-wingtiles.is-committee { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.pcwf-wingtile a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform var(--motion-base) var(--ease), border-color var(--motion-base) var(--ease);
}
.pcwf-wingtile a:hover, .pcwf-wingtile a:focus-visible { transform: translateY(-3px); border-color: var(--wing); }
.pcwf-wingtile__band { display: block; height: 56px; background: var(--wing); color: var(--on-wing); }
.pcwf-wingtile__badge {
  width: 72px; height: 72px; border-radius: var(--radius-pill); background: var(--color-bg); border: 3px solid var(--wing);
  display: flex; align-items: center; justify-content: center; margin: -36px var(--space-5) 0; box-shadow: var(--shadow-card); overflow: hidden; flex: none;
}
.pcwf-wingtile__badge img { width: 100%; height: 100%; object-fit: contain; }
.pcwf-monogram { font-family: var(--font-ml); font-weight: 800; font-size: var(--text-xl); color: var(--color-brand); line-height: 1; }
.pcwf-wingtile__title { display: block; padding: var(--space-3) var(--space-5) var(--space-5); color: var(--color-brand); font-weight: 700; font-size: var(--text-lg); line-height: var(--leading-head); font-family: var(--font-ml); }
@media (prefers-reduced-motion: reduce) { .pcwf-wingtile a { transition: none; } .pcwf-wingtile a:hover { transform: none; } }

/* Event cards */
.pcwf-eventcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--space-5); }
.pcwf-eventcard { position: relative; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; }
.pcwf-eventcard__media { display: block; aspect-ratio: 16 / 10; background: var(--color-surface-alt); overflow: hidden; }
.pcwf-eventcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcwf-eventcard__date { position: absolute; top: var(--space-4); left: var(--space-4); background: var(--color-accent); color: var(--color-on-accent); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); text-align: center; line-height: 1.1; display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.pcwf-eventcard__day { font-size: var(--text-xl); font-weight: 800; }
.pcwf-eventcard__mon, .pcwf-eventcard__yr { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; }
.pcwf-eventcard__title { margin: 0; padding: var(--space-4) var(--space-5) var(--space-5); font-size: var(--text-lg); line-height: var(--leading-head); }
.pcwf-eventcard__title a { text-decoration: none; display: block; min-height: 44px; }
.pcwf-eventcard__title a:hover { text-decoration: underline; }

/* Footer */
.pcwf-footer { border-top: 4px solid var(--color-accent); color: var(--color-on-brand-muted); }
.pcwf-footer a { color: var(--color-on-brand-muted); text-decoration: none; }
.pcwf-footer a:hover { color: var(--color-on-brand); text-decoration: underline; }
.pcwf-footer p { margin: 0 0 var(--space-3); }
.pcwf-footer-title { color: var(--color-on-brand); margin: 0 0 var(--space-4); padding-bottom: var(--space-2); border-bottom: 3px solid var(--color-accent); display: inline-block; }
.pcwf-footer-links { list-style: none; padding: 0; margin: 0; }
.pcwf-footer-links a, .pcwf-footer p a { display: inline-flex; align-items: center; min-height: 44px; }
.pcwf-footer-gallery ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.pcwf-footer-gallery a { display: block; min-height: 0; border-radius: var(--radius-sm); overflow: hidden; }
.pcwf-footer-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pcwf-copyright { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--color-brand-soft); color: var(--color-on-brand-muted); }

/* Wing and committee pages: sidebar and tinted banner */
.pcwf-with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: var(--space-7); align-items: start; }
.pcwf-with-aside > * { max-width: none; margin: 0; }
@media (max-width: 860px) { .pcwf-with-aside { grid-template-columns: minmax(0, 1fr); } }
.pcwf-siblings { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); }
.pcwf-siblings__title { font-size: var(--text-lg); margin: 0 0 var(--space-3); }
.pcwf-siblings ul { list-style: none; margin: 0; padding: 0; }
.pcwf-siblings a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-family: var(--font-ml); }
.pcwf-siblings a:hover { text-decoration: underline; }
.pcwf-page-banner.has-wing-tint .wp-block-cover__background { background-color: var(--wing); opacity: .94; }
.pcwf-page-banner.has-wing-tint :where(h1, p, a) { color: var(--on-wing); }

/* Scroll reveal: fade and 16px rise, once; off for reduced motion */
.pcwf-js .pcwf-reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--motion-slow) var(--ease), transform var(--motion-slow) var(--ease); }
.pcwf-js .pcwf-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .pcwf-js .pcwf-reveal { opacity: 1; transform: none; transition: none; }
}
.editor-styles-wrapper .pcwf-reveal { opacity: 1; transform: none; }

.wp-site-blocks > .pcwf-topbar-part, .wp-site-blocks > .pcwf-site-header, .wp-site-blocks > * + .pcwf-site-header { margin-block-start: 0; }
.pcwf-topbar__inner { flex-wrap: nowrap; }
.pcwf-topbar__mail { margin-inline-end: auto; }
.pcwf-topbar__right { flex-wrap: nowrap; }
@media (max-width: 600px) { .pcwf-topbar__inner, .pcwf-topbar__right { flex-wrap: wrap; } }

.pcwf-header-inner { flex-wrap: nowrap; min-width: 0; }
.pcwf-header-inner > * { min-width: 0; }
.wp-site-blocks { overflow-x: clip; }
.pcwf-header-inner .pcwf-main-nav { justify-content: flex-end; }

.wp-site-blocks > * { margin-block-start: 0; }

.pcwf-topbar__right > *, .pcwf-topbar__right a { white-space: nowrap; }
.pcwf-topbar .wp-block-social-links { flex-wrap: nowrap; }
@media (max-width: 600px) { .pcwf-topbar__right { gap: 0 var(--space-3); justify-content: center; } .pcwf-topbar__inner { gap: 0; } .pcwf-topbar a { min-height: 44px; } }

/* Hero: plain navy, or the slider when banners exist */
.pcwf-hero__inner { max-width: var(--content-max); margin-inline: auto; padding: var(--space-7) var(--gutter) calc(var(--space-7) + var(--space-6)); position: relative; z-index: 2; }
.pcwf-hero__inner > * + * { margin-block-start: var(--space-4); }
.pcwf-hero__inner h1 { margin: 0; }
.pcwf-slider { position: relative; overflow: hidden; min-height: clamp(26rem, 38vw, 33rem); display: flex; flex-direction: column; justify-content: center; }
.pcwf-slider .pcwf-hero__default { width: 100%; box-sizing: border-box; transition: opacity var(--motion-base) var(--ease); }
.pcwf-slider.has-caption .pcwf-hero__default { opacity: 0; visibility: hidden; }
.pcwf-slides { position: absolute; inset: 0; z-index: 0; }
.pcwf-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity var(--motion-slow) var(--ease), visibility var(--motion-slow); }
.pcwf-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.pcwf-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pcwf-slide__shade { position: absolute; inset: 0; background: var(--color-brand); opacity: .68; }
.pcwf-slide__link { position: absolute; inset: 0; z-index: 1; }
.pcwf-slide__text { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; box-sizing: border-box; padding-block: var(--space-7); }
.pcwf-slide__text-box { max-width: 640px; }
.pcwf-slide__caption { margin: 0 0 var(--space-4); font-size: var(--text-2xl); line-height: var(--leading-head); font-weight: 800; color: var(--color-on-brand); }
.pcwf-slider__controls { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: none; }
.pcwf-js .pcwf-slider__controls { display: block; }
.pcwf-slider__controls > * { pointer-events: auto; }
.pcwf-slider__btn { min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-on-brand); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pcwf-slider__prev, .pcwf-slider__next { position: absolute; top: 50%; transform: translateY(-50%); background: var(--color-brand); border-radius: var(--radius-pill); opacity: .8; }
.pcwf-slider__prev { left: var(--space-3); } .pcwf-slider__next { right: var(--space-3); }
.pcwf-slider__prev:hover, .pcwf-slider__next:hover { opacity: 1; }
.pcwf-slider__prev span, .pcwf-slider__next span { width: 12px; height: 12px; border: solid var(--color-on-brand); border-width: 0 0 3px 3px; transform: rotate(45deg); margin-left: 4px; }
.pcwf-slider__next span { transform: rotate(-135deg); margin-left: 0; margin-right: 4px; }
.pcwf-slider__nav { position: absolute; left: 0; right: 0; bottom: calc(var(--space-6) + var(--space-3)); display: flex; justify-content: center; align-items: center; }
.pcwf-slider__dot span { width: 12px; height: 12px; border-radius: var(--radius-pill); border: 2px solid var(--color-on-brand); box-sizing: border-box; }
.pcwf-slider__dot.is-active span { background: var(--color-accent); border-color: var(--color-accent); }
.pcwf-slider__pause span { width: 12px; height: 14px; border: solid var(--color-on-brand); border-width: 0 4px; box-sizing: border-box; }
.pcwf-slider__pause.is-paused span { width: 0; height: 0; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--color-on-brand); }
.pcwf-slider :where(a, button):focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; box-shadow: none; }
.pcwf-hero--editor { padding: var(--space-5); }
.pcwf-hero__editor-note { font-size: var(--text-sm); }
@media (prefers-reduced-motion: reduce) { .pcwf-slide, .pcwf-slider .pcwf-hero__default { transition: none; } }

/* Numbers strip: white card between the Activities and News sections (home page only) */
.pcwf-numbers-wrap { position: relative; z-index: 4; padding-block: var(--space-6); }
.pcwf-numbers { list-style: none; margin: 0 0 var(--space-6); padding: var(--space-5) var(--space-4); display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: var(--space-4); text-align: center; background: var(--color-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); position: relative; }
.pcwf-numbers li { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.pcwf-numbers b { display: block; font-size: var(--text-xl); line-height: 1.2; color: var(--color-brand); font-variant-numeric: tabular-nums; }
.pcwf-numbers span { font-size: 1rem; color: var(--color-text-muted); }
@media (min-width: 640px) { .pcwf-numbers { padding: var(--space-6) var(--space-5); } .pcwf-numbers b { font-size: var(--text-2xl); } }

/* M2e: gutters for the numbers/charts block, compact top bar and slider arrows on phones */
.pcwf-numbers-wrap { padding-inline: var(--gutter); box-sizing: border-box; }
@media (max-width: 639px) {
  .pcwf-slider__prev, .pcwf-slider__next { top: auto; bottom: calc(var(--space-6) + var(--space-3)); transform: none; }
  .pcwf-slider__prev { left: var(--space-2); } .pcwf-slider__next { right: var(--space-2); }
  .pcwf-langswitch a { padding: 0 var(--space-2); }
  .pcwf-topbar__right { gap: 0 var(--space-2); }
  .pcwf-topbar__inner { row-gap: 0; }
}
.pcwf-topbar__right .pcwf-langswitch { width: auto; flex: 0 0 auto; }
.pcwf-section__title a { min-height: 44px; min-width: 44px; box-sizing: border-box; }
.pcwf-stat__data summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
