/* Task #APPS-CATALOG-20261013 | 2026-10-13 | George | Style the native product catalog for the shared DevsOff shell. */
body[data-site-page="app-listings"] { margin: 0; background: #fff; }
.catalog-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.catalog-item[hidden] { display: none; }
.catalog-page {
  box-sizing: border-box;
  width: min(100%, var(--site-shell-frame, 1280px));
  margin-inline: auto;
  padding: 48px var(--site-shell-gutter, 32px) 72px;
  color: #182438;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.catalog-page *,
.catalog-page *::before,
.catalog-page *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.catalog-page a { color: inherit; }

.catalog-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

body[data-site-page="app-listings"] .catalog-page-heading h1 {
  margin: 0;
  color: #172338;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
}

.catalog-page-heading p {
  max-width: 620px;
  margin: 10px 0 0;
  color: #566477;
  font-size: 16px;
}

.catalog-manage-link,
.public-catalog button,
.public-catalog input,
.public-catalog select {
  min-height: 42px;
  border: 1px solid #cbd4df;
  border-radius: 6px;
  background: #fff;
  color: #182438;
  font: inherit;
}

.catalog-manage-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-color: #315c9b;
  color: #244e88 !important;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.catalog-manage-link:hover { background: #f2f6fb; }

.public-catalog { min-width: 0; }

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) repeat(2, minmax(150px, 1fr)) minmax(145px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  padding: 16px 0 18px;
  border-top: 1px solid #dce2e9;
  border-bottom: 1px solid #dce2e9;
}

.catalog-toolbar label {
  display: grid;
  gap: 5px;
  color: #4c5c70;
  font-size: 13px;
  font-weight: 600;
}

.public-catalog input,
.public-catalog select { width: 100%; padding: 8px 10px; font-size: 14px; }
.public-catalog input::placeholder { color: #718095; }

.public-catalog button {
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.public-catalog button[type="submit"] {
  border-color: #244e88;
  background: #244e88;
  color: #fff;
}

.public-catalog button[type="submit"]:hover { background: #183d70; }
.catalog-reset { display: inline-flex; align-items: center; padding-inline: 8px; font-size: 14px; }

.catalog-page :where(a, button, input, select, summary):focus-visible {
  outline: 3px solid #e08a32;
  outline-offset: 3px;
}

.catalog-status,
.catalog-count { margin: 0; color: #566477; font-size: 14px; }
.catalog-status { padding-top: 18px; }
.catalog-count { padding-top: 5px; }

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

.catalog-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce2e9;
  border-radius: 8px;
  background: #fff;
}

.catalog-art {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 14px 12px;
  min-height: 142px;
  align-items: center;
  justify-content: center;
  border-top: 5px solid var(--app-accent, #315c9b);
  background: #f3f5f7;
}

.catalog-monogram {
  order: 1;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--app-accent, #315c9b) 28%, white);
  border-radius: 8px;
  background: #fff;
  color: var(--app-accent, #315c9b);
  font-size: 20px;
  font-weight: 750;
  line-height: 1;
  overflow-wrap: anywhere;
  text-align: center;
}

.catalog-category {
  order: 2;
  align-self: flex-start;
  overflow-wrap: anywhere;
  color: #596779;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.catalog-body { padding: 16px; }
.catalog-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; color: #667487; font-size: 12px; }
.catalog-title { margin: 9px 0 7px; color: #182438; font-size: 20px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.catalog-summary { margin: 0; color: #4f5d70; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.catalog-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.catalog-tags span { max-width: 100%; padding: 3px 7px; border: 1px solid #e0e5eb; border-radius: 4px; color: #596779; font-size: 11px; overflow-wrap: anywhere; }

.catalog-details {
  margin-top: 15px;
  border-top: 1px solid #e2e7ed;
  color: #4f5d70;
  font-size: 13px;
}

.catalog-details > summary { padding: 11px 0 7px; color: #315c9b; font-weight: 650; cursor: pointer; }
.catalog-details > p { margin: 5px 0 12px; line-height: 1.6; overflow-wrap: anywhere; }
.catalog-details dl { display: grid; grid-template-columns: minmax(82px, .7fr) minmax(0, 1.3fr); gap: 6px 12px; margin: 0 0 12px; }
.catalog-details dt { color: #6a7889; }
.catalog-details dd { margin: 0; color: #26364b; overflow-wrap: anywhere; }
.catalog-details a { color: #244e88; text-decoration: underline; text-underline-offset: 2px; }
.catalog-visit { display: inline-flex; align-items: center; min-height: 40px; margin-top: 12px; color: #244e88 !important; font-size: 14px; font-weight: 700; text-decoration: none; }
.catalog-visit:hover { text-decoration: underline; text-underline-offset: 3px; }

.catalog-empty,
.catalog-unavailable {
  padding: 30px 0;
  color: #566477;
  font-size: 15px;
}

.catalog-empty[hidden] { display: none; }

@media (max-width: 1050px) {
  .catalog-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-toolbar button, .catalog-toolbar .catalog-reset { justify-self: start; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .catalog-page { padding: 32px var(--site-shell-gutter, 18px) 48px; }
  .catalog-page-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 24px; }
  body[data-site-page="app-listings"] .catalog-page-heading h1 { font-size: 30px; }
  .catalog-page-heading p { font-size: 15px; }
  .catalog-toolbar { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .catalog-toolbar button, .catalog-toolbar .catalog-reset { justify-self: stretch; justify-content: center; }
  .catalog-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .catalog-art { min-height: 126px; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-page *, .catalog-page *::before, .catalog-page *::after { scroll-behavior: auto; }
}
