:root {
  --berth-gap: clamp(20px, 4vw, 56px);
  --berth-rhythm: clamp(40px, 6vw, 88px);
}

.berth-pricing {
  padding-bottom: var(--berth-rhythm);
}

.berth-opening {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: var(--berth-gap);
  padding-top: var(--berth-gap);
}

.berth-heading {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.berth-heading p,
.berth-section-head p,
.berth-caption,
.berth-capacity {
  color: var(--text-muted);
}

.berth-guide h2,
.berth-entry h2 {
  font-size: var(--size-subheading);
}

.berth-entry h2 {
  text-wrap: pretty;
}

.berth-guide dl {
  margin: 12px 0 0;
}

.berth-guide dl > div {
  display: grid;
  grid-template-columns: minmax(0, 8em) minmax(0, 1fr);
  gap: 4px 16px;
  padding-block: 10px;
  border-top: 1px solid var(--border);
}

.berth-guide dl > div:last-child {
  padding-bottom: 0;
}

.berth-guide dt,
.berth-inclusions dt {
  font-weight: var(--weight-button);
}

.berth-guide dd,
.berth-inclusions dd {
  min-width: 0;
  margin: 0;
}

.berth-pricing :is(dd, .berth-settle p) a {
  color: var(--cobalt-deep);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.berth-section {
  margin-top: var(--berth-rhythm);
}

.berth-section-head {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-bottom: 20px;
}

.berth-table tr:target > * {
  background: var(--ink-hover);
}

.berth-caption {
  margin-top: 12px;
  font-size: var(--size-small);
}

.berth-rule {
  max-width: none;
  margin-bottom: 16px;
}

.berth-pricing .plan-card .btn {
  flex-shrink: 0;
}

.berth-capacity {
  font-size: var(--size-small);
}

.berth-inclusions {
  margin: 0;
}

.berth-inclusions > div {
  display: grid;
  grid-template-columns: minmax(0, .27fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 6px 20px;
}

.berth-inclusions > div + div {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.berth-inclusions dd {
  max-width: var(--measure);
}

.berth-settle {
  align-items: stretch;
}

.berth-settle article {
  align-content: start;
}

.berth-entry {
  margin-bottom: 0;
}

@media (min-width: 641px) and (max-width: 860px) {
  .berth-pricing .plan-card .price {
    font-size: var(--size-subheading);
  }
}

@media (max-width: 860px) {
  .berth-opening {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .berth-guide dl > div,
  .berth-inclusions > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .berth-table tr:target {
    border-color: var(--cobalt);
  }

  .berth-table tr:target > * {
    background: var(--clear);
  }
}