/* Layout the marketing site does not already have.
   Shared classes (.section, .button, .product-card, .filter-row, .contact, .site-header, footer)
   keep their rules from styles.css. */

body.ws-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.ws-page > main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
body.ws-page > main > section:not([hidden]) { flex: 1 0 auto; }

.ws-page [hidden] { display: none !important; }

.ws-page h1:focus,
.ws-page h2:focus,
.ws-page h3:focus {
  outline: none;
}

.ws-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin: 0; }
.ws-tools .text-link,
.ws-tab-row .text-link { margin-top: 0; }
button.text-link {
  display: inline-block;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--red);
  border-radius: 0;
  padding: 0 0 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
  cursor: pointer;
}
.ws-head-row,
.ws-tab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ws-head-row .section-no,
.ws-tab-row .filter-row { margin-bottom: 0; }
.ws-head-row { margin-bottom: 45px; }
#catalog-view > h2,
#app-view > h2 {
  font-size: clamp(45px, 5vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
  margin: 0 0 34px;
  font-weight: 700;
}
.ws-dek { font-size: 17px; line-height: 1.7; max-width: 580px; margin: 0 0 35px; }

.ws-field { display: grid; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink); }
.ws-field input,
.ws-field textarea,
.ws-field select {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 0;
  color: var(--ink);
  font: 15px var(--sans);
  letter-spacing: 0;
  text-transform: none;
  outline: 0;
}
.ws-field textarea { height: 90px; resize: vertical; }
.ws-field select { appearance: none; }
.ws-form { display: grid; gap: 22px; margin-top: 34px; }
.ws-form > .button { justify-self: start; }
.ws-form h2,
#ws-summary h3 { font-size: 25px; margin: 34px 0 0; }
.ws-form h2:first-child,
#ws-summary h3:first-child { margin-top: 0; }

#login-view h1,
#confirm-view h1 {
  font-size: clamp(72px, 9.7vw, 148px);
  line-height: .78;
  letter-spacing: -.075em;
  margin: 34px 0;
  font-weight: 700;
}
#login-view h1 em,
#confirm-view h1 em { font-weight: 400; color: var(--red); font-style: normal; }
#login-view > p,
#confirm-view > p { font-size: 17px; line-height: 1.7; }

#order-view {
  background: var(--sheet);
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9vw;
  align-content: start;
}
#order-view h2 {
  font-size: clamp(45px, 5vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
  margin: 0;
}
#order-view h2 em { font-weight: 400; color: var(--red); font-style: normal; }
#order-view .section-no,
#order-view label,
#order-view .form-status { color: var(--ink); }
#order-view > div > p { font-size: 17px; line-height: 1.7; max-width: 480px; }
#order-view .order-back { margin-top: 60px; font: 11px/1.8 var(--mono); text-transform: uppercase; max-width: none; }
#order-view .order-back a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--red); padding-bottom: 8px; }
#order-view form { display: grid; gap: 22px; }
#order-view label { font: 9px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
#order-view input,
#order-view textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 0;
  color: var(--ink);
  font: 15px var(--sans);
  outline: 0;
}
#order-view input::placeholder,
#order-view textarea::placeholder { color: color-mix(in srgb, var(--ink) 62%, var(--sheet)); }
#order-view textarea { height: 90px; resize: vertical; }
#order-view .button { justify-self: start; }

.ws-reasons { margin: 12px 0 0; padding-left: 16px; color: var(--red); }
.ws-reasons:empty { display: none; }
.ws-slot,
.ws-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  font: 15px var(--sans);
  cursor: pointer;
}
.ws-slot b { font: 10px/1.5 var(--mono); color: var(--red); }
.ws-line { cursor: default; }
.ws-qty { display: inline-flex; gap: 12px; flex: 0 0 auto; }
#cart-total { font-size: 25px; }
.product-card .part-photo { width: 100%; height: 140px; object-fit: cover; margin: 12px 0 auto; display: block; background: #d8d4cc; }
.product-card .button { margin-top: 16px; }
.product-card s { margin-right: 8px; }

.ws-table-wrap { overflow-x: auto; }
.admin-table select {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 6px 0;
}
.ws-row-actions { display: flex; justify-content: flex-end; gap: 28px; }
.ws-check { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); font: 15px var(--sans); text-transform: none; letter-spacing: 0; }
.ws-check input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; }

#add-feedback { min-height: 1.6em; margin: 16px 0 0; font-size: 15px; line-height: 1.7; }
.ws-minibar { display: none; }

@media (max-width: 900px) {
  #catalog-view { padding-bottom: 160px; }
  #order-view { grid-template-columns: 1fr; }
  .ws-minibar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    align-items: center;
    gap: 12px;
    padding: 10px 6vw;
    background: var(--paper);
    border-top: 1px solid var(--line);
    color: var(--ink);
    font: 10px var(--mono);
    letter-spacing: .17em;
    text-transform: uppercase;
  }
  #ws-minibar-count { flex: 0 0 auto; white-space: nowrap; }
  #ws-minibar-note {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
    font: 15px/1.4 var(--sans);
  }
  .ws-minibar .button { flex: 0 0 auto; }
}

@media (max-width: 560px) {
  #login-view h1,
  #confirm-view h1 { font-size: 66px; }
  #order-view h2,
  #catalog-view > h2,
  #app-view > h2 { font-size: 50px; }
  #login-view > p { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
