/* Screen layout for the cabinet overview. Use screen height as well as width
   when sizing media so shorter laptops can show the accompanying controls. */
.kc-page {
  --kc-wrap: min(84%, 72rem);
  --kc-section-space: clamp(2.75rem, min(5.5vw, 7.5svh), 5rem);
  --kc-feature-space: clamp(3.5rem, 7.4vw, 7rem);
  --kc-column-gap: clamp(2.25rem, 5vw, 5rem);
}
.kc-section, .kitchen-page #cabinet-collections.kc-match,
.kc-page > .kitchen-discovery { padding-block: var(--kc-section-space); }
.kc-steel { padding-block: var(--kc-feature-space) 0; }
.kc-finishes { padding-block-end: var(--kc-feature-space); }
.kc-page .kc-section p { text-wrap: pretty; }
.kc-page h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.kc-page h3 { font-size: clamp(1.4rem, 1.95vw, 1.8rem); }
.kc-page .kc-hero p, .kc-page .kc-section p, .kc-guide-heading p { line-height: 1.6; }

.kc-hero-main { grid-template-columns: minmax(0, min(42%, 33rem)) minmax(0, 1fr); }
.kc-hero-copy { padding-block: clamp(1.25rem, 4svh, 3rem); padding-inline-end: clamp(1.5rem, 4vw, 4rem); }
.kc-hero-copy h1 { font-size: clamp(2.125rem, 10.3cqi, 3.35rem); }
.kc-hero .kc-mark { width: clamp(5.75rem, 7vw, 7rem); margin-bottom: clamp(.875rem, 2svh, 1.5rem); }
.kc-page .kc-hero-copy p { max-width: 43ch; margin: 1.15rem 0 1.4rem; }
.kc-hero-actions { gap: .5rem 1rem; }
.kc-hero-actions .kc-button { min-height: 44px; padding: .55rem .95rem; }
.kc-hero-actions .kc-link { display: inline-flex; align-items: center; min-height: 44px; }
.kc-hero-photo { min-height: clamp(15rem, min(34vw, 56svh), 34rem); }
.kc-index { padding-block: .6rem; }
.kc-index .kc-wrap { column-gap: clamp(.7rem, 2vw, 2.25rem); }

.kc-page .kc-steel-intro h2 { max-width: 16ch; font-size: clamp(2rem, 3.6vw, 3.5rem); }
.kc-page .kc-steel-hint { margin-top: 1rem; }
.kc-steel-map { width: min(100%, 66rem, 97svh); }
.kc-steel-notes {
  padding-block: clamp(1.75rem, 3.3vw, 3.25rem) var(--kc-feature-space);
}
.kc-steel-map .kc-pin-drawer { left: 28%; top: 84%; }
.kc-craft { padding-block: var(--kc-section-space); }
.kc-steel-notes h3, .kc-craft-opening h3 { font-size: clamp(1.55rem, 2.4vw, 2.25rem); }
.kc-craft-opening { padding-bottom: clamp(1.75rem, 3vw, 3rem); }
.kc-craft-grid, .kc-drawer-layout { column-gap: var(--kc-column-gap); }
.kc-craft figcaption { padding-top: 1rem; }
.kc-box-study figcaption { max-width: 47ch; }
.kc-craft-row { padding-block: clamp(1.125rem, 2vw, 1.9rem); }
.kc-craft-row h4, .kc-box-study legend { font-size: clamp(1.4rem, 2vw, 1.85rem); }
.kc-compare { margin-top: clamp(1.1rem, 2.2vw, 2.25rem); }
.kc-box-study {
  margin-top: clamp(1.75rem, 3vw, 3rem);
  padding-inline: clamp(.5rem, 1.2vw, 1rem);
}
.kc-box-study legend { padding-block: 0 1.15rem; border-top: 0; }
.kc-box-study > label {
  margin: 0 clamp(.8rem, 2vw, 1.5rem) .35rem 0;
  padding: .5rem .1rem;
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #555;
}
.kc-box-study > input:checked + label {
  background: transparent;
  color: var(--kc-ink);
  border-bottom-color: currentColor;
  font-weight: 550;
}
.kc-box-study > .kc-craft-grid { margin-top: clamp(1.4rem, 2.2vw, 2rem); }
.kc-box-study .kc-box-assembled img, .kc-box-study .kc-box-details img {
  height: clamp(11rem, 36svh, 22rem);
  aspect-ratio: auto;
}
.kc-box-study h5 { margin-bottom: .55rem; font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
.kc-compare > summary {
  width: fit-content;
  max-width: 100%;
  min-height: 46px;
  gap: 1rem;
  padding: .65rem 1.15rem;
  border: 1px solid #858585;
  border-radius: 999px;
  background: #fff;
  color: var(--kc-ink);
  font: 500 1rem/1.4 var(--kc-body);
}
.kc-compare-icon { width: 1rem; height: 1rem; background: transparent; }
.kc-compare-icon::before, .kc-compare-icon::after { width: .75rem; border-top-width: 1.5px; }
@media (hover: hover) {
  .kc-compare > summary:hover { background: #f5f5f5; border-color: var(--kc-ink); }
  .kc-box-study > label:hover { color: var(--kc-ink); border-bottom-color: #888; }
}

.kc-finish-gallery img { max-height: min(53svh, 27rem); object-fit: contain; }
.kc-finish-stills { gap: 1.25rem; }
.kc-finish-stills img { max-height: clamp(6rem, 14svh, 10rem); }
.kc-drawer-layout { padding-block: var(--kc-section-space) 1.5rem; }
.kc-page .kc-drawer-nav h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.kc-drawer-map { width: min(100%, 60svh); }
.kc-drawer-photo { height: clamp(10rem, 26svh, 15rem); }
.kc-page .kc-drawer-detail h3 { font-size: clamp(1.45rem, 1.9vw, 1.9rem); }
.kc-drawer-fitting { margin-top: 1.3rem; }
.kc-drawer-figure figcaption { margin-top: 1rem; }
.kc-drawer-plan { padding-block-end: var(--kc-feature-space); }
.kc-page .kc-drawer-plan .kc-button { min-height: 48px; font-size: 1.05rem; }

.kc-match-table { margin-top: clamp(1.5rem, 2.5vw, 2.25rem); }
.kc-match-table thead a { font-size: clamp(1.4rem, 2.3vw, 2rem); }
.kc-match-photos img { max-height: clamp(8rem, 23svh, 14rem); }
.kc-match-table th[colspan] { padding-block: .8rem .3rem; }
.kc-match-table td { padding-bottom: .85rem; line-height: 1.55; }
.kc-lead, .kc-guide-heading { margin-bottom: clamp(1.5rem, 2.7vw, 2.5rem); }
#cabinet-features .kc-lead { margin-bottom: var(--kc-section-space); }
.kc-features { column-gap: clamp(1.75rem, 3.2vw, 3.1rem); }
.kc-questions summary { padding-block: 1rem; min-height: 44px; }
.kc-features img { max-height: min(29svh, 17rem); }
.kc-page .kc-family h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.kc-page .kd-questions-only .kd-guide, .kc-page .kd-report { padding: clamp(1rem, 2.2vw, 2.25rem); }
.kc-page .kd-questions-only .kd-illustrated button { min-height: clamp(8rem, 14svh, 10rem); }

/* In split layouts the photo leads the section. In stacked layouts the
   corresponding space belongs between the introduction and the photo. */
@media (min-width: 761px) {
  .kc-craft, .kc-finishes, .kc-family { padding-block-start: var(--kc-feature-space); }
}
@media (max-width: 850px) {
  .kc-page { --kc-wrap: 87%; }
  .kc-hero-main { padding-inline-start: 6.5%; }
}
@media (max-width: 760px) {
  .kc-page {
    --kc-page-gutter: clamp(1.5rem, 6.4vw, 3.25rem);
    --kc-wrap: calc(100% - var(--kc-page-gutter) - var(--kc-page-gutter));
  }
  .kc-hero-main { grid-template-columns: minmax(0, 1fr); padding-inline-start: 0; }
  .kc-hero-copy { padding: 1.45rem var(--kc-page-gutter) 1.3rem; }
  .kc-hero-copy h1 { font-size: clamp(1.875rem, 7.8vw, 2.7rem); max-width: 22ch; }
  .kc-hero .kc-mark { width: 5.25rem; margin-bottom: .75rem; }
  .kc-hero-photo { min-height: 0; aspect-ratio: 1.875; }
  .kc-craft-grid { row-gap: 1.5rem; }
  .kc-craft-opening, .kc-finishes .kc-craft-grid, .kc-family-layout { row-gap: var(--kc-feature-space); }
  .kc-box-study .kc-craft-grid { row-gap: clamp(2.5rem, 7vw, 3.5rem); }
  .kc-box-study { padding-inline: 0; }
  body:has(.rw-contact-tab) .kc-box-study { padding-inline-end: max(0px, calc(46px - var(--kc-page-gutter))); }
  .kc-craft-row { row-gap: .65rem; }
  .kc-index .kc-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 .55rem; }
  .kc-index a { line-height: 1.25; }
  .kc-steel-map { width: 100%; }
  .kc-box-study .kc-box-assembled img, .kc-box-study .kc-box-details img {
    height: auto; aspect-ratio: 1.45; max-height: 37svh;
  }
  .kc-finish-stills img { max-height: none; }
  .kc-drawer-map { width: 100%; }
  .kc-drawer-layout, .kc-faq-grid { row-gap: 1.7rem; }
  .kc-pair, .kc-features { gap: 2.25rem; }
}
@media (max-width: 359px) {
  .kc-page { --kc-page-gutter: 1.15rem; }
  .kc-index .kc-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 841px) {
  .kc-drawer-plan {
    display: flex;
    justify-content: center;
    padding-top: clamp(.75rem, 1.6vw, 1.5rem);
  }
  .kc-page .kc-drawer-plan .kc-button {
    width: fit-content;
    max-width: 100%;
    min-height: 46px;
    padding: .65rem 1.65rem;
    border: 1px solid #858585;
    border-radius: 999px;
    background: white;
    color: var(--kc-ink);
    font: 500 1rem/1.4 var(--kc-body);
  }
}
@media (min-width: 841px) and (hover: hover) {
  .kc-page .kc-drawer-plan .kc-button:hover {
    background: #f5f5f5;
    border-color: var(--kc-ink);
  }
}

/* Show the empty right-hand bay of Cleanup’s original STEDIA photograph.
   The displayed square corresponds to x=1016, y=311, size=630 in the 1820px source. */
.kc-box-assembled { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kc-box-assembled .kc-box-photo {
  display: grid;
  place-items: center;
  height: clamp(11rem, 36svh, 22rem);
  background: var(--kc-pale);
}
.kc-box-assembled .kc-steel-box-crop {
  position: relative;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}
.kc-box-study .kc-box-assembled .kc-box-photo > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.kc-box-study .kc-box-assembled .kc-steel-box-crop img {
  position: absolute;
  width: 288.889%;
  max-width: none;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  left: -161.270%;
  top: -49.365%;
}
@media (max-width: 760px) {
  .kc-box-study .kc-box-assembled { column-gap: clamp(.75rem, 3vw, 1.5rem); }
  .kc-box-assembled .kc-box-photo { height: auto; aspect-ratio: 1; }
  .kc-box-study .kc-box-assembled h5 { font-size: clamp(1.1rem, 3vw, 1.4rem); }
}

/* The family photograph fades into the reading area. The original room view
   uses the same frame so switching photographs does not move the page. */
.kc-family-hero {
  --kc-hero-paper: #fbf8f3;
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, min(40vw, 34rem)) 1fr;
  min-height: clamp(29rem, min(47vw, 68svh), 48rem);
  background: var(--kc-hero-paper);
}
.kc-family-hero .kc-hero-copy { position: relative; z-index: 1; padding-block: clamp(2.1rem, 4vw, 4rem); }
.kc-family-hero .kc-hero-copy > p { max-width: 40ch; color: #46413b; }
.kc-page .kc-hero-philosophy {
  display: grid;
  gap: .2rem;
  margin: clamp(1.15rem, 2vw, 1.6rem) 0 0;
  padding: 0 0 0 1rem;
  border-inline-start: 1px solid #b7a994;
  color: #433e36;
}
.kc-hero-philosophy [lang="ja"] { font: 400 clamp(1.04rem, 1.3vw, 1.25rem)/1.6 "Hiragino Mincho ProN", "Yu Mincho", serif; letter-spacing: .05em; }
.kc-hero-philosophy span + span { font: 400 1.15rem/1.32 var(--kc-display); }
.kc-hero-philosophy cite { font: 400 .77rem/1.55 var(--kc-body); color: #5c534a; }
.kc-hero-scene { position: absolute; inset: 0 0 0 30%; z-index: 0; min-inline-size: 0; margin: 0; padding: 0; border: 0; overflow: hidden; }
.kc-hero-scene > img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.kc-hero-scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--kc-hero-paper), rgb(251 248 243 / 93%) 9%, rgb(251 248 243 / 60%) 21%, rgb(251 248 243 / 9%) 43%, transparent 60%);
}
.kc-hero-scene .kc-centro-scene, #centro-view:checked ~ .kc-family-scene { display: none; }
#centro-view:checked ~ .kc-centro-scene { display: block; }
.kc-scene-choices {
  position: absolute; z-index: 1; right: clamp(1rem, 3vw, 3rem); bottom: 1.15rem;
  display: flex; padding: .17rem; border-radius: 2rem; background: #faf8f1f2;
}
.kc-scene-choices label { display: grid; place-items: center; min-height: 40px; padding: 0 .85rem; border-radius: 2rem; cursor: pointer; font: 500 .72rem/1 var(--kc-body); letter-spacing: .06em; color: #383630; }
#family-view:checked ~ .kc-scene-choices [for="family-view"], #centro-view:checked ~ .kc-scene-choices [for="centro-view"] { background: #35322e; color: white; }
#family-view:focus-visible ~ .kc-scene-choices [for="family-view"], #centro-view:focus-visible ~ .kc-scene-choices [for="centro-view"] { outline: 2px solid #141414; outline-offset: 3px; }

.kc-steel:has(+ .kc-guide-band) { border-bottom: 0; }
.kc-guide-band { position: relative; background: #f5f5f5; }
.kc-steel:has(+ .kc-guide-band) .kc-steel-notes { padding-bottom: 1.75rem; }
.kc-guide-action { padding-bottom: var(--kc-feature-space); }
.kc-page .kc-outline-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 44px; padding: .68rem 1.2rem; border: 1px solid #868686; border-radius: 1.6rem;
  font: 500 .94rem/1.4 var(--kc-body); text-decoration: none; color: var(--kc-ink);
}
.kc-outline-link:hover { background: #fff; border-color: #333; }
.kc-countertops { background: white; padding-block: var(--kc-feature-space); border-top: 1px solid var(--kc-line); }
.kc-counter-grid { display: grid; grid-template-columns: 1fr .95fr; align-items: center; gap: var(--kc-column-gap); }
.kc-counter-copy h2 { max-width: 19ch; margin-bottom: 1.15rem; }
.kc-counter-copy > p { max-width: 53ch; }
.kc-counter-benefits { max-width: 52ch; margin: clamp(1.6rem, 3vw, 2.6rem) 0; }
.kc-counter-benefits dt { border-top: 1px solid var(--kc-line); padding-top: .95rem; font-weight: 600; }
.kc-counter-benefits dd { margin: .32rem 0 1.2rem; color: var(--kc-muted); line-height: 1.6; }
.kc-page .kc-counter-spec { font-size: .9rem; }
.kc-counter-sources { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; margin-top: .9rem; }
.kc-page .kc-counter-sources a { font-size: .85rem; }
.kc-counter-visuals { display: grid; gap: 1.5rem; }
.kc-counter-visuals img { display: block; width: 100%; }
.kc-counter-visuals figcaption { margin-top: .55rem; color: #5a5a5a; font-size: .87rem; }
.kc-texture-sample img { height: clamp(10rem, 20vw, 16rem); object-fit: contain; }
.kc-wipe-sequence { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.kc-wipe-sequence img { aspect-ratio: 4/3; max-height: 10rem; object-fit: cover; }
#about-cleanup .kc-history-intro h3 { margin-top: 1.1rem; }
#about-cleanup .kc-history-intro a { display: block; margin-top: .65rem; }
.kc-steel-guide .kc-guide-back { display: block; padding-top: var(--kc-section-space); }
.kc-steel-guide .kc-craft { padding-top: clamp(1.85rem, 3vw, 3rem); border-top: none; }
.kc-steel-guide .kc-craft-opening h1 { max-width: 16ch; font: 400 clamp(2.3rem, 4.4vw, 4rem)/1.05 var(--kc-display); letter-spacing: -.025em; }
.kc-steel-guide .kc-craft-row h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.kc-steel-guide .kc-box-study h3 { font-size: clamp(1.1rem, 2vw, 1.65rem); margin-bottom: .5rem; }
.kc-guide-return { padding-bottom: var(--kc-feature-space); }
@media (max-width: 760px) {
  .kc-family-hero { display: flex; flex-direction: column; min-height: 0; }
  .kc-hero-scene { position: relative; inset: auto; order: -1; width: 100%; height: clamp(12rem, 56vw, 22rem); }
  .kc-hero-scene > img { object-position: 50% 57%; }
  .kc-hero-scene::after { background: linear-gradient(0deg, var(--kc-hero-paper), rgb(251 248 243 / 17%) 13%, transparent 30%); }
  .kc-scene-choices { right: var(--kc-page-gutter); bottom: .65rem; }
  .kc-family-hero .kc-hero-copy { align-self: stretch; padding: 1rem var(--kc-page-gutter) var(--kc-section-space); }
  .kc-family-hero .kc-hero-copy h1 { max-width: 18ch; }
  .kc-counter-grid { grid-template-columns: 1fr; row-gap: 2.2rem; }
  .kc-counter-visuals { gap: 1.25rem; }
  .kc-steel-guide .kc-box-assembled h3 { overflow-wrap: break-word; }
}
@media (max-width: 760px) {
  body:has(.rw-contact-tab) .kc-family-hero .kc-hero-copy {
    padding-inline-end: max(var(--kc-page-gutter), 52px);
  }
}
