/* ABA Accreditation Hub — shared styles for /accreditation/* pages.
 * Variables come from /css/style.css. Mirrors the SI LCME Hub patterns. */

/* Sub-nav under the site header */
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.subnav a { padding: 13px 14px; font-size: 14.5px; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--navy); }
.subnav a.active { color: var(--navy); font-weight: 700; border-bottom-color: var(--gold); }

/* Hero ask box */
.hero-ask { display: flex; gap: 10px; max-width: 640px; margin: 0 0 18px; }
.hero-ask input { flex: 1; padding: 13px 16px; font-size: 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.97); color: var(--navy); }
.hero-ask input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.hero-ask .btn { padding: 13px 22px; font-size: 16px; border-radius: 10px; white-space: nowrap; }
@media (max-width: 640px) {
  .hero-ask { flex-direction: column; }
  .hero-ask .btn { width: 100%; }
}

/* Stats strip */
.stats-strip { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: flex; flex-wrap: wrap; gap: 8px 36px; padding-top: 22px; padding-bottom: 22px; }
.stat-num { font-size: 30px; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label { font-size: 14px; color: var(--muted); }

/* Try chips */
.try-chip { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(185,138,47,.55); color: #f4ead2; font-size: 15px; background: rgba(185,138,47,.08); text-decoration: none; }
.try-chip:hover { background: rgba(185,138,47,.22); color: #fff; }
.try-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.try-elsie { background: var(--navy-dark); }
.try-elsie h2 { color: #fff; }
.try-elsie .kicker { color: var(--gold); }
.try-elsie p { color: #c9d2e4 !important; }

/* Email signup band */
.sticky-band { background: var(--gold-light); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sticky-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.sticky-inner h2 { margin: 0 0 8px; }
.sticky-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.sticky-form input[type="email"] { font: inherit; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--line); flex: 1 1 240px; max-width: 340px; }
.sticky-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sticky-msg { margin-top: 14px; font-weight: 600; }

/* Updates / meetings items */
.update-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; position: relative; transition: border-color .15s, box-shadow .15s; }
.update-item:hover { border-color: var(--gold); box-shadow: 0 2px 10px rgba(20,41,74,.08); }
.update-item h3 { margin: 0 0 6px; font-size: 20px; }
.update-item p { margin: 6px 0; font-size: 15.5px; color: var(--muted); }
.update-item p:last-child { margin-bottom: 0; }
.date-badge { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--navy); background: var(--gold-light); padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; }
.date-badge.soon { background: var(--navy); color: #fff; }
.tag { display: inline-block; font-size: 12.5px; border: 1px solid var(--line); border-radius: 4px; padding: 1px 8px; color: var(--muted); margin-right: 6px; }
.card-source { margin: 10px 0 0; font-size: 12.5px; color: var(--gold); font-weight: 600; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); cursor: pointer; }
.card-link:focus-visible::after { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Primer */
.primer-h { margin: 36px 0 10px; font-size: 23px; }
.primer-list { max-width: 760px; }
.primer-list li { margin-bottom: 10px; }
.primer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 16px; }
.primer-card { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: inherit; }
.primer-card:hover { border-color: var(--gold); }
.primer-card strong { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.primer-card span { font-size: 14.5px; color: var(--muted); }
.primer-steps { max-width: 760px; }
.primer-steps li { margin-bottom: 12px; }
.primer-terms { max-width: 880px; }
.primer-terms > div { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.primer-terms dt { font-weight: 700; color: var(--navy); }
.primer-terms dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .primer-terms > div { grid-template-columns: 1fr; gap: 4px; } }

/* FAQs */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: #fff; }
.faq-item summary { cursor: pointer; padding: 15px 20px; font-weight: 700; color: var(--navy); font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 22px; font-weight: 400; flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { background: #faf8f2; }
.faq-item > p { padding: 0 20px 18px; margin: 0; color: var(--muted); max-width: 760px; }
.faq-item > ul, .faq-item > ol { margin: 0; padding: 2px 20px 18px 40px; color: var(--muted); }
.faq-item li { margin-bottom: 6px; }

/* Standards reference */
.search-wrap { position: relative; display: flex; margin-bottom: 14px; }
.search-wrap input { flex: 1; min-width: 220px; padding: 12px 16px; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pop-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.pop-chips button { padding: 6px 13px; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); cursor: pointer; }
.pop-chips button:hover { border-color: var(--gold); }
.std-chapter-h { margin: 30px 0 14px; font-size: 21px; }
.std-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.std-head { padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.std-head:hover { background: #f6f4ee; }
.std-head h3 { margin: 0; font-size: 19px; }
.std-num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.std-block .std-body { display: none; }
.std-block.open .std-body { display: block; padding: 0 22px 18px; }
.std-block.open .std-head { border-bottom: 1px solid var(--line); }
.std-stmt { color: var(--muted); font-size: 15.5px; }
.std-status { display: inline-block; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--gold-light); border-radius: 6px; padding: 4px 10px; margin: 12px 0 0; }
.std-int, .std-ev { font-size: 15px; color: var(--ink); }
.std-ev { margin-top: 8px; }
.no-results { padding: 30px; text-align: center; color: var(--muted); }
mark { background: #fdf3d8; padding: 0 2px; border-radius: 2px; }

/* Misc */
.btn-text { background: none; border: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 10px 4px; }
.btn-text:hover { color: var(--navy); }
.disclaimer { margin-top: 26px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.ask-wide { max-width: 1180px; }
