/* Option 5: illustrated Jacquard portal. Shared across marketing routes. */
body.reference-theme .portal-header{display:grid;grid-template-columns:1fr auto 1fr;height:74px;border-bottom:1px solid #dfe5ee;gap:24px}
.portal-header .portal-caption{margin:0;font:600 13px/1.5 var(--sans);white-space:nowrap;color:#06143d}
body.reference-theme .portal-header #main-nav{justify-self:end;display:block;margin:0;padding:0;width:auto}
.portal-menu{position:static;margin:0;padding:0;border:0;background:transparent;border-radius:0;box-shadow:none}
body.reference-theme .portal-menu>summary{list-style:none;display:flex;align-items:center;gap:14px;min-height:48px;cursor:pointer;font:600 14px/1.5 var(--sans);color:#06143d;padding:0;border:0}
.portal-menu>summary::-webkit-details-marker{display:none}
.portal-menu>summary:after{display:none!important}
.portal-toggle-chevron{transition:transform .2s;filter:brightness(0) saturate(100%);width:16px;height:16px}
.portal-menu[open] .portal-toggle-chevron{transform:rotate(180deg)}
.portal-toggle-grid{width:30px;height:30px;box-sizing:content-box;padding-left:24px;margin-left:7px;border-left:1px solid #aebcd2}
body.reference-theme .portal-directory{position:absolute;left:0;right:0;top:74px;background:#06143d;color:white;border-radius:0 0 0 100px;box-shadow:0 15px 32px #06143d12;max-height:calc(100dvh - 84px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#657fbd #06143d;isolation:isolate}
.portal-inner{width:min(1360px,calc(100% - 128px));margin:auto;padding:46px 0 20px}
.portal-main{display:grid;grid-template-columns:29% minmax(0,1fr);gap:0;min-height:310px}
.portal-topics{display:flex;flex-direction:column;justify-content:space-between;border-right:1px solid #8193ba;padding:0 30px 0 0;gap:12px}
body.reference-theme .portal-topic{display:grid;grid-template-columns:44px minmax(0,1fr) 20px;align-items:center;gap:22px;width:100%;padding:16px 16px 16px 2px;min-height:86px;color:#fff;background:transparent;border:0;border-bottom:1px solid #8193ba;border-radius:0;font:400 clamp(21px,2vw,28px)/1.2 var(--sans);letter-spacing:-.025em;text-align:left;cursor:pointer}
body.reference-theme .portal-topic[aria-pressed=true]{background:#0349ff;border-color:transparent;border-radius:48px;padding-left:18px;padding-right:18px}
body.reference-theme .portal-topic:hover{background:#153269;border-radius:48px;border-color:transparent}
body.reference-theme .portal-topic[aria-pressed=true]:hover{background:#0349ff}
.portal-topic-icon{width:44px;height:44px;filter:brightness(0) invert(1)}
.portal-chevron{width:18px;height:18px;flex:none;filter:brightness(0) invert(1)}
.portal-views{min-width:0}
.portal-view{display:grid;grid-template-columns:minmax(0,1fr) 240px;height:100%;min-height:310px}
.portal-view[hidden]{display:none!important}
.portal-story{position:relative;min-width:0;padding:0 30px 0 46px;isolation:isolate;overflow:hidden}
body.reference-theme .portal-story h2{position:relative;z-index:1;font:600 clamp(35px,3.4vw,49px)/1.03 var(--sans);letter-spacing:-.045em;margin:0;color:white}
body.reference-theme .portal-story h2 em{font:italic 400 1.05em/1.05 var(--serif);letter-spacing:-.05em}
.portal-story>p{position:relative;z-index:1;margin:16px 0 0;font:15px/1.5 var(--sans);color:#d8e1ff;max-width:300px}
.portal-art{position:absolute;left:12px;bottom:0;width:calc(100% - 12px);height:220px;object-fit:contain;object-position:center bottom;z-index:0;filter:contrast(1.6);mix-blend-mode:lighten;pointer-events:none}
.portal-links{border-left:1px solid #8193ba;padding-left:30px;align-self:stretch;display:flex;flex-direction:column;min-width:0}
.portal-kicker{font:600 10px/1.5 var(--sans);letter-spacing:1.5px;color:#b9caff;margin:0 0 8px}
body.reference-theme .portal-header #main-nav .portal-links a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 0;min-height:71px;white-space:normal;font:500 18px/1.4 var(--sans);color:white;border:0;border-bottom:1px solid #8193ba;border-radius:0;background:transparent;text-decoration:none}
body.reference-theme .portal-header #main-nav .portal-links a:last-child{border-bottom:0}
body.reference-theme .portal-header #main-nav .portal-links a:hover{color:#bacaff;background:transparent}
.portal-bottom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #8193ba;margin-top:22px;padding-top:18px;gap:0}
body.reference-theme .portal-header #main-nav .portal-bottom :is(button,a){display:flex;align-items:center;justify-content:center;gap:22px;min-height:38px;padding:0 22px;border:0;border-radius:0;color:white;background:transparent;font:500 14px/1.5 var(--sans);text-decoration:none;cursor:pointer}
body.reference-theme .portal-header #main-nav .portal-bottom>:not(:first-child){border-left:1px solid #8193ba}
.portal-bottom img:not(.portal-chevron){width:26px;height:26px;filter:brightness(0) invert(1)}
body.reference-theme .portal-header #main-nav .portal-bottom :is(a,button):hover,body.reference-theme .portal-header #main-nav .portal-bottom button[aria-pressed=true]{color:#a9bfff}
body.reference-theme .portal-header :is(a,button,summary):focus-visible{outline:2px solid #0349ff;outline-offset:5px}
body.reference-theme .portal-directory :is(a,button):focus-visible{outline-color:#c9d7ff;outline-offset:3px}
#portal-resources .portal-links a{font-size:15px!important;min-height:43px!important;padding:8px 0!important}
.portal-open main{filter:none}
.compact-footer .cf-workspace{font:11px/1.6 var(--sans);color:#526078;min-height:24px;display:flex;align-items:center;flex:none;text-decoration:none}
.compact-footer .cf-workspace:hover{text-decoration:underline;text-underline-offset:4px}
@media(min-width:851px){body.reference-theme .portal-header.portal-at-top:has(.portal-menu[open]){margin-bottom:435px}}
@media(min-width:851px) and (max-width:1100px){
body.reference-theme .portal-header{padding-inline:36px}
.portal-inner{width:calc(100% - 72px);padding-top:30px}
.portal-main{grid-template-columns:29% minmax(0,1fr);min-height:290px}
.portal-topics{padding-right:20px;gap:14px}
body.reference-theme .portal-topic{grid-template-columns:30px minmax(0,1fr) 16px;gap:12px;font-size:21px;min-height:82px}
.portal-topic-icon{width:30px;height:30px}
.portal-view{grid-template-columns:minmax(0,1fr) 190px;min-height:290px}
.portal-story{padding-left:26px;padding-right:16px}
body.reference-theme .portal-story h2{font-size:35px}
.portal-story>p{font-size:13px;max-width:180px}
.portal-art{height:180px}
.portal-links{padding-left:20px}
body.reference-theme .portal-header #main-nav .portal-links a{font-size:16px;min-height:70px}
.portal-bottom{margin-top:18px}
body.reference-theme .portal-header.portal-at-top:has(.portal-menu[open]){margin-bottom:400px}
}
@media(max-width:850px){
body.reference-theme .portal-header{height:74px;display:flex;gap:16px;padding:0 24px}
.portal-header .portal-caption{display:none}
body.reference-theme .portal-header #main-nav{display:none}
body.reference-theme .portal-header .menu-toggle{display:flex}
body.reference-theme .portal-header .brand-word{width:166px}
body.reference-theme .portal-header .brand-symbol{width:34px;height:34px}
body.reference-theme .portal-header .brand{gap:10px}
#cobalt-navigation .mn-title{font-size:32px}
#cobalt-navigation .mn-secondary{padding-bottom:24px}
#cobalt-navigation .mn-footer{min-height:64px}
.compact-footer .cf-utility{flex-wrap:wrap}
}
@media(max-width:365px){body.reference-theme .portal-header{padding-inline:18px}body.reference-theme .portal-header .brand-word{width:148px}}
@media(prefers-reduced-motion:reduce){.portal-toggle-chevron{transition:none}}
@media(print){.portal-menu,.menu-toggle{display:none!important}.portal-header{margin-bottom:0!important}}

/* Blend generated linework into the exact navy surface without image edge seams. */
.portal-story{background:#06143d}
.portal-art{height:250px;object-fit:cover}

/* Override legacy global nav alignment for the editorial directory. */
body.reference-theme .portal-header #main-nav .portal-links{align-items:stretch;gap:0}
body.reference-theme .portal-header #main-nav .portal-bottom{display:grid;gap:0;align-items:stretch}
.portal-inner{padding-bottom:10px}
.portal-main,.portal-view{min-height:290px}
@media(min-width:1101px){body.reference-theme .portal-header.portal-at-top:has(.portal-menu[open]){margin-bottom:425px}}
body.reference-theme .portal-header #main-nav .portal-links{display:flex}
.portal-art{opacity:.9}
/* Keep nested directory navs independent of the legacy compact-header rules. */
body.reference-theme .portal-header #main-nav .portal-links{position:static;inset:auto;width:auto;max-height:none;overflow:visible;background:transparent;box-shadow:none;border-radius:0}
body.reference-theme .portal-header #main-nav .portal-bottom{position:static;inset:auto;width:auto;max-height:none;overflow:visible;background:transparent;box-shadow:none;border-radius:0}

.portal-story>p{width:fit-content;background:#06143d;padding:3px 7px 3px 0;margin-top:13px}
body.reference-theme .portal-header #main-nav .portal-links{padding:0 0 0 30px;margin:0;gap:0}
body.reference-theme .portal-header #main-nav .portal-bottom{padding:18px 0 0;margin-top:22px;gap:0}
@media(min-width:851px) and (max-width:1100px){body.reference-theme .portal-header #main-nav .portal-links{padding-left:20px}}
