/* Teaching hub — additions layered on top of site.css (site.css is shared with ybicu.com; leave it unchanged) */

[id] { scroll-margin-top: 84px; }

/* header: always-visible links, no menu button */
.hub-nav { display: flex; align-items: center; gap: 24px; }
.hub-nav a { font-size: 0.925rem; font-weight: 500; color: var(--ink-2); padding: 6px 0; }
.hub-nav a:hover { color: var(--accent); }
.hub-nav .nav-cta {
  border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 8px 16px; color: var(--accent); font-weight: 550;
}
.hub-nav .nav-cta:hover { background: var(--accent); color: var(--paper); text-decoration: none; }
@media (max-width: 640px) {
  .hub-nav .hide-sm { display: none; }
  .site-header .header-inner { min-height: 60px; gap: 12px; }
  .site-header .brand { font-size: 0.98rem; }
  .site-header .brand span { font-size: 0.63rem; }
  .hub-nav .nav-cta { padding: 7px 12px; font-size: 0.875rem; }
}

/* hero: short enough that a phone shows the title, the promise, and the index at once */
.hub-hero { padding: 44px 0 36px; }
.hub-hero h1 { font-size: clamp(1.8rem, 6.2vw, 2.75rem); margin-bottom: 14px; max-width: 760px; }
.hub-hero .lede { margin-bottom: 22px; max-width: 680px; }
.jump { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a {
  display: inline-block; border: 1px solid var(--rule); border-radius: 100px;
  padding: 8px 15px; font-size: 0.88rem; font-weight: 500; color: var(--ink-2); background: var(--paper);
}
.jump a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.group-head { margin-bottom: 28px; }
.group-head h2 { margin-bottom: 8px; }
.group-head p { color: var(--muted); margin: 0; max-width: 640px; }

.hook { font-style: italic; color: var(--muted) !important; margin-bottom: 10px !important; }
.resource .btn { align-self: flex-start; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card > p:last-of-type { margin-bottom: 22px; }
.resource .facts { margin: 14px 0 20px; }

/* every simulator is a working draft; the pill is quieter than the content tag beside it */
.tag-preview { color: var(--muted); background: transparent; border: 1px solid var(--rule); }

/* one explanation of the pill, in the hero, above the cards */
.preview-note {
  margin: 20px 0 0; max-width: 640px;
  font-size: 0.895rem; line-height: 1.55; color: var(--muted);
}
.preview-note .tag { margin: 0 1px; }

/* the "still being built" line inside a card sits with the body copy, not the button */
.card > p.small { margin-bottom: 22px; }

/* pointer from one group to a simulator listed under another */
.cross-ref {
  margin: 26px 0 0; padding-left: 15px; font-size: 0.92rem; color: var(--muted);
  border-left: 2px solid var(--rule);
}
.cross-ref + .small { margin-top: 18px !important; }

/* about byline */
.byline h2 { margin-bottom: 12px; }
.byline p { color: var(--ink-2); max-width: 680px; }

/* contact */
.narrow { max-width: 720px; }
.btn { white-space: nowrap; }
.contact-note { margin-top: 26px; }

@media (max-width: 640px) {
  section { padding: 48px 0; }
  section.tight { padding: 36px 0; }
  .hub-hero { padding: 28px 0 26px; }
  .wrap { padding: 0 18px; }
  .card, .resource { padding: 24px 20px; }
  .resource h3 { font-size: 1.28rem; }
  .card .btn, .resource .btn { display: block; align-self: stretch; text-align: center; }
  .jump a { padding: 7px 13px; font-size: 0.85rem; }
}

/* ---------- med-sim additions ---------- */

/* header has six links: drop "About" first, then the section links */
@media (max-width: 860px) { .hub-nav .hide-md { display: none; } }
@media (max-width: 760px) { .hub-nav { gap: 18px; } }

/* newly added simulator */
.tag-new { color: var(--paper); background: var(--accent); }

/* not-yet-live simulators: dashed card, amber pill, inert button */
.card-soon { border-style: dashed; }
.band .card-soon { background: transparent; }
.tag-soon { color: #8a5a00; background: #fbf0d9; }
.btn-soon {
  margin-top: auto; align-self: flex-start; cursor: default;
  background: transparent; color: var(--muted); border: 1px dashed var(--rule);
}
.btn-soon:hover { background: transparent; color: var(--muted); border-color: var(--rule); }
.credit { font-size: 0.86rem !important; font-weight: 600; color: var(--muted) !important; }
@media (prefers-color-scheme: dark) {
  .tag-soon { color: #f0c46c; background: #2b2412; }
}

/* about: two people side by side */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.person h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
@media (max-width: 800px) { .people { grid-template-columns: 1fr; gap: 28px; } }

@media (max-width: 640px) {
  .btn-soon { display: block; align-self: stretch; text-align: center; }
}
