:root {
  --bg: #f4fbff;
  --surface: #ffffff;
  --surface-alt: #e9f6ff;
  --text: #10233d;
  --muted: #334e6c;
  --brand: #0058b6;
  --brand-strong: #003e84;
  --accent: #f8a100;
  --success: #1f7a31;
  --focus: #ffbf47;
  --shadow: 0 10px 26px rgba(16, 35, 61, 0.1);
  --radius: 16px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, #e4f4ff 0%, var(--bg) 40%, #ffffff 100%);
}

body.intro-active {
  overflow: hidden;
}

a {
  color: var(--brand-strong);
  font-weight: 700;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand);
}

a:focus-visible,
button:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: #000000;
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 8px;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

header {
  padding: 24px 0 18px;
  background: linear-gradient(120deg, #03356f 0%, #0058b6 52%, #0a7cc9 100%);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-wrap {
  width: 100%;
}

.header-banner-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.header-banner {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 16px;
  border: 3px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 16px 0 4px;
  padding: 0;
  flex-wrap: wrap;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: inline-block;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

nav a.active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-strong);
  border-color: #ffffff;
}

main {
  padding: 28px 0 46px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.hero h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.3;
  margin: 0 0 12px;
}

.hero p {
  font-size: 1.1rem;
  margin: 0 0 16px;
  color: var(--muted);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-strong);
  color: #ffffff;
}

.btn-alt {
  background: #ffffff;
  border-color: var(--brand);
  color: var(--brand-strong);
}

.info-panel {
  background: linear-gradient(160deg, #073f83 0%, #0a65ba 75%);
  color: #ffffff;
}

.info-panel h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.info-list {
  margin: 0;
  padding-left: 20px;
}

.info-list li {
  margin: 8px 0;
}

.section-title {
  margin: 0 0 14px;
  font-size: 1.6rem;
}

.lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.07rem;
}

.page-section {
  margin-top: 24px;
}

/* Homepage */
.home-page .page-section {
  margin-top: 28px;
}

.home-block {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(16, 35, 61, 0.1);
  padding: 28px 28px 28px 32px;
  border: 2px solid #c5dff5;
  border-left: 10px solid var(--accent);
  overflow: hidden;
}

.home-block-alt {
  background: linear-gradient(145deg, #fffbf0 0%, #ffffff 55%, #f0f9ff 100%);
}

.home-block-numbered {
  padding-left: 88px;
}

.home-block-numbered::before {
  content: attr(data-step);
  position: absolute;
  left: 24px;
  top: 28px;
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, var(--brand) 0%, #0a7cc9 100%);
  color: #ffffff;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.15rem;
  border: 3px solid #ffe8b8;
  box-shadow: 0 6px 16px rgba(0, 88, 182, 0.28);
}

.home-hero {
  padding: 40px 36px;
  border-left: 10px solid var(--brand);
  border-top: 6px solid var(--accent);
  background: linear-gradient(135deg, #dceeff 0%, #ffffff 45%, #fff8e6 100%);
  box-shadow: 0 18px 42px rgba(0, 58, 132, 0.14);
}

.home-hero::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(248, 161, 0, 0.22) 0%, transparent 68%);
  pointer-events: none;
}

.home-hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--brand) 0%, #0a7cc9 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 88, 182, 0.3);
}

.home-hero-title {
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.25;
  color: var(--brand-strong);
  max-width: 22ch;
}

.home-hero-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 62ch;
}

.home-block-heading {
  font-size: 1.3rem;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 3px solid #ffd56a;
  color: #7a5200;
}

.home-block-heading-lg {
  font-size: 1.55rem;
}

.home-block.content-block p {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.72;
}

.home-block.content-block p:last-child {
  margin-bottom: 0;
}

.home-counties {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-counties li {
  background: #ffffff;
  border: 2px solid #b8daf5;
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(16, 35, 61, 0.06);
}

.home-about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.home-about-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  border: 2px solid #d6e9fb;
  border-top: 5px solid var(--accent);
  box-shadow: 0 6px 18px rgba(16, 35, 61, 0.07);
}

.home-about-card-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #7a5200;
  padding-bottom: 8px;
  border-bottom: 2px solid #ffe8b8;
}

.home-about-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.home-cta {
  margin-top: 32px;
  box-shadow: 0 16px 36px rgba(7, 63, 131, 0.25);
}

.page-hero-tagline {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--brand-strong);
  margin: 0 0 12px;
}

.subsection-title {
  font-size: 1.25rem;
  margin: 0 0 10px;
  color: var(--brand-strong);
}

.content-block p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1.05rem;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cta-panel {
  background: linear-gradient(160deg, #073f83 0%, #0a65ba 75%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

.cta-panel .subsection-title {
  color: #ffffff;
  margin-top: 0;
}

.cta-panel p {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.cta-panel .btn-primary {
  margin-top: 4px;
}

.steps-list {
  margin: 12px 0 0;
  padding-left: 22px;
  font-size: 1.05rem;
}

.steps-list li {
  margin: 6px 0;
}

/* Services — Get Help panel */
.get-help-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dceeff 0%, #ffffff 40%, #fff8e6 100%);
  border-radius: var(--radius);
  border: 2px solid #c5dff5;
  border-left: 10px solid var(--accent);
  border-top: 5px solid var(--brand);
  box-shadow: 0 16px 36px rgba(16, 35, 61, 0.12);
  padding: 32px 30px;
}

.get-help-panel::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(248, 161, 0, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.get-help-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--brand) 0%, #0a7cc9 100%);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.get-help-title {
  margin: 0 0 12px;
  font-size: 1.75rem;
  color: var(--brand-strong);
  position: relative;
  z-index: 1;
}

.get-help-lead {
  margin: 0 0 24px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 58ch;
  position: relative;
  z-index: 1;
}

.get-help-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

.get-help-step {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  border: 2px solid #d6e9fb;
  border-top: 4px solid var(--accent);
  box-shadow: 0 6px 16px rgba(16, 35, 61, 0.08);
}

.get-help-step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--brand) 0%, #0a7cc9 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  border: 3px solid #ffe8b8;
  box-shadow: 0 4px 12px rgba(0, 88, 182, 0.25);
}

.get-help-step-label {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: #7a5200;
  line-height: 1.35;
}

.get-help-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.get-help-pill {
  display: inline-block;
  background: #ffffff;
  border: 2px solid #ffd56a;
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
}

.get-help-actions {
  position: relative;
  z-index: 1;
}

.get-help-btn-alt {
  background: #ffffff;
}

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resource-list li {
  margin-bottom: 12px;
}

.resource-list li:last-child {
  margin-bottom: 0;
}

.resource-list strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.resource-list a {
  font-size: 1.05rem;
}

.emergency-bar {
  background: #fff4e5;
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.emergency-bar a {
  white-space: nowrap;
}

.team-section {
  margin-top: 0;
}

.team-section + .team-section {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.team-section-board {
  margin-top: 8px;
}

.team-divider {
  display: flex;
  align-items: center;
  margin: 52px 0 36px;
  gap: 0;
}

.team-divider-line {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 15%,
    var(--brand) 50%,
    var(--accent) 85%,
    transparent 100%
  );
}

.team-section-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  color: var(--brand-strong);
  padding-bottom: 10px;
  border-bottom: 3px solid #ffe8b8;
  display: inline-block;
}

.team-grid {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.team-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid #d6e9fb;
  border-top: 5px solid var(--accent);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .team-card:hover {
    box-shadow: 0 14px 32px rgba(16, 35, 61, 0.14);
    transform: translateY(-2px);
  }
}

.team-card-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
}

.team-avatar {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand) 0%, #0a7cc9 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: 3px solid #ffe8b8;
  box-shadow: 0 4px 12px rgba(0, 88, 182, 0.25);
}

.team-details {
  flex: 1;
  min-width: 0;
}

.team-name {
  margin: 0 0 6px;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--brand-strong);
}

.team-role {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

.team-email {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e3f0fc;
}

.team-email a {
  display: inline-block;
  padding: 8px 12px;
  background: var(--surface-alt);
  border-radius: 8px;
  border: 1px solid #d6e9fb;
  font-size: 0.95rem;
  font-weight: 700;
  word-break: break-word;
  text-decoration: none;
}

.team-email a:hover {
  background: #fff4e5;
  border-color: var(--accent);
}

/* Shared accent blocks: community highlights, services, resources */
.highlight,
.service,
.resource-list li {
  padding: 18px;
  background: var(--surface-alt);
  border: none;
  border-left: 8px solid var(--accent);
  border-radius: 12px;
}

.highlight strong,
.service h4,
.resource-list strong {
  color: #4d2f00;
}

.service h4 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.service p {
  margin: 0;
  color: var(--muted);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-box {
  background: #0f2c4a;
  color: #ffffff;
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  align-items: center;
}

.contact-box p {
  margin: 6px 0;
  font-size: 1.05rem;
}

.contact-box a {
  color: #ffffff;
}

.social-block {
  margin-top: 24px;
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.05rem;
  border: 2px solid transparent;
}

.social-link-facebook {
  background: #1877f2;
  color: #ffffff;
}

.social-link-facebook:hover {
  background: #0d65d9;
  color: #ffffff;
}

.pill {
  display: inline-block;
  background: var(--success);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

footer {
  margin-top: 34px;
  background: #001f3f;
  color: #dce8ff;
  padding: 22px 0;
}

footer p {
  margin: 4px 0;
  font-size: 0.97rem;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle at 20% 20%, #2b79d6 0%, #0058b6 40%, #032a58 100%);
  color: #ffffff;
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.intro-content {
  width: min(92%, 760px);
  padding: 20px;
}

.intro-badge {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 16px;
  animation: rise 900ms ease forwards;
}

.intro-title {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.15;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  animation: pulseIn 1100ms ease forwards;
}

.intro-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin: 14px auto 22px;
  max-width: 55ch;
  opacity: 0.95;
  animation: fadeIn 1400ms ease forwards;
}

.intro-progress {
  width: min(100%, 430px);
  height: 10px;
  border-radius: 999px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.26);
  overflow: hidden;
}

.intro-progress > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffe072 0%, #ffc445 65%, #ffad00 100%);
  animation: loadLine 1.8s ease forwards;
}

@keyframes pulseIn {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes rise {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes loadLine {
  0% { width: 0; }
  100% { width: 100%; }
}

/* Monthly Events calendar page */
.events-hero {
  margin-top: 8px;
  padding: 36px 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dceeff 0%, #ffffff 50%, #fff8e6 100%);
  border: 2px solid #c5dff5;
  border-left: 10px solid var(--accent);
  border-top: 5px solid var(--brand);
  box-shadow: 0 16px 36px rgba(16, 35, 61, 0.12);
  position: relative;
  overflow: hidden;
}

.events-hero::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(248, 161, 0, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.events-hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--brand) 0%, #0a7cc9 100%);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.events-hero-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--brand-strong);
  position: relative;
  z-index: 1;
}

.events-hero-lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 58ch;
  position: relative;
  z-index: 1;
}

.events-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}

.events-layout-large {
  grid-template-columns: 1fr;
  gap: 28px;
}

.events-calendar-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 2px solid #d6e9fb;
  border-top: 5px solid var(--brand);
  box-shadow: var(--shadow);
}

.events-calendar-panel-large {
  padding: 28px 32px 32px;
}

.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cal-month-label {
  margin: 0;
  font-size: 1.6rem;
  color: var(--brand-strong);
  text-align: center;
  flex: 1;
}

.cal-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid #c5dff5;
  background: #ffffff;
  color: var(--brand-strong);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0;
}

.cal-nav-btn:hover {
  background: var(--surface-alt);
  border-color: var(--brand);
}

.cal-today-btn {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  background: #fff8e6;
  color: #7a5200;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.cal-today-btn:hover {
  background: #ffe8b8;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.cal-legend-today {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.cal-weekday {
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #7a5200;
  padding: 10px 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cal-day {
  min-height: 120px;
  border: 2px solid #e8f2fc;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cal-day:hover:not(.cal-day-empty) {
  border-color: var(--brand);
  background: var(--surface-alt);
  box-shadow: 0 4px 14px rgba(16, 35, 61, 0.1);
}

.cal-day-empty {
  border: none;
  background: transparent;
  cursor: default;
  pointer-events: none;
}

.cal-day-today {
  border-color: var(--brand);
  background: linear-gradient(180deg, #e9f6ff 0%, #ffffff 100%);
  box-shadow: inset 0 0 0 2px var(--brand);
}

.cal-day-has-event {
  border-color: #ffd56a;
  background: linear-gradient(180deg, #fffbf0 0%, #ffffff 100%);
}

.cal-day-selected {
  border-color: var(--brand-strong);
  background: linear-gradient(145deg, var(--brand) 0%, #0a7cc9 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 88, 182, 0.35);
}

.cal-day-selected .cal-day-num {
  color: #ffffff;
}

.cal-day-num {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1;
  align-self: flex-end;
  text-align: right;
}

.cal-day-events {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-height: 0;
}

.cal-day-event-name {
  display: block;
  width: 100%;
  padding: 5px 7px;
  border-radius: 6px;
  background: #fff4d6;
  border-left: 3px solid var(--accent);
  color: #5c3d00;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-day-selected .cal-day-event-name {
  background: rgba(255, 255, 255, 0.22);
  border-left-color: #ffe8b8;
  color: #ffffff;
}

.events-list-panel {
  background: linear-gradient(160deg, #ffffff 0%, #f0f9ff 100%);
  border-radius: var(--radius);
  padding: 24px;
  border: 2px solid #d6e9fb;
  border-left: 8px solid var(--accent);
  box-shadow: var(--shadow);
  max-height: none;
  overflow-y: visible;
}

.events-list-heading {
  margin: 0 0 16px;
  font-size: 1.25rem;
  color: #7a5200;
  padding-bottom: 10px;
  border-bottom: 3px solid #ffd56a;
}

.cal-event-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cal-list-empty {
  margin: 0;
  padding: 16px;
  background: var(--surface-alt);
  border-radius: 12px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.cal-event-card {
  display: flex;
  gap: 14px;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  border: 2px solid #d6e9fb;
  border-top: 4px solid var(--accent);
  box-shadow: 0 4px 14px rgba(16, 35, 61, 0.06);
}

.cal-event-date-badge {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  background: linear-gradient(145deg, var(--brand) 0%, #0a7cc9 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 6px;
  border: 3px solid #ffe8b8;
  box-shadow: 0 4px 12px rgba(0, 88, 182, 0.22);
}

.cal-event-month {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.cal-event-day {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.cal-event-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--brand-strong);
}

.cal-event-meta {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--muted);
}

.cal-event-desc {
  margin: 8px 0 0;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.55;
}

.events-edit-note {
  margin: 18px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  padding-top: 14px;
  border-top: 2px solid #e3f0fc;
}

@media (max-width: 930px) {
  .hero,
  .grid-2,
  .grid-3,
  .highlights,
  .home-about-grid,
  .get-help-steps,
  .events-layout,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .cal-day {
    min-height: 88px;
    padding: 6px;
  }

  .cal-day-event-name {
    font-size: 0.72rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .events-calendar-panel-large {
    padding: 20px 16px;
  }

  .card,
  .service,
  .highlight {
    padding: 20px;
  }

  .home-block-numbered {
    padding-left: 28px;
    padding-top: 72px;
  }

  .home-block-numbered::before {
    left: 50%;
    transform: translateX(-50%);
    top: 18px;
  }

  .home-hero {
    padding: 28px 22px;
  }

  .home-hero-title {
    max-width: none;
  }

  .team-card-inner {
    padding: 18px;
  }

  .team-divider {
    margin: 40px 0 28px;
  }
}
