/* Resources navigation: dock panel body, hub/section cards, breadcrumbs and related strip.
   Reuses the .left-dock / .category-nav-* shell from category-nav.css; only the inner body and
   the page-level pieces are styled here. Kept minimal and on-theme (green accent #729b3b). */

:root {
  --resource-accent: #729b3b;
}

/* ---- Dock panel body --------------------------------------------------- */
/* The shared .category-nav-viewport is overflow:hidden for the category drill-in columns.
   The Resources panel has no drill-in and a long list, so let its viewport scroll. */
#resources-panel .category-nav-viewport {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.resources-nav-body {
  padding: 12px 16px 24px;
}
.resources-nav-group {
  padding: 10px 0;
  border-bottom: 1px solid #eef1f4;
}
.resources-nav-group:last-of-type {
  border-bottom: 0;
}
.resources-nav-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #1f2d3d;
  text-decoration: none;
  margin-bottom: 6px;
}
.resources-nav-group-title:hover {
  color: var(--resource-accent);
}
.resources-nav-group-title i {
  width: 20px;
  text-align: center;
  color: var(--resource-accent);
}
.resources-nav-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 30px;
}
.resources-nav-list li {
  margin: 2px 0;
}
.resources-nav-list a {
  color: #4a5763;
  text-decoration: none;
  font-size: 0.95rem;
}
.resources-nav-list a:hover {
  color: var(--resource-accent);
  text-decoration: underline;
}
.resources-nav-more {
  display: inline-block;
  margin: 4px 0 0 30px;
  font-size: 0.85rem;
  color: var(--resource-accent);
  text-decoration: none;
}
.resources-nav-browse {
  display: block;
  margin-top: 16px;
  font-weight: 600;
  color: var(--resource-accent);
  text-decoration: none;
}

/* ---- Hub + section card grids ----------------------------------------- */
.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.resource-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e9ee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.resource-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  transform: translateY(-2px);
}
.resource-card-thumb {
  aspect-ratio: 16 / 9;
  background: #f1f4f7 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--resource-accent);
  font-size: 2rem;
}
.resource-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.resource-card-title {
  font-weight: 600;
  color: #1f2d3d;
  margin: 0;
  font-size: 1.05rem;
}
.resource-card-meta {
  font-size: 0.8rem;
  color: #8a97a3;
}
.resource-card-excerpt {
  font-size: 0.9rem;
  color: #4a5763;
  margin: 0;
}
.resource-card-count {
  font-size: 0.8rem;
  color: #8a97a3;
}

/* ---- Glossary admin product picker ------------------------------------- */
.glossary-search-results {
  position: absolute;
  z-index: 20;
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #d7dee5;
  border-radius: 6px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.glossary-search-results:empty { display: none; }
.glossary-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid #f0f3f6;
}
.glossary-search-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.glossary-search-item .gs-name { flex: 1 1 auto; }
.glossary-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 38px; padding: 4px 0; }
.glossary-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef4f7;
  border: 1px solid #d7dee5;
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 0.9rem;
}
.glossary-chip .chip-x {
  border: 0; background: transparent; cursor: pointer; color: #8a97a3; font-size: 1.1em; line-height: 1; padding: 0;
}
.glossary-chip .chip-x:hover { color: #c0392b; }

/* ---- Reference index (glossary/locations/people term lists) ------------ */
.reference-index {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 220px;
  column-gap: 28px;
}
.reference-index li {
  margin: 0 0 6px;
  break-inside: avoid;
}
.reference-index a {
  color: #1f2d3d;
  text-decoration: none;
}
.reference-index a:hover {
  color: var(--resource-accent);
  text-decoration: underline;
}

/* ---- Chart archive (year groups) -------------------------------------- */
.resource-archive-year {
  margin-top: 28px;
}
.resource-archive-year > h2 {
  font-size: 1.3rem;
  border-bottom: 2px solid var(--resource-accent);
  padding-bottom: 6px;
  margin-bottom: 16px;
}

/* ---- Breadcrumbs on content pages ------------------------------------- */
.resource-breadcrumbs {
  font-size: 0.85rem;
  color: #8a97a3;
  margin-bottom: 10px;
}
.resource-breadcrumbs a {
  color: var(--resource-accent);
  text-decoration: none;
}
.resource-breadcrumbs a:hover {
  text-decoration: underline;
}
.resource-breadcrumbs .sep {
  margin: 0 6px;
  color: #c3ccd4;
}

/* ---- "More in this section" related strip ----------------------------- */
.resource-related {
  background: #f6f9fb;
  padding: 28px 0;
  margin-top: 32px;
}
.resource-related h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.resource-related-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
