@scope (#wood-mdf-medicine-cabinets-content) {
  .hero {
    min-height: clamp(510px, 43vw, 650px);
  }

  .hero-copy {
    width: min(535px, 43%);
    padding: 88px 0 62px;
  }

  .hero h1 {
    font-size: clamp(3rem, 5.3vw, 5rem);
    line-height: 1.02;
  }

  .hero p {
    max-width: 44ch;
  }

  .hero-bg img {
    object-position: 62% 15%;
  }

  .hero .wood-hero-note {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 14px;
    padding: 3px 8px;
    background: #17201de0;
    color: #fff;
    font-size: 11px;
  }

  .page-index {
    top: var(--wood-header-height, 0px);
  }

  .page-index a {
    min-height: 45px;
    display: flex;
    align-items: center;
  }

  .section {
    padding-block: 56px;
    scroll-margin-top: var(--wood-anchor-offset, 110px);
  }

  #construction,
  #programs {
    scroll-margin-top: var(--wood-anchor-offset, 110px);
  }

  .head {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .7fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 26px;
  }

  .head h2,
  .selector-copy h2,
  .finish-layout h2 {
    margin: 0;
    font-size: clamp(2rem, 3.45vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: -.025em;
  }

  .head > p,
  .selector-copy > p {
    max-width: 53ch;
    font-size: .98rem;
    line-height: 1.55;
  }

  .anatomy {
    grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
    align-items: start;
    gap: clamp(24px, 5vw, 64px);
  }

  .wood-figure {
    min-width: 0;
    margin: 0;
  }

  .wood-figure figcaption {
    margin: 9px 0 0;
    color: #545e58;
    font-size: .82rem;
    line-height: 1.45;
  }

  .anatomy-photo {
    position: relative;
  }

  .part-pin {
    position: absolute;
    display: grid;
    place-items: center;
    width: clamp(24px, 2.35vw, 34px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-radius: 50%;
    background: #21392e;
    color: #fff;
    font: 700 .8rem/1 system-ui, sans-serif;
    box-shadow: 0 2px 8px #0008;
  }

  .part-pin--frame { left: 20%; top: 12%; }
  .part-pin--body { left: 71%; top: 31%; }
  .part-pin--back { left: 53%; top: 22%; }
  .part-pin--shelves { left: 61%; top: 60%; }

  .part-list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .part-list .component {
    align-items: start;
    padding: 16px 0;
  }

  .part-list .component b {
    border-radius: 50%;
    background: #21392e;
    font-size: .8rem;
  }

  .part-list .component strong {
    font-size: 1rem;
  }

  .part-list .component span {
    margin-top: 3px;
    font-size: .91rem;
    line-height: 1.52;
  }

  .selector {
    gap: 20px;
  }

  .selector-copy {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .7fr);
    gap: 28px;
    padding-bottom: 14px;
  }

  .route-list .route {
    display: flex;
    align-items: start;
    justify-content: space-between;
    min-height: 128px;
    gap: 14px;
    padding: 20px;
    transform: none;
  }

  .route strong, .route small {
    display: block;
  }

  .route strong {
    margin-bottom: 7px;
    color: #fff;
    font: 500 1.5rem/1.15 Georgia, serif;
  }

  .route small {
    color: #d1dbd5;
    font-size: .9rem;
    line-height: 1.45;
  }

  .route .route-arrow {
    color: #d7b07a;
    line-height: 1.2;
  }

  #material-builder .selection-output {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 20px;
    align-items: center;
  }

  #useBrief {
    cursor: pointer;
  }

  #useBrief:disabled {
    cursor: default;
    opacity: .6;
  }

  .selection-detail strong {
    font-size: 1.16rem;
  }

  .selection-detail span {
    font-size: .9rem;
  }

  .finish-layout {
    gap: clamp(28px, 5vw, 65px);
    align-items: start;
  }

  .finish-layout h2 {
    margin-bottom: 14px;
  }

  .finish-choices {
    margin: 18px 0 0;
  }

  .finish-choices > div {
    padding: 13px 0;
    border-top: 1px solid var(--line);
  }

  .finish-choices dt {
    font-weight: 720;
  }

  .finish-choices dd {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.55;
  }

  .finish-figure .finish-photo {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .finish-figure img {
    object-fit: contain;
  }

  .risk h3, .step h3 {
    margin-top: 0;
  }

  .risk p, .step p {
    font-size: .9rem;
    line-height: 1.55;
  }

  .program {
    min-height: 0;
    padding: 22px;
  }

  .program .program-media {
    margin: -22px -22px 16px;
  }

  .program figcaption {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 8px;
    background: #17201de0;
    color: #fff;
    font-size: .76rem;
  }

  .program h3 {
    margin: 0 0 10px;
  }

  .review-link {
    align-self: flex-start;
    margin: 14px 0 20px;
    color: #285947;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .16em;
  }

  .approval-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .approval-list .step {
    min-height: 0;
    padding: 22px;
  }

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

  .faq p {
    font-size: .94rem;
    line-height: 1.55;
  }

  #brief-preview {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-left: 3px solid #9e692f;
    background: #f2eee7;
    color: #21392e;
    line-height: 1.5;
    white-space: pre-line;
  }

  #brief-preview[hidden] {
    display: none;
  }

  .actions :focus-visible,
  .page-index :focus-visible,
  .route-list :focus-visible,
  #useBrief:focus-visible,
  .program :focus-visible,
  summary:focus-visible {
    outline: 3px solid #b88741;
    outline-offset: 3px;
  }

  @media (max-width: 1000px) {
    .section { padding-block: 40px; }
    .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .program button { margin-top: auto; }
    .route-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }

  @media (max-width: 740px) {
    .section { padding-block: 32px; }

    .hero {
      flex-direction: column;
      min-height: 0;
      background: #181f1b;
    }

    .hero .breadcrumbs {
      top: 15px;
    }

    .hero .hero-copy {
      width: 100%;
      padding: 42px 0 19px;
    }

    .hero h1 {
      margin: 7px 0 13px;
      font-size: clamp(2.25rem, 9vw, 3.45rem);
    }

    .hero p {
      margin-bottom: 0;
    }

    .hero .actions {
      gap: 8px;
      margin-top: 18px;
    }

    .hero .button {
      min-height: 46px;
      padding: 9px 13px;
      font-size: .73rem;
    }

    .hero .hero-bg {
      position: relative;
      order: 1;
      width: 100%;
      height: clamp(210px, 57vw, 325px);
    }

    .hero-bg img {
      object-position: 82% 48%;
    }

    .hero .hero-bg::after {
      background: linear-gradient(180deg, #181f1b88, transparent 28%);
    }

    .head,
    .anatomy,
    .selector-copy,
    .finish-layout,
    .program-grid,
    .approval-list {
      grid-template-columns: minmax(0, 1fr);
      gap: 14px;
    }

    .head {
      margin-bottom: 18px;
    }

    .selector, .route-list {
      gap: 10px;
    }

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

    .route-list .route {
      min-height: 0;
      padding: 14px 16px;
    }

    #material-builder .selection-output {
      grid-template-columns: minmax(0, 1fr);
    }

    #useBrief {
      justify-self: start;
    }

    .rfq-card {
      gap: 0;
    }

    .rfq-copy {
      padding: 26px 22px;
    }

    .rfq-copy h2 {
      margin: 0 0 10px;
      font-size: clamp(1.9rem, 7.5vw, 2.35rem);
      line-height: 1.08;
    }

    .rfq-copy p {
      margin: 0;
    }

    .rfq-copy .brief {
      margin-top: 16px;
    }

    .risk-grid {
      gap: 8px;
    }

    .risk {
      padding: 15px 12px;
    }

    .risk h3 {
      font-size: 1.16rem;
    }

    .risk p {
      font-size: .89rem;
    }

    .approval-list {
      gap: 0;
    }

    .approval-list .step {
      border-right: 0;
    }
  }

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

  @media (prefers-reduced-motion: reduce) {
    .route { transition: none; }
  }
}

/* The shared theme forces a solid background on hero links. */
#wood-mdf-medicine-cabinets-content .hero .button.ghost {
  border: 1px solid #e1cfb8;
  background: #181f1b99 !important;
  color: #fff !important;
}

#wood-mdf-medicine-cabinets-content .hero .button.ghost:hover {
  background: #fff !important;
  color: #21392e !important;
}
