/* Shared Tissue Lab header for education, setups and program pages (namespaced .tlh-*). */
.tlh { position: sticky; top: 0; z-index: 60; background: color-mix(in oklab, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; font-family: var(--font-body); }
.tlh.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.tlh-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; height: 4rem; display: flex; align-items: center; gap: .75rem; }
.tlh-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); margin-right: auto; min-width: 0; }
.tlh-brand img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.tlh-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.tlh-brand-text strong { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--text); }
.tlh-brand-text small { font-size: .75rem; color: var(--text-faint); }
.tlh-nav, .tlh .tlh-cta { display: none; }
.tlh-menu-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--card); color: var(--text); cursor: pointer; flex: none; }
.tlh .theme-toggle { position: static; box-shadow: none; flex: none; width: 2.5rem; height: 2.5rem; }
.tlh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tlh-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: .5rem 1rem; border-radius: 999px; background: var(--accent); color: #fff8ea; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.tlh-cta:hover { filter: brightness(.9); }
.tlh-mobile { position: fixed; inset: 0; z-index: 90; background: var(--bg); padding: 1rem 1.25rem calc(2rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; overflow-y: auto; }
.tlh-mobile[hidden] { display: none; }
.tlh-mobile-head { display: flex; justify-content: space-between; align-items: center; min-height: 3.5rem; margin-bottom: 1rem; }
.tlh-mobile nav { display: flex; flex-direction: column; flex: 1; }
.tlh-mobile nav a { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; text-decoration: none; color: var(--text); padding: .55rem 0; border-bottom: 1px solid var(--border); min-height: 48px; display: flex; align-items: center; }
.tlh-mobile nav a[aria-current="page"] { color: var(--accent); }
[data-theme="dark"] .tlh-mobile nav a[aria-current="page"] { color: #e7a3a5; }
.tlh-group { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 1.5rem 0 .25rem; }
[data-theme="dark"] .tlh-group { color: #d98b8e; }
.tlh-cta-block { width: 100%; min-height: 48px; margin-top: 1.5rem; }
body.tlh-locked { overflow: hidden; }
@media (min-width: 1100px) {
  .tlh-inner { height: 4.5rem; gap: 1rem; }
  .tlh-menu-btn { display: none; }
  .tlh-nav { display: flex; gap: 1.4rem; align-items: center; }
  .tlh .tlh-cta { display: inline-flex; }
  .tlh-nav > a, .tlh-drop-btn { text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--text-muted); padding: .5rem 0; border: 0; border-bottom: 2px solid transparent; background: none; font-family: inherit; cursor: pointer; transition: color .2s, border-color .2s; }
  .tlh-nav > a:hover, .tlh-drop-btn:hover, .tlh-drop-btn[aria-expanded="true"], .tlh-nav > a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
  .tlh-drop { position: relative; }
  .tlh-drop-btn { display: inline-flex; align-items: center; gap: .35rem; }
  .tlh-drop-btn svg { transition: transform .2s; }
  .tlh-drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
  .tlh-drop-menu { position: absolute; top: 100%; left: -1rem; z-index: 95; min-width: 17rem; padding: .5rem; margin-top: .5rem; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.18); display: grid; gap: 2px; }
  .tlh-drop-menu[hidden] { display: none; }
  .tlh-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.75rem; height: .75rem; }
  .tlh-drop-menu a { display: grid; gap: 2px; padding: .65rem .75rem; border-radius: 8px; color: var(--text); font-weight: 600; font-size: .9rem; text-decoration: none; }
  .tlh-drop-menu a small { font-weight: 400; font-size: .75rem; color: var(--text-muted); }
  .tlh-drop-menu a:hover, .tlh-drop-menu a:focus-visible { background: color-mix(in oklab, var(--accent) 10%, var(--card)); }
}
@media (hover: hover) and (min-width: 1100px) { .tlh-drop:hover .tlh-drop-menu[hidden] { display: grid; } }
/* Pages under the shared header no longer need room for the old floating theme button. */
.tlh ~ .page, .tlh ~ main.page { padding-top: var(--space-8, 2rem); }
