/* ============================================================
   SIBSTOSCRUBS — SECONDARY GUIDE SUPPLEMENTAL STYLES
   Applied on top of /guides/guide-styles.css
   ============================================================ */

/* BREADCRUMB */
.breadcrumb { margin-bottom: 16px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0; }
.breadcrumb li { font-size: 13px; color: rgba(255,255,255,0.7); }
.breadcrumb li + li::before { content: '›'; margin-right: 4px; }
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* NON-TRAD FRIENDLY BADGES */
.nontrad-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.nontrad-high   { background: rgba(27,107,109,0.25); color: #a8e6e7; border: 1px solid rgba(168,230,231,0.4); }
.nontrad-medium { background: rgba(212,165,116,0.25); color: #f5d5a8; border: 1px solid rgba(212,165,116,0.4); }
.nontrad-low    { background: rgba(232,115,90,0.25);  color: #f5c4b8; border: 1px solid rgba(232,115,90,0.4); }

/* SECONDARY HERO — slightly different from article-hero */
.secondary-hero .article-meta { flex-wrap: wrap; gap: 8px; }

/* QUICK STATS BOX (renders as a table-like block) */
.article-body ul:has(li strong:first-child) {
  background: var(--cream-dark, #F5EDE3);
  border-left: 4px solid var(--teal, #1B6B6D);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}

/* PROMPT BLOCK — each prompt inside the secondary prompts section */
.article-body h3 + p, .article-body h3 + p + p {
  /* Prompt context paragraphs — subtle treatment */
}

/* HORIZONTAL RULE — used as prompt separator */
.article-body hr {
  border: none;
  border-top: 1px solid #E0D5CC;
  margin: 32px 0;
}

/* PAA ACCORDION */
.paa-list { margin: 16px 0 24px; }
.paa-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: var(--white, #fff);
  border: 1px solid #E0D5CC;
  border-radius: 8px;
  margin-bottom: 4px;
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal, #2D3436);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.paa-question::after { content: '+'; font-size: 20px; font-weight: 300; color: var(--teal, #1B6B6D); }
.paa-question.open { background: var(--teal-light, #E8F4F4); border-color: var(--teal, #1B6B6D); border-radius: 8px 8px 0 0; margin-bottom: 0; }
.paa-question.open::after { content: '−'; }
.paa-answer { display: none; padding: 16px 20px 20px; background: var(--teal-light, #E8F4F4); border: 1px solid var(--teal, #1B6B6D); border-top: none; border-radius: 0 0 8px 8px; margin-bottom: 4px; }
.paa-answer.open { display: block; }
.paa-answer p { margin: 0; font-size: 15px; color: var(--charcoal, #2D3436); line-height: 1.65; }

/* RELATED CARDS GRID */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 16px 0 24px; }
.related-card { display: block; padding: 20px; background: var(--white, #fff); border: 1px solid #E0D5CC; border-radius: 10px; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.related-card:hover { border-color: var(--teal, #1B6B6D); box-shadow: 0 4px 12px rgba(27,107,109,0.12); }
.related-card-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--teal, #1B6B6D); margin-bottom: 8px; }
.related-card h4 { font-size: 14px; font-weight: 600; color: var(--charcoal, #2D3436); line-height: 1.4; margin: 0; }

/* QUICK STATS CARD */
.quick-stats-card {
  background: var(--cream-dark, #F5EDE3);
  border-left: 4px solid var(--teal, #1B6B6D);
  border-radius: 10px;
  padding: 24px 28px 20px;
  margin: 0 0 36px;
}
.quick-stats-card h2 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--teal, #1B6B6D);
  margin-bottom: 16px;
  font-family: var(--font-body, Inter, sans-serif);
}
/* Bullet-list format (Albany style) */
.quick-stats-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
}
.quick-stats-card li {
  font-size: 0.88rem;
  color: var(--charcoal-light, #636E72);
  line-height: 1.4;
}
.quick-stats-card li strong {
  color: var(--charcoal, #2D3436);
  font-weight: 600;
}
@media (max-width: 560px) { .quick-stats-card ul { grid-template-columns: 1fr; } }

/* Table-format stats → definition list (Stritch / table-based guides) */
.stats-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 28px;
  margin: 0;
}
.stats-dl dt {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal, #2D3436);
  white-space: nowrap;
}
.stats-dl dd {
  font-size: 0.88rem;
  color: var(--charcoal-light, #636E72);
  margin: 0;
}
@media (max-width: 480px) {
  .stats-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .stats-dl dt { margin-top: 10px; }
  .stats-dl dt:first-child { margin-top: 0; }
}

/* Fallback multi-column table */
.md-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 16px 0; }
.md-table th, .md-table td { padding: 8px 12px; border: 1px solid #E0D5CC; text-align: left; }
.md-table th { background: var(--cream-dark, #F5EDE3); font-weight: 600; color: var(--charcoal, #2D3436); }

/* BLOCKQUOTE */
.article-body blockquote { border-left: 3px solid var(--coral, #E8735A); padding: 4px 20px; margin: 20px 0; color: var(--charcoal-light, #636E72); font-style: italic; }

/* CODE */
.article-body code { background: var(--cream-dark, #F5EDE3); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

/* ============================================================
   INDEX PAGE STYLES
   ============================================================ */
.secondaries-index { padding: 60px 0; }
.secondaries-index h1 { font-family: var(--font-heading, 'Playfair Display', Georgia, serif); font-size: clamp(28px, 4vw, 42px); color: var(--charcoal, #2D3436); margin-bottom: 12px; }
.secondaries-index .index-subtitle { font-size: 18px; color: var(--charcoal-light, #636E72); margin-bottom: 40px; max-width: 620px; }

.region-section { margin-bottom: 48px; }
.region-section h2 { font-size: 20px; font-weight: 700; color: var(--teal, #1B6B6D); border-bottom: 2px solid var(--teal-light, #E8F4F4); padding-bottom: 10px; margin-bottom: 20px; }

.school-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.school-card { display: flex; flex-direction: column; padding: 18px 20px; background: var(--white, #fff); border: 1px solid #E0D5CC; border-radius: 10px; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.school-card:hover { border-color: var(--teal, #1B6B6D); box-shadow: 0 4px 12px rgba(27,107,109,0.12); }
.school-card-name { font-size: 14px; font-weight: 600; color: var(--charcoal, #2D3436); line-height: 1.35; margin-bottom: 8px; }
.school-card-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.school-card-state { font-size: 12px; color: var(--charcoal-light, #636E72); }
.school-card-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 12px; }
.badge-high   { background: #E8F4F4; color: var(--teal, #1B6B6D); }
.badge-medium { background: #FFF3E6; color: #B8832A; }
.badge-low    { background: #FFF0EC; color: var(--coral-dark, #D4603F); }

.index-cta-band { background: var(--teal, #1B6B6D); color: #fff; padding: 40px 24px; border-radius: 12px; text-align: center; margin: 48px 0; }
.index-cta-band h2 { font-family: var(--font-heading); font-size: 26px; margin-bottom: 12px; }
.index-cta-band p { font-size: 16px; opacity: 0.9; margin-bottom: 24px; }

@media (max-width: 600px) {
  .school-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
