/* Reef Codex Pulse 1.1.27 — one navigation, two distinct experiences.
 * Load only for Codex public templates, after existing CSS. */
.dr-codex-canvas-active .dr-reef-codex-app{--pulse-bg:#0b1018;--pulse-panel:#111f2d;--pulse-line:rgba(125,198,230,.16);--pulse-text:#f2f8fd;--pulse-muted:#a8bfce;--pulse-blue:#70d9f2;--pulse-gold:#edc75b;background:radial-gradient(ellipse at 70% 0,rgba(24,92,132,.15),transparent 42%),linear-gradient(180deg,#0b1018,#0d141d 70%);}
.dr-codex-canvas-active .dr-codex-topbar{background:rgba(8,15,23,.97);border-color:rgba(120,192,224,.11);padding:10px clamp(12px,2vw,28px);gap:12px}
.dr-codex-canvas-active .dr-codex-topbar__brand strong{letter-spacing:-.02em}
.dr-codex-canvas-active .dr-codex-topbar__brand small{color:#9cb8cc;opacity:.9}
.dr-codex-canvas-active .dr-codex-topbar__nav a{border-color:rgba(128,195,222,.13);background:rgba(88,155,189,.06);border-radius:12px;white-space:nowrap}
.dr-codex-canvas-active .dr-codex-topbar__nav a:hover,.dr-codex-canvas-active .dr-codex-topbar__nav a:focus-visible{border-color:rgba(116,217,242,.5);background:rgba(66,183,219,.12)}
.dr-codex-canvas-active .dr-codex-topbar__nav .dr-codex-topbar__discovery{color:#97e6fa;border-color:rgba(105,206,237,.23)}
.dr-codex-canvas-active .dr-codex-topbar__nav a[aria-current="page"]{background:rgba(61,165,205,.16);border-color:rgba(106,221,246,.47);color:#ecfaff}
.dr-codex-pulse-home,.dr-discovery{scroll-behavior:smooth}
.dr-codex-pulse-home a:focus-visible,.dr-codex-pulse-bridge a:focus-visible,.dr-codex-pulse-mode:focus-visible{outline:3px solid #8decff;outline-offset:3px}
.dr-codex-pulse-stage{padding:42px 0 24px}
.dr-codex-pulse-stage__inner{border:1px solid rgba(106,177,212,.2);border-radius:30px;overflow:hidden;background:radial-gradient(circle at 77% 4%,rgba(47,151,195,.13),transparent 36%),linear-gradient(128deg,rgba(15,30,44,.99),rgba(13,23,35,.98));box-shadow:0 28px 80px rgba(0,0,0,.17)}
.dr-codex-pulse-intro{padding:clamp(24px,4vw,52px);display:grid;grid-template-columns:minmax(0,1.22fr) minmax(285px,.8fr);gap:clamp(24px,3.5vw,52px);align-items:center}
.dr-codex-pulse-kicker{display:block;margin:0 0 11px!important;color:#88dff0!important;font-size:.7rem;font-weight:850;letter-spacing:.15em;text-transform:uppercase}
.dr-codex-pulse-intro h1{font-size:clamp(3rem,6vw,5.5rem);line-height:1.04;letter-spacing:-.058em;margin:0 0 20px;color:#f8fcff}
.dr-codex-pulse-intro h1 span{color:#84ddf4}
.dr-codex-pulse-lead{max-width:690px;margin:0!important;color:#b7cddc!important;font-size:clamp(1rem,1.4vw,1.16rem);line-height:1.72}
.dr-codex-pulse-intro__actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.dr-codex-pulse-intro__actions a{min-height:45px;display:inline-flex;align-items:center;gap:14px;padding:10px 18px;border-radius:12px;font-size:.9rem;font-weight:800;text-decoration:none!important;color:#051824!important;background:linear-gradient(125deg,#55c7e4,#92ebfa)}
.dr-codex-pulse-intro__actions a+ a{background:rgba(88,186,225,.08);border:1px solid rgba(105,203,235,.35);color:#b3ecfb!important}
.dr-codex-pulse-peek{border:1px solid rgba(117,198,229,.19);border-radius:22px;background:linear-gradient(145deg,rgba(23,52,73,.73),rgba(9,24,37,.72));padding:18px;min-width:0}
.dr-codex-pulse-peek__heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
.dr-codex-pulse-peek__heading span{font-size:.64rem;letter-spacing:.12em;font-weight:800;color:#8bdbe9}
.dr-codex-pulse-peek__heading small{color:#a3b9c8;font-size:.74rem}
.dr-codex-pulse-peek__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dr-codex-pulse-peek__card{display:block;min-width:0;text-decoration:none!important;border:1px solid rgba(135,197,218,.18);border-radius:12px;overflow:hidden;background:#122333;transition:transform .18s ease,border-color .18s ease}
.dr-codex-pulse-peek__card:hover{transform:translateY(-2px);border-color:#8be1f1}
.dr-codex-pulse-peek__card img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}
.dr-codex-pulse-peek__card span{display:-webkit-box;min-height:46px;padding:8px;font-size:.73rem;line-height:1.35;color:#e6f5fc!important;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.dr-codex-pulse-peek>p{margin:12px 0 0!important;font-size:.72rem;color:#9bb9c9!important;line-height:1.35}
.dr-codex-pulse-peek__empty{display:grid;justify-items:start;gap:6px;padding:20px 5px}
.dr-codex-pulse-peek__empty>span{font-size:2.5rem;color:#75d9e9}
.dr-codex-pulse-peek__empty strong{color:#effaff}
.dr-codex-pulse-peek__empty p{margin:0;font-size:.85rem;line-height:1.5}
.dr-codex-pulse-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0 clamp(20px,3.5vw,44px) 24px}
.dr-codex-pulse-mode{min-width:0;display:grid;grid-template-columns:40px minmax(0,1fr) 15px;gap:13px;align-items:center;padding:17px;border:1px solid rgba(120,188,215,.18);border-radius:18px;background:rgba(11,23,35,.56);color:#eaf6fb!important;text-decoration:none!important;transition:background .18s ease,border-color .18s ease}
.dr-codex-pulse-mode:hover{background:rgba(53,116,151,.18);border-color:rgba(112,215,241,.45)}
.dr-codex-pulse-mode.is-current{background:rgba(78,151,184,.13);border-color:rgba(110,205,234,.43)}
.dr-codex-pulse-mode--library .dr-codex-pulse-mode__icon{color:#f5cf6d;background:rgba(219,177,70,.11)}
.dr-codex-pulse-mode--discovery .dr-codex-pulse-mode__icon{color:#7ce3fa;background:rgba(84,201,237,.12)}
.dr-codex-pulse-mode__icon{display:grid;place-items:center;height:40px;width:40px;border-radius:12px;font-size:1.4rem}
.dr-codex-pulse-mode span:nth-child(2){display:grid;gap:3px;min-width:0}
.dr-codex-pulse-mode small{color:#90b8cb;font-size:.62rem;font-weight:800;letter-spacing:.12em}
.dr-codex-pulse-mode strong{font-size:1.03rem;color:#f5fbff!important}
.dr-codex-pulse-mode em{font-size:.77rem;font-style:normal;color:#a9becd;line-height:1.45}
.dr-codex-pulse-mode__arrow{align-self:start;color:#a8dce8}
.dr-codex-pulse-search{padding:27px clamp(20px,3.5vw,44px) 36px;border-top:1px solid rgba(106,178,207,.12);scroll-margin-top:100px}
.dr-codex-pulse-search__heading{display:flex;gap:24px;align-items:end;justify-content:space-between;margin-bottom:16px}
.dr-codex-pulse-search__heading h2{margin:0;color:#f4fbff;font-size:clamp(1.35rem,2vw,1.8rem);letter-spacing:-.03em}
.dr-codex-pulse-search__heading>p{max-width:310px;margin:0!important;color:#9db9ca;font-size:.84rem}
.dr-codex-pulse-search .dr-codex-v109-search{max-width:none;margin:0;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.dr-codex-pulse-search .dr-codex-v109-search>label{display:none!important}
.dr-codex-pulse-search .dr-codex-v109-search input,.dr-codex-pulse-search .dr-codex-v109-search select{background:#0c1926!important;border:1px solid rgba(135,192,219,.27)!important;color:#f3fbff!important;color-scheme:dark}
.dr-codex-pulse-search .dr-codex-v109-search button{background:linear-gradient(120deg,#62cde8,#91eafa)!important;color:#081b27!important;border:0!important}
.dr-codex-pulse-search .dr-codex-v109-search__footer{color:#9fbaca}
.dr-codex-pulse-universes{padding-top:26px!important;scroll-margin-top:100px}
.dr-codex-pulse-universes .dr-codex-home__heading{gap:14px;margin-bottom:18px}
.dr-codex-pulse-universes .dr-codex-home__heading h2{font-size:clamp(1.7rem,3vw,2.7rem)}
.dr-codex-canvas-active .dr-codex-pulse-universes .dr-codex-universe{border-color:rgba(126,195,224,.18);background:linear-gradient(145deg,#142230,#101b29);box-shadow:none;border-radius:21px}
.dr-codex-canvas-active .dr-codex-pulse-universes a.dr-codex-universe:hover{border-color:rgba(111,220,244,.45);background:#182b3b}
.dr-codex-canvas-active .dr-codex-pulse-universes .dr-codex-universe__icon{background:rgba(77,165,202,.12)}
.dr-codex-pulse-bridge{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:10px 0 22px;padding:18px 24px;border:1px solid rgba(95,193,226,.29);border-radius:20px;background:linear-gradient(110deg,rgba(18,50,70,.9),rgba(14,26,41,.95));color:#f0fbff}
.dr-codex-pulse-bridge strong{display:block;font-size:1.1rem;color:#eff9ff}
.dr-codex-pulse-bridge p{font-size:.87rem;color:#a7c7d8;margin:5px 0 0}
.dr-codex-pulse-bridge>a{flex-shrink:0;padding:11px 17px;border-radius:12px;text-decoration:none!important;background:#75dcef;color:#051a25!important;font-weight:800}
.dr-codex-canvas-active .dr-discovery{background:radial-gradient(ellipse 70% 25% at 80% 0%,rgba(27,135,172,.16),transparent 72%),linear-gradient(180deg,#0b1018,#0d141d)}
.dr-codex-canvas-active .dr-discovery .dr-codex-pulse-discovery-hero{min-height:0;margin-top:38px;padding:clamp(25px,3vw,42px);grid-template-columns:minmax(0,1.25fr) minmax(280px,.8fr);gap:28px;border-radius:27px;background:linear-gradient(115deg,rgba(18,37,53,.96),rgba(11,25,39,.95));}
.dr-codex-pulse-discovery-hero h1{font-size:clamp(2.8rem,5vw,4.3rem);margin-bottom:13px}
.dr-codex-pulse-discovery-hero .dr-discovery__hero-copy>p:not(.dr-codex-pulse-kicker){font-size:.95rem;line-height:1.65}
.dr-codex-pulse-discovery-hero .dr-discovery__jump{margin-top:12px}
.dr-discovery>.dr-codex__wrap>.dr-codex-pulse-modes{padding:14px 0 0;margin:0}
.dr-discovery__workbench{scroll-margin-top:90px}
.dr-discovery__workbench .dr-discovery__section-head{margin-top:32px}
@media(max-width:950px){.dr-codex-pulse-intro,.dr-codex-canvas-active .dr-discovery .dr-codex-pulse-discovery-hero{grid-template-columns:1fr}.dr-codex-pulse-peek__cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.dr-codex-pulse-stage{padding:16px 0}.dr-codex-pulse-stage__inner{border-radius:20px}.dr-codex-pulse-intro{padding:24px 19px;gap:19px}.dr-codex-pulse-intro h1{font-size:3rem}.dr-codex-pulse-modes{grid-template-columns:1fr;padding:0 18px 19px;gap:8px}.dr-codex-pulse-mode{padding:13px}.dr-codex-pulse-search{padding:20px 18px 25px}.dr-codex-pulse-search__heading{display:block}.dr-codex-pulse-search__heading>p{margin:6px 0 0!important}.dr-codex-pulse-universes .dr-codex-home__heading{display:block}.dr-codex-pulse-bridge{flex-direction:column;align-items:stretch;padding:17px}.dr-codex-pulse-bridge>a{text-align:center}.dr-codex-canvas-active .dr-discovery .dr-codex-pulse-discovery-hero{margin-top:15px;padding:25px 19px}.dr-discovery>.dr-codex__wrap>.dr-codex-pulse-modes{padding:10px 0 0}.dr-codex-canvas-active .dr-codex-topbar{display:flex!important;flex-wrap:wrap!important;align-items:center!important}.dr-codex-canvas-active .dr-codex-topbar__brand{flex:0 0 auto!important}.dr-codex-canvas-active .dr-codex-topbar__nav{display:flex!important;flex-wrap:nowrap!important;flex:1 1 100%!important;overflow-x:auto;justify-content:flex-start!important;scrollbar-width:thin}.dr-codex-canvas-active .dr-codex-topbar__nav a{flex:0 0 auto!important}.dr-codex-canvas-active .dr-codex-topbar__brand span:last-child{display:grid!important}}
@media(prefers-reduced-motion:reduce){.dr-codex-pulse-home,.dr-discovery{scroll-behavior:auto}.dr-codex-pulse-mode,.dr-codex-pulse-peek__card{transition:none}.dr-codex-pulse-peek__card:hover{transform:none}}
/* Preserve Dashboard and official site links on small screens; legacy canvas hid these positions. */
@media(max-width:782px){body.dr-codex-fullscreen-shell .dr-codex-topbar__nav a:nth-child(4),body.dr-codex-fullscreen-shell .dr-codex-topbar__nav a:nth-child(5){display:inline-flex!important}}
