/* Kendriya Vihar AOA — Indian Tricolour Theme (mockup-aligned) */
:root {
  --saffron: #ff9933;
  --saffron-dark: #e67e22;
  --saffron-soft: #fff3e6;
  --white: #ffffff;
  --green: #138808;
  --green-dark: #0d6b06;
  --green-deep: #0a4d1c;
  --green-soft: #e9f6e8;
  --ink: #222222;
  --muted: #666666;
  --line: #eceef2;
  --ground: #f7faf6;
  --ground-saffron: #fff4e8;
  --ground-green: #eaf6ea;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  --radius: 16px;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-display: "Outfit", "Montserrat", "Segoe UI", sans-serif;
  --font-brand: "Manrope", "Segoe UI", sans-serif;
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--white);
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 153, 51, 0.22) 0%,
      rgba(255, 255, 255, 0.92) 38%,
      rgba(255, 255, 255, 0.96) 62%,
      rgba(19, 136, 8, 0.16) 100%
    ),
    linear-gradient(
      115deg,
      rgba(255, 153, 51, 0.08) 0%,
      transparent 35%,
      transparent 65%,
      rgba(19, 136, 8, 0.08) 100%
    );
  background-attachment: fixed;
  line-height: 1.5;
  min-height: 100vh;
}

body.has-bg-image {
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.82) 45%,
      rgba(255, 255, 255, 0.88) 100%
    ),
    var(--page-bg-image);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.tricolor-bar {
  height: 5px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--saffron) 0 33.33%,
    var(--white) 33.33% 66.66%,
    var(--green) 66.66% 100%
  );
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 153, 51, 0.35), 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  min-height: 104px;
  padding-block: 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  width: 88px;
  height: 88px;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: visible;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  line-height: 1.15;
}

.brand-text .brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-text .brand-org {
  display: block;
  font-family: var(--font-brand);
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--green-dark);
}

.brand-text .brand-reg {
  display: block;
  font-family: var(--font-brand);
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--green-dark);
}

.brand-text .brand-place {
  display: block;
  font-family: var(--font-brand);
  font-size: clamp(0.84rem, 1.45vw, 0.98rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.15rem;
}

.nav a {
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.45rem 0.15rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

.nav a.active {
  border-bottom-color: var(--saffron);
  color: var(--saffron-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  display: grid;
  place-items: center;
}

.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--saffron);
  color: #3b2200;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.72rem 1.25rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid transparent;
  transition: 0.15s ease;
}

.btn-primary {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
}

.btn-primary:hover {
  background: var(--saffron-dark);
  border-color: var(--saffron-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--green);
  border-color: var(--green);
}

.btn-secondary:hover {
  background: var(--green-soft);
}

.btn-green {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.btn-green:hover {
  background: var(--green-dark);
}

.btn-dark {
  background: #2a2a2a;
  color: white;
  border-color: #2a2a2a;
  border-radius: 10px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

/* Hero — full-colour campus photo, no fade overlay */
.hero {
  position: relative;
  min-height: clamp(360px, 56vh, 540px);
  overflow: hidden;
  background: #c5d4c8;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  /* Keep natural colour; avoid heavy filters that wash out on Chrome */
  filter: none;
}

/* Quick actions — below hero */
.quick-actions-section {
  background: transparent;
  padding: 1rem 0 0.25rem;
}

.quick-actions {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.85rem 0.65rem;
  border-radius: 18px;
  background: #163526;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  color: white;
  text-align: center;
  font-size: clamp(0.62rem, 1.35vw, 0.78rem);
  font-weight: 600;
  padding: 0.35rem 0.15rem;
  border-radius: 12px;
  line-height: 1.2;
}

.quick-action:hover {
  background: rgba(255, 255, 255, 0.08);
}

.quick-action .qa-icon {
  width: clamp(36px, 5vw, 46px);
  height: clamp(36px, 5vw, 46px);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  flex-shrink: 0;
}

/* Alert */
.alert-strip {
  margin-top: 1.25rem;
}

.alert-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  background: white;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--saffron);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pill-new {
  background: var(--saffron-soft);
  color: #9a4d00;
}

.pill-new.inline {
  margin-left: 0.4rem;
  padding: 0.12rem 0.4rem;
  font-size: 0.65rem;
  vertical-align: middle;
}

.alert-card p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  color: var(--muted);
  font-size: 0.95rem;
}

.alert-card a {
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: 1.5rem 0 1.25rem;
}

.home-section {
  padding: 1.35rem 0;
}

.home-section-soft {
  background: linear-gradient(
    180deg,
    rgba(255, 243, 230, 0.45) 0%,
    rgba(255, 255, 255, 0.2) 45%,
    rgba(233, 246, 232, 0.4) 100%
  );
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}

.home-grid > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.home-grid .list,
.home-grid .contact-list,
.home-grid .facility-list {
  flex: 1;
}

.contact-list {
  padding-bottom: 0.35rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.1rem 0.55rem;
}

.card-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card-head a {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0 0.4rem 0.7rem;
}

.list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0.7rem;
  border-top: 1px solid var(--line);
}

/* Latest Announcements — vertical upward carousel */
.announce-carousel {
  position: relative;
}

.announce-carousel.is-carousel {
  height: 5.75rem;
  overflow: hidden;
  margin: 0 0.4rem 0.7rem;
}

.announce-carousel.is-carousel .announce-track {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}

.announce-carousel .announce-item {
  display: block;
  grid-template-columns: none;
}

.announce-carousel .announce-item > div {
  display: block;
}

.announce-carousel.is-carousel .announce-track > li {
  flex: 0 0 auto;
  height: 5.75rem;
  box-sizing: border-box;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-top: 0;
  align-items: center;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .announce-carousel.is-carousel .announce-track {
    transition: none;
  }
}

.date-chip {
  width: 52px;
  text-align: center;
  border-radius: 10px;
  background: var(--saffron-soft);
  color: #9a4d00;
  padding: 0.35rem 0.2rem;
  line-height: 1.15;
}

.date-chip.green {
  background: var(--green-soft);
  color: var(--green-dark);
}

.date-chip strong {
  display: block;
  font-size: 1rem;
}

.date-chip span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.item-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.item-meta {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  background: #ffe8e8;
  color: #b42318;
  vertical-align: middle;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  border-top: 1px solid var(--line);
}

.contact-row:first-of-type {
  border-top: 0;
  padding-top: 0.35rem;
}

.contact-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.95rem;
}

.contact-row a {
  font-weight: 700;
  color: var(--green);
  font-size: 0.9rem;
}

.contact-phones {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
  font-weight: 700;
  color: var(--green);
  font-size: 0.9rem;
}

/* Dues / poll / facilities */
.dues-body {
  padding: 0.5rem 1.1rem 1.15rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.75rem;
  align-items: center;
}

.dues-amount {
  margin: 0.15rem 0;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--green);
  font-family: var(--font-display);
}

.dues-art {
  aspect-ratio: 1.1;
  border-radius: 14px;
  background:
    radial-gradient(circle at 70% 30%, #ffd89a, transparent 45%),
    linear-gradient(160deg, var(--saffron-soft), var(--green-soft));
  display: grid;
  place-items: center;
  font-size: 2.4rem;
}

.poll-body {
  padding: 0.25rem 1.1rem 1.15rem;
}

.poll-body fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.poll-body legend {
  font-weight: 700;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.poll-options {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.poll-options label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.facility-list {
  padding: 0.25rem 1.1rem 1.1rem;
  display: grid;
  gap: 0.75rem;
}

.facility-lead {
  margin: 0;
  padding: 0 1.1rem 0.55rem;
}

.facility-list-simple {
  list-style: none;
  margin: 0;
  gap: 0;
}

.facility-list-simple li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.facility-list-simple li:last-child {
  border-bottom: 1px solid var(--line);
}

.facility-list-simple strong {
  font-size: 0.95rem;
}

.facility {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.facility-thumb {
  width: 72px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #dfe8ef, #c5d4c8);
}

.facility .status,
.facility-list-simple .status {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
}

.facility-list-simple .status.soon {
  margin-top: 0;
  color: #9a4d00;
  background: var(--saffron-soft);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.btn-facility-book {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  border-radius: 999px;
}

.booking-dialog {
  width: min(100%, 520px);
}

.booking-hint {
  margin: -0.35rem 0 1rem;
}

.booking-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.booking-form input,
.booking-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: white;
}

.booking-form textarea {
  resize: vertical;
  min-height: 96px;
}

.booking-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 560px) {
  .booking-dates {
    grid-template-columns: 1fr;
  }
}

.booking-msg {
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.booking-msg.ok {
  background: var(--green-soft);
  color: var(--green-dark);
}

.booking-msg.err {
  background: #ffe8e8;
  color: #b42318;
}

.pill-soon {
  background: var(--saffron-soft);
  color: #9a4d00;
}

/* Features */
.gallery-section {
  padding: 0.5rem 0 1.75rem;
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gallery-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gallery-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-carousel {
  position: relative;
}

.gallery-empty {
  margin: 0;
  padding: 1.25rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-track {
  display: flex;
  gap: 0.85rem;
  transition: transform 0.55s ease;
  will-change: transform;
}

.gallery-card {
  flex: 0 0 calc((100% - 1.7rem) / 3);
  min-width: 0;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.gallery-card a {
  display: block;
  color: inherit;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8eee9;
  display: block;
}

.gallery-card .gallery-meta {
  padding: 0.75rem 0.85rem 0.9rem;
}

.gallery-card .gallery-meta strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.3;
}

.gallery-card .gallery-meta span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink);
}

.gallery-nav.prev { left: 0.35rem; }
.gallery-nav.next { right: 0.35rem; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #c9d2cc;
  cursor: pointer;
}

.gallery-dot.active {
  background: var(--green);
  width: 22px;
}

.features-wrap {
  padding: 0.5rem 0 2rem;
  background: linear-gradient(
    90deg,
    rgba(255, 153, 51, 0.12) 0%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(19, 136, 8, 0.12) 100%
  );
}

.ads-section {
  padding: 0.75rem 0 2.25rem;
}

.ads-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.ad-slot {
  min-height: 140px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot-empty {
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 0.7rem;
  text-align: center;
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--saffron) 8%, white) 0%,
      white 55%,
      color-mix(in srgb, var(--green) 7%, white) 100%
    );
}

.ad-slot-label {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ad-slot-cta {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.ad-slot-meta {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.ad-slot-meta a {
  color: var(--green-dark);
  font-weight: 700;
}

.ad-slot-filled {
  padding: 0;
}

.ad-slot-filled img,
.ad-slot-link {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: block;
}

.ad-slot-filled img {
  object-fit: cover;
}

.ad-slot-link {
  text-decoration: none;
}

@media (max-width: 980px) {
  .ads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ads-grid {
    grid-template-columns: 1fr;
  }
}

.features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 0.75rem;
}

.feature {
  text-align: center;
  padding: 0.35rem;
  border-right: 1px solid var(--line);
}

.feature:last-child {
  border-right: 0;
}

.feature-icon {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.feature strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Visitor bar (home, just above footer) */
.visitor-bar {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(12, 61, 24, 0.12);
  background: rgba(255, 255, 255, 0.45);
}

.visitor-bar-inner {
  text-align: right;
}

.visitor-bar-inner p {
  margin: 0;
  font-family: var(--font-body, "Source Sans 3", sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(8, 40, 18, 0.78);
}

.visitor-bar-inner span {
  font-family: var(--font-display, Outfit, sans-serif);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--green-deep, #0c3d18);
}

/* Footer */
.site-footer {
  margin-top: 0.5rem;
  background: linear-gradient(165deg, var(--green-deep) 0%, #0c3d18 55%, #082812 100%);
  color: rgba(255, 255, 255, 0.9);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1.5rem;
  padding: 2.4rem 0 1.6rem;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
}

.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.footer-map-link {
  display: inline-block;
  margin-top: 0.15rem;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-map-link:hover,
.footer-map-link:focus-visible {
  color: var(--saffron-bright, #ff9933);
}

.app-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-qr {
  margin-top: 0.85rem;
  display: inline-block;
  padding: 0.55rem;
  background: #fff;
  border-radius: 12px;
  line-height: 0;
}

.footer-qr img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
}

.qr-box {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #fff 2px, transparent 2px) 0 0 / 8px 8px,
    linear-gradient(#fff 2px, transparent 2px) 0 0 / 8px 8px,
    #111;
  margin-top: 0.75rem;
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  padding: 0.85rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a:hover {
  color: white;
}

/* Secondary pages */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  background:
    linear-gradient(135deg, rgba(255, 153, 51, 0.28), transparent 42%),
    linear-gradient(225deg, rgba(19, 136, 8, 0.18), transparent 48%),
    linear-gradient(180deg, #fff8ef 0%, #ffffff 52%, #eef8ee 100%);
  border-bottom: 1px solid rgba(19, 136, 8, 0.12);
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.page-hero p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 55ch;
  font-family: var(--font-brand);
  font-size: 1.02rem;
  font-weight: 500;
}

.content-panel > h2,
.content-panel .card-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.content-panel {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.about-shell {
  max-width: 920px;
  margin-bottom: 2.75rem;
}

.about-page {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid color-mix(in srgb, var(--line) 80%, white);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3.5vw, 2.75rem);
  color: var(--ink);
}

.about-block {
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--line);
}

.about-block-first {
  padding-top: 0;
}

.about-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.about-section-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.28rem, 2vw, 1.55rem);
  color: var(--ink);
}

.about-lead {
  margin: 0 0 1.15rem;
  max-width: none;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.about-prose {
  max-width: none;
}

.about-prose p {
  margin: 0 0 1.15rem;
  color: #4a4a4a;
  font-size: 1.06rem;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-highlight {
  background:
    linear-gradient(
      105deg,
      color-mix(in srgb, var(--saffron) 10%, white) 0%,
      color-mix(in srgb, var(--green) 7%, white) 100%
    );
  margin: 0.35rem -0.35rem;
  padding: 1.5rem 1.15rem 1.55rem;
  border: 1px solid color-mix(in srgb, var(--line) 70%, white);
  border-radius: var(--radius);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, white);
}

.about-highlight.about-block-first {
  margin-top: 0;
}

.about-quote {
  margin: 0;
  padding: 0 0 0 1rem;
  border-left: 4px solid var(--saffron);
}

.about-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.about-defs {
  display: grid;
  gap: 1rem 1.5rem;
  margin: 0;
}

.about-defs-wide {
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .about-defs {
    grid-template-columns: 1fr 1fr;
  }

  .about-defs-wide {
    grid-template-columns: 1fr 1fr;
  }
}

.about-defs > div {
  padding-top: 0.15rem;
}

.about-defs dt {
  margin: 0 0 0.3rem;
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.about-defs dd {
  margin: 0;
  color: #555;
  font-size: 0.98rem;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.about-objectives {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: about-obj;
  display: grid;
  gap: 1.15rem 1.5rem;
}

@media (min-width: 760px) {
  .about-objectives {
    grid-template-columns: 1fr 1fr;
  }
}

.about-objectives > li {
  counter-increment: about-obj;
  margin: 0;
  padding: 0 0 0 2.5rem;
  position: relative;
}

.about-objectives > li::before {
  content: counter(about-obj, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-family: var(--font-brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--green);
}

.about-objectives h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-brand);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
}

.about-objectives p {
  margin: 0;
  color: #555;
  font-size: 0.97rem;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.about-close {
  margin-top: 0.25rem;
}

.about-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.about-principles li {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--green-deep);
  padding: 0.35rem 0;
  border-bottom: 2px solid color-mix(in srgb, var(--saffron) 55%, white);
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.5rem 0 0;
}

@media (max-width: 520px) {
  .about-lead,
  .about-prose p,
  .about-quote p,
  .about-defs dd,
  .about-objectives p {
    text-align: left;
    hyphens: manual;
  }

  .about-highlight {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.governance-shell {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.governance-section {
  margin: 0;
}

.content-panel.governance-section {
  margin: 0;
}

.governance-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.28rem, 2vw, 1.55rem);
}

.governance-lead {
  margin: 0 0 1.15rem;
  color: var(--muted);
  max-width: 65ch;
  line-height: 1.65;
}

.bearer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}

.bearer-card {
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--saffron) 7%, white) 0%,
      white 42%,
      color-mix(in srgb, var(--green) 5%, white) 100%
    );
  text-align: center;
}

.bearer-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  display: block;
  border: 3px solid color-mix(in srgb, var(--green) 25%, white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.bearer-photo-fallback {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-dark);
  background: color-mix(in srgb, var(--green) 12%, white);
}

.bearer-role {
  margin: 0 0 0.35rem;
  font-family: var(--font-brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.bearer-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.bearer-meta {
  margin: 0;
  display: grid;
  gap: 0.45rem;
  text-align: left;
}

.bearer-meta > div {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.4rem;
  align-items: baseline;
}

.bearer-meta dt {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.bearer-meta dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  word-break: break-word;
}

.bearer-meta a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.committee-list {
  display: grid;
  gap: 0.85rem;
}

.committee-card {
  padding: 0.95rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.committee-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.committee-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.committee-desc {
  margin: 0 0 0.4rem;
  color: #555;
  line-height: 1.65;
  max-width: 70ch;
}

.committee-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.doc-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.doc-list a {
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
}

.dues-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dues-last-updated {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: #1a1a1a;
}

.dues-search {
  display: grid;
  gap: 0.35rem;
  min-width: min(100%, 240px);
}

.dues-search input {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.dues-table-wrap {
  overflow-x: auto;
}

.dues-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.dues-table th,
.dues-table td {
  text-align: left;
  padding: 0.8rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.dues-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}

.dues-amount-cell {
  font-weight: 700;
  white-space: nowrap;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 0.75rem;
}

.pager-info {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  min-width: 6.5rem;
  text-align: center;
}

.pager .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.notice-body {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: normal;
}

.notice-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--green);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.link-btn:hover {
  text-decoration: underline;
}

body.modal-open {
  overflow: hidden;
}

.notice-modal[hidden] {
  display: none !important;
}

.notice-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.notice-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 24, 0.55);
}

.notice-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(80vh, 640px);
  overflow: auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  padding: 1.35rem 1.35rem 1.25rem;
}

.notice-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.notice-modal-dialog h2 {
  margin: 0.2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-right: 1.5rem;
}

.notice-modal-body {
  color: #333;
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.notice-modal-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: white;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .header-inner {
    min-height: 96px;
    gap: 0.75rem;
  }

  .brand-mark {
    width: 72px;
    height: 72px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .grid-3,
  .home-grid,
  .features,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    flex-basis: calc((100% - 0.85rem) / 2);
  }

  .feature {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 0;
  }

  .feature:last-child {
    border-bottom: 0;
  }

  .quick-actions {
    gap: 0.25rem;
    padding: 0.75rem 0.4rem;
  }

  .hero {
    min-height: clamp(280px, 42vh, 420px);
  }

  .hero-media img {
    object-position: center 65%;
  }
}

@media (max-width: 560px) {
  .header-actions .btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
  }

  .gallery-card {
    flex-basis: 100%;
  }

  .facility {
    grid-template-columns: 64px 1fr;
  }

  .facility .btn-dark {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
