@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.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: #324251;
  white-space: nowrap;
}
.main-nav a.active,
.main-nav a:hover {
  background: #e8f3ec;
  color: #0f3f2a;
  text-decoration: none;
}
.main-nav a.nav-pack-link {
  font-weight: 600;
  color: #0d7d56;
  background: #f0f8f4;
  border: 1px solid #c8e6d9;
}
.main-nav a.nav-pack-link:hover,
.main-nav a.nav-pack-link.active {
  background: #0d7d56;
  color: #fff;
  border-color: #0d7d56;
}

.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;
  gap: 0.45rem;
  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 {
  width: 25%;
  min-width: 190px;
}
.holiday-name a {
  font-size: 1.33rem;
  font-weight: 700;
  color: #0d7d56;
}
.event-observance .holiday-name a { color: #366283; }

.holiday-table th.col-date,
.holiday-table td.date-cell {
  width: 195px;
  min-width: 185px;
  white-space: nowrap;
}

.date-cell .date-chip {
  display: inline-block;
  background: #f1f8f3;
  border: 1px solid #c4dfce;
  color: #0c5c3e;
  border-radius: 0.55rem;
  padding: 0.25rem 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.event-observance .date-cell .date-chip {
  background: #f1f6fa;
  border-color: #cadbe7;
  color: #2b5777;
}

.date-cell .weekday {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
}
.date-cell .weekday .weekday-name {
  color: #0f172a;
}
.date-cell .weekday .weekday-year {
  color: #475569;
  font-weight: 600;
}

.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: 2.5rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: #607087;
  font-size: 0.88rem;
  background: #fafbf9;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
.footer-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col-list a {
  color: #475569;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-col-list a:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 0.5rem;
}
.copyright {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  text-align: center;
}
.copyright a { color: #475569; font-weight: 600; text-decoration: underline; }
.copyright a:hover { color: var(--brand-deep); }

.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;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* Display ad containers for AdSense / programmatic partners */
.ad-slot-container {
  margin: 1.5rem auto;
  text-align: center;
  max-width: 100%;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-slot-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

/* In-feed Sponsor Card */
.infeed-sponsor-card {
  margin: 1.5rem 0;
  padding: 1.25rem 1.4rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #090d16 0%, #0f172a 100%);
  color: #f8fafc;
  border: 1px solid #1e293b;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
}

.infeed-sponsor-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.infeed-sponsor-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.infeed-sponsor-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.infeed-sponsor-brand {
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: -0.01em;
}

.infeed-sponsor-brand span {
  color: #ffffff;
}

.infeed-sponsor-card h3 {
  margin: 0.25rem 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  font-family: inherit;
}

.infeed-sponsor-card p {
  margin: 0 0 1rem;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 680px;
}

.infeed-sponsor-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.52rem 1.15rem;
  background: #0284c7;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 0.5rem;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
}

.infeed-sponsor-btn:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

/* Editorial Block Styling */
.editorial-block {
  padding: 1.25rem 1.4rem;
}

.editorial-block h2 {
  font-family: 'Literata', Georgia, serif;
  color: #163024;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.editorial-block h3 {
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: #163024;
  margin: 1rem 0 0.35rem;
}

.editorial-block p {
  color: #334255;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.tools-grid .editorial-block h2 {
  font-family: inherit;
  font-size: 1.15rem;
}

.tools-grid a {
  font-weight: 700;
}

.tool-card { margin-top: 1rem; }
.tool-card h2 { margin-top: 0; }
.tool-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .85rem; margin: 1rem 0; }
.tool-form-grid label { display: grid; gap: .35rem; font-weight: 700; color: #334155; }
.tool-form-grid input, .tool-form-grid select { min-height: 2.5rem; border: 1px solid var(--line); border-radius: 6px; padding: .45rem .6rem; font: inherit; }
.tool-result { min-height: 1.5rem; margin: .85rem 0 0; color: #163024; line-height: 1.55; }
.tool-note { color: var(--muted); font-size: .9rem; }

.home-sources { margin-top: 2rem; padding: .75rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.home-sources summary { cursor: pointer; color: var(--brand-deep); font-weight: 700; }
.home-sources div { max-width: 900px; line-height: 1.5; }
.home-sources p { margin: .7rem 0 .45rem; }
.home-sources ul { margin: .35rem 0 0 1.15rem; padding: 0; }

/* Hero Top Nav & Year Switcher Pill */
.hero-top-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.country-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.year-pill-switcher {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.year-pill-btn {
  padding: 0.18rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.year-pill-btn:hover {
  color: var(--brand-deep);
  background: var(--accent);
}

.year-pill-current {
  padding: 0.18rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--brand);
  border-radius: 999px;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}

/* 12-Month Calendar Grid Layout */
.year-calendar-container {
  margin: 1.5rem 0 2rem;
}

.year-grid-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.year-grid-header h2 {
  font-family: 'Literata', Georgia, serif;
  font-size: 1.45rem;
  color: var(--ink);
  margin: 0 0 0.25rem;
}

.year-grid-summary {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.year-months-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .year-months-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.month-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.month-card:hover {
  box-shadow: 0 6px 16px rgba(0, 122, 77, 0.08);
  border-color: #b7cebf;
}

.month-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.45rem;
}

.month-card-title {
  font-family: 'Literata', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  text-transform: capitalize;
}

.month-card-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.month-mini-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.month-mini-table th {
  padding: 0.25rem 0;
  text-align: center;
  font-weight: 600;
  color: #64748b;
  font-size: 0.72rem;
  border-bottom: 1px solid #e2e8f0;
}

.month-mini-table .th-weekend {
  color: #94a3b8;
}

.cal-cell {
  height: 28px;
  text-align: center;
  vertical-align: middle;
  padding: 1px;
}

.cal-cell.is-empty {
  visibility: hidden;
}

.cal-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #334155;
  font-weight: 500;
}

.cal-cell.is-weekend .cal-day-num {
  color: #94a3b8;
}

.cal-day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  box-sizing: border-box;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none !important;
  transition: transform 0.12s ease;
  position: relative;
}

.cal-day-badge:hover {
  transform: scale(1.15);
}

.pub-badge {
  background: #007a4d;
  color: #ffffff !important;
  border: 1px solid #007a4d;
  box-shadow: 0 1px 3px rgba(0, 122, 77, 0.25);
}

.obs-badge {
  background: #eef2ff;
  color: #3730a3 !important;
  border: 1px solid #c7d2fe;
  box-shadow: 0 1px 2px rgba(99, 102, 241, 0.15);
}

.month-event-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  border-top: 1px dashed #f1f5f9;
  padding-top: 0.45rem;
}

.month-event-item {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
  line-height: 1.35;
}

.m-event-day {
  font-weight: 700;
  color: var(--brand-deep);
  white-space: nowrap;
}

.m-event-link {
  color: #1e293b;
  text-decoration: none;
}

.m-event-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

.month-event-item.ev-obs .m-event-day {
  color: #4f46e5;
}

.month-event-item.ev-obs .m-event-link {
  color: #475569;
  font-style: italic;
}

.calendar-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #475569;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-public {
  background: #007a4d;
}

.dot-observance {
  background: #e0e7ff;
  border: 1px solid #c7d2fe;
}

.dot-weekend {
  background: #cbd5e1;
}

/* Share Modal Dialog */
.share-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.share-modal-backdrop.is-open {
  display: flex;
}

body.modal-open {
  overflow: hidden;
}

.share-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
  animation: shareModalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes shareModalIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.share-modal-heading {
  font-family: 'Literata', Georgia, serif;
  font-size: 1.3rem;
  color: #1e293b;
  margin: 0;
}

.share-modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.share-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.share-preview-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.15rem;
}

.share-flag-avatar {
  font-size: 2rem;
  line-height: 1;
}

.share-preview-info {
  flex: 1;
  min-width: 0;
}

.share-preview-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: var(--accent);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.2rem;
}

.share-preview-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-preview-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-section {
  margin-bottom: 1.15rem;
}

.share-section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.share-input-group {
  display: flex;
  gap: 0.4rem;
}

.share-link-field {
  flex: 1;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
}

.share-link-field:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 122, 77, 0.12);
}

.share-copy-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 8px;
  cursor: pointer;
}

.share-copy-action.copied {
  background: #047857 !important;
}

.share-toast {
  font-size: 0.78rem;
  color: #047857;
  font-weight: 600;
  margin-top: 0.3rem;
  min-height: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.share-toast.show {
  opacity: 1;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.share-app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.share-app-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.app-wa { color: #15803d; }
.app-wa:hover { background: #f0fdf4; border-color: #86efac; }
.app-fb { color: #1877f2; }
.app-fb:hover { background: #eff6ff; border-color: #93c5fd; }
.app-tg { color: #0284c7; }
.app-tg:hover { background: #f0f9ff; border-color: #7dd3fc; }
.app-x { color: #0f172a; }
.app-x:hover { background: #f8fafc; border-color: #94a3b8; }
.app-email { color: #475569; }
.app-more { color: #64748b; }

.share-qr-section {
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
  margin-bottom: 0;
}

.share-qr-layout {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.share-qr-frame {
  width: 110px;
  height: 110px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  flex-shrink: 0;
}

.share-qr-frame svg {
  width: 100% !important;
  height: 100% !important;
}

.share-qr-meta {
  flex: 1;
}

.share-qr-hint {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 0.55rem;
}

.share-qr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

/* Working Days KPI Grid */
.working-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 122, 77, 0.08);
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.kpi-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.kpi-divider {
  font-size: 1.2rem;
  color: #94a3b8;
  font-weight: 400;
}

.kpi-subtext {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Bridge Days Recipes Grid */
.bridge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .bridge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bridge-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bridge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 122, 77, 0.1);
  border-color: #b7cebf;
}

.bridge-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.bridge-season-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0284c7;
  background: #e0f2fe;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.bridge-bonus-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.bridge-title {
  font-family: 'Literata', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.35rem;
}

.bridge-holiday-name {
  font-size: 0.85rem;
  color: #475569;
  margin: 0 0 0.85rem;
}

.bridge-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.metric-box {
  text-align: center;
}

.metric-num {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.1;
}

.metric-label {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.metric-arrow {
  font-size: 1.4rem;
  color: var(--brand);
  font-weight: 700;
}

.metric-highlight .metric-num {
  color: var(--brand);
}

.bridge-request-box {
  background: #f0fdf4;
  border-left: 3px solid var(--brand);
  padding: 0.5rem 0.75rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: #166534;
  margin-bottom: 0.75rem;
}

.bridge-desc {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}




