/* Commerce components shared by shop.zendama.store and partner.zendama.store.
   Builds on /assets/sites/shared.css; tokens are not redefined here. */
[hidden] {
  display: none !important;
}
.no-js [data-js-only] {
  display: none;
}
main {
  min-height: 60vh;
}
main:focus,
[tabindex="-1"]:focus {
  outline: none;
}

/* Page head and blocks */
.page-head {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.page-head h1 {
  font-size: var(--step-3);
}
.page-head .lead {
  margin: 1rem 0 0;
  color: var(--ink-soft);
}
.block {
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
}
.block--tight {
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 7vw, 6rem);
}
.block--line {
  border-top: 1px solid var(--line);
}
.block--porcelain {
  background: var(--porcelain);
}
.block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.block__head h2,
.block h2 {
  font-size: var(--step-2);
}
.block__head p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
}
.section--accent a:hover {
  color: inherit;
  opacity: 0.8;
}
.section--accent .eyebrow {
  color: var(--sage);
}
.crumbs {
  padding-top: 1.5rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}
.crumbs a::before {
  content: "←";
  margin-right: 0.5rem;
}
.crumbs + .page-head {
  padding-top: 0.5rem;
}

/* Site notice and drafts */
.notice--site {
  max-width: none;
  margin: 0 0 1.5rem;
}
.draft {
  max-width: 44rem;
  margin: 1.25rem 0 0;
}
.draft strong {
  font-weight: 600;
}

/* Header count */
.count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.4rem;
  padding-inline: 0.3rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0;
  line-height: 1;
  vertical-align: 0.1em;
}
.count[data-zero] {
  background: none;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
}
.menu-toggle {
  position: relative;
}
body[data-list="has"] .menu-toggle::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  right: 0.35rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
}

/* Hero */
.hero {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 6vw, 6rem);
}
.hero h1 {
  font-size: var(--step-3);
}
.hero .lead {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  max-width: none;
  margin: 2rem 0 0;
}
.hero__media {
  margin: 0;
}
@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(3rem, 6vw, 6rem);
  }
}

/* States */
.state {
  max-width: none;
  margin: 0;
  padding: 1.5rem 0;
  color: var(--ink-soft);
}
.state--loading::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.7rem;
  background: var(--accent);
  animation: zd-pulse 1.2s ease-in-out infinite;
}
.state--box {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--porcelain);
  color: var(--ink);
}
.state--box h2 {
  margin-bottom: 0.6rem;
  font-size: var(--step-1);
}
.state--box p {
  color: var(--ink-soft);
}
.state__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  max-width: none;
  margin: 1.25rem 0 0;
}
@keyframes zd-pulse {
  50% {
    opacity: 0.2;
  }
}
@keyframes zd-rise {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }
}

/* Category filter */
.filter ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.filter a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid transparent;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.filter a:hover {
  border-color: var(--line-strong);
}
.filter a[aria-current="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
.category-blurb {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}
.group + .group {
  margin-top: clamp(3rem, 6vw, 5rem);
}
.group__head {
  margin-bottom: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}
.group__head p {
  margin: 0.35rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Product grid and cards */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48rem) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem 1.75rem;
  }
}
@media (min-width: 75rem) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3.5rem 2rem;
  }
}
.card {
  display: flex;
  flex-direction: column;
  animation: zd-rise 0.7s var(--ease) both;
}
.card:nth-child(2) {
  animation-delay: 60ms;
}
.card:nth-child(3) {
  animation-delay: 120ms;
}
.card:nth-child(4) {
  animation-delay: 180ms;
}
.card:nth-child(n + 5) {
  animation-delay: 240ms;
}
.card__link {
  display: block;
  text-decoration: none;
}
.card__link:hover {
  color: inherit;
}
.card .frame img {
  transition: transform 0.9s var(--ease);
}
.card__link:hover .frame img {
  transform: scale(1.035);
}
.card__name {
  margin-top: 0.9rem;
  font-size: var(--step-1);
  line-height: 1.35;
}
.card__link:hover .card__name {
  color: var(--accent);
}
.card__sub {
  margin: 0.3rem 0 0;
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--ink-soft);
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-top: 0.7rem;
  font-size: var(--step--1);
}
.card__specs {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--ink-soft);
}
.price {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.3;
}
.muted {
  color: var(--ink-soft);
}
.badge {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  white-space: nowrap;
}
.badge--muted {
  border-color: var(--line-strong);
  color: var(--ink-soft);
}
.product-image {
  position: relative;
}
.product-image.is-empty {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--porcelain);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
}
.image-tag {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  background: var(--porcelain);
  border-color: transparent;
  color: var(--ink);
  line-height: 1.6;
}

/* Category entries */
.entries {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}
.entries a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 1rem;
  min-height: 2.75rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.entries strong {
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 400;
}
.entries span {
  font-size: var(--step--1);
  color: var(--ink-soft);
}
@media (min-width: 48rem) {
  .entries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
}
@media (min-width: 75rem) {
  .entries {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Steps */
.steps {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-strong);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--serif-latin);
  font-size: var(--step-1);
  letter-spacing: 0.1em;
  color: var(--brass);
}
.steps h3 {
  font-size: var(--step-1);
  line-height: 1.35;
}
.steps p {
  margin: 0.5rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
}
@media (min-width: 75rem) {
  .steps--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .steps--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .steps--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Product detail */
.detail {
  display: grid;
  gap: 2rem;
}
.detail__media {
  margin: 0;
}
.detail__media img {
  width: 100%;
}
.detail__sub {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
}
.detail__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 1.25rem 0;
  padding-block: 1rem;
  border-block: 1px solid var(--line);
}
.detail__status .price {
  font-size: var(--step-2);
}
.detail h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--line-strong);
  background: var(--porcelain);
  font-size: var(--step--1);
}
.specs {
  margin: 0;
  border-top: 1px solid var(--line);
}
.specs div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
}
.specs dt {
  color: var(--ink-soft);
}
.specs dd {
  margin: 0;
}
.buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
}
.buy__note {
  flex-basis: 100%;
  max-width: none;
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.buy__done {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin: 0;
  font-size: var(--step--1);
}
.fineprint {
  margin: 1.5rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
@media (min-width: 60rem) {
  .detail {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2.5rem, 5vw, 5rem);
  }
  .detail__media {
    position: sticky;
    top: 5.5rem;
  }
}

/* Quantity stepper */
.qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  background: var(--porcelain);
}
.qty button {
  width: 2.75rem;
  min-height: 2.9rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}
.qty button:hover {
  color: var(--accent);
}
.qty input {
  width: 3.5rem;
  border: 0;
  border-inline: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.qty--wide input {
  width: 5rem;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.qty-unit {
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Cart and quote lines */
.checkout {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 60rem) {
  .checkout {
    grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 1fr);
    align-items: start;
    gap: clamp(2.5rem, 5vw, 5rem);
  }
  .checkout__side {
    position: sticky;
    top: 5.5rem;
  }
}
.lines {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}
.line {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 0.9rem 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.line__name {
  font-size: var(--step-1);
  line-height: 1.35;
}
.line__name a {
  text-decoration: none;
}
.line__meta {
  margin: 0.25rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.line__warn {
  margin: 0.4rem 0 0;
  font-size: var(--step--1);
  color: #8f2323;
}
.line__controls {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.line__qty {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.line__total {
  font-family: var(--serif);
  font-size: var(--step-1);
}
.line__note {
  grid-column: 1 / -1;
}
.link-button {
  min-height: 2.75rem;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: var(--step--1);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.link-button:hover {
  color: var(--accent);
}
@media (min-width: 48rem) {
  .line {
    grid-template-columns: 6rem minmax(0, 1fr) auto;
    align-items: center;
  }
  .line__controls {
    grid-column: auto;
    justify-content: flex-end;
    gap: 1.5rem;
  }
}
.summary {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: var(--porcelain);
}
.summary h2 {
  margin-bottom: 1rem;
  font-size: var(--step-1);
}
.summary dl {
  margin: 0;
}
.summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  font-size: var(--step--1);
}
.summary dd {
  margin: 0;
  text-align: right;
}
.summary dl .summary__total {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
  font-size: var(--step-0);
}
.summary__total dd {
  font-family: var(--serif);
  font-size: var(--step-1);
}
.summary p {
  margin: 1rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.summary .button {
  width: 100%;
  margin-top: 1.25rem;
}
.summary ul {
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
  list-style: none;
  font-size: var(--step--1);
}
.summary li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
}

/* Forms */
.form {
  display: grid;
  gap: 1.25rem;
  max-width: 42rem;
}
.form h2 {
  margin-top: 1rem;
  font-size: var(--step-2);
}
.form > p {
  margin: 0;
  color: var(--ink-soft);
}
.form__row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 40rem) {
  .form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--step--1);
  letter-spacing: 0.03em;
}
.field__mark {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.field input:not([type="checkbox"]),
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--porcelain);
  color: inherit;
  font: inherit;
  line-height: 1.5;
}
.field textarea {
  resize: vertical;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline-offset: 0;
}
.field [aria-invalid="true"] {
  border-color: #8f2323;
}
.field__hint,
.field__error {
  max-width: none;
  margin: 0.35rem 0 0;
  font-size: var(--step--1);
}
.field__hint {
  color: var(--ink-soft);
}
.field__error {
  color: #8f2323;
}
.field--check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.75rem;
}
.field--check input {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  accent-color: var(--accent);
}
.field--check label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 2.75rem;
  margin: 0;
  font-size: var(--step--1);
  cursor: pointer;
}
.field--check .field__error {
  grid-column: 1 / -1;
}
.consent {
  padding: clamp(1.1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  background: var(--porcelain);
}
.consent h3 {
  margin-bottom: 0.6rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.consent ul {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.form__alert {
  padding: 1rem 1.25rem;
  border-left: 2px solid #8f2323;
  background: var(--porcelain);
  font-size: var(--step--1);
}
.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.form__status {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Result and closed panels */
.result,
.closed {
  max-width: 42rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--porcelain);
}
.result h2,
.closed h2 {
  margin-bottom: 1rem;
  font-size: var(--step-2);
}
.result__number {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin: 0 0 1.25rem;
  padding-block: 1rem;
  border-block: 1px solid var(--line);
}
.result__number span {
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.result__number strong {
  font-family: var(--serif-latin);
  font-size: var(--step-2);
  font-weight: 400;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}
.closed__mail {
  margin: 0.75rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Long-form pages */
.prose {
  max-width: 44rem;
}
.prose h2 {
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--step-2);
}
.prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: var(--step-1);
}
.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.2rem;
}
.prose li {
  margin-bottom: 0.35rem;
}
.prose dl {
  margin: 0 0 1em;
}
.prose dt {
  margin-top: 0.9rem;
  font-weight: 600;
}
.prose dd {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
}
.cards {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cards li {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-strong);
}
.cards h3 {
  font-size: var(--step-1);
  line-height: 1.35;
}
.cards p {
  margin: 0.5rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
@media (min-width: 48rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
  .cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: clamp(2.5rem, 6vw, 6rem);
  }
}

/* Business information in the footer */
.biz {
  padding-block: 1.75rem;
  border-top: 1px solid rgba(245, 240, 231, 0.18);
}
.biz dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 2rem;
  margin: 0;
}
.biz dt {
  font-size: 0.75rem;
  color: rgba(245, 240, 231, 0.6);
}
.biz dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.biz p {
  max-width: none;
  margin: 1.1rem 0 0;
  color: rgba(245, 240, 231, 0.7);
}
@media (min-width: 60rem) {
  .biz dl {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Panels that follow a rendered region */
.region:not(:empty) + .closed,
.region:not(:empty) + .form {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* 44 px tap targets without changing the visual size */
.brand-lockup,
.site-nav a {
  min-height: 2.75rem;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
}
main .text-link,
.state__actions a:not(.button),
.closed a:not(.button),
.result a:not(.button) {
  position: relative;
}
main .text-link::before,
.state__actions a:not(.button)::before {
  content: "";
  position: absolute;
  inset: -0.6rem 0;
}
.group__head h2 {
  font-size: var(--step-2);
}
/* Thumbnails are too small for the overlay tag; the line text carries it. */
.line .image-tag {
  display: none;
}
/* Keep the lockup on one line on narrow phones */
.site-header .brand-lockup {
  white-space: nowrap;
}
@media (max-width: 27rem) {
  .site-header .brand-lockup {
    gap: 0.5rem;
  }
  .site-header .brand-lockup svg {
    width: 1.75rem;
    height: 1.75rem;
  }
  .site-header .brand-lockup__word {
    font-size: 1.1rem;
    letter-spacing: 0.22em;
  }
  .site-header .brand-lockup__site {
    padding-left: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
  }
}
.detail__media img {
  max-height: 80vh;
  object-fit: cover;
}

/* The shared header uses backdrop-filter, which makes it the containing block
   for the fixed mobile menu and collapses the panel to the header's height.
   Anchor the panel to the header and give it the remaining viewport height. */
@media (max-width: 60rem) {
  .site-header .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    height: calc(100vh - 4.25rem);
    height: calc(100dvh - 4.25rem);
  }
}
