:root {
  --bg: #f5f7f9;
  --panel: #ffffff;
  --ink: #18212f;
  --muted: #657083;
  --line: #dfe5ec;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --soft: #e7f3f1;
  --warning: #9a5b00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 750;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0;
}

.section-kicker {
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.item-count {
  min-width: 126px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-weight: 650;
}

.main-layout {
  padding-top: 32px;
  padding-bottom: 56px;
}

.content-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-btn {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 7px 13px;
  font-weight: 650;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.download-menu {
  position: sticky;
  top: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.menu-heading {
  margin-bottom: 12px;
  font-weight: 750;
}

.menu-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-children {
  margin-top: 5px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.menu-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 2px;
}

.menu-toggle,
.menu-toggle-spacer {
  width: 28px;
  height: 32px;
}

.menu-toggle {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .16s ease, background-color .16s ease, color .16s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--soft);
  color: var(--accent-dark);
  outline: none;
}

.menu-toggle[aria-expanded="true"] {
  transform: rotate(90deg);
}

.menu-toggle-spacer {
  display: block;
}

.menu-btn {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 7px 9px;
  text-align: left;
  font-weight: 650;
}

.menu-btn:hover,
.menu-btn:focus-visible,
.menu-btn.active {
  background: var(--soft);
  color: var(--accent-dark);
  outline: none;
}

.menu-btn.level-2 {
  color: var(--muted);
  font-size: .93rem;
}

.status-message {
  margin-bottom: 14px;
  color: var(--muted);
}

.status-message.error {
  color: #9f1239;
}

.products-grid {
  display: grid;
  gap: 22px;
}

.product-panel {
  min-width: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-hero {
  aspect-ratio: 16 / 8;
  background: #eef2f5;
  border-bottom: 1px solid var(--line);
}

.product-hero-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-content {
  padding: 18px;
}

.product-heading {
  max-width: 760px;
  margin-bottom: 16px;
}

.product-heading h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 760;
  letter-spacing: 0;
}

.product-family {
  min-height: 18px;
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.product-description {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.download-card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
}

.download-card .download-action {
  grid-column: 1 / -1;
}

.file-type {
  min-width: 46px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #edf2f7;
  color: #334155;
  font-size: .78rem;
  font-weight: 800;
}

.file-type.pdf {
  background: #fee2e2;
  color: #991b1b;
}

.file-type.ies,
.file-type.ldt {
  background: #e0f2fe;
  color: #075985;
}

.file-type.image {
  background: #dcfce7;
  color: #166534;
}

.download-detail h4 {
  margin: 2px 0 5px;
  font-size: .98rem;
  line-height: 1.3;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.download-detail p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.download-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  padding: 9px 14px;
  text-decoration: none;
  font-weight: 750;
}

.download-action:hover,
.download-action:focus-visible {
  background: var(--accent-dark);
  color: #ffffff;
  outline: none;
}

.download-action.is-loading {
  pointer-events: none;
  opacity: .78;
}

.download-loading[hidden] {
  display: none;
}

.download-loading {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 1060;
  transform: translateX(-50%);
  width: min(calc(100% - 28px), 360px);
}

.download-loading-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(15, 23, 42, .18);
  color: var(--ink);
  font-weight: 750;
}

.download-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #dbe5eb;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: downloadSpin .8s li