@import url('https://fonts.googleapis.com/css2?family=Literata:opsz,wght@7..72,600;7..72,700&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --bg: #f3f5ef;
  --paper: #fffdf8;
  --ink: #1a2530;
  --muted: #5d6772;
  --line: #d7dfd3;
  --brand: #007a4d;
  --brand-deep: #005f3c;
  --accent: #f1f7ee;
  --chip: #ebf4ee;
  --warn: #9a6600;
  --shadow: 0 8px 28px rgba(23, 45, 30, 0.08);
}

* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  background: radial-gradient(circle at 0 0, #f9fbf6 0, var(--bg) 45%), var(--bg);
  color: var(--ink);
  font-family: 'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.62;
}

a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1180px, 94vw); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 252, 247, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.top-row, .utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-row { padding: 0.62rem 0; }
.utility-row {
  justify-content: flex-end;
  padding: 0 0 0.55rem;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: #17331f;
  line-height: 1;
}

.brand-flag {
  width: 1.9rem;
  height: 1.9rem;
  min-width: 1.9rem;
  border-radius: 0.55rem;
  border: 1px solid #d5e4d8;
  object-fit: cover;
  display: block;
  background: #fff;
  flex: 0 0 auto;
}

.brand-text {
  font-family: 'Literata', Georgia, serif;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: #324251;
}
.main-nav a.active,
.main-nav a:hover {
  background: #e8f3ec;
  color: #0f3f2a;
  text-decoration: none;
}

.year-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid #cad6c8;
  border-radius: 0.58rem;
  background: #fff;
  color: #2a3f4e;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.44rem 0.62rem;
  line-height: 1;
}
.nav-toggle:hover { background: #f4f8f3; }
.nav-toggle:focus-visible {
  outline: 2px solid #0f6b45;
  outline-offset: 2px;
}
.year-pick select,
.site-search input,
.filters-box input,
.filters-box select {
  border: 1px solid #cad6c8;
  border-radius: 0.6rem;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 0.45rem 0.6rem;
}
.site-search input { width: min(26rem, 48vw); }

.page-main { padding: 1.45rem 0 2.2rem; }

.breadcrumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: #6e7683;
}
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 0.45rem; color: #a2abb8; }

.hero {
  background: linear-gradient(130deg, #fbfdf9 0%, #f4f8f0 60%, #eef3e8 100%);
  border: 1px solid #dde7da;
  border-radius: 1rem;
  padding: 1.2rem 1.3rem;
  margin-top: 0.8rem;
}
.hero h1 {
  margin: 0.15rem 0 0;
  font-family: 'Literata', Georgia, serif;
  font-size: clamp(1.95rem, 3.8vw, 3.05rem);
  line-height: 1.16;
  color: #162d1f;
}
.hero .lead {
  max-width: 70ch;
  margin: 0.7rem 0 0;
  font-size: 1.12rem;
  color: #2c3947;
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.74rem;
  font-weight: 700;
  color: #12593a;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  padding: 0.52rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover { background: #096d47; }
.btn-outline {
  border-color: #9ab7a2;
  color: #173728;
  background: #fefefe;
}
.btn-outline:hover { background: #f2f8f3; }
.btn-link {
  padding-inline: 0.2rem;
  color: var(--brand-deep);
  border-color: transparent;
}

.stats-line {
  margin: 0.75rem 0 0;
  font-size: 1.06rem;
  color: #2c3947;
}
.stats-line span { margin: 0 0.35rem; color: #88929f; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.filters-box {
  margin-top: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #f8fbf6;
  padding: 0.75rem;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: end;
}
.filters-box label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #405166;
}
.filters-box .hint {
  margin: 0.1rem 0 0;
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: #5c6878;
}

.table-wrap {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  overflow: hidden;
  background: #fff;
}
.holiday-table {
  width: 100%;
  border-collapse: collapse;
}
.holiday-table thead th {
  position: static;
  background: #f1f5ec;
  color: #273545;
  font-size: 1.02rem;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #d7dfd3;
}
.holiday-table tbody td,
.holiday-table tbody th {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid #e5ece2;
  vertical-align: top;
}
.holiday-table tbody tr:last-child td,
.holiday-table tbody tr:last-child th { border-bottom: 0; }

.month-row th {
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #557067;
  background: #f9fbf8;
  padding-top: 0.55rem;
  padding-bottom: 0.48rem;
}

.holiday-name a {
  font-size: 1.33rem;
  font-weight: 700;
  color: #0d7d56;
}
.event-observance .holiday-name a { color: #366283; }

.date-cell .date-chip {
  display: inline-block;
  border: 1px solid #c4d6c9;
  border-radius: 0.55rem;
  padding: 0.2rem 0.42rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.date-cell .weekday {
  margin-top: 0.22rem;
  font-size: 0.82rem;
  color: #667083;
}

.badge {
  display: inline-flex;
  margin-left: 0.45rem;
  border-radius: 0.4rem;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 0.12rem 0.33rem;
  border: 1px solid transparent;
}
.badge.tentative {
  background: #fff5dc;
  color: var(--warn);
  border-color: #e7d29d;
}
.badge.observance {
  background: #ebf2fb;
  color: #315b86;
  border-color: #b8cce5;
}

.soft-card,
.tile,
.strip {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--paper);
  padding: 0.95rem 1rem;
}

.cards-row,
.two-col {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cards-row .soft-card,
.two-col .soft-card { box-shadow: var(--shadow); }

.soft-card h2,
.plain-block h2,
.tile h2 {
  margin: 0;
  font-family: 'Literata', Georgia, serif;
  color: #163024;
  font-size: 1.38rem;
}
.soft-card p,
.tile p,
.soft-card li,
.plain-block p,
.plain-block li { color: #334255; }
.big-date { font-size: 1.48rem; font-weight: 700; margin: 0.2rem 0; }
.warn { color: var(--warn); font-weight: 700; }

.faq-card dl,
.soft-card dl { margin: 0.7rem 0 0; }
.faq-card dt,
.soft-card dt { font-weight: 700; color: #1f2f41; margin-top: 0.4rem; }
.faq-card dd,
.soft-card dd { margin: 0.25rem 0 0.45rem; }

.plain-block { margin-top: 1rem; }
.plain-block ul { margin: 0.4rem 0 0; padding-left: 1rem; }
.plain-block li { margin-bottom: 0.35rem; }

.tile-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.tile h2 { font-size: 1.2rem; }
.tile-meta { color: #607285; font-size: 0.88rem; }

.strip-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1.2fr 1fr;
}
.next-strip-row {
  margin-top: 0.95rem;
}
.strip h2 { margin: 0; font-size: 1.07rem; }
.strip p { margin: 0.3rem 0 0; }
.strip-link {
  display: block;
  color: inherit;
}
.strip-link:hover {
  text-decoration: none;
  border-color: #c6d8cb;
  background: #f8fcf6;
}
.strip-link:focus-visible {
  outline: 2px solid #0f6b45;
  outline-offset: 2px;
}
.links-strip {
  display: grid;
  align-content: center;
  gap: 0.35rem;
}
.links-strip a { font-weight: 700; }

.year-pills {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.year-pills a {
  border: 1px solid #c8d8cb;
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: #244934;
}

.inline-links {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}
.inline-links a,
.share-links a {
  border: 1px solid #c9d6cb;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  background: #fff;
}

.sparkline {
  width: 100%;
  height: auto;
  border: 1px solid #d8e2d8;
  background: #fff;
  border-radius: 0.6rem;
}

.mobile-only { display: none !important; }
.desktop-only { display: block; }
.mobile-list { margin-top: 1rem; display: grid; gap: 0.72rem; }
.mobile-item {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
  padding: 0.75rem;
}
.mobile-title { margin: 0; font-size: 1.18rem; font-weight: 700; }
.mobile-date { margin: 0.32rem 0 0; font-size: 1.18rem; font-weight: 700; }
.mobile-weekday { margin: 0.1rem 0 0; font-size: 0.88rem; color: #677184; }
.mobile-tags { margin: 0.25rem 0 0; color: #486177; font-size: 0.82rem; }
.mobile-description { margin: 0.24rem 0 0; font-size: 0.9rem; color: #3e4b5e; }

.prose-block h2 {
  font-family: 'Literata', Georgia, serif;
  margin-top: 0;
}

.contact-form {
  display: block;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.form-field {
  display: grid;
  gap: 0.25rem;
}
.form-field span {
  font-weight: 600;
  color: #304357;
}
.form-field-full {
  grid-column: 1 / -1;
}
.contact-form input,
.contact-form textarea {
  border: 1px solid #cad6c8;
  border-radius: 0.6rem;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.98rem;
  padding: 0.55rem 0.7rem;
  font-family: inherit;
}
.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}
.contact-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
#contact-status {
  margin: 0;
  font-size: 0.9rem;
  color: #415668;
}
.hp-input {
  position: absolute;
  left: -9999px !important;
  top: 0 !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  border: 0;
  padding: 0;
}
.g-recaptcha {
  max-width: 100%;
  overflow: hidden;
}

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

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  color: #607087;
  font-size: 0.88rem;
}
.notes {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fafcf7;
  padding: 0.65rem 0.85rem;
}
.notes summary { cursor: pointer; font-weight: 700; color: #2e3d51; }
.notes p { margin: 0.5rem 0 0; }
.stamp { margin: 0.65rem 0 0; }
.copyright { margin: 0.25rem 0 0; }

.page-home .site-search {
  display: none;
}
.home-summary {
  margin-top: 1rem;
}
.home-summary p {
  margin: 0;
  color: #334255;
}
.planner-teaser {
  margin-top: 0.9rem;
}
.planner-teaser .cta-row {
  margin-top: 0.55rem;
}
.planner-teaser-compact {
  padding: 0.68rem 0.82rem;
}
.planner-teaser-compact h2 {
  font-size: 1.05rem;
}
.planner-teaser-compact p {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .cards-row,
  .two-col { grid-template-columns: 1fr; }
  .site-search input { width: min(18rem, 58vw); }
}

@media (max-width: 980px) {
  .header-tools {
    margin-left: auto;
    gap: 0.45rem;
    position: relative;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 2px);
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav a {
    width: 100%;
    justify-content: flex-start;
    border-radius: 0.5rem;
    padding: 0.52rem 0.58rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 760px) {
  html { font-size: 16px; }
  .site-header {
    backdrop-filter: none;
    background: #f9fbf6;
  }
  .top-row {
    padding: 0.48rem 0;
    align-items: center;
  }
  .utility-row {
    padding: 0 0 0.4rem;
  }
  .year-pick {
    font-size: 0.8rem;
    gap: 0.35rem;
  }
  .year-pick select {
    padding: 0.35rem 0.52rem;
    font-size: 0.88rem;
  }
  .hero {
    margin-top: 0.45rem;
    padding: 0.88rem 0.92rem;
  }
  .hero h1 { font-size: clamp(1.72rem, 7vw, 2.3rem); }
  .hero .lead { font-size: 1rem; margin-top: 0.45rem; }
  .cta-row { margin-top: 0.62rem; gap: 0.45rem; }
  .plain-block { margin-top: 0.75rem; }
  .next-strip-row { margin-top: 0.75rem; }
  .strip { padding: 0.72rem 0.82rem; }
  .planner-teaser-compact .cta-row {
    margin-top: 0.35rem;
  }
  .filter-row {
    margin-top: 0.62rem;
  }
  .table-wrap,
  .mobile-list {
    margin-top: 0.72rem;
  }
  .site-search {
    width: 100%;
  }
  .site-search input { width: min(100%, 92vw); }
  .desktop-only { display: none; }
  .mobile-only { display: block !important; }
  .contact-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
