#products .section-heading { margin-bottom: 2rem; }
.catalog-controls {
  display: grid; grid-template-columns: minmax(15rem, 21rem) 1fr;
  align-items: end; gap: 1rem 1.5rem;
}
.catalog-search-label { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; font-weight: 600; }
.catalog-controls .filters { margin: 0; }
.catalog-controls .filters button { font-size: .85rem; min-height: 2.85rem; }
@media (max-width: 1000px) {
  .catalog-controls { grid-template-columns: 1fr; }
}
#products [hidden] { display: none !important; }
#product-grid { scroll-margin-top: 2rem; }
#catalog-search {
  width: 100%; max-width: 40rem; min-height: 2.85rem;
  padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 0;
  color: var(--ink); background: white; font: inherit;
}
#catalog-search:focus { border-color: var(--green); }
#catalog-search:disabled { opacity: .6; }
#catalog-status { margin: .65rem 0 1.3rem; font-size: .9rem; color: var(--muted); }
#catalog-pager { display: flex; gap: .65rem; justify-content: flex-end; margin: 1.5rem 0 0; }
#catalog-pager button {
  border: 1px solid var(--line); padding: .5rem 1rem; min-height: 2.7rem; background: white;
}
#catalog-pager button:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
#catalog-pager button:disabled { opacity: .4; cursor: default; }
.catalog-text-card {
  display: flex; flex-direction: column; align-self: stretch;
  border: 1px solid var(--line); padding: clamp(1rem,2vw,1.6rem);
}
.catalog-text-card .product-open { text-align: left; flex: 1; display: flex; flex-direction: column; }
.catalog-family-label { display: inline-block; font-size: .75rem; letter-spacing: .09em; color: var(--green); }
.catalog-text-card .product-description { width: 100%; padding-top: .75rem; }
.catalog-card-summary { margin: 1rem 0; font-size: .91rem; line-height: 1.55; }
.catalog-text-card .project-add-link { align-self: flex-start; }
.catalog-dialog-text { display: block; min-height: auto; max-width: 45rem; margin: auto; }
.catalog-dialog-text .dialog-copy { padding: clamp(2.5rem,5vw,4.25rem) clamp(1.25rem,5vw,4rem); }
.dialog-copy .catalog-dialog-subtitle { font-weight: 700; color: var(--green); }
@media (max-width: 800px) {
  #catalog-pager { justify-content: space-between; }
  #catalog-pager button { flex: 1; }
}

.catalog-profile-match { color: var(--green); text-decoration: underline; text-underline-offset: 0.16em; }

#window-style-filter {
  margin-top: 1.1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
#window-style-label { margin: 0 0 .55rem; font-size: 1rem; }
#window-style-options { display: flex; flex-wrap: wrap; gap: .35rem; }
#window-style-options button {
  padding: .45rem .85rem; min-height: 2.75rem; border: 1px solid var(--line);
  border-radius: .25rem; background: white; color: var(--green); font-size: .95rem;
}
#window-style-options button[aria-pressed="true"] { color: white; background: var(--green); border-color: var(--green); }
.section-preview-link {
  display: block; width: fit-content; min-height: 2.75rem; margin-top: .35rem; padding: .4rem 0;
  border: 0; background: transparent; color: var(--green); font-size: .95rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: .2em;
}
.frame-sections { margin: 1.25rem 0; }
.frame-sections h3 { margin-bottom: .6rem; font-size: 1.15rem; }
.frame-sections figure { margin: .5rem 0 0; }
.section-picker { display: grid; gap: .25rem; color: var(--muted); font-size: .875rem; }
.section-picker select { min-width: 0; max-width: 100%; padding: .4rem; color: var(--ink); font: inherit; }
.frame-sections figure > a {
  display: grid; place-items: center; border: 1px solid var(--line); padding: .6rem;
  background: white; cursor: zoom-in;
}
.frame-sections figure img { width: 100%; height: auto; max-height: 22rem; object-fit: contain; }
.frame-sections figcaption {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: .35rem .85rem; padding: .5rem 0; color: var(--muted); font-size: .875rem;
}
.frame-sections figcaption a { color: var(--green); text-decoration: underline; text-underline-offset: .15em; }
