/* =============================================
   RESOURCES PAGE — resources.css
   ============================================= */

/* ── Page watermark ── */
.page-watermark {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-watermark::before {
  content: 'Under Construction · Coming Soon · Under Construction · Coming Soon · Under Construction · Coming Soon';
  position: absolute;
  white-space: nowrap;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(180, 30, 30, 0.13);
  transform: rotate(-35deg);
  width: 200%;
  text-align: center;
  top: 38%;
  left: -50%;
  line-height: 4rem;
  /* repeat the text down the page via text-shadow */
  text-shadow:
    0 -200px 0 rgba(180,30,30,0.13),
    0 -100px 0 rgba(180,30,30,0.13),
    0  100px 0 rgba(180,30,30,0.13),
    0  200px 0 rgba(180,30,30,0.13),
    0  300px 0 rgba(180,30,30,0.13),
    0  400px 0 rgba(180,30,30,0.13);
}
.page-watermark-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  border: 4px solid rgba(180, 30, 30, 0.18);
  border-radius: 8px;
  padding: 0.55rem 1.8rem;
  text-align: center;
  pointer-events: none;
}
.page-watermark-stamp span {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(180, 30, 30, 0.22);
  line-height: 1.4;
}

.res-hero {
  background: #0d1520;
  background-image:
    radial-gradient(ellipse 60% 60% at 20% 50%, rgba(227,28,33,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 40%, rgba(1,112,185,0.14) 0%, transparent 60%);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  color: #fff;
}
.res-hero-inner { max-width: 600px; margin: 0 auto; }
.res-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; padding: 0.35rem 1rem; border-radius: 30px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.res-eyebrow i { color: var(--red); }
.res-hero h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
.res-accent { color: var(--red); }
.res-hero p { font-size: 1rem; color: rgba(255,255,255,0.7); }

/* ── Two-column layout ── */
.res-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
  align-items: start;
}

/* ── Sidebar ── */
.res-sidebar { position: sticky; top: 80px; }
.res-sidenav { display: flex; flex-direction: column; gap: 0.25rem; }
.res-sidenav-link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 1rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; color: #6b7280;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.res-sidenav-link i { font-size: 0.85rem; }
.res-sidenav-link:hover { background: #f3f4f6; color: var(--dark); }
.res-sidenav-link.active { background: #fff0f0; color: var(--red); }

/* ── Section group ── */
.res-group { margin-bottom: 3.5rem; scroll-margin-top: 90px; }
.res-group-title {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 1.15rem; font-weight: 700; color: var(--dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f3f4f6;
}
.res-group-title i { color: var(--red); font-size: 1rem; }

/* ── List ── */
.res-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }

.res-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.18s ease;
}
.res-item:first-child { border-top: 1px solid #f3f4f6; }
.res-item:hover { background: #f9fafb; }

.res-item-left { display: flex; align-items: flex-start; gap: 1rem; flex: 1; min-width: 0; }

/* Product tag pill */
.res-tag {
  flex-shrink: 0; margin-top: 0.15rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 0.2rem 0.65rem; border-radius: 20px;
  white-space: nowrap;
}
.res-tag-red  { background: #fff0f0; color: var(--red); }
.res-tag-blue { background: #eff6ff; color: var(--blue); }

.res-item-info h4 {
  font-size: 0.93rem; font-weight: 700; color: var(--dark);
  margin: 0 0 0.25rem; line-height: 1.4;
}
.res-item-info p {
  font-size: 0.83rem; color: #6b7280; margin: 0 0 0.4rem; line-height: 1.55;
}
.res-meta {
  font-size: 0.75rem; color: #9ca3af;
  display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap;
}
.res-meta i { font-size: 0.7rem; }

.res-dl-link {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 600; color: var(--dark);
  background: #f3f4f6; border-radius: 7px;
  padding: 0.45rem 0.9rem; text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.res-dl-link:hover { background: var(--red); color: #fff; }

/* Per-product download button colours */
.res-dl-flow  { color: var(--red);  }
.res-dl-flow:hover  { background: var(--red);  color: #fff; }

.res-dl-dms   { color: var(--blue); }
.res-dl-dms:hover   { background: var(--blue); color: #fff; }

.res-dl-tract { color: #0e9f6e; }
.res-dl-tract:hover { background: #0e9f6e; color: #fff; }

.res-dl-test  { color: #7c3aed; }
.res-dl-test:hover  { background: #7c3aed; color: #fff; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .res-layout { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2rem; }
  .res-sidebar { position: static; }
  .res-sidenav { flex-direction: row; }
  .res-item { flex-direction: column; align-items: flex-start; }
  .res-dl-link { align-self: flex-start; }
}
