:root {
  --sc-ink: #111827;
  --sc-muted: #64748b;
  --sc-soft: #e2e8f0;
  --sc-cloud: #f8fafc;
  --sc-surface: #ffffff;
  --sc-blue: #2563eb;
  --sc-blue-dark: #1d4ed8;
  --sc-green: #059669;
  --sc-orange: #ea580c;
  --sc-radius: 22px;
  --sc-radius-sm: 14px;
  --sc-shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
  --sc-shadow-sm: 0 10px 35px rgba(15, 23, 42, 0.08);
  --sc-container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sc-cloud);
  color: var(--sc-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--sc-blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--sc-blue-dark);
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.55);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--sc-container));
  margin-inline: auto;
}

.narrow-content {
  width: min(100% - 2rem, 820px);
  margin-inline: auto;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  left: 1rem;
  top: 1rem;
  width: auto;
  z-index: 9999;
  background: var(--sc-surface);
  color: var(--sc-ink);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  box-shadow: var(--sc-shadow-sm);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.site-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-branding {
  min-width: max-content;
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--sc-ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.site-mark {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  color: var(--sc-surface);
  background: linear-gradient(135deg, var(--sc-blue), var(--sc-green));
  border-radius: 0.75rem;
  font-weight: 900;
}

.custom-logo-link img {
  display: block;
  max-height: 52px;
  width: auto;
}

.primary-navigation .menu,
.footer-bottom .menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
}

.primary-navigation a {
  display: inline-flex;
  color: var(--sc-ink);
  text-decoration: none;
  font-weight: 650;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
}

.primary-navigation a:hover,
.primary-navigation a:focus {
  background: #eff6ff;
  color: var(--sc-blue-dark);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--sc-ink);
  color: var(--sc-surface);
  text-decoration: none;
  font-weight: 750;
}

.header-cta:hover,
.header-cta:focus {
  background: var(--sc-blue-dark);
  color: var(--sc-surface);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--sc-soft);
  border-radius: 999px;
  background: var(--sc-surface);
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--sc-ink);
  content: "";
}

.menu-toggle-bars::before {
  transform: translateY(-6px);
}

.menu-toggle-bars::after {
  transform: translateY(4px);
}

.home-hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.18), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(5, 150, 105, 0.14), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.home-hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -8rem -10rem auto;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  pointer-events: none;
}

.home-hero {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.page-hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.page-hero.compact {
  padding: clamp(2.7rem, 5vw, 4.7rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--sc-blue);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 850;
}

h1,
h2,
h3,
h4 {
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin-top: 0;
  color: var(--sc-ink);
}

h1 {
  font-size: clamp(2.75rem, 7vw, 5.6rem);
  max-width: 900px;
  margin-bottom: 1.1rem;
}

.page-hero.compact h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: 1.3rem;
}

.hero-copy {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  color: #334155;
  max-width: 720px;
  margin: 0 0 1.8rem;
}

.hero-actions,
.sc-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button,
.wp-block-button__link,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.1rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover,
.wp-block-button__link:hover,
button.button:hover {
  transform: translateY(-1px);
}

.button-primary,
.wp-block-button__link {
  background: var(--sc-blue);
  color: var(--sc-surface);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.button-primary:hover,
.button-primary:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background: var(--sc-blue-dark);
  color: var(--sc-surface);
}

.button-secondary {
  background: var(--sc-surface);
  color: var(--sc-ink);
  border: 1px solid var(--sc-soft);
  box-shadow: var(--sc-shadow-sm);
}

.button-secondary:hover,
.button-secondary:focus {
  color: var(--sc-blue-dark);
  border-color: #bfdbfe;
}

.text-link {
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: " ->";
}

.hero-panel,
.sidebar-card,
.content-card,
.sc-rsvp-panel,
.sc-empty-state,
.sc-directory-form,
.sc-application-form {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--sc-shadow-sm);
  border-radius: var(--sc-radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.hero-panel {
  box-shadow: var(--sc-shadow);
}

.hero-panel h2,
.sidebar-card h2,
.content-card h2,
.sc-rsvp-panel h2,
.sc-empty-state h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.hero-search,
.sc-application-form {
  display: grid;
  gap: 1rem;
}

label span {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 750;
  color: var(--sc-ink);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: var(--sc-surface);
  color: var(--sc-ink);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sc-blue);
  outline: 3px solid rgba(37, 99, 235, 0.16);
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.stats-row > div {
  border-radius: var(--sc-radius-sm);
  background: #f8fafc;
  padding: 1rem;
  border: 1px solid var(--sc-soft);
}

.stats-row strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.stats-row span {
  color: var(--sc-muted);
  font-size: 0.9rem;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.section-muted {
  background: #eef4ff;
}

.section-cta {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: var(--sc-surface);
}

.section-cta h2,
.section-cta p,
.section-cta .eyebrow {
  color: var(--sc-surface);
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.6rem;
}

.section-heading-row h2 {
  margin-bottom: 0;
}

.cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: calc(var(--sc-radius) + 8px);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.08);
}

.cta-card p {
  max-width: 720px;
  margin-bottom: 0;
}

.sc-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.sc-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--sc-radius);
  background: var(--sc-surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--sc-shadow-sm);
}

.card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dbeafe;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.sc-card:hover .card-media img {
  transform: scale(1.035);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card-body h3 {
  margin: 0.85rem 0 0.55rem;
}

.card-body h3 a {
  color: var(--sc-ink);
  text-decoration: none;
}

.card-body h3 a:hover,
.card-body h3 a:focus {
  color: var(--sc-blue-dark);
}

.card-body p {
  color: #475569;
  margin: 0 0 0.9rem;
}

.card-meta-row,
.card-details,
.sc-rsvp-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: var(--sc-muted);
  font-size: 0.92rem;
}

.card-details {
  margin-top: auto;
}

.card-details span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 0.55rem;
  vertical-align: middle;
  background: #cbd5e1;
  border-radius: 50%;
}

.pill,
.sc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: #eff6ff;
  color: var(--sc-blue-dark);
  text-decoration: none;
}

.sc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1.6rem;
  align-items: start;
}

.main-content,
.entry-content {
  min-width: 0;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.8em;
}

.entry-content p,
.entry-content li {
  color: #334155;
}

.featured-media {
  margin: 0 0 1.5rem;
  overflow: hidden;
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow-sm);
}

.featured-media img {
  display: block;
  width: 100%;
}

.detail-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--sc-soft);
}

.detail-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-list dt {
  color: var(--sc-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-list dd {
  margin: 0;
  font-weight: 650;
}

.sidebar-card,
.event-sidebar,
.sc-rsvp-panel {
  position: sticky;
  top: 96px;
}

.event-sidebar {
  display: grid;
  gap: 1rem;
}

.sc-rsvp-counts {
  margin-bottom: 1rem;
}

.sc-rsvp-counts span {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--sc-soft);
}

.sc-alert {
  border-radius: var(--sc-radius-sm);
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.sc-empty-state {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.sc-directory-form {
  margin-bottom: 1.5rem;
}

.sc-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.sc-application-form .sc-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-width-label {
  display: block;
  margin: 1rem 0;
}

.sc-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check-list {
  padding-left: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.75rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sc-green);
  font-weight: 900;
}

.post-list,
.dashboard-list {
  display: grid;
  gap: 1rem;
}

.dashboard-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.post-meta {
  color: var(--sc-muted);
  font-weight: 700;
}

.pagination,
.nav-links {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--sc-soft);
  border-radius: 999px;
  background: var(--sc-surface);
  text-decoration: none;
  font-weight: 750;
}

.page-numbers.current {
  background: var(--sc-blue);
  color: var(--sc-surface);
  border-color: var(--sc-blue);
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.site-footer a {
  color: #dbeafe;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-title {
  color: var(--sc-surface);
}

.footer-brand p {
  max-width: 420px;
}

.footer-widget-title {
  color: var(--sc-surface);
  font-size: 1rem;
  letter-spacing: 0;
}

.footer-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  margin-top: 2rem;
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .menu a {
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .content-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sc-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sc-form-grid,
  .sc-application-form .sc-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-card,
  .event-sidebar,
  .sc-rsvp-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  .primary-navigation {
    display: none;
    width: 100%;
    order: 4;
  }

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

  .primary-navigation .menu {
    display: grid;
    align-items: stretch;
    gap: 0.3rem;
    padding-bottom: 1rem;
  }

  .primary-navigation a {
    border-radius: 14px;
    background: var(--sc-surface);
  }

  .section-heading-row,
  .cta-card,
  .footer-bottom,
  .dashboard-item {
    align-items: start;
    flex-direction: column;
  }

  .stats-row,
  .sc-card-grid,
  .sc-form-grid,
  .sc-application-form .sc-form-grid {
    grid-template-columns: 1fr;
  }

  .home-hero,
  .page-hero,
  .section {
    padding-left: 0;
    padding-right: 0;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 3.6rem);
  }
}
