/*
 * Humanscale catalog template overrides
 *
 * This file only restyles the generic catalog shell layout and typography.
 * It does not alter runtime viewer behavior.
 */

:root {
  --page-bg: #f6f2ea;
  --panel-bg: rgba(255, 253, 249, 0.94);
  --panel-border: rgba(34, 31, 27, 0.12);
  --text-main: #16130f;
  --text-subtle: #665f56;
  --link: #16130f;
  --link-hover: #5a6f7d;
  --backdrop: rgba(17, 14, 12, 0.72);
  --modal-bg: #fbf8f2;
  --modal-border: rgba(34, 31, 27, 0.12);
  --modal-shadow: 0 28px 48px rgba(0, 0, 0, 0.18), 0 56px 140px rgba(0, 0, 0, 0.22);
  --modal-shadow-dragging: 0 20px 34px rgba(0, 0, 0, 0.14), 0 40px 96px rgba(0, 0, 0, 0.18);
  --radius: 18px;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #faf7f1 0%, #f3ede3 100%);
  color: var(--text-main);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html[data-template-theme="humanscale"] body {
  padding: 24px 0 56px;
}

html[data-template-theme="humanscale"] body .shell {
  max-width: 1120px;
  gap: 18px;
  padding: 0 24px;
}

html[data-template-theme="humanscale"] body .intro {
  gap: 10px;
}

html[data-template-theme="humanscale"] body .eyebrow,
html[data-template-theme="humanscale"] body .panel-version,
html[data-template-theme="humanscale"] body .modal-version {
  letter-spacing: 0.16em;
  color: var(--text-subtle);
}

html[data-template-theme="humanscale"] body h1 {
  max-width: 10ch;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
}

html[data-template-theme="humanscale"] body .lede {
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.6;
}

html[data-template-theme="humanscale"] body .panel {
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 18px 36px rgba(24, 20, 16, 0.05);
}

html[data-template-theme="humanscale"] body .panel-title {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

html[data-template-theme="humanscale"] body .configurator-list {
  gap: 0;
  border-top: 1px solid rgba(22, 19, 15, 0.08);
}

html[data-template-theme="humanscale"] body .configurator-item {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(22, 19, 15, 0.08);
  border-radius: 0;
}

html[data-template-theme="humanscale"] body .configurator-name {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
}

html[data-template-theme="humanscale"] body .configurator-meta {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[data-template-theme="humanscale"] body .configurator-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(22, 19, 15, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-main);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

html[data-template-theme="humanscale"] body .configurator-link::after {
  content: '→';
  font-size: 13px;
}

html[data-template-theme="humanscale"] body .configurator-link:hover,
html[data-template-theme="humanscale"] body .configurator-link:focus-visible {
  background: var(--text-main);
  color: #f8f5ef;
  text-decoration: none;
}

html[data-template-theme="humanscale"] body .modal-header {
  background: linear-gradient(180deg, rgba(251, 248, 242, 0.98), rgba(240, 234, 224, 0.94));
}

@media (max-width: 860px) {
  html[data-template-theme="humanscale"] body .shell {
    padding: 0 18px;
  }

  html[data-template-theme="humanscale"] body .configurator-item {
    grid-template-columns: 1fr;
  }
}
