:root {
  --bg: #fff9ee;
  --surface: #ffffff;
  --ink: #12263a;
  --muted: #516276;
  --primary: #0e4a9e;
  --accent: #ffca2c;
  --accent-2: #db2b39;
  --line: #d9e0ea;
  --radius: 14px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 202, 44, 0.18), transparent 30%),
    radial-gradient(circle at 86% 0%, rgba(14, 74, 158, 0.15), transparent 35%),
    var(--bg);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .55rem .8rem;
  font-weight: 700;
}

.skip-link:focus {
  top: .75rem;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 249, 238, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-shell {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  color: #0a1f33;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.site-nav a {
  font-size: .92rem;
  font-weight: 600;
  color: #2a3a4d;
}

.site-nav a.active {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header-actions {
  display: flex;
  align-items: end;
  gap: .8rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
  padding: .45rem .7rem;
}

.year-quick {
  display: grid;
  gap: .3rem;
  font-size: .72rem;
  color: var(--muted);
}

.year-quick select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .4rem .6rem;
  background: white;
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem .8rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  background: #fff;
}

.hero {
  padding: 2.2rem 0 1.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 1.2rem;
}

.eyebrow {
  margin: 0 0 .5rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .74rem;
  color: var(--primary);
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.1;
}

.hero-sub {
  margin-top: .9rem;
  font-size: 1.07rem;
  color: #2d3d52;
  line-height: 1.5;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .8rem;
  align-items: center;
  margin-top: .9rem;
}

.hero-panel,
.planner,
.page-head,
.table-wrap,
.grid-wrap,
.sticky-card,
.bridge-year,
.prose,
.contact-simple {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-panel,
.page-head,
.prose,
.contact-simple,
.bridge-year {
  padding: 1rem 1.1rem;
}

.hero-panel h2,
.hero-panel h3 {
  margin: .2rem 0 .55rem;
}

.hero-panel ul,
.compact-list {
  margin: .25rem 0;
  padding-left: 1rem;
  color: #2d3d52;
}

.hero-panel li,
.compact-list li {
  margin: .35rem 0;
}

.next-name {
  margin: .2rem 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.next-date { margin: 0 0 .9rem; color: var(--muted); }
.inline-link { font-weight: 700; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.planner {
  margin-top: 1.2rem;
  padding: .85rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .7rem;
  align-items: end;
}

.planner label {
  display: block;
  margin-bottom: .3rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  color: var(--muted);
}

.planner-check {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: #274058;
}

.planner select,
.view-toggle input,
.home-search input,
.contact-simple input,
.contact-simple textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: .55rem .68rem;
  color: var(--ink);
}

button,
.btn {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: .55rem .85rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-hero-year {
  font-size: 1.05rem;
  padding: .7rem 1rem;
}

.btn-light,
.view-toggle button {
  background: #fff;
  color: var(--primary);
}

.view-toggle button.active {
  background: var(--primary);
  color: #fff;
}

.head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .8rem;
}

.year-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.year-chips a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: .42rem .72rem;
  font-size: .86rem;
  font-weight: 700;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-bottom: 1.5rem;
}

.pack-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: .95rem 1rem;
}

.pack-card h2 {
  margin: 0 0 .5rem;
}

.pack-meta {
  margin: 0 0 .45rem;
  color: var(--muted);
  font-weight: 700;
  font-size: .86rem;
}

.pack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: .75rem 0 .4rem;
}

.pack-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-bottom: 1.4rem;
}

.pack-preview-table-wrap {
  overflow-x: auto;
}

.pack-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.pack-preview-table th,
.pack-preview-table td {
  border-bottom: 1px solid #edf1f7;
  padding: .45rem .5rem;
  text-align: left;
  vertical-align: top;
}

.pack-preview-table th {
  font-weight: 700;
  color: #23415f;
}

.home-pack-card {
  margin: 0 0 1.2rem;
}

.year-pack-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .6rem;
  margin: .8rem 0 .2rem;
}

.year-pack-link {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .58rem .7rem;
  background: #fff;
  display: grid;
  gap: .2rem;
}

.year-pack-link span {
  color: var(--muted);
  font-weight: 700;
}

.home-search {
  margin-bottom: 1.4rem;
}

#home-holiday-search-form {
  display: grid;
  gap: .45rem;
}

.holiday-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-bottom: 1.5rem;
}

.holiday-hub-card h2 {
  margin: 0 0 .45rem;
}

.directory-list {
  margin: .7rem 0 .35rem;
  padding-left: 1rem;
  color: var(--muted);
}

.directory-list li {
  margin: .45rem 0;
}

.directory-list a {
  font-weight: 700;
}

.directory-list span {
  display: inline-block;
  margin-left: .45rem;
  font-size: .9rem;
  color: var(--muted);
}

.empty-state {
  margin: .7rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.home-editorial h2,
.home-faq h2,
.year-intro h2 {
  margin-top: 0;
}

.home-faq details,
.year-faq details {
  border: 1px solid #e3eaf2;
  border-radius: 10px;
  padding: .55rem .7rem;
  margin-bottom: .55rem;
  background: #fff;
}

.home-faq summary,
.year-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.page-head {
  margin-top: 1rem;
}

.page-head p { max-width: 66ch; }

.year-stats {
  margin: .8rem 0 .35rem;
  font-size: .98rem;
}

.holyweek-selected-card {
  margin-top: .9rem;
}

.holyweek-selected-inner h2 {
  margin: 0;
}

.holyweek-row-head {
  display: flex;
  gap: .55rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.holyweek-milestones {
  margin-top: .45rem;
}

.holyweek-countdown {
  margin: .65rem 0 .35rem;
  font-weight: 700;
  color: #17385b;
}

.holyweek-table-wrap {
  margin-top: .9rem;
}

.holyweek-table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  margin-bottom: .7rem;
}

.holyweek-table-tools h2 {
  margin: 0;
  font-size: 1.08rem;
}

.holyweek-table-scroller {
  overflow-x: auto;
}

.holyweek-table-desktop {
  min-width: 780px;
}

.holyweek-table-desktop .row-selected td {
  background: #fffdf3;
}

.holyweek-card-list {
  display: none;
  gap: .7rem;
  margin-top: .7rem;
}

.holyweek-past-years {
  margin-top: .8rem;
}

.holyweek-past-years > summary {
  font-weight: 700;
  cursor: pointer;
}

.view-toggle {
  display: grid;
  grid-template-columns: auto auto auto auto minmax(220px, 1fr);
  gap: .55rem;
  margin-top: .8rem;
}

.year-layout {
  margin: 1rem auto 2rem;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
  gap: .95rem;
}

.year-main {
  display: grid;
  gap: .9rem;
}

.table-wrap,
.grid-wrap {
  padding: .75rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  background: #fff;
}

thead th {
  text-align: left;
  padding: .62rem;
  border-bottom: 2px solid var(--line);
  color: #18324e;
}

tbody td,
tfoot th {
  border-bottom: 1px solid #edf1f7;
  padding: .58rem .62rem;
  vertical-align: top;
}

.row-note {
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: .87rem;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  padding-left: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .15rem .5rem;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  margin-left: .45rem;
}

.badge-green {
  background: #e8f8ef;
  color: #17663b;
  border-color: #b7e5ca;
}

.badge-muted {
  background: #edf1f6;
  color: #33465c;
  border-color: #d5dee8;
}

.badge-amber {
  background: #fff6df;
  color: #7b4d00;
  border-color: #f0dc9d;
}

tbody tr:hover {
  background: #fffdf3;
}

.month-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem;
  background: #fff;
}

.month-card h3 { margin-top: 0; }
.month-card ul { margin: 0; padding-left: 1rem; }

.grid-event-head {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}

.is-hidden { display: none; }

.sticky-card {
  position: sticky;
  top: 86px;
  align-self: start;
  padding: .9rem;
}

.summary-collapse > summary {
  font-weight: 800;
  cursor: pointer;
  margin-bottom: .75rem;
}

.summary-collapse[open] > summary {
  margin-bottom: .9rem;
}

.countdown-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0c3f8e;
}

.holiday-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.holiday-main,
.holiday-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem;
}

.cta-row {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  margin: .8rem 0 1.1rem;
}

.long-weekends-list {
  display: grid;
  gap: .85rem;
  margin-bottom: 2rem;
}

.bridge-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1rem;
  margin: .8rem 0;
  font-weight: 700;
  color: #1f3651;
}

.bridge-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: .85rem 1rem;
}

.bridge-card h2,
.bridge-card h3 {
  margin: 0 0 .4rem;
}

.bridge-filters {
  grid-template-columns: minmax(180px, auto) minmax(160px, 240px) minmax(220px, 1fr);
  align-items: end;
}

.bridge-filters label span {
  display: block;
  margin-bottom: .3rem;
  font-size: .82rem;
  color: #3b5066;
}

.bridge-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.bridge-table thead th {
  background: #f7f9fc;
}

.bridge-table tbody td {
  padding: .75rem .7rem;
  vertical-align: top;
}

.source-status {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: .8rem .9rem;
  margin-bottom: .8rem;
}

.source-status p {
  margin: .2rem 0;
}

.school-sources-wrap {
  overflow-x: auto;
}

.school-sources-table th,
.school-sources-table td {
  white-space: nowrap;
}

.school-sources-table td:nth-child(2),
.school-sources-table th:nth-child(2) {
  white-space: normal;
  min-width: 340px;
}

.bridge-year header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bridge-year ul {
  margin: .7rem 0 0;
  padding-left: 1rem;
}

.prose {
  margin-bottom: 2rem;
}

.muted,
.copy-feedback,
.site-footer p {
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: .45rem;
}

.contact-form {
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.form-field {
  display: grid;
  gap: .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: 10px;
  background: #fff;
  color: var(--ink);
  font-size: .98rem;
  padding: .55rem .7rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}

#contact-status {
  margin: 0;
  color: var(--muted);
}

.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;
}

.tracker-hitua {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1080px) {
  .header-shell {
    grid-template-columns: 1fr auto auto;
    gap: .65rem;
    padding: .6rem 0;
  }
  .site-nav {
    order: 4;
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    gap: .5rem;
    padding: .3rem 0 .6rem;
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open {
    display: flex;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .header-actions {
    justify-content: end;
    align-items: center;
  }
  .hero-grid,
  .year-layout,
  .holiday-detail-grid,
  .holiday-hub-grid,
  .pack-grid,
  .pack-detail-grid {
    grid-template-columns: 1fr;
  }
  .sticky-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100%, calc(100% - 1rem));
  }
  .planner {
    grid-template-columns: 1fr;
  }
  .view-toggle {
    grid-template-columns: 1fr 1fr;
  }
  .view-toggle button:nth-child(3),
  .view-toggle button:nth-child(4),
  .view-toggle input {
    grid-column: 1 / -1;
  }
  .bridge-filters {
    grid-template-columns: 1fr;
  }
  .holyweek-table-desktop {
    display: none;
  }
  .holyweek-card-list {
    display: grid;
  }
  .holyweek-table-tools {
    flex-direction: column;
    align-items: flex-start;
  }
  .bridge-table thead {
    display: none;
  }
  .bridge-table,
  .bridge-table tbody,
  .bridge-table tr,
  .bridge-table td {
    display: block;
    width: 100%;
  }
  .bridge-table tr {
    border-bottom: 1px solid #e5ebf2;
    padding: .55rem 0;
  }
  .bridge-table td {
    border: 0;
    padding: .45rem .7rem;
  }
  .bridge-table td::before {
    content: attr(data-label);
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #4a5f76;
    margin-bottom: .2rem;
  }
  .school-sources-table td:nth-child(2),
  .school-sources-table th:nth-child(2) {
    min-width: 220px;
  }
  table { font-size: .88rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .summary-collapse > summary {
    display: list-item;
  }
}
