/* Inputs: Static FINCHIP markup and theme tokens.
 * Outputs: protocol-details presentation and responsive states.
 * Role: Preserves the supplied Finch visual system for the independent homepage. */
/* Compact proposal details in the existing Featured Protocol panel. */
.active-info .active-protocol-title { margin-top: 14px; }
.protocol-problem { margin-top: 16px; }
.protocol-problem > strong {
  display: block;
  color: var(--meta-color);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}
.active-info .protocol-problem > p {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.7;
}
.protocol-details { position: relative; margin-left: auto; font-family: var(--font-ui); }
.protocol-details-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 11px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.protocol-details-trigger:hover,
.protocol-details-trigger[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.protocol-details-trigger > span[aria-hidden] { font-size: 14px; font-weight: 500; line-height: 1; }
.protocol-popover {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: min(390px, calc(100vw - 68px));
  max-height: min(440px, 65vh);
  overflow-wrap: anywhere;
  overflow: auto;
  padding: 20px 22px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 42px #2a214022;
}
.protocol-popover[hidden] { display: none; }
.protocol-popover h4 {
  margin: 0 0 16px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}
.protocol-popover-label {
  margin: 0 0 5px;
  color: var(--meta-color);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.protocol-popover > p:not(.protocol-popover-label) {
  margin: 0;
  color: var(--copy-color);
  font-size: 13px;
  line-height: 1.7;
}
.protocol-popover .protocol-status-note {
  margin-top: 15px !important;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
  font-size: 12px !important;
  line-height: 1.65 !important;
}
.protocol-status-note > a { display: inline-block; text-decoration: underline; text-underline-offset: 3px; }
.protocol-checked { display: block; margin-top: 5px; }
@media (max-width: 700px) {
  .protocol-details-trigger { min-height: 36px; padding-inline: 9px; font-size: 10px; }
  .protocol-popover { padding: 17px 18px; }
}
