:root {
  color-scheme: light;
  --canvas: #f6f7f1;
  --paper: #fff;
  --pine: #172a21;
  --pine-deep: #0e1d16;
  --pine-soft: #284538;
  --ink: #182820;
  --muted: #526159;
  --line: #dce2d8;
  --soft: #edf1e8;
  --lime: #dcefa0;
  --lime-bright: #d3ed81;
  --focus: #456a33;
  --shadow: 0 12px 40px rgb(18 35 25 / .07);
  --heading: "Manrope", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --frame: 1200px;
  --gutter: clamp(18px, 4.5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: 90px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { color: inherit; font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
::selection { color: var(--pine-deep); background: var(--lime); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, h4, p, ul, ol { margin-block-start: 0; }
h1, h2, h3, h4 { font-family: var(--heading); color: inherit; }
h1, h2 { font-weight: 780; line-height: 1.06; letter-spacing: -.055em; }
h1 { font-size: clamp(2.65rem, 6.6vw, 6rem); margin-bottom: .26em; }
h2 { font-size: clamp(2rem, 4.7vw, 3.9rem); margin-bottom: .3em; }
h3 { font-size: clamp(1.22rem, 2vw, 1.55rem); line-height: 1.2; letter-spacing: -.026em; margin-bottom: .45em; }
h4 { font-size: 1.05rem; line-height: 1.25; margin-bottom: .45em; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
small { font-size: .84rem; }

.container, .wrap, .shell {
  width: min(100% - var(--gutter) * 2, var(--frame));
  margin-inline: auto;
}

.icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

.eyebrow, .kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #4e6333;
  margin-bottom: 14px;
}

.button, .btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .58rem;
  min-height: 46px;
  padding: .66rem 1.06rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--pine);
  color: #fff;
  font-size: .91rem;
  font-weight: 720;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.button:hover, .btn:hover { background-color: var(--pine-soft); }
.button-primary, .btn-primary, .button.primary, .btn.primary {
  background: var(--lime);
  color: var(--pine-deep);
}

.button-primary:hover, .btn-primary:hover, .button.primary:hover, .btn.primary:hover {
  background: var(--lime-bright);
}

.button-secondary, .btn-secondary, .button.secondary, .btn.secondary, .button-ghost, .btn-ghost {
  background: transparent;
  border-color: #bdc9bf;
  color: var(--pine);
}

.button-secondary:hover, .btn-secondary:hover, .button.secondary:hover, .btn.secondary:hover,
.button-ghost:hover, .btn-ghost:hover {
  background: var(--soft);
  border-color: #92a28d;
}

.button:disabled, .btn:disabled { opacity: .5; }

.visually-hidden, .sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--lime);
  color: var(--pine);
  padding: .65rem 1rem;
  border-radius: 6px;
}

.skip-link:focus { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--pine);
  font: 780 1.22rem/1 var(--heading);
  letter-spacing: -.045em;
  text-decoration: none;
  white-space: nowrap;
}

.brand b { font-weight: 600; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--lime);
  background: var(--pine);
}
.brand-mark .icon, .brand-mark svg { width: 1.42rem; height: 1.42rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 37px);
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: .91rem;
  font-weight: 660;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover, .main-nav a[aria-current] { color: var(--pine); }
.main-nav a[aria-current]:not([aria-current="false"])::after {
  content: "";
  position: absolute;
  inset: auto 0 2px;
  height: 2px;
  border-radius: 2px;
  background: #758d52;
}
.header-cta { justify-self: end; }
.button-small { min-height: 40px; padding-inline: .9rem; }
.button-dark { background: var(--pine); color: #fff; }
.button-accent { background: var(--lime); color: var(--pine-deep); }
.button-accent:hover { background: var(--lime-bright); }
.button-outline { background: transparent; color: var(--pine); border-color: #adbeb0; }
.button-outline:hover { background: var(--soft); border-color: #879a8b; }

/* Entry and routes */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background-color: #253b31;
  background-image:
    linear-gradient(90deg, rgb(11 28 20 / .53) 0%, rgb(11 28 20 / .44) 38%, rgb(11 28 20 / .09) 70%, transparent 100%),
    linear-gradient(0deg, rgb(10 28 19 / .35), transparent 55%),
    url("./hero.webp");
  background-position: center, center, center 51%;
  background-size: cover;
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: min(530px, 68vh);
  padding-block: clamp(62px, 10vw, 102px);
}

.hero-copy { max-width: 820px; }
.hero-label { color: var(--lime); }
.hero h1 { margin-bottom: .25em; font-size: clamp(2.65rem, 6.6vw, 5.7rem); }
.hero h1 span { color: var(--lime); }
.hero-description {
  max-width: 520px;
  margin-bottom: 1.85rem;
  color: #f0f3ea;
  font-size: clamp(1.02rem, 1.8vw, 1.17rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero .button { min-height: 48px; padding-inline: 1.13rem; }
.hero .button-ghost {
  border-color: rgb(255 255 255 / .55);
  color: #fff;
  background: rgb(14 29 22 / .15);
}
.hero .button-ghost:hover { border-color: #fff; background: rgb(14 29 22 / .6); }
.hero :focus-visible { outline-color: var(--lime); }

.home-features { padding-block: clamp(38px, 6vw, 77px) 0; }
.home-topics { padding-block: clamp(38px, 6vw, 78px); }
.section-heading { margin-bottom: 24px; }
.section-heading h2, .page-heading h1 { color: var(--pine); }
.section-heading p, .page-heading p { max-width: 680px; color: var(--muted); }
.section-heading h2 { font-size: clamp(1.9rem, 3.7vw, 3rem); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px 16px;
  padding: clamp(20px, 3vw, 31px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  color: var(--pine);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.feature-card:hover, .catalog-card:hover {
  border-color: #8eaa83;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature-planner { background: #edf3dd; border-color: #d8e1c9; }
.feature-icon, .catalog-icon, .activity-copy > .icon {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--pine-soft);
  background: var(--soft);
}
.feature-icon { width: 49px; height: 49px; border-radius: 10px; }
.feature-icon .icon, .feature-icon svg { width: 1.45rem; height: 1.45rem; }
.feature-planner .feature-icon { color: var(--pine); background: var(--lime); }
.feature-card h3 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); }
.feature-card p { color: var(--muted); line-height: 1.5; }
.feature-link {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: end;
  font-size: .9rem;
  font-weight: 750;
}

.page { min-height: 65vh; padding-block: clamp(38px, 6.5vw, 82px); }
.page-heading { margin-bottom: 28px; }
.page-heading h1 { font-size: clamp(2.45rem, 6vw, 4.85rem); overflow-wrap: anywhere; }
.page-heading p { font-size: clamp(1rem, 1.5vw, 1.11rem); }

.search-field {
  display: flex;
  position: relative;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  min-height: 58px;
  padding: 4px 16px;
  border: 1px solid #b8c8ba;
  border-radius: 10px;
  background: var(--paper);
  color: var(--pine-soft);
}

.search-field:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgb(69 106 51 / .16);
}

.search-field input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.search-field input::placeholder { color: #65736a; }
.search-field input::-webkit-search-cancel-button { cursor: pointer; }
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 25px;
}
.filter-chip, .kit-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--pine);
  font-size: .87rem;
  font-weight: 650;
  line-height: 1.3;
}
.filter-chip {
  min-height: 38px;
  padding: .47rem .88rem;
}
.filter-chip:hover { border-color: #95ab95; }
.filter-chip[aria-pressed="true"] { border-color: var(--pine); background: var(--pine); color: #fff; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.catalog-card {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 12px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--pine);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.catalog-card > div { min-width: 0; }
.catalog-icon { width: 37px; height: 37px; border-radius: 8px; }
.catalog-icon .icon, .catalog-icon svg { width: 1.1rem; height: 1.1rem; }
.catalog-card h2, .catalog-card h3 {
  margin: .25rem 0 .36rem;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: -.023em;
  overflow-wrap: anywhere;
}
.catalog-card p {
  margin: 0;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.card-category {
  display: inline-block;
  color: #506a3e;
  font-size: .77rem;
  font-weight: 750;
  line-height: 1.4;
}

/* Material articles */
.article {
  max-width: 870px;
  padding-block: clamp(28px, 6vw, 78px);
}
.page .article { padding-block: 0; }
.article h1 { font-size: clamp(2.55rem, 6.5vw, 5.1rem); }
.article h2 { font-size: clamp(1.6rem, 4vw, 2.42rem); }
.article p, .article li { text-wrap: pretty; }
.article .lead, .article-summary {
  color: var(--muted);
  max-width: 730px;
  font-size: clamp(1.06rem, 2vw, 1.24rem);
  line-height: 1.55;
}
.article > section + section { margin-top: 30px; }
.article ul { padding-inline-start: 1.4rem; }
.article li + li { margin-top: .38rem; }
.variant-grid, .article-variants, .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 13px;
}
.variant-card { scroll-margin-top: 10px; }
.variant-card.is-highlighted, .variant-card.selected, .variant-card:target {
  border-color: #8ba967;
  box-shadow: 0 0 0 2px #d7e8bb;
  background: #f3f8e8;
}

.text-link, .back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #315731;
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
  font-weight: 700;
}
.text-link:hover, .back-link:hover { color: var(--pine-deep); text-decoration-thickness: 2px; }
.back-link { margin-bottom: 1.2rem; }

.muted { color: var(--muted); }
.card, .panel, .variant-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: clamp(17px, 2.6vw, 27px);
  background: var(--paper);
}
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 17px;
  border: 1px solid #d6e2c9;
  border-radius: 10px;
  background: #edf4e2;
  color: var(--pine);
  font-size: .94rem;
}
.notice .icon { margin-top: 2px; color: var(--pine-soft); }
.notice p:last-child { margin-bottom: 0; }

.empty-state, .kit-empty {
  padding: clamp(30px, 5vw, 52px) clamp(18px, 4vw, 36px);
  border: 1px dashed #acbfae;
  border-radius: 12px;
  background: #f9fbf6;
  color: var(--muted);
  text-align: center;
}
.empty-state h2, .kit-empty h2 { font-size: 1.5rem; color: var(--pine); }
.empty-state > .icon, .kit-empty > .icon { margin: 0 auto 14px; width: 1.8rem; height: 1.8rem; }

/* Kit builder */
.planner-layout {
  display: grid;
  grid-template-columns: minmax(335px, 1fr) minmax(0, 1.14fr);
  align-items: start;
  gap: clamp(18px, 3vw, 34px);
}
.planner-controls, .planner-results { display: grid; min-width: 0; gap: 18px; }
.planner-controls > .panel h2, .planner-results h2 {
  font-size: clamp(1.43rem, 2.7vw, 2.05rem);
  letter-spacing: -.036em;
}
.panel h2 + p { color: var(--muted); margin-bottom: 17px; }
.activity-list { display: grid; gap: 8px; }
.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(105px, auto);
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fcfdfa;
}
.activity-row:has(select option[value="focus"]:checked) {
  border-color: #9ab574;
  background: #f2f8e8;
}
.activity-row:has(select option[value="sometimes"]:checked) { background: #f5f8ed; }
.activity-copy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.activity-copy > .icon {
  box-sizing: content-box;
  padding: 5px;
  border-radius: 6px;
  margin-top: 1px;
  width: 1rem;
  height: 1rem;
}
.activity-copy label, .activity-copy strong { display: block; font-size: .95rem; line-height: 1.3; }
.activity-copy p, .activity-copy small {
  display: block;
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: .81rem;
  line-height: 1.4;
}
.activity-select {
  appearance: none;
  display: block;
  min-width: 0;
  max-width: 12rem;
  min-height: 40px;
  padding: .45rem 1.55rem .45rem .57rem;
  border: 1px solid #c3cec2;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2336503c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .43rem center / 14px no-repeat;
  color: var(--pine);
  cursor: pointer;
  font-size: .85rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.profile-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 52px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdfa;
  cursor: pointer;
}
.profile-option:hover { border-color: #9bb299; }
.profile-option:has(input:checked) { border-color: #86a46b; background: #edf5df; }
.profile-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.profile-option input { flex: none; margin: 3px 0 0; accent-color: #4f733d; }
.profile-option strong { display: block; color: var(--pine); font-size: .92rem; line-height: 1.28; }
.profile-option p, .profile-option small {
  display: block;
  margin: .26rem 0 0;
  color: var(--muted);
  font-size: .81rem;
  line-height: 1.4;
}

.result-total {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: clamp(18px, 3.1vw, 30px);
  border-radius: 13px;
  background: var(--pine);
  color: #fff;
}
.result-total p, .result-total small { color: #e1e8df; }
.result-total p { margin: 0; }
.result-total strong { color: var(--lime); }
.result-total .price-total, .result-total .total-range {
  font: 770 clamp(1.85rem, 4.8vw, 3.3rem)/1.1 var(--heading);
  letter-spacing: -.046em;
}
.result-total .eyebrow { color: var(--lime); margin-bottom: 0; }

.kit-group {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  overflow: clip;
}
.kit-group > h2, .kit-group > p { margin-inline: clamp(14px, 2.4vw, 24px); }
.kit-group > h2 { margin-block-start: 20px; }
.kit-group > p { color: var(--muted); }
.kit-group > header {
  padding: clamp(14px, 2vw, 22px) clamp(14px, 2.4vw, 24px);
  background: #edf3e3;
}
.kit-group > header p { color: var(--muted); }
.kit-item {
  display: grid;
  gap: 9px;
  padding: clamp(14px, 2.4vw, 22px) clamp(14px, 2.4vw, 24px);
  border-top: 1px solid var(--line);
}
.kit-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 12px;
}
.kit-item-head h3 { margin: 0; font-size: 1.14rem; }
.kit-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.52;
}
.kit-item ul { color: var(--muted); margin-bottom: 0; padding-left: 1.25rem; }
.kit-item ul li + li { margin-top: .2rem; }
.kit-price { color: var(--pine); font-size: .91rem; font-weight: 770; white-space: nowrap; }
.kit-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.kit-tag { padding: .26rem .58rem; background: var(--soft); font-size: .78rem; }
.kit-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.kit-share .button { flex: 1 1 auto; }

.share-dialog {
  width: min(100% - 28px, 520px);
  max-height: calc(100dvh - 32px);
  padding: clamp(19px, 4vw, 29px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  color: var(--pine);
  box-shadow: 0 24px 85px rgb(11 26 18 / .3);
}
.share-dialog::backdrop { background: rgb(14 29 22 / .62); }
.share-dialog h2 { font-size: clamp(1.55rem, 5vw, 2.2rem); }
.share-dialog input[type="url"], .share-dialog input[readonly] {
  display: block;
  width: 100%;
  min-height: 45px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid #aabda8;
  border-radius: 7px;
  background: #f8faf5;
}
.share-dialog canvas, .share-dialog img {
  display: block;
  width: min(100%, 210px);
  height: auto;
  margin-inline: auto;
  image-rendering: pixelated;
}

/* Footer and viewports */
.site-footer {
  border-top: 1px solid var(--line);
  background: #eaf0e5;
  color: var(--pine);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px 28px;
  padding-block: 27px 32px;
}
.footer-inner p { max-width: 640px; color: var(--muted); font-size: .91rem; line-height: 1.55; }
.footer-inner a { text-underline-offset: .2em; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .91rem; }

@media (max-width: 960px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planner-layout { gap: 14px; }
  .planner-controls > .panel { padding: 15px; }
}

@media (max-width: 760px) {
  .planner-layout { grid-template-columns: minmax(0, 1fr); }
  .planner-controls > .panel { padding: 20px; }
  .hero-inner { min-height: 460px; }
  .hero { background-position: center, center, 62% center; }
  .footer-inner { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 111px; }
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 3px 10px;
    align-items: center;
    padding-top: 9px;
  }
  .main-nav { grid-area: 2 / 1 / auto / -1; gap: clamp(14px, 6vw, 32px); }
  .main-nav a { min-height: 41px; }
  .main-nav a[aria-current]::after { inset-block-end: 0; }
  .header-cta { grid-area: 1 / 2; }
  .hero {
    background-image:
      linear-gradient(90deg, rgb(11 28 20 / .72) 0%, rgb(11 28 20 / .56) 54%, rgb(11 28 20 / .2) 100%),
      linear-gradient(0deg, rgb(10 28 19 / .32), transparent 75%),
      url("./hero.webp");
  }
  .hero-inner { min-height: 410px; padding-block: 59px; }
  .hero h1 { font-size: clamp(2.02rem, 10.3vw, 3.45rem); }
  .feature-grid, .catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card { padding: 19px; }
  .feature-link { min-height: 25px; }
  .catalog-grid { gap: 9px; }
  .catalog-card { padding: 15px; }
}

@media (max-width: 375px) {
  .hero .actions { align-items: stretch; flex-direction: column; }
  .activity-row { grid-template-columns: minmax(0, 1fr); }
  .activity-select { margin-inline-start: 34px; }
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .site-header, .site-footer, .planner-controls, .kit-share, .share-dialog, .skip-link { display: none !important; }
  body { background: #fff; }
  .wrap { width: 100%; }
  .page { min-height: auto; padding-block: 0; }
  .planner-layout { display: block; }
  .result-total { background: #fff; color: var(--pine); border: 1px solid var(--line); }
  .result-total p, .result-total small, .result-total strong, .result-total .eyebrow { color: var(--pine); }
  .kit-item { break-inside: avoid; }
}

.home-topics .section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 16px;
}
.feature-card { grid-template-columns: auto minmax(0, 1fr) auto; }
.feature-link, .catalog-chevron {
  flex: none;
  display: grid;
  place-items: center;
  grid-column: auto;
  align-self: center;
  color: #506a40;
}
.catalog-chevron { margin-inline-start: auto; }
.catalog-chevron .icon { width: 1rem; height: 1rem; }
.catalog-grid > .empty-state { grid-column: 1 / -1; }
.results-count { margin: 0 0 12px; font-size: .9rem; }
a.filter-chip { text-decoration: none; }

.breadcrumb {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 23px;
  color: var(--muted);
  font-size: .91rem;
}
.breadcrumb a { font-weight: 700; text-underline-offset: .2em; }
.article .page-heading .catalog-icon { width: 50px; height: 50px; margin-bottom: 12px; }
.article .page-heading .catalog-icon svg { width: 1.52rem; height: 1.52rem; }
.article > .notice { margin-top: 24px; }
.article-recommendation { padding: clamp(16px, 3vw, 23px); }
.article-recommendation h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
.article-recommendation strong { display: inline-block; margin-bottom: 8px; }
.article-recommendation p { margin-bottom: .65rem; }
.article .variant-featured { border-color: #8ba967; background: #f3f8e8; }
.variant-featured .kit-tag { margin-bottom: 9px; background: var(--lime); border-color: transparent; }
.article-section .filter-row { margin-block: 13px 0; }
.criteria-list { color: var(--pine); }

.activity-copy > .catalog-icon { width: 29px; height: 29px; border-radius: 6px; }
.activity-copy > .catalog-icon svg { width: 1rem; height: 1rem; }
.activity-copy label { cursor: pointer; font-weight: 720; }
.result-jump { justify-self: start; }
.planner-page > .notice { margin-bottom: 18px; }
.planner-results > h2 { margin-bottom: 0; }
.kit-empty .feature-icon { margin: 0 auto 13px; }
.result-total > strong {
  font: 770 clamp(1.75rem, 4vw, 3rem)/1.12 var(--heading);
  letter-spacing: -.046em;
}
.result-total > span { color: #e4eee0; font-size: .94rem; }
.kit-disclaimer { margin: -5px 0 0; font-size: .88rem; line-height: 1.5; }
.kit-group > h3 {
  margin: 0;
  padding: 15px clamp(14px, 2.4vw, 24px) 7px;
  background: #f1f4ee;
  font-size: 1.23rem;
}
.kit-group > p {
  margin: 0;
  padding: 0 clamp(14px, 2.4vw, 24px) 13px;
  background: #f1f4ee;
  font-size: .91rem;
}
.kit-group[data-level="essential"] > h3,
.kit-group[data-level="essential"] > p { background: #edf4de; }
.kit-group[data-level="special"] > h3,
.kit-group[data-level="special"] > p { background: #edf1ef; }
.kit-item-head h4 { flex: 1 1 10rem; margin: 0; }
.kit-item-head h4 a { color: var(--pine); overflow-wrap: anywhere; }
.kit-item p strong, .kit-item p b { color: var(--pine); }
.kit-item .kit-decision {
  padding-inline-start: .7rem;
  border-inline-start: 2px solid #b3c58f;
}
.kit-group[data-level="rent"] > :is(h3, p),
.kit-group[data-level="later"] > :is(h3, p) { background: #edf1ef; }

.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--pine);
}
.icon-button:hover { background: var(--soft); }
.share-label { display: block; margin-bottom: 5px; font-size: .91rem; font-weight: 700; }
.share-qr { width: min(100%, 210px); margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.share-qr svg { display: block; width: 100%; height: auto; }
#copy-status { margin: 9px 0; font-size: .9rem; }

.footer-brand { margin-bottom: 12px; }
.footer-inner > div:first-child { flex: 1 0 220px; }
.footer-note { flex: 0 1 630px; }
.footer-note strong { display: block; margin-bottom: 5px; }
.footer-note p { margin-bottom: .55rem; }
.footer-note p:last-child { margin-bottom: 0; }

@media (max-width: 540px) {
  .catalog-chevron, .feature-link { display: none; }
  .feature-card { grid-template-columns: auto minmax(0, 1fr); }
  .activity-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .activity-select { width: calc(100% - 37px); max-width: none; margin-inline-start: 37px; }
}

@media print {
  .result-jump { display: none !important; }
  .result-total > span { color: var(--pine); }
}
