/*
 * Components
 * ==========
 * ICA Sports–inspired layout redesign.
 * Dramatic proportions, bold sections, athletic confidence.
 * SSC brand colours (green + gold) throughout.
 *
 * Section index:
 *   1.  Layout container
 *   2.  Site header & navigation
 *   3.  Page banner
 *   4.  Site footer
 *   5.  Buttons
 *   6.  Section chrome (labels, headings, dividers)
 *   7.  Card grid
 *   8.  Card base
 *   9.  Match card
 *   10. Sponsor card
 *   11. Tables (ssc-table)
 *   12. Result badges
 *   13. Fixtures tabs
 *   14. Team profile
 *   15. Event layout
 *   16. Match meta list
 *   17. Entry content
 *   18. 404
 *   19. Post navigation
 *   20. Tags
 *   21. No-content placeholder
 *   22. Gutenberg block overrides
 */


/* =============================================================================
   1. Layout container
   ============================================================================= */

.container {
  width: 100%;
  max-width: var(--ssc-container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.site-content {
  min-height: 60vh;
}


/* =============================================================================
   2. Site header & navigation
   ============================================================================= */

.site-header {
  background: #0a0a0a;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
}

/* Gold accent bar along the very top */
.site-header::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--ssc-gold) 0%, var(--ssc-gold-light) 50%, var(--ssc-gold) 100%);
}

.site-header__inner {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  min-height: 68px;
}

/* Branding */
.site-header__brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-block: 0.4rem;
  padding-right: 1.5rem;
  margin-right: 0.5rem;
}

.site-header .custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .custom-logo {
  height: 44px;
  width: auto;
  display: block;
}

.site-header__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.site-header__brand-text:hover { text-decoration: none; }

.site-header__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ssc-white);
  line-height: 1.05;
  transition: color 0.2s;
}

.site-header__brand-text:hover .site-header__name {
  color: var(--ssc-gold);
}

.site-header__tagline {
  font-size: 0.58rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
}

/* Primary nav */
.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: stretch;
}

.primary-nav__menu,
.primary-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
}

.primary-nav__menu li,
.primary-nav__menu li.current-menu-item,
.primary-nav__menu li.current-page-ancestor,
.primary-nav__menu li.menu-item-has-children {
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  vertical-align: unset !important;
}

.primary-nav__menu > li > a {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: rgba(255,255,255,.8);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  position: relative;
}

/* Gold underline indicator (non-dropdown items only) */
.primary-nav__menu > li:not(.menu-item-has-children) > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ssc-gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.primary-nav__menu > li > a:hover,
.primary-nav__menu > li > a:focus-visible {
  color: var(--ssc-gold);
  background: rgba(255,255,255,.07);
  text-decoration: none;
}

.primary-nav__menu > li:not(.menu-item-has-children) > a:hover::after,
.primary-nav__menu > li:not(.menu-item-has-children) > a:focus-visible::after,
.primary-nav__menu .current-menu-item:not(.menu-item-has-children) > a::after,
.primary-nav__menu .current-page-ancestor:not(.menu-item-has-children) > a::after {
  transform: scaleX(1);
}

/* Chevron for dropdown items */
.primary-nav__menu li.menu-item-has-children > a {
  gap: 0.3rem;
}

.primary-nav__menu li.menu-item-has-children > a::after {
  content: '';
  position: static;
  display: inline-block;
  width:  0.45em;
  height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.15em);
  background: none;
  opacity: 0.6;
  flex-shrink: 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.primary-nav__menu li.menu-item-has-children:hover > a::after,
.primary-nav__menu li.menu-item-has-children:focus-within > a::after {
  transform: rotate(225deg) translateY(0.15em);
  opacity: 1;
}

.primary-nav__menu .current-menu-item > a,
.primary-nav__menu .current-page-ancestor > a {
  color: var(--ssc-gold);
  background: rgba(255,255,255,.07);
}

/* Dropdown sub-menu */
.primary-nav__menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(-6px);
  background: var(--ssc-dark);
  border-top: 3px solid var(--ssc-gold);
  border-radius: 0 0 6px 6px;
  min-width: 210px;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
  flex-direction: column;
  gap: 0;
  z-index: 500;
  padding: 0.4rem 0;
  opacity: 0;
  pointer-events: none;
  display: flex;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.primary-nav__menu .sub-menu li {
  display: block;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.primary-nav__menu .sub-menu li:last-child {
  border-bottom: none;
}

.primary-nav__menu .sub-menu a {
  padding: 0.7rem 1.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.75);
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.15s, background 0.15s;
}

.primary-nav__menu .sub-menu a:hover {
  color: var(--ssc-gold);
  background: rgba(255,255,255,.06);
  text-decoration: none;
}

.primary-nav__menu li:hover > .sub-menu,
.primary-nav__menu li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Mobile hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
  align-self: center;
  border-radius: var(--ssc-radius);
  transition: background var(--ssc-transition);
}

.nav-toggle:hover {
  background: rgba(255,255,255,.1);
}

.nav-toggle__bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ssc-white);
  border-radius: 1px;
  transform-origin: center;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav (≤ 900px) */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ssc-dark);
    border-top: 3px solid var(--ssc-gold);
    padding: 0.5rem 0 1.25rem;
    margin-left: 0;
  }

  .primary-nav.is-open { display: block; }

  .site-header { position: sticky; top: 0; }

  .primary-nav__menu {
    flex-direction: column;
    gap: 0;
    display: flex;
  }

  /* Sub-menu: inline, hidden by default, toggled via JS */
  .primary-nav__menu .sub-menu {
    flex-direction: column;
    gap: 0;
    display: none;           /* hidden until .is-open */
    position: static;
    background: rgba(255,255,255,.04);
    border: none;
    border-left: 3px solid var(--ssc-gold);
    box-shadow: none;
    min-width: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    padding: 0.25rem 0;
    margin: 0 0 0 1.5rem;
  }

  .primary-nav__menu .sub-menu.is-open { display: flex; }

  /* All list items block on mobile, including dropdown parents */
  .primary-nav__menu li,
  .primary-nav__menu li.menu-item-has-children {
    display: block;
    position: static;
  }

  .primary-nav__menu > li > a {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }

  /* Keep chevron on mobile, hide underline */
  .primary-nav__menu > li:not(.menu-item-has-children) > a::after { display: none; }

  .primary-nav__menu .sub-menu a {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
  }
}


/* =============================================================================
   3. Home hero
   ============================================================================= */

/* Hide the flat Gutenberg overlay — we replace it with a gradient */
.hero-cover .wp-block-cover__background {
  display: none !important;
}

/* Radial gradient overlay: lighter centre so the image shows through,
   darker edges to frame the text naturally */
.hero-cover {
  position: relative;
  isolation: isolate; /* own stacking context — WP 6.9.4 cover z-index changes don't escape */
}

.hero-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(10,40,25,0.45) 0%, rgba(10,40,25,0.82) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Homepage logo in About column */
.ssc-logo-img img {
  max-width: 320px !important;
  width: 100% !important;
  height: auto !important;
}

/* Content sits above the gradient.
   WP 6.9.4 injects a high-specificity z-index:1 rule for the inner-container;
   !important is required to override it and keep text above the ::after overlay. */
.hero-cover .wp-block-cover__inner-container {
  position: relative;
  z-index: 2 !important;
}

/* Slow zoom on the background image */
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.hero-cover .wp-block-cover__image-background {
  animation: hero-zoom 14s ease-in-out infinite alternate;
  transform-origin: center center;
}

/* Headline spacing */
.hero-cover .wp-block-cover__inner-container h1 {
  line-height: 1.05 !important;
  letter-spacing: 0.02em !important;
  margin-bottom: 1.1rem !important;
  text-shadow: 0 3px 20px rgba(0,0,0,.55);
}

/* Subtext — brighter and sharper */
.hero-cover .wp-block-cover__inner-container > p:not(.hero-stats) {
  color: rgba(255,255,255,0.92) !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
  margin-bottom: 2rem !important;
  font-size: 1.1rem !important;
}

/* Logo — small watermark above headline */
.hero-cover .wp-block-image {
  opacity: 0.85;
}

/* Buttons — more padding, elevation */
.hero-cover .wp-block-button__link {
  padding: 1rem 2.2rem !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.14em !important;
  font-weight: 700 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.hero-cover .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  box-shadow: 0 6px 20px rgba(0,0,0,.3) !important;
}

.hero-cover .wp-block-button__link:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 20px rgba(212,160,23,.4) !important;
}

/* Outline button — always white */
.hero-cover .wp-block-button.is-style-outline .wp-block-button__link {
  color: #ffffff !important;
  border-color: rgba(255,255,255,.65) !important;
  background: transparent !important;
}

.hero-cover .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255,255,255,.1) !important;
  border-color: rgba(255,255,255,.9) !important;
}

/* Subtle noise/grain overlay for depth */
.hero-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

/* Scroll cue — flows at bottom of hero content */
.hero-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.hero-scroll-cue__text {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,.5);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.5; }
  50%       { transform: translateY(5px) rotate(45deg); opacity: 1; }
}

.hero-scroll-cue__arrow {
  display: block;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255,255,255,.6);
  border-bottom: 2px solid rgba(255,255,255,.6);
  transform: rotate(45deg);
  animation: scroll-bounce 1.6s ease-in-out infinite;
}

/* Stats bar — slightly brighter, frosted strip */
.hero-stats {
  border-top: 1px solid rgba(255,255,255,.2) !important;
  padding-top: 1.5rem !important;
  margin-top: 0 !important;
  color: rgba(255,255,255,0.82) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.18em !important;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

@media (max-width: 640px) {
  .hero-stats {
    font-size: 0.68rem !important;
    letter-spacing: 0.08em !important;
    line-height: 1.9 !important;
  }

  .hero-scroll-cue {
    margin-top: 1rem;
  }
}


/* =============================================================================
   4. Page banner
   ============================================================================= */

.page-banner {
  background: var(--ssc-green);
  padding-block: 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Geometric background treatment */
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0,0,0,.25) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(212,160,23,.12) 0%, transparent 60%);
  pointer-events: none;
}

/* Large decorative number / watermark */
.page-banner .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-banner__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.page-banner__eyebrow-line {
  display: inline-block;
  width: 32px;
  height: 3px;
  background: var(--ssc-gold);
  border-radius: 2px;
  flex-shrink: 0;
}

.page-banner__meta {
  color: var(--ssc-gold);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.page-banner__meta .tag {
  background: rgba(212,160,23,.15);
  border: 1px solid rgba(212,160,23,.4);
  color: var(--ssc-gold);
}

.page-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ssc-white);
  margin: 0;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.page-banner__subtitle {
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  max-width: 520px;
  line-height: 1.6;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-banner--match .match-score {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  color: var(--ssc-gold);
  margin: 0.5rem 0 0;
  line-height: 1;
  letter-spacing: 0.06em;
  text-shadow: 0 4px 24px rgba(0,0,0,.3);
}

.page-content {
  padding-block: 4rem;
}

body.home .page-content {
  padding-block: 0;
}

/* padding controlled by bookshelf-flipbook.css */


/* =============================================================================
   3b. Committee page
   ============================================================================= */

.committee-section {
  padding: 4rem 0 5rem;
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  margin-top: 2.5rem;
}

.committee-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.committee-card__photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: #e8ede9;
  flex-shrink: 0;
  border: 3px solid #d4e8db;
}

.committee-card__img {
  width: 110px !important;
  height: 110px !important;
  object-fit: cover;
  display: block;
}

.committee-card__img--placeholder {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0b5a8;
}

.committee-card__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ssc-green);
  margin: 0 0 0.25rem;
  line-height: 1.35;
}

.committee-card__role {
  font-size: 0.8rem;
  color: #777;
  margin: 0;
  font-style: italic;
}

.committee-empty {
  color: #777;
  font-style: italic;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .committee-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .committee-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}


/* =============================================================================
   3c. Constitution page
   ============================================================================= */

.constitution-layout {
  padding: 3.5rem 0 5rem;
}

.constitution-layout__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

/* ---- Sidebar TOC ---- */
.constitution-toc {
  position: sticky;
  top: 2rem;
  background: #f8f9f4;
  border-left: 3px solid var(--ssc-green);
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.25rem 1.25rem 1rem;
}

.constitution-toc__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ssc-green);
  margin: 0 0 0.75rem;
}

.constitution-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.constitution-toc__item {
  margin: 0;
}

.constitution-toc__item a {
  display: flex;
  gap: 0.4rem;
  padding: 0.3rem 0;
  font-size: 0.78rem;
  color: #444;
  text-decoration: none;
  line-height: 1.3;
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: color 0.15s;
}

.constitution-toc__item a:hover {
  color: var(--ssc-green);
}

.constitution-toc__num {
  color: var(--ssc-green);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 1.4rem;
}

/* ---- Main body ---- */
.constitution-body .constitution-section-heading {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ssc-green);
  text-transform: uppercase;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e2ece5;
  scroll-margin-top: 4rem;
}

.constitution-body .constitution-section-heading:first-child {
  margin-top: 0;
}

.constitution-body .constitution-clause {
  margin: 0.5rem 0;
  padding-left: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  border-left: 2px solid transparent;
}

.constitution-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  margin: 0.4rem 0;
}

/* ---- Responsive ---- */
@media (max-width: 780px) {
  .constitution-layout__inner {
    grid-template-columns: 1fr;
  }
  .constitution-toc {
    position: static;
  }
}


/* =============================================================================
   4. Site footer
   ============================================================================= */

.site-footer {
  background: var(--ssc-dark);
  position: relative;
  margin-top: auto;
}

/* Gold top band */
.site-footer::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--ssc-gold) 0%, var(--ssc-gold-light) 50%, var(--ssc-gold) 100%);
}

.site-footer__inner {
  padding-block: 4rem 2rem;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem 4rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Brand column */
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  line-height: 1.1;
}

.site-footer__name a {
  color: var(--ssc-white);
  text-decoration: none;
}

.site-footer__name a:hover {
  color: var(--ssc-gold);
  text-decoration: none;
}

.site-footer__tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,.38);
  margin: 0 0 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  max-width: 260px;
}

/* Footer nav columns */
.footer-col__heading {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ssc-gold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212,160,23,.25);
}

.footer-nav__menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav__menu a {
  color: rgba(255,255,255,.5);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--ssc-transition);
  letter-spacing: 0.02em;
}

.footer-nav__menu a:hover {
  color: var(--ssc-gold);
  text-decoration: none;
}

.site-footer__copy {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,.25);
  letter-spacing: 0.05em;
}

.site-footer__copy a {
  color: rgba(255,255,255,.35);
  text-decoration: none;
}

.site-footer__copy a:hover {
  color: var(--ssc-gold);
  text-decoration: none;
}

@media (max-width: 768px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 500px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }
}


/* =============================================================================
   5. Buttons
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: var(--ssc-radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s, box-shadow 0.22s, transform 0.15s;
  border: 2px solid transparent;
  line-height: 1;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ssc-gold);
  color: #0d1a0d;
  border-color: var(--ssc-gold);
}

.btn--primary:hover {
  background: var(--ssc-gold-light);
  border-color: var(--ssc-gold-light);
  color: #0d1a0d;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(212,160,23,.4);
  transform: translateY(-1px);
}

.btn--green {
  background: var(--ssc-green);
  color: var(--ssc-white);
  border-color: var(--ssc-green);
}

.btn--green:hover {
  background: var(--ssc-green-mid);
  border-color: var(--ssc-green-mid);
  color: var(--ssc-white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--ssc-green);
  border-color: var(--ssc-green);
}

.btn--secondary:hover {
  background: var(--ssc-green);
  color: var(--ssc-white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--outline-white {
  background: transparent;
  color: var(--ssc-white);
  border-color: rgba(255,255,255,.5);
}

.btn--outline-white:hover {
  background: var(--ssc-white);
  border-color: var(--ssc-white);
  color: var(--ssc-green);
  text-decoration: none;
}

/* Gutenberg button blocks */
.wp-block-button__link,
.wp-element-button {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  border-radius: var(--ssc-radius) !important;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.15s !important;
}

.wp-block-button__link:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.2) !important;
  transform: translateY(-1px) !important;
}


/* =============================================================================
   6. Section chrome — labels, headings, dividers
   ============================================================================= */

/* Overline label above section title */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ssc-gold);
  margin-bottom: 0.6rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 3px;
  background: var(--ssc-gold);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Section heading — Anton, big, with optional gold overline */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ssc-green);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-top: 0;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--ssc-gold);
  display: inline-block;
}

/* Dark section backgrounds (used on Gutenberg groups / archive pages) */
.section--dark {
  background: var(--ssc-green);
  color: var(--ssc-white);
  padding-block: 5rem;
}

.section--dark .section-heading {
  color: var(--ssc-white);
}

.section--charcoal {
  background: var(--ssc-dark);
  color: var(--ssc-white);
  padding-block: 5rem;
}

.section--off-white {
  background: var(--ssc-off-white);
  padding-block: 5rem;
}

/* Gold accent divider */
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--ssc-gold);
  border: none;
  border-radius: 2px;
  margin: 0 0 2rem;
}


/* =============================================================================
   7. Card grid
   ============================================================================= */

.card-grid {
  display: grid;
  gap: 2rem;
}

.card-grid--2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

@media (max-width: 480px) {
  .card-grid--2,
  .card-grid--3,
  .card-grid--4 { grid-template-columns: 1fr; }
}


/* =============================================================================
   8. Card base
   ============================================================================= */

.card {
  background: var(--ssc-white);
  border-radius: var(--ssc-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border: none;
}

.card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.16);
  transform: translateY(-4px);
}

.card__image-link {
  display: block;
  overflow: hidden;
  position: relative;
}

/* Gold overlay stripe on hover */
.card__image-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ssc-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.card:hover .card__image-link::after {
  transform: scaleX(1);
}

.card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.card:hover .card__image {
  transform: scale(1.06);
}

.card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__label {
  font-size: 0.65rem;
  color: var(--ssc-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
}

.card__date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ssc-muted);
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
}

.card__title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  color: var(--ssc-text);
}

.card__title a {
  color: var(--ssc-text);
  text-decoration: none;
}

.card__title a:hover {
  color: var(--ssc-green);
  text-decoration: none;
}

.card__excerpt {
  font-size: 0.875rem;
  color: var(--ssc-muted);
  flex: 1;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.card__meta {
  font-size: 0.825rem;
  color: var(--ssc-muted);
  margin-bottom: 0.5rem;
}

.card__link {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ssc-green);
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color var(--ssc-transition), gap var(--ssc-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card__link::after {
  content: '→';
  transition: transform 0.2s;
}

.card__link:hover {
  color: var(--ssc-gold);
  text-decoration: none;
}

.card__link:hover::after {
  transform: translateX(3px);
}


/* =============================================================================
   9. Match card
   ============================================================================= */

.match-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--ssc-white);
  border-left: 5px solid var(--ssc-green);
  border-radius: 0 var(--ssc-radius-lg) var(--ssc-radius-lg) 0;
  padding: 1.1rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.match-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateX(4px);
}

.match-card.result--win   { border-left-color: #16a34a; }
.match-card.result--loss  { border-left-color: #dc2626; }
.match-card.result--draw  { border-left-color: #d97706; }

.match-card__date {
  text-align: center;
  min-width: 72px;
}

.match-card__day  {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ssc-green);
  display: block;
  line-height: 1.2;
}

.match-card__time { font-size: 0.72rem; color: var(--ssc-muted); display: block; margin-top: 2px; }

.match-card__info { flex: 1; }

.match-card__team {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ssc-muted);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.match-card__opponent {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--ssc-text);
}

.match-card__ha {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--ssc-off-white);
  border: 1px solid var(--ssc-border);
  padding: 1px 6px;
  border-radius: 2px;
  margin-right: 0.35rem;
  letter-spacing: 0.06em;
}

.match-card__venue {
  font-size: 0.78rem;
  color: var(--ssc-muted);
}

.match-card__score {
  text-align: right;
  min-width: 64px;
}

.match-card__scoreline {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ssc-green);
  display: block;
  letter-spacing: 0.06em;
  line-height: 1;
}


/* =============================================================================
   10. Sponsor card
   ============================================================================= */

.sponsor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--ssc-white);
  border: 1px solid var(--ssc-border);
  border-radius: var(--ssc-radius-lg);
  min-height: 100px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: box-shadow 0.2s, transform 0.2s;
}

.sponsor-card:hover {
  box-shadow: var(--ssc-shadow);
  transform: translateY(-2px);
}

.sponsor-card__logo {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter var(--ssc-transition);
}

.sponsor-card:hover .sponsor-card__logo { filter: grayscale(0%); }

.sponsor-card__name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ssc-muted);
}


/* =============================================================================
   11. Tables
   ============================================================================= */

.ssc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  border-radius: var(--ssc-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.ssc-table thead {
  background: var(--ssc-green);
  color: var(--ssc-white);
}

.ssc-table thead th {
  padding: 1rem 1.1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.ssc-table tbody tr {
  border-bottom: 1px solid var(--ssc-border);
  transition: background var(--ssc-transition);
  background: var(--ssc-white);
}

.ssc-table tbody tr:hover { background: #f7f9f7; }

.ssc-table tbody tr:last-child { border-bottom: none; }

.ssc-table td {
  padding: 0.85rem 1.1rem;
  vertical-align: middle;
}

.ssc-table td small {
  display: block;
  font-size: 0.72rem;
  color: var(--ssc-muted);
  margin-top: 2px;
}

.ssc-table .score {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  color: var(--ssc-green);
  letter-spacing: 0.06em;
}

tr.result--win   { background: rgba(22,163,74,.05) !important; }
tr.result--loss  { background: rgba(220,38,38,.05) !important; }
tr.result--draw  { background: rgba(217,119,6,.05) !important; }

@media (max-width: 700px) {
  .ssc-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 0; box-shadow: none; }
}


/* =============================================================================
   12. Result badges
   ============================================================================= */

.result-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.result-badge--win   { background: #dcfce7; color: #166534; }
.result-badge--loss  { background: #fee2e2; color: #991b1b; }
.result-badge--draw  { background: #fef3c7; color: #92400e; }

.result-badge--lg { padding: 5px 14px; font-size: 0.825rem; }


/* =============================================================================
   13. Fixtures tabs
   ============================================================================= */

.fixtures-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--ssc-border);
}

.fixtures-tabs__btn {
  background: none;
  border: none;
  padding: 1rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ssc-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--ssc-transition), border-color var(--ssc-transition);
}

.fixtures-tabs__btn:hover { color: var(--ssc-green); }

.fixtures-tabs__btn.is-active {
  color: var(--ssc-green);
  border-bottom-color: var(--ssc-gold);
}

.fixtures-panel.is-hidden { display: none; }


/* =============================================================================
   14. Team profile
   ============================================================================= */

.team-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.team-profile__photo {
  width: 100%;
  border-radius: var(--ssc-radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--ssc-shadow-lg);
}

.team-profile__details {
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.team-profile__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--ssc-border);
}

.team-profile__row dt {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--ssc-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.team-profile__bio { grid-column: 1 / -1; }
.team-fixtures { margin-top: 2.5rem; }
.team-fixtures h2 { margin-bottom: 1.25rem; }

@media (max-width: 700px) {
  .team-profile { grid-template-columns: 1fr; }
}


/* =============================================================================
   15. Event layout
   ============================================================================= */

.event-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  margin-bottom: 2rem;
}

.event-details-box {
  background: var(--ssc-green);
  color: var(--ssc-white);
  border-radius: var(--ssc-radius-lg);
  padding: 2rem;
  position: sticky;
  top: 88px;
  box-shadow: var(--ssc-shadow-lg);
}

.event-details-box__title {
  font-family: var(--font-display);
  color: var(--ssc-gold);
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.event-details-box dl {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
}

.event-details-box dt {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.45);
  margin-top: 0.75rem;
  font-weight: 700;
}

.event-details-box dd {
  color: var(--ssc-white);
  font-weight: 600;
}

@media (max-width: 700px) {
  .event-layout {
    grid-template-columns: 1fr;
  }

  .event-details-box {
    position: static;
    order: -1;
  }
}


/* =============================================================================
   16. Match meta list
   ============================================================================= */

.match-meta-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.25rem;
  background: var(--ssc-white);
  border: 1px solid var(--ssc-border);
  border-radius: var(--ssc-radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.match-meta-list dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ssc-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ssc-border);
}

.match-meta-list dd {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ssc-border);
  font-weight: 500;
}

@media (max-width: 500px) {
  .match-meta-list { grid-template-columns: 1fr; }
}


/* =============================================================================
   17. Entry content
   ============================================================================= */

/* Prose-width for article bodies */
.entry-content { max-width: var(--ssc-content); }
/* Full container width — matches homepage sections */
.entry-content--wide { max-width: 100%; }

.entry__thumbnail {
  margin-bottom: 2.5rem;
  border-radius: var(--ssc-radius-lg);
  overflow: hidden;
  box-shadow: var(--ssc-shadow-lg);
}

.entry__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.entry__footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ssc-border);
  font-size: 0.875rem;
  color: var(--ssc-muted);
}


/* =============================================================================
   18. 404
   ============================================================================= */

.ssc-404__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 400;
  color: var(--ssc-green);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.1;
  letter-spacing: 0.05em;
}


/* =============================================================================
   19. Post navigation
   ============================================================================= */

.post-nav .nav-links {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid var(--ssc-border);
}

.post-nav a {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ssc-green);
}

.post-nav a:hover { color: var(--ssc-gold); text-decoration: none; }


/* =============================================================================
   20. Tags / inline badges
   ============================================================================= */

.tag {
  display: inline-block;
  background: var(--ssc-green);
  color: var(--ssc-white);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 2px;
  text-decoration: none;
  transition: background var(--ssc-transition);
}

.tag:hover {
  background: var(--ssc-gold);
  color: var(--ssc-dark);
  text-decoration: none;
}

.tag--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.8);
}


/* =============================================================================
   21. No-content placeholder
   ============================================================================= */

.no-content {
  background: var(--ssc-white);
  border: 2px dashed var(--ssc-border);
  border-radius: var(--ssc-radius-lg);
  padding: 5rem 2rem;
  text-align: center;
  color: var(--ssc-muted);
}


/* =============================================================================
   22. Card image placeholder
   ============================================================================= */

.card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ssc-green) 0%, var(--ssc-green-mid) 100%);
  height: 220px;
  color: rgba(255,255,255,.35);
}

.card__image--placeholder svg {
  width: 56px;
  height: 56px;
}

/* Archive section spacing between grouped sections */
.archive-section {
  margin-bottom: 4rem;
}

.archive-section:last-child {
  margin-bottom: 0;
}


/* =============================================================================
   23. Gutenberg block overrides
   ============================================================================= */

/*
 * Full-width Gutenberg group blocks with a background colour get
 * bold, sectioned visual treatment — matching ICA Sports style.
 */

/* Stretch blocks to full viewport width inside page-content */
.page-content .wp-block-group.alignfull,
.page-content .wp-block-cover.alignfull,
.page-content .wp-block-group[class*="has-background"] {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-inline: clamp(1rem, 5vw, 3rem);
}

/* Inner content max-width restraint */
.page-content .wp-block-group.alignfull > .wp-block-group__inner-container,
.page-content .wp-block-group[class*="has-background"] > .wp-block-group__inner-container {
  max-width: var(--ssc-container);
  margin-inline: auto;
  padding-block: 4.5rem;
}

/* Dark green section */
.page-content .wp-block-group.has-ssc-green-background-color,
.page-content .wp-block-group.has-background[style*="background-color:#1a4731"],
.page-content .wp-block-group.has-background[style*="background-color: #1a4731"] {
  background: var(--ssc-green) !important;
  color: var(--ssc-white);
}

/* Dark section headings */
.page-content .wp-block-group.has-ssc-green-background-color h1,
.page-content .wp-block-group.has-ssc-green-background-color h2,
.page-content .wp-block-group.has-ssc-green-background-color h3,
.page-content .wp-block-group.has-ssc-green-background-color p {
  color: var(--ssc-white);
}

/* Off-white section */
.page-content .wp-block-group.has-ssc-off-white-background-color,
.page-content .wp-block-group.has-background[style*="background-color:#f5f5f5"],
.page-content .wp-block-group.has-background[style*="background-color: #f5f5f5"] {
  background: var(--ssc-off-white) !important;
}

/* H2 headings inside blocks — bigger and bolder */
.entry-content h2,
.page-content .wp-block-group h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

/* Paragraph lead / intro text */
.page-content .wp-block-group p:first-of-type,
.entry-content > p:first-child {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* WordPress column blocks — column gap between side-by-side cards + row gap between stacked rows */
.wp-block-columns {
  gap: 1.75rem 2.5rem !important;
  margin-bottom: 2rem;
}

/* Row gap when columns stack at mobile (WP sets flex-basis:100% ≤781px) */
@media (max-width: 781px) {
  .wp-block-columns > .wp-block-column {
    margin-bottom: 1.75rem !important;
  }
  .wp-block-columns > .wp-block-column:last-child {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 600px) {
  .wp-block-columns.is-not-stacked-on-mobile { flex-wrap: wrap !important; }
}

/* Separator block */
.wp-block-separator {
  border-color: var(--ssc-gold) !important;
  border-top-width: 3px !important;
  max-width: 80px;
  margin-block: 2rem !important;
}

/* Image block */
.wp-block-image img {
  border-radius: var(--ssc-radius-lg);
}

/* Quote block */
.wp-block-quote {
  border-left: 4px solid var(--ssc-gold) !important;
  padding-left: 1.75rem !important;
  font-style: italic;
  font-size: 1.1rem;
}




/* =============================================================================
   24. Contact Form 7
   ============================================================================= */

/* Two-column contact layout — tighten the columns block on this page */
.page-id-9 .wp-block-columns {
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.page-id-9 .wp-block-column:first-child {
  border-right: 1px solid var(--ssc-border);
  padding-right: 2.5rem;
}

/* Contact info details */
.page-id-9 .wp-block-column:first-child p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ssc-text);
}

.page-id-9 .wp-block-column:first-child a {
  color: var(--ssc-green);
  font-weight: 600;
  text-decoration: none;
}

.page-id-9 .wp-block-column:first-child a:hover {
  color: var(--ssc-gold);
}

/* ── CF7 wrapper ── */
.wpcf7 {
  margin-top: 0.5rem;
}

.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Each field row */
.wpcf7-form p {
  margin: 0 0 1.1rem !important;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Labels */
.wpcf7-form label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ssc-green);
}

/* Text / email / tel inputs */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 0.7rem 0.95rem;
  background: var(--ssc-off-white);
  border: 1.5px solid var(--ssc-border);
  border-radius: var(--ssc-radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ssc-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
  -webkit-appearance: none;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  background: #fff;
  border-color: var(--ssc-green);
  box-shadow: 0 0 0 3px rgba(26, 71, 49, 0.1);
}

/* Textarea */
.wpcf7-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

/* Validation error state */
.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.wpcf7-not-valid-tip {
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 0.25rem;
}

/* Response messages */
.wpcf7-response-output {
  padding: 0.85rem 1.1rem !important;
  border-radius: var(--ssc-radius) !important;
  font-size: 0.875rem !important;
  margin: 0.5rem 0 0 !important;
  border: none !important;
}

.wpcf7-form.sent .wpcf7-response-output {
  background: rgba(26, 71, 49, 0.08);
  color: var(--ssc-green);
  border-left: 3px solid var(--ssc-green) !important;
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output {
  background: rgba(192, 57, 43, 0.07);
  color: #c0392b;
  border-left: 3px solid #c0392b !important;
}

/* Submit button */
.wpcf7-form input[type="submit"],
.wpcf7-submit {
  align-self: flex-start;
  padding: 0.75rem 2rem;
  background: var(--ssc-green);
  color: #fff;
  border: none;
  border-radius: var(--ssc-radius);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(26,71,49,0.25);
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover {
  background: var(--ssc-green-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,71,49,0.3);
}

.wpcf7-form input[type="submit"]:active,
.wpcf7-submit:active {
  transform: translateY(0);
}

/* Spinner */
.wpcf7-spinner {
  margin-left: 0.75rem;
  vertical-align: middle;
}

@media (max-width: 700px) {
  .page-id-9 .wp-block-column:first-child {
    border-right: none;
    border-bottom: 1px solid var(--ssc-border);
    padding-right: 0;
    padding-bottom: 2rem;
    margin-bottom: 0.5rem;
  }
}

/* Map embed */
.ssc-map-embed {
  margin-top: 2.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--ssc-shadow-sm);
  border: 1px solid var(--ssc-border);
}

.ssc-map-embed iframe {
  display: block !important;
  width: 100% !important;
  height: 600px !important;
}
