/* ==================================================================
   The slab yard (/our-slabs) and the slab pages (/our-slabs/<slab>).
   Rendered by the Pages Functions in functions/ from the live slab feed.
   Desktop values come from Paper, "DRD Website Redesign": Version 3,
   "03 Slabs & Lumber · first screen", and Version 4, "03B Slab page ·
   BW 138" (1440 wide, 64 px side margins).
   site.css supplies .wrap, .eyebrow, .btn, .text-link, .simple, and the
   homepage's slab card (.slabs, .slab), which the yard grid reuses.
   Yard classes start .yard-, slab page classes .sp-, the plan .plan-.
   ================================================================== */

/* ------------------------------------------------------------ shared type */
.sp-label {
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--drd-taupe);
}
.sp-label-ink { color: var(--drd-espresso); }
.sp-note { font-family: var(--font-label); font-size: 13px; line-height: 19px; color: var(--drd-taupe); }
.sp-h2 {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(34px, calc(1rem + 3vw), 60px); line-height: 1.1;
}
.sp-h2 em { font-style: italic; color: var(--drd-bronze); display: block; }
.sp-h2-sm { font-size: clamp(32px, calc(1rem + 1.9vw), 44px); line-height: 1.18; letter-spacing: -.01em; }
.sp-body { font-size: 18px; line-height: 30px; }
.sp-strong { font-family: var(--font-label); font-weight: 500; font-size: 15px; letter-spacing: .02em; }
@media (max-width: 767px) {
  .sp-body { font-size: 17px; line-height: 28px; }
}

/* Pickup, delivery and visit days: the yard hero and the slab buy panel */
.slab-terms { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.slab-terms > div { display: flex; flex-direction: column; gap: 4px; }
.slab-terms dt {
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--drd-taupe);
}
.slab-terms dd { margin: 0; font-size: 15px; line-height: 24px; color: var(--drd-espresso); }
.slab-terms a, .sp-tool .sp-note a { text-underline-offset: 3px; }

/* ==================================================================
   The yard
   ================================================================== */

/* ------------------------------------------------------------ hero */
.yard-hero { display: grid; grid-template-columns: minmax(0, 640fr) minmax(0, 800fr); min-height: 480px; }
.yard-hero-copy {
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: 56px 64px; background: var(--drd-stone);
  padding-left: max(var(--gutter), calc((100vw - var(--content)) / 2));
}
.yard-title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em;
  font-size: clamp(38px, calc(1rem + 2.6vw), 56px); line-height: 1.12;
}
.yard-title em { font-style: italic; color: var(--drd-bronze); }
.yard-lede { max-width: 520px; font-size: 18px; line-height: 30px; color: var(--drd-espresso); }
.yard-stock { font-family: var(--font-label); font-size: 14px; line-height: 20px; color: var(--drd-taupe); }
.yard-hero-photo { position: relative; display: block; overflow: hidden; background: var(--drd-stone); }
.yard-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.yard-hero-chip {
  position: absolute; left: 0; bottom: 0; padding: 12px 18px; background: var(--drd-cream); color: var(--drd-espresso);
  font-family: var(--font-label); font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: .18em;
}
.yard-hero-photo:hover .yard-hero-chip { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1023px) {
  .yard-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .yard-hero-copy { padding: 48px var(--gutter) 44px; }
  .yard-hero-photo { aspect-ratio: 4 / 3; max-height: 60vh; width: 100%; }
}
@media (max-width: 767px) {
  .yard-hero-copy { padding-block: 36px 32px; gap: 18px; }
  .yard-lede { font-size: 17px; line-height: 28px; }
  .yard-hero-photo { aspect-ratio: 4 / 3; }
}

/* ------------------------------------------------------------ filters */
.yard-browse { padding-block: 0 128px; }
.yard-filters {
  display: flex; flex-direction: column; gap: 22px;
  margin-inline: calc(-1 * var(--gutter)); padding: 32px var(--gutter) 28px;
  border-bottom: 1px solid var(--drd-stone);
}
.yard-toolbar { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.yard-search { flex: 0 1 360px; min-width: 0; }
.yard-search input {
  width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--drd-espresso); border-radius: 0;
  background: var(--drd-cream); color: var(--drd-espresso);
  font-family: var(--font-label); font-size: 16px; line-height: 22px;
  -webkit-appearance: none; appearance: none;
}
.yard-search input::placeholder { color: var(--drd-taupe); opacity: 1; }
.yard-sort { display: flex; align-items: center; gap: 12px; }
.yard-sort-label {
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--drd-taupe);
}
.yard-sort select {
  min-height: 48px; padding: 12px 40px 12px 14px; border: 1px solid var(--drd-espresso); border-radius: 0;
  font-family: var(--font-label); font-size: 15px; line-height: 20px; color: var(--drd-espresso);
  background: var(--drd-cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%231B1714' stroke-width='1.4'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.yard-count { margin-left: auto; font-family: var(--font-label); font-size: 15px; line-height: 22px; color: var(--drd-taupe); }

.yard-group { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; align-items: center; gap: 16px; }
.yard-legend {
  float: left; flex-shrink: 0; width: 120px; padding: 0;
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--drd-taupe);
}
.yard-pair { display: flex; flex-wrap: wrap; gap: 22px 48px; }
.yard-pair .yard-legend { width: auto; max-width: 160px; }
.yard-pair .yard-group:first-child .yard-legend { width: 120px; max-width: none; }
.yard-chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.yard-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.yard-chip {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 9px 16px;
  border: 1px solid var(--drd-espresso); border-radius: 999px; cursor: pointer; white-space: nowrap;
  font-family: var(--font-label); font-weight: 500; font-size: 13px; line-height: 16px; color: var(--drd-espresso);
  transition: background-color .2s ease, color .2s ease;
}
.yard-chip:hover { background: var(--drd-stone); }
.yard-chip-count { font-weight: 400; }
.yard-radio:checked + .yard-chip { background: var(--drd-espresso); color: var(--drd-cream); }
.yard-radio:focus-visible + .yard-chip { outline: 2px solid var(--drd-espresso); outline-offset: 3px; }

.yard-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; }
.js .yard-submit { display: none; }
.yard-submit { min-height: 48px; }
.yard-clear[hidden] { display: none; }

/* ------------------------------------------------------------ grid */
.yard-grid { padding-top: 48px; row-gap: 56px; }
.yard-grid .slab-row { flex-wrap: wrap; }
.yard-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 56px 24px; }
.yard-empty[hidden] { display: none; }
.yard-empty-title { font-family: var(--font-display); font-size: 30px; line-height: 38px; }
.yard-empty-body { max-width: 540px; font-size: 17px; line-height: 28px; }

@media (max-width: 1279px) {
  .yard-legend, .yard-pair .yard-group:first-child .yard-legend { width: 100px; }
}
@media (max-width: 1023px) {
  .yard-browse { padding-bottom: 96px; }
  .yard-count { margin-left: 0; flex-basis: 100%; }
  .yard-group { flex-direction: column; align-items: flex-start; gap: 10px; }
  .yard-legend, .yard-pair .yard-legend, .yard-pair .yard-group:first-child .yard-legend { width: auto; max-width: none; }
  .yard-chip { min-height: 44px; padding-block: 13px; }
  .yard-grid { row-gap: 40px; }
}
@media (max-width: 767px) {
  .yard-filters { padding-block: 24px 22px; gap: 18px; }
  .yard-search { flex: 1 1 100%; }
  .yard-sort { flex: 1 1 100%; }
  .yard-sort select { flex: 1; }
  /* Each chip row scrolls sideways inside itself, never the page */
  .yard-group, .yard-pair, .yard-pair .yard-group { width: 100%; }
  .yard-chips {
    flex-wrap: nowrap; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .yard-chips::-webkit-scrollbar { display: none; }
  .yard-chip { flex-shrink: 0; }
  .yard-grid { padding-top: 32px; row-gap: 20px; }
}

/* ------------------------------------------------------------ milling and kiln */
.yard-mill { background: var(--drd-stone); padding-block: 120px 128px; }
.yard-mill-grid { display: grid; grid-template-columns: minmax(0, 520fr) minmax(0, 700fr); gap: 92px; align-items: start; }
.yard-mill-head { display: flex; flex-direction: column; gap: 24px; }
.yard-mill-title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(34px, calc(1rem + 2.4vw), 52px); line-height: 1.12;
}
.yard-mill-title em { display: block; font-style: italic; color: var(--drd-bronze); }
.yard-mill-body { max-width: 460px; font-size: 18px; line-height: 30px; }
.yard-mill-list { margin: 0; border-top: 1px solid var(--drd-espresso); }
.yard-mill-list > div {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px;
  padding-block: 22px; border-bottom: 1px solid var(--line);
}
.yard-mill-list dt { font-family: var(--font-display); font-size: 22px; line-height: 28px; }
.yard-mill-list dd { margin: 0; font-size: 16px; line-height: 26px; }
@media (max-width: 1023px) {
  .yard-mill { padding-block: 88px 96px; }
  .yard-mill-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 767px) {
  .yard-mill { padding-block: 64px 72px; }
  .yard-mill-body { font-size: 17px; line-height: 28px; }
  .yard-mill-list > div { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 18px; }
  .yard-mill-list dt { font-size: 20px; line-height: 26px; }
}

/* ==================================================================
   A slab
   ================================================================== */

/* ------------------------------------------------------------ breadcrumb */
.sp-crumbs { border-bottom: 1px solid var(--drd-stone); }
.sp-crumbs-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.sp-crumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-width: 0; }
.sp-crumb-list li {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--drd-taupe);
}
.sp-crumb-list li + li::before { content: "/"; color: var(--drd-bronze); font-weight: 400; letter-spacing: 0; }
.sp-crumb-list a { text-decoration: none; }
.sp-crumb-list a:hover { color: var(--drd-espresso); text-decoration: underline; text-underline-offset: 3px; }
.sp-crumb-list [aria-current] { color: var(--drd-espresso); }
.sp-status {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: 7px 14px 7px 12px; border: 1px solid var(--drd-hunter); border-radius: 999px;
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--drd-hunter);
}
.sp-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--drd-hunter); }
@media (max-width: 767px) {
  .sp-crumbs-row { padding-block: 14px; }
  .sp-crumb-list li { font-size: 12px; letter-spacing: .14em; gap: 10px; }
  .sp-crumb-list { gap: 4px 10px; }
  .sp-status { padding: 5px 10px 5px 9px; gap: 7px; font-size: 11px; letter-spacing: .12em; }
}

/* ------------------------------------------------------------ hero */
.sp-hero { padding-block: 48px 96px; }
.sp-hero-grid { display: grid; grid-template-columns: minmax(0, 840fr) minmax(0, 408fr); gap: 64px; align-items: start; }

.sp-viewer { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sp-stage { position: relative; aspect-ratio: 840 / 614; overflow: hidden; background: var(--drd-stone); }
.sp-stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-stage-clean .sp-stage-img, .sp-stage[data-kind="clean"] .sp-stage-img { object-position: 50% 55%; }
.sp-stage-empty { display: flex; align-items: center; justify-content: center; padding: 32px; text-align: center; font-family: var(--font-label); color: var(--drd-taupe); }
.sp-chip {
  position: absolute; left: 20px; top: 20px; max-width: calc(100% - 40px); padding: 8px 12px;
  background: var(--drd-cream); color: var(--drd-espresso);
  font-family: var(--font-label); font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: .16em;
}
.sp-zoom {
  position: absolute; right: 20px; bottom: 20px; padding: 9px 14px; background: var(--drd-espresso); color: var(--drd-cream);
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
}
.sp-zoom:hover { background: var(--drd-taupe); }

.sp-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sp-thumbs { position: relative; }
.sp-thumb { position: relative; display: flex; flex-direction: column; gap: 7px; text-decoration: none; color: var(--drd-taupe); }
.sp-thumb-img { display: block; aspect-ratio: 130 / 95; overflow: hidden; background: var(--drd-stone); border: 2px solid transparent; }
.sp-thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.sp-thumb-label {
  font-family: var(--font-label); font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: .12em;
  text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sp-thumb[aria-current="true"] { color: var(--drd-espresso); }
.sp-thumb[aria-current="true"] .sp-thumb-img { border-color: var(--drd-espresso); }
.sp-thumb:hover .sp-thumb-img { border-color: var(--drd-taupe); }

.sp-buy { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; min-width: 0; }
.sp-buy-head { display: flex; flex-direction: column; gap: 14px; }
.sp-kicker {
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .2em; color: var(--drd-taupe);
}
.sp-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 3.9vw, 56px); line-height: 1.07; letter-spacing: -.02em; }
.sp-summary { font-size: 18px; line-height: 29px; }
.sp-dims {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; margin: 0;
  border-top: 1px solid var(--drd-espresso); border-bottom: 1px solid var(--drd-stone);
}
.sp-dims dd { display: flex; flex-direction: column; gap: 4px; margin: 0; padding-block: 14px; }
.sp-dim-num { font-family: var(--font-display); font-size: 26px; line-height: 30px; white-space: nowrap; }
.sp-dim-label { font-family: var(--font-label); font-size: 12px; line-height: 16px; color: var(--drd-taupe); }
.sp-price-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.sp-price { font-family: var(--font-display); font-size: 44px; line-height: 48px; font-feature-settings: "lnum"; }
.sp-rate { font-family: var(--font-label); font-size: 13px; line-height: 18px; color: var(--drd-taupe); }
.sp-actions { display: flex; flex-direction: column; gap: 12px; }
.sp-actions .btn { min-height: 54px; width: 100%; }
.sp-terms { padding-top: 22px; border-top: 1px solid var(--drd-stone); }
.sp-uses-fit { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.sp-use-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-use-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px;
  border: 1px solid var(--drd-espresso); border-radius: 999px;
  font-family: var(--font-label); font-weight: 500; font-size: 13px; line-height: 16px; color: var(--drd-espresso);
}
.sp-use-chip-lead { background: var(--drd-espresso); color: var(--drd-cream); }
.sp-use-chip-miss { border-style: dashed; border-color: var(--drd-taupe); color: var(--drd-taupe); font-weight: 400; }
.sp-check { width: 11px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1279px) {
  .sp-hero-grid { gap: 40px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .sp-dims { grid-template-columns: repeat(2, auto); justify-content: start; column-gap: 40px; }
}
@media (max-width: 1023px) {
  .sp-hero { padding-block: 32px 80px; }
  .sp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sp-buy { padding-top: 0; }
  .sp-dims { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .sp-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .sp-actions .sp-note { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .sp-hero { padding-block: 0 64px; }
  .sp-hero-grid { gap: 28px; }
  .sp-viewer { margin-inline: calc(-1 * var(--gutter)); gap: 10px; }
  .sp-stage { aspect-ratio: 3 / 2; }
  .sp-chip { left: 12px; top: 12px; font-size: 10px; letter-spacing: .14em; padding: 6px 9px; }
  .sp-zoom { right: 12px; bottom: 12px; font-size: 11px; padding: 8px 11px; }
  .sp-thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 96px; gap: 10px; overflow-x: auto; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .sp-thumbs::-webkit-scrollbar { display: none; }
  .sp-thumb-label { font-size: 10px; }
  .sp-summary { font-size: 17px; line-height: 28px; }
  .sp-dims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-dims > div:nth-child(n + 3) dd { border-top: 1px solid var(--drd-stone); }
  .sp-price { font-size: 38px; line-height: 44px; }
  .sp-actions { display: flex; }
  /* Price and the hold button come up under the title, so they reach the first screen */
  .sp-buy { gap: 24px; }
  .sp-buy-head { order: 1; gap: 10px; }
  .sp-price-row { order: 2; }
  .sp-actions, .sp-terms { order: 3; }
  .sp-dims { order: 4; }
  .sp-uses-fit { order: 5; }
  .sp-thumbs { grid-auto-columns: 84px; }
}
@media (max-width: 479px) {
  .sp-crumb-list li:nth-child(2) { display: none; }
}

/* ------------------------------------------------------------ concepts */
.sp-concepts { background: var(--drd-stone); padding-block: 120px; }
.sp-section-head { padding-bottom: 56px; }
.sp-aside { width: 360px; padding-bottom: 8px; font-size: 17px; line-height: 28px; }
.sp-chooser { display: grid; grid-template-columns: minmax(0, 360fr) minmax(0, 904fr); gap: 48px; align-items: start; }
.sp-use-list { border-top: 1px solid var(--drd-espresso); }
.sp-use { border-bottom: 1px solid rgba(107, 93, 82, .25); }
.sp-use-link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 22px 24px; text-decoration: none; color: var(--drd-espresso);
}
.sp-use-link:hover .sp-use-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.sp-use-name { font-family: var(--font-display); font-size: 24px; line-height: 30px; }
.sp-use-note { flex-shrink: 0; font-family: var(--font-label); font-size: 13px; line-height: 16px; color: var(--drd-taupe); }
.sp-use-more { display: none; flex-direction: column; gap: 10px; padding: 0 24px 26px; }
.sp-use.is-active { background: var(--drd-cream); border-bottom-color: transparent; }
.sp-use.is-active .sp-use-link { padding-top: 26px; padding-bottom: 12px; }
.sp-use.is-active .sp-use-name { font-size: 28px; line-height: 34px; }
.sp-use.is-active .sp-use-more { display: flex; }
.sp-use-showing { display: none; }
.sp-use.is-active .sp-use-note { display: none; }
.sp-use.is-active .sp-use-showing {
  display: inline; flex-shrink: 0; font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .14em; text-transform: uppercase;
}
.sp-use-caption { font-size: 16px; line-height: 26px; }
.sp-use-detail { font-family: var(--font-label); font-size: 13px; line-height: 19px; color: var(--drd-taupe); }
.sp-use-other { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px 24px 0; }
.sp-concept-stage { position: relative; aspect-ratio: 904 / 660; overflow: hidden; background: var(--drd-cream); }
.sp-concept-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-concept-tag {
  position: absolute; right: 16px; top: 16px; padding: 7px 10px; background: var(--drd-cream); color: var(--drd-espresso);
  font-family: var(--font-label); font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: .14em; text-transform: uppercase;
}
@media (max-width: 1023px) {
  .sp-concepts { padding-block: 88px; }
  .sp-section-head { padding-bottom: 40px; }
  .sp-aside { width: auto; }
  .sp-chooser { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sp-concept-stage { order: -1; }
}
@media (max-width: 767px) {
  .sp-concepts { padding-block: 64px 72px; }
  .sp-concept-stage { margin-inline: calc(-1 * var(--gutter)); aspect-ratio: 4 / 3; }
  .sp-concept-tag { right: 12px; top: 12px; font-size: 10px; }
  .sp-use-link { padding: 18px 16px; }
  .sp-use.is-active .sp-use-link { padding-top: 20px; }
  .sp-use-more { padding: 0 16px 20px; }
  .sp-use-name { font-size: 22px; line-height: 28px; }
  .sp-use.is-active .sp-use-name { font-size: 24px; line-height: 30px; }
  .sp-use-other { padding: 22px 0 0; }
}

/* ------------------------------------------------------------ real size: plan and tools */
.sp-fit { padding-block: 120px 128px; }
.sp-fit > .wrap > .eyebrow { margin-bottom: 24px; }
.sp-fit .sp-h2 { font-size: clamp(32px, calc(1rem + 2.2vw), 48px); line-height: 1.17; letter-spacing: -.015em; }
.plan { display: flex; flex-direction: column; gap: 16px; margin-top: 48px; padding-block: 40px 24px; border-top: 1px solid var(--drd-espresso); border-bottom: 1px solid var(--drd-stone); }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.plan-name {
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .18em; text-transform: uppercase;
}
.plan-source { font-family: var(--font-label); font-size: 13px; line-height: 18px; color: var(--drd-taupe); }
.plan-notes {
  display: flex; justify-content: space-between; gap: 24px; padding-inline: 8%;
  font-family: var(--font-label); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--drd-taupe);
}
.plan-notes span:last-child { text-align: right; }
.plan-draw { position: relative; width: 100%; max-height: 600px; margin-inline: auto; }
.plan-draw svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plan-slab { fill: var(--drd-bronze-light); fill-opacity: .22; stroke: var(--drd-espresso); stroke-width: 1.6; stroke-linejoin: round; }
.plan-dim { stroke: var(--drd-taupe); stroke-width: 1; }
.plan-ext { stroke: var(--drd-taupe); stroke-width: .8; }
.plan-rule { stroke: var(--drd-espresso); stroke-width: 1; }
.plan-label {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
  font-family: var(--font-label); font-weight: 500; font-size: 15px; line-height: 20px; color: var(--drd-espresso);
}
.plan-label-left { transform: translate(-100%, -50%); }
.plan-label-right { transform: translate(0, -50%); }
.plan-label-length { padding: 0 10px; background: var(--drd-cream); }
.plan-label-tick { transform: translate(-50%, 0); font-weight: 400; font-size: 12px; line-height: 16px; color: var(--drd-taupe); }

.sp-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.sp-tool { display: flex; flex-direction: column; gap: 18px; padding: 32px; background: var(--drd-stone); }
.sp-tool-title { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 32px; }
.sp-tool-body { font-size: 16px; line-height: 26px; }
.sp-tape { width: 100%; border-collapse: collapse; font-family: var(--font-label); font-size: 13px; line-height: 18px; }
.sp-tape tr:first-child th, .sp-tape tr:first-child td { border-top: 1px solid var(--drd-espresso); }
.sp-tape th, .sp-tape td { padding: 8px 0; border-bottom: 1px solid rgba(107, 93, 82, .2); }
.sp-tape th { text-align: left; font-weight: 400; color: var(--drd-taupe); }
.sp-tape td { text-align: right; font-weight: 500; }
.sp-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; padding: 20px;
  background: var(--drd-cream); border: 1px dashed var(--drd-taupe); text-align: center; text-decoration: none; color: var(--drd-espresso);
}
.sp-drop:hover { border-style: solid; }
.sp-drop svg { width: 28px; height: 28px; fill: none; stroke: var(--drd-taupe); stroke-width: 1.4; }
.sp-drop-title { font-family: var(--font-label); font-weight: 500; font-size: 13px; line-height: 18px; }
.sp-drop-note { font-family: var(--font-label); font-size: 12px; line-height: 16px; color: var(--drd-taupe); overflow-wrap: anywhere; }
.sp-tool-btn { margin-top: auto; min-height: 50px; }
@media (max-width: 1023px) {
  .sp-fit { padding-block: 88px 96px; }
  .sp-tools { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .plan-label { font-size: 13px; line-height: 18px; }
}
@media (max-width: 767px) {
  .sp-fit { padding-block: 64px 72px; }
  .plan { margin-top: 32px; padding-block: 28px 20px; }
  .plan-notes { padding-inline: 0; font-size: 11px; letter-spacing: .12em; }
  .plan-label { font-size: 12px; line-height: 16px; }
  .plan-label-tick { font-size: 11px; }
  .sp-tool { padding: 24px; gap: 14px; }
  .sp-tool-title { font-size: 23px; line-height: 29px; }
}

/* ------------------------------------------------------------ the slab, as it sits */
.sp-sits { background: var(--drd-stone); padding-block: 112px; }
.sp-sits-grid { display: grid; grid-template-columns: minmax(0, 760fr) minmax(0, 488fr); gap: 64px; align-items: start; }
.sp-sits-text .sp-sits-grid { grid-template-columns: minmax(0, 760px); }
.sp-sits-photo { display: flex; flex-direction: column; gap: 14px; }
.sp-sits-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--drd-cream); }
.sp-sits-copy { display: flex; flex-direction: column; gap: 26px; padding-top: 12px; }
.sp-know { display: flex; flex-direction: column; gap: 10px; }
.sp-know .sp-body { font-size: 16px; line-height: 27px; }
.sp-same-day { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--drd-espresso); }
.sp-same-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sp-same { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--drd-espresso); }
.sp-same-photo { display: block; aspect-ratio: 236 / 150; overflow: hidden; background: var(--drd-cream); }
.sp-same-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sp-same:hover .sp-same-photo img { transform: scale(1.03); }
.sp-same-row { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-label); font-size: 13px; line-height: 18px; }
.sp-same-id { font-weight: 500; }
@media (max-width: 1023px) {
  .sp-sits { padding-block: 88px; }
  .sp-sits-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sp-sits-copy { padding-top: 0; }
}
@media (max-width: 767px) {
  .sp-sits { padding-block: 64px; }
  .sp-sits-photo { margin-inline: calc(-1 * var(--gutter)); }
  .sp-sits-photo figcaption { padding-inline: var(--gutter); }
  .sp-sits-copy { gap: 20px; }
}

/* ------------------------------------------------------------ specifications */
.sp-specs { padding-block: 112px; }
.sp-specs-grid { display: grid; grid-template-columns: minmax(0, 420fr) minmax(0, 828fr); gap: 64px; }
.sp-specs-head { display: flex; flex-direction: column; gap: 18px; }
.sp-specs-head .sp-body { font-size: 16px; line-height: 26px; }
.sp-specs-title { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 48px; }
.sp-spec-table { margin: 0; border-top: 1px solid var(--drd-espresso); }
.sp-spec-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; padding-block: 15px; border-bottom: 1px solid var(--drd-stone); }
.sp-spec-row dt { font-family: var(--font-label); font-size: 15px; line-height: 20px; color: var(--drd-taupe); }
.sp-spec-row dd { margin: 0; font-family: var(--font-label); font-size: 15px; line-height: 20px; }
@media (max-width: 1023px) {
  .sp-specs { padding-block: 88px; }
  .sp-specs-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sp-spec-row { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .sp-specs { padding-block: 64px; }
  .sp-specs-title { font-size: 34px; line-height: 40px; }
  .sp-spec-row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-block: 12px; }
  .sp-spec-row dt { font-size: 13px; line-height: 18px; }
}

/* ------------------------------------------------------------ zoom */
.sp-zoom-dialog {
  width: min(96vw, 1600px); max-width: none; max-height: 94vh; padding: 0; border: 0;
  background: var(--drd-espresso); overflow: auto;
}
.sp-zoom-dialog::backdrop { background: var(--drd-shade); }
.sp-zoom-dialog img { width: 100%; height: auto; }
.sp-zoom-dialog form { position: sticky; top: 0; display: flex; justify-content: flex-end; z-index: 1; }
.sp-zoom-close {
  min-height: 44px; padding: 0 18px; border: 0; cursor: pointer; background: var(--drd-cream); color: var(--drd-espresso);
  font-family: var(--font-label); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}

/* ------------------------------------------------------------ sold, updating */
.sp-status-page { padding-bottom: 96px; }
.sp-more { padding-block: 0 128px; }
.sp-more-title { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 40px; padding-bottom: 32px; border-top: 1px solid var(--drd-espresso); padding-top: 32px; }
@media (max-width: 767px) {
  .sp-status-page { padding-bottom: 56px; }
  .sp-more { padding-bottom: 72px; }
  .sp-more-title { font-size: 26px; line-height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-same:hover .sp-same-photo img { transform: none; }
}
