:root {
  --ink: #172d25; --green: #143d31; --paper: #f9f5e9; --line: #acb9aa;
  --tint: #e2eadc; --white: #fffdf5; --focus: #8a4c00;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .19em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: 78rem; margin-inline: auto; padding-inline: clamp(1rem,4vw,3rem); }
.skip { position: absolute; transform: translateY(-130%); background: var(--white); padding: .75rem; z-index: 2; }
.skip:focus { transform: none; }
.mast { background: var(--green); color: var(--white); padding-block: .4rem; }
.mast :focus-visible { outline-color: #ffd295; }
.mast-row, .mast nav, .section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; }
.mast nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand { font-size: clamp(1.25rem,3vw,1.65rem); font-weight: 800; text-decoration: none; }
main { padding-block: 1.25rem 3rem; }
h1, h2, p { margin-block: 0 .65rem; }
h1 { font: 700 clamp(2rem,5vw,3.6rem)/1.06 Georgia, serif; }
h2 { font-size: 1.4rem; line-height: 1.2; }
.fit-strip { border-block: 1px solid var(--line); background: var(--tint); padding: .45rem .65rem; margin-bottom: .9rem; font-weight: 650; }
.hero { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: .9rem 2rem; margin-bottom: .85rem; }
.materials { display: grid; gap: .35rem; align-content: start; background: var(--tint); border: 1px solid var(--line); padding: .8rem; border-radius: .4rem; }
.materials a { display: flex; align-items: center; min-height: 2.75rem; border-bottom: 1px solid var(--line); }
.search { display: flex; align-items: end; flex-wrap: wrap; gap: .55rem; margin-bottom: .75rem; }
.search div:first-child { flex: 1 1 14rem; }
.search label { display: block; margin-bottom: .2rem; font-weight: 650; }
input, select, button { font: inherit; }
.search input, .search select { width: 100%; min-height: 2.75rem; padding: .42rem; border: 1px solid #697c6d; border-radius: .3rem; background: var(--white); color: var(--ink); }
.search button, .add-action { min-height: 2.75rem; padding: .55rem .7rem; border-radius: .3rem; background: var(--green); color: var(--white); font-weight: 750; }
.search button { border: 1px solid var(--green); cursor: pointer; }
.department-list, .product-grid { padding: 0; list-style: none; }
.department-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .4rem; }
.department-list a { display: flex; flex-direction: column; justify-content: center; min-height: 3.75rem; background: var(--white); border: 1px solid var(--line); padding: .4rem .6rem; border-radius: .3rem; }
.department-list small { color: #385144; }
.browse-rail { margin-block: 1.2rem .9rem; }
.section-head { margin-bottom: .35rem; }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: stretch; gap: .65rem; margin: 0; }
.product-card { display: flex; flex-direction: column; min-width: 0; padding: .65rem; background: var(--white); border: 1px solid var(--line); border-radius: .45rem; overflow-wrap: anywhere; }
.product-link { display: block; text-decoration: none; }
.product-link:hover strong { text-decoration: underline; }
.product-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; background: #fff; object-fit: contain; }
.product-card .product-photo { max-height: 12.5rem; margin-bottom: .4rem; }
.model-detail { font-size: .88rem; margin-block: .25rem .5rem; }
.product-card .purchase, .product-card .price { margin-top: auto; }
.price { margin-block: .15rem .5rem; }
.price-amount { font-weight: 800; font-size: 1.1rem; }
.price-observed { display: block; font-size: .8rem; }
.price details { border: 0; font-size: .8rem; }
.price details summary { min-height: 2.1rem; padding: .35rem 0; }
.add-action { display: flex; align-items: center; justify-content: center; text-align: center; }
.merchant-note { font-size: .8rem; margin-block: .4rem; }
.selection-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.selection-actions button { border: 1px solid #697c6d; padding: .25rem .55rem; min-height: 2.75rem; background: var(--white); border-radius: .3rem; color: var(--ink); cursor: pointer; }
.selection-actions button[aria-pressed="true"] { background: var(--tint); }
.crumbs, .jump { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .7rem; }
.crumbs a, .jump a { display: flex; align-items: center; min-height: 2.75rem; }
.crumbs span { align-self: center; }
.item-title { max-width: 48rem; margin-bottom: .9rem; }
.product-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .85rem; align-items: start; }
.media, .fit-card { margin: 0; padding: .85rem; background: var(--white); border: 1px solid var(--line); border-radius: .4rem; }
.media .product-photo { max-height: 27rem; }
figcaption { font-size: .85rem; margin-top: .5rem; }
.fit-card dl { margin: 0 0 .7rem; }
.fit-card dl div { display: grid; grid-template-columns: 1fr 1.15fr; gap: .35rem; padding-block: .4rem; border-bottom: 1px solid var(--line); }
dt { font-weight: 750; }
dd { margin-inline: 0; overflow-wrap: anywhere; }
.jump { margin-top: .8rem; border-bottom: 1px solid var(--line); }
.editorial, #questions { max-width: 56rem; padding-block: .85rem; }
.editorial p, .lede { max-width: 68ch; }
section[id] { scroll-margin-top: 1rem; }
section[id]:target { outline: 2px solid var(--green); outline-offset: .3rem; }
details { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding-block: .55rem; min-height: 2.75rem; font-weight: 650; }
footer { border-top: 1px solid var(--line); padding-block: .85rem; }
.selection-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 57rem) {
  .department-list, .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 42rem) {
  .hero, .product-layout { grid-template-columns: 1fr; }
  .department-list, .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mast-row { align-items: start; flex-direction: column; }
  .media .product-photo { max-height: 14rem; }
  .materials { grid-template-columns: repeat(3,minmax(0,1fr)); padding: .5rem; }
  .materials h2 { grid-column: 1/-1; margin-bottom: .1rem; font-size: 1rem; }
  .materials a { border: 0; padding: .15rem; font-size: .88rem; }
  .fit-card { display: flex; flex-direction: column; }
  .fit-card dl { order: 2; }
}
@media (max-width: 23rem) {
  .search button { width: 100%; }
  .search select { max-width: 16rem; }
  .product-card { padding: .5rem; }
}
