/*
 * OCCRA look: the visual language of the club's current site (www.occra.com): black social bar, blue racing
 * header, blue photo banners, lime accents and IBM Plex Sans with a Yellowtail script for small kickers.
 * Loaded after site.css and public.css so it wins on equal specificity. Colours that Studio edits live in
 * theme.css; this file only adds the layout of the shared header/footer, the banners and the page sections.
 */
:root {
  --oc-navy: #0a1f44;
  --oc-blue: #005aaf;
  --oc-sky: #0094f7;
  --oc-royal: #0053ef;
  --oc-lime: #befc14;
  --oc-kicker: #4f7d00;
  --oc-topbar-height: 2.25rem;
  --oc-gradient: linear-gradient(180deg, var(--oc-sky), var(--oc-royal));
  --site-header-height: calc(var(--site-header-row-height) + var(--site-header-border-width) + var(--oc-topbar-height));
}
:root:has([data-site-header]:not([data-layout='inline'], [data-layout='compact'])) {
  --site-header-height: calc(var(--site-header-row-height) + var(--site-header-nav-row-height) + var(--site-header-border-width) + var(--oc-topbar-height));
}
html,
body {
  font-family: var(--font-sans);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
}
.oc-script {
  font-family: 'Yellowtail', cursive;
  font-weight: 400;
  color: var(--oc-kicker);
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  line-height: 1.1;
  margin: 0 0 0.25rem;
}
.oc-dark .oc-script,
.oc-band-lime .oc-script {
  color: var(--oc-lime);
}

/* ------------------------------------------------------------------ header */
[data-site-header] {
  background: var(--oc-navy);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}
.oc-topbar {
  background: #000;
  color: #fff;
  height: var(--oc-topbar-height);
}
.oc-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 100%;
  padding-inline: 1rem;
}
@media (min-width: 1024px) {
  .oc-topbar-inner {
    padding-inline: 2rem;
  }
}
.oc-social {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.oc-social-link {
  display: inline-flex;
  color: inherit;
  opacity: 0.92;
  transition: opacity 0.15s, color 0.15s;
}
.oc-social-link:hover,
.oc-social-link:focus-visible {
  opacity: 1;
  color: var(--oc-lime);
}
.oc-icon {
  width: 1rem;
  height: 1rem;
}
.oc-hotline {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}
.oc-hotline:hover {
  color: var(--oc-lime);
}
@media (max-width: 420px) {
  .oc-social {
    gap: 0.6rem;
  }
  .oc-hotline {
    font-size: 0.75rem;
  }
}
.oc-logo {
  height: 3.5rem;
}
[data-site-header] [data-nav-item] > :is(a, button),
[data-site-header] [data-more-item] > button,
[data-site-header] [data-header-actions] > a:not(.oc-cta),
[data-site-header] [data-header-utilities] button,
[data-site-header] [data-header-menu] {
  background-color: transparent;
  color: #fff;
}
[data-site-header] [data-nav-item] > :is(a, button):is(:hover, :focus-visible, [data-popup-open], [aria-expanded='true']),
[data-site-header] [data-more-item] > button:is(:hover, :focus-visible, [aria-expanded='true']),
[data-site-header] [data-header-actions] > a:not(.oc-cta):hover,
[data-site-header] [data-header-utilities] button:hover,
[data-site-header] [data-header-menu]:hover {
  background-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}
[data-site-header] [data-nav-item] > [data-active]::after {
  background: var(--oc-lime);
  opacity: 1;
}
.oc-cta {
  background: var(--oc-gradient) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}
.oc-cta:hover {
  filter: brightness(1.1);
}
/* the slide-out menu of the compact header keeps the light popover colours but carries the same logo */
.imported-sheet-panel .oc-logo {
  height: 3rem;
}

/* ------------------------------------------------------------------ footer */
.oc-footer {
  background: var(--oc-navy);
  color: #dce6f5;
  border-top: 4px solid var(--oc-blue);
}
.oc-footer a {
  color: inherit;
}
.oc-footer a:hover,
.oc-footer a:focus-visible {
  color: var(--oc-lime);
}
.oc-footer-inner {
  max-width: 80rem;
  margin-inline: auto;
  padding: 3rem 1rem 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .oc-footer-inner {
    padding-inline: 1.5rem;
  }
}
@media (min-width: 900px) {
  .oc-footer-inner {
    grid-template-columns: 5fr 3fr 4fr;
    gap: 3rem;
    padding: 4rem 2rem 2.5rem;
  }
}
.oc-footer-logo img {
  width: 11rem;
  height: auto;
}
.oc-footer-schedule {
  display: inline-block;
  margin: 0.25rem 0 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
}
.oc-footer-brand p {
  margin: 0;
  max-width: 34rem;
  line-height: 1.65;
  font-size: 0.95rem;
}
.oc-footer h2 {
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
}
.oc-footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.oc-footer-contact p {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.oc-label {
  font-weight: 600;
  color: #fff;
}
.oc-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.oc-footer-bottom-inner {
  max-width: 80rem;
  margin-inline: auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}
@media (min-width: 640px) {
  .oc-footer-bottom-inner {
    flex-direction: row;
    padding-inline: 1.5rem;
  }
}
@media (min-width: 900px) {
  .oc-footer-bottom-inner {
    padding-inline: 2rem;
  }
}
.oc-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  color: #b8c7df;
}
.oc-footer .oc-social-link .oc-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ------------------------------------------------------------------ layout helpers */
.oc-container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .oc-container {
    padding-inline: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .oc-container {
    padding-inline: 2rem;
  }
}
.oc-section {
  padding-block: 3.5rem;
}
@media (min-width: 768px) {
  .oc-section {
    padding-block: 5rem;
  }
}
.oc-muted {
  background: var(--muted);
}
.oc-center {
  text-align: center;
}
.oc-left {
  text-align: left;
}
.oc-narrow {
  max-width: 48rem;
  margin-inline: auto;
}
.oc-narrow-block {
  max-width: 56rem;
  margin-inline: auto;
}
.oc-more {
  margin-top: 2rem;
}
.oc-h2 {
  margin: 0 0 1rem;
  color: var(--foreground);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.oc-lead {
  margin: 0 0 1rem;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.oc-white,
.oc-dark .oc-h2,
.oc-dark .oc-lead {
  color: #fff;
}
.oc-dark .oc-lead {
  color: rgba(255, 255, 255, 0.88);
}

/* ------------------------------------------------------------------ buttons */
.oc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 0.3rem;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: filter 0.15s, background-color 0.15s, color 0.15s;
}
.oc-btn-primary {
  background: var(--oc-gradient);
  color: #fff;
}
.oc-btn-primary:hover {
  filter: brightness(1.12);
}
.oc-btn-light {
  background: #fff;
  color: var(--oc-navy);
}
.oc-btn-light:hover {
  background: var(--oc-lime);
}
.oc-btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.oc-btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.oc-btn-ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.oc-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}
.oc-news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.oc-center .oc-news-actions,
.oc-center-actions {
  justify-content: center;
}

/* ------------------------------------------------------------------ torn-paper bottom edge of banners */
.oc-banner,
.oc-hero,
.oc-page-heading,
[data-cms-section='page-heading'] {
  position: relative;
}
.oc-banner::after,
.oc-hero::after,
.oc-page-heading::after,
[data-cms-section='page-heading']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(14px, 2.4vw, 30px);
  background: var(--background);
  pointer-events: none;
  clip-path: polygon(0% 100%, 0% 25%, 1.8% 85%, 3.6% 44%, 5.4% 39%, 7.2% 72%, 9% 60%, 10.8% 46%, 12.6% 74%, 14.4% 74%, 16.2% 60%, 18% 69%, 19.8% 66%, 21.6% 78%, 23.4% 41%, 25.2% 49%, 27% 71%, 28.8% 70%, 30.6% 29%, 32.4% 69%, 34.2% 55%, 36% 85%, 37.8% 77%, 39.6% 33%, 41.4% 58%, 43.2% 85%, 45% 70%, 46.8% 67%, 48.6% 63%, 50.4% 84%, 52.2% 84%, 54% 49%, 55.8% 47%, 57.6% 79%, 59.4% 47%, 61.2% 35%, 63% 44%, 64.8% 53%, 66.6% 44%, 68.4% 86%, 70.2% 61%, 72% 72%, 73.8% 82%, 75.6% 29%, 77.4% 43%, 79.2% 61%, 81% 58%, 82.8% 52%, 84.6% 38%, 86.4% 84%, 88.2% 29%, 90% 49%, 91.8% 47%, 93.6% 68%, 95.4% 85%, 97.2% 58%, 99% 36%, 100% 62%, 100% 100%);
}

/* ------------------------------------------------------------------ page banner (inner pages) */
.oc-banner {
  background: #12427d;
  overflow: hidden;
}
.oc-banner > img {
  display: block;
  width: 100%;
  height: clamp(11rem, 24vw, 19rem);
  object-fit: cover;
}
.oc-banner-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1rem 1.25rem;
  text-align: center;
  color: #fff;
}
.oc-banner h1,
.oc-hero h1 {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 20, 60, 0.4);
}
.oc-banner-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.25rem);
}
/* Pages built from app/list templates keep their own heading; it becomes the same blue banner. */
.oc-page-heading,
[data-cms-section='page-heading'] {
  background: linear-gradient(rgba(10, 45, 100, 0.55), rgba(10, 45, 100, 0.55)), url('/images/hero-home.jpg') center / cover;
  color: #fff;
  text-align: center;
  padding-block: clamp(2.75rem, 7vw, 5rem) clamp(3.25rem, 8vw, 5.5rem) !important;
  margin: 0 !important;
  max-width: none !important;
}
.oc-page-heading header {
  justify-content: center !important;
}
.oc-page-heading h1,
[data-cms-section='page-heading'] h1 {
  color: #fff !important;
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 4rem) !important;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 20, 60, 0.4);
}
.oc-page-heading p,
[data-cms-section='page-heading'] [data-cms='public-intro'],
[data-cms-section='page-heading'] [data-cms='public-intro'] * {
  color: rgba(255, 255, 255, 0.92) !important;
}
[data-cms-section='page-heading'] [data-cms='public-intro'] {
  margin-inline: auto;
  max-width: 46rem;
}

/* ------------------------------------------------------------------ home hero */
.oc-hero {
  background: #12427d;
  overflow: hidden;
  min-height: clamp(26rem, 58vw, 38rem);
  display: grid;
}
.oc-hero > * {
  grid-area: 1 / 1;
}
.oc-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.oc-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 1rem 4rem;
  text-align: center;
}
.oc-hero h1 {
  max-width: 52rem;
  font-size: clamp(2.4rem, 7vw, 4.75rem);
  text-transform: capitalize;
}
.oc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* ------------------------------------------------------------------ app band */
.oc-band-lime {
  background: var(--oc-lime);
  color: var(--oc-navy);
}
.oc-app {
  display: grid;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding-block: 2.5rem;
}
@media (min-width: 900px) {
  .oc-app {
    grid-template-columns: auto 1fr auto;
    text-align: left;
    justify-items: start;
  }
}
.oc-app-logo {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: contain;
}
.oc-app-title {
  margin: 0;
  color: var(--oc-navy);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
}
.oc-app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.oc-app-badges img {
  height: 3.1rem;
  width: auto;
}

/* ------------------------------------------------------------------ news head (home) */
.oc-news-head {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.oc-news-head .oc-news-actions {
  justify-content: center;
}

/* ------------------------------------------------------------------ cards */
.oc-card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .oc-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .oc-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.oc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0.6rem;
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(10, 31, 68, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.oc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(10, 31, 68, 0.16);
}
.oc-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.oc-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.4rem 1.5rem;
  text-align: left;
}
.oc-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--foreground);
}
.oc-card-text {
  margin: 0 0 1rem;
  flex: 1;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.oc-card-link {
  align-self: flex-start;
  font-weight: 600;
  color: var(--primary);
}
.oc-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
}
.oc-card-link:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------ split sections, info cards */
.oc-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .oc-split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
  .oc-split-flip > :first-child {
    order: 1;
  }
}
.oc-split-media img {
  display: block;
  width: 100%;
  height: auto;
}
.oc-img-round {
  border-radius: 0.6rem;
  box-shadow: 0 6px 20px rgba(10, 31, 68, 0.18);
}
.oc-stack {
  display: grid;
  gap: 1.25rem;
}
.oc-info-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .oc-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .oc-info-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .oc-info-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.oc-info {
  padding: 1.5rem;
  border-radius: 0.6rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  box-shadow: 0 2px 10px rgba(10, 31, 68, 0.06);
}
.oc-info-title {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--foreground);
}
.oc-info-text {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.65;
}
.oc-card-grid-3 {
  margin-top: 0;
}
@media (min-width: 640px) and (max-width: 1023px) {
  .oc-card-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ dedicated-to-dirt band and tiles */
.oc-dirt {
  background: linear-gradient(rgba(10, 31, 68, 0.82), rgba(10, 31, 68, 0.88)), url('/images/hero-home.jpg') center / cover;
  padding-block: 4rem;
  color: #fff;
}
.oc-dirt-intro {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.oc-dirt-intro .oc-news-actions {
  justify-content: center;
}
.oc-tiles {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .oc-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}
.oc-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 20rem;
  overflow: hidden;
  border-radius: 0.6rem;
  isolation: isolate;
}
.oc-tile-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.oc-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 40, 100, 0.92), rgba(0, 40, 100, 0.1) 70%);
}
.oc-tile-body {
  padding: 1.5rem;
  color: #fff;
}
.oc-tile-title {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.oc-tile-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}
.oc-tile-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--oc-lime);
}
.oc-tile-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

/* ------------------------------------------------------------------ leadership */
.oc-people {
  display: grid;
  gap: 2rem 1.25rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .oc-people {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .oc-people {
    grid-template-columns: repeat(5, 1fr);
  }
}
.oc-person {
  text-align: center;
}
.oc-person-img {
  display: block;
  width: min(100%, 11rem);
  aspect-ratio: 1;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 4px solid var(--primary);
}
.oc-person-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--foreground);
}
.oc-person-role {
  margin: 0.2rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------------ rich text on the new pages */
.oc-section .prose {
  color: var(--foreground);
}
.oc-section .prose h3 {
  color: var(--foreground);
}
.oc-section .prose table {
  width: 100%;
}
.oc-section .prose table th,
.oc-section .prose table td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}
.oc-section .prose table th {
  background: var(--primary);
  color: #fff;
}
.oc-section .prose table th * {
  color: #fff !important;
}

.oc-page-heading [data-imported-rules-input-group] {
  background: #fff;
  color: #222;
}
.oc-page-heading [data-imported-rules-input-group] input {
  color: #222;
}

.oc-section .prose table {
  background: var(--card) !important;
  color: var(--foreground);
}
.oc-section .prose table td {
  background: var(--card);
  color: var(--foreground);
}
