/* ============================================================
   mapping.css — Concept Mapping sub-site styles
   Depends on: /Assets/css/shared.css (do NOT redefine nav/footer here)
   Accent color: Gold #C47A00
   ============================================================ */

/* ---- Page wrapper ---------------------------------------- */
.bt-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.bt-page-content {
  flex: 1;
}

/* Override shared container width to match research page */
.bt-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Hero ------------------------------------------------- */
.mapping-hero {
  background: linear-gradient(135deg, #C47A00 0%, #A36500 60%, #7A4C00 100%);
  color: #fff;
  padding: 2.5rem 0 0;
}
.mapping-hero .bt-container {
  padding-left: calc(1.5rem + 220px + 2rem);
}

@media (max-width: 768px) {
  .mapping-hero .bt-container {
    padding-left: 1.5rem;
  }
}

.mapping-hero-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}
.mapping-hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.mapping-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Pull-quote band inside hero */
.mapping-hero-quote {
  background: rgba(0,0,0,0.18);
  border-left: 3px solid rgba(255,255,255,0.45);
  margin: 1.5rem 0 0;
  padding: 0.85rem 1.25rem;
  border-radius: 0 4px 4px 0;
}
.mapping-hero-quote p {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
  line-height: 1.5;
}

/* Stats strip at bottom of hero */
.mapping-stats {
  background: rgba(0,0,0,0.2);
  margin-top: 2rem;
}
.mapping-stats-inner {
  display: flex;
  gap: 0;
  padding: 0;
}
.mapping-stat {
  flex: 1;
  text-align: center;
  padding: 0.85rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.mapping-stat:last-child { border-right: none; }
.mapping-stat-number {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
}
.mapping-stat-label {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

/* ---- Search strip ---------------------------------------- */
.mapping-search-strip {
  background: #fdf6e3;
  border-bottom: 1px solid #e8d8a0;
  padding: 1rem 0;
}
.mapping-search-container {
  display: flex;
  justify-content: flex-end;
}
.mapping-search-box {
  width: 100%;
  max-width: 420px;
}
.mapping-search-label {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #7A4C00;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.mapping-search-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mapping-search-input {
  flex: 1;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  padding: 7px 12px;
  border: 1.5px solid #d4b060;
  border-radius: 6px;
  background: #fff;
  color: #1a1a2e;
  outline: none;
  transition: border-color 0.15s;
}
.mapping-search-input:focus { border-color: #C47A00; }
.mapping-search-btn {
  background: #C47A00;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}
.mapping-search-btn:hover { background: #A36500; }
.mapping-search-clear {
  background: none;
  border: none;
  font-size: 0.85rem;
  color: #999;
  cursor: pointer;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}
.mapping-search-clear:hover { color: #333; }
.mapping-search-results {
  margin-top: 0.6rem;
  background: #fff;
  border: 1px solid #d4b060;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  max-height: 360px;
  overflow-y: auto;
}
.mapping-search-empty {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
}
.mapping-search-count {
  font-size: 0.8rem;
  color: #7A4C00;
  margin: 0 0 0.5rem;
}
.mapping-search-result-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mapping-search-result-item {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0e4c0;
}
.mapping-search-result-item:last-child { border-bottom: none; }
.mapping-result-section {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #C47A00;
  margin-bottom: 1px;
}
.mapping-result-link {
  font-size: 0.875rem;
  color: #6350B8;
  text-decoration: none;
  line-height: 1.4;
}
.mapping-result-link:hover { text-decoration: underline; color: #432D8F; }
.mapping-search-highlight {
  background: #fff3c4;
  outline: 2px solid #C47A00;
  border-radius: 3px;
  transition: background 0.3s;
}

/* ---- Two-column layout ------------------------------------ */
.mapping-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ---- Sidebar TOC ----------------------------------------- */
.mapping-sidebar {
  position: sticky;
  top: 1.5rem;
  padding-right: 2rem;
}
.mapping-toc-heading {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #C47A00;
  margin-bottom: 0.5rem;
}
.mapping-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid #e8d8a0;
}
.mapping-toc li { margin-bottom: 2px; }
.mapping-toc a {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  color: #555;
  text-decoration: none;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color 0.12s, border-color 0.12s;
  line-height: 1.3;
}
.mapping-toc a:hover {
  color: #C47A00;
  border-left-color: #C47A00;
  text-decoration: none;
}
.mapping-toc-sub {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mapping-toc-sub a {
  padding-left: 24px;
  font-size: 0.77rem;
  color: #777;
}
.mapping-toc-count {
  font-size: 0.7rem;
  background: #f0e4c0;
  color: #7A4C00;
  border-radius: 10px;
  padding: 1px 6px;
  margin-left: 4px;
  font-weight: 600;
}

/* ---- Main content area ------------------------------------ */
.mapping-main { min-width: 0; }

/* ---- Section blocks --------------------------------------- */
.mapping-section {
  margin-bottom: 3rem;
}
.mapping-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #e8d8a0;
  margin-bottom: 1.25rem;
}
.mapping-section-icon {
  width: 32px;
  height: 32px;
  background: #C47A00;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mapping-section-icon svg {
  width: 17px;
  height: 17px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mapping-section-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #7A4C00;
  margin: 0;
}
.mapping-section-count {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  color: #999;
  margin-left: auto;
  white-space: nowrap;
}

/* Sub-sections within a section */
.mapping-subsection {
  margin-bottom: 2rem;
}
.mapping-subsection-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #C47A00;
  margin-bottom: 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #f0e4c0;
}

/* ---- Publication list items ------------------------------ */
.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pub-item {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
}
.pub-bullet {
  width: 6px;
  height: 6px;
  background: #C47A00;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.55em;
}
.pub-text { margin: 0; }
.pub-text a {
  color: #6350B8;
  text-decoration: none;
  font-weight: 500;
}
.pub-text a:hover { text-decoration: underline; color: #432D8F; }
.pub-text em { font-style: italic; }

/* Indented sub-list for special issue articles */
.pub-sublist {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0 1.2rem;
  border-left: 2px solid #e8d8a0;
  padding-left: 0;
}
.pub-sublist .pub-item {
  padding-left: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 0.55rem;
}
.pub-sublist .pub-bullet {
  width: 5px;
  height: 5px;
  background: #d4b060;
  margin-top: 0.6em;
}

/* pub-item containing a sublist: stack vertically */
.pub-item-with-sub {
  flex-direction: column;
  gap: 0;
}
.pub-item-with-sub > .pub-item-header {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  width: 100%;
}
.pub-item-with-sub > .pub-item-header .pub-text {
  margin: 0;
}

/* Prose text blocks (non-list content) */
.mapping-prose {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #333;
  margin-bottom: 1rem;
}
.mapping-prose a {
  color: #6350B8;
  text-decoration: none;
  font-weight: 500;
}
.mapping-prose a:hover { text-decoration: underline; color: #432D8F; }
.mapping-prose strong { font-weight: 600; }

/* Resource-site blocks (Concept Systems, CSRM) */
.mapping-resource-block {
  background: #fffbf0;
  border: 1px solid #e8d8a0;
  border-left: 3px solid #C47A00;
  border-radius: 0 6px 6px 0;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
}
.mapping-resource-block strong a {
  color: #7A4C00;
  font-weight: 600;
  font-size: 0.925rem;
}
.mapping-resource-block strong a:hover { text-decoration: underline; }

/* Statistical references (no links, bibliography style) */
.stats-ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.stats-ref-list li {
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  text-indent: -1.5rem;
  color: #444;
}

/* Back to top */
.back-to-top {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  color: #C47A00;
  text-decoration: none;
  border: 1px solid #d4b060;
  border-radius: 4px;
  padding: 3px 10px;
}
.back-to-top:hover {
  background: #C47A00;
  color: #fff;
  text-decoration: none;
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 820px) {
  .mapping-layout {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .mapping-sidebar {
    display: none;
  }
  .mapping-hero h1 { font-size: 1.6rem; }
  .mapping-stats-inner { flex-wrap: wrap; }
  .mapping-stat { min-width: 33%; border-bottom: 1px solid rgba(255,255,255,0.1); }
}
@media (max-width: 480px) {
  .mapping-hero { padding: 2rem 0 0; }
  .mapping-stat { min-width: 50%; }
}
