/* Add data-juno-public only to public Juno page roots. Adapt hooks to native components. */
#juno-dcf-v6[data-juno-public] {
  --juno-ink: #17191f;
  --juno-copy: #536074;
  --juno-community-blue: #315eeb;
  --juno-analyst-accent: #355f50;
  color-scheme: light;
}
#juno-dcf-v6[data-juno-public] .juno-headline {
  margin: 0;
  font-size: clamp(34px, 5.65vw, 66px);
  font-weight: 550;
  letter-spacing: -.047em;
  line-height: 1.13;
  text-align: center;
  color: var(--juno-ink);
}
#juno-dcf-v6[data-juno-public] .juno-headline-fixed { display: block; }
#juno-dcf-v6[data-juno-public] .juno-headline-rotator {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  color: var(--juno-analyst-accent);
  margin-top: .035em;
  /* All phrases occupy the same grid cell; the longest reserves wrapping height. */
}
#juno-dcf-v6[data-juno-public] [data-juno-phrase] {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  text-wrap: balance;
  pointer-events: none;
}
#juno-dcf-v6[data-juno-public] [data-juno-phrase]:first-child { opacity: 1; }
#juno-dcf-v6[data-juno-public] [data-juno-ticker] { background: #111317; color: #fff; }
#juno-dcf-v6[data-juno-public] [data-juno-change="up"] { color: #51d38a; }
#juno-dcf-v6[data-juno-public] [data-juno-change="down"] { color: #ff7a85; }
#juno-dcf-v6[data-juno-public] [data-juno-change="flat"],
#juno-dcf-v6[data-juno-public] [data-juno-change="unknown"] { color: #c9ced6; }
#juno-dcf-v6[data-juno-public] [data-juno-closing] { text-align: center; }
#juno-dcf-v6[data-juno-public] [data-juno-closing] h2 { margin-bottom: 0; }
#juno-dcf-v6[data-juno-public] [data-juno-closing] [data-juno-closing-cta] { margin-top: 28px; }
#juno-dcf-v6[data-juno-public] [data-juno-research-heading] { margin-bottom: clamp(24px, 4vw, 48px); }
#juno-dcf-v6[data-juno-public] .juno-community-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 940px;
  margin: 0 auto;
  padding: 44px 0;
  border-top: 1px solid #e4e8ee;
  border-bottom: 1px solid #e4e8ee;
}
#juno-dcf-v6[data-juno-public] .juno-community-bridge h2 { color: var(--juno-ink); font-size: 24px; line-height: 1.25; letter-spacing: -.035em; margin: 0 0 9px; }
#juno-dcf-v6[data-juno-public] .juno-community-bridge p { color: var(--juno-copy); font-size: 15px; line-height: 1.6; margin: 0; }
#juno-dcf-v6[data-juno-public] .juno-community-bridge a { flex: none; color: var(--juno-community-blue); text-decoration: none; font-size: 14px; font-weight: 600; padding: 12px 0; }
#juno-dcf-v6[data-juno-public] .juno-community-bridge a:hover { text-decoration: underline; }
@media (max-width: 650px) {
  #juno-dcf-v6[data-juno-public] .juno-community-bridge { display: block; padding: 32px 0; }
  #juno-dcf-v6[data-juno-public] .juno-community-bridge a { display: inline-block; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #juno-dcf-v6[data-juno-public] [data-juno-phrase] { transform: none !important; }
}

/* Native-page adaptations: retain the approved scale and account for the actual scene. */
#juno-dcf-v6[data-juno-public] .juno-headline-fixed{color:var(--juno-ink)}
#juno-dcf-v6[data-juno-public] [data-juno-phrase]{color:inherit}
#juno-dcf-v6[data-juno-public] .juno-headline-rotator{display:grid}
#juno-dcf-v6[data-juno-public] .jn-nav-link[aria-current]{color:var(--juno-ink);font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
#juno-dcf-v6[data-juno-public] .juno-community-bridge{width:calc(100% - 92px)}
#juno-dcf-v6[data-juno-public] [data-juno-research-heading]{max-width:1000px;margin:0 auto 38px}
#juno-dcf-v6[data-juno-public] [data-juno-closing]{padding:64px 24px 80px}
#juno-dcf-v6[data-juno-public] .jp-tape{position:relative;z-index:3;overflow:visible;gap:12px}
#juno-dcf-v6[data-juno-public] .jp-tape-info{flex:none;border:0}
#juno-dcf-v6[data-juno-public] .jp-tape-info summary{display:grid;place-items:center;list-style:none;width:24px;height:24px;padding:0;line-height:1;border:1px solid #777d88;border-radius:50%;color:#dce0e7;font-size:12px;cursor:pointer}
#juno-dcf-v6[data-juno-public] .jp-tape-info summary::-webkit-details-marker{display:none}
#juno-dcf-v6[data-juno-public] .jp-tape-info summary::after{display:none}
#juno-dcf-v6[data-juno-public] .jp-tape-info p{position:absolute;top:calc(100% + 8px);left:16px;width:260px;max-width:calc(100vw - 32px);padding:14px 16px;border:1px solid #dfe4eb;border-radius:9px;background:#fff;color:#394659;font-size:12px;line-height:1.6;box-shadow:0 8px 24px #18203618}
#juno-dcf-v6[data-juno-public] .jp-tape :focus-visible{outline-color:#aac6ff}
#juno-dcf-v6[data-juno-public] .jn-showcase-actions{max-width:586px;margin:16px auto 0;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
#juno-dcf-v6[data-juno-public] .jn-showcase-actions .jn-link{color:var(--juno-community-blue);font-size:12px}
#juno-dcf-v6[data-juno-public] .jn-showcase-actions .jp-button{font-size:12px;min-height:42px;padding:10px 14px}
#juno-dcf-v6[data-juno-public] .jn-showcase-heading{max-width:586px;margin-inline:auto}
@media(max-width:650px){
  #juno-dcf-v6[data-juno-public] .juno-community-bridge{width:calc(100% - 48px)}
  #juno-dcf-v6[data-juno-public] [data-juno-research-heading]{margin-bottom:24px}
  #juno-dcf-v6[data-juno-public] .jp-tape{padding-inline:16px;gap:8px}
}
@media(pointer:coarse){#juno-dcf-v6[data-juno-public] .jp-tape-info summary{width:36px;height:36px}}

/* Analyst-only follow-up. Community keeps its existing hero and top controls. */
#juno-dcf-v6[data-juno-analyst-page] [data-juno-hero]{
  box-sizing:border-box;block-size:auto;
  min-block-size:var(--juno-hero-min-height,100dvh);max-block-size:none;
}
#juno-dcf-v6[data-juno-analyst-page] [data-juno-research]{
  box-sizing:border-box;margin-block-start:0;padding-block-start:48px;display:flow-root;
}
#juno-dcf-v6[data-juno-analyst-page] [data-juno-research]>:first-child{margin-block-start:0}
#juno-dcf-v6[data-juno-analyst-page] .jp-tape{padding-inline:0;gap:0;overflow:hidden}
#juno-dcf-v6[data-juno-analyst-page] .jp-tape-window{min-width:0}
#juno-dcf-v6[data-juno-analyst-page] .jp-tape-source{flex-basis:100%;text-align:center;color:#606774;font-size:11px}
#juno-dcf-v6[data-juno-analyst-page] .jp-motion-control{border:0;background:transparent;color:#606774;font-size:12px;min-height:44px;padding:8px 0;text-decoration:underline;text-underline-offset:3px}
