.resources-page {
  --res-gold: #e9ad22;
  --res-bright: #ffd266;
  --res-navy: #0a1426;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(233, 173, 34, .12), transparent 42%),
    linear-gradient(180deg, #07060c 0%, var(--res-navy) 28%, #050403 100%);
  color: #f5ebd5;
}

.resources-page a { color: inherit; }

.res-eyebrow {
  margin: 0 0 12px;
  color: var(--res-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.res-crumb {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px max(22px, 6vw) 0;
  color: #8d8168;
  font-size: 12px;
}

.res-crumb a { color: var(--res-gold); font-weight: 700; }

.res-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 84px) max(22px, 6vw) clamp(28px, 5vw, 56px);
}

.res-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(18, 48, 92, .35), transparent 28%),
    radial-gradient(ellipse at 82% 10%, rgba(233, 173, 34, .12), transparent 26%);
}

.res-hero-copy { position: relative; z-index: 1; max-width: 46rem; }

.resources-page h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  line-height: .98;
  letter-spacing: -.03em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff6d2 0%, #ffd266 32%, #e9ad22 58%, #c88914 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.res-hero p {
  margin: 0;
  max-width: 42em;
  color: #c2b8a6;
  font-size: 16px;
  line-height: 1.7;
}

.res-board,
.res-help {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto 28px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(233, 173, 34, .22);
  border-radius: 18px;
  background: rgba(10, 8, 6, .55);
}

.res-library {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.res-library.is-compact {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
}

.res-search {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.res-search span {
  color: var(--res-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.res-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(233, 173, 34, .28);
  border-radius: 12px;
  background: rgba(7, 6, 12, .9);
  color: #fff1c9;
  font: inherit;
}

.res-search input::placeholder { color: #8d8168; }

.res-product-list { display: grid; gap: 12px; }

.res-product-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(233, 173, 34, .22);
  border-radius: 14px;
  background: rgba(7, 6, 12, .9);
  color: #fff1c9;
  text-align: left;
  cursor: pointer;
}

.res-product-card.is-active {
  border-color: var(--res-gold);
  background: rgba(233, 173, 34, .12);
  box-shadow: inset 0 0 0 1px rgba(233, 173, 34, .35);
}

.res-product-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 906 / 370;
  border-radius: 10px;
  background: #fffdf8;
}

.res-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.res-product-placeholder {
  padding: 8px;
  color: #8d8168;
  font-size: 11px;
  text-align: center;
}

.res-product-copy {
  display: grid;
  align-content: start;
  gap: 4px;
}

.res-product-copy strong {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
}

.res-product-copy small {
  color: var(--res-gold);
  font-size: 12px;
  font-weight: 700;
}

.res-product-copy em {
  color: #c2b8a6;
  font-size: 12px;
  font-style: normal;
}

.res-none,
.res-empty p {
  margin: 0;
  color: #c2b8a6;
  line-height: 1.5;
}

.res-empty,
.res-docs {
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(233, 173, 34, .22);
  border-radius: 16px;
  background: rgba(7, 6, 12, .72);
}

.res-empty h2,
.res-docs h2 {
  margin: 0 0 10px;
  color: #fff1c9;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.res-model {
  margin: 0 0 16px;
  color: var(--res-gold);
  font-weight: 700;
}

.res-doc-card {
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid rgba(233, 173, 34, .18);
  border-radius: 14px;
  background: rgba(7, 6, 12, .55);
}

.res-doc-card h3 {
  margin: 0 0 8px;
  color: #fff1c9;
  font-size: 18px;
}

.res-doc-card p { margin: 0 0 6px; color: #c2b8a6; }

.res-preview-hit {
  display: block;
  width: 100%;
  margin: 12px 0 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(233, 173, 34, .2);
  border-radius: 12px;
  background: #fffdf8;
  cursor: zoom-in;
}

.res-preview-hit img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(42vh, 360px);
  object-fit: contain;
}

.res-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.resources-page .res-btn-gold,
.resources-page .res-btn-line,
.resources-page .res-help a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
}

.resources-page .res-btn-gold,
.resources-page .res-help a {
  background: var(--res-gold);
  color: #211404;
}

.resources-page .res-btn-gold:hover,
.resources-page .res-help a:hover {
  background: var(--res-bright);
}

.resources-page .res-btn-line {
  border: 1px solid rgba(233, 173, 34, .55);
  background: transparent;
  color: #ffd266;
}

.resources-page .res-btn-line:hover {
  background: rgba(233, 173, 34, .12);
  color: #fff1c9;
}

.res-product-link { margin-top: 6px; width: fit-content; }

.res-help {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.res-help h2 { margin: 0 0 8px; color: #fff1c9; }
.res-help p { margin: 0; color: #c2b8a6; }
.res-help-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.res-product-card:focus-visible,
.res-search input:focus-visible,
.res-preview-hit:focus-visible,
.resources-page .res-btn-gold:focus-visible,
.resources-page .res-btn-line:focus-visible,
.resources-page .res-help a:focus-visible,
.res-zoom-close:focus-visible {
  outline: 2px solid var(--res-bright);
  outline-offset: 3px;
}

.res-zoom {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(5, 11, 20, .88);
}

.res-zoom-dialog {
  position: relative;
  max-width: min(1200px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 16px;
  border-radius: 16px;
  background: #fffdf8;
}

.res-zoom-dialog img { display: block; width: 100%; height: auto; }

.res-zoom-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #0b1f3a;
  color: #e9ad22;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .res-library,
  .res-library.is-compact { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .res-hero,
  .res-crumb { padding-left: 18px; padding-right: 18px; }
  .res-board,
  .res-help { width: calc(100% - 36px); padding: 16px; }
  .res-library,
  .res-library.is-compact { grid-template-columns: 1fr; }
  .res-product-card { grid-template-columns: 80px minmax(0, 1fr); }
  .res-actions,
  .res-help,
  .res-help-actions { flex-direction: column; align-items: stretch; }
  .resources-page .res-btn-gold,
  .resources-page .res-btn-line,
  .resources-page .res-help a,
  .res-product-link { width: 100%; }
}
