/* ============================================
   ANATOMY PAGES — Precision Clinical Education
   Extends style.css
   Based on conditions.css structure with
   anatomy-specific additions
   ============================================ */

/* ── Back bar ── */
.anatomy-back-bar {
  background-color: #f0f4f8;
  border-bottom: 1px solid #dce8f0;
  padding: 10px 0;
}
.anat-back-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.back-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #1a3c5e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.back-link:hover { color: #f0b429; }

/* ── Hero ── */
.anatomy-hero {
  background-color: #1a3c5e;
  color: #fff;
  padding: 50px 24px 40px;
}
.anatomy-hero h1 { color: #fff; font-size: 2em; margin-bottom: 10px; text-align: center; }
.anatomy-intro {
  color: #d6eaf8;
  font-size: 1.05em;
  max-width: 820px;
  line-height: 1.75;
  margin: 0 auto;
  text-align: center;
}
.gold-line {
  width: 60px;
  height: 3px;
  background-color: #f0b429;
  margin: 0 auto 16px;
}

/* ── Section type badge ── */
.anatomy-badge-wrap {
  text-align: center;
  margin: 6px 0 16px;
}
.anatomy-badge {
  display: inline-block;
  background-color: #f0b429;
  color: #1a3c5e;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 13px;
  border-radius: 3px;
}

/* ── Main content ── */
.anatomy-main { padding: 44px 0 10px; }

.anatomy-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #e8ecef;
}
.anatomy-section:last-child { border-bottom: none; }

.anatomy-section h2 {
  font-size: 1.25em;
  color: #1a3c5e;
  padding-left: 14px;
  border-left: 4px solid #f0b429;
  margin-bottom: 16px;
  line-height: 1.3;
}
.anatomy-section h3 {
  font-size: 1.1em;
  color: #1a3c5e;
  margin-top: 20px;
  margin-bottom: 10px;
}
.anatomy-section h4 {
  font-size: 1em;
  color: #2c3e50;
  margin-top: 16px;
  margin-bottom: 8px;
}
.anatomy-section ul { padding-left: 20px; margin-bottom: 10px; }
.anatomy-section ul li { margin-bottom: 6px; line-height: 1.65; }
.anatomy-section ol { padding-left: 20px; margin-bottom: 10px; }
.anatomy-section ol li { margin-bottom: 6px; line-height: 1.65; }
.anatomy-section p { margin-bottom: 10px; line-height: 1.7; }

/* ── Section variants ── */

/* Standard sections (O/I/A/N, Related Muscles, Muscle Groups, Assessment) */
.section-standard h2 { border-left-color: #f0b429; }

/* Clinical Notes — the single home for clinical wisdom */
.section-clinical {
  background-color: #f0faf5;
  border-radius: 6px;
  padding: 20px 24px 4px;
}
.section-clinical h2 { border-left-color: #2e7d52; }

/* Palpation Guide */
.section-palpation {
  background-color: #fafbfe;
  border-radius: 6px;
  padding: 20px 24px 4px;
}
.section-palpation h2 { border-left-color: #1a3c5e; }

/* Trigger Point Referral */
.section-trp h2 { border-left-color: #c0392b; }

/* Mobilization Techniques (joints) */
.section-mobilization {
  background-color: #faf8f0;
  border-radius: 6px;
  padding: 20px 24px 4px;
}
.section-mobilization h2 { border-left-color: #d4940a; }

/* Assessment */
.section-assessment h2 { border-left-color: #1a3c5e; }

/* Key Takeaways */
.section-takeaways {
  background-color: #eef4fb;
  border: 1px solid #c4d9ef;
  border-radius: 8px;
  padding: 24px 28px 10px;
  border-bottom: none !important;
}
.section-takeaways h2 { border-left-color: #1a3c5e; }
.section-takeaways ul li { font-weight: 500; }

/* ── Trigger Point Image Placeholder ── */
.trp-image-placeholder {
  background-color: #f8f9fa;
  border: 2px dashed #d5d8dc;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin: 16px 0;
}
.trp-image-placeholder .placeholder-text {
  color: #1a3c5e;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.trp-image-placeholder .placeholder-link {
  color: #666;
  font-size: 13px;
  margin: 0;
}
.trp-image-placeholder .placeholder-link a {
  color: #c0392b;
  text-decoration: none;
}
.trp-image-placeholder .placeholder-link a:hover {
  text-decoration: underline;
}

/* ── Blockquotes (clinical notes, technique notes) ── */
.anatomy-section blockquote {
  background-color: #f0f4f8;
  border-left: 4px solid #1a3c5e;
  padding: 12px 18px;
  margin: 12px 0;
  font-style: italic;
  font-size: 0.95em;
  color: #2c3e50;
  border-radius: 0 4px 4px 0;
}

/* ── Tables ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.anatomy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88em;
  margin-top: 8px;
}
.anatomy-table th {
  background-color: #1a3c5e;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.anatomy-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #e8ecef;
  vertical-align: top;
  line-height: 1.55;
}
.anatomy-table tr:nth-child(even) td { background-color: #f8f9fa; }
.anatomy-table tr:hover td { background-color: #f0f5fb; }

/* ── Bottom panel ── */
.anatomy-bottom-panel {
  background-color: #f4f7fa;
  border-top: 2px solid #dce8f0;
  padding: 40px 0 50px;
  margin-top: 20px;
}
.bottom-related { margin-bottom: 32px; }
.bottom-related h3,
.bottom-sources h3 {
  font-size: 1.1em;
  color: #1a3c5e;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid #f0b429;
}
.bottom-related ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}
.bottom-related ul li a {
  display: inline-block;
  background-color: #fff;
  border: 1px solid #c4d9ef;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.88em;
  color: #1a3c5e;
  transition: all 0.15s;
}
.bottom-related ul li a:hover {
  background-color: #1a3c5e;
  color: #fff;
  border-color: #1a3c5e;
}

.bottom-sources { margin-bottom: 32px; }
.bottom-sources ul { padding-left: 18px; }
.bottom-sources ul li { margin-bottom: 6px; font-size: 0.9em; line-height: 1.6; color: #4a5a6a; }

.bottom-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid #dce8f0;
}
.btn-outline-navy {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 10px 22px;
  border-radius: 4px;
  text-transform: uppercase;
  border: 2px solid #1a3c5e;
  color: #1a3c5e;
  background: transparent;
  transition: all 0.2s;
}
.btn-outline-navy:hover {
  background-color: #1a3c5e;
  color: #fff;
}

/* ── List pages (all-muscles.html, all-nerves.html, etc.) ── */
.list-hero {
  background-color: #1a3c5e;
  color: #ffffff;
  padding: 50px 0 40px;
  text-align: center;
}
.list-hero h1 { color: #ffffff; font-size: 2.2em; margin-bottom: 8px; }
.list-hero .gold-line { width: 60px; height: 3px; background: #f0b429; margin: 0 auto 16px; }
.list-hero p { color: #d6eaf8; font-size: 1.05em; }
.list-hero .total-count {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4em;
  font-weight: 700;
  color: #f0b429;
  display: block;
  margin-bottom: 4px;
}

.list-back-bar {
  background-color: #f0f3f4;
  padding: 10px 0;
  border-bottom: 1px solid #d5d8dc;
}
.list-back-row { display: flex; gap: 20px; }
.list-back-row .back-link {
  font-size: 0.9em;
  color: #1a3c5e;
  font-weight: 600;
}

.list-main { padding: 40px 0 60px; }

.list-region { margin-bottom: 36px; }
.list-region h3 {
  font-size: 1.2em;
  border-bottom: 2px solid #f0b429;
  padding-bottom: 6px;
  margin-bottom: 16px;
}
.region-count { color: #999; font-weight: 400; font-size: 0.85em; }

/* Anatomy list — matches condition-list box style */
.anatomy-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.anatomy-list li a {
  display: block;
  padding: 8px 14px;
  background-color: #f8f9fa;
  border: 1px solid #dce8f0;
  border-radius: 4px;
  font-size: 0.88em;
  color: #2c3e50;
  line-height: 1.4;
  transition: all 0.15s;
}
.anatomy-list li a:hover {
  background-color: #1a3c5e;
  color: #fff;
  border-color: #1a3c5e;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .anatomy-hero h1 { font-size: 1.6em; }
  .anatomy-hero { padding: 36px 16px 28px; }
  .anat-back-row { flex-direction: column; gap: 4px; }
  .anatomy-list { grid-template-columns: 1fr 1fr; }
  .bottom-nav { flex-direction: column; }
  .list-hero .total-count { font-size: 2em; }
}
@media (max-width: 480px) {
  .anatomy-list { grid-template-columns: 1fr; }
  .bottom-related ul { flex-direction: column; }
}
