﻿/*
  GCF Church Website
  This file controls the colors, layout, spacing, and mobile design.
  Search for the color names below if you want to adjust the visual style.
*/

:root {
  --color-white: #FFFFFF;
  --color-background: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-surface-soft: #F5F9FD;

  --color-navy-900: #153E75;
  --color-navy-800: #1B4F91;
  --color-navy-700: #2563A6;
  --color-navy-600: #3478BF;

  --color-sky: #4FA3E3;
  --color-sky-light: #DCEFFD;
  --color-sky-soft: #EEF7FE;
  --color-sky-hover: #2E8ED8;

  --color-heading: #153E75;
  --color-text: #334155;
  --color-text-muted: #64748B;

  --color-border: #DCE6F1;
  --color-border-soft: #EAF2F8;

  --shadow-sm: 0 2px 8px rgba(30, 78, 140, 0.06);
  --shadow-md: 0 10px 28px rgba(30, 78, 140, 0.10);
  --shadow-lg: 0 18px 48px rgba(30, 78, 140, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --color-blue-soft: var(--color-sky-soft);
  --color-blue-light: var(--color-sky-light);
  --color-success: #2F7D5B;
  --color-warning: #2563A6;
  --color-danger: #B54747;
  --cream: var(--color-surface-soft);
  --cream-soft: var(--color-background);
  --green: var(--color-navy-700);
  --green-light: var(--color-sky-soft);
  --blue-gray: var(--color-navy-900);
  --blue-gray-soft: var(--color-text-muted);
  --white: var(--color-white);
  --border: var(--color-border);
  --shadow: var(--shadow-md);
  --shadow-soft: var(--shadow-sm);
  --muted: var(--color-text-muted);
  --radius: var(--radius-md);
  --content-width: 1200px;
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--blue-gray);
  background: var(--cream-soft);
  font-family: "Microsoft YaHei", "Noto Sans SC", "PingFang SC", "Heiti SC", Arial, sans-serif;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 40px, var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  /*width: 44px;
  height: 44px; */
  width: 54px;
  height: 54px;
  color: var(--white);
  background: linear-gradient(135deg, #b88a59, var(--blue-gray));
  border-radius: 50%;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.brand-text {
  display: grid;
  /*line-height: 1.25;*/
  line-height: 1.75;
}

.brand-text strong {
  font-size: 1.1rem;
}

.brand-text span {
  color: var(--blue-gray-soft);
  /*font-size: 0.82rem;*/
  font-size: 1.22rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--blue-gray);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--blue-gray-soft);
  font-size: 0.96rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--blue-gray);
  background: var(--green-light);
}

.language-select-wrap {
  display: inline-flex;
  align-items: center;
}

.language-select {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 34px 8px 12px;
  color: var(--blue-gray);
  background: var(--white);
  font: inherit;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 247, 254, 0.82) 46%, rgba(79, 163, 227, 0.12) 100%),
    radial-gradient(circle at 78% 30%, rgba(79, 163, 227, 0.16), transparent 34%),
    linear-gradient(135deg, var(--cream-soft), var(--cream));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

h3 {
  font-size: 1.22rem;
}

p {
  margin: 0;
}

.hero-copy {
  margin: 22px 0 32px;
  max-width: 620px;
  color: var(--blue-gray-soft);
  font-size: 1.15rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: #7b5739;
}

.button.secondary {
  color: var(--blue-gray);
  background: var(--white);
  border-color: var(--border);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-visual {
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #3e2f2c;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  filter: sepia(0.08) saturate(0.96) brightness(1.06);
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: #f4e7d4;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-header p,
.lead {
  max-width: 720px;
  color: var(--blue-gray-soft);
  font-size: 1.06rem;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.info-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 30px rgba(38, 56, 68, 0.06);
}

.card h3,
.info-panel h3 {
  margin-bottom: 10px;
}

.card p,
.info-panel p,
.card li {
  color: var(--blue-gray-soft);
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--blue-gray);
  background: var(--green-light);
  font-size: 0.82rem;
  font-weight: 700;
}

.meeting-list,
.plain-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meeting-list li,
.plain-list li {
  padding-left: 18px;
  border-left: 3px solid var(--green);
}

.event-card time {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green);
  font-weight: 700;
}

.event-card .button {
  margin-top: 18px;
}

.ministry-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--blue-gray);
  background: var(--green-light);
  font-weight: 700;
}

.page-hero {
  padding: 92px 0 72px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(220, 239, 253, 0.76)),
    linear-gradient(90deg, var(--cream-soft), var(--cream));
}

.page-hero p {
  margin-top: 18px;
  max-width: 1040px;
  color: var(--blue-gray-soft);
  font-size: 1.12rem;
}

.values-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.team-placeholder {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--blue-gray-soft);
  border: 1px dashed var(--green);
  border-radius: var(--radius);
  background: rgba(220, 232, 216, 0.42);
  text-align: center;
}

.event-list {
  display: grid;
  gap: 20px;
}

.event-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 22px;
  align-items: center;
}

.event-date {
  color: var(--green);
  font-weight: 800;
}

.form-note {
  padding: 16px;
  border: 1px solid var(--color-sky);
  border-radius: var(--radius);
  background: rgba(79, 163, 227, 0.12);
  color: var(--blue-gray);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--blue-gray);
  background: var(--white);
  font: inherit;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.site-footer {
  padding: 42px 0;
  color: rgba(255, 250, 242, 0.86);
  background: var(--blue-gray);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer a {
  color: rgba(255, 250, 242, 0.9);
}

.footer-title {
  margin-bottom: 10px;
  color: var(--white);
  font-weight: 800;
}

.copyright {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 250, 242, 0.18);
  color: rgba(255, 250, 242, 0.68);
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    background: var(--cream-soft);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 14px;
  }

  .language-select-wrap {
    margin-left: auto;
  }

  .hero-grid,
  .grid.two,
  .grid.three,
  .grid.four,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    gap: 34px;
    padding: 56px 0;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-visual img {
    min-height: 300px;
  }

  .section-header {
    display: grid;
  }

  .event-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, var(--content-width));
  }

  .brand-text span {
    display: none;
  }

  .nav-wrap {
    gap: 10px;
  }

  .language-select {
    max-width: 128px;
    padding-right: 26px;
    font-size: 0.9rem;
  }

  .section {
    padding: 60px 0;
  }

  .page-hero {
    padding: 66px 0 54px;
  }

  .card,
  .info-panel {
    padding: 20px;
  }

  .button,
  .hero-actions a,
  .button-row a {
    width: 100%;
  }
}

/* Inner page image treatments: each page uses the same photo with a different crop and shape. */
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 46px;
  align-items: center;
}

.page-hero-copy p {
  max-width: 1040px;
}

.page-hero-media {
  margin: 0;
  height: 230px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  background: #3e2f2c;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.1) saturate(0.95) brightness(1.05);
}

.page-hero-about .page-hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
}

.page-hero-about .page-hero-media {
  height: 420px;
  border-radius: var(--radius-lg);
}

.page-hero-about .page-hero-media img {
  object-position: center 56%;
}

.page-hero-ministries .page-hero-media {
  height: 260px;
  border-radius: 8px 56px 8px 56px;
  transform: rotate(-1.5deg);
}

.page-hero-ministries .page-hero-media img {
  object-position: 60% center;
  transform: scale(1.04);
}

.page-hero-events .page-hero-media {
  height: 210px;
  border-radius: 8px;
  border-left: 10px solid rgba(79, 163, 227, 0.48);
}

.page-hero-events .page-hero-media img {
  object-position: 48% 62%;
}

.page-hero-contact .page-hero-media {
  height: 250px;
  border-radius: 56px 8px 56px 8px;
}

.page-hero-contact .page-hero-media img {
  object-position: 72% center;
}

@media (max-width: 920px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-hero-media,
  .page-hero-ministries .page-hero-media,
  .page-hero-events .page-hero-media,
  .page-hero-contact .page-hero-media {
    height: 230px;
    transform: none;
  }
}

@media (max-width: 560px) {
  .page-hero-media,
  .page-hero-ministries .page-hero-media,
  .page-hero-events .page-hero-media,
  .page-hero-contact .page-hero-media {
    height: 190px;
  }
}
/* Refined homepage hero: quiet editorial layout inspired by premium workshop sites. */
.hero {
  min-height: 720px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 253, 0.92) 42%, rgba(220, 239, 253, 0.72) 100%),
    linear-gradient(135deg, #fff6ea, #f1dcc0);
}

.hero-grid {
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(36px, 6vw, 88px);
  padding: 86px 0;
}

.hero .eyebrow {
  color: #8d6a44;
  text-transform: none;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(2.7rem, 5.7vw, 5.4rem);
  font-weight: 800;
}

.hero-copy {
  max-width: 520px;
  color: #5f5c56;
}

.hero-visual {
  min-height: 560px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(120, 86, 54, 0.18);
  box-shadow: 0 28px 70px rgba(92, 61, 38, 0.18);
  overflow: hidden;
  background: #3e2f2c;
}

.hero-visual img {
  min-height: 560px;
  object-position: center 58%;
  filter: sepia(0.06) saturate(0.92) brightness(1.08) contrast(0.96);
  transform: scale(1.015);
}

.hero-visual figcaption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 250, 242, 0.92);
  background: rgba(38, 31, 27, 0.52);
  font-size: 0.82rem;
  letter-spacing: 0;
  backdrop-filter: blur(8px);
}

.page-hero-simple {
  max-width: 860px;
}

.page-hero-media {
  display: none;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 56px 0;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }

  .hero-visual,
  .hero-visual img {
    min-height: 300px;
  }

  .hero-visual figcaption {
    display: none;
  }
}
/* Typography and navigation refinement. */
body {
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.brand,
.button,
.tag,
.ministry-icon,
.event-date,
.footer-title,
.form-field label {
  font-family: "Microsoft YaHei", "Noto Sans SC", "PingFang SC", "Heiti SC", Arial, sans-serif;
}

h1,
h2,
h3 {
  font-weight: 700;
}

.hero h1 {
  font-weight: 700;
}

.card p,
.info-panel p,
.card li,
.page-hero p,
.hero-copy,
.lead,
.site-nav a,
.language-select {
  font-weight: 400;
}

.nav-wrap {
  justify-content: flex-start;
}

.site-nav {
  margin-left: auto;
  margin-right: 16px;
  gap: 8px;
}

.language-select-wrap {
  flex: 0 0 auto;
}

@media (max-width: 920px) {
  .site-nav {
    margin-left: 0;
    margin-right: 0;
  }
}
/* Member feature styles. Added only for login, dashboard, Google callback, and admin pages. */
.member-nav-link {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.member-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}

.member-panel {
  display: grid;
  gap: 18px;
}

.member-help-text {
  color: var(--blue-gray-soft);
}

.member-form {
  display: grid;
  gap: 16px;
}

.member-field input,
.member-field textarea,
.member-field select {
  width: 100%;
}

.member-button:disabled,
.member-small-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.member-message {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream-soft);
  color: var(--blue-gray);
}

.member-message[hidden] {
  display: none;
}

.member-message-info {
  border-color: #b9c7d2;
  background: #eef5f8;
}

.member-message-success {
  border-color: var(--color-sky);
  background: var(--color-sky-soft);
}

.member-message-warning {
  border-color: var(--color-sky);
  background: rgba(79, 163, 227, 0.12);
}

.member-message-error {
  border-color: #b86d5f;
  background: #fff0ec;
}

.member-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.member-text-button {
  border: 0;
  padding: 0;
  color: var(--blue-gray);
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.member-dashboard-grid,
.member-profile-grid {
  margin-top: 24px;
}

.member-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.member-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.member-table th,
.member-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.member-table th {
  background: var(--cream);
  color: var(--blue-gray);
  font-weight: 700;
}

.member-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-small-button {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  color: var(--blue-gray);
  background: var(--cream-soft);
  font: inherit;
  cursor: pointer;
}

@media (max-width: 560px) {
  .member-link-row {
    display: grid;
  }
}

/* Google OAuth member refinements. These styles are appended to avoid changing the public site design. */
.member-google-button {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.member-profile-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.member-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 24px rgba(33, 43, 54, 0.16);
  background: var(--cream);
}

.member-pending-panel {
  margin-top: 1.25rem;
}

.member-card h2 {
  font-size: 1.25rem;
}

@media (max-width: 560px) {
  .member-profile-row {
    align-items: flex-start;
  }

  .member-avatar {
    width: 56px;
    height: 56px;
  }
}


/* Email password member page refinements. Appended only for new member forms. */
.member-password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.member-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: var(--muted);
}

.member-divider::before,
.member-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(63, 74, 89, 0.16);
}

.member-divider span {
  font-size: 0.9rem;
}

/* Homepage event information redesign. */
.home-announcement-grid,
.home-events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-announcement-card,
.home-announcement-empty,
.home-events-card,
.home-calendar-placeholder,
.home-map-placeholder {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.home-announcement-card,
.home-announcement-empty {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.home-announcement-card time {
  color: var(--blue-gray-soft);
  font-size: 0.95rem;
}

.home-announcement-card.is-urgent {
  border-color: var(--color-sky);
  background: rgba(79, 163, 227, 0.10);
}



.home-events-meta li,
.home-events-timeline-item p {
  margin: 0;
}

.home-events-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 150px 1fr;
}

.home-events-image {
  display: grid;
  place-items: center;
  min-height: 150px;
  background: linear-gradient(135deg, rgba(79, 163, 227, 0.12), rgba(79, 163, 227, 0.12));
  color: var(--blue-gray);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-events-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-events-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.home-events-date {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  gap: 8px;
  align-items: baseline;
  color: var(--blue-gray);
}

.home-events-date strong {
  font-size: 2rem;
  line-height: 1;
}

.home-events-meta {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.home-events-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.home-outreach-card {
  border-color: rgba(79, 163, 227, 0.42);
}

.home-outreach-card .home-events-image {
  background: linear-gradient(135deg, rgba(79, 163, 227, 0.18), rgba(79, 163, 227, 0.12));
}

.home-events-timeline {
  display: grid;
  gap: 12px;
}

.home-events-timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.home-events-timeline-item > div:first-child {
  display: grid;
  gap: 4px;
}

.home-events-timeline-item > div:first-child span,
.home-events-time {
  color: var(--blue-gray-soft);
}

.home-calendar-frame,
.home-map-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.home-calendar-frame {
  height: min(68vh, 620px);
  min-height: 420px;
}

.home-map-frame {
  min-height: 420px;
  height: 100%;
}

.home-calendar-frame iframe,
.home-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.home-calendar-placeholder,
.home-map-placeholder {
  display: grid;
  gap: 12px;
  place-items: center;
  min-height: 280px;
  padding: 28px;
  text-align: center;
  background: linear-gradient(135deg, rgba(238, 247, 254, 0.8), rgba(255, 255, 255, 0.9));
}

.home-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: stretch;
}

.home-events-past-header {
  margin-top: 42px;
}

.event-row .home-events-actions {
  justify-content: flex-start;
}

.button:focus-visible,
.home-events-card a:focus-visible,
.home-events-actions button:focus-visible {
  outline: 3px solid rgba(79, 163, 227, 0.42);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .home-announcement-grid,
  .home-events-grid,
    .home-map-grid,
  .home-events-timeline-item {
    grid-template-columns: 1fr;
  }

  .home-calendar-frame {
    min-height: 360px;
    height: 62vh;
  }

  .home-map-frame {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .home-events-actions {
    display: grid;
  }

  .home-events-actions .button,
  .home-events-actions button,
  .home-events-body .button {
    width: 100%;
    justify-content: center;
  }

  .home-events-date strong {
    font-size: 1.7rem;
  }

  .home-calendar-frame {
    min-height: 320px;
    height: 56vh;
  }
}

/* Visit Us redesign for Great Bay Anglican Church. Scoped to the homepage Visit Us block only. */
.home-map-visit-redesign .home-map-heading {
  align-items: end;
}

.home-map-visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: stretch;
}

.home-map-info-card,
.home-map-welcome-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.home-map-info-card {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.home-map-info-card:hover,
.home-map-welcome-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(33, 43, 54, 0.13);
}

.home-map-info-list {
  display: grid;
  gap: 18px;
}

.home-map-info-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(63, 74, 89, 0.12);
}

.home-map-info-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.home-map-info-icon {
  line-height: 1.3;
  font-size: 1.25rem;
}

.home-map-info-item h4 {
  margin: 0 0 6px;
  color: var(--blue-gray);
  font-size: 1rem;
}

.home-map-info-item p {
  margin: 0 0 7px;
}

.home-map-info-item p:last-child {
  margin-bottom: 0;
}

.home-map-info-item ul {
  margin: 8px 0;
  padding-left: 1.2rem;
}

.home-map-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-map-media-column {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.home-map-visit-frame {
  min-height: 450px;
  height: 450px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.home-map-visit-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.home-map-welcome-card {
  display: grid;
  gap: 12px;
  padding: 26px;
  background: linear-gradient(135deg, rgba(238, 247, 254, 0.9), rgba(79, 163, 227, 0.10));
}

.home-map-welcome-card p {
  margin: 0;
}

.home-map-welcome-card .button {
  width: fit-content;
}

@media (max-width: 920px) {
  .home-map-visit-redesign .home-map-heading {
    align-items: start;
  }

  .home-map-visit-grid {
    grid-template-columns: 1fr;
  }

  .home-map-info-card {
    padding: 22px;
  }

  .home-map-visit-frame {
    min-height: 360px;
    height: 360px;
  }
}

@media (max-width: 560px) {
  .home-map-info-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .home-map-button-row,
  .home-map-welcome-card .button {
    display: grid;
    width: 100%;
  }

  .home-map-button-row .button {
    width: 100%;
    justify-content: center;
  }
}


/* White Navy Sky Blue visual unification. Content, layout, links, data, iframe src, and backend logic are unchanged. */
html { background: var(--color-background); }

body {
  color: var(--color-text);
  background: var(--color-background);
}

body,
.card,
.info-panel,
.member-panel,
.home-announcement-card,
.home-events-card,
.home-map-info-card,
.home-map-welcome-card {
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-sm);
}

.brand-mark {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-navy-700), var(--color-navy-900));
}

.brand-text strong,
.site-nav a.active,
h1,
h2,
h3,
.footer-title {
  color: var(--color-heading);
}

.brand-text span,
.hero-copy,
.lead,
.section-header p,
.card p,
.info-panel p,
.event-row p,
.form-note,
.muted {
  color: var(--color-text-muted);
}

.site-nav a {
  position: relative;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
}

.site-nav a:hover {
  color: var(--color-navy-700);
  background: var(--color-blue-soft);
}

.site-nav a.active { background: transparent; }

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-sky);
}

.member-nav-link,
.site-nav a.member-nav-link {
  color: var(--color-white);
  background: var(--color-navy-700);
  border: 1px solid var(--color-navy-700);
}

.member-nav-link:hover,
.site-nav a.member-nav-link:hover,
.site-nav a.member-nav-link.active {
  color: var(--color-white);
  background: var(--color-navy-900);
  border-color: var(--color-navy-900);
}

.site-nav a.member-nav-link.active::after {
  background: var(--color-sky);
  bottom: -3px;
}

.nav-toggle,
.language-select {
  color: var(--color-navy-900);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.hero {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0%, rgba(234, 243, 251, 0.84) 48%, rgba(79, 163, 227, 0.10) 100%),
    radial-gradient(circle at 78% 30%, rgba(79, 163, 227, 0.14), transparent 34%),
    linear-gradient(135deg, var(--color-background), var(--color-blue-soft));
}

.eyebrow { color: var(--color-navy-700); }

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 999px;
  background: var(--color-sky);
}

.hero-visual,
.page-hero,
.team-placeholder {
  border-color: var(--color-border-soft);
  box-shadow: var(--shadow-md);
}

.hero-visual { background: var(--color-navy-900); }
.hero-visual::after { background: rgba(18, 52, 91, 0.34); }
.hero-visual figcaption { background: rgba(18, 52, 91, 0.58); color: var(--color-white); }

.section { background: var(--color-surface); }
.section.alt,
.page-hero,
.member-area-shell,
.home-events-schedule { background: var(--color-background); }
.home-calendar-section,
.home-map-visit-redesign { background: var(--color-blue-soft); }

.card,
.info-panel,
.home-announcement-card,
.home-announcement-empty,
.home-events-card,
.home-calendar-placeholder,
.home-map-placeholder,
.home-map-info-card,
.home-map-welcome-card,
.member-panel,
.member-table-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card:hover,
.home-announcement-card:hover,
.home-events-card:hover {
  border-color: var(--color-blue-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tag {
  color: var(--color-navy-800);
  background: var(--color-blue-soft);
}

.home-outreach-card .tag,
.home-announcement-card.is-urgent .tag,
.member-area-preview-badge {
  color: var(--color-navy-900);
  background: var(--color-sky-soft);
  border-color: rgba(79, 163, 227, 0.34);
}

.button,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-accent,
.btn-link,
button.button,
a.button {
  border-radius: 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover,
.btn-accent:hover { transform: translateY(-1px); }

.button.primary,
.btn-primary,
button[type="submit"],
.member-button,
.home-map-button-row .button.primary {
  color: var(--color-white);
  background: var(--color-navy-700);
  border-color: var(--color-navy-700);
  box-shadow: var(--shadow-sm);
}

.button.primary:hover,
.btn-primary:hover,
button[type="submit"]:hover,
.member-button:hover,
.home-map-button-row .button.primary:hover {
  color: var(--color-white);
  background: var(--color-navy-900);
  border-color: var(--color-navy-900);
}

.button.secondary,
.btn-secondary {
  color: var(--color-navy-900);
  background: var(--color-blue-soft);
  border-color: var(--color-blue-light);
}

.button.secondary:hover,
.btn-secondary:hover {
  color: var(--color-navy-900);
  background: var(--color-blue-light);
  border-color: var(--color-navy-600);
}

.button.ghost,
.btn-outline {
  color: var(--color-navy-800);
  background: var(--color-white);
  border-color: var(--color-navy-700);
}

.button.ghost:hover,
.btn-outline:hover {
  color: var(--color-white);
  background: var(--color-navy-700);
  border-color: var(--color-navy-700);
}

.hero-actions .button.primary,
.btn-accent,
.home-map-welcome-card .button.primary {
  color: var(--color-navy-900);
  background: var(--color-sky);
  border-color: var(--color-sky);
}

.hero-actions .button.primary:hover,
.btn-accent:hover,
.home-map-welcome-card .button.primary:hover {
  color: var(--color-navy-900);
  background: var(--color-sky-hover);
  border-color: var(--color-sky-hover);
}

.hero-actions .button.secondary {
  color: var(--color-navy-900);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(18, 52, 91, 0.22);
}

.event-date,
.home-events-date,
.ministry-icon,
.member-card-icon {
  color: var(--color-white);
  background: var(--color-navy-700);
}

.home-events-date span,
.home-events-date strong { color: inherit; }

.home-outreach-card {
  border-left: 4px solid var(--color-sky);
  border-color: rgba(79, 163, 227, 0.34);
}

.home-outreach-card .home-events-image,
.home-map-welcome-card,
.member-area-note,
.member-message-warning {
  background: var(--color-sky-soft);
  border-color: rgba(79, 163, 227, 0.34);
}

.home-events-image,
.member-resource-placeholder,
.member-document-placeholder {
  background: linear-gradient(135deg, var(--color-blue-soft), var(--color-surface));
  color: var(--color-navy-700);
}

.home-calendar-frame,
.home-map-frame,
.home-map-visit-frame {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.form-field input,
.form-field textarea,
.member-field input,
.member-field textarea,
.member-field select,
.member-form-field input,
.member-form-field select,
.language-select {
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.form-field input:focus,
.form-field textarea:focus,
.member-field input:focus,
.member-field textarea:focus,
.member-field select:focus,
.member-form-field input:focus,
.member-form-field select:focus,
.language-select:focus {
  border-color: var(--color-navy-700);
  box-shadow: 0 0 0 3px rgba(30, 78, 140, 0.14);
  outline: none;
}

.member-message-info { border-color: var(--color-blue-light); background: var(--color-blue-soft); }
.member-message-success { border-color: rgba(47, 125, 91, 0.35); background: rgba(47, 125, 91, 0.1); }
.member-message-error { border-color: rgba(181, 71, 71, 0.35); background: rgba(181, 71, 71, 0.1); }

.member-vote-options label {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.member-vote-options label:focus-within,
.member-vote-options label:hover {
  background: var(--color-blue-soft);
  border-color: var(--color-navy-700);
}

.member-document-table th,
.member-table th {
  color: var(--color-white);
  background: var(--color-navy-900);
}

.member-document-table tr:nth-child(even) td,
.member-table tr:nth-child(even) td { background: var(--color-background); }

.site-footer {
  color: rgba(255, 255, 255, 0.86);
  background: var(--color-navy-900);
}

.site-footer .footer-title,
.site-footer strong { color: var(--color-white); }
.site-footer a { color: rgba(255, 255, 255, 0.88); }
.site-footer a:hover { color: var(--color-sky); }
.site-footer .copyright { color: rgba(255, 255, 255, 0.68); border-top-color: rgba(255, 255, 255, 0.14); }

:focus-visible {
  outline: 3px solid rgba(79, 163, 227, 0.62);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .site-nav {
    background: var(--color-white);
    border-color: var(--color-border-soft);
    box-shadow: var(--shadow-md);
  }

  .site-nav a { border-bottom: 1px solid var(--color-border-soft); }

  .site-nav a.active::after {
    left: 0;
    right: auto;
    top: 12px;
    bottom: 12px;
    width: 3px;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}



/* Centers the Contact page form after removing the contact information card. */
.contact-form-wrapper {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
}

.contact-form-wrapper .info-panel {
  width: 100%;
}


/* White Navy Sky Blue final palette alignment. UI only; content and scripts are unchanged. */
body { color: var(--color-text); background: var(--color-white); }
a { color: var(--color-navy-800); }
a:hover { color: var(--color-sky-hover); }
.site-header { background: rgba(255, 255, 255, 0.96); border-bottom-color: var(--color-border-soft); }
.brand, .site-nav a { color: var(--color-navy-900); }
.site-nav a:hover { color: var(--color-sky-hover); background: var(--color-sky-soft); }
.site-nav a.active::after, .site-nav a.member-nav-link.active::after { background: var(--color-sky); }
.member-nav-link, .site-nav a.member-nav-link { color: var(--color-white); background: var(--color-navy-900); border-color: var(--color-navy-900); }
.member-nav-link:hover, .site-nav a.member-nav-link:hover, .site-nav a.member-nav-link.active { background: var(--color-sky-hover); border-color: var(--color-sky-hover); }
.hero { background: linear-gradient(115deg, rgba(255,255,255,.98) 0%, rgba(238,247,254,.86) 54%, rgba(220,239,253,.42) 100%), radial-gradient(circle at 78% 30%, rgba(79,163,227,.14), transparent 34%), linear-gradient(135deg, var(--color-white), var(--color-sky-soft)); }
.button.primary, .btn-primary, button[type="submit"], .member-auth-card .button.primary, .hero-actions .button.primary, .home-map-welcome-card .button.primary { color: var(--color-white); background: var(--color-navy-900); border-color: var(--color-navy-900); }
.button.primary:hover, .btn-primary:hover, button[type="submit"]:hover, .hero-actions .button.primary:hover, .home-map-welcome-card .button.primary:hover { color: var(--color-white); background: var(--color-sky-hover); border-color: var(--color-sky-hover); }
.button.secondary, .btn-secondary { color: var(--color-navy-900); background: var(--color-sky-soft); border-color: var(--color-sky-light); }
.button.secondary:hover, .btn-secondary:hover { color: var(--color-white); background: var(--color-sky-hover); border-color: var(--color-sky-hover); }
.button.ghost, .btn-outline, .hero-actions .button.secondary { color: var(--color-navy-900); background: var(--color-white); border-color: var(--color-navy-700); }
.button.ghost:hover, .btn-outline:hover, .hero-actions .button.secondary:hover { color: var(--color-white); background: var(--color-sky-hover); border-color: var(--color-sky-hover); }
.card, .info-panel, .home-announcement-card, .home-announcement-empty, .home-events-card, .home-calendar-placeholder, .home-map-placeholder, .home-map-info-card, .home-map-welcome-card, .member-panel, .member-table-wrap { border-color: var(--color-sky-light); }
.card:hover, .home-announcement-card:hover, .home-events-card:hover, .home-map-info-card:hover, .home-map-welcome-card:hover { border-color: var(--color-sky); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.section { background: var(--color-white); }
.section.alt, .home-events-section { background: var(--color-surface-soft); }
.home-announcement-section, .home-calendar-section { background: var(--color-white); }
.home-map-visit-redesign { background: var(--color-sky-soft); }
.home-calendar-frame, .home-map-frame, .home-map-visit-frame { background: var(--color-white); border-color: var(--color-sky-light); box-shadow: var(--shadow-sm); }
.home-calendar-frame:hover, .home-map-frame:hover { border-color: var(--color-sky); box-shadow: var(--shadow-md); }
.tag, .home-announcement-card.is-urgent .tag, .home-outreach-card .tag, .member-area-preview-badge, .member-area-note, .member-message-warning { color: var(--color-navy-900); background: var(--color-sky-soft); border-color: var(--color-sky-light); }
.event-date, .home-events-date, .ministry-icon, .member-card-icon { color: var(--color-white); background: var(--color-navy-700); }
.home-outreach-card { border-left-color: var(--color-sky); border-color: var(--color-sky-light); }
input:focus, textarea:focus, select:focus { border-color: var(--color-sky); box-shadow: 0 0 0 4px rgba(79, 163, 227, 0.16); }
.site-footer { background: var(--color-navy-900); }
.site-footer a:hover { color: var(--color-sky-light); }
:focus-visible { outline: 3px solid rgba(79, 163, 227, 0.64); outline-offset: 3px; }



/* Shared image rhythm system for public pages. */
.media-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--color-sky-light);
  border-radius: var(--radius-lg);
  background: var(--color-sky-soft);
  box-shadow: var(--shadow-sm);
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--landscape { aspect-ratio: 16 / 9; }
.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 16 / 10; }
.section-image { min-height: 340px; }
.card-image-wrap { border-radius: var(--radius-md) var(--radius-md) 0 0; }

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 42px;
  align-items: center;
}

.page-hero-copy {
  max-width: 680px;
}

.page-hero-media {
  min-height: 320px;
}

.home-announcement-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: center;
}

.home-announcement-media {
  min-height: 460px;
}

.home-announcement-list {
  display: grid;
  gap: 14px;
}

.home-announcement-card,
.home-announcement-empty {
  padding: 20px;
}

.home-announcement-card p,
.home-events-card p,
.ministry-preview-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-events-grid {
  align-items: stretch;
}

.home-events-card {
  grid-template-rows: auto 1fr;
}

.home-events-image {
  min-height: 0;
  display: block;
}

.home-events-image img,
.card-image-wrap img,
.event-row-media img {
  transition: transform 0.22s ease;
}

.home-events-card:hover .home-events-image img,
.ministry-preview-card:hover .card-image-wrap img,
.ministry-photo-card:hover .card-image-wrap img {
  transform: scale(1.02);
}

.home-events-body {
  min-height: 0;
}

.home-events-actions {
  margin-top: auto;
}

.ministry-preview-grid,
.ministry-photo-grid {
  display: grid;
  gap: 18px;
}

.ministry-preview-grid,
.ministry-photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ministry-preview-card,
.ministry-photo-card {
  overflow: hidden;
  padding: 0;
}

.ministry-preview-card > div,
.ministry-photo-card__body {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.image-story-stack {
  display: grid;
  gap: 34px;
}

.image-story-block {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.image-story-block--soft {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--color-sky-soft);
}

.image-story-copy {
  display: grid;
  gap: 12px;
}

.image-story-copy p {
  margin: 0;
}

.team-story-block .team-placeholder {
  margin-top: 6px;
}

.home-calendar-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: start;
}

.home-calendar-intro {
  display: grid;
  gap: 18px;
}

.home-calendar-photo {
  min-height: 230px;
}


.event-row--with-media {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) 140px minmax(0, 1.2fr) auto;
  gap: 20px;
  align-items: center;
  overflow: hidden;
}

.event-row-media {
  border-radius: var(--radius-md);
}

@media (max-width: 1020px) {
  .ministry-preview-grid,
  .ministry-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-row--with-media {
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
  }

  .event-row--with-media .home-events-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .page-hero-grid,
  .home-announcement-layout,
  .image-story-block,
  .home-calendar-layout {
    grid-template-columns: 1fr;
  }

  .page-hero-media,
  .section-image,
  .home-announcement-media {
    min-height: 260px;
  }
  .home-calendar-photo {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .media-frame--portrait,
  .media-frame--wide,
  .media-frame--landscape {
    aspect-ratio: 4 / 3;
  }

  .ministry-preview-grid,
  .ministry-photo-grid,
  .event-row--with-media {
    grid-template-columns: 1fr;
  }

  .event-row-media {
    width: 100%;
  }

  .image-story-block--soft {
    padding: 18px;
  }
}




/* About page: keep one large main image only. */
.page-hero-about .page-hero-media {
  display: block;
  min-height: 420px;
}

@media (max-width: 820px) {
  .page-hero-about .page-hero-media {
    min-height: 280px;
  }
}


@media (max-width: 820px) {
  .page-hero-about .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-about .page-hero-media {
    height: 280px;
    min-height: 280px;
  }
}

/* Hero welcome eyebrow light blue. */
.hero .eyebrow {
  color: var(--color-sky);
}





/* News card expandable details */
.news-card-details {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-soft);
}

.news-card-details[hidden] {
  display: none;
}

.news-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.news-detail-list div {
  display: grid;
  gap: 4px;
}

.news-detail-list dt {
  color: var(--color-heading);
  font-weight: 700;
}

.news-detail-list dd {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.news-card-toggle {
  white-space: nowrap;
}

@media (max-width: 920px) {
  .news-card-toggle {
    width: 100%;
    justify-content: center;
  }
}


/* Dropdown navigation added for public site information architecture. */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  position: relative;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  background: transparent;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--color-sky-hover);
  background: var(--color-sky-soft);
}

.nav-dropdown-toggle.active {
  color: var(--color-navy-900);
}

.nav-dropdown-toggle.active::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 28px;
  bottom: 4px;
  height: 2px;
  background: var(--color-sky);
  border-radius: 999px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  display: none;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: grid;
  gap: 2px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-dropdown-menu a::after {
  display: none;
}

@media (max-width: 920px) {
  .nav-dropdown {
    display: grid;
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    padding: 13px 14px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-soft);
  }

  .nav-dropdown-toggle::after {
    float: right;
    margin-top: 6px;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    padding: 6px 0 8px 14px;
    border: 0;
    border-bottom: 1px solid var(--color-border-soft);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-dropdown:not(.open):not(:focus-within) .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown-menu a {
    white-space: normal;
  }
}
