/* ==========================================================================
   Conference Resources page.

   This page is deliberately dark-themed, matching the supplied design
   reference, rather than inheriting the light theme the rest of the
   registrant-facing site uses. It is scoped to its own stylesheet (loaded
   only by resources.html) so none of these overrides can leak into the
   registration wizard, My Account, or the admin console.
   ========================================================================== */

:root {
  --res-bg: #0a1c33;
  --res-bg-deep: #071528;
  --res-card: #10263f;
  --res-card-hover: #16304d;
  --res-border: #1e3a5c;
  --res-gold: #d4a72c;
  --res-text: #eef4fb;
  --res-muted: #93a9c4;
}

body.resources-page {
  background: var(--res-bg-deep);
  color: var(--res-text);
  margin: 0;
}

/* --- Top navigation ------------------------------------------------------ */
.res-topbar {
  background: var(--res-bg);
  border-bottom: 1px solid var(--res-border);
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 86px;
  flex-wrap: wrap;
}
.res-brand { display: flex; align-items: center; gap: 13px; }
.res-brand-mark { width: 38px; height: 38px; color: var(--res-gold); flex-shrink: 0; }
.res-brand-mark svg { width: 100%; height: 100%; }
.res-brand-text { font-weight: 700; font-size: 1.28rem; letter-spacing: .2px; line-height: 1.2; }
.res-brand-text small { display: block; font-weight: 400; font-size: .74rem; color: var(--res-muted); margin-top: 2px; }
.res-topbar-divider { width: 1px; height: 42px; background: rgba(255, 255, 255, .16); }
.res-topbar .res-logo { height: 52px; width: auto; display: block; flex-shrink: 0; }
.res-topbar .res-logo.partner { height: 40px; background: #fff; border-radius: 6px; padding: 4px 8px; }

.res-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.res-nav a {
  color: var(--res-text);
  text-decoration: none;
  font-size: .95rem;
  padding: 30px 0;
  position: relative;
  white-space: nowrap;
}
.res-nav a:hover { color: var(--res-gold); }
.res-nav a.active { color: var(--res-gold); }
.res-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  height: 3px;
  background: var(--res-gold);
  border-radius: 2px;
}

.res-topbar-actions { display: flex; align-items: center; gap: 18px; }
.res-bell {
  position: relative;
  width: 40px; height: 40px;
  border: none; background: transparent;
  color: var(--res-text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.res-bell:hover { background: rgba(255, 255, 255, .07); }
.res-bell svg { width: 23px; height: 23px; }
.res-bell-dot {
  position: absolute; top: 6px; right: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--res-gold);
  border: 2px solid var(--res-bg);
}
.res-account { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--res-text); }
.res-account-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .35);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.res-account-avatar svg { width: 23px; height: 23px; }
.res-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.res-account-name { font-size: .95rem; font-weight: 600; line-height: 1.25; }
.res-account-name small { display: block; font-weight: 400; font-size: .78rem; color: var(--res-muted); }
.res-account-chevron { width: 15px; height: 15px; color: var(--res-muted); }

/* --- Hero ---------------------------------------------------------------- */
.res-hero {
  position: relative;
  background: linear-gradient(115deg, #0b2444 0%, #16375c 60%, #1b4470 100%);
  padding: 58px 40px 66px;
  overflow: hidden;
}
.res-hero-inner { max-width: 1500px; margin: 0 auto; position: relative; z-index: 2; }
.res-hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  color: var(--res-gold);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 14px;
}
.res-hero-eyebrow::after { content: ''; width: 46px; height: 2px; background: var(--res-gold); }
.res-hero h1 { margin: 0 0 16px; font-size: 3.15rem; line-height: 1.06; font-weight: 700; letter-spacing: -.5px; }
.res-hero p { margin: 0; max-width: 620px; color: #cfdcec; font-size: 1.03rem; line-height: 1.6; }
.res-hero-graphic { position: absolute; right: 40px; top: 0; height: 100%; width: 520px; opacity: .85; z-index: 1; pointer-events: none; }

/* --- Page body ----------------------------------------------------------- */
.res-body { max-width: 1500px; margin: 0 auto; padding: 30px 40px 60px; }

/* --- Toolbar (search + category select + filter pills) ------------------- */
.res-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.res-search { position: relative; flex: 1 1 340px; max-width: 430px; }
.res-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--res-muted); }
.res-search input {
  width: 100%;
  background: var(--res-card);
  border: 1px solid var(--res-border);
  border-radius: 9px;
  color: var(--res-text);
  padding: 14px 16px 14px 46px;
  font-size: .93rem;
  font-family: inherit;
}
.res-search input::placeholder { color: var(--res-muted); }
.res-search input:focus { outline: none; border-color: var(--res-gold); }

.res-select {
  background: var(--res-card);
  border: 1px solid var(--res-border);
  border-radius: 9px;
  color: var(--res-text);
  padding: 14px 16px;
  font-size: .93rem;
  font-family: inherit;
  min-width: 190px;
  cursor: pointer;
}
.res-select:focus { outline: none; border-color: var(--res-gold); }
.res-select option { background: var(--res-card); color: var(--res-text); }

.res-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.res-pill {
  background: transparent;
  border: none;
  color: var(--res-text);
  font-family: inherit;
  font-size: .92rem;
  padding: 10px 19px;
  border-radius: 8px;
  cursor: pointer;
}
.res-pill:hover { background: rgba(255, 255, 255, .07); }
.res-pill.active { background: var(--res-gold); color: #11223a; font-weight: 700; }

/* --- Layout: card grid + featured sidebar -------------------------------- */
.res-layout { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 26px; align-items: start; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }

.res-card {
  background: var(--res-card);
  border: 1px solid var(--res-border);
  border-radius: 12px;
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
}
.res-card:hover { background: var(--res-card-hover); border-color: #2a507d; }
.res-card-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(212, 167, 44, .1);
  border: 1px solid rgba(212, 167, 44, .3);
  color: var(--res-gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.res-card-icon svg { width: 25px; height: 25px; }
.res-card h3 { margin: 0 0 9px; font-size: 1.11rem; font-weight: 700; line-height: 1.3; }
.res-card p { margin: 0 0 20px; color: var(--res-muted); font-size: .89rem; line-height: 1.55; flex-grow: 1; }
.res-card-count { display: block; margin-top: 7px; font-size: .78rem; color: var(--res-gold); font-weight: 600; }
.res-card-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%;
  background: transparent;
  border: 1px solid #2f5580;
  border-radius: 8px;
  color: var(--res-text);
  font-family: inherit;
  font-size: .92rem;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
}
.res-card-btn:hover { border-color: var(--res-gold); color: var(--res-gold); background: rgba(212, 167, 44, .07); }
.res-card-btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* --- Featured Downloads sidebar ------------------------------------------ */
.res-sidebar {
  background: var(--res-card);
  border: 1px solid var(--res-border);
  border-radius: 12px;
  padding: 26px;
  position: sticky;
  top: 22px;
}
.res-sidebar-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.res-sidebar-star {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(212, 167, 44, .13);
  border: 1px solid rgba(212, 167, 44, .34);
  color: var(--res-gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.res-sidebar-star svg { width: 23px; height: 23px; }
.res-sidebar-head h2 { margin: 0 0 6px; font-size: 1.24rem; font-weight: 700; }
.res-sidebar-head p { margin: 0; color: var(--res-muted); font-size: .87rem; line-height: 1.5; }
.res-sidebar-rule { height: 1px; background: var(--res-border); margin-bottom: 18px; }

.res-featured-item {
  display: flex; align-items: center; gap: 15px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--res-border);
  border-radius: 10px;
  padding: 15px 17px;
  margin-bottom: 13px;
  text-decoration: none;
  color: inherit;
}
.res-featured-item:hover { border-color: var(--res-gold); background: rgba(212, 167, 44, .07); }
.res-file-icon {
  width: 46px; height: 46px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.res-file-icon svg { width: 22px; height: 22px; }
.res-file-icon.pdf { background: rgba(214, 69, 69, .16); color: #e46a6a; }
.res-file-icon.doc { background: rgba(56, 161, 105, .16); color: #4fbd82; }
.res-file-icon.slide { background: rgba(214, 138, 44, .16); color: #e0a04a; }
.res-file-icon.media { background: rgba(59, 130, 246, .16); color: #6aa8f5; }
.res-file-icon.link { background: rgba(147, 169, 196, .16); color: #a9bfd8; }
.res-featured-meta { flex-grow: 1; min-width: 0; }
.res-featured-title { font-size: .95rem; font-weight: 700; line-height: 1.32; margin-bottom: 4px; }
.res-featured-sub { font-size: .78rem; color: var(--res-muted); }
.res-featured-dl {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid #2f5580;
  color: var(--res-text);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.res-featured-item:hover .res-featured-dl { border-color: var(--res-gold); color: var(--res-gold); }
.res-featured-dl svg { width: 17px; height: 17px; }

.res-view-all {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  margin-top: 20px;
  background: var(--res-gold);
  border: none;
  border-radius: 9px;
  color: #11223a;
  font-family: inherit;
  font-size: .97rem;
  font-weight: 700;
  padding: 15px 20px;
  cursor: pointer;
  text-decoration: none;
}
.res-view-all:hover { background: #e0b53d; }
.res-view-all svg { width: 17px; height: 17px; }

/* --- Resource item list (shown when a category is opened) ----------------- */
.res-listing-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.res-listing-head h2 { margin: 0; font-size: 1.45rem; font-weight: 700; }
.res-listing-head p { margin: 5px 0 0; color: var(--res-muted); font-size: .9rem; }
.res-back {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; border: 1px solid #2f5580; border-radius: 8px;
  color: var(--res-text); font-family: inherit; font-size: .9rem; font-weight: 600;
  padding: 11px 18px; cursor: pointer;
}
.res-back:hover { border-color: var(--res-gold); color: var(--res-gold); }
.res-back svg { width: 16px; height: 16px; }
.res-list { display: flex; flex-direction: column; gap: 13px; }
.res-list .res-featured-item { margin-bottom: 0; }
.res-empty {
  background: var(--res-card);
  border: 1px dashed var(--res-border);
  border-radius: 12px;
  padding: 40px 26px;
  text-align: center;
  color: var(--res-muted);
  font-size: .93rem;
}

/* --- "Can't find what you need?" help bar -------------------------------- */
.res-help {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: var(--res-card);
  border: 1px solid var(--res-border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 26px;
}
.res-help-icon {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(212, 167, 44, .34);
  background: rgba(212, 167, 44, .1);
  color: var(--res-gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.res-help-icon svg { width: 23px; height: 23px; }
.res-help-text { flex-grow: 1; min-width: 220px; }
.res-help-text b { display: block; font-size: 1.06rem; margin-bottom: 4px; }
.res-help-text span { color: var(--res-muted); font-size: .89rem; }
.res-help-actions { display: flex; gap: 13px; flex-wrap: wrap; }
.res-help-btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: transparent;
  border: 1px solid #2f5580;
  border-radius: 9px;
  color: var(--res-text);
  font-size: .93rem; font-weight: 600;
  padding: 14px 24px;
  text-decoration: none;
  white-space: nowrap;
}
.res-help-btn:hover { border-color: var(--res-gold); color: var(--res-gold); }
.res-help-btn svg { width: 17px; height: 17px; }

.res-footer { text-align: center; color: var(--res-muted); font-size: .84rem; padding: 26px 20px 40px; }
.res-footer .footer-powered-by { margin-top: 18px; }
.res-footer .footer-powered-by img { height: 60px; width: auto; opacity: 1; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .res-layout { grid-template-columns: 1fr; }
  .res-sidebar { position: static; }
  .res-hero-graphic { display: none; }
}
@media (max-width: 820px) {
  .res-topbar { padding: 14px 20px; min-height: 0; }
  .res-nav { width: 100%; margin-left: 0; gap: 18px; overflow-x: auto; }
  .res-nav a { padding: 10px 0; }
  .res-nav a.active::after { bottom: 4px; }
  .res-topbar-actions { margin-left: auto; }
  .res-hero { padding: 38px 20px 44px; }
  .res-hero h1 { font-size: 2.1rem; }
  .res-body { padding: 24px 20px 40px; }
  .res-account-name { display: none; }
}
