/* WordPress integration layer: preserve the mock's class contract. */
body.admin-bar .site-header {
  top: 32px;
}

.site-header .primary-menu,
.drawer-menu,
.footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header .primary-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.4rem);
}

.site-header .menu-item {
  position: relative;
}

.site-header .menu-item-has-children {
  padding-bottom: 0.35rem;
  margin-bottom: -0.35rem;
}

.site-header .sub-menu {
  position: absolute;
  z-index: 90;
  top: 100%;
  left: 0;
  min-width: 14.5rem;
  margin: 0;
  padding: 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-lg);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.35rem);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.site-header .menu-item-has-children:hover > .sub-menu,
.site-header .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.site-header .sub-menu a {
  display: block;
  padding: 0.58rem 0.7rem;
  border: 0;
  border-radius: 0.45rem;
}

.site-header .sub-menu a:hover {
  background: var(--gold-100);
}

.brand__logo {
  flex: none;
  width: 2.75rem;
  height: auto;
}

.lang-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.lang-switch a {
  padding: 0.4rem 0.55rem;
  color: var(--ink-600);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.lang-switch a.is-current {
  background: var(--ink-900);
  color: var(--paper-50);
}

.hero__media img,
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-cards {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.section__cta {
  margin-top: 1.75rem;
}

.section__notice {
  margin-top: 2rem;
}

.hero__stat dd {
  margin: 0;
}

.board__note {
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.split__media img,
.president__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.gallery__item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.gallery__item:hover > img {
  transform: scale(1.04);
}

.cta-band__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.event-placeholder {
  max-width: 42rem;
  margin-top: 2rem;
}

/* Contact Form 7 emits spans around controls; make those transparent to the
   mock's field grid while retaining accessible labels. */
.wpcf7-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.wpcf7-form .field,
.wpcf7-form .field--wide,
.wpcf7-form .form__actions,
.wpcf7-form .wpcf7-response-output {
  grid-column: 1 / -1;
}

.wpcf7-form .field--half {
  grid-column: span 1;
}

.wpcf7-form-control-wrap,
.wpcf7-form-control {
  display: block;
  width: 100%;
}

.wpcf7-spinner {
  margin: 0.5rem;
}

.resources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.resources > a {
  color: inherit;
  text-decoration: none;
}

.resources .resource {
  height: 100%;
}

.resource h2 {
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.resource-guide__intro {
  margin-bottom: 2.25rem;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink-700);
}

.prose > h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.prose > ul:not(.resource-guide__links) {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  padding-left: 1.4rem;
  list-style: disc;
}

.prose > ul:not(.resource-guide__links) li::marker {
  color: var(--maple-600);
}

.resource-guide__links {
  margin-bottom: 1.5rem;
  padding-left: 0;
  list-style: none;
}

.resource-guide__links li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.resource-guide__links a {
  font-weight: 700;
}

.resource-guide__links a::after {
  content: " ↗";
  color: var(--maple-600);
}

.resource-guide__notice {
  margin-top: 2.5rem;
  padding: 1.25rem 1.4rem;
  border-left: 0.25rem solid var(--gold);
  background: var(--gold-100);
}

.resource-guide__notice h2 {
  margin-top: 0;
  font-size: 1rem;
}

.resource-guide__notice p {
  margin-bottom: 0;
}

.resource-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink-800);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.resource-card small {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-500);
}

.drawer-menu,
.drawer-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-menu > .menu-item {
  border-bottom: 1px solid var(--line);
}

.drawer-menu > .menu-item > a {
  display: block;
  width: 100%;
}

.drawer-menu > .current-menu-item > a,
.drawer-menu > .current-menu-ancestor > a {
  color: var(--maple-700);
}

.drawer-menu > .menu-item-has-children > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.drawer-menu > .menu-item-has-children > a::after {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.2rem;
  border-right: 2px solid var(--gold-700);
  border-bottom: 2px solid var(--gold-700);
  transform: rotate(45deg) translateY(-0.15rem);
  transition: transform 0.2s var(--ease);
}

.drawer-menu > .menu-item-has-children.is-open > a::after {
  transform: rotate(225deg) translate(-0.1rem, -0.05rem);
}

.drawer-menu .sub-menu {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 0 0.65rem 0.15rem;
  padding: 0 0 0 0.35rem;
  border-left: 2px solid var(--gold-400);
}

.drawer-menu .menu-item-has-children.is-open > .sub-menu {
  display: flex;
}

.drawer-menu .sub-menu a {
  display: block;
  width: 100%;
  padding: 0.45rem 0 0.45rem 0.65rem;
  border: 0;
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
}

.drawer-menu .sub-menu .current-menu-item > a {
  color: var(--maple-700);
  font-weight: 700;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 0.2s, transform 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 720px) {
  .resources,
  .gallery-preview,
  .wpcf7-form {
    grid-template-columns: 1fr;
  }

  .wpcf7-form .field--half {
    grid-column: 1;
  }
}
