/* The guide uses the same paper, ink and type as the feature covers. */
.guide-entry {
  display: grid;
  grid-template: "photo copy action" auto / clamp(112px, 15vw, 186px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  min-height: 132px;
  margin: 0 0 clamp(34px, 4.6vw, 64px);
  padding-right: clamp(18px, 3vw, 40px);
  background: #e8ece1;
  color: var(--ink);
  border-radius: 5px;
  overflow: hidden;
}
.guide-entry::before {
  content: "";
  grid-area: photo;
  align-self: stretch;
  min-height: 100%;
  background: url("images/kitchen.webp") 62% center / cover no-repeat;
}
.guide-entry > div { grid-area: copy; padding-block: 18px; }
.guide-entry h2, .guide-head h1, .guide-best h2, .guide-compare h2, .guide-empty h2 {
  margin: 0;
  font-family: var(--editorial-serif);
  font-weight: 650;
  letter-spacing: -.044em;
  text-wrap: balance;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.guide-entry h2 { font-size: clamp(1.3rem, 2.35vw, 2.1rem); }
.guide-entry p { margin: 5px 0 0; color: #435848; line-height: 1.65; }
.guide-entry > .guide-primary { grid-area: action; }

.guide-primary, .guide-detail, .guide-purchase, .guide-budget button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.guide-primary {
  padding: 11px 22px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 5px;
  text-decoration: none;
}
.guide-detail, .guide-budget button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: .21em;
  padding: 6px 8px;
}
.guide-page {
  max-width: 1120px;
  padding-bottom: clamp(35px, 6vw, 78px);
  color: var(--ink);
}
.guide-head { margin: 1px 0 22px; }
.guide-head h1 { font-size: clamp(1.95rem, 4vw, 3.45rem); }
.guide-head p { margin: 7px 0 0; max-width: 56em; color: #4c5d50; }
.guide-controls {
  border: 1px solid #cdd4c6;
  background: #fffefa;
  border-radius: 8px;
  padding: 0 clamp(16px, 2.5vw, 31px);
}
.guide-field {
  display: grid;
  grid-template-columns: minmax(7.5em, .21fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px 16px;
  padding-block: 16px;
}
.guide-field + .guide-field { border-top: 1px solid #e0e3d9; }
.guide-field h2, .guide-field > label {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
}
.guide-chips, .guide-budget {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}
.guide-chips button {
  min-height: 44px;
  padding: 7px 15px;
  border: 1px solid #bcc7b7;
  border-radius: 999px;
  color: #374d3f;
  background: #fffefa;
  font-size: .94rem;
  line-height: 1.4;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: center;
}
.guide-chips button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}
.guide-budget { color: #49584b; }
.guide-budget input {
  width: min(100%, 12em);
  height: 44px;
  padding: 8px 12px;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  background: white;
  border: 1px solid #aebca9;
  border-radius: 5px;
}
.guide-controls button:focus-visible, .guide-page a:focus-visible,
.guide-page button:focus-visible, .guide-page input:focus-visible,
.guide-page .guide-scroll:focus-visible, .guide-entry button:focus-visible {
  outline: 3px solid #ac4c31;
  outline-offset: 2px;
}

#guideResults { margin-top: clamp(24px, 3vw, 40px); min-width: 0; }
.guide-count { margin: 0 0 8px; color: #50604f; font-size: .9rem; }
.guide-best {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(235px, .8fr);
  gap: clamp(20px, 4vw, 50px);
  align-items: center;
  padding: clamp(19px, 3.4vw, 40px);
  border: 1px solid #c9d4c4;
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  background: #edf1e7;
}
.guide-best-copy, .guide-offer { min-width: 0; }
.guide-kicker { margin: 0 0 4px; font-size: .88rem; font-weight: 750; color: #7e3a25; }
.guide-best h2 { font-size: clamp(1.55rem, 2.8vw, 2.6rem); }
.guide-model { margin: 5px 0 0; color: #526050; font-size: .9rem; overflow-wrap: anywhere; }
.guide-reasons { display: grid; gap: 9px; margin: 18px 0 0; }
.guide-reasons > div { display: grid; grid-template-columns: minmax(6em, auto) 1fr; gap: 4px 12px; }
.guide-reasons dt { color: #354f3e; margin: 0; font-size: .88rem; font-weight: 700; line-height: 1.7; }
.guide-reasons dd { margin: 0; color: #263d2e; line-height: 1.65; }
.guide-offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 1px solid #becab8;
  padding-left: clamp(16px, 2.7vw, 34px);
}
.guide-price-label { color: #435844; font-size: .87rem; font-weight: 650; }
.guide-price {
  color: #964228;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.guide-meta, .guide-note { color: #536152; font-size: .85rem; }
.guide-meta { margin: 5px 0 12px; line-height: 1.55; }
.guide-offer .guide-primary { width: 100%; }
.guide-offer .guide-detail { width: 100%; }
.guide-compare { margin-top: clamp(27px, 4vw, 48px); min-width: 0; }
.guide-compare h2, .guide-empty h2 { font-size: clamp(1.35rem, 2.4vw, 2.05rem); }
.guide-scroll {
  max-width: 100%;
  margin: 12px 0 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid #cfd5c8;
  border-radius: 6px;
}
.guide-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  color: #243c2c;
  background: #fffefa;
  font-size: .94rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
}
.guide-table th, .guide-table td {
  min-width: 152px;
  padding: 12px clamp(10px, 1.5vw, 19px);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.guide-table tr + tr > *, .guide-table tbody tr:first-child > * { border-top: 1px solid #d9dfd3; }
.guide-table thead th {
  background: #e5eadd;
  font-weight: 700;
  vertical-align: bottom;
}
.guide-table tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 90px;
  width: 17%;
  background: #f3f4eb;
  border-right: 1px solid #d5dacd;
  font-size: .88rem;
}
.guide-table thead tr > :first-child { background: #e2e7da; }
.guide-table td + td, .guide-table thead th + th:not(:nth-child(2)) { border-left: 1px solid #e4e7df; }
.guide-table small { display: block; color: #526153; font-size: .82rem; font-weight: 400; }
.guide-purchase {
  padding: 7px 12px;
  border: 1px solid #a9b9a6;
  border-radius: 4px;
  background: #f2f5ec;
  color: #274731;
  text-decoration: none;
}
.guide-empty {
  padding: clamp(18px, 3vw, 32px);
  border: 1px dashed #b6c1ae;
  background: #f0f2e8;
  border-radius: 6px;
}
.guide-empty p { margin-block: 8px 14px; }
.guide-note { margin: 10px 0 0; line-height: 1.65; }
@media (hover: hover) {
  .guide-primary:hover { background: #305940; }
  .guide-purchase:hover, .guide-chips button[aria-pressed="false"]:hover { background: #edf1e5; border-color: #869b83; }
  .guide-detail:hover, .guide-budget button:hover { color: #964228; }
}
@media (max-width: 700px) {
  .guide-entry {
    grid-template: "photo copy" auto "photo action" auto / clamp(65px, 20vw, 108px) minmax(0, 1fr);
    gap: 0 13px;
    min-height: 126px;
    padding: 0 12px 0 0;
    margin-bottom: 30px;
  }
  .guide-entry > div { align-self: end; padding: 12px 0 6px; }
  .guide-entry h2 { font-size: 1.25rem; }
  .guide-entry p { margin-top: 3px; font-size: .88rem; line-height: 1.55; }
  .guide-entry > .guide-primary { justify-self: start; align-self: start; padding: 8px 13px; margin-bottom: 11px; }
  .guide-head { margin-bottom: 16px; }
  .guide-head h1 { font-size: 1.9rem; }
  .guide-controls { padding-inline: 13px; }
  .guide-field { grid-template-columns: minmax(0, 1fr); gap: 7px; padding-block: 12px; }
  .guide-chips { gap: 5px; }
  .guide-chips button { padding: 6px 11px; font-size: .9rem; }
  .guide-best { grid-template-columns: minmax(0, 1fr); gap: 15px; padding: 18px 15px; }
  .guide-reasons { margin-top: 14px; }
  .guide-reasons > div { grid-template-columns: 1fr; gap: 0; }
  .guide-offer { border-left: 0; border-top: 1px solid #c4cebe; padding: 14px 0 0; }
  .guide-price { font-size: 2.1rem; }
  .guide-offer .guide-detail { min-height: 44px; padding-block: 5px; }
  .guide-table th, .guide-table td { min-width: 138px; padding: 10px; }
  .guide-table tr > :first-child { min-width: 80px; max-width: 102px; }
}
@media (max-width: 350px) {
  .guide-entry { grid-template-columns: 55px minmax(0, 1fr); }
  .guide-chips button { padding-inline: 9px; }
}
@media (max-width: 700px) {
  .bottom-nav .navbtn { min-width: 0; padding-inline: 1px; }
  .guide-drawing::before {
    inset: 2px 2px 3px;
    border: 1.8px solid currentColor;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent 46%, currentColor 46% 54%, transparent 54%);
  }
}
.guide-table td a:not(.guide-purchase) { text-decoration: underline; text-underline-offset: .16em; }

.guide-delivery { margin: -5px 0 12px; color: #435844; font-size: .87rem; line-height: 1.6; }

.guide-catalogue-picker { display: grid; min-width: 0; gap: 13px; }
.guide-depts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.guide-depts button {
  display: flex; align-items: center; gap: 8px; min-height: 48px; min-width: 0;
  padding: 5px 8px; background: #f2f3eb; border: 1px solid transparent;
  border-radius: 5px; color: var(--ink); font-size: .95rem; font-weight: 650;
}
.guide-depts button[aria-pressed="true"] { border-color: var(--accent); background: #e3ebdb; }
.guide-depts img { width: 35px; height: 35px; object-fit: cover; border-radius: 3px; }
.guide-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 0 15px; margin-top: 5px; }
.guide-shortcuts a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); font-size: .89rem; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.guide-table-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px 12px; }
.guide-diff-control { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: .94rem; cursor: pointer; }
.guide-diff-control input { accent-color: var(--accent); width: 18px; height: 18px; }
@media (max-width: 820px) {
  .guide-depts { gap: 4px; }
  .guide-depts button { flex-direction: column; justify-content: center; gap: 2px; padding: 4px 1px; font-size: .85rem; }
  .guide-depts img { width: 31px; height: 26px; }
}
@media (max-width: 700px) {
  .guide-shortcuts { gap: 0 10px; }
  .guide-shortcuts a { min-height: 38px; font-size: .82rem; }
}

/* Rakuten collection and shop attribution */
.rak-shop-note { display: block; font-size: .8rem; line-height: 1.55; color: #536152; overflow-wrap: anywhere; }
.guide-offer .rak-shop-note { margin: 4px 0 9px; }
.guide-table .rak-shop-note, .dc-buy .rak-shop-note, .item-merchant .rak-shop-note { margin: 3px 0 7px; }
.rak-inline-link, .rak-back, .rak-compare, .rak-out { text-decoration: underline; text-underline-offset: .24em; font-weight: 650; }
.rak-inline-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 4px; }
.rak-page { color: var(--ink); }
.rak-cover { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(160px, .8fr); background: #e8eadd; border-radius: 6px; overflow: hidden; }
.rak-cover > div { align-self: center; padding: clamp(22px, 4vw, 52px); }
.rak-cover h1 { font-family: var(--editorial-serif); font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.25; margin: 13px 0 8px; }
.rak-cover p { max-width: 29em; margin: 0; line-height: 1.8; }
.rak-back { display: inline-flex; align-items: center; min-height: 36px; font-size: .88rem; }
.rak-cover img { width: 100%; height: 100%; max-height: 280px; object-fit: cover; }
.rak-filter { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(190px, 2fr); gap: 14px; margin: 24px 0 16px; }
.rak-filter label { display: grid; gap: 4px; color: #38543f; font-weight: 650; font-size: .88rem; }
.rak-filter input, .rak-filter select { width: 100%; min-width: 0; height: 46px; background: #fffefa; border: 1px solid #abb8a7; border-radius: 5px; padding: 5px 12px; font-size: 1rem; }
.rak-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; align-items: start; }
.rak-groups > .guide-empty { grid-column: 1 / -1; }
.rak-group { background: #fffefa; border: 1px solid var(--line); border-radius: 5px; overflow: clip; }
.rak-group[open] { border-color: #a7b4a1; }
.rak-group summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 16px; cursor: pointer; list-style: none; }
.rak-group summary::-webkit-details-marker { display: none; }
.rak-group summary span { margin-left: auto; white-space: nowrap; font-size: .85rem; color: #536152; }
.rak-group summary::after { content: "+"; font-size: 1.2rem; }
.rak-group[open] summary::after { content: "−"; }
.rak-group summary:focus-visible { outline-offset: -4px; }
.rak-group-body { padding: 4px 16px 12px; }
.rak-compare { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; font-size: .92rem; }
.rak-group ul { list-style: none; padding: 0; margin: 0; }
.rak-group li { border-top: 1px solid var(--line); padding: 12px 0; }
.rak-identity { display: grid; gap: 0; justify-items: start; }
.rak-identity span, .rak-identity small { font-size: .8rem; color: #536152; }
.rak-identity button { font-weight: 750; text-align: left; padding: 4px 0; text-decoration: underline; text-underline-offset: .18em; }
.rak-group li p { font-size: .9rem; margin: 5px 0; }
.rak-out { display: inline-flex; align-items: center; min-height: 40px; color: #874329; }
.rak-export { padding: 16px 22px 24px; border: 1px solid var(--line); background: #f2f4eb; border-radius: 6px; }
@media (max-width: 680px) {
  .rak-cover { grid-template-columns: minmax(0, 1fr) 24%; }
  .rak-cover > div { padding: 14px 12px 20px; }
  .rak-cover h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .rak-cover p { font-size: .88rem; }
  .rak-groups { grid-template-columns: 1fr; }
  .rak-filter { grid-template-columns: minmax(110px, 2fr) minmax(140px, 3fr); gap: 8px; }
}
.rak-filter { grid-template-columns: minmax(125px, 1fr) minmax(170px, 1.7fr) minmax(125px, 1fr); margin-bottom: 5px; }
.rak-price-note { color: #536152; font-size: .83rem; margin: 3px 0 17px; }
.rak-listed-price { display: grid; gap: 2px; }
.rak-listed-price b { font-size: 1.05rem; }
.rak-listed-price small { color: #536152; font-size: .78rem; overflow-wrap: anywhere; }
button.rak-compare { padding: 0; }
@media (max-width: 680px) {
  .rak-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rak-filter label:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
}
.rak-observed { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; font-size: .9rem; cursor: pointer; }
.rak-observed input { width: 18px; height: 18px; accent-color: var(--accent); }
.guide-basis { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin: 0 0 10px; font-size: .9rem; }
.guide-basis a { display: inline-flex; align-items: center; min-height: 38px; text-decoration: underline; text-underline-offset: .22em; }

.guide-depts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.list-shelf .section-head { margin-bottom: 12px; }
.list-covers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(145px, 1fr); gap: clamp(8px, 1.5vw, 20px); overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 10px; }
.list-covers a { display: grid; align-content: start; gap: 6px; color: var(--ink); scroll-snap-align: start; }
.list-covers img { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; border-radius: 5px; }
.list-covers span { font: 650 clamp(.95rem, 1.5vw, 1.12rem)/1.5 var(--editorial-serif); }
.list-covers a:hover span, .kit-compare, .rak-scene-nav a { text-decoration: underline; text-underline-offset: .22em; }
.rak-scene-nav { border-bottom: 1px solid var(--line); }
.rak-scene-nav summary { padding: 11px 0; cursor: pointer; font-weight: 650; }
.rak-scene-nav nav { display: flex; flex-wrap: wrap; column-gap: 18px; margin-bottom: 6px; }
.rak-scene-nav a, .kit-compare { display: inline-flex; align-items: center; min-height: 42px; font-size: .92rem; }
.kit-overview { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; padding: clamp(15px, 2vw, 26px); background: #e9eee1; border-block: 1px solid #c6d2bf; border-radius: 4px; }
.kit-overview p { margin: 4px 0 0; color: #495d4b; font-size: .87rem; }
.kit-overview > b { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #88452f; font-variant-numeric: tabular-nums; }
.kit-slot { min-width: 0; padding: clamp(18px, 3vw, 30px) 0; border-bottom: 1px solid var(--line); }
.kit-slot > h2 { font: 650 clamp(1.3rem, 2.2vw, 1.8rem)/1.45 var(--editorial-serif); margin: 0; }
.kit-slot > p { margin: 6px 0; max-width: 65ch; }
.kit-slot label { display: block; font-weight: 650; margin: 11px 0 3px; font-size: .92rem; }
.kit-slot select { width: min(100%, 640px); min-height: 44px; padding: 6px 10px; border: 1px solid #9daf9a; border-radius: 5px; background: #fffefa; font-size: 1rem; }
.kit-slot .kit-fit { margin-top: 10px; }
.kit-tradeoff { font-size: .92rem; color: #435846; }
.kit-actions { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin: 12px 0 4px; }
@media (max-width: 760px) {
  .guide-depts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-depts button { flex-direction: row; justify-content: flex-start; padding: 4px 6px; gap: 5px; }
  .list-covers { grid-auto-columns: minmax(146px, 46%); }
}
.rak-group summary strong { overflow-wrap: anywhere; }
@media (max-width: 420px) { .rak-group summary { padding-inline: 10px; gap: 6px; } }
