/* Shared accreditation-hub styles for /accreditation/* (SI Nursing School).
 * Keeps existing chrome (util-bar, brand, nav, footer, nick-widget); the
 * hub adds its own sub-nav and components mirroring the SI LCME Hub. */

/* ---- hub sub-nav ---- */
.acc-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.acc-nav .wrap { display: flex; gap: 4px; flex-wrap: wrap; padding-top: 0; padding-bottom: 0; }
.acc-nav a { display: inline-block; padding: 12px 14px; font-size: 14.5px; color: var(--navy); text-decoration: none; border-bottom: 3px solid transparent; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.acc-nav a:hover { color: var(--gold); }
.acc-nav a.active { border-bottom-color: var(--gold); font-weight: 600; }

/* ---- hero ask box ---- */
.hero-ask { display: flex; gap: 10px; margin: 22px 0 14px; max-width: 640px; }
.hero-ask input { flex: 1; padding: 13px 16px; font-size: 16px; border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; }
.hero-ask button { white-space: nowrap; }
@media (max-width: 560px) { .hero-ask { flex-direction: column; } }

/* ---- stats strip ---- */
.stats-strip { background: var(--navy); color: #fff; padding: 26px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; text-align: center; }
.stat-num { display: block; font-family: Georgia, serif; font-size: 34px; color: var(--gold); }
.stat-label { font-size: 13.5px; color: #c9d2e4; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- try chips ---- */
.try-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.try-chip { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); text-decoration: none; font-size: 14.5px; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.try-chip:hover { border-color: var(--gold); }

/* ---- standards reference ---- */
.search-wrap { position: relative; max-width: 640px; margin: 18px 0 8px; }
.search-wrap input[type="search"] { width: 100%; padding: 13px 16px; font-size: 16px; border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; }
.pop-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.pop-chips button { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: #f8f6ef; color: var(--navy); font-size: 13.5px; cursor: pointer; font-family: inherit; }
.pop-chips button:hover { border-color: var(--gold); }
.std-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 14px 0; }
.std-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; cursor: pointer; }
.std-head h3 { margin: 0; font-size: 19px; }
.std-num { display: inline-block; background: var(--navy); color: #fff; border-radius: 6px; padding: 3px 12px; font-size: 15px; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.std-stmt { padding: 0 22px; color: var(--muted); font-size: 15px; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.std-elements { display: none; padding: 4px 22px 20px; }
.std-block.open .std-elements { display: block; }
.el { border-top: 1px solid #eee9d8; padding: 14px 0; }
.el-id { display: inline-block; background: #f1ead3; color: #6b551f; border-radius: 4px; padding: 2px 9px; font-size: 12.5px; font-weight: 600; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.el-title { font-weight: 600; margin: 8px 0 4px; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.el-text { margin: 0 0 6px; font-size: 15px; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #333; }
.el-evid { margin: 0; font-size: 13.5px; color: var(--muted); font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
mark { background: #ffe9a8; padding: 0 2px; border-radius: 2px; }
.no-results { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); }

/* ---- updates tracker ---- */
.update-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 14px 0; }
.update-item .u-date { font-size: 13px; color: var(--muted); font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.04em; }
.update-item h3 { margin: 6px 0 8px; font-size: 19px; }
.update-item p { margin: 6px 0; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15.5px; }

/* ---- meetings / events ---- */
.event-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 14px 0; display: flex; gap: 18px; align-items: flex-start; }
.event-when { flex: none; width: 110px; text-align: center; background: var(--navy); color: #fff; border-radius: 8px; padding: 10px 6px; }
.event-when .ew-d { font-family: Georgia, serif; font-size: 22px; color: var(--gold); }
.event-when .ew-m { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.event-item h3 { margin: 0 0 6px; font-size: 18px; }
.event-item p { margin: 5px 0; font-size: 15px; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--muted); }

/* ---- email signup ---- */
.sticky-band { background: #f7f4ea; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sticky-inner { padding-top: 34px; padding-bottom: 34px; }
.sticky-form { display: flex; gap: 10px; max-width: 480px; margin-top: 14px; }
.sticky-form input[type="email"] { flex: 1; padding: 12px 14px; font-size: 15.5px; border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; }
.sticky-hp { position: absolute; left: -9999px; }
.sticky-msg { margin-top: 12px; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

/* ---- shared note/callout styles (already inline on some pages; keep) ---- */
.comp-note { background: #fff7e8; border: 1px solid #e3d3a8; border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15.5px; }
.comp-note strong { color: #7a5a1a; }
.read { background: var(--gold-light); border: 1px solid #e3d3a8; border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; }
.read strong { color: #7a5a1a; }
.cite { font-size: 13.5px; color: var(--muted); }

/* ---- FAQ ---- */
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; }
.faq-list summary { padding: 16px 20px; cursor: pointer; font-weight: 600; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.faq-list .faq-a { padding: 0 20px 18px; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15.5px; }

/* ---- glossary / key terms ---- */
.term-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.term { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.term h4 { margin: 0 0 6px; font-size: 16px; }
.term p { margin: 0; font-size: 14.5px; color: var(--muted); font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
@media (max-width: 720px) { .term-grid { grid-template-columns: 1fr; } }

/* ---- dashboard / role ---- */
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 14px 0; }
.dash-card h3 { margin: 0 0 10px; }
.role-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin: 14px 0; }
.role-form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.role-form select, .role-form input[type="text"] { padding: 11px 14px; font-size: 15.5px; border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; min-width: 220px; }
.ke-pill { display: inline-block; background: #eef3f4; border: 1px solid #cfe0e3; color: var(--navy); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; margin: 3px 4px 3px 0; text-decoration: none; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.ke-pill:hover { border-color: var(--gold); }
.selftest-q { border-top: 1px solid #eee9d8; padding: 12px 0; }
.selftest-q p { margin: 6px 0; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.selftest-a { display: none; color: var(--muted); }
.selftest-q.revealed .selftest-a { display: block; }

/* ---- ask page ---- */
.ask-layout { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .ask-layout { grid-template-columns: 1fr; } }
.ask-thread { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-height: 320px; }
.msg { margin: 0 0 16px; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; }
.msg-user { text-align: right; }
.msg-user .bubble { display: inline-block; background: var(--navy); color: #fff; border-radius: 14px 14px 4px 14px; padding: 10px 16px; max-width: 85%; text-align: left; }
.msg-nick .bubble { display: inline-block; background: #f7f4ea; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 16px; max-width: 95%; }
.msg-nick .bubble h4, .msg-nick .bubble h5 { margin: 10px 0 6px; }
.msg-nick .bubble p { margin: 8px 0; }
.msg-nick .bubble ul, .msg-nick .bubble ol { margin: 8px 0; padding-left: 22px; }
.msg-nick .bubble table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 14px; }
.msg-nick .bubble th, .msg-nick .bubble td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.ask-box { display: flex; gap: 10px; margin-top: 14px; }
.ask-box textarea { flex: 1; padding: 12px 14px; font-size: 15.5px; border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; resize: vertical; min-height: 52px; }
.typing { color: var(--muted); font-style: italic; }

@media print {
  .acc-nav, .site-header .nav, .util-bar, .nick-widget, #nick-widget, .sticky-band { display: none !important; }
}
