:root {
  --top-height: 70px;
  --bottom-height: 7rem;
  --content-height: calc(100dvh - var(--top-height) - var(--bottom-height));
  --content-width: 700px;
  --template-min-width: 360px;
  --panel-overhang: .5rem;
  --ink: #10262d;
  --glass: rgb(9 39 47 / 20%);
  --glass-line: rgb(255 255 255 / 22%);
  --glass-text: #f5ffff;
  --accent: #9fe3e6;
}

* { box-sizing: border-box; }

html,
body {
  min-width: var(--template-min-width);
  height: 100%;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background-color: #d9eaec;
  background-image:
    radial-gradient(circle at 8% 10%, #bee8e9 0, transparent 30rem),
    radial-gradient(circle at 90% 90%, #94c9cc 0, transparent 35rem),
    linear-gradient(135deg, #eff8f8, #d9eaec);
  background-position: 8% 10%, 90% 90%, center;
  background-size: auto, auto, auto;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: -50%;
  z-index: 0;
  background-image: none;
  background-repeat: repeat;
  background-size: auto;
  content: "";
  opacity: .16;
  pointer-events: none;
  transform: rotate(45deg);
  transform-origin: center;
}

.glass-panel {
  position: fixed;
  z-index: 2;
  left: 50%;
  width: min(
    calc(var(--content-width) + (var(--panel-overhang) * 2)),
    100%
  );
  transform: translateX(-50%);
  color: var(--glass-text);
  background: var(--glass);
  border-color: var(--glass-line);
  backdrop-filter: blur(1rem) saturate(135%);
  -webkit-backdrop-filter: blur(1rem) saturate(135%);
}

.contact-panel {
  top: 0;
  height: var(--top-height);
  border-bottom: 1px solid var(--glass-line);
}

.reservation-panel {
  bottom: 0;
  height: var(--bottom-height);
  border-top: 1px solid var(--glass-line);
  display: flex;
  flex-direction: column;
}

.reservation-heading {
  flex: 0 0 1.35rem;
  width: min(var(--content-width), 100%);
  margin: 0 auto;
  padding-top: .25rem;
  color: inherit;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.calendar-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.5rem;
  gap: .25rem;
  width: min(var(--content-width), 100%);
  flex: 1;
  min-height: 0;
  margin: 0 auto;
  padding: .55rem .4rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.calendar-strip::-webkit-scrollbar { display: none; }

.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: .25rem;
  min-width: 0;
}

.calendar-slot {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  color: inherit;
  background: rgb(255 255 255 / 14%);
  border: 1px solid #000;
  border-radius: .35rem;
  cursor: pointer;
  font: inherit;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.1;
  text-decoration: none;
}

.calendar-slot span {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.calendar-slot strong { font-size: .78rem; }

.calendar-slot[data-available="1"][data-price="3"] {
  background: repeating-linear-gradient(
    45deg,
    rgb(191 84 68 / 82%) 0 .18rem,
    rgb(255 255 255 / 16%) .18rem .36rem
  ) !important;
}

.calendar-slot[data-available="1"][data-price="2"] {
  background: repeating-linear-gradient(
    -45deg,
    rgb(207 158 57 / 82%) 0 .18rem,
    rgb(255 255 255 / 16%) .18rem .36rem
  ) !important;
}

.calendar-dates .calendar-slot[data-available="1"][data-price="1"] {
  background: repeating-linear-gradient(
    45deg,
    rgb(48 137 111 / 82%) 0 .18rem,
    rgb(255 255 255 / 16%) .18rem .36rem
  ) !important;
}

.calendar-slot[data-available="1"][data-price="4"] {
  background: rgb(48 137 111 / 72%) !important;
}

.calendar-slot[data-available="0"] {
  position: relative;
  color: rgb(255 255 255 / 60%) !important;
  background: rgb(91 102 105 / 82%) !important;
  cursor: not-allowed;
}

.calendar-slot[data-available="0"]::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / 76%);
  content: "×";
  font-size: 2.1rem;
  font-weight: 300;
  line-height: 1;
}

.calendar-reservation {
  display: grid;
  align-content: center;
  justify-items: center;
  color: inherit;
  background: rgb(255 255 255 / 22%);
  border: 1px solid #000;
  border-radius: .35rem;
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.calendar-reservation strong { font-size: 1.35rem; }

.panel-content {
  width: min(var(--content-width), calc(100% - 2rem));
  min-height: 100%;
  margin: 0 auto;
}

.contact-content {
  display: flex;
  justify-content: center;
}

.brand {
  color: inherit;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: .6rem;
  height: calc(100% - 5px);
  margin-top: 5px;
}

.contact-icons a {
  display: grid;
  place-items: center;
  height: 100%;
}

.contact-icons img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
}

.navigation-drawer {
  position: fixed;
  z-index: 3;
  bottom: calc(var(--bottom-height) + 1rem);
  right: 0;
  width: min(19rem, calc(100vw - 5.5rem));
  overflow: hidden;
  color: var(--glass-text);
  background: #10262d;
  border: 1px solid var(--glass-line);
  border-right: 0;
  border-radius: 1rem 0 0 1rem;
  transition: width .2s ease;
}

.navigation-drawer:not([open]) {
  width: 5.5rem;
  min-width: 5.5rem;
  inline-size: 5.5rem;
  min-inline-size: 5.5rem;
}

.navigation-drawer[open] {
  top: calc(var(--top-height) + 1rem);
  bottom: calc(var(--bottom-height) + 1rem);
}

.navigation-drawer > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: .25rem .5rem;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 700;
  list-style: none;
}

.navigation-drawer > summary::-webkit-details-marker { display: none; }

.drawer-close { display: none; }

.navigation-drawer[open] > summary .drawer-label,
.reservation-drawer[open] > summary .drawer-label { display: none; }

.navigation-drawer[open] > summary .drawer-close,
.reservation-drawer[open] > summary .drawer-close { display: block; }

.navigation-drawer[open] > summary {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 5.5rem;
  height: 2rem;
  background: #10262d;
}

.navigation-drawer nav {
  display: none;
}

.navigation-drawer[open] nav {
  position: absolute;
  inset: 0 0 2rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.reservation-drawer {
  position: fixed;
  z-index: 3;
  bottom: calc(var(--bottom-height) + 1rem);
  left: 0;
  width: min(23rem, calc(100vw - 5.5rem));
  overflow: hidden;
  color: var(--glass-text);
  background: #10262d;
  border: 1px solid var(--glass-line);
  border-left: 0;
  border-radius: 0 1rem 1rem 0;
  transition: width .2s ease;
}

.reservation-drawer:not([open]) {
  width: 5.5rem;
  min-width: 5.5rem;
  inline-size: 5.5rem;
  min-inline-size: 5.5rem;
}

.reservation-drawer[open] {
  top: calc(var(--top-height) + 1rem);
  bottom: calc(var(--bottom-height) + 1rem);
}

.reservation-drawer > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: .25rem .5rem;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 700;
  list-style: none;
}

.reservation-drawer > summary::-webkit-details-marker { display: none; }

.reservation-drawer[open] > summary {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 5.5rem;
  height: 2rem;
  background: #10262d;
  border: 0;
}

.reservation-drawer > section { display: none; }

.reservation-drawer[open] > section {
  position: absolute;
  inset: 0 0 2rem;
  display: block;
  overflow: auto;
  padding: 1.25rem;
}

.reservation-drawer h2 { margin-top: 0; }

.reservation-choice {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.reservation-intro { margin-bottom: 1rem; }

.reservation-contact-form {
  display: grid;
  gap: .4rem;
  margin: 0 0 1rem;
}

.reservation-contact-form input {
  width: 100%;
  box-sizing: border-box;
  padding: .65rem .8rem;
  color: var(--ink);
  font: inherit;
  background: rgb(255 255 255 / 12%);
  border: 1px solid var(--glass-line);
  border-radius: .35rem;
}

.reservation-option {
  display: none;
  padding: 1rem;
  background: rgb(255 255 255 / 8%);
  border: 1px solid var(--glass-line);
  border-radius: .5rem;
}

.reservation-option p { margin: 0 0 1rem; }

.reservation-option[data-price="3"] { background: rgb(191 84 68 / 42%); }
.reservation-option[data-price="2"] { background: rgb(207 158 57 / 42%); }
.reservation-option[data-price="1"] { background: rgb(102 183 139 / 42%); }
.reservation-option[data-price="4"] { background: rgb(48 137 111 / 72%); }

.reservation-reassurance {
  margin: 0 0 1rem;
  padding: .65rem .75rem;
  background: #10262d;
  border-top: 1px solid var(--glass-line);
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
}

.reservation-continue {
  display: block;
  padding: .65rem .8rem;
  color: var(--ink);
  background: #d5f4f4;
  border-radius: .35rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

#reservation-slot-1:checked ~ .reservation-drawer .reservation-option[data-slot="1"],
#reservation-slot-2:checked ~ .reservation-drawer .reservation-option[data-slot="2"],
#reservation-slot-4:checked ~ .reservation-drawer .reservation-option[data-slot="4"],
#reservation-slot-6:checked ~ .reservation-drawer .reservation-option[data-slot="6"],
#reservation-slot-7:checked ~ .reservation-drawer .reservation-option[data-slot="7"],
#reservation-slot-8:checked ~ .reservation-drawer .reservation-option[data-slot="8"],
#reservation-slot-9:checked ~ .reservation-drawer .reservation-option[data-slot="9"],
#reservation-slot-10:checked ~ .reservation-drawer .reservation-option[data-slot="10"],
#reservation-slot-11:checked ~ .reservation-drawer .reservation-option[data-slot="11"],
#reservation-slot-12:checked ~ .reservation-drawer .reservation-option[data-slot="12"],
#reservation-slot-13:checked ~ .reservation-drawer .reservation-option[data-slot="13"],
#reservation-slot-14:checked ~ .reservation-drawer .reservation-option[data-slot="14"],
#reservation-slot-15:checked ~ .reservation-drawer .reservation-option[data-slot="15"] {
  display: block;
}

.navigation-tree,
.navigation-tree ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style: none;
}

.navigation-tree { display: grid; gap: .45rem; }
.navigation-tree ul { margin-top: .45rem; }
.navigation-tree a { color: inherit; }

#catalog-navigation {
  flex: 1;
  min-height: 0;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  padding: .75rem 1.25rem .75rem .75rem;
}

#catalog-navigation::-webkit-scrollbar { width: 18px; }
#catalog-navigation::-webkit-scrollbar-track { background: rgb(255 255 255 / 12%); }
#catalog-navigation::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / 52%);
  border: .2rem solid transparent;
  border-radius: 1rem;
  background-clip: padding-box;
}

.navigation-group summary {
  cursor: pointer;
  font-weight: 700;
}

.navigation-group > ul {
  display: grid;
  gap: .35rem;
  margin-left: .25rem;
  padding: .45rem 0 .1rem .9rem;
  list-style: none;
  border-left: 1px solid rgb(255 255 255 / 45%);
}

.navigation-group > ul > li {
  position: relative;
}

.navigation-group > ul > li::before {
  position: absolute;
  top: .8em;
  left: -.9rem;
  width: .65rem;
  border-top: 1px solid rgb(255 255 255 / 45%);
  content: "";
}

.navigation-breaker {
  margin-top: .7rem;
  padding-top: .7rem;
  color: var(--accent);
  border-top: 1px solid rgb(255 255 255 / 28%);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.navigation-group > ul > .navigation-breaker::before { display: none; }

.content-viewport {
  position: relative;
  z-index: 1;
  height: 100dvh;
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding:
    calc(var(--top-height) + clamp(1.25rem, 4vw, 3rem))
    1rem
    calc(var(--bottom-height) + clamp(1.25rem, 4vw, 3rem));
}

.content-viewport::-webkit-scrollbar { display: none; }

.navigation-logo {
  display: block;
  width: min(100%, 220px);
  height: auto;
  margin: .25rem auto 1.25rem;
  transform: translateX(.5rem);
}

#viewport {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
}

#viewport > article {
  padding: clamp(1.25rem, 4vw, 3rem);
  background: #fff;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 1rem;
  box-shadow: 0 14px 40px rgb(17 48 54 / 14%);
}

#viewport > article > :first-child { margin-top: 0; }
#viewport > article > :last-child { margin-bottom: 0; }
#viewport h1, #viewport h2 { line-height: 1.2; }
#viewport h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

#viewport h2 {
  margin-top: 0;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

#viewport h3 {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.3;
}

#viewport > article + article {
  margin-top: clamp(2.5rem, 7vw, 4.5rem);
}

.locations-footer {
  width: min(var(--content-width), 100%);
  margin: clamp(2.5rem, 7vw, 4.5rem) auto 0;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: #fff;
  border: 1px solid rgb(16 38 45 / 14%);
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgb(16 38 45 / 12%);
}

.locations-footer h2 { margin-top: 0; }

.locations-footer ul {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding-left: 1.2rem;
}

#viewport section {
  margin-top: 1.5rem;
}

#viewport section + section {
  margin-top: 2.25rem;
}

#viewport p,
#viewport li {
  max-width: 72ch;
}

#viewport ul {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem 1rem 2.4rem;
  font-size: .9rem;
  background: rgb(159 227 230 / 18%);
  border: 1px solid rgb(13 98 107 / 20%);
  border-radius: .75rem;
}

#viewport li + li {
  margin-top: .4rem;
}

#viewport a {
  color: #0d626b;
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

#viewport figure {
  margin: 1.75rem 0;
}

#viewport figure:has(> img) {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

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

#viewport figcaption {
  margin-top: .65rem;
  color: #49656b;
  font-size: .9rem;
}

#viewport figure:has(> img) > figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: .5rem .7rem;
  color: #fff;
  background: rgb(55 61 63 / 72%);
  font-size: .82rem;
  line-height: 1.3;
}

/* A price output identifies the hero figure; its caption is not displayed. */
#viewport figure:has(output) > figcaption {
  display: none;
}

#viewport aside {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  background: rgb(159 227 230 / 26%);
  border-left: 3px solid #0d626b;
}

#viewport aside > :first-child {
  flex: 0 0 auto;
  margin-top: .1rem;
}

#viewport aside p { margin: 0; }
#viewport [id] { scroll-margin-top: calc(var(--top-height) + 1rem); }

/* Content-only disclosures: clear interaction cue and a tinted open panel. */
#viewport details {
  margin: 1.25rem 0;
}

#viewport details > summary {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .85rem;
  color: #10353c;
  background: #d7eff0;
  border-left: .3rem solid #0d626b;
  border-radius: .6rem;
  box-shadow: 0 .25rem .7rem rgb(16 53 60 / 12%);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

#viewport details > summary::-webkit-details-marker { display: none; }

#viewport details > summary::before {
  content: "+";
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: #0d626b;
  border-radius: 50%;
  line-height: 1;
}

#viewport details[open] {
  padding: .85rem 1rem 1rem;
  background: rgb(159 227 230 / 20%);
  border-radius: .6rem;
}

#viewport details[open] > summary {
  margin: -.85rem -1rem .85rem;
  border-radius: .6rem .6rem 0 0;
  box-shadow: none;
}

#viewport details[open] > summary::before { content: "−"; }

.reservation-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.reservation-content strong,
.reservation-content span { display: block; }
.reservation-content span { color: var(--accent); font-size: .9rem; }

button {
  padding: .65rem 1rem;
  color: #10353c;
  background: #d5f4f4;
  border: 0;
  border-radius: .5rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Multi-month reservation drawer. PHP emits the whole form as one fragment. */
.reservation-calendar-form {
  display: grid;
  gap: 1rem;
}

.reservation-drawer--legacy,
.reservation-panel {
  display: none;
}

.reservation-calendar-form h2,
.reservation-calendar-form p { margin: 0; }

.reservation-month {
  min-width: 0;
  margin: 0;
  padding: .9rem 0 0;
  border: 0;
  border-top: 1px solid var(--glass-line);
}

.reservation-month:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.reservation-month legend {
  padding: 0;
  font-weight: 800;
}

.reservation-weekdays,
.reservation-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .3rem;
}

.reservation-weekdays {
  margin-bottom: .3rem;
  color: rgb(255 255 255 / 72%);
  font-size: .65rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.reservation-day-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.reservation-day {
  display: grid;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  align-content: center;
  gap: .15rem;
  padding: .25rem;
  color: var(--glass-text);
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 0;
  cursor: pointer;
  text-align: center;
}

.reservation-day time {
  font-size: .7rem;
  font-weight: 800;
}

.reservation-day span {
  font-size: .56rem;
  line-height: 1.15;
}

/* The state remains available to assistive technology and the server-side
   finaliser; colour and the blocked mark carry the compact calendar view. */
.reservation-day > span { display: none; }

.reservation-day--green { background: rgb(48 137 111 / 74%); }
.reservation-day--yellow { background: repeating-linear-gradient(-45deg, rgb(207 158 57 / 88%) 0 .18rem, rgb(255 255 255 / 16%) .18rem .36rem); }
.reservation-day--red { background: repeating-linear-gradient(45deg, rgb(191 84 68 / 88%) 0 .18rem, rgb(255 255 255 / 16%) .18rem .36rem); }

.reservation-day--blocked {
  position: relative;
  color: rgb(255 255 255 / 64%);
  background: rgb(91 102 105 / 84%);
  cursor: not-allowed;
}

.reservation-day--blocked::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  content: "×";
  font-size: 1.7rem;
  font-weight: 300;
}

.reservation-day-input:checked + .reservation-day {
  box-shadow: inset 0 0 0 3px var(--accent);
}

.reservation-day:has(.reservation-day-input:focus-visible) {
  box-shadow: inset 0 0 0 3px #fff;
}

.reservation-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: .5rem;
}

.reservation-submit,
.reservation-clear {
  width: 100%;
}

.reservation-submit {
  color: #10353c;
  background: #d5f4f4;
}

.reservation-submit:disabled {
  color: rgb(255 255 255 / 60%);
  background: rgb(255 255 255 / 14%);
  cursor: not-allowed;
}

.reservation-clear {
  color: var(--glass-text);
  background: transparent;
  border: 1px solid var(--glass-line);
}

.reservation-drawer[open] > section {
  padding-right: .55rem;
  padding-left: .55rem;
}

@media (max-width: 560px) {
  .reservation-content button { display: none; }
  #viewport > article { border-radius: .75rem; }
}
 

/* Price output directly inside the hero figure: no class or data attribute needed. */
#viewport figure:has(> output) {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

#viewport figure:has(> output) > img {
  display: block;
}

/* Optional inner image wrapper: <figure><div><img><output>… */
#viewport figure > div:has(> img + output) {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

#viewport figure > div:has(> img + output) > img {
  display: block;
  max-width: 100%;
  height: auto;
}

#viewport figure output {
  position: absolute;
  top: -2rem;
  right: -1rem;
  bottom: auto;
  left: auto;
  font-size: .7rem;
  display: grid;
  place-items: center;
  padding: .35rem .65rem;
  box-sizing: border-box;
  color: #fff;
  background: #8b0000;
  box-shadow: -7px 9px 16px rgb(0 0 0 / 52%);
  text-align: center;
}

#viewport figure output strong {
  display: block;
  font-size: 1rem;
  white-space: nowrap;
}

/* Product specification tables are compact, fixed-width and non-wrapping. */
#viewport table {
  width: 100%;
  margin-inline: auto;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 50%;
}

#viewport th,
#viewport td {
  overflow: hidden;
  text-align: center;
}

#viewport thead tr > :first-child,
#viewport tbody tr > :first-child {
  width: 50%;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Two columns: 75/25. Three columns: 50/25/25. */
#viewport table:has(> thead > tr > :nth-child(2)):not(:has(> thead > tr > :nth-child(3))) > :is(thead, tbody) > tr > :first-child {
  width: 75%;
}

#viewport table:has(> thead > tr > :nth-child(2)):not(:has(> thead > tr > :nth-child(3))) > :is(thead, tbody) > tr > :not(:first-child),
#viewport table:has(> thead > tr > :nth-child(3)):not(:has(> thead > tr > :nth-child(4))) > :is(thead, tbody) > tr > :not(:first-child) {
  width: 25%;
}

#viewport table tr > :not(:first-child) {
  white-space: normal;
  overflow-wrap: anywhere;
}

#viewport tfoot > tr > * {
  overflow: hidden;
  padding: .85rem .8rem .7rem;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  word-break: break-word;
  background: #eef0f1;
  box-shadow:
    inset 0 .4rem 0 #fff,
    inset 0 .55rem .8rem rgb(16 38 45 / 6%);
}

/* Use a caption for the table title. */
#viewport table caption {
  caption-side: top;
  padding: .45rem .65rem;
  color: #fff;
  background: #0d626b;
  font-weight: 800;
  text-align: center;
}

/* Internal rules only: no outside table border. */
#viewport thead > tr:first-child > * {
  box-shadow: inset 0 -1px 0 rgb(16 38 45 / 55%);
}

#viewport th + th,
#viewport td + td {
  box-shadow: inset 1px 0 0 rgb(16 38 45 / 25%);
}

#viewport thead > tr:first-child > * + * {
  box-shadow:
    inset 1px 0 0 rgb(16 38 45 / 25%),
    inset 0 -1px 0 rgb(16 38 45 / 55%);
}
