/* ── SEEN. UNIFIED NAV ── */
.seen-nav {
  position: sticky; top: 0; z-index: 200;
  background: #2b1640;
  padding: 0 3rem;
  display: flex; justify-content: space-between; align-items: center;
  height: 64px;
  border-bottom: 1px solid rgba(201,146,42,0.2);
  font-family: 'DM Sans', sans-serif;
}
.seen-nav .nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 600;
  color: #e8b96a; text-decoration: none;
  letter-spacing: 0.02em; flex-shrink: 0;
}
.seen-nav .nav-links {
  display: flex; gap: 2.4rem;
  list-style: none; align-items: center;
}
.seen-nav .nav-links a {
  color: rgba(240,234,248,0.65); text-decoration: none;
  font-size: 0.78rem; letter-spacing: 0.13em;
  text-transform: uppercase; font-weight: 400;
  transition: color 0.3s; white-space: nowrap;
}
.seen-nav .nav-links a:hover,
.seen-nav .nav-links a.active { color: #e8b96a; }
.seen-nav .nav-right {
  display: flex; align-items: center;
  gap: 2.4rem; flex-shrink: 0;
  margin-left: auto;
}
.seen-nav .nav-cta {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #2b1640; background: #e8b96a;
  padding: 8px 22px; border-radius: 20px;
  text-decoration: none; transition: background 0.2s;
  white-space: nowrap;
}
.seen-nav .nav-cta-wrap {
  flex-shrink: 0; padding-left: 1.2rem;
  border-left: 1px solid rgba(201,146,42,0.2);
}
.seen-nav .nav-cta:hover { background: #c9922a; color: #fff; }

/* ── TEAL SUBNAV ── */
.seen-subnav {
  position: sticky; top: 64px; z-index: 190;
  background: #2b1640;
  padding: 0 3rem;
  display: flex; align-items: stretch;
  min-height: 38px;
  border-bottom: 1px solid rgba(201,146,42,0.15);
  flex-wrap: wrap;
  overflow-x: visible;
}
.seen-subnav a {
  color: #4a8b88; text-decoration: none;
  font-size: 0.63rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  padding: 0 1.3rem;
  display: flex; align-items: center;
  border-right: 1px solid rgba(201,146,42,0.12);
  border-bottom: 1px solid rgba(201,146,42,0.15);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.seen-subnav a:first-child { border-left: 1px solid rgba(201,146,42,0.12); }
.seen-subnav a:hover { color: #e8b96a; background: rgba(201,146,42,0.06); }
.seen-subnav a.active { color: #e8b96a; }

/* ── CIRCLE PHOTO PLACEHOLDER ── */
.seen-circle {
  border-radius: 50%; background: #2b1640;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.seen-circle .circle-initials {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 300;
  color: rgba(232,185,106,0.3);
}
.seen-circle .circle-hint {
  position: absolute; bottom: 14%; left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-family: 'DM Sans', sans-serif;
  color: rgba(232,185,106,0.4); white-space: nowrap; text-align: center;
}

/* ── GLOSSARY SLIDE PANEL ── */
.glossary-panel-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(17,13,22,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
.glossary-panel-overlay.open { opacity: 1; pointer-events: auto; }

.glossary-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 501;
  width: 440px; max-width: 94vw;
  background: #faf6f0;
  box-shadow: -4px 0 40px rgba(17,13,22,0.22);
  transform: translateX(102%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.glossary-panel.open { transform: translateX(0); }

.glossary-panel-header {
  background: #e8b96a; padding: 1.4rem 1.6rem 1.2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(43,22,64,0.15);
}
.glossary-panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 600;
  color: #2b1640; letter-spacing: 0.02em;
}
.glossary-panel-close {
  background: none; border: none;
  color: rgba(43,22,64,0.55); cursor: pointer;
  font-size: 1.1rem; padding: 0.2rem 0.5rem;
  transition: color 0.2s; line-height: 1;
  font-family: 'DM Sans', sans-serif;
}
.glossary-panel-close:hover { color: #2b1640; }

.glossary-panel-search {
  padding: 0.9rem 1.4rem; flex-shrink: 0;
  border-bottom: 1px solid #e8e2da;
  position: relative;
}
.glossary-panel-search input {
  width: 100%; padding: 0.6rem 1rem 0.6rem 2.4rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem;
  border: 1px solid #e0d9d0; border-radius: 4px;
  outline: none; background: #fff; color: #2a1f14;
  transition: border-color 0.2s;
}
.glossary-panel-search input:focus { border-color: #4a8b88; }
.glossary-panel-search .panel-search-icon {
  position: absolute; left: 2.1rem; top: 50%;
  transform: translateY(-50%); color: #9a8878; pointer-events: none;
}

.glossary-panel-body {
  flex: 1; overflow-y: auto;
  padding: 0.5rem 1.4rem 2rem;
  scroll-behavior: smooth;
}
.glossary-panel-entry {
  padding: 1.1rem 0;
  border-bottom: 1px solid #e8e2da;
  scroll-margin-top: 1rem;
}
.glossary-panel-entry:last-child { border-bottom: none; }

.panel-term-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 600;
  color: #2b1640; margin-bottom: 0.15rem;
}
.panel-term-clinical {
  font-size: 0.67rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: #4a8b88;
  font-weight: 500; margin-bottom: 0.6rem;
}
.panel-tier { margin-bottom: 0.5rem; }
.panel-tier-text {
  font-size: 0.84rem; color: #3a2a4e; line-height: 1.75;
}
.glossary-panel-empty {
  text-align: center; padding: 3rem 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; color: #9a8878; font-size: 1rem;
}
.glossary-panel-full-link {
  display: block; width: 100%;
  text-align: center;
  margin-top: 1.5rem; padding: 0.7rem;
  font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #4a8b88;
  background: none; border: none; border-top: 1px solid #e8e2da;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: color 0.2s;
}
.glossary-panel-full-link:hover { color: #2b1640; }

/* ── CLICKABLE GLOSSARY TERMS in body text ── */
.glossary-link {
  color: #4a8b88; cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(74,139,136,0.35);
  text-underline-offset: 2px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.glossary-link:hover {
  color: #2b1640;
  text-decoration-color: #4a8b88;
}

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .seen-nav { padding: 0 1.4rem; }
  .seen-nav .nav-links { gap: 1.4rem; }
  .seen-nav .nav-links a { font-size: 0.7rem; letter-spacing: 0.09em; }
  .seen-subnav { padding: 0 1rem; }
}
@media (max-width: 640px) {
  .seen-nav .nav-links { display: none; }
  .glossary-panel { width: 100%; max-width: 100%; }
}
/* ── INLINE CLINICAL REFERENCE TRIGGER ── */
/* Small italic gold lowercase 'i', visually echoes .cite-ref but indicates
   inline definition tooltip rather than citation anchor. */
.clin-ref {
  display: inline-block;
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
  color: var(--gold);
  font-weight: 500;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  margin-left: 0.15em;
  padding: 0 0.2em;
  cursor: help;
  user-select: none;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.clin-ref:hover,
.clin-ref:focus {
  color: var(--aubergine);
  background: rgba(201, 146, 42, 0.12);
  outline: none;
}
.clin-ref[aria-expanded="true"] {
  color: var(--aubergine);
  background: rgba(201, 146, 42, 0.18);
}

/* ── TOOLTIP PANEL ── */
.clin-tooltip {
  position: fixed;
  z-index: 10000;  /* above glossary panel (1000) and any modal */
  width: clamp(280px, 80vw, 380px);
  max-height: 60vh;
  overflow-y: auto;
  background: var(--cream, #faf6f0);
  color: var(--text, #2a1f14);
  border: 1px solid var(--cream-dark, #e4dace);
  border-top: 3px solid var(--gold, #c9922a);
  padding: 1rem 1.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  line-height: 1.65;
  box-shadow: 0 8px 32px rgba(43, 22, 64, 0.18);
  pointer-events: auto;

  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}
.clin-tooltip.open {
  opacity: 1;
  transform: translateY(0);
}

.clin-tooltip-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--aubergine, #2b1640);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.clin-tooltip-body {
  font-size: 0.875rem;
  color: var(--text-mid, #5a4a3a);
  line-height: 1.65;
}
.clin-tooltip-body p + p { margin-top: 0.6rem; }

@media (prefers-reduced-motion: reduce) {
  .clin-tooltip {
    transition: opacity 0.12s linear;
    transform: none;
  }
  .clin-tooltip.open {
    transform: none;
  }
}
