/* components */

/* buttons: text + arrow, underlined */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rd1);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  cursor: pointer;
}

.arrow-link span {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s;
}

.arrow-link:hover span {
  transform: translateX(4px);
}

.arrow-link-solid {
  padding: 0 22px;
  border-radius: var(--rc1);
  background: var(--rd1);
  color: var(--wt1);
  text-decoration-color: rgba(255, 255, 255, 0.55);
  box-shadow: var(--sh1);
}

.arrow-link-solid:hover {
  background: var(--rd2);
  color: var(--wt1);
}

.arrow-link-line {
  padding: 0 18px;
  border: 1px solid var(--rd1);
  border-radius: var(--rc1);
  background: var(--wt1);
}

.arrow-link:disabled {
  cursor: wait;
  background: var(--cr3);
  color: var(--tx2);
}

/* chips */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid var(--cr3);
  border-radius: 17px;
  background: var(--wt1);
  color: var(--tx1);
  font-size: 0.86rem;
  font-weight: 600;
}

/* text cards */
.card {
  padding: 26px 24px;
  border: 1px solid var(--cr3);
  border-radius: var(--rc1);
  background: var(--wt1);
}

.card h3 {
  margin-bottom: 10px;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card-accent {
  border-left: 3px solid var(--rd1);
}

.card-lift {
  box-shadow: var(--sh1);
}

.card-num {
  display: block;
  margin-bottom: 14px;
  color: var(--rd1);
  font-family: var(--ff1);
  font-size: 1.7rem;
  line-height: 1;
}

/* quote wall: irregular placement on a 12-col grid */
.quote-wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qw-item {
  margin: 0;
  padding: 26px 26px 22px;
  border: 1px solid var(--cr3);
  border-radius: var(--rc1);
  background: var(--wt1);
}

.qw-item blockquote {
  margin: 0 0 16px;
  font-size: 1.02rem;
}

.qw-item blockquote p {
  margin: 0;
}

.qw-item figcaption {
  color: var(--tx2);
  font-size: 0.88rem;
}

.qw-item figcaption strong {
  color: var(--tx1);
}

.qw-1 {
  grid-column: 1 / span 7;
  grid-row: span 2;
  padding: 40px 36px;
  background: var(--tx1);
  border-color: var(--tx1);
  color: var(--cr1);
  box-shadow: var(--sh2);
}

/* Manrope here: the display face draws the guillemets the wrong way round */
.qw-1 blockquote {
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.65rem);
  font-weight: 600;
  line-height: 1.45;
}

.qw-1 figcaption,
.qw-1 figcaption strong {
  color: var(--cr3);
}

.qw-2 {
  grid-column: 8 / span 5;
}

.qw-3 {
  grid-column: 8 / span 4;
  border-left: 3px solid var(--rd1);
}

.qw-4 {
  grid-column: 2 / span 4;
  margin-top: -6px;
}

.qw-5 {
  grid-column: 6 / span 4;
  background: var(--mn1);
  border-color: var(--mn1);
}

.qw-6 {
  grid-column: 10 / span 3;
  box-shadow: var(--sh1);
}

@media (max-width: 899px) {
  .quote-wall {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .qw-item,
  .qw-1 {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
  }

  .qw-1 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .quote-wall {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* horizontal rail with native scroll-snap */
.rail-ctrl {
  display: flex;
  gap: 8px;
}

.rail-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--cr3);
  border-radius: var(--rc1);
  background: var(--wt1);
  color: var(--tx1);
  font-size: 1.2rem;
  cursor: pointer;
}

.rail-btn:hover {
  border-color: var(--rd1);
  color: var(--rd1);
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 290px);
  gap: 20px;
  margin: 0;
  padding: 0 0 16px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--cr3) transparent;
}

.rail-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--cr3);
  background: var(--wt1);
  scroll-snap-align: start;
}

.rail-panel img {
  width: 100%;
}

.rail-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 14px;
}

.rail-body p {
  color: var(--tx2);
  font-size: 0.95rem;
}

.rail-price {
  margin-top: auto;
  color: var(--tx1);
  font-weight: 700;
}

.rail-price small {
  color: var(--tx2);
  font-weight: 500;
}

/* playbill rows: native details */
.playbill {
  border-top: 1px solid var(--tx1);
}

.pb-row {
  border-bottom: 1px solid var(--cr3);
}

.pb-row summary {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(0, 2.4fr) auto 44px;
  gap: 18px;
  align-items: center;
  min-height: 84px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
}

.pb-row summary::-webkit-details-marker {
  display: none;
}

.pb-months {
  font-family: var(--ff1);
  font-size: 1.05rem;
}

.pb-title {
  color: var(--tx2);
}

.pb-temp {
  color: var(--rd1);
  font-family: var(--ff1);
  font-size: 1.35rem;
  white-space: nowrap;
}

.pb-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--cr3);
  border-radius: var(--rc1);
  background: var(--wt1);
  font-size: 1.3rem;
  transition: transform 0.2s;
}

.pb-row[open] .pb-toggle {
  transform: rotate(45deg);
}

.pb-card {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 28px;
  margin: 0 0 26px;
  padding: 22px;
  border: 1px solid var(--cr3);
  background: var(--wt1);
  box-shadow: var(--sh1);
}

.pb-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pb-card li {
  border-top: 1px solid var(--cr2);
}

@media (max-width: 720px) {
  .pb-row summary {
    grid-template-columns: minmax(0, 1fr) auto 44px;
  }

  .pb-title {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .pb-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .pb-card img {
    max-width: 240px;
  }
}

/* who sews */
.team {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: start;
}

.team-fig {
  margin: 0;
}

.team-fig img {
  width: 100%;
}

.team-fig figcaption {
  padding-top: 12px;
  color: var(--tx2);
  font-size: 0.9rem;
}

/* square: holds a photo, so no radius here (rectangular photos rule) */
.team-text {
  padding: 30px 28px;
  border: 1px solid var(--cr3);
  background: var(--wt1);
}

.team-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}

.team-portrait {
  max-width: 420px;
}

@media (max-width: 899px) {
  .team,
  .team-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* film treatment for mood photos: grain + light vignette, square corners */
.film {
  position: relative;
  margin: 0;
  isolation: isolate;
}

.film::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 45%, rgba(26, 35, 43, 0) 58%, rgba(26, 35, 43, 0.3) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.13 0 0 0 0 0.16 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* CTA band with photo */
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--cr3);
  background: var(--wt1);
  box-shadow: var(--sh2);
}

.cta-band .film img {
  width: 100%;
  height: 100%;
  max-height: clamp(260px, 52vh, 520px);
  object-fit: cover;
}

.cta-copy {
  padding: 44px 40px;
}

.cta-copy .arrow-link {
  margin-right: 22px;
}

@media (max-width: 899px) {
  .cta-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-copy {
    padding: 30px 22px;
  }
}

/* catalogue */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.filter-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--cr3);
  border-radius: 22px;
  background: var(--wt1);
  color: var(--tx1);
  font-weight: 600;
  cursor: pointer;
}

.filter-btn[aria-pressed='true'] {
  border-color: var(--rd1);
  background: var(--rd1);
  color: var(--wt1);
}

.pcard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cr3);
  background: var(--wt1);
  transition: box-shadow 0.2s;
}

.pcard:hover {
  box-shadow: var(--sh2);
}

.pcard-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: var(--tx1);
  text-decoration: none;
}

.pcard-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 16px 16px;
}

.pcard-body h3 {
  font-family: var(--ff2);
  font-size: 1rem;
  font-weight: 700;
}

.pcard-meta {
  margin-bottom: 8px;
  color: var(--tx2);
  font-size: 0.88rem;
}

.pcard-price {
  margin: auto 0 0;
  font-weight: 800;
}

.pcard-price small {
  color: var(--tx2);
  font-weight: 500;
}

@media (max-width: 1099px) {
  .pcard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pcard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .pcard-body {
    padding: 12px;
  }
}

/* product page */
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: 'photo info';
  gap: 48px;
  align-items: start;
}

.product-info {
  grid-area: info;
}

.product-photo {
  grid-area: photo;
  justify-self: center;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--cr3);
  background: var(--wt1);
  box-shadow: var(--sh1);
}

/* photo capped by viewport height so the add button stays reachable */
.product-photo img {
  width: auto;
  max-height: 60vh;
}

.product-title {
  font-size: clamp(1.3rem, 1rem + 1.1vw, 2rem);
}

.product-price {
  margin-bottom: 6px;
  font-size: 1.5rem;
  font-weight: 800;
}

.product-price small {
  color: var(--tx2);
  font-size: 0.9rem;
  font-weight: 500;
}

.product-color {
  color: var(--tx2);
}

.buy-form {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--cr3);
  border-radius: var(--rc1);
  background: var(--wt1);
}

.size-set {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
}

.size-set legend {
  margin-bottom: 10px;
  font-weight: 700;
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-opt {
  position: relative;
}

.size-opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.size-opt span {
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 46px;
  padding: 0 10px;
  border: 1px solid var(--cr3);
  border-radius: var(--rc1);
  background: var(--cr1);
  font-weight: 700;
}

.size-opt input:checked + span {
  border-color: var(--rd1);
  background: var(--rd1);
  color: var(--wt1);
}

.size-opt input:focus-visible + span {
  outline: 2px solid var(--rd1);
  outline-offset: 2px;
}

.size-opt input:disabled + span {
  color: var(--tx2);
  background: var(--cr2);
  text-decoration: line-through;
  cursor: not-allowed;
}

.size-note {
  margin: 8px 0 0;
  color: var(--tx2);
  font-size: 0.88rem;
}

.buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 20px;
  margin-top: 16px;
}

.buy-row .field {
  margin: 0;
}

.buy-row select {
  width: 96px;
}

.buy-msg {
  min-height: 1.6em;
  margin: 12px 0 0;
  font-weight: 600;
}

.buy-msg.msg-err {
  color: var(--er1);
}

.spec-list {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 10px 20px;
  margin: 0;
}

.spec-list dt {
  color: var(--tx2);
  font-weight: 700;
}

.spec-list dd {
  margin: 0;
}

@media (max-width: 899px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'info' 'photo';
    gap: 28px;
  }
}

/* small phones: title, price, sizes and the add button stay above the consent bar */
@media (max-width: 420px) {
  .product-title {
    font-size: 1.12rem;
  }

  .product-price {
    font-size: 1.25rem;
  }

  .product-color {
    margin-bottom: 0;
  }

  .buy-form {
    margin-top: 10px;
    padding: 12px;
  }

  .size-grid {
    gap: 6px;
  }

  .size-opt span {
    min-width: 44px;
    height: 44px;
    padding: 0 6px;
  }

  .buy-row {
    gap: 8px 12px;
    margin-top: 10px;
  }

  .buy-row select {
    width: 72px;
  }
}

/* forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field label,
.field-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--cr3);
  border-radius: var(--rc1);
  background: var(--wt1);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--rd1);
  outline: 2px solid var(--mn1);
}

.field-hint {
  color: var(--tx2);
  font-size: 0.85rem;
}

.field-error {
  min-height: 0;
  color: var(--er1);
  font-size: 0.88rem;
  font-weight: 600;
}

.field-bad input,
.field-bad select,
.field-bad textarea {
  border-color: var(--er1);
}

.check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--rd1);
}

.check .field-error {
  grid-column: 2;
}

.contact-sec {
  padding-top: 32px;
}

.contact-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.contact-quick a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--tx1);
  font-weight: 800;
  font-size: 1.08rem;
}

.form-card .form-after {
  margin: 22px 0 0;
  font-size: 0.92rem;
}

.contact-side {
  display: grid;
  gap: 20px;
  min-width: 0;
}

/* honeypot: off screen, not display:none */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-card {
  padding: 30px 28px;
  border: 1px solid var(--cr3);
  border-radius: var(--rc1);
  background: var(--wt1);
  box-shadow: var(--sh1);
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0 16px;
}

@media (max-width: 640px) {
  .form-row,
  .form-row-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-card {
    padding: 22px 16px;
  }
}

.form-msg {
  margin: 14px 0 0;
  font-weight: 600;
}

.notice {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--cr3);
  border-left: 3px solid var(--rd1);
  border-radius: var(--rc1);
  background: var(--mn1);
}

.notice-err {
  border-left-color: var(--er1);
  background: var(--cr2);
}

/* steps indicator */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: st;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tx2);
  font-weight: 700;
  counter-increment: st;
}

.steps li::before {
  content: counter(st);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--cr3);
  border-radius: 16px;
  background: var(--wt1);
  font-family: var(--ff1);
  font-size: 0.85rem;
}

.steps li.nav-active {
  color: var(--tx1);
}

.steps li.nav-active::before {
  border-color: var(--rd1);
  background: var(--rd1);
  color: var(--wt1);
}

.step-box {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.step-box legend {
  margin-bottom: 18px;
  font-family: var(--ff1);
  font-size: 1.15rem;
}

.review-list {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  gap: 8px 18px;
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid var(--cr3);
  background: var(--cr1);
}

.review-list dt {
  color: var(--tx2);
  font-weight: 700;
}

.review-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.pay-box {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--rd1);
  border-radius: var(--rc1);
  background: var(--wt1);
}

.pay-box legend {
  padding: 0 6px;
  font-weight: 700;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 8px;
}

/* cart lines and totals */
.cart-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--cr3);
}

.cart-line img {
  width: 76px;
}

.cart-line h3 {
  margin: 0 0 4px;
  font-family: var(--ff2);
  font-size: 0.98rem;
  font-weight: 700;
}

.cart-line h3 a {
  color: var(--tx1);
  text-decoration: none;
}

.line-meta {
  margin: 0 0 8px;
  color: var(--tx2);
  font-size: 0.88rem;
}

.line-ctrl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.line-ctrl select {
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--cr3);
  border-radius: var(--rc1);
  background: var(--wt1);
}

.line-del {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--tx2);
  text-decoration: underline;
  cursor: pointer;
}

.line-sum {
  font-weight: 800;
  white-space: nowrap;
}

.totals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  margin: 18px 0;
}

.totals dt {
  color: var(--tx2);
}

.totals dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.totals .tot-final {
  padding-top: 10px;
  border-top: 1px solid var(--tx1);
  color: var(--tx1);
  font-size: 1.15rem;
  font-weight: 800;
}

.totals-note {
  color: var(--tx2);
  font-size: 0.88rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.summary-box {
  position: sticky;
  top: calc(var(--hd1) + 20px);
  padding: 24px 22px;
  border: 1px solid var(--cr3);
  background: var(--wt1);
  box-shadow: var(--sh1);
}

.summary-box h2 {
  font-size: 1.15rem;
}

@media (max-width: 899px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .summary-box {
    position: static;
  }
}

.empty-box {
  padding: 34px 28px;
  border: 1px dashed var(--cr3);
  border-radius: var(--rc1);
  background: var(--wt1);
}

/* slide-in cart panel; closed state uses visibility */
.cart-scrim {
  position: fixed;
  inset: 0;
  z-index: 175;
  background: rgba(26, 35, 43, 0.38);
  visibility: hidden;
}

.cart-scrim.nav-active {
  visibility: visible;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 180;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  background: var(--cr1);
  box-shadow: var(--sh2);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.25s, visibility 0s 0.25s;
}

.cart-panel.nav-active {
  visibility: visible;
  transform: none;
  transition: transform 0.25s;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--hd1);
  padding: 0 20px;
  border-bottom: 1px solid var(--cr3);
}

.panel-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.panel-body {
  flex: 1;
  padding: 0 20px;
  overflow-y: auto;
}

.panel-foot {
  padding: 16px 20px 22px;
  border-top: 1px solid var(--cr3);
  background: var(--wt1);
}

.panel-foot .totals {
  margin-top: 0;
}

/* tables */
.tbl-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--cr3);
  background: var(--wt1);
}

.tbl {
  min-width: 520px;
}

.tbl caption {
  padding: 14px 16px;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid var(--cr3);
}

.tbl th,
.tbl td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--cr2);
  text-align: left;
  vertical-align: top;
}

.tbl thead th {
  background: var(--cr2);
  font-size: 0.9rem;
}

.tbl tbody th {
  font-weight: 700;
}

/* two-column registry table may break long strings */
.kv-table {
  min-width: 0;
}

.kv-table th {
  width: 34%;
}

.kv-table td {
  overflow-wrap: anywhere;
}

.size-block {
  min-width: 0;
  scroll-margin-top: 8px;
}

.size-block .muted {
  margin-top: 12px;
  font-size: 0.92rem;
}

.size-pair {
  display: grid;
  gap: 16px;
}

.form-card form + .totals-note {
  margin-top: 22px;
}

a.chip {
  min-height: 44px;
  text-decoration: none;
}

/* legal pages */
.legal-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--hd1) + 20px);
  padding: 20px;
  border: 1px solid var(--cr3);
  border-radius: var(--rc1);
  background: var(--wt1);
}

.toc p {
  margin-bottom: 8px;
  font-weight: 700;
}

.toc ol {
  margin: 0;
  padding: 0 0 0 20px;
}

.legal-body > section {
  margin-bottom: 44px;
  scroll-margin-top: 8px;
}

.legal-body h2 {
  font-size: 1.3rem;
}

.legal-body ul {
  padding-left: 20px;
}

@media (max-width: 899px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
  }
}

.form-model {
  padding: 26px 24px;
  border: 1px solid var(--tx1);
  background: var(--wt1);
  font-family: Georgia, 'Liberation Serif', serif;
}

.form-model p {
  margin-bottom: 0.7em;
}

/* status */
.status-card {
  padding: 24px 22px;
  border: 1px solid var(--cr3);
  border-left: 3px solid var(--rd1);
  background: var(--wt1);
  box-shadow: var(--sh1);
}

.status-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.status-track li {
  padding: 10px 8px;
  border-top: 3px solid var(--cr3);
  color: var(--tx2);
  font-size: 0.86rem;
  font-weight: 700;
}

.status-track li.nav-active {
  border-top-color: var(--rd1);
  color: var(--tx1);
}

@media (max-width: 560px) {
  .status-track {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* big number for 404 / thanks */
.big-outline {
  margin: 0 0 10px;
  font-size: clamp(5rem, 3rem + 8vw, 10rem);
}

/* consent banner: pinned corner card */
.consent-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 160;
  width: min(440px, calc(100% - 32px));
  padding: 16px 18px 14px;
  border: 1px solid var(--cr3);
  border-radius: var(--rc1);
  background: var(--wt1);
  box-shadow: var(--sh2);
  font-size: 0.9rem;
  line-height: 1.5;
}

.consent-banner p {
  margin: 0 0 12px;
}

.consent-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.consent-actions button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--rd1);
  border-radius: var(--rc1);
  background: var(--wt1);
  color: var(--rd1);
  font-weight: 700;
  cursor: pointer;
}

.consent-actions button:hover {
  background: var(--rd1);
  color: var(--wt1);
}

@media (max-width: 600px) {
  .consent-banner {
    right: 8px;
    bottom: 8px;
    width: calc(100% - 16px);
    padding: 12px 14px;
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .consent-banner p {
    margin-bottom: 8px;
  }
}

/* reveal on scroll (only when js is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s, transform 0.5s;
}

.js .reveal.inview {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    transform: none;
  }
}

/* hidden wins over component display rules */
[hidden] {
  display: none;
}
