:root {
  --ink: #172027;
  --muted: #607071;
  --paper: #f7f8f5;
  --white: #ffffff;
  --line: #d9e0dc;
  --green: #16452f;
  --green-2: #27613f;
  --clay: #a94135;
  --amber: #d89a2b;
  --sky: #dbe8ef;
  --shadow: 0 18px 48px rgba(23, 32, 39, 0.12);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--green-2);
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  transform: translateY(-140%);
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.notice-rail {
  background: var(--ink);
  color: var(--white);
}

.notice-rail:empty {
  display: none;
}

.rail-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.rail-message {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rail-message strong {
  white-space: nowrap;
}

.severity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  flex: 0 0 10px;
}

.severity-dot.closure,
.severity-dot.urgent {
  background: var(--clay);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 248, 245, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 78px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 245px;
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

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

.brand small {
  color: var(--muted);
  font-size: 0.8rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.staff-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 9px 12px;
}

.nav-link:hover,
.nav-link.active,
.staff-tab:hover,
.staff-tab.active {
  border-color: var(--line);
  background: var(--white);
}

.staff-link {
  color: var(--green);
  font-weight: 700;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero {
  min-height: clamp(540px, 76vh, 760px);
  background-image: url("assets/front-gate.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--white);
  display: flex;
  align-items: end;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 32, 39, 0.88) 0%, rgba(23, 32, 39, 0.58) 42%, rgba(23, 32, 39, 0.14) 100%),
    linear-gradient(0deg, rgba(23, 32, 39, 0.68) 0%, rgba(23, 32, 39, 0.08) 55%);
}

.hero-content {
  position: relative;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 86px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-2);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #f2c66a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.96;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.hero-copy {
  max-width: 620px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 16px;
  font-weight: 800;
  text-decoration: none;
}

.button.light {
  background: var(--white);
  color: var(--ink);
}

.button.dark {
  background: var(--green);
  color: var(--white);
}

.button.secondary {
  color: var(--green);
  border-color: var(--line);
  background: var(--white);
}

.button.outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--green-2);
  padding: 0;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.visit-strip {
  max-width: 1180px;
  margin: -44px auto 0;
  padding: 0 24px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.visit-hours,
.visit-action,
.panel,
.notice-card,
.event-card,
.facility-card,
.series-card,
.admin-row,
.calendar-board {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(23, 32, 39, 0.03);
}

.visit-hours {
  padding: 20px 22px;
  display: grid;
  align-content: center;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
}

.visit-hours strong {
  display: block;
  font-size: 1.2rem;
}

.visit-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
}

.visit-action {
  min-width: 0;
  text-align: left;
  padding: 18px;
  border: 1px solid var(--line);
  border-width: 0 1px 0 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 2px;
}

.visit-action:last-child {
  border-right: 0;
}

.visit-action:hover {
  background: #f4f8f5;
}

.visit-action span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.visit-action strong {
  font-size: 1.02rem;
  line-height: 1.2;
}

.visit-action small {
  color: var(--muted);
  font-size: 0.78rem;
}

.label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.section,
.page-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
}

.page-header {
  padding-top: 62px;
  padding-bottom: 34px;
}

.page-header p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.visual-header {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.64fr);
  align-items: center;
  gap: 36px;
}

.visual-header img,
.feature-image {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
}

.visual-header img {
  aspect-ratio: 4 / 3;
}

.feature-image {
  aspect-ratio: 16 / 11;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading p:last-child {
  color: var(--muted);
}

.tint {
  max-width: none;
  background: #edf3ee;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tint > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.home-grid,
.notice-layout,
.calendar-layout,
.member-layout,
.staff-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.today-first {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.priority-panel {
  min-height: 330px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  align-items: center;
  gap: 36px;
}

.featured-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.featured-copy {
  max-width: 760px;
}

.featured-card h2 {
  margin-bottom: 12px;
}

.featured-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
  margin-bottom: 0;
}

.feature-subhead {
  color: var(--green) !important;
  font-weight: 900;
  margin-bottom: 14px !important;
}

.feature-body {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

.feature-body p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.feature-cta {
  display: inline-flex;
  width: fit-content;
  white-space: nowrap;
}

.newsletter-section {
  padding-top: 0;
}

.newsletter-card {
  display: grid;
  gap: 24px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.newsletter-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: #e9f3ff;
}

.newsletter-card p:not(.eyebrow) {
  color: var(--muted);
  max-width: 680px;
}

.panel {
  padding: 22px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 16px;
}

.stack {
  display: grid;
  gap: 10px;
}

.stack.compact {
  gap: 8px;
}

.notice-card,
.event-card,
.facility-card,
.series-card,
.admin-row {
  padding: 14px;
}

.notice-card {
  border-left: 4px solid var(--amber);
}

.notice-card.closure,
.notice-card.urgent {
  border-left-color: var(--clay);
}

.notice-card header,
.event-card header,
.series-card header,
.admin-row header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.notice-card p,
.event-card p,
.facility-card p,
.series-card p,
.admin-row p {
  color: var(--muted);
  margin-bottom: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  min-height: 26px;
  padding: 4px 9px;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--green);
  background: #f5faf7;
  white-space: nowrap;
}

.pill.closure,
.pill.urgent,
.pill.cancelled {
  color: #7e241d;
  background: #fff2ef;
  border-color: #e8b8b0;
}

.pill.changed {
  color: #704800;
  background: #fff7de;
  border-color: #edd08b;
}

.facility-grid,
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.facility-card,
.series-card {
  min-height: 170px;
}

.section-footer-action {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

a.facility-card {
  color: inherit;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

a.facility-card:hover,
a.facility-card:focus-visible {
  border-color: rgba(22, 69, 47, 0.45);
  box-shadow: 0 12px 28px rgba(23, 32, 39, 0.1);
  transform: translateY(-2px);
}

.card-action {
  color: var(--green-2);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.plain-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.plain-list li:last-child {
  border-bottom: 0;
}

.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
}

.segmented {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.segmented button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-weight: 800;
}

.segmented button.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.search-field {
  display: grid;
  gap: 5px;
  min-width: 240px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.82rem;
}

.search-field input,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 10px 11px;
}

.calendar-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.calendar-board {
  overflow: hidden;
}

.calendar-head {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.calendar-head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.calendar-head span {
  color: var(--muted);
  font-size: 0.84rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.day-name,
.calendar-cell {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.day-name {
  padding: 10px;
  background: #f2f5f2;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.calendar-cell {
  min-height: 132px;
  padding: 8px;
  background: var(--white);
}

.calendar-cell.outside {
  background: #f8faf8;
  color: #99a4a1;
}

.calendar-cell.today {
  outline: 2px solid var(--green-2);
  outline-offset: -2px;
}

.date-number {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 900;
}

.event-chip {
  margin-top: 7px;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 6px 7px;
  text-align: left;
  background: #edf3ee;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-chip.changed {
  background: #fff2ca;
}

.event-chip.cancelled {
  background: #ffe5df;
  text-decoration: line-through;
}

.event-card {
  display: grid;
  gap: 5px;
}

.steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 18px;
}

.steps li span {
  display: block;
  color: var(--muted);
}

.contact-panel p {
  color: var(--muted);
}

.staff-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
}

.staff-tabs {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.staff-tab {
  text-align: left;
  font-weight: 800;
}

.staff-panels,
.staff-panel.active {
  display: grid;
  gap: 16px;
}

.staff-panel {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.form-grid label:has(textarea),
.form-actions {
  grid-column: 1 / -1;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  gap: 10px;
}

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

.mini-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-weight: 800;
}

.mini-button.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.empty {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 960px) {
  .header-inner,
  .brand,
  .primary-nav {
    align-items: start;
  }

  .header-inner {
    flex-direction: column;
  }

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

  .visit-strip,
  .home-grid,
  .notice-layout,
  .calendar-layout,
  .member-layout,
  .staff-layout,
  .split,
  .visual-header,
  .today-first {
    grid-template-columns: 1fr;
  }

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

  .staff-tabs {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visit-hours {
    border-radius: var(--radius) var(--radius) 0 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .visit-actions {
    border-radius: 0 0 var(--radius) var(--radius);
  }
}

@media (max-width: 680px) {
  .rail-inner,
  .calendar-toolbar,
  .calendar-head,
  .site-footer,
  .panel-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .rail-inner,
  .rail-message {
    display: block;
  }

  .brand {
    min-width: 0;
  }

  .nav-link {
    flex: 1 1 auto;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-bottom: 88px;
  }

  .visit-strip {
    margin-top: -42px;
  }

  .visit-actions,
  .staff-tabs {
    grid-template-columns: 1fr;
  }

  .visit-action {
    border-width: 0 0 1px;
  }

  .visit-action:last-child {
    border-bottom: 0;
  }

  .section,
  .page-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .facility-grid,
  .series-grid,
  .form-grid,
  .staff-tabs {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    display: block;
  }

  .day-name {
    display: none;
  }

  .calendar-cell {
    min-height: auto;
    border-right: 0;
  }
}
