/* ════════════════════════════════════════════════════════════════
   CLINICAL PROTOCOLS PAGE STYLES (protocols.html)
════════════════════════════════════════════════════════════════ */

/* ── HERO HEADER ── */
.hero-proto {
  position: relative;
  padding: 9rem var(--pad) 5rem;
  background: radial-gradient(circle at 80% 20%, rgba(31, 184, 184, 0.18), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(239, 107, 156, 0.18), transparent 45%),
    var(--midnight);
  border-bottom: 1px solid var(--rule-light);
  overflow: hidden;
}

.hero-proto-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3.5rem;
  align-items: center;
}

.hero-proto-content {
  text-align: left;
}

.tag {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-lt);
  margin-bottom: 1rem;
}

.hero-proto h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero-proto h1 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--teal-lt), var(--pink-lt));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-proto p.lead {
  max-width: 100%;
  margin: 0 0 2.5rem 0;
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  color: var(--mist);
  line-height: 1.7;
}

.ip-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(253, 248, 246, 0.05);
  border: 1px solid rgba(253, 248, 246, 0.15);
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--ivory);
}

/* Hero Photo Styling */
.hero-proto-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-glow-1,
.photo-glow-2 {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(65px);
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

.photo-glow-1 {
  background: rgba(31, 184, 184, 0.35);
  top: -15px;
  right: -15px;
}

.photo-glow-2 {
  background: rgba(239, 107, 156, 0.3);
  bottom: -15px;
  left: -15px;
  animation-delay: -3s;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.hero-photo-card {
  position: relative;
  width: 280px;
  border-radius: 24px;
  padding: 6px;
  background: linear-gradient(135deg, rgba(94, 220, 220, 0.45), rgba(239, 107, 156, 0.45), rgba(212, 175, 55, 0.35));
  box-shadow: 0 20px 45px rgba(10, 22, 32, 0.8), 0 8px 25px rgba(31, 184, 184, 0.12), 0 8px 25px rgba(239, 107, 156, 0.12);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
  overflow: hidden;
  z-index: 1;
}

.hero-photo-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 30px 60px rgba(10, 22, 32, 0.9), 0 12px 35px rgba(31, 184, 184, 0.2), 0 12px 35px rgba(239, 107, 156, 0.2);
}

.photo-wrapper {
  position: relative;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: var(--midnight-2);
}

.founders-img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s;
}

.hero-photo-card:hover .founders-img {
  transform: scale(1.03);
  filter: contrast(1.03) saturate(1.03);
}

.photo-badge {
  position: relative;
  background: rgba(15, 34, 48, 0.95);
  border-top: 1px solid rgba(253, 248, 246, 0.12);
  border-radius: 0 0 18px 18px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.4s, border-color 0.4s;
}

.hero-photo-card:hover .photo-badge {
  background: var(--midnight-2);
  border-color: rgba(94, 220, 220, 0.3);
}

.badge-icon {
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--teal-lt), var(--pink-lt));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.3;
}

.badge-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--teal-lt);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

/* ── STICKY PROTOCOL NAV ── */
.proto-quick-nav {
  position: sticky;
  top: 72px;
  z-index: 900;
  background: rgba(15, 34, 48, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-light);
  padding: 0.8rem var(--pad);
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.proto-quick-nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  background: rgba(253, 248, 246, 0.04);
  border: 1px solid transparent;
  transition: all 0.25s;
}

.proto-quick-nav a:hover {
  color: #fff;
  background: rgba(31, 184, 184, 0.15);
  border-color: var(--teal-lt);
}

/* ── PROTOCOL DETAIL SECTIONS ── */
.sec-proto {
  padding: 6rem var(--pad);
  border-bottom: 1px solid rgba(253, 248, 246, 0.08);
}

.sec-proto:nth-child(even) {
  background: rgba(15, 34, 48, 0.4);
}

.inner {
  max-width: var(--max);
  margin: 0 auto;
}

.proto-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid rgba(253, 248, 246, 0.12);
  padding-bottom: 2rem;
}

.proto-num {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--pink-lt);
  font-style: italic;
  margin-bottom: 0.4rem;
}

.proto-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: #fff;
}

.proto-desc {
  max-width: 600px;
  font-size: 1.1rem;
  color: var(--mist);
}

.proto-grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.proto-content h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  color: #fff;
  margin: 2rem 0 1rem;
}

.proto-content h3:first-child {
  margin-top: 0;
}

.proto-content p {
  color: var(--mist);
  margin-bottom: 1.4rem;
  line-height: 1.75;
}

.proto-list {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.proto-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--mist);
}

.proto-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-lt);
}

.proto-list li strong {
  color: #fff;
}

/* Feature Box / Mnemonic Card */
.proto-box {
  background: var(--midnight-2);
  border: 1px solid rgba(253, 248, 246, 0.12);
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.proto-box h4 {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--teal-lt);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mnemonic-grid {
  display: grid;
  gap: 1rem;
}

.mnemonic-item {
  background: rgba(253, 248, 246, 0.03);
  border: 1px solid rgba(253, 248, 246, 0.08);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.m-letter {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink-lt);
  min-width: 28px;
}

.m-text {
  color: var(--mist);
  font-size: 0.95rem;
}

.m-text strong {
  color: #fff;
  display: block;
  margin-bottom: 0.2rem;
}

/* ── LICENSING CTA ── */
.licensing-sec {
  padding: 7rem var(--pad);
  background: linear-gradient(135deg, rgba(31, 184, 184, 0.12), rgba(239, 107, 156, 0.12)), var(--midnight);
  text-align: center;
  border-top: 1px solid rgba(253, 248, 246, 0.15);
}

.licensing-card {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(15, 34, 48, 0.8);
  border: 1px solid rgba(253, 248, 246, 0.15);
  border-radius: 28px;
  padding: 4rem clamp(2rem, 5vw, 4rem);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.licensing-card h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: #fff;
  margin-bottom: 1.2rem;
}

.licensing-card p {
  color: var(--mist);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

@media(max-width: 1080px) {
  .hero-proto-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }

  .hero-proto-content {
    text-align: center;
  }

  .hero-proto p.lead {
    margin: 0 auto 2.5rem;
  }

  .hero-proto-photo {
    margin: 0 auto;
  }

  .hero-photo-card {
    width: 260px;
    margin: 0 auto;
  }

  .proto-grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media(max-width: 720px) {
  .hero-proto {
    padding: 6.5rem var(--pad) 3rem;
  }

  .hero-proto h1 {
    font-size: clamp(2rem, 7.5vw, 3.2rem);
    line-height: 1.15;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .ip-pill {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.78rem;
  }

  .proto-quick-nav {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding: 0.6rem var(--pad);
    gap: 0.6rem;
    scrollbar-width: none;
  }

  .proto-quick-nav::-webkit-scrollbar {
    display: none;
  }

  .proto-quick-nav a {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 0.4rem 1rem;
  }

  .sec-proto {
    padding: 3.5rem var(--pad);
  }

  .proto-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2.2rem;
    padding-bottom: 1.5rem;
  }

  .proto-title {
    font-size: clamp(1.8rem, 6.5vw, 2.5rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .proto-box {
    padding: 1.5rem 1.2rem;
    border-radius: 16px;
  }

  .mnemonic-item {
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
    padding: 0.8rem 1rem;
  }

  .proto-content div[style*="grid-template-columns"],
  .proto-box div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .licensing-sec {
    padding: 4.5rem var(--pad);
  }

  .licensing-card {
    padding: 2.5rem 1.2rem;
    border-radius: 20px;
  }

  .licensing-card div[style*="display:flex"] {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .licensing-card a {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}
