.day-inner {
  display: flex;
  flex-direction: column;
}

.day-heading {
  order: 0;
}

.rhythm-overview {
  order: 0;
  margin-bottom: 58px;
}

.resource-heading {
  order: 1;
  margin-top: 0;
}

.resource-heading p {
  max-width: 720px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  line-height: 1.7;
}

.resource-links {
  order: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(154px, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 18px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  scrollbar-color: rgba(241, 189, 114, 0.7) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.resource-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  min-height: 60px;
  padding: 12px 15px;
  appearance: none;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.resource-link:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: #fff;
  transform: none;
}

.resource-link span {
  display: block;
}

.resource-link small,
.resource-link b {
  display: none;
}

.resource-link strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
}

.resource-link[aria-selected="true"] {
  background: #fffaf2;
  box-shadow:
    inset 0 -3px 0 #c95243,
    0 8px 24px rgba(18, 48, 38, 0.24);
  color: #1f5a47;
  transform: none;
}

.resource-link[aria-selected="true"]:hover {
  background: #fffaf2;
  color: #1f5a47;
}

.resource-panel {
  order: 3;
  scroll-margin-top: 110px;
}

.resource-panel[hidden] {
  display: none !important;
}

.resource-native-panel {
  margin-top: 34px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(31, 90, 71, 0.16);
  border-radius: 30px;
  background: #fffaf2;
  color: #1f5a47;
  box-shadow: 0 20px 55px rgba(18, 48, 38, 0.16);
}

.resource-panel-header {
  max-width: 830px;
  margin-bottom: 28px;
}

.resource-panel-header small {
  display: block;
  margin-bottom: 7px;
  color: #c45f4e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resource-panel-header h3 {
  margin: 0 0 10px;
  color: #183f34;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 600;
  line-height: 1.1;
}

.resource-panel-header p {
  margin: 0;
  color: #5e7369;
  font-size: 0.9rem;
  line-height: 1.75;
}

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

.resource-benefit {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 20px;
  border: 1px solid rgba(31, 90, 71, 0.13);
  border-radius: 19px;
  background: #fffdf9;
}

.resource-benefit span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #dce9df;
  color: #1f5a47;
  font-weight: 850;
}

.resource-benefit strong {
  display: block;
  color: #183f34;
  font-size: 0.93rem;
  line-height: 1.45;
}

.resource-callout {
  margin-top: 18px;
  padding: 21px 23px;
  border: 1px solid rgba(196, 95, 78, 0.2);
  border-radius: 19px;
  background: #f7e3bd;
}

.resource-callout strong {
  display: block;
  margin-bottom: 5px;
  color: #a94f41;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.resource-callout p {
  margin: 0;
  color: #536c61;
  font-size: 0.84rem;
  line-height: 1.7;
}

.resource-quote {
  margin: 18px 0 0;
  padding: 18px 22px;
  border-left: 4px solid #8ec5d8;
  background: #eef7f8;
  color: #416257;
  font-size: 0.83rem;
  font-style: italic;
  line-height: 1.7;
}

.resource-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(31, 90, 71, 0.16);
  border-radius: 18px;
  background: #fffdf9;
}

.resource-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.resource-table th,
.resource-table td {
  padding: 15px 17px;
  border-right: 1px solid rgba(31, 90, 71, 0.12);
  border-bottom: 1px solid rgba(31, 90, 71, 0.12);
  text-align: left;
  vertical-align: middle;
}

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

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

.resource-table th {
  background: #efe2ce;
  color: #1f5a47;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.resource-table td {
  color: #405f53;
  font-size: 0.84rem;
}

.resource-table td:first-child {
  min-width: 190px;
  color: #183f34;
  font-weight: 750;
}

.resource-table td:not(:first-child) {
  font-weight: 750;
  white-space: nowrap;
}

.resource-note {
  margin: 14px 0 0;
  color: #5e7369;
  font-size: 0.8rem;
  line-height: 1.65;
}

.resource-note strong {
  color: #a94f41;
}

.resource-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.resource-policy {
  padding: 19px;
  border: 1px solid rgba(31, 90, 71, 0.13);
  border-radius: 18px;
  background: #fffdf9;
}

.resource-policy h4 {
  margin: 0 0 8px;
  color: #183f34;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.resource-policy p {
  margin: 0;
  color: #5e7369;
  font-size: 0.78rem;
  line-height: 1.65;
}

.resource-subsection {
  margin-top: 28px;
}

.resource-subsection h4 {
  margin: 0 0 6px;
  color: #183f34;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.resource-subsection > p {
  margin: 0 0 15px;
  color: #5e7369;
  font-size: 0.8rem;
}

.resource-table.compact {
  min-width: 620px;
}

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

.rate-card {
  padding: 25px 18px;
  border: 1px solid rgba(31, 90, 71, 0.14);
  border-radius: 20px;
  background: #fffdf9;
  text-align: center;
}

.rate-card span {
  display: block;
  min-height: 44px;
  color: #6a7c73;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.45;
}

.rate-card strong {
  display: block;
  margin-top: 10px;
  color: #a94f41;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1;
}

.resource-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 19px 21px;
  border-radius: 18px;
  background: #dce9df;
}

.resource-contact p {
  margin: 0;
  color: #416257;
  font-size: 0.82rem;
  line-height: 1.6;
}

.resource-contact a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #1f5a47;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

@media (max-width: 960px) {
  .resource-policy-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .rhythm-overview {
    margin-bottom: 44px;
  }

  .resource-links {
    grid-template-columns: repeat(6, minmax(142px, 1fr));
    gap: 5px;
    padding: 5px;
    scroll-padding-inline: 5px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .resource-link {
    min-width: 142px;
    min-height: 56px;
    padding: 10px 13px;
    scroll-snap-align: start;
  }

  .resource-native-panel {
    padding: 23px 17px;
    border-radius: 22px;
  }

  .resource-benefits {
    grid-template-columns: 1fr;
  }

  .resource-contact {
    align-items: stretch;
    flex-direction: column;
  }

  .resource-contact a {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .rate-grid {
    grid-template-columns: 1fr;
  }
}

/* One visual system for all six Family Resources panels. */
.day-section .resource-panel {
  margin-top: 34px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(31, 90, 71, 0.16);
  border-radius: 30px;
  background: linear-gradient(145deg, #fffaf2 0%, #fffdf9 100%);
  color: #1f5a47;
  box-shadow: 0 20px 55px rgba(18, 48, 38, 0.16);
}

.day-section .example-schedule-bar,
.day-section .menu-embed-header,
.day-section .calendar-embed-header,
.day-section .resource-panel-header {
  display: block;
  max-width: 830px;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #1f5a47;
}

.day-section .example-schedule-bar small,
.day-section .menu-embed-header small,
.day-section .calendar-embed-header small,
.day-section .resource-panel-header small {
  display: block;
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c45f4e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.day-section .example-schedule-bar h3,
.day-section .menu-embed-header h3,
.day-section .calendar-embed-header h3,
.day-section .resource-panel-header h3 {
  margin: 0 0 10px;
  color: #183f34;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 600;
  line-height: 1.1;
  text-shadow: none;
}

.day-section .example-schedule-bar p,
.day-section .menu-embed-header p,
.day-section .calendar-embed-header p,
.day-section .resource-panel-header p {
  max-width: 760px;
  margin: 0;
  color: #5e7369;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.75;
}

.day-section .schedule-arrival {
  border-color: rgba(196, 95, 78, 0.2);
  background: #f7e3bd;
}

.day-section .schedule-arrival span {
  background: #dce9df;
  color: #1f5a47;
}

.day-section .schedule-arrival strong {
  color: #183f34;
}

.day-section .schedule-arrival p {
  color: #536c61;
}

.day-section .schedule-group {
  border-color: rgba(31, 90, 71, 0.13);
  background: #fffdf9;
}

.day-section .schedule-group h4 {
  color: #183f34;
}

.day-section .schedule-group h4 span {
  border-color: rgba(196, 95, 78, 0.28);
  background: #f7e3bd;
  color: #a94f41;
}

.day-section .schedule-row {
  border-top-color: rgba(31, 90, 71, 0.1);
}

.day-section .schedule-row time {
  color: #a94f41;
}

.day-section .schedule-row span {
  color: #405f53;
}

.day-section .schedule-row.is-transition span {
  color: #6a7c73;
}

.day-section .schedule-source-note {
  border-top-color: rgba(31, 90, 71, 0.14);
  color: #5e7369;
}

.day-section .schedule-source-note::before {
  border-color: rgba(196, 95, 78, 0.36);
  color: #a94f41;
}

.day-section .calendar-live-label {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #dce9df;
  color: #1f5a47;
  letter-spacing: 0.08em;
}

.day-section .calendar-item {
  border-color: rgba(31, 90, 71, 0.13);
  background: #fffdf9;
  box-shadow: none;
}

.day-section .calendar-date {
  background: #dce9df;
}

.day-section .menu-table-wrap,
.day-section .resource-table-wrap {
  border-color: rgba(31, 90, 71, 0.16);
  background: #fffdf9;
}

.day-section .menu-table th,
.day-section .resource-table th {
  background: #efe2ce;
  color: #1f5a47;
}

.day-section .menu-table td {
  color: #405f53;
}

.day-section .menu-table td:first-child {
  color: #183f34;
}

.day-section .menu-table .menu-break td {
  background: #f7e3bd;
  color: #a94f41;
}

.day-section .menu-cn {
  display: none;
}

.menu-list-window {
  max-height: min(68vh, 680px);
  overflow: auto;
  scroll-behavior: smooth;
  scrollbar-color: #b8cbbf #fffdf9;
}

.menu-list-window .menu-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 rgba(31, 90, 71, 0.14);
}

.day-section .menu-table .menu-month-divider th {
  padding: 11px 16px;
  background: #dce9df;
  color: #1f5a47;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.day-section .menu-table tr.is-current td {
  background: #fff8e8;
  box-shadow: inset 4px 0 0 #d96a58;
}

.day-section .menu-table tr.is-past td {
  background: #f0f0ed;
  color: #707773;
}

.day-section .menu-table tr.is-past td:first-child,
.day-section .menu-table tr.is-past .menu-cn {
  color: #707773;
}

@media (max-width: 700px) {
  .day-section .resource-panel {
    padding: 23px 17px;
    border-radius: 22px;
  }

  .day-section .example-schedule-bar,
  .day-section .menu-embed-header,
  .day-section .calendar-embed-header,
  .day-section .resource-panel-header {
    margin-bottom: 24px;
  }

  .menu-list-window {
    max-height: 62vh;
  }
}
