/* The shared palette uses stronger ink and rules while keeping the laboratory greens. */
:root {
  --ink: #183d2e;
  --muted: #456353;
  --line: #b6c7b8;
  --line-strong: #8ba18f;
  --lab-forest: #214f3b;
  --lab-outline: #758e7b;
}

.sui-site-header { border-bottom-color: var(--line); }
.sui-site-header .sui-global-nav[data-sui-nav] {
  background: #e0ebe1;
  box-shadow: inset 0 0 0 1px var(--lab-outline);
}
.sui-global-nav[data-sui-nav] .sui-nav-pill {
  background: var(--lab-forest);
  box-shadow: 0 1px 3px #173d302e;
}
.sui-global-nav[data-sui-nav] a[data-sui-route] {
  color: #335542;
  font-weight: 650;
}
.sui-global-nav[data-sui-nav] a[data-sui-route][aria-current="page"] { color: #fff; }
.sui-global-nav[data-sui-nav] a[data-sui-route]:focus-visible { outline-color: #39654e; }

#main .home-page .booking-entry { --entry-paper: #d9e9dc; --entry-rule: #769680; --entry-action: #214f3b; }
#main .home-page .materials-entry { --entry-paper: #f7f9f5; --entry-rule: #83988b; --entry-action: #365c4d; }
#main .home-page .budget-entry { --entry-paper: #e9eedf; --entry-rule: #899c7b; --entry-action: #48623d; }
#main .home-page .entry-card {
  background: var(--entry-paper);
  border: 1px solid var(--entry-rule);
}
#main .home-page .entry-card:focus-visible { outline: 2px solid var(--entry-action); outline-offset: 3px; }
#main .home-page .entry-kicker { color: #4b6553; font-weight: 600; }
#main .home-page .entry-arrow {
  background: #ffffff80;
  border-color: var(--entry-rule);
  color: var(--entry-action);
}
#main .home-page .entry-copy h2 { color: var(--ink); font-weight: 670; }
#main .home-page .entry-link {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--entry-action);
  color: #fff;
  font-weight: 650;
}
#main .home-page .booking-entry .entry-link { background: #507762; }
#main .home-page .entry-footnote { color: #3b5947; }
#main .home-title em { color: #476c51; }
#main .home-page :is(.eyebrow, .home-description, .home-date, .home-note, .home-affairs-hint-action) { color: var(--muted); }
#main .home-page .home-affairs-hint { border-color: var(--lab-outline); }
@media (max-width: 699px) {
  #main .home-page .home-affairs-hint { right: 8px; top: 22px; }
}
#main .home-page .affairs-board { border-color: var(--line-strong); }

.booking-page :is(.eyebrow,.heading-copy,.back-link,.grid-legend,.grid-footer,.name-field label) { color: var(--muted); }
.booking-page .date-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.booking-page .date-chip {
  display: grid;
  grid-template-columns: max-content max-content;
  grid-template-rows: auto auto;
  place-content: center;
  align-items: center;
  gap: 2px 8px;
  min-height: 49px;
  padding: 6px 5px;
  text-align: left;
}
.booking-page .date-chip strong {
  grid-area: 1 / 1 / 3 / 2;
  font-size: 21px;
  line-height: 1;
}
.booking-page .date-chip small { grid-area: 1 / 2; line-height: 1.2; }
.booking-page .date-chip span { grid-area: 2 / 2; line-height: 1.2; }
.booking-page .schedule-panel { border-color: var(--line-strong); }
.booking-page #grid-area + .availability-bar { margin-top: 14px; }
.booking-page .grid-scroll { border-color: #8ea491; }
.booking-page .schedule-grid :is(th,td) { border-color: #c3d0c4; }
.booking-page .schedule-grid :is(.time-head,.bench-group,.side-head) { color: #375845; }
.booking-page .bench-number { color: #4b6552; border-color: #a6b8a6; }
.booking-page .slot.free .slot-plus { color: #58775e; }
.booking-page .booking-group-card { border-color: #91a78a; }
.booking-page .booking-group-card.booking-sealed { border-color: #a1ada0; }
.booking-page .bench-tabs { background: #e9f0e7; box-shadow: inset 0 0 0 1px #a6bba7; }
.booking-page .bench-tabs button { color: #3d5c47; font-weight: 600; }
.booking-page .bench-tabs button.active {
  background: var(--lab-forest);
  color: #fff;
  box-shadow: 0 1px 3px #193e2c28;
}
.booking-page .date-chip:not(.active) :is(small,span) { color: #4b6956; }
.booking-page .date-chip.locked:not(.active) span { color: #735b37; }
.site-footer { color: var(--muted); }

@media (max-width: 699px) {
  .sui-site-header {
    grid-template-columns: max-content minmax(0,1fr);
    gap: 8px;
  }
  .sui-site-header .sui-global-nav[data-sui-nav] {
    width: min(100%, 290px);
    height: 50px;
    padding: 3px;
  }
  .sui-global-nav[data-sui-nav] .sui-nav-pill {
    left: 3px;
    top: 3px;
    bottom: 3px;
    width: calc((100% - 6px) / 4);
  }
  .sui-global-nav[data-sui-nav] a[data-sui-route] {
    height: 44px;
    padding: 0 2px;
    font-size: 13px;
    line-height: 1.2;
  }
  #main .home-page .entry-link { padding: 4px 8px; font-size: 11.5px; }
}
@media (max-width: 359px) {
  .sui-site-header { width: calc(100% - 24px); }
}
