/* Reef Codex Experience v1.1.28 — visual-only, light, scoped to public Codex.
   RC approved icon + unified ReefVerse/Connect Pulse visual grammar.
   Existing Codex/Discovery content, URLs, evaluation and markup are maintained. */
body.dr-codex-canvas-active .dr-reef-codex-app {
 --cx-ink:#eaf6fc; --cx-muted:#a8c0d1; --cx-cyan:#69dff3; --cx-line:rgba(112,198,233,.22);
 --cx-surface:#112335; --cx-surface2:#152a3b;
 color:var(--cx-ink);background:radial-gradient(ellipse 66% 42% at 90% 0%,rgba(29,117,169,.15),transparent 68%),radial-gradient(ellipse 55% 45% at -20% 57%,rgba(28,91,135,.09),transparent 78%),linear-gradient(180deg,#0a1019 0%,#0d1724 58%,#0a111b 100%);
}
/* Official approved RC identity in place of the temporary yellow DR badge. */
.dr-codex-topbar__mark--rc,.dr-codex-canvas-active .dr-codex-topbar__mark--rc {
 width:46px;height:46px;flex:0 0 46px;min-width:46px;padding:0;overflow:visible;border:0;border-radius:13px;background:transparent;box-shadow:none;
}
.dr-codex-topbar__brand-image{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 8px rgba(29,186,223,.15))}
body.dr-codex-canvas-active .dr-codex-topbar {background:rgba(6,14,24,.91);border-bottom:1px solid rgba(118,211,241,.19);box-shadow:0 6px 25px rgba(0,0,0,.13);padding:8px clamp(13px,2vw,28px)}
.dr-codex-topbar__left{min-width:0}
.dr-codex-topbar__brand{gap:11px;min-width:0}
.dr-codex-topbar__brand strong{font-size:1.02rem;letter-spacing:-.03em}
.dr-codex-topbar__brand small{color:#a4bdcc!important;opacity:1!important;letter-spacing:.01em}
body.dr-codex-canvas-active .dr-codex-topbar__nav{gap:7px}
body.dr-codex-canvas-active .dr-codex-topbar__nav a{transition:background .18s,border-color .18s,color .18s;background:transparent;border:1px solid transparent;color:#a9c6d8;border-radius:11px;padding:9px 12px}
body.dr-codex-canvas-active .dr-codex-topbar__nav a:hover,body.dr-codex-canvas-active .dr-codex-topbar__nav a:focus-visible{background:rgba(72,182,216,.12);border-color:rgba(109,219,243,.35);color:#f5fdff}
body.dr-codex-canvas-active .dr-codex-topbar__nav a[aria-current="page"]{background:linear-gradient(120deg,rgba(44,154,199,.2),rgba(26,96,145,.13));border:1px solid rgba(107,218,240,.38);color:#e9fbff}
body.dr-codex-canvas-active .dr-codex-topbar__nav a.dr-codex-topbar__discovery{color:#9feaf6}
/* Hero becomes a cohesive atmospheric surface, not a banner separate from the library. */
.dr-codex-pulse-home .dr-codex-pulse-stage{padding:32px 0 18px}
.dr-codex-pulse-stage__inner{position:relative;isolation:isolate;border:1px solid rgba(117,198,232,.25);background:radial-gradient(ellipse 42% 70% at 95% 4%,rgba(31,155,196,.16),transparent 80%),radial-gradient(ellipse 56% 60% at -14% 0%,rgba(51,105,171,.1),transparent 75%),linear-gradient(135deg,#122637,#0c1827 80%);box-shadow:0 28px 76px rgba(0,0,0,.2);border-radius:29px}
.dr-codex-pulse-stage__inner:before{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,transparent,rgba(99,231,251,.5),transparent);opacity:.48;z-index:0;pointer-events:none}
.dr-codex-pulse-intro{position:relative;z-index:1;gap:clamp(20px,3.2vw,45px);padding:clamp(26px,4vw,55px)}
.dr-codex-pulse-intro__copy{min-width:0}
.dr-codex-pulse-intro h1{font-weight:850;letter-spacing:-.066em;font-size:clamp(3.3rem,6vw,5.8rem)}
.dr-codex-pulse-intro h1 span{background:linear-gradient(125deg,#9deafb,#50cae5);-webkit-background-clip:text;background-clip:text;color:transparent}
.dr-codex-pulse-lead{color:#bcd3e3!important;line-height:1.67}
.dr-codex-pulse-highlights{display:flex;gap:8px;flex-wrap:wrap;margin-top:21px}
.dr-codex-pulse-highlights span{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(121,198,226,.22);background:rgba(63,152,188,.08);padding:7px 11px;border-radius:999px;font-size:.73rem;color:#b9dbe7;font-weight:650}
.dr-codex-pulse-highlights span:before{content:"";width:5px;height:5px;border-radius:50%;background:#81e2f5;box-shadow:0 0 8px rgba(129,226,245,.4)}
.dr-codex-pulse-intro__actions{margin-top:23px}
.dr-codex-pulse-intro__actions a{border-radius:13px;box-shadow:0 8px 20px rgba(22,154,190,.1);transition:transform .18s,filter .18s}
.dr-codex-pulse-intro__actions a:hover{transform:translateY(-2px);filter:brightness(1.05)}
.dr-codex-pulse-peek{position:relative;border-color:rgba(109,200,230,.28);background:linear-gradient(155deg,rgba(19,49,69,.84),rgba(10,23,39,.95));box-shadow:0 20px 42px rgba(0,0,0,.12)}
.dr-codex-pulse-peek__heading{padding-bottom:12px;border-bottom:1px solid rgba(110,181,210,.17)}
.dr-codex-pulse-peek__card{border-radius:15px;background:#142c3d;border-color:rgba(121,193,223,.25)}
.dr-codex-pulse-peek__card img{transition:transform .2s;aspect-ratio:1/1}
.dr-codex-pulse-peek__card:hover img{transform:scale(1.035)}
.dr-codex-pulse-peek__card{overflow:hidden}
.dr-codex-pulse-peek__card span{background:rgba(9,24,40,.8)}
/* Two independent experiences, joined by a single visual system. */
.dr-codex-pulse-modes{position:relative;z-index:1;gap:12px}
.dr-codex-pulse-mode{border:1px solid rgba(126,198,225,.2);border-radius:18px;background:linear-gradient(120deg,rgba(15,34,49,.72),rgba(11,24,39,.75));padding:19px 18px;min-height:108px}
.dr-codex-pulse-mode:before{content:"";display:block;position:absolute;left:0;top:13px;bottom:13px;width:3px;border-radius:5px;background:rgba(101,206,239,.25)}
.dr-codex-pulse-mode{position:relative;overflow:hidden}
.dr-codex-pulse-mode.is-current{border-color:rgba(111,222,243,.42);background:linear-gradient(120deg,rgba(32,97,126,.35),rgba(13,37,53,.76))}
.dr-codex-pulse-mode.is-current:before{background:#76e3f5;box-shadow:0 0 12px rgba(118,227,245,.55)}
.dr-codex-pulse-mode__icon{border-radius:14px!important;background:rgba(55,164,211,.14)!important;color:#8feaff!important;border:1px solid rgba(120,219,241,.18)}
.dr-codex-pulse-mode strong{font-size:1.02rem}
.dr-codex-pulse-mode em{font-size:.77rem;color:#a7c2d3}
.dr-codex-pulse-mode:hover{transform:translateY(-2px);border-color:rgba(114,223,243,.52);background:rgba(30,84,112,.3)}
/* Library search must feel physically part of the same main surface. */
.dr-codex-pulse-search{padding-bottom:35px;border-top:1px solid rgba(106,185,220,.19)}
.dr-codex-pulse-search__heading{margin-bottom:19px}
.dr-codex-pulse-search__heading h2{font-size:clamp(1.4rem,2.1vw,2rem)}
.dr-codex-pulse-search .dr-codex-v109-search input,.dr-codex-pulse-search .dr-codex-v109-search select{border-radius:11px!important;background:#0d1b2a!important}
.dr-codex-pulse-search .dr-codex-v109-search input:focus,.dr-codex-pulse-search .dr-codex-v109-search select:focus{border-color:#8ae6f7!important;outline:2px solid rgba(133,231,250,.2)}
/* Library universe and group cards are now a true atlas, not a text list. */
body.dr-codex-canvas-active .dr-codex-pulse-universes{padding-top:35px!important}
.dr-codex-pulse-universes .dr-codex-universes{gap:16px}
body.dr-codex-canvas-active .dr-codex-pulse-universes .dr-codex-universe,
body.dr-codex-canvas-active .dr-codex-reef-group,
body.dr-codex-canvas-active .dr-codex-fish-category {position:relative;isolation:isolate;overflow:hidden;border:1px solid rgba(123,201,229,.22);background:linear-gradient(135deg,#152839,#0e1b2c 87%);box-shadow:0 10px 28px rgba(0,0,0,.14);transition:transform .2s,border-color .2s,box-shadow .2s}
body.dr-codex-canvas-active a.dr-codex-universe:hover,
body.dr-codex-canvas-active a.dr-codex-reef-group:hover,
body.dr-codex-canvas-active a.dr-codex-fish-category:hover{transform:translateY(-3px);border-color:rgba(122,227,246,.52);box-shadow:0 16px 34px rgba(6,21,33,.35)}
.dr-codex-universe:before,.dr-codex-reef-group:before,.dr-codex-fish-category:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 0% 0%,rgba(60,166,206,.105),transparent 64%)}
body.dr-codex-canvas-active .dr-codex-universe__icon{border:1px solid rgba(115,206,231,.19);border-radius:18px;background:linear-gradient(145deg,rgba(45,130,166,.2),rgba(18,69,104,.07));color:#84e1ed}
.dr-codex-universe__content strong{color:#eefaff}
.dr-codex-universe__meta{color:#94c5d8;opacity:1}
.dr-codex-universe__badge{color:#9bbbd0}
body.dr-codex-canvas-active .dr-codex-home__system-card,body.dr-codex-canvas-active .dr-codex-reef__note-card{background:linear-gradient(115deg,rgba(17,43,62,.95),rgba(13,27,43,.96));border:1px solid rgba(109,191,225,.17);border-radius:23px}
/* All category and search pages use one compact page heading. */
body.dr-codex-canvas-active .dr-codex__hero:not(.dr-codex-pulse-stage){padding:clamp(32px,4.7vw,68px) 0 clamp(20px,3vw,40px);background:radial-gradient(ellipse 60% 110% at 90% 0%,rgba(26,133,184,.16),transparent 75%),linear-gradient(180deg,rgba(16,37,55,.7),transparent)}
body.dr-codex-canvas-active .dr-codex__hero h1{font-size:clamp(2.4rem,4.2vw,4.5rem);letter-spacing:-.045em;line-height:1.1;margin:8px 0 16px;color:#f3fbff}
body.dr-codex-canvas-active .dr-codex__hero .dr-codex__eyebrow{color:#76dceb}
body.dr-codex-canvas-active .dr-codex-fish__hero,body.dr-codex-canvas-active .dr-codex-reef__hero{padding-top:50px;padding-bottom:35px}
body.dr-codex-canvas-active .dr-codex-fish-categories{gap:12px}
body.dr-codex-canvas-active .dr-codex-fish-category{padding:18px;border-radius:19px;min-height:96px;gap:11px}
body.dr-codex-canvas-active .dr-codex-fish-category__media{background:linear-gradient(155deg,rgba(40,139,183,.22),rgba(19,58,91,.12));border:1px solid rgba(118,205,234,.24);border-radius:16px;width:54px;height:54px;color:#8ae8f8;font-size:1rem;font-weight:900;letter-spacing:.08em}
body.dr-codex-canvas-active .dr-codex-fish-category__body strong{font-size:.98rem;color:#f1fbff}
body.dr-codex-canvas-active .dr-codex-fish-category__arrow{color:#7ddcf0;opacity:1}
body.dr-codex-canvas-active .dr-codex-reef-group{border-radius:23px}
body.dr-codex-canvas-active .dr-codex-reef-group__visual{background:linear-gradient(135deg,rgba(53,173,215,.16),rgba(24,95,140,.06));border:1px solid rgba(119,212,238,.18)}
body.dr-codex-canvas-active .dr-codex-pulse-bridge{margin:14px 0 4px}
/* Species catalog — consistent readable cards with focus on each real photograph. */
body.dr-codex-canvas-active .dr-codex-catalog-grid{gap:19px}
body.dr-codex-canvas-active .dr-codex-catalog-card{background:linear-gradient(160deg,#15293a,#0f1c2b 92%)!important;border:1px solid rgba(117,195,228,.22)!important;box-shadow:0 12px 25px rgba(0,0,0,.17)!important;border-radius:22px!important;overflow:hidden;transition:transform .2s,border-color .2s,box-shadow .2s}
body.dr-codex-canvas-active .dr-codex-catalog-card:hover{transform:translateY(-3px);border-color:rgba(130,222,244,.52)!important;box-shadow:0 16px 35px rgba(0,0,0,.3)!important}
body.dr-codex-canvas-active .dr-codex-catalog-card__media{background:#0b2031}
body.dr-codex-canvas-active .dr-codex-catalog-card__body{color:#b4cada}
body.dr-codex-canvas-active .dr-codex-catalog-card__title h2 a{color:#eefaff!important}
body.dr-codex-canvas-active .dr-codex-catalog-card__title h2 a:hover{color:#88e7f9!important}
body.dr-codex-canvas-active .dr-codex-catalog-card__facts{border-color:rgba(114,181,211,.17)}
body.dr-codex-canvas-active .dr-codex-catalog-card__facts dt{color:#91b7c9}
body.dr-codex-canvas-active .dr-codex-catalog-card__facts dd{color:#e4f5fa}
body.dr-codex-canvas-active .dr-codex-catalog-card__button{background:rgba(60,174,215,.14)!important;border:1px solid rgba(101,209,239,.32)!important;border-radius:12px!important;color:#95e9f8!important}
body.dr-codex-canvas-active .dr-codex-catalog-card__button:hover{background:rgba(60,174,215,.25)!important}
/* Single species — editorial reading comfort, gallery, quick stats and anchored navigation. */
body.dr-codex-canvas-active .dr-codex-v118-jump{margin:16px 0 9px;padding:11px 13px;border:1px solid rgba(111,199,232,.25);background:rgba(16,38,56,.76);border-radius:15px;gap:8px}
.dr-codex-v118-jump>span{color:#94b8ca;font-size:.78rem;font-weight:750;margin-right:5px}
body.dr-codex-canvas-active .dr-codex-v118-jump a{display:inline-flex;align-items:center;padding:7px 12px;text-decoration:none;border-radius:10px;color:#b5e7f3!important;background:rgba(58,159,196,.08);border:1px solid rgba(117,202,232,.13);font-size:.82rem;font-weight:700}
body.dr-codex-canvas-active .dr-codex-v118-jump a:hover{background:rgba(58,159,196,.2)}
body.dr-codex-canvas-active .dr-codex-species__hero{background:radial-gradient(ellipse at 75% 0%,rgba(29,130,183,.17),transparent 65%);padding-top:36px;padding-bottom:28px}
body.dr-codex-canvas-active .dr-codex-species__hero h1{letter-spacing:-.045em;color:#effaff}
body.dr-codex-canvas-active .dr-codex-species__layout{gap:clamp(20px,3vw,48px);padding-top:25px}
body.dr-codex-canvas-active .dr-codex-species__facts{background:linear-gradient(155deg,#142b3d,#0e1c2b)!important;border:1px solid rgba(113,193,222,.27)!important;border-radius:23px!important;box-shadow:0 16px 40px rgba(0,0,0,.18)!important}
body.dr-codex-canvas-active .dr-codex-species__facts h2{color:#f4fbff;letter-spacing:-.025em}
body.dr-codex-canvas-active .dr-codex-species__facts dt{color:#9fc1d1}
body.dr-codex-canvas-active .dr-codex-species__facts dd{color:#e4f2f8}
body.dr-codex-canvas-active .dr-codex-fact-card{background:linear-gradient(145deg,rgba(22,52,73,.93),rgba(14,32,48,.93))!important;border:1px solid rgba(120,206,230,.22)!important;border-radius:16px!important}
body.dr-codex-canvas-active .dr-codex-pet-gallery{background:linear-gradient(135deg,rgba(18,41,61,.87),rgba(11,24,39,.85));border-color:rgba(122,205,233,.21)!important;border-radius:22px!important}
body.dr-codex-canvas-active .dr-codex-pet-gallery__item{border-radius:13px!important;overflow:hidden;background:#0e1e2e}
body.dr-codex-canvas-active .dr-codex-pet-gallery__item img{transition:transform .18s}
body.dr-codex-canvas-active .dr-codex-pet-gallery__item:hover img{transform:scale(1.024)}
body.dr-codex-canvas-active .dr-codex-info-card,body.dr-codex-canvas-active .dr-codex-parameter-grid>div{background:rgba(19,40,57,.9);border:1px solid rgba(122,192,218,.19);border-radius:15px}
body.dr-codex-canvas-active .dr-codex-info-section__heading>span{color:#84e0ef}
/* Discovery looks like a sibling workspace, not a foreign app. Evaluator untouched. */
body.dr-codex-canvas-active .dr-discovery{background:radial-gradient(ellipse 55% 40% at 87% 0%,rgba(30,122,175,.12),transparent 70%),linear-gradient(180deg,#0a111b,#0d1724 60%,#0a111b)}
body.dr-codex-canvas-active .dr-discovery .dr-codex-pulse-discovery-hero{margin-top:29px;border:1px solid rgba(113,199,230,.25);box-shadow:0 22px 65px rgba(0,0,0,.15);background:radial-gradient(ellipse at 90% 0,rgba(27,123,177,.15),transparent 65%),linear-gradient(120deg,#142a3b,#0d1c2c)}
body.dr-codex-canvas-active .dr-discovery .dr-codex-pulse-modes{margin-top:4px}
.dr-codex-discovery-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;gap:9px;margin:17px 0 2px!important;padding:0!important}
.dr-codex-discovery-steps li{display:flex;align-items:center;gap:12px;border:1px solid rgba(118,192,222,.19);border-radius:16px;padding:15px;background:rgba(20,45,64,.59)}
.dr-codex-discovery-steps li>span{display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;border:1px solid rgba(119,209,235,.23);border-radius:12px;background:rgba(45,156,202,.12);color:#85e0f3;font-size:.72rem;letter-spacing:.08em;font-weight:900}
.dr-codex-discovery-steps li>div{display:grid;gap:2px;min-width:0}
.dr-codex-discovery-steps strong{font-size:.85rem;color:#edf8fd}
.dr-codex-discovery-steps small{font-size:.72rem;color:#9fbbcb;line-height:1.4}
body.dr-codex-canvas-active .dr-discovery__form{border-color:rgba(126,201,230,.27);border-radius:23px;background:linear-gradient(140deg,#142b3e,#0e1c2c);box-shadow:0 16px 44px rgba(0,0,0,.12)}
body.dr-codex-canvas-active .dr-discovery__input input,body.dr-codex-canvas-active .dr-discovery__input select{background:#0c1b2b;border-color:rgba(116,190,223,.31);border-radius:11px}
body.dr-codex-canvas-active .dr-discovery__stats>div,body.dr-codex-canvas-active .dr-discovery__card{border-color:rgba(118,193,225,.23);background:linear-gradient(150deg,#142a3b,#0e1d2d);border-radius:18px}
body.dr-codex-canvas-active .dr-discovery__card:hover{border-color:rgba(135,225,241,.43)}
body.dr-codex-canvas-active .dr-discovery__notice{border-radius:16px}
body.dr-codex-canvas-active .dr-discovery__card-link{border-radius:11px}
/* Accessibility, density and mobile refinements. */
body.dr-codex-canvas-active .dr-reef-codex-app a:focus-visible,body.dr-codex-canvas-active .dr-codex-topbar a:focus-visible,body.dr-codex-canvas-active .dr-reef-codex-app button:focus-visible{outline:3px solid #88e7f9!important;outline-offset:3px}
@media(max-width:1000px){.dr-codex-pulse-intro{grid-template-columns:1fr}.dr-codex-pulse-peek{max-width:100%}.dr-codex-pulse-peek__card img{max-height:170px}.dr-codex-discovery-steps{grid-template-columns:1fr 1fr}}
@media(max-width:782px){body.dr-codex-canvas-active .dr-codex-topbar{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px;padding:7px 11px}body.dr-codex-canvas-active .dr-codex-topbar__brand{align-self:flex-start}body.dr-codex-canvas-active .dr-codex-topbar__nav{display:flex!important;flex:0 0 auto!important;gap:5px;white-space:nowrap;overflow-x:auto;scrollbar-width:thin;scroll-snap-type:x proximity;padding-bottom:3px}body.dr-codex-canvas-active .dr-codex-topbar__nav a{flex:0 0 auto!important;scroll-snap-align:start;padding:7px 11px;font-size:.76rem}body.dr-codex-canvas-active .dr-codex-topbar__mark--rc{width:41px;height:41px;flex-basis:41px;min-width:41px}.dr-codex-pulse-stage__inner{border-radius:20px}.dr-codex-pulse-intro{padding:26px 20px 18px}.dr-codex-pulse-intro h1{font-size:clamp(3rem,11vw,4.3rem)}.dr-codex-pulse-highlights{gap:6px}.dr-codex-pulse-highlights span{font-size:.68rem}.dr-codex-pulse-peek__cards{gap:8px}.dr-codex-pulse-mode{min-height:0}.dr-codex-discovery-steps{margin-top:14px!important}.dr-codex-pulse-universes .dr-codex-universes{gap:10px}body.dr-codex-canvas-active .dr-codex__hero:not(.dr-codex-pulse-stage){padding:28px 0 24px}}
@media(max-width:620px){.dr-codex-pulse-peek__card span{min-height:48px;font-size:.68rem}.dr-codex-pulse-search__heading>p{max-width:none}.dr-codex-pulse-modes{gap:9px}.dr-codex-discovery-steps{grid-template-columns:1fr;gap:7px}.dr-codex-discovery-steps li{padding:10px 12px}.dr-codex-v118-jump{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}.dr-codex-v118-jump a{flex-shrink:0}body.dr-codex-canvas-active .dr-codex-fish-category{min-height:78px}body.dr-codex-canvas-active .dr-codex-fish-category__media{width:47px;height:47px}}
@media(prefers-reduced-motion:reduce){.dr-codex-pulse-intro__actions a,.dr-codex-pulse-mode,.dr-codex-pulse-peek__card img,body.dr-codex-canvas-active .dr-codex-catalog-card,body.dr-codex-canvas-active .dr-codex-pet-gallery__item img{transition:none!important} .dr-codex-pulse-intro__actions a:hover,.dr-codex-pulse-mode:hover,body.dr-codex-canvas-active .dr-codex-catalog-card:hover{transform:none!important}}
