*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #16324a;
  --ink-deep: #0b2235;
  --red: #a9342a;
  --red-dark: #81251e;
  --paper: #fffdf9;
  --paper-deep: #f3eee3;
  --surface: #ffffff;
  --line: #c4cbc9;
  --line-dark: #78858a;
  --text: #19262d;
  --muted: #52616a;
  --zone-a: #dbeafe;
  --zone-a-ink: #1e3a8a;
  --zone-b: #ede9fe;
  --zone-b-ink: #4c1d95;
  --zone-c: #fef3c7;
  --zone-c-ink: #78350f;
  --vacation: #f3f4f6;
  --weekend: #f1f0ec;
  --holiday: #fae5df;
  --max-width: 1380px;
  --reading-width: 1180px;
  --focus: #e39b19;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  display: block;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--ink) 0 72%, var(--red) 72%);
  content: "";
}

a {
  color: var(--ink);
  text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent);
  text-underline-offset: .18em;
}

a:hover {
  color: var(--red-dark);
  text-decoration-color: currentColor;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

sup {
  font-size: .64em;
}

h1,
h2,
h3,
.brand-copy strong,
.year-facts-title {
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.12;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.25rem, 5vw, 4.9rem);
  letter-spacing: -.045em;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  letter-spacing: -.025em;
}

h3 {
  font-size: 1.08rem;
}

p + p {
  margin-top: .75rem;
}

ul {
  padding-left: 1.15rem;
}

.container {
  width: min(100% - 36px, var(--max-width));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  transform: translateY(-180%);
  border: 2px solid #fff;
  color: #fff;
  background: var(--ink);
  font-weight: 700;
}

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

.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, .98);
}

.header-inner {
  display: flex;
  width: min(100% - 36px, var(--max-width));
  min-height: 84px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
  text-decoration: none;
}

.brand-date {
  display: grid;
  width: 52px;
  height: 58px;
  border: 1px solid var(--ink);
  grid-template-rows: 20px 1fr;
  background: var(--surface);
  text-align: center;
}

.brand-date small {
  padding-top: 2px;
  color: #fff;
  background: var(--red);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.brand-date strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.55rem;
  line-height: 36px;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 1.14rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .02em;
}

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

.primary-nav a {
  padding: 9px 11px;
  border-bottom: 2px solid transparent;
  color: var(--text);
  font-size: .85rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  border-bottom-color: var(--red);
  color: var(--ink);
}

.primary-nav .nav-download {
  margin-left: 6px;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.primary-nav .nav-download:hover,
.primary-nav .nav-download[aria-current="page"] {
  color: #fff;
  background: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  min-width: 74px;
  min-height: 44px;
  padding: 8px;
  gap: 9px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: .85rem;
  font-weight: 750;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

.month-strip {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.month-strip-inner {
  display: grid;
  width: min(100% - 36px, var(--reading-width));
  margin-inline: auto;
  grid-template-columns: repeat(12, 1fr);
}

.month-strip a {
  padding: 7px 4px;
  border-inline-start: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .035em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.month-strip a:last-child {
  border-inline-end: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.month-strip a:hover,
.month-strip a[aria-current="page"] {
  color: #fff;
  background: var(--ink);
}

main.container {
  padding-top: clamp(40px, 6vw, 84px);
  padding-bottom: clamp(70px, 8vw, 120px);
}

main > section + section {
  margin-top: clamp(64px, 9vw, 126px);
}

.eyebrow {
  margin-bottom: 9px;
  color: var(--red-dark);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.65;
}

.home-hero {
  display: grid;
  min-height: 430px;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line-dark);
}

.hero-copy {
  display: flex;
  padding: 38px clamp(24px, 5vw, 72px) 52px 0;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h1 {
  margin-bottom: 24px;
}

.hero-copy .lead {
  max-width: 790px;
}

.hero-actions,
.button-row {
  display: flex;
  margin-top: 28px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.button,
.download-choice {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
}

.button:hover,
.download-choice:hover {
  color: #fff;
  background: var(--red-dark);
  text-decoration: none;
}

.button-secondary {
  color: var(--ink);
  background: transparent;
}

.button-secondary:hover {
  color: #fff;
  background: var(--ink);
}

.text-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 750;
}

.year-facts {
  display: flex;
  padding: 34px 30px;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line-dark);
  background: var(--paper-deep);
}

.year-facts-title {
  margin-bottom: 22px;
  font-size: 1.35rem;
}

.year-facts dl {
  border-top: 1px solid var(--line-dark);
}

.year-facts dl div {
  display: grid;
  padding: 11px 0;
  grid-template-columns: 1fr auto;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.year-facts dt {
  color: var(--muted);
  font-size: .77rem;
}

.year-facts dd {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: .88rem;
  font-weight: 700;
  text-align: right;
}

.year-facts > p:last-child {
  margin-top: 18px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.55;
}

.page-heading {
  max-width: 1060px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line-dark);
}

.page-heading h1 {
  margin-bottom: 22px;
}

.page-heading .hero-actions {
  margin-top: 24px;
}

.section-heading {
  max-width: 920px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 10px;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
}

.annual-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.annual-heading > div {
  max-width: 860px;
}

.calendar-key,
.legend,
.legend-row {
  display: flex;
  padding: 10px 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
}

.calendar-key > span,
.legend > span,
.legend-row > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.key-mark,
.legend-swatch,
.swatch {
  display: inline-block;
  width: 15px;
  height: 12px;
  border: 1px solid var(--line-dark);
}

.holiday-key,
.holiday-swatch,
.sw-hol {
  border-left: 4px solid var(--red);
  background: var(--holiday);
}

.weekend-swatch,
.sw-wknd {
  background: var(--weekend);
}

.key-zone,
.inline-zone,
.zone-label,
.cal-zone {
  display: inline-grid;
  min-width: 19px;
  min-height: 19px;
  padding: 0 3px;
  place-items: center;
  border: 1px solid currentColor;
  font-size: .67rem;
  font-weight: 800;
  line-height: 1;
}

.zone-a,
.cal-zone-a,
.zone-a-swatch,
.sw-za {
  color: var(--zone-a-ink);
  background: var(--zone-a);
}

.zone-b,
.cal-zone-b,
.zone-b-swatch,
.sw-zb {
  color: var(--zone-b-ink);
  background: var(--zone-b);
}

.zone-c,
.cal-zone-c,
.zone-c-swatch,
.sw-zc {
  color: var(--zone-c-ink);
  background: var(--zone-c);
}

.key-week,
.cal-week,
.week-pill {
  color: var(--ink);
  font-size: .66rem;
  font-weight: 800;
}

.key-moon,
.cal-moon,
.legend-moon {
  color: var(--ink);
  font-size: 1rem;
}

.tbl-wrap {
  margin-top: 24px;
}

.cal-grid {
  display: grid;
  gap: 48px;
}

.cal-semester {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.cal-month {
  min-width: 0;
  border-top: 3px solid var(--ink);
  background: var(--surface);
}

.cal-mh {
  margin: 0;
  border-bottom: 1px solid var(--ink);
  font-size: .88rem;
  letter-spacing: .025em;
  text-align: center;
  text-transform: uppercase;
}

.cal-mh a {
  display: block;
  padding: 8px 3px;
  text-decoration: none;
}

.cal-days {
  display: grid;
}

.cal-cell {
  display: grid;
  min-width: 0;
  min-height: 32px;
  padding: 2px;
  grid-template-columns: 25px 27px minmax(0, 1fr) auto;
  gap: 2px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: .66rem;
  text-decoration: none;
}

.cal-cell:hover {
  position: relative;
  z-index: 1;
  color: var(--ink);
  background: #e7f0f5;
  box-shadow: 0 0 0 2px var(--ink);
  text-decoration: none;
}

.cal-cell.is-weekend {
  background: var(--weekend);
}

.cal-cell.is-vacation:not(.is-holiday) {
  background: #eff6f0;
}

.cal-cell.is-holiday {
  border-left: 4px solid var(--red);
  background: var(--holiday);
}

.cal-cell.is-observance .cal-info {
  font-weight: 750;
  text-decoration: underline dotted;
}

.cal-dow {
  overflow: hidden;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 750;
  text-decoration: none;
}

.cal-number {
  color: var(--ink-deep);
  font-size: .78rem;
  text-align: center;
}

.cal-info {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-cell.is-holiday .cal-info,
.cal-cell.is-holiday .cal-number {
  color: var(--red-dark);
  font-weight: 800;
}

.cal-meta,
.cal-zones {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  white-space: nowrap;
}

.cal-zone {
  min-width: 16px;
  min-height: 16px;
  padding: 0 2px;
  font-size: .54rem;
}

.download-feature {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 94px);
  align-items: center;
  border-block: 1px solid var(--line-dark);
  background: var(--paper-deep);
}

.download-preview {
  display: block;
  padding: 30px;
  background: var(--ink);
}

.download-preview img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 12px 24px rgba(8, 27, 41, .24);
}

.download-copy {
  padding: 40px 40px 40px 0;
}

.download-copy h2 {
  max-width: 650px;
  margin-bottom: 18px;
}

.download-copy > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
}

.check-list {
  display: grid;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  font-size: .86rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--red);
  content: "✓";
  font-weight: 900;
}

.planning-links {
  display: grid;
  border-top: 1px solid var(--line-dark);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.planning-links a {
  display: grid;
  min-height: 126px;
  padding: 22px 24px;
  grid-template-columns: 42px 1fr;
  gap: 3px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.planning-links a:nth-child(2n) {
  border-right: 0;
}

.planning-links a:hover {
  color: var(--text);
  background: var(--paper-deep);
}

.planning-links a > span {
  grid-row: 1 / 3;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

.planning-links strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.planning-links small {
  color: var(--muted);
  font-size: .8rem;
}

.panel,
.availability-note,
.method-note,
.data-downloads,
.cta-line {
  margin-top: 34px;
  padding: 24px 28px;
  border-block: 1px solid var(--line-dark);
  background: var(--paper-deep);
}

.panel h2,
.availability-note h2,
.method-note h2,
.data-downloads h2 {
  margin-bottom: 12px;
}

.availability-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  font-size: .83rem;
}

.availability-note strong {
  color: var(--red-dark);
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.availability-note p {
  margin: 0;
  color: var(--muted);
}


.source-links {
  display: grid;
  justify-items: start;
  gap: 4px;
}
.holiday-list {
  display: grid;
  margin-top: 22px;
  border-top: 1px solid var(--line-dark);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.holiday-item {
  display: grid;
  min-height: 92px;
  padding: 16px;
  grid-template-columns: 54px 1fr;
  gap: 15px;
  align-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.holiday-item:nth-child(3n) {
  border-right: 0;
}

.holiday-item time {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px solid var(--red);
  color: var(--red-dark);
  line-height: 1;
}

.holiday-item time span {
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.holiday-item time small {
  font-size: .62rem;
}

.holiday-item h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.holiday-item p {
  color: var(--muted);
  font-size: .76rem;
}

.zone-periods {
  display: grid;
  margin-top: 22px;
  border-top: 1px solid var(--line-dark);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zone-panel {
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.zone-panel:last-child {
  border-right: 0;
}

.zone-panel h3 {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 8px;
  border: 1px solid currentColor;
}

.zone-panel ul,
.compact-list,
.event-list {
  display: grid;
  padding: 0;
  list-style: none;
  gap: 10px;
}

.zone-panel li {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: .78rem;
}

.zone-panel li strong {
  color: var(--text);
}

.zone-panel-a {
  border-top: 4px solid var(--zone-a-ink);
}

.zone-panel-b {
  border-top: 4px solid var(--zone-b-ink);
}

.zone-panel-c {
  border-top: 4px solid var(--zone-c-ink);
}

.zone-academies {
  min-height: 5.5em;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}

.zone-academies strong {
  color: var(--text);
}

.period-dates {
  display: grid;
  gap: 1px;
}

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

.zone-key-list li {
  display: grid;
  align-items: start;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

.zone-key-list strong {
  color: var(--text);
}

.overlap-note {
  max-width: 78ch;
  margin: 12px 0 20px;
  padding: 10px 12px;
  border-left: 3px solid var(--ink);
  color: var(--muted);
  background: var(--vacation);
  font-size: .8rem;
}

.overlap-note strong {
  color: var(--text);
}

.note {
  margin-top: 14px;
  color: var(--muted);
  font-size: .8rem;
}

.info-columns,
.event-columns {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.compact-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  font-size: .8rem;
}

.theme-calendar {
  margin-top: 60px;
}

.theme-calendar > h2 {
  margin-bottom: 24px;
}

.calendar-table-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 16px;
}

.theme-month {
  min-width: 0;
  border-top: 3px solid var(--ink);
}

.theme-month h3 {
  border-bottom: 1px solid var(--ink);
  font-size: .9rem;
  text-align: center;
  text-transform: uppercase;
}
.observance-label {
  color: var(--ink);
  text-decoration: underline dotted;
}

.zone-list {
  display: inline-flex;
  margin-left: 8px;
  gap: 3px;
  vertical-align: middle;
}

.arrow-back {
  display: inline-block;
  transform: rotate(180deg);
}

.theme-month h3 a {
  display: block;
  padding: 8px;
  text-decoration: none;
}

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

.theme-day {
  position: relative;
  display: grid;
  min-height: 42px;
  padding: 3px 1px;
  place-items: center;
  gap: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: .58rem;
  text-decoration: none;
}

.theme-day:nth-child(7n) {
  border-right: 0;
}

.theme-day strong {
  color: var(--ink-deep);
  font-size: .76rem;
}

.theme-day.is-weekend {
  background: var(--weekend);
}

.theme-day.is-holiday {
  box-shadow: inset 3px 0 var(--red);
  background: var(--holiday);
}

.theme-day.is-vacation {
  background: var(--vacation);
}

.theme-day.zone-a,
.theme-day.zone-b,
.theme-day.zone-c {
  color: var(--text);
}

.theme-day.zone-a {
  background: var(--zone-a);
}

.theme-day.zone-b {
  background: var(--zone-b);
}

.theme-day.zone-c {
  background: var(--zone-c);
}

.zone-marks {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12px;
  gap: 1px;
}

.zone-marks .inline-zone {
  min-width: 11px;
  min-height: 11px;
  padding: 0;
  font-size: .46rem;
  letter-spacing: 0;
}

.holiday-dot,
.moon-mark {
  color: var(--red-dark);
  font-size: .62rem;
}

.week-pair,
.even-swatch,
.even-key {
  background: #e5eef3;
}

.week-impair,
.odd-swatch,
.odd-key {
  background: #f0eadf;
}

.even-odd-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.even-odd-key > div {
  display: grid;
  padding: 20px;
  gap: 4px;
}

.moon-phase-list {
  display: grid;
  margin-top: 22px;
  border-top: 1px solid var(--line-dark);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.moon-phase-item {
  display: grid;
  padding: 15px;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.moon-phase-item:nth-child(4n) {
  border-right: 0;
}

.moon-icon {
  grid-row: 1 / 3;
  color: var(--ink);
  font-size: 1.7rem;
}

.moon-phase-item time {
  color: var(--muted);
  font-size: .7rem;
}

.moon-phase-item h3 {
  font-size: .83rem;
}

.table-scroll {
  max-width: 100%;
  margin-top: 20px;
  overflow-x: auto;
  border-top: 2px solid var(--ink);
}

.month-table,
.week-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--surface);
}

.month-table th,
.month-table td,
.week-table th,
.week-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
  text-align: left;
}

.month-table thead th,
.week-table thead th {
  color: #fff;
  background: var(--ink);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.month-table .weekend-row,
.week-table tr:nth-child(even) {
  background: var(--weekend);
}

.month-table .holiday-row {
  box-shadow: inset 4px 0 var(--red);
  background: var(--holiday);
}

.week-kind {
  margin-left: 5px;
  color: var(--muted);
  font-size: .65rem;
}

.holiday-label {
  color: var(--red-dark);
}

.moon-large {
  color: var(--ink);
  font-size: 1.15rem;
}

.moon-name,
.saint-label {
  margin-left: 7px;
  color: var(--muted);
  font-size: .72rem;
}

.page-pagination {
  display: grid;
  margin-bottom: 28px;
  grid-template-columns: 1fr auto 1fr;
  border-block: 1px solid var(--line);
}

.page-pagination a {
  padding: 9px 12px;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.page-pagination a:last-child {
  text-align: right;
}

.month-events {
  margin-top: 42px;
}

.event-list li {
  font-size: .82rem;
}

.month-overview-grid {
  display: grid;
  margin-top: 22px;
  border-top: 1px solid var(--line-dark);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.month-overview-card {
  display: grid;
  min-height: 152px;
  padding: 22px;
  grid-template-columns: auto 1fr;
  gap: 5px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.month-overview-card:nth-child(3n) {
  border-right: 0;
}

.month-overview-card:hover {
  color: var(--text);
  background: var(--paper-deep);
}

.month-number {
  grid-row: 1 / 4;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 1.6rem;
}

.month-overview-card p,
.card-arrow {
  color: var(--muted);
  font-size: .78rem;
}

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

.highlight-grid > div {
  display: grid;
  padding: 20px;
  place-items: center;
  background: var(--surface);
}

.highlight-grid strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.8rem;
}

.highlight-grid span {
  color: var(--muted);
  font-size: .75rem;
}

.semester-grid {
  display: grid;
  gap: 60px;
}

.semester-card {
  border-top: 3px solid var(--ink);
}

.semester-card > header {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}

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

.semester-month {
  padding-top: 14px;
}

.semester-month h3 {
  margin-bottom: 8px;
  font-size: .9rem;
  text-transform: uppercase;
}

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

.semester-day {
  display: grid;
  min-height: 30px;
  place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .68rem;
  text-decoration: none;
}

.semester-day.is-holiday {
  color: var(--red-dark);
  background: var(--holiday);
}

.semester-day.has-school {
  box-shadow: inset 0 -3px var(--zone-b-ink);
}

.download-heading {
  max-width: 980px;
}

.download-table {
  border-top: 2px solid var(--ink);
}

.download-row {
  display: grid;
  min-height: 104px;
  padding: 16px 0;
  grid-template-columns: minmax(260px, 1.4fr) minmax(150px, .55fr) minmax(310px, .9fr);
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.download-row h3 {
  margin-bottom: 5px;
}

.download-row p {
  color: var(--muted);
  font-size: .78rem;
}

.file-format {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 650;
}

.download-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.download-choice {
  gap: 7px;
  padding: 9px;
  font-size: .75rem;
}

.download-choice span {
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
}

.color-choice span {
  border-color: #fff;
  background: linear-gradient(135deg, #d8ecf8 0 33%, #ddefdf 33% 66%, #f8e8b9 66%);
}

.bw-choice {
  color: var(--ink);
  background: transparent;
}

.bw-choice span {
  background: linear-gradient(135deg, #fff 0 50%, #222 50%);
}

.download-choice small {
  opacity: .72;
}

.preview-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.preview-comparison figure {
  display: grid;
  padding: clamp(18px, 4vw, 46px);
  background: var(--paper-deep);
}

.preview-comparison .preview-image {
  display: block;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(11, 34, 53, .16);
}

.preview-comparison figcaption {
  display: grid;
  margin-top: 16px;
  gap: 7px;
}

.preview-comparison figcaption strong {
  color: var(--ink);
  font-family: Georgia, serif;
}

.preview-comparison figcaption span {
  color: var(--muted);
  font-size: .78rem;
}

.preview-comparison figcaption .preview-download {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
  border-color: var(--ink);
  box-shadow: none;
}

.month-downloads {
  display: grid;
  border-top: 2px solid var(--ink);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.month-downloads > div {
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.month-downloads > div:nth-child(3n) {
  border-right: 0;
}

.month-download-actions {
  display: grid;
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.month-downloads a {
  display: inline-flex;
  min-height: 44px;
  padding: 9px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: .7rem;
  text-decoration: none;
}

.month-downloads a + a {
  border-left: 1px solid var(--ink);
}

.month-downloads a:hover {
  color: #fff;
  background: var(--red-dark);
}

.month-downloads strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: .92rem;
}

.data-downloads,
.cta-line,
.method-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
}

.data-downloads p,
.method-note > p {
  max-width: 800px;
  color: var(--muted);
}

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

.bridge-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.bridge-highlights article {
  display: grid;
  min-height: 190px;
  padding: 28px;
  grid-template-columns: 74px 1fr;
  gap: 22px;
  align-items: center;
  background: var(--surface);
}

.bridge-highlights time {
  display: grid;
  min-height: 82px;
  place-items: center;
  border: 1px solid var(--red);
  color: var(--red-dark);
  line-height: 1;
}

.bridge-highlights time span {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
}

.bridge-highlights time small {
  font-size: .8rem;
}

.bridge-type {
  margin-bottom: 6px;
  color: var(--red-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bridge-highlights h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.bridge-highlights article p:last-child {
  color: var(--muted);
  font-size: .82rem;
}

.bridge-list {
  border-top: 2px solid var(--ink);
}

.bridge-list article {
  display: grid;
  min-height: 86px;
  padding: 15px 0;
  grid-template-columns: 170px 1fr auto;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.bridge-dates {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: .8rem;
}

.bridge-dates span,
.bridge-list p {
  color: var(--muted);
  font-size: .75rem;
}

.bridge-days {
  padding: 6px 9px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 800;
}

.cta-line {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.cta-line > div {
  display: grid;
}

.cta-line span {
  color: var(--muted);
  font-size: .8rem;
}

.site-footer {
  border-top: 4px solid var(--ink);
  color: #dbe3e6;
  background: var(--ink-deep);
}

.footer-inner {
  display: grid;
  width: min(100% - 36px, var(--reading-width));
  margin-inline: auto;
  padding: 48px 0;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 56px;
}

.footer-intro strong {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.footer-intro p {
  max-width: 420px;
  margin-top: 10px;
  color: #abb9bf;
  font-size: .8rem;
}

.footer-inner nav {
  display: grid;
  align-content: start;
  gap: 7px;
}

.footer-inner h2 {
  margin-bottom: 6px;
  color: #fff;
  font-family: inherit;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-inner a {
  color: #dbe3e6;
  font-size: .78rem;
}

.footer-bottom {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #91a2a9;
  font-size: .67rem;
  text-align: center;
}

button {
  cursor: pointer;
}

.home-directory > .section-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.feature-nav-grid,
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}

.feature-nav-grid a,
.tool-card {
  display: flex;
  min-height: 210px;
  padding: 24px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.feature-nav-grid a:nth-child(4n),
.tool-card:nth-child(4n) {
  border-right: 0;
}

.feature-nav-grid a:hover,
.tool-card:hover {
  color: var(--text);
  background: var(--paper-deep);
}

.feature-nav-grid small,
.tool-card > span,
.season-card > span {
  margin-bottom: auto;
  color: var(--red-dark);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.feature-nav-grid strong,
.tool-card h2 {
  margin: 26px 0 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.2;
}

.feature-nav-grid span,
.tool-card p {
  color: var(--muted);
  font-size: .8rem;
}

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

.feature-nav-grid-compact a:nth-child(4n) {
  border-right: 1px solid var(--line);
}

.feature-nav-grid-compact a:nth-child(3n) {
  border-right: 0;
}

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

.tool-card {
  min-height: 230px;
}

.tool-card:nth-child(4n) {
  border-right: 1px solid var(--line);
}

.tool-card:nth-child(3n) {
  border-right: 0;
}

.tool-card b {
  margin-top: 22px;
  color: var(--ink);
  font-size: .82rem;
}

.dates-table-wrap,
.table-scroll {
  overflow-x: auto;
  border-top: 1px solid var(--line-dark);
}

.dates-table,
.date-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.dates-table thead th,
.date-table thead th {
  padding: 11px 14px;
  color: #fff;
  background: var(--ink);
  font-size: .69rem;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
}

.dates-table td,
.date-table td,
.date-table tbody th {
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .84rem;
  text-align: left;
  vertical-align: top;
}

.dates-table td:last-child,
.dates-table th:last-child,
.date-table td:last-child,
.date-table th:last-child {
  border-right: 0;
}

.dates-table tbody tr:hover,
.date-table tbody tr:hover {
  background: var(--paper-deep);
}

.date-badge {
  display: inline-flex;
  min-width: 122px;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 750;
}

.date-badge b {
  min-width: 30px;
  color: var(--red-dark);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  text-align: right;
}

.source-line {
  margin-top: 18px;
  color: var(--muted);
  font-size: .76rem;
}

.section-number {
  display: inline-flex;
  min-width: 48px;
  min-height: 48px;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red);
  color: var(--red-dark);
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.season-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}

.season-card {
  display: flex;
  min-height: 245px;
  padding: 26px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.season-card:last-child {
  border-right: 0;
}

.season-card h2 {
  margin: 30px 0 6px;
  font-size: 1.55rem;
}

.season-date {
  color: var(--red-dark);
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.season-time {
  margin-top: auto;
  color: var(--muted);
  font-size: .78rem;
}

.season-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}

.season-item {
  display: flex;
  min-height: 245px;
  padding: 26px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.season-item:last-child {
  border-right: 0;
}

.season-item > span {
  margin-bottom: auto;
  color: var(--red-dark);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.season-item h2 {
  margin: 30px 0 10px;
  font-size: 1.55rem;
}

.season-item time {
  display: grid;
  margin-top: auto;
  gap: 6px;
  color: var(--muted);
  font-size: .8rem;
}

.season-item time strong {
  color: var(--ink);
  font-size: .9rem;
}

.zone-page {
  border-top: 6px solid var(--ink);
}

.zone-page > .section-heading {
  max-width: none;
  margin: 0;
  padding: 30px 26px 18px;
}

.zone-summary {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.8fr);
  border-bottom: 1px solid var(--line-dark);
}

.zone-summary header,
.zone-detail {
  padding: 30px;
}

.zone-summary header {
  color: #fff;
  background: var(--ink);
}

.zone-summary header h2 {
  margin: 5px 0 14px;
  color: #fff;
  font-size: 3.6rem;
}

.zone-summary header span,
.zone-summary header small {
  display: block;
}

.zone-summary header span {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.zone-summary header small {
  color: #dbe3e6;
}

.zone-detail h3 {
  margin-bottom: 12px;
}

.town-list {
  display: flex;
  padding: 0;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.town-list li {
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: .74rem;
}

.zone-period-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.zone-period-list article {
  padding: 22px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.zone-period-list article:nth-child(2n) {
  border-right: 0;
}

.zone-period-list h3 {
  margin-bottom: 7px;
}

.zone-period-list p {
  color: var(--muted);
  font-size: .82rem;
}

.tool-panel {
  padding: 28px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line-dark);
  background: var(--paper-deep);
}

.tool-panel h2 {
  margin-bottom: 22px;
}

.tool-form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
}

.tool-form label {
  display: grid;
  min-width: min(100%, 210px);
  flex: 1 1 210px;
  gap: 7px;
  color: var(--ink);
  font-size: .76rem;
  font-weight: 750;
}

.tool-form input,
.tool-form select {
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  color: var(--text);
  background: #fff;
  font: inherit;
}

.tool-form input:focus-visible,
.tool-form select:focus-visible,
.planning-lines:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.calculator-result {
  display: grid;
  min-height: 150px;
  padding: 28px;
  place-content: center;
  gap: 8px;
  border-block: 1px solid var(--line-dark);
  text-align: center;
}

.calculator-result strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
}

.calculator-result span {
  color: var(--muted);
}

.planning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}

.planning-month {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.planning-month:nth-child(3n) {
  border-right: 0;
}

.planning-month header {
  display: grid;
  padding: 13px 16px;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 10px;
  color: #fff;
  background: var(--ink);
}

.planning-month header span,
.planning-month header small {
  font-size: .65rem;
}

.planning-month header h2 {
  color: #fff;
  font-size: 1.2rem;
}

.planning-lines {
  min-height: 230px;
  padding: 7px 16px 16px;
  background: #fff;
}

.planning-lines > div {
  min-height: 35px;
  padding: 7px 2px 3px;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
}

.photo-sheet {
  width: min(100%, 980px);
  margin-inline: auto;
  padding: 28px;
  border: 1px solid var(--line-dark);
  background: #fff;
  box-shadow: 0 18px 50px rgba(11, 34, 53, .12);
}

.photo-frame {
  display: grid;
  width: 100%;
  min-height: 320px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  color: var(--muted);
  background: var(--paper-deep);
}

.photo-frame img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.photo-sheet > header {
  display: flex;
  padding: 18px 0;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
}

.photo-sheet > header span {
  color: var(--red-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.photo-sheet > header h2 {
  font-size: 2.6rem;
}

.photo-year-grid {
  display: grid;
  padding-top: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 14px;
}

.photo-mini-month {
  min-width: 0;
  border-top: 2px solid var(--ink);
}

.photo-mini-month h3 {
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  text-align: center;
}

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

.photo-weekdays b,
.photo-days span,
.photo-days i {
  display: grid;
  min-height: 23px;
  place-items: center;
  font-size: .62rem;
  font-style: normal;
}

.photo-weekdays b {
  color: var(--muted);
  font-size: .54rem;
}

.photo-days .is-weekend {
  background: var(--weekend);
}

.photo-days .is-holiday {
  color: #fff;
  background: var(--red-dark);
  font-weight: 800;
}

.monthly-photo-sheet {
  width: min(100%, 760px);
}

.photo-month-days {
  border-top: 1px solid var(--line);
}

.photo-month-day {
  display: grid;
  min-height: 34px;
  padding: 5px 8px;
  grid-template-columns: 48px 34px 110px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: .76rem;
}

.photo-month-day small {
  color: var(--muted);
}

.photo-month-day b {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1rem;
}

.photo-month-day em {
  color: var(--muted);
  font-style: normal;
}

.photo-month-day.is-weekend {
  background: var(--weekend);
}

.photo-month-day.is-holiday {
  box-shadow: inset 4px 0 var(--red-dark);
}

.footer-inner {
  grid-template-columns: 1.45fr repeat(4, 1fr);
  gap: 36px;
}
.tool-result {
  display: grid;
  min-height: 150px;
  margin-top: 24px;
  padding: 28px;
  place-content: center;
  gap: 7px;
  border-block: 1px solid var(--line-dark);
  background: #fff;
  text-align: center;
}

.tool-result strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.tool-result span {
  color: var(--muted);
}

.workday-grid,
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}

.workday-grid a,
.zodiac-grid > div {
  display: grid;
  min-height: 120px;
  padding: 20px;
  align-content: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.workday-grid a:nth-child(4n),
.zodiac-grid > div:nth-child(4n) {
  border-right: 0;
}

.workday-grid a:hover {
  background: var(--paper-deep);
}

.workday-grid strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.workday-grid small,
.zodiac-grid span {
  color: var(--muted);
  font-size: .74rem;
}

.zodiac-grid b {
  color: var(--ink);
  font-family: Georgia, serif;
}

.event-list li {
  display: grid;
  padding-bottom: 10px;
  grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr);
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.event-list time {
  color: var(--red-dark);
  font-weight: 750;
}

.event-type {
  color: var(--muted);
  font-size: .74rem;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}

.directory-item {
  display: flex;
  min-height: 230px;
  padding: 24px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.directory-item:nth-child(3n) {
  border-right: 0;
}

.directory-item:hover {
  color: var(--text);
  background: var(--paper-deep);
}

.directory-item > span {
  margin-bottom: auto;
  color: var(--red-dark);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.directory-item h2 {
  margin: 26px 0 8px;
  font-size: 1.35rem;
}

.directory-item p {
  color: var(--muted);
  font-size: .8rem;
}

.directory-item b {
  margin-top: 22px;
  color: var(--ink);
  font-size: .82rem;
}

@media (max-width: 1120px) {
  .primary-nav a {
    padding-inline: 7px;
    font-size: .78rem;
  }

  .cal-semester {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .calendar-table-grid,
  .moon-phase-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .moon-phase-item:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .moon-phase-item:nth-child(3n) {
    border-right: 0;
  }

  .download-row {
    grid-template-columns: minmax(240px, 1fr) minmax(300px, .85fr);
  }

  .file-format {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 28px;
  }
}

@media (max-width: 840px) {
  .header-inner {
    min-height: 74px;
    flex-wrap: wrap;
  }

  .brand-date {
    width: 45px;
    height: 50px;
    grid-template-rows: 17px 1fr;
  }

  .brand-date strong {
    font-size: 1.3rem;
    line-height: 31px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    width: 100%;
    padding: 8px 0 16px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a,
  .primary-nav .nav-download {
    margin: 0;
    padding: 10px 6px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav .nav-download:hover,
  .primary-nav .nav-download[aria-current="page"] {
    color: var(--ink);
    background: var(--paper-deep);
  }

  html,
  body {
    overflow-x: hidden;
  }
  .month-strip {
    overflow-x: auto;
  }

  .month-strip-inner {
    width: max-content;
    min-width: 100%;
    grid-template-columns: repeat(12, 60px);
  }

  .home-hero,
  .download-feature {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 0;
  }

  .hero-copy {
    padding: 24px 0 40px;
  }

  .year-facts {
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .download-preview {
    padding: 28px clamp(28px, 10vw, 90px);
  }

  .download-copy {
    padding: 36px 28px;
  }

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

  .holiday-list,
  .month-overview-grid,
  .month-downloads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .holiday-item:nth-child(3n),
  .month-overview-card:nth-child(3n),
  .month-downloads > div:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .holiday-item:nth-child(2n),
  .month-overview-card:nth-child(2n),
  .month-downloads > div:nth-child(2n) {
    border-right: 0;
  }

  .zone-periods,
  .semester-months {
    grid-template-columns: 1fr;
  }

  .zone-panel {
    border-right: 0;
  }

  .availability-note,
  .data-downloads,
  .method-note,
  .cta-line {
    grid-template-columns: 1fr;
  }

  .preview-comparison,
  .bridge-highlights {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
  }

  .feature-nav-grid,
  .feature-nav-grid-compact,
  .tools-grid,
  .season-timeline,
  .season-grid,
  .planning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-nav-grid a:nth-child(3n),
  .feature-nav-grid-compact a:nth-child(3n),
  .tool-card:nth-child(3n),
  .season-card:nth-child(3n),
  .season-item:nth-child(3n),
  .planning-month:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .feature-nav-grid a:nth-child(2n),
  .feature-nav-grid-compact a:nth-child(2n),
  .tool-card:nth-child(2n),
  .season-card:nth-child(2n),
  .season-item:nth-child(2n),
  .planning-month:nth-child(2n) {
    border-right: 0;
  }

  .zone-summary {
    grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr);
  }

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

  .workday-grid a:nth-child(3n),
  .zodiac-grid > div:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .workday-grid a:nth-child(2n),
  .zodiac-grid > div:nth-child(2n) {
    border-right: 0;
  }

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

  .directory-item:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .directory-item:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 620px) {
  html {
    font-size: 15px;
  }

  .container,
  .header-inner,
  .footer-inner {
    width: min(100% - 28px, var(--max-width));
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  main.container {
    padding-top: 36px;
  }

  main > section + section {
    margin-top: 64px;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.25rem);
  }

  .home-hero {
    border-bottom: 0;
  }

  .hero-copy {
    padding-top: 10px;
  }

  .hero-actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .hero-actions .text-link,
  .button-row .button,
  .button-row .text-link {
    width: 100%;
    justify-content: center;
  }

  .year-facts {
    padding: 26px 20px;
  }

  .annual-heading {
    align-items: start;
    flex-direction: column;
  }

  .calendar-key {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cal-grid {
    gap: 42px;
  }

  .cal-semester {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 10px;
  }

  .cal-cell {
    min-height: 31px;
    grid-template-columns: 23px 25px minmax(0, 1fr) auto;
    font-size: .62rem;
  }

  .cal-zone {
    min-width: 14px;
    min-height: 14px;
    font-size: .48rem;
  }

  .download-preview {
    padding: 24px;
  }

  .download-copy {
    padding: 30px 20px;
  }

  .check-list,
  .planning-links,
  .info-columns,
  .event-columns,
  .compact-list,
  .even-odd-key,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .planning-links a,
  .planning-links a:nth-child(2n) {
    border-right: 0;
  }

  .calendar-table-grid,
  .holiday-list,
  .month-overview-grid,
  .month-downloads,
  .moon-phase-list {
    grid-template-columns: 1fr;
  }

  .holiday-item,
  .holiday-item:nth-child(2n),
  .month-overview-card,
  .month-overview-card:nth-child(2n),
  .month-downloads > div,
  .month-downloads > div:nth-child(2n),
  .moon-phase-item,
  .moon-phase-item:nth-child(3n) {
    border-right: 0;
  }

  .download-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .download-row-actions {
    max-width: 390px;
  }

  .bridge-highlights article {
    padding: 22px;
    grid-template-columns: 62px 1fr;
  }

  .bridge-list article {
    grid-template-columns: 1fr auto;
    gap: 7px 16px;
  }

  .bridge-list article > div:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .bridge-days {
    grid-column: 2;
    grid-row: 1;
  }

  .page-pagination a {
    padding-inline: 6px;
    font-size: .7rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-intro {
    grid-column: 1 / -1;
  }

  .home-directory > .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .feature-nav-grid,
  .feature-nav-grid-compact,
  .tools-grid,
  .season-timeline,
  .season-grid,
  .planning-grid,
  .zone-summary,
  .zone-period-list {
    grid-template-columns: 1fr;
  }

  .feature-nav-grid a,
  .feature-nav-grid a:nth-child(2n),
  .feature-nav-grid a:nth-child(3n),
  .tool-card,
  .tool-card:nth-child(2n),
  .tool-card:nth-child(3n),
  .season-card,
  .season-card:nth-child(2n),
  .season-item,
  .season-item:nth-child(2n),
  .planning-month,
  .planning-month:nth-child(2n),
  .planning-month:nth-child(3n),
  .zone-period-list article {
    border-right: 0;
  }

  .feature-nav-grid a,
  .tool-card,
  .season-card,
  .season-item {
    min-height: 180px;
  }

  .zone-summary header,
  .zone-detail,
  .tool-panel,
  .photo-sheet {
    padding: 20px;
  }

  .tool-form {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-form label,
  .tool-form .button {
    width: 100%;
    flex-basis: auto;
  }

  .photo-frame,
  .photo-frame img {
    height: 240px;
    min-height: 240px;
  }

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

  .photo-month-day {
    grid-template-columns: 38px 30px 88px minmax(0, 1fr);
  }

  .workday-grid,
  .zodiac-grid {
    grid-template-columns: 1fr;
  }

  .workday-grid a,
  .workday-grid a:nth-child(2n),
  .workday-grid a:nth-child(3n),
  .zodiac-grid > div,
  .zodiac-grid > div:nth-child(2n),
  .zodiac-grid > div:nth-child(3n) {
    border-right: 0;
  }

  .directory-grid {
    grid-template-columns: 1fr;
  }

  .directory-item,
  .directory-item:nth-child(2n),
  .directory-item:nth-child(3n) {
    min-height: 180px;
    border-right: 0;
  }
}

@media (max-width: 430px) {
  .brand-date {
    width: 40px;
  }

  .cal-semester {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cal-cell {
    min-height: 34px;
    grid-template-columns: 28px 30px minmax(0, 1fr) auto;
    font-size: .7rem;
  }

  .cal-zone {
    min-width: 17px;
    min-height: 17px;
    font-size: .54rem;
  }

  .calendar-key {
    grid-template-columns: 1fr;
  }

  .download-row-actions,
  .month-download-actions {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-intro {
    grid-column: auto;
  }

  .photo-year-grid {
    grid-template-columns: 1fr;
  }

  .photo-month-day {
    grid-template-columns: 34px 28px 72px minmax(0, 1fr);
    font-size: .68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  body::before,
  .site-header,
  .site-footer,
  .hero-actions,
  .page-pagination,
  .download-feature,
  .planning-section,
  .related-links,
  .cta-line {
    display: none !important;
  }

  body,
  main.container {
    width: 100%;
    margin: 0;
    padding: 0;
    color: #000;
    background: #fff;
  }

  .cal-semester {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    break-after: page;
  }

  .cal-cell {
    min-height: 28px;
  }

  .photo-controls,
  body:has(.photo-sheet) .page-heading,
  body:has(.photo-sheet) .panel,
  body:has(.planning-grid) .page-heading p,
  body:has(.planning-grid) .panel {
    display: none !important;
  }

  main > section + section {
    margin-top: 0;
  }

  .planning-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #000;
  }

  .planning-month {
    break-inside: avoid;
    border-color: #000;
  }

  .planning-month header {
    padding: 2mm 3mm;
    color: #000;
    background: #fff;
    border-bottom: 1px solid #000;
  }

  .planning-month header h2 {
    color: #000;
    font-size: 11pt;
  }

  .planning-lines {
    min-height: 42mm;
    padding: 1mm 3mm;
  }

  .planning-lines > div {
    min-height: 6.5mm;
    padding: 1mm 0;
    border-color: #777;
    font-size: 7pt;
  }

  .photo-sheet {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .annual-photo-sheet .photo-frame,
  .annual-photo-sheet .photo-frame img {
    height: 58mm;
    min-height: 58mm;
  }

  .photo-sheet > header {
    padding: 3mm 0;
  }

  .photo-sheet > header h2 {
    font-size: 22pt;
  }

  .photo-year-grid {
    padding-top: 3mm;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3mm;
  }

  .photo-mini-month h3 {
    padding: 1mm 0;
    font-size: 8pt;
  }

  .photo-weekdays b,
  .photo-days span,
  .photo-days i {
    min-height: 3.7mm;
    font-size: 6pt;
  }

  .monthly-photo-sheet .photo-frame,
  .monthly-photo-sheet .photo-frame img {
    height: 68mm;
    min-height: 68mm;
  }

  .photo-month-day {
    min-height: 4.7mm;
    padding: .5mm 2mm;
    grid-template-columns: 14mm 9mm 28mm minmax(0, 1fr);
    font-size: 6.5pt;
  }
}

.seasons-page > section + section {
  margin-top: 76px;
}

.seasons-heading {
  max-width: 850px;
}

.season-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.season-facts div {
  display: flex;
  min-height: 118px;
  padding: 22px 24px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.season-facts div:last-child {
  border-right: 0;
}

.season-facts strong {
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
}

.season-facts span {
  margin-top: 8px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.season-showcase .section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.season-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.season-showcase-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.season-showcase-card:nth-child(2n) {
  border-right: 0;
}

.season-showcase-card article {
  height: 100%;
  background: var(--paper);
}

.season-image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-deep);
}

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

.season-image figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  color: #fff;
  background: rgb(11 34 53 / 88%);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.season-showcase-body {
  display: flex;
  min-height: 250px;
  padding: 24px 26px 28px;
  flex-direction: column;
}

.season-index {
  color: var(--red-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.season-showcase-body h3 {
  margin-top: 18px;
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1;
}

.season-description {
  max-width: 42ch;
  margin-top: 12px;
  color: var(--muted);
}

.season-details {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, .65fr);
  gap: 18px;
  margin-top: auto;
  padding-top: 24px;
}

.season-details div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.season-details dt {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.season-details dd {
  margin-top: 5px;
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 700;
}

.season-guide {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 42px;
  padding: 34px;
  background: var(--paper-deep);
}

.season-guide h2 {
  margin-top: 8px;
}

.season-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.season-guide-list > div {
  padding-left: 20px;
  border-left: 3px solid var(--red);
}

.season-guide-list strong {
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
}

.season-guide-list p {
  margin-top: 8px;
  color: var(--muted);
  font-size: .92rem;
}

.season-source {
  max-width: 900px;
}

@media (max-width: 840px) {
  .season-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .season-facts div:nth-child(2n) {
    border-right: 0;
  }

  .season-facts div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .season-showcase-grid {
    grid-template-columns: 1fr;
  }

  .season-showcase-card,
  .season-showcase-card:nth-child(2n) {
    border-right: 0;
  }

  .season-guide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .seasons-page > section + section {
    margin-top: 54px;
  }

  .season-facts div {
    min-height: 100px;
    padding: 18px;
  }

  .season-facts span {
    font-size: .64rem;
  }

  .season-showcase-body {
    min-height: 0;
    padding: 22px 20px 24px;
  }

  .season-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .season-guide {
    padding: 24px 20px;
  }

  .season-guide-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
