:root {
  color-scheme: light;
  --bg: #f3f1e8;
  --surface: #fffdf7;
  --surface-soft: #edf2e4;
  --ink: #243127;
  --muted: #6f7668;
  --line: #d8d3bf;
  --blue-950: #1d2d22;
  --blue-900: #284835;
  --blue-800: #356747;
  --blue-700: #527a3f;
  --blue-600: #63884a;
  --teal: #6d8f53;
  --heading-green: #183d24;
  --gold: #b78a46;
  --clay: #9a6349;
  --danger: #a84a3a;
  --shadow: 0 18px 44px rgba(36, 49, 39, 0.16);
  --shadow-soft: 0 10px 24px rgba(36, 49, 39, 0.1);
  font-family: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #e7ead9 0, var(--bg) 220px, #f6f2e6 100%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: var(--blue-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal);
}

.site-header {
  position: relative;
  background:
    linear-gradient(135deg, #c7dcc2 0%, #9eb87b 48%, #c9ddd0 100%);
  color: var(--blue-950);
  z-index: 20;
  border-bottom: 1px solid rgba(82, 122, 63, 0.3);
  box-shadow: 0 14px 34px rgba(36, 49, 39, 0.18);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-900), var(--clay), #3f7358);
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  padding: 0 0 0 14px;
  color: var(--blue-950);
  text-decoration: none;
  position: relative;
}

.brand::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--blue-900), var(--clay));
}

.brand span {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.year-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 11px;
  border: 1px solid rgba(82, 122, 63, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.74);
  color: var(--blue-950);
  font-weight: 800;
}

.site-menu {
  align-self: start;
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 0;
}

.menu-toggle {
  display: none;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(82, 122, 63, 0.35);
  border-radius: 6px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.menu-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.menu-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.menu-section-title {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  background: var(--blue-900);
  color: #fff;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.menu-section-title::after {
  content: "v";
  float: right;
  color: #d7e6cf;
}

.menu-section-title[aria-expanded="false"]::after {
  content: ">";
}

.menu-section-links {
  display: flex;
  flex-direction: column;
  padding: 6px;
  gap: 2px;
}

.menu-section-links[hidden] {
  display: none;
}

.menu-section-links a {
  color: var(--blue-800);
  text-decoration: none;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.94rem;
}

.menu-section-links a:hover,
.menu-section-links a.active {
  background: #e4ead8;
  color: var(--blue-950);
}

.layout {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 44px) clamp(14px, 4vw, 34px);
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(0, 920px);
  gap: clamp(18px, 3vw, 34px);
  justify-content: center;
}

.content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 42px);
  position: relative;
}

.content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--blue-700), var(--gold), transparent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 360px;
  margin: calc(clamp(18px, 4vw, 42px) * -1) calc(clamp(18px, 4vw, 42px) * -1) clamp(26px, 4vw, 42px);
  position: relative;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: var(--blue-900);
}

.hero img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(0.86) brightness(0.58);
}

.front-hero-image {
  min-height: 0;
  margin: 0 0 clamp(24px, 4vw, 38px);
  border-radius: 8px;
  background: transparent;
}

.front-hero-image img {
  height: auto;
  min-height: 0;
  max-height: 520px;
  border-radius: 8px;
  filter: none;
  box-shadow: var(--shadow-soft);
}

.hero-text {
  position: absolute;
  inset: auto clamp(18px, 6vw, 64px) clamp(26px, 6vw, 64px);
  max-width: 720px;
  color: #fff;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--heading-green);
}

h1 {
  font-size: clamp(1.85rem, 3.7vw, 3.35rem);
  margin: 0 0 18px;
  text-shadow: 0 2px 9px rgba(24, 61, 36, 0.18);
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  margin: 38px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(82, 122, 63, 0.24);
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 82px;
  height: 2px;
  background: var(--gold);
}

h3 {
  font-size: 1.22rem;
  margin: 22px 0 10px;
}

h4 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.34);
}

.hero p {
  max-width: 660px;
  margin: 0;
  font-size: 1.13rem;
  color: #edf4e6;
}

.intro {
  padding: 16px 18px;
  border-left: 4px solid var(--teal);
  background: var(--surface-soft);
  border-radius: 6px;
  margin-bottom: 22px;
}

.rich-text p:first-child,
.intro p:first-child {
  margin-top: 0;
}

.rich-text p:last-child,
.intro p:last-child {
  margin-bottom: 0;
}

.content-image {
  margin: 22px 0;
}

.content-image img,
.hero img {
  border-radius: 8px;
}

.content-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.96rem;
}

th,
td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: linear-gradient(180deg, #e4ead8, #d9e5ce);
  color: var(--blue-950);
  font-weight: 800;
}

.table-wrap a {
  color: var(--blue-950);
  font-weight: 400;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.table-wrap a:hover {
  color: var(--blue-700);
}

tr:nth-child(even) td {
  background: #faf8ef;
}

tbody tr:hover td {
  background: #f0f3e7;
}

tr:last-child td {
  border-bottom: 0;
}

.table-wrap-compact table,
table.date-table,
table.summary-table {
  min-width: 0;
}

.date-table th:last-child,
.date-table td:last-child {
  width: 42%;
}

.summary-table th {
  width: 70%;
}

.summary-table td {
  text-align: right;
  font-weight: 800;
  color: var(--blue-950);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(47, 90, 58, 0.26);
  background: #d6e4c6;
  color: #102b18;
  font-size: 0.82rem;
  font-weight: 400;
  text-decoration: none;
}

.badge:hover {
  border-color: rgba(47, 90, 58, 0.46);
  background: #c6d9b5;
  color: #071d0f;
}

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

.sun-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.day-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}

.day-card,
.category-card,
.event-detail,
.sun-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.day-card {
  background:
    linear-gradient(135deg, rgba(82, 122, 63, 0.14), rgba(183, 138, 70, 0.12)),
    var(--surface);
  box-shadow: 0 14px 34px rgba(36, 49, 39, 0.12);
}

.sun-summary article p {
  margin: 4px 0;
}

.sun-timeline {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  padding-left: 18px;
  border-left: 4px solid var(--blue-700);
}

.sun-event {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  position: relative;
  min-height: 42px;
}

.sun-event::before {
  content: "";
  position: absolute;
  left: -29px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue-700);
  box-shadow: 0 0 0 1px var(--blue-700);
}

.sun-event time {
  font-weight: 900;
  color: var(--blue-950);
}

.sun-event span {
  color: var(--ink);
}

.sun-event.important span {
  font-weight: 900;
}

.back-link {
  margin-top: 18px;
  font-weight: 800;
}

.day-card ul {
  margin: 0;
  padding-left: 18px;
}

.day-card li + li {
  margin-top: 6px;
}

.day-card span:not(.badges):not(.badge) {
  font-weight: 800;
  color: var(--blue-800);
}

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

.day-card .day-events li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(82, 122, 63, 0.24);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.78);
  box-shadow: 0 4px 12px rgba(36, 49, 39, 0.06);
}

.day-card .day-events li + li {
  margin-top: 0;
}

.day-event-title a,
.day-event-title span {
  color: var(--blue-950);
  font-weight: 400;
  text-decoration-thickness: 1px;
}

.day-card .day-events .badges {
  justify-content: flex-end;
}

.day-card .day-events .badge {
  color: #102b18;
  font-weight: 400;
}

.muted {
  color: var(--muted);
}

.front-category {
  margin-top: 28px;
}

.category-card p {
  margin: 0 0 10px;
}

.next-event {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.text-link {
  font-weight: 800;
}

.quick-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.date-picker {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.date-picker label {
  display: grid;
  gap: 5px;
  font-weight: 800;
}

.date-picker input {
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid #c9c2aa;
  border-radius: 6px;
  font: inherit;
}

.date-picker button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--blue-700);
  border-radius: 6px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.quick-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  background: var(--surface);
  color: var(--blue-800);
  font-weight: 700;
}

.quick-nav a.active,
.quick-nav a:hover {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: #fff;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 18px 0;
}

.calendar-head,
.calendar-cell {
  min-height: 96px;
  background: var(--surface);
  padding: 10px;
}

.calendar-head {
  min-height: 42px;
  font-weight: 900;
  text-align: center;
  background: #e4ead8;
  color: var(--blue-950);
}

.calendar-cell strong {
  display: block;
  margin-bottom: 6px;
}

.calendar-cell span {
  display: block;
  font-size: 0.82rem;
  color: var(--danger);
  font-weight: 700;
}

.calendar-cell.weekend {
  background: #f1efe3;
}

.calendar-cell.holiday {
  box-shadow: inset 0 0 0 2px rgba(168, 74, 58, 0.32);
}

.calendar-cell.muted {
  background: #ece8d8;
}

.year-calendar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 30px;
}

.month-calendar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.month-calendar h3 {
  margin: 0;
  padding: 10px 12px;
  background: linear-gradient(90deg, var(--blue-900), var(--blue-700));
  color: #fff;
  font-size: 1rem;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.month-head,
.month-day {
  display: grid;
  place-items: center;
  min-height: 32px;
  padding: 4px 2px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
}

.month-head {
  min-height: 28px;
  background: #dfe8d5;
  color: var(--blue-950);
  font-weight: 800;
}

.month-day.weekend {
  background: #f1efe3;
  color: var(--danger);
}

.month-day.holiday {
  background: #b74f3f;
  color: #fff;
  font-weight: 800;
}

.month-day.holiday:hover {
  background: #963d31;
  color: #fff;
}

.month-day.muted {
  background: #ece8d8;
}

.month-events {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 10px 12px 12px;
  list-style: none;
  font-size: 0.9rem;
}

.month-events li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
}

.month-events span {
  color: var(--danger);
  font-weight: 800;
}

.month-events a {
  color: var(--blue-950);
  font-weight: 400;
}

.related-links {
  columns: 2 260px;
  padding-left: 20px;
}

.name-list a {
  font-weight: 800;
}

.name-summary {
  padding: 14px 16px;
  border-left: 4px solid var(--blue-600);
  background: #edf2e4;
  border-radius: 8px;
  color: var(--blue-950);
}

ins.adsbygoogle {
  clear: both;
  max-width: 100%;
  margin: 26px 0 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(16px, 4vw, 36px);
  background: var(--blue-950);
  color: #dce8d3;
}

.site-footer a {
  color: #fff;
}

.site-footer nav {
  display: flex;
  gap: 12px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #c9c2aa;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cc-banner p {
  margin: 0;
}

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

.button,
.cc-actions button {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--blue-700);
  background: var(--blue-700);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.cc-actions button.secondary {
  background: var(--surface);
  color: var(--blue-700);
}

@media (max-width: 760px) {
  .header-inner {
    padding: 12px 14px;
  }

  .brand {
    padding-bottom: 0;
  }

  .brand span {
    font-size: 1.28rem;
  }

  .year-pill {
    display: none;
  }

  .layout {
    display: block;
  }

  .site-menu {
    position: static;
    max-height: none;
    overflow: visible;
    margin-bottom: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-900);
  }

  .menu-groups {
    margin-top: 10px;
    grid-template-columns: 1fr;
  }

  .site-menu.collapsed .menu-groups {
    display: none;
  }

  .content {
    padding: 18px;
  }

  .hero {
    min-height: 340px;
    margin: -18px -18px 24px;
  }

  .hero img {
    min-height: 340px;
  }

  .front-hero-image {
    min-height: 0;
    margin: 0 0 24px;
  }

  .front-hero-image img {
    min-height: 0;
    max-height: none;
  }

  h1 {
    font-size: 2rem;
  }

  .category-grid,
  .year-calendar {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .calendar-head {
    display: none;
  }

  .day-card .day-events li {
    grid-template-columns: minmax(0, 1fr);
  }

  .day-card .day-events .badges {
    justify-content: flex-start;
  }

  .site-footer,
  .cc-banner {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .cc-actions {
    justify-content: stretch;
  }

  .cc-actions button {
    flex: 1;
  }

  .table-wrap-compact {
    overflow-x: visible;
  }

  .date-table th,
  .date-table td,
  .summary-table th,
  .summary-table td {
    padding: 8px;
    font-size: 0.9rem;
  }

  .date-table .badges {
    gap: 4px;
  }

  .month-head,
  .month-day {
    min-height: 30px;
    font-size: 0.82rem;
  }

  ins.adsbygoogle {
    margin: 18px 0 0;
  }
}
