:root{
  --container-max: 1100px;   /* inner content width */
  --gutter: 28px;           /* side padding */
  --text: #333;
  --muted: #777;
  --rule: #e6e6e6;
  --field-border: #d7d7d7;
  --nav-text: #555;
  --nav-active: #111;
}

/* =========================
   Home page refresh
   ========================= */
body.home-page {
  --dalesmen-burgundy: #5b0710;
  --dalesmen-burgundy-dark: #330207;
  --dalesmen-gold: #d2a827;
  --dalesmen-cream: #fbf7ee;
  --dalesmen-ink: #221712;
  --home-page-max: 1180px;
  --home-container-max: 1080px;
  --home-card-padding: clamp(28px, 4vw, 42px);
  --home-section-padding: clamp(28px, 4vw, 46px);
  --section-title-size: clamp(30px, 3.4vw, 42px);
    background: linear-gradient(90deg, var(--dalesmen-burgundy-dark), var(--dalesmen-burgundy));
  /*#5b0710 */
  color: var(--dalesmen-ink);
}

/* macOS renders the site more comfortably at the narrower presentation.
   Windows and other platforms retain the original dimensions above. */
html.is-mac body.home-page {
  --home-page-max: 1080px;
  --home-container-max: 980px;
}

body.home-page .test-site-banner {
  margin-bottom: 0;
}

body.home-page .container {
  max-width: var(--home-container-max);
}

body.home-page .home-hero-wrap,
body.home-page .home-latest-news,
body.home-page .home-events,
body.home-page .home-about,
body.home-page .home-join {
  max-width: var(--home-page-max);
  margin-left: auto;
  margin-right: auto;
}

body.home-page > .admin-content {
background: none;  max-width: var(--home-page-max);
  margin-left: auto;
  margin-right: auto;
  display: none;
  height: 0;
  overflow: hidden;
}

body.home-page header {
  padding: 18px 0;
}

body.home-page .brand img {
  display: block;
  width: min(380px, 70vw);
  height: auto;
}

body.home-page .top-links .site {
  color: rgba(255,255,255,0.82);
}

body.home-page .top-links .icons {
  opacity: 1;
}

body.home-page .top-links .social {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
}

body.home-page .section {
background: none;  max-width: var(--home-page-max);
  margin: 0 auto;
  position: relative;
  z-index: 100;
  overflow: visible;
}

body.home-page .section > .container {
  max-width: var(--home-page-max);
  padding-left: 0;
  padding-right: 0;
}

body.home-page .home-events > .container,
body.home-page .home-latest-news > .container,
body.home-page .home-about > .container,
body.home-page .home-join > .container,
body.home-page .home-hero-wrap > .container {
  max-width: var(--home-page-max);
  padding: 0;
}

body.home-page nav {
  padding: 0;
}

body.home-page .nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 126px;
  padding-top: 12px;
  padding-bottom: 16px;
}

body.home-page .nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

body.home-page .nav-brand-stack {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
}

body.home-page .nav-brand img {
  display: block;
  width: min(410px, 34vw);
  height: auto;
  filter: brightness(1.16) contrast(1.12) drop-shadow(0 2px 3px rgba(0,0,0,0.35));
}

body.home-page .site-nav {
  flex: 1 1 auto;
}

body.home-page .nav-right {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

body.home-page nav ul {
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: nowrap;
  border: 0;
}

body.home-page nav a {
  color: rgba(255,255,255,0.88);
  padding: 15px 0 18px;
  font-size: 13px;
  letter-spacing: 0;
  white-space: nowrap;
}

body.home-page .nav-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-right: 2px;
  transform: translateY(10px);
}

body.home-page .nav-social .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  color: rgba(255,255,255,0.78);
  transition: color 0.18s ease, opacity 0.18s ease;
}

body.home-page .nav-social .social svg,
body.home-page .nav-social .social.x svg,
body.home-page .nav-social .social.email svg {
  width: 16px;
  height: 16px;
  margin: 0;
  transform: none;
}

body.home-page .nav-social .social:hover {
  color: #fff;
}

body.home-page nav a:hover,
body.home-page nav li.active > a {
  color: #fff;
  border-bottom-color: var(--dalesmen-gold);
}

body.home-page nav ul > li > ul {
  background: #fff;
  border: 0;
}

body.home-page nav ul > li > ul a {
  color: var(--dalesmen-burgundy);
  padding: 10px 16px;
}

.home-main {
  padding: 0;
}

.interior-page-separator {
  width: 100%;
  max-width: var(--home-page-max, var(--container-max));
  height: 1px;
  margin: 0 auto;
  background: rgba(210, 168, 39, 0.78);
}

.home-main h1,
.home-main h2,
.home-main h3 {
  font-family: "Libre Baskerville", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.home-hero {
  min-height: clamp(390px, 50vw, 520px);
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(154, 122, 44, 0.22);
  border-left: 6px solid #b88712;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.home-hero__image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.76) 0%, rgba(0,0,0,0.46) 42%, rgba(0,0,0,0.18) 100%),
    url("../images/choir_header.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.home-hero__inner {
  position: relative;
  padding-top: 48px;
  padding-bottom: 56px;
  padding-left: 5rem;
}

.home-kicker {
  margin: 0 0 12px;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.4vw, 34px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: #f1d173;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.home-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(34px, 4.45vw, 54px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.026em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.56);
}

.home-tagline {
  margin: 24px 0 30px;
  font-size: clamp(18px, 1.65vw, 24px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.015em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.52);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-btn,
.btn.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border: 1px solid var(--dalesmen-gold);
  border-radius: 5px;
  background: var(--dalesmen-gold);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.home-btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.64);
  color: #fff;
}

.home-latest-news {
  padding: 26px 0 0;
}

.home-latest-news__card {
  padding: clamp(24px, 3.5vw, 36px) var(--home-card-padding);
  border: 1px solid rgba(210, 168, 39, 0.34);
  border-left: 4px solid var(--dalesmen-gold);
  border-radius: 8px;
  background: linear-gradient(135deg, #3d040a 0%, #52070f 58%, #6f0b16 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  color: #fff7e8;
}

.home-latest-news__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(210, 168, 39, 0.28);
}

.home-latest-news h2 {
  margin: 0;
  color: var(--dalesmen-gold);
  font-size: var(--section-title-size);
  line-height: 1.08;
}

.home-latest-news__content {
  font-size: 18px;
  line-height: 1.55;
}

.home-latest-news__content > :first-child {
  margin-top: 0;
}

.home-latest-news__content > :last-child {
  margin-bottom: 0;
}

.home-latest-news__content a {
  color: #f1d173;
}

.home-latest-news__content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.home-latest-news__placeholder {
  color: rgba(255, 247, 232, 0.72);
  font-style: italic;
}

.home-latest-news .home-admin-btn {
  flex: 0 0 auto;
  margin: 0;
  border-color: rgba(255, 247, 232, 0.5);
  color: #111;
}

.home-events,
.home-join {
  background: var(--dalesmen-cream);
}

.home-events {
  padding: 26px 0 0;
  background: none;
}

body.home-page .home-events__grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.75fr) minmax(0, 1.7fr);
  gap: 24px clamp(28px, 5vw, 56px);
  align-items: start;
  background: linear-gradient(135deg, #ead4ab 0%, #f3e3c6 58%, #fbf1df 100%);
  border: 1px solid rgba(154, 122, 44, 0.22);
  border-left: 6px solid #b88712;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(91, 7, 16, 0.08);
  padding: var(--home-card-padding);
  box-sizing: border-box;
}

.home-section-intro h2,
.home-about h2,
.home-join h1,
.home-join h2 {
  margin: 0 0 22px;
  font-family: "Libre Baskerville", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: var(--section-title-size);
  font-weight: 500;
  line-height: 1.08;
}

.home-section-intro h2,
.home-about h2 {
  color: var(--dalesmen-burgundy);
}

.home-join h1,
.home-join h2 {
  color: var(--dalesmen-gold);
}

.home-section-intro p,
.home-about p,
.home-join p {
  font-size: 18px;
  line-height: 1.48;
}

.home-admin-btn {
  margin: 12px 0;
}

.home-admin-block {
  margin-top: 18px;
}

.home-event-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 24px;
}

.home-event-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: #fffaf0;
  border: 1px solid rgba(154, 122, 44, 0.16);
  box-shadow: 0 8px 20px rgba(91, 7, 16, 0.1);
}

.home-event-card--next {
  background: #fffdf7;
  border-color: rgba(91, 7, 16, 0.46);
  box-shadow: 0 16px 34px rgba(91, 7, 16, 0.22);
}

.home-event-card--wide {
  grid-column: 1 / -1;
}

.home-event-card__media {
  position: relative;
  aspect-ratio: 1.18 / 1;
  background: var(--dalesmen-burgundy);
  overflow: hidden;
}

.home-event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  opacity: 0.82;
}

.home-event-card--next .home-event-card__media img {
  opacity: 0.95;
}

.home-event-card__badge {
  align-self: flex-start;
  margin-top: 14px;
  padding: 6px 10px 7px;
  border-bottom: 2px solid #d2a827;
  border-radius: 3px;
  background: rgba(91, 7, 16, 0.92);
  color: #fff7e8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transform: translateY(-16px);
  white-space: nowrap;
}

.home-event-card__date {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 76px;
  padding: 10px 12px 12px;
  background: rgba(91,7,16,0.94);
  color: #fff;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
}

.home-event-card--next .home-event-card__date {
  background: rgba(91,7,16,1);
  outline: 2px solid rgba(210, 168, 39, 0.92);
  outline-offset: -2px;
}

.home-event-card__date span,
.home-event-card__date strong {
  display: block;
}

.home-event-card__date strong {
  font-size: 32px;
  line-height: 1;
}

.home-event-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 22px;
}

.home-event-card h3 {
  margin: 0 0 10px;
  color: var(--dalesmen-ink);
  font-size: 26px;
  line-height: 1;
}

.home-event-card--next h3 {
  color: var(--dalesmen-burgundy);
}

.home-event-card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.35;
}

.home-event-card__meta {
  font-size: clamp(12px, 0.72vw, 13px);
  line-height: 1.3;
  white-space: nowrap;
}

.home-event-card a {
  margin-top: auto;
  color: #8a5f10;
  font-weight: 700;
  text-decoration: none;
}

.home-about {
  padding: 26px 0 0;
  background: none;
  color: var(--dalesmen-ink);
}

.home-about h2 {
  margin-bottom: 14px;
}

.home-about__grid,
.home-join__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 5vw, 54px);
  align-items: center;
}

body.home-page .home-about__grid {
  background: linear-gradient(135deg, #ead4ab 0%, #f3e3c6 58%, #fbf1df 100%);
  border: 1px solid rgba(154, 122, 44, 0.22);
  border-left: 4px solid rgba(184, 135, 18, 0.82);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(91, 7, 16, 0.08);
  padding: var(--home-card-padding);
  box-sizing: border-box;
}

.home-about img,
.home-join img {
  width: 100%;
  display: block;
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.24);
}

.home-join {
  padding: 26px 0 clamp(10px, 3vw, 28px);
  background: none;
}

.home-join__grid {
  grid-template-columns: 1fr;
}

body.join-page .home-join__grid,
body.contact-page .home-join__grid {
  gap: 16px;
}

body.join-page .home-join,
body.contact-page .home-join {
  padding-top: 0;
}

body.home-page .home-contact-panel {
  background: linear-gradient(135deg, #3d040a 0%, #52070f 58%, #6f0b16 100%);
  border: 1px solid rgba(210, 168, 39, 0.24);
  border-left: 4px solid var(--dalesmen-gold);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  padding: clamp(22px, 3vw, 32px);
  box-sizing: border-box;
  color: #fff7e8;
}

body.join-page .home-contact-panel,
body.contact-page .home-contact-panel {
  background: linear-gradient(135deg, #ead4ab 0%, #f3e3c6 58%, #fbf1df 100%);
  border-color: rgba(154, 122, 44, 0.22);
  box-shadow: 0 10px 28px rgba(91, 7, 16, 0.08);
}

.home-form-intro-card {
  position: relative;
  margin-bottom: 0;
  padding: clamp(26px, 3vw, 34px) clamp(22px, 3vw, 32px);
  background: linear-gradient(135deg, #3d040a 0%, #52070f 58%, #6f0b16 100%);
  border: 1px solid rgba(210, 168, 39, 0.24);
  border-left: 4px solid var(--dalesmen-gold);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(91, 7, 16, 0.18);
  color: #fff7e8;
}

.home-form-intro-card h1 {
  margin: 0;
  color: var(--dalesmen-gold, #d2a827);
}

.home-form-intro-card .home-admin-btn {
  border-color: rgba(255, 247, 232, 0.42);
  color: #fff7e8;
}

.home-join .home-join-note {
  margin-top: 12px;
  color: #5a4b37;
  font-size: 16px;
}

body.home-page .home-join .home-join-note {
  color: rgba(255, 247, 232, 0.78);
}

.home-contact-panel form {
  max-width: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(154, 122, 44, 0.22);
}

body.home-page .home-contact-panel form {
  border-top-color: rgba(210, 168, 39, 0.28);
}

.home-contact-panel .field {
  margin: 0;
}

.home-contact-panel .req-note,
.home-contact-panel label {
  font-size: 14px;
}

.home-contact-panel label {
  color: rgba(34, 23, 18, 0.82);
  font-weight: 700;
}

body.home-page .home-contact-panel label {
  color: rgba(255, 247, 232, 0.9);
}

body.home-page .home-contact-panel .req-note {
  color: #f1d173;
}

.home-form-row {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

.home-form-row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-page .home-form-row--three {
  grid-template-columns: repeat(3, minmax(0, 1.15fr)) minmax(0, 1.55fr);
}

.contact-page .home-form-row--three .field:last-child {
  grid-column: auto;
}

.home-form-row--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-form-row--email-message {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

body.join-page .home-form-row--email-message,
body.about-page .home-form-row--email-message {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-form-row--contact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.home-form-row--contact .field:last-child {
  grid-column: span 2;
}

.home-contact-panel input[type="text"],
.home-contact-panel input[type="email"],
.home-contact-panel input[type="tel"],
.home-contact-panel select,
.home-contact-panel textarea {
  border-color: rgba(154, 122, 44, 0.26);
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.58);
  padding: 9px 11px;
  font-size: 15px;
}

.home-contact-panel textarea {
  min-height: 39px;
  resize: vertical;
}

.contact-page .home-contact-panel textarea {
  min-height: 104px;
}

.home-contact-panel .form-botcheck {
  display: none;
}

.home-contact-panel .btn.home-btn {
  color: #fff;
}

.home-contact-panel .fineprint {
  max-width: 520px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

body.home-page .home-contact-panel .fineprint {
  color: rgba(255, 247, 232, 0.72);
}

.home-contact-panel .form-email-note {
  margin-top: 8px;
  color: rgba(34, 23, 18, 0.82);
}

body.home-page .home-contact-panel .form-email-note {
  color: rgba(255, 247, 232, 0.78);
}

/* The standalone Join and Contact pages share the home-page layout class,
   but their panels stay light and therefore need high-contrast dark copy. */
body.home-page.join-page .home-contact-panel,
body.home-page.contact-page .home-contact-panel {
  color: #2f2119;
}

body.home-page.join-page .home-contact-panel form,
body.home-page.contact-page .home-contact-panel form {
  border-top-color: rgba(91, 7, 16, 0.2);
}

body.home-page.join-page .home-contact-panel p,
body.home-page.join-page .home-contact-panel .home-join-note,
body.home-page.join-page .home-contact-panel label,
body.home-page.join-page .home-contact-panel .req-note,
body.home-page.join-page .home-contact-panel .fineprint,
body.home-page.join-page .home-contact-panel .form-email-note,
body.home-page.contact-page .home-contact-panel p,
body.home-page.contact-page .home-contact-panel .home-join-note,
body.home-page.contact-page .home-contact-panel label,
body.home-page.contact-page .home-contact-panel .req-note,
body.home-page.contact-page .home-contact-panel .fineprint,
body.home-page.contact-page .home-contact-panel .form-email-note {
  color: #4a3526;
}

body.home-page.join-page .home-contact-panel .req,
body.home-page.contact-page .home-contact-panel .req {
  color: #8b1722;
}

body.home-page.join-page .home-contact-panel input[type="text"],
body.home-page.join-page .home-contact-panel input[type="email"],
body.home-page.join-page .home-contact-panel input[type="tel"],
body.home-page.join-page .home-contact-panel select,
body.home-page.join-page .home-contact-panel textarea,
body.home-page.contact-page .home-contact-panel input[type="text"],
body.home-page.contact-page .home-contact-panel input[type="email"],
body.home-page.contact-page .home-contact-panel input[type="tel"],
body.home-page.contact-page .home-contact-panel select,
body.home-page.contact-page .home-contact-panel textarea {
  color: #2f2119;
  background: rgba(255, 252, 246, 0.82);
  border-color: rgba(91, 7, 16, 0.24);
}

.thankyou-actions {
  margin-top: 24px;
}

body.home-page .site-footer {
  margin-top: 0;
background: none;}

body.home-page .footer-notch {
  display: none;
}

@media (max-width: 1024px) {
  .home-events__grid,
  .home-about__grid,
  .home-join__grid {
    grid-template-columns: 1fr;
  }

  .home-form-row--three,
  .contact-page .home-form-row--three,
  .home-form-row--two,
  .home-form-row--email-message,
  .home-form-row--contact {
    grid-template-columns: 1fr;
  }

  .home-form-row--contact .field:last-child {
    grid-column: auto;
  }

  .contact-page .home-form-row--three .field:last-child {
    grid-column: auto;
  }

  .home-event-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  body.home-page {
    --home-card-padding: 20px;
  }

  body.home-page .home-events > .container,
  body.home-page .home-latest-news > .container,
  body.home-page .home-about > .container,
  body.home-page .home-join > .container,
  body.home-page .home-hero-wrap > .container {
    padding: 0 var(--gutter);
  }

  body.home-page .home-events,
  body.home-page .home-latest-news,
  body.home-page .home-about,
  body.home-page .home-join {
    padding-top: 44px;
  }

  body.home-page header {
    padding: 16px 0 10px;
  }

  body.home-page .top-links {
    display: none;
  }

  body.home-page .nav-toggle {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.32);
    width: 58px;
    height: 54px;
    margin: 0;
  }

  body.home-page .nav-shell {
    min-height: 0;
    padding: 12px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 50;
  }

  body.home-page .nav-brand img {
    width: min(430px, 70vw);
    margin: 0;
    transform: translateX(10px);
  }

  body.home-page .nav-brand-stack {
    width: auto;
    min-width: 0;
    align-items: flex-start;
    flex: 1 1 auto;
  }

  body.home-page .nav-brand {
    width: auto;
    justify-content: flex-start;
  }

  body.home-page .nav-right {
    width: auto;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  body.home-page .site-nav {
    width: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 60;
  }

  body.home-page .nav-social {
    gap: 16px;
    justify-content: center;
    margin: 0;
    transform: none;
  }

  body.home-page .nav-social .social {
    width: 38px;
    height: 38px;
  }

  body.home-page .nav-social .social svg,
  body.home-page .nav-social .social.x svg,
  body.home-page .nav-social .social.email svg {
    width: 24px;
    height: 24px;
  }

  body.home-page .nav-toggle__bars,
  body.home-page .nav-toggle__bars::before,
  body.home-page .nav-toggle__bars::after {
    background: #fff;
  }

  body.home-page .nav-toggle[aria-expanded="true"] .nav-toggle__bars {
    background: transparent;
  }

  body.home-page #primary-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    right: auto;
    z-index: 9999;
    transform: translateX(-50%);
    width: min(320px, calc(100vw - 40px));
    max-width: 320px;
    border-radius: 8px;
    background: #fff;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  body.home-page #primary-menu > li > a {
    color: var(--dalesmen-ink);
    padding: 13px 16px;
  }

  body.home-page #primary-menu > li > ul {
    position: static;
    width: 100%;
    min-width: 0;
    display: none;
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--rule);
    background: #fffaf0;
    text-align: center;
  }

  body.home-page #primary-menu > li.sub-open > ul {
    display: block;
  }

  body.home-page #primary-menu > li > ul > li {
    border: 0;
  }

  body.home-page #primary-menu > li > ul > li > a {
    color: var(--dalesmen-burgundy);
    background: #fffaf0;
    border-bottom: 1px solid rgba(154, 122, 44, 0.18);
    padding: 11px 18px;
    white-space: normal;
  }

  body.home-page #primary-menu > li > ul > li > a:hover,
  body.home-page #primary-menu > li > ul > li > a:focus {
    color: var(--dalesmen-burgundy);
    background: #f3e3c6;
    padding-left: 18px;
  }

  .home-hero {
    min-height: 520px;
  }

  .home-hero__inner {
    padding: 42px 24px 48px 30px;
  }

  .home-hero h1 {
    letter-spacing: 0.018em;
  }

  .home-event-cards {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .home-event-card {
    width: 90%;
    max-width: none;
  }

  .home-event-card__media {
    aspect-ratio: 16 / 9;
    max-height: 360px;
  }

  .home-section-intro h2 {
    margin-bottom: 22px;
    font-size: clamp(34px, 8.8vw, 48px);
    line-height: 1.04;
  }

  .home-section-intro p {
    font-size: 24px;
    line-height: 1.42;
  }

  .home-section-intro .home-btn {
    min-height: 58px;
    margin-top: 8px;
    padding: 0 34px;
    font-size: 19px;
  }

  .home-event-card__date {
    min-width: 118px;
    padding: 16px 20px 18px;
  }

  .home-event-card__date span {
    font-size: 22px;
    line-height: 1.1;
  }

  .home-event-card__date strong {
    font-size: 58px;
  }

  .home-event-card__badge {
    margin-top: 18px;
    padding: 18px 32px 19px;
    border-bottom-width: 6px;
    border-radius: 6px;
    font-size: 28px;
    letter-spacing: 0.02em;
  }

  body.home-page .home-events__grid {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .home-about__grid {
    gap: 28px;
  }

  .name-grid {
    grid-template-columns: 1fr;
  }
}

*{ box-sizing: border-box; }
html {
  overflow-y: scroll;
  /* A wide, hidden desktop submenu must never change Safari's page scale. */
  overflow-x: hidden;
  overflow-x: clip;
}
.active { font-weight: bold;
text-decoration: underline; }
body{
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
}

h2 {
  margin-top: 0;
}

.test-site-banner {
  background: #b30000;
  color: #fff;
  padding: 8px;
  text-align: center;
}

/* Full-width sections, with a centered inner container */
.section{
  width: 100%;
}

.container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.image-box{
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================
   Header
   ========================= */
header{
  padding: 22px 0 14px;
}

.brand-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.logo{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #ffb3b3 0%, #ffdcdc 45%, #ffffff 72%);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.logo img{
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.brand-text h1{
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #4b4b4b;
  line-height: 1.15;
}

.brand-text .tagline{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.top-links{
  text-align: right;
  color: #888;
  font-size: 13px;
}

.top-links .site{
  font-weight: 600;
  color: #888;
  text-decoration: none;
}

.top-links .icons{
  margin-top: 10px;
  display: inline-flex;
  gap: 10px;
  opacity: 0.75;
}

.icon{
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 3px;
  border: 1px solid var(--rule);
}

/* =========================
   Nav (desktop baseline)
   ========================= */
nav{
  padding: 10px 0 0;
}

.nav-brand,
.nav-social {
  display: none;
}

/* top-level menu (desktop) */
nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
}

nav a{
  display: inline-block;
  padding: 10px 0 12px;
  text-decoration: none;
  color: var(--nav-text);
  font-size: 13px;
  border-bottom: 2px solid transparent;
}

nav a.active{
  color: var(--nav-active);
  border-bottom-color: var(--nav-active);
}

/* Hamburger button (hidden on desktop) */
.nav-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle__bars{
  width: 20px;
  height: 2px;
  background: var(--nav-text);
  position: relative;
  display: block;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after{
  content:"";
  position:absolute;
  left:0;
  width:20px;
  height:2px;
  background: var(--nav-text);
}

.nav-toggle__bars::before{ top:-6px; }
.nav-toggle__bars::after{ top: 6px; }

.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Animate hamburger to X */
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after{
  transition: transform 0.2s ease, top 0.2s ease, background 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars{
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before{
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after{
  transform: rotate(-45deg);
  top: 0;
}

/* =========================
   Desktop dropdown (hover)
   ========================= */
nav ul > li{
  position: relative;
}

nav ul > li > ul{
  display: none;
  position: absolute;
  top: 100%;
  /* Members sits at the right of the navigation. Opening its intrinsically
     sized menu to the right can widen the document and make Safari rescale
     the whole page. Keep the panel inside the viewport instead. */
  left: auto;
  right: 12px;

  margin: 0;
  padding: 0;
  list-style: none;

  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);

  min-width: min(240px, calc(100vw - 56px));
  width: min(280px, calc(100vw - 56px));
  max-width: calc(100vw - 56px);
  z-index: 1000;
}

nav ul > li:hover > ul,
nav ul > li:focus-within > ul,
nav ul > li.is-hover-open > ul{
  display: block;
}

nav ul > li > ul > li{
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

nav ul > li > ul > li:first-child{
  border-top: 1px solid var(--rule);
}

nav ul > li > ul a{
  display: block;
  padding: 9px 16px;
  color: var(--nav-text);
  text-decoration: none;
  background: #fff;
  white-space: normal;
  transition: background-color 0.15s ease, padding-left 0.15s ease;
}

nav ul > li > ul a:hover{
  background: #f3e3c6;
  color: var(--dalesmen-burgundy, #5b0710);
  padding-left: 20px;
}

body.home-page nav ul > li > ul a:hover,
body.home-page nav ul > li > ul a:focus {
  color: var(--dalesmen-burgundy);
}

/* =========================
   Main
   ========================= */
main{
  padding: 28px 0 46px;
}

.columns{
  display: grid;
  grid-template-columns: 325px 1fr 375px; /* desktop */
  gap: 40px;
  align-items: start;
  min-height: 420px;
}

/* Left column */
.panel-title{
  font-size: 13px;
  color: #666;
  margin: 0 0 10px;
}

.flyer{
  width: 100%;
  border: 1px solid var(--rule);
  background: #f7f7f7;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.flyer img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Middle column (form) */
.content h2{
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
}

.req-note{
  margin: 0 0 14px;
  font-size: 12px;
  color: #b04;
  font-style: italic;
}

form{
  max-width: 480px;
}

.field{
  margin: 10px 0 14px;
}

label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.req{
  color: #c00;
  margin-left: 3px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea{
  width: 100%;
  border: 1px solid var(--field-border);
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

textarea{
  min-height: 140px;
  resize: vertical;
}

.name-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sub-label{
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #999;
}

.btn-primary {
  background: #2d6cdf;
  border-color: #2d6cdf;
  color: #fff;
}

.btn-secondary {
  background: #f3f3f3;
  color: #222;
}

.btn:hover {
  opacity: 0.95;
}

.fineprint{
  margin-top: 16px;
  font-size: 12px;
  color: #666;
  line-height: 1.45;
  max-width: 480px;
}

/* Right column (empty but present) */
.right-col{
  min-height: 20px;
}

/* =========================
   Responsive
   ========================= */

/* Tablet */
@media (max-width: 980px){
  .columns{
    grid-template-columns: 240px 1fr 180px;
    gap: 28px;
  }
}

/* Mobile */
@media (max-width: 1024px){
nav ul{

  gap: 0px;
  
}

  /* ===== Header layout ===== */
  .brand-row{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .brand{ min-width: 0; }

  .top-links{
    text-align: center;
    width: 100%;
  }

  .columns{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  /* ===== Hamburger button ===== */
  .nav-toggle{
    display: inline-flex;
    margin: 10px auto 6px;
  }

  /* =================================================
     MAIN HAMBURGER PANEL  (IMPORTANT: #primary-menu)
     ================================================= */
#primary-menu{
    list-style: none;
    margin: 0 auto;
    padding: 4px 0;

    display: none;              /* closed */
    flex-direction: column;

    max-width: 320px;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 10px;
  }

  .site-nav.nav-open #primary-menu,
  .nav-toggle[aria-expanded="true"] + #primary-menu,
  #primary-menu.is-open{
    display: flex;              /* open */
  }

  /* ===== Top-level links ===== */
  #primary-menu > li{
    list-style: none;
    width: 100%;
  }

  #primary-menu > li > a{
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--rule);
  }

  #primary-menu > li:last-child > a{
    border-bottom: 0;
  }

  /* =================================================
     SUBMENU (simple show/hide - no clipping)
     ================================================= */
  #primary-menu > li > ul{
    display: none;              /* hidden by default */
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    list-style: none;
    margin: 0;
    padding: 6px 0 6px;         /* small gap under Members */
    background: transparent;
  }

  #primary-menu > li.sub-open > ul{
    display: block;             /* show all items */
  }

  /* Submenu links */
  #primary-menu > li > ul > li > a{
    display: block;
    padding: 8px 16px 8px 32px; /* indent */
    font-size: 14px;

    border-left: 2px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: #fff;
  }

  #primary-menu > li > ul > li:last-child > a{
    border-bottom: 0;
  }

  /* ===== Chevron indicator ===== */
  #primary-menu > li.has-sub > a::after{
    content: "▾";
    float: right;
    opacity: 0.6;
  }

  #primary-menu > li.sub-open > a::after{
    content: "▴";
  }
}

@media (max-width: 1024px) {
  body.home-page .nav-toggle {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.32) !important;
    border-radius: 7px;
    box-shadow: inset 0 0 0 1px rgba(210, 168, 39, 0.12);
  }

  body.home-page .nav-toggle__bars,
  body.home-page .nav-toggle__bars::before,
  body.home-page .nav-toggle__bars::after {
    background: #fff !important;
  }

  body.home-page .nav-toggle[aria-expanded="true"] .nav-toggle__bars {
    background: transparent !important;
  }
}
