/* St. Cadoc's Youth Club — local application layer */
:root {
  --sc-deep: #172b35;
  --sc-ocean: #0b5c68;
  --sc-ocean-dark: #073f49;
  --sc-sand: #ede2d0;
  --sc-sand-dark: #d8c7ae;
  --sc-neutral: #f7f5f1;
  --sc-ink: #172b35;
  --sc-muted: #53656b;
  --sc-white: #fff;
  --sc-focus: #f4b942;
  --sc-border: #b8c2c3;
  --sc-radius: .35rem;
  --sc-content-width: 90rem;
  --sc-gutter: clamp(1rem, 3vw, 3.5rem);
  --sc-section-space: clamp(4rem, 8vw, 8rem);
  --sc-body-font: Arial, Helvetica, sans-serif;
  --sc-display-font: Georgia, 'Times New Roman', serif;
}

/* QA accessibility repair: keep navigation, anchors, consent and dark cards readable. */
header { display: block; min-height: 4.5rem; position: relative; z-index: 100; }
[id] { scroll-margin-top: 5.5rem; }
.skip-link:focus { z-index: 2000; }
.cookie-banner { z-index: 1080; }
.consent { color: #172b35; }
.consent a { color: #064f60; text-decoration: underline; }
.arena-section-dark .arena-card { background: #173a45; color: #fff; }
.arena-section-dark .arena-card p, .arena-section-dark .card-kicker { color: #fff; opacity: 1; }
.mobile-nav-toggle {
  position: fixed;
  z-index: 1100;
  top: .9rem;
  right: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
  background: #073f49;
  color: #fff;
  box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .22);
  cursor: pointer;
  font: 700 .9rem/1 Arial, Helvetica, sans-serif;
}
.mobile-nav-toggle::after { content: "☰"; font-size: 1rem; }
.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible { background: #0b5c68; color: #fff; }
@media (min-width: 992px) { .mobile-nav-toggle { display: none; } }
@media (max-width: 991.98px) {
  header .social-icons { display: none; }
  header .social-icons.is-open { display: block; position: fixed; z-index: 1090; inset: 0 0 auto; padding: 4rem 1rem 1rem; background: #172b35; }
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--sc-ink);
  background: var(--sc-neutral);
  font-family: var(--sc-body-font);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; }
img { height: auto; }
a { color: var(--sc-ocean-dark); text-underline-offset: .18em; }
a:hover { color: var(--sc-deep); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: .2rem solid var(--sc-focus);
  outline-offset: .2rem;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  color: var(--sc-white);
  background: var(--sc-deep);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

h1, h2, h3, h4 {
  color: inherit;
  font-family: var(--sc-display-font);
  font-weight: 700;
  line-height: 1.12;
}
h1 { font-size: clamp(2.5rem, 7vw, 6.5rem); }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 2rem); }
p { max-width: 70ch; }

.container,
.container-fluid { position: relative; z-index: 1; }
.site-content { overflow: hidden; }
.arena-section {
  position: relative;
  padding: var(--sc-section-space) 0;
  background: var(--sc-neutral);
}
.arena-section-accent,
.arena-section:nth-of-type(1) { background: var(--sc-sand); }
.arena-section-dark { color: var(--sc-white); background: var(--sc-deep); }
.arena-section-dark h2,
.arena-section-dark h3 { color: var(--sc-white); }
.section-intro { max-width: 65ch; margin-bottom: 2.5rem; color: var(--sc-muted); }
.arena-section-dark .section-intro { color: #f2f5f4; }

.btn {
  border-radius: var(--sc-radius);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn-primary {
  color: var(--sc-white);
  background: var(--sc-ocean);
  border-color: var(--sc-ocean);
}
.btn-primary:hover,
.btn-primary:active {
  color: var(--sc-white);
  background: var(--sc-ocean-dark);
  border-color: var(--sc-ocean-dark);
  transform: translateY(-1px);
}
.btn-dark { color: var(--sc-white); background: var(--sc-deep); border-color: var(--sc-deep); }
.btn-dark:hover,
.btn-dark:active { color: var(--sc-white); background: var(--sc-ocean-dark); border-color: var(--sc-ocean-dark); }

header {
  position: relative;
  z-index: 5;
  min-height: 3.5rem;
}
.social-icons {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 6;
}
.social-icons .btn {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-grid;
  place-items: center;
  padding: .45rem;
}
.site-header--inline,
.site-header--stacked-brand,
.site-header--wrapped-nav,
.site-header--centered-brand { width: 100%; }
.site-header--centered-brand { text-align: center; }
.site-header--stacked-brand .navbar-brand { display: block; }
.site-header--wrapped-nav .navbar-nav { flex-wrap: wrap; justify-content: center; }
.site-header--inline .navbar { align-items: center; }

.bg-video {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: min(48rem, 100vh);
  object-fit: cover;
  opacity: .3;
  background: var(--sc-deep);
}
.masthead {
  position: relative;
  min-height: 42rem;
  display: flex;
  align-items: flex-end;
  color: var(--sc-white);
  background: linear-gradient(180deg, rgba(23,43,53,.5), rgba(23,43,53,.96));
}
.masthead-content { width: 100%; padding: 8rem 0 5rem; }
.masthead .eyebrow {
  margin-bottom: 1rem;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.masthead h1 { max-width: 12ch; }
.masthead-content > .container-fluid > p:not(.eyebrow):not(.hero-summary) { max-width: 62ch; }
.hero-summary {
  max-width: 60ch;
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  color: var(--sc-white);
  background: rgba(23,43,53,.96);
  border-left: .3rem solid var(--sc-sand-dark);
}
.hero-image-top { align-items: flex-end; }
.hero-image-top .masthead-content { padding-top: 12rem; }
.hero-overlay .masthead-content { max-width: var(--sc-content-width); margin-inline: auto; padding-inline: var(--sc-gutter); }
.hero-editorial { display: block; }
.hero-editorial .masthead-content { padding-top: 7rem; }

.community-layout { display: grid; gap: 2rem; }
.community-image { width: 100%; border-radius: var(--sc-radius); object-fit: cover; }
.community-notes { display: grid; gap: 1rem; align-content: start; }
.community-notes h3 { margin: 0; }
.community-notes p { margin: 0; }

.visit-steps { display: grid; gap: 1rem; counter-reset: visit; }
.visit-steps > div {
  position: relative;
  padding: 1.5rem;
  background: var(--sc-white);
  border-top: .25rem solid var(--sc-ocean);
}
.visit-steps span {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: .75rem;
  place-items: center;
  color: var(--sc-white);
  background: var(--sc-ocean);
  border-radius: 50%;
  font-weight: 700;
}
.visit-steps h3 { margin: 0 0 .65rem; }
.visit-steps p { margin: 0; }

.faq-list { max-width: 55rem; }
.faq-list details { border-top: 1px solid #829398; }
.faq-list details:last-child { border-bottom: 1px solid #829398; }
.faq-list summary { padding: 1.25rem 2.5rem 1.25rem 0; cursor: pointer; font-weight: 700; }
.faq-list summary::marker { color: var(--sc-sand-dark); }
.faq-list details p { margin: 0 0 1.5rem; color: #f2f5f4; }

.arena-grid { display: grid; gap: 1.25rem; }
.arena-card {
  height: 100%;
  overflow: hidden;
  background: var(--sc-white);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  box-shadow: 0 .5rem 1.5rem rgba(23,43,53,.08);
}
.arena-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.arena-card h3,
.arena-card p,
.arena-card .card-kicker { margin-right: 1.5rem; margin-left: 1.5rem; }
.arena-card h3 { margin-top: 1.5rem; margin-bottom: .65rem; }
.arena-card p { margin-bottom: 1.5rem; color: var(--sc-muted); }
.arena-section-dark .arena-card { color: var(--sc-ink); }
.card-kicker {
  display: block;
  padding-top: 1.5rem;
  color: var(--sc-ocean-dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.featured-card { border-top: .45rem solid var(--sc-ocean); }
.section-layout--amenities-grouped .arena-card:nth-child(3) { background: var(--sc-sand); }
.section-layout--services-feature .arena-card:nth-child(2) { border-top: .45rem solid var(--sc-sand-dark); }
.section-layout--showcase-feature .featured-card { transform: none; }

.contact-section { background: var(--sc-neutral); }
.contact-section .container { max-width: 58rem; }
.arena-form {
  padding: clamp(1.25rem, 4vw, 3rem);
  background: var(--sc-white);
  border: 1px solid var(--sc-border);
  border-top: .35rem solid var(--sc-ocean);
  border-radius: var(--sc-radius);
  box-shadow: 0 .75rem 2rem rgba(23,43,53,.08);
}
.form-row { margin-bottom: 1.25rem; }
.form-row label,
.consent { display: block; font-weight: 700; }
.form-row label span { margin-left: .35rem; color: var(--sc-muted); font-size: .9em; font-weight: 400; }
.form-row input,
.form-row select,
.form-row textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  margin-top: .4rem;
  padding: .65rem .75rem;
  color: var(--sc-ink);
  background: var(--sc-white);
  border: 1px solid var(--sc-muted);
  border-radius: var(--sc-radius);
}
.form-row textarea { min-height: 8rem; resize: vertical; }
.consent { display: flex; gap: .65rem; align-items: flex-start; margin: 1.5rem 0; font-weight: 400; }
.consent input { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; margin-top: .25rem; accent-color: var(--sc-ocean); }
.consent a { margin-left: .25rem; }
.arena-form > .btn { width: 100%; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form-status { margin-bottom: 1rem; padding: .75rem 1rem; border-left: .25rem solid var(--sc-ocean); background: var(--sc-sand); }

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 20;
  max-width: 32rem;
  margin-inline: auto;
  padding: 1rem 1.25rem;
  color: var(--sc-white);
  background: var(--sc-deep);
  border: 1px solid var(--sc-sand-dark);
  box-shadow: 0 .5rem 2rem rgba(0,0,0,.25);
}
.cookie-banner p { margin: 0 0 .75rem; }
.cookie-banner button { margin-right: .75rem; padding: .5rem .9rem; color: var(--sc-deep); background: var(--sc-sand); border: 1px solid var(--sc-sand); border-radius: var(--sc-radius); font-weight: 700; }
.cookie-banner button:hover { color: var(--sc-white); background: var(--sc-ocean); border-color: var(--sc-ocean); }

.site-footer {
  padding: 3rem var(--sc-gutter);
  color: var(--sc-white);
  background: var(--sc-deep);
}
.site-footer address { max-width: 35rem; margin: 0 auto 2rem; font-style: normal; text-align: center; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sc-sand); }
.site-footer .container { display: grid; gap: 1rem; text-align: center; }
.site-footer p { margin: 2rem auto 0; text-align: center; }

.policy-page { min-height: 100vh; background: var(--sc-neutral); }
.policy-page__main { padding: clamp(3rem, 7vw, 7rem) var(--sc-gutter); }
.policy-document { max-width: 52rem; margin: 0 auto; }
.policy-document__header { padding-bottom: 1.5rem; border-bottom: 1px solid var(--sc-border); }
.policy-document__header h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
.policy-document__content { padding-top: 2rem; }
.policy-document__content h2 { margin-top: 2.5rem; font-family: var(--sc-body-font); font-size: 1.5rem; }
.policy-document__content h3 { margin-top: 2rem; font-family: var(--sc-body-font); font-size: 1.2rem; }
.policy-document__content p,
.policy-document__content li { max-width:  seventych; }

@media (min-width: 48rem) {
  .community-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
  .visit-steps { grid-template-columns: repeat(3, 1fr); }
  .arena-grid-three { grid-template-columns: repeat(3, 1fr); }
  .arena-grid:not(.arena-grid-three) { grid-template-columns: repeat(3, 1fr); }
  .section-layout--showcase-feature .arena-grid { grid-template-columns: 1.25fr 1fr 1fr; align-items: stretch; }
  .section-layout--showcase-feature .featured-card { transform: translateY(-1rem); }
  .arena-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
  .arena-form .full-row,
  .arena-form .consent,
  .arena-form > .btn,
  .arena-form .form-status { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
  .social-icons { right: 1rem; }
  .social-icons .d-flex { gap: .5rem; }
  .masthead-content { padding-bottom: 8rem; }
  .hero-image-top .masthead-content { padding-top: 15rem; }
  .hero-overlay .masthead-content { padding: 10rem var(--sc-gutter); }
  .site-footer .container { grid-template-columns: 1fr 1fr; text-align: left; }
}

@media (max-width: 47.99rem) {
  .masthead { min-height: 38rem; }
  .masthead h1 { max-width: 15ch; }
  .arena-section-dark .arena-card { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .bg-video { display: none; }
}

/* Application-owned visual variation tokens v4. */
:root {
  --site-foreground: #18323F;
  --site-background: #F5F8FA;
  --site-accent: #1D5F78;
  --site-surface: #E3EEF1;
  --site-muted: #4B626C;
  --site-link: #1D5F78;
  --site-text-muted: #4B626C;
}

body,
body * {
  font-family: Tahoma, Arial, sans-serif !important;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  font-family: Tahoma, Arial, sans-serif !important;
}

body .site-header {
  width: 100%;
  overflow: visible !important;
}

body .site-header .navbar {
  width: 100%;
  padding-inline: clamp(1rem, 3vw, 4rem);
}

body .site-header .navbar > .container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-wrap: wrap;
}

body .site-header .navbar-brand {
  min-width: 0;
  max-width: 38%;
  overflow-wrap: anywhere;
}

body .site-header .navbar-collapse {
  min-width: 0;
}

body .site-header .navbar-nav {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body .site-header .nav-link,
body .site-header .navbar-nav .btn {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: center;
}

@media (min-width: 992px) {
  body .site-header--stacked-brand .navbar > .container,
  body .site-header--centered-brand .navbar > .container {
    align-items: center;
  }

  body .site-header--stacked-brand .navbar > .container {
    flex-direction: column;
  }

  body .site-header--stacked-brand .navbar-brand,
  body .site-header--centered-brand .navbar-brand {
    max-width: 100%;
    margin-inline: auto;
  }

  body .site-header--stacked-brand .navbar-collapse,
  body .site-header--centered-brand .navbar-collapse {
    width: 100%;
    flex-grow: 0;
  }

  body .site-header--stacked-brand .navbar-nav,
  body .site-header--centered-brand .navbar-nav {
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  body .site-header .navbar-collapse.show {
    flex-basis: 100%;
  }

  body .site-header .navbar-nav {
    align-items: stretch;
  }
}

body .btn,
body button[type="submit"] {
  background-color: var(--site-accent) !important;
  border-color: var(--site-accent) !important;
  color: var(--site-background) !important;
}


section.section-layout--hero-split .row {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
  align-items: center;
}

section.section-layout--hero-split .row > [class*="col-"] {
  max-width: none !important;
  width: auto !important;
}

section.section-layout--hero-stacked .row {
  display: block !important;
  max-width: 66rem;
  margin-inline: auto;
}

section.section-layout--hero-editorial .row {
  display: block !important;
  width: 100%;
  max-width: none !important;
  margin-inline: 0;
}

section.section-layout--hero-editorial .row > [class*="col-"] {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0;
}

section.section-layout--hero-editorial .row > [class*="col-"] + [class*="col-"] {
  margin-top: clamp(2rem, 5vw, 4.5rem);
}

section.section-layout--hero-editorial img {
  display: block;
  width: 100%;
  max-height: 42rem;
  object-fit: cover;
}

section.section-layout--hero-overlay .row > [class*="col-"]:first-child {
  padding: clamp(1.5rem, 5vw, 5rem);
  margin: clamp(1rem, 3vw, 3rem);
  max-width: min(52rem, calc(100% - 2rem)) !important;
}

section.section-layout--hero-overlay h1 {
  margin-bottom: clamp(1.25rem, 3vw, 2.5rem);
}

section.section-layout--hero-overlay p {
  margin-bottom: 1.25rem;
}

section.section-layout--hero-image-top > .container,
section.section-layout--hero-image-top > .container-fluid {
  width: min(calc(100% - 2rem), 90rem) !important;
  max-width: 90rem !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

section.section-layout--hero-image-top > .container > .row:first-child,
section.section-layout--hero-image-top > .container-fluid > .row:first-child {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

section.section-layout--hero-image-top > .container > .row:first-child > [class*="col-"],
section.section-layout--hero-image-top > .container-fluid > .row:first-child > [class*="col-"] {
  width: 100% !important;
  max-width: none !important;
  flex: 0 0 100% !important;
  padding-inline: 0 !important;
}

section.section-layout--hero-image-top > .container > .row:first-child > [class*="col-"]:has(img),
section.section-layout--hero-image-top > .container-fluid > .row:first-child > [class*="col-"]:has(img) {
  order: -1;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

section.section-layout--hero-image-top h1,
section.section-layout--hero-image-top .display-1,
section.section-layout--hero-image-top .display-2,
section.section-layout--hero-image-top .display-3 {
  max-width: 64rem !important;
}

section.section-layout--hero-image-top img {
  display: block;
  width: 100%;
  max-height: 42rem;
  object-fit: cover;
}

section.section-layout--hero-overlay {
  position: relative;
  isolation: isolate;
}

section.section-layout--hero-overlay .row {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: center;
}

section.section-layout--hero-overlay .row > [class*="col-"] {
  grid-area: 1 / 1;
  max-width: none !important;
  width: auto !important;
}

section.section-layout--hero-overlay .row > [class*="col-"]:first-child {
  position: relative;
  z-index: 2;
  max-width: 42rem !important;
}

section.section-layout--hero-overlay .row > [class*="col-"]:last-child {
  z-index: 1;
}

@media (max-width: 767.98px) {
  section.section-layout--hero-split .row {
    display: block !important;
  }
}

/* Application-owned accessibility and viewport safeguards. */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: clip;
}

img, svg, video, canvas, iframe {
  max-width: 100%;
}

pre, code, kbd, samp {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
}

.container, .container-fluid {
  min-width: 0;
}

main, section, header, footer {
  min-width: 0;
  max-width: 100%;
}

/* Application-owned fluid homepage container safeguards v1. */
body main > section .container,
body main > section .container-fluid {
  width: min(calc(100% - clamp(2rem, 6vw, 6rem)), 90rem) !important;
  max-width: 90rem !important;
  margin-inline: auto !important;
}

.skip-link:not(:focus) {
  position: fixed !important;
  top: 0;
  left: 50% !important;
  transform: translate(-50%, -160%);
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
}

@media (max-width: 575.98px) {
  .container > .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }
}

.contact-direct {
  display: block;
  max-width: 52rem;
}

.contact-direct__lead,
.contact-direct__note {
  max-width: 44rem;
  margin: 0;
}

.contact-direct__note { margin-top: 1rem; }

.contact-direct__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}

.arena-form .contact-direct__actions .btn,
.contact-direct__actions .btn {
  width: auto;
}

/* Application-owned focused contact layout v1. */
section.section-layout--contact-focused > .container > .row,
section.section-layout--contact-focused > .container-fluid > .row {
  display: block !important;
  width: min(100%, 44rem) !important;
  margin-inline: auto !important;
}

section.section-layout--contact-focused > .container > .row > [class*="col-"],
section.section-layout--contact-focused > .container-fluid > .row > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

section.section-layout--contact-focused :where(h2, h3, .lead) {
  text-align: center;
}

@media (max-width: 575.98px) {
  .container > .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }
}
