.catalog-tools {
  display: grid;
  gap: .65rem;
  margin: 0 0 1.4rem;
}

.catalog-tool {
  background: #f5f7ef;
  border: 1px solid #d5e0d1;
  border-radius: 16px;
  color: #234537;
}

.catalog-tool summary {
  padding: .8rem 1rem;
  font-weight: 750;
  cursor: pointer;
  border-radius: inherit;
}

.catalog-tool summary::marker { color: #537653; }
.catalog-tool-body { padding: .15rem 1rem 1rem; }
.catalog-tool-note { margin: .85rem 0 .45rem; color: #415e4c; font-size: .88rem; }

.guide-number-label,
.guide-quantity {
  display: grid;
  gap: .25rem;
  font-weight: 700;
  font-size: .85rem;
}

.guide-number-label input,
.guide-quantity input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .5rem .65rem;
  border-radius: 9px;
  border: 1px solid #acbfac;
  background: #fffefa;
  color: inherit;
  font: inherit;
}

.guide-quantity { width: min(100%, 12rem); margin: .8rem 0; }

#catalogPriceGroups {
  max-height: 28rem;
  overflow: auto;
  padding-right: .25rem;
  scrollbar-gutter: stable;
}

#catalogPriceGroups h3 { font: inherit; font-weight: 800; margin: .9rem 0 .25rem; }
.catalog-tool-list { margin: 0; padding: 0; list-style: none; }

.catalog-tool-list > li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  column-gap: .85rem;
  padding: .55rem 0;
  border-bottom: 1px solid #d5e0d1;
  overflow-wrap: anywhere;
}

.catalog-tool-list small { display: block; color: #415e4c; }
.catalog-tool-action { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; font-size: .88rem; }
.catalog-tool-action span { font-weight: 750; }
.catalog-tool-action a { color: #28523a; text-decoration: underline; padding-block: .35rem; }

.hero-cta { flex-wrap: wrap; }
.guide-text-button {
  border: 0;
  border-bottom: 1px solid #b6c7b5;
  padding-inline: 0;
  background: transparent;
  cursor: pointer;
}

.catalog-guide-trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  width: 100%;
  padding: .8rem 1rem;
  text-align: left;
  border: 1px solid #c9d9c6;
  border-radius: 16px;
  background: var(--mint);
  color: var(--ink);
  cursor: pointer;
}
.catalog-guide-trigger:hover { background: #dbe8d6; }
.catalog-guide-trigger strong, .catalog-guide-trigger small { display: block; }
.catalog-guide-trigger strong { font-size: .92rem; }
.catalog-guide-trigger small { color: var(--ink-soft); margin-top: .18rem; font-size: .76rem; }
.guide-trigger-mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.15rem;
}
.guide-trigger-arrow { font-size: 1.2rem; }
body:has(.guide-dialog[open]) { overflow: hidden; }

.guide-dialog {
  position: fixed;
  inset: 0;
  width: min(650px, calc(100% - 1.5rem));
  max-width: none;
  max-height: min(87dvh, 830px);
  margin: auto;
  padding: clamp(1rem, 3.6vw, 2rem);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: auto;
  overscroll-behavior: contain;
}
.guide-dialog::backdrop { background: #112c1f84; backdrop-filter: blur(3px); }
.guide-dialog [hidden], [data-guide-open][hidden] { display: none; }
.guide-header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.guide-header h2 { font: 800 .78rem/1.35 var(--sans); }
.guide-header .icon-button { flex: 0 0 44px; height: 44px; }
.guide-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
  padding: 0;
  margin: .85rem 0 1.45rem;
  list-style: none;
}
.guide-progress li {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: 0 0 .45rem;
  border-bottom: 2px solid var(--stroke);
  font-size: clamp(.65rem, 2.9vw, .77rem);
  color: var(--ink-soft);
}
.guide-progress li > span {
  display: grid;
  place-items: center;
  flex: 0 0 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--mint2);
  font-weight: 800;
}
.guide-progress .guide-complete { border-color: var(--sage); }
.guide-progress li[aria-current] { border-color: var(--ink); font-weight: 800; }
.guide-progress li[aria-current] > span { background: var(--ink); color: var(--paper); }
.guide-dialog fieldset { margin: 0; padding: 0; min-width: 0; border: 0; }
.guide-dialog h3 { font: 400 clamp(1.5rem, 5vw, 2.35rem)/1.22 var(--serif); margin: 0 0 1rem; }
.guide-dialog h3 em { color: #537653; }
.guide-copy { margin: .75rem 0 1rem; color: var(--ink-soft); font-size: .8rem; line-height: 1.6; }

.guide-occasion-options, .guide-budget-options, .guide-guest-options { display: grid; gap: .5rem; }
.guide-budget-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-budget-options label:first-child { grid-column: 1 / -1; }
.guide-guest-options { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: .9rem; }
.guide-occasion-options label, .guide-budget-options label { position: relative; display: block; cursor: pointer; }
.guide-occasion-options input, .guide-budget-options input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.guide-occasion-options label > span, .guide-budget-options label > span, .guide-guest-options button {
  display: flex;
  gap: .75rem;
  align-items: center;
  min-height: 44px;
  padding: .65rem .7rem;
  border: 1px solid #cad9c7;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: 750 .8rem/1.4 var(--sans);
}
.guide-occasion-options small { display: block; color: var(--ink-soft); font-size: .74rem; font-weight: 500; }
.guide-occasion-options i { font: 400 1.2rem/1 var(--serif); width: 1.5rem; text-align: center; }
.guide-occasion-options input:checked + span, .guide-budget-options input:checked + span,
.guide-guest-options button[aria-pressed=true], .guide-format-tabs button[aria-pressed=true] {
  border-color: #537653;
  background: var(--mint);
  box-shadow: inset 0 0 0 1px #537653;
}
.guide-occasion-options input:focus-visible + span, .guide-budget-options input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.guide-guest-options button { justify-content: center; padding-inline: .25rem; text-align: center; }
.guide-number-label { width: min(100%, 16rem); margin-block: .9rem; }
.guide-number-label input { font-size: 1rem; }
.guide-step-actions, .guide-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  border-top: 1px solid var(--stroke);
  padding-top: 1rem;
  margin-top: 1rem;
}
.guide-step-actions .button { margin-left: auto; }
.guide-step-actions .button:disabled { opacity: .48; cursor: default; }
.guide-summary, .guide-format-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .85rem; }
.guide-summary button, .guide-format-tabs button {
  min-height: 36px;
  padding: .4rem .65rem;
  border: 1px solid #cad9c7;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 750 .73rem/1.35 var(--sans);
}
.guide-summary button { text-decoration: underline dotted; text-underline-offset: .26em; }
.guide-notice { margin: .65rem 0; padding: .8rem; border-radius: 10px; background: #efe8d8; font-size: .8rem; }
.guide-recommendations { display: grid; list-style: none; padding: 0; margin: 0; gap: .65rem; }
.guide-recommendations li {
  display: grid;
  grid-template-columns: clamp(65px, 20vw, 96px) minmax(0, 1fr);
  gap: .45rem .8rem;
  align-items: center;
  padding: .7rem;
  background: var(--paper);
  border: 1px solid var(--stroke);
  border-radius: 14px;
}
.guide-recommendations img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: var(--beige); }
.guide-recommendations h4 { margin: .18rem 0; font: 400 clamp(.95rem, 3.5vw, 1.22rem)/1.35 var(--serif); overflow-wrap: anywhere; }
.guide-card-category, .guide-card-size, .guide-over-budget { font-size: .73rem; color: var(--ink-soft); }
.guide-over-budget { display: block; color: #7d461e; }
.guide-recommendations .button { grid-column: 1 / -1; justify-content: center; padding: .65rem .55rem; min-height: 42px; white-space: normal; }

@media (max-width: 420px) {
  .guide-progress li { flex-direction: column; align-items: flex-start; }
  .guide-progress li > span { flex-basis: auto; width: 1.45rem; }
  .guide-guest-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
