/* The shared header is independent of legacy laboratory and atlas styles. */
.portal-header{position:relative;z-index:30;box-sizing:border-box;background:#182d37;color:#f4f8f8;border-bottom:1px solid #425862;font-family:Inter,Arial,sans-serif;font-size:1rem;line-height:1.4}
.portal-header *{box-sizing:border-box}
.portal-header-inner{max-width:1440px;margin:auto;padding:1.25rem 2.5rem;display:flex;align-items:center;gap:1.8rem;flex-wrap:wrap}
.portal-header a{color:inherit;text-decoration:none;text-underline-offset:.22em}
.portal-header .portal-brand{display:flex;align-items:center;gap:.75rem;line-height:1.15;font-size:1.2rem;font-weight:800;letter-spacing:-.035em;margin-right:auto}
.portal-brand small{display:block;font-size:.875rem;font-weight:400;letter-spacing:0;margin-top:.35rem;color:#c1d1d5}
.portal-mark{display:flex;gap:4px;height:30px;align-items:flex-end;flex-shrink:0}
.portal-mark i{display:block;width:5px;height:30px;background:#f0f6f3}.portal-mark i:nth-child(2){height:20px;background:#e9906f}
.portal-nav{display:flex;align-items:center;gap:1.35rem;flex-wrap:wrap}
.portal-nav>a,.portal-sections>summary{font-size:.875rem;padding:.35rem 0;line-height:1.4}
.portal-header a:hover,.portal-header summary:hover{color:#fff;text-decoration:underline}
.portal-header a[aria-current=page]{color:#a8d8bd;text-decoration:underline;text-decoration-thickness:2px}
.portal-sections{position:relative}.portal-sections>summary{cursor:pointer;font-weight:600;list-style-position:inside}
.portal-sections>div{position:absolute;top:calc(100% + .5rem);left:0;min-width:17rem;max-width:calc(100vw - 2rem);padding:.5rem;border:1px solid #56707a;background:#182d37;box-shadow:0 10px 30px #0e1c2528}
.portal-sections>div>a{display:block;padding:.8rem;font-size:1rem;white-space:normal}
.portal-language{display:flex;border:1px solid #6d828a;padding:3px;flex-shrink:0;gap:2px}
.portal-language>a{font-size:.875rem;padding:.45rem .55rem;line-height:1.2}
.portal-language>a[aria-current=page]{background:#f0f6f3;color:#182d37;text-decoration:none}
.portal-header a:focus-visible,.portal-header summary:focus-visible{outline:3px solid #f2bf4e;outline-offset:4px}
/* All new page styles are scoped, leaving existing evidence pages and models intact. */
body.portal-page{margin:0;background:#f0f4f5;color:#142a35;font:1rem/1.6 Inter,Arial,sans-serif}
.portal-page *{box-sizing:border-box}
.portal-page h1,.portal-page h2,.portal-page h3,.portal-page p{margin-top:0}
.portal-page a{color:inherit;text-underline-offset:.2em}
.portal-page button,.portal-page input{font:inherit}
.portal-page p,.portal-page li,.portal-page a,.portal-page th{overflow-wrap:anywhere}
.portal-page a:focus-visible,.portal-page input:focus-visible,.portal-page summary:focus-visible{outline:3px solid #ca8b00;outline-offset:4px}
.portal-page .portal-demo a:focus-visible,.portal-page .portal-demo input:focus-visible,.portal-page .portal-demo summary:focus-visible{outline-color:#f2bf4e}
.portal-skip{position:absolute;left:1rem;top:-5rem;z-index:99;background:#fff;padding:.75rem;color:#142a35}.portal-skip:focus{top:1rem}
.portal-wrap{max-width:1320px;padding-left:2.5rem;padding-right:2.5rem;margin-left:auto;margin-right:auto}
.portal-kicker{font-size:.875rem;font-weight:700;letter-spacing:.055em;color:#006e69;text-transform:uppercase;line-height:1.5;margin-bottom:1rem}
.portal-hero{display:grid;grid-template-columns:1fr 1fr;gap:3.5rem;padding-top:3rem;padding-bottom:3.5rem;align-items:start}
.portal-opening{padding-top:1rem}.portal-opening h1{font-size:clamp(2.5rem,4.1vw,4.2rem);line-height:1.06;letter-spacing:-.055em;margin-bottom:1.6rem;overflow-wrap:anywhere}
.portal-lead{font-size:1.15rem;line-height:1.65;max-width:36rem;margin-bottom:2rem}
.portal-jump{display:inline-block;background:#006e69;color:white!important;font-weight:700;text-decoration:none;padding:.8rem 1.2rem;border:2px solid #006e69}
.portal-jump:hover{background:#005955}.portal-small{font-size:.875rem;color:#526a76;margin-top:1.5rem}
.portal-demo{background:#182d37;color:#f5f8f8;padding:1.7rem 2rem;border-top:4px solid #d16c48}
.portal-demo .portal-kicker{color:#a8d8bd;font-size:.8125rem;margin-bottom:.7rem}
.portal-demo h2{font-size:1.85rem;line-height:1.15;letter-spacing:-.035em;margin-bottom:.8rem}
.portal-demo p{line-height:1.5;color:#ccdde1;font-size:.9375rem;margin-bottom:1rem}
.portal-demo label{font-size:.9375rem;font-weight:600;display:inline-block}.portal-demo output{font-size:.9375rem;float:right;font-variant-numeric:tabular-nums}
.portal-demo input{width:100%;min-height:30px;accent-color:#f1926d;margin:.5rem 0 .7rem}
.portal-queue{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #6a818b;padding-top:.45rem;font-size:.8125rem;color:#c6d7dc}
.portal-queue>div{grid-column:1/-1;display:grid;grid-template-columns:repeat(60,minmax(0,1fr));height:19px;align-items:center;border-bottom:1px dashed #6a818b}
.portal-queue i{display:block;background:#f1926d;width:calc(100% - 1px);height:10px;border-radius:1px}
.portal-queue>span{padding-top:.25rem}.portal-queue>span:last-child{text-align:right}
.portal-results{width:100%;border-collapse:collapse;font-size:.875rem;line-height:1.4;margin:.7rem 0 1rem}
.portal-results th,.portal-results td{padding:.55rem .35rem;border-bottom:1px solid #526a76;text-align:right}
.portal-results th:first-child{text-align:left;font-weight:400}.portal-results thead th{font-weight:400;color:#bdcfd5;font-size:.8125rem}
.portal-results td{white-space:nowrap;font-weight:700;font-size:1.05rem;font-variant-numeric:tabular-nums}
.portal-results td:last-child{color:#f2a887}
.portal-demo details{font-size:.875rem;margin-top:1rem}.portal-demo summary{cursor:pointer;color:#f2f8f9;font-weight:600}.portal-demo details p{font-size:.875rem;margin-top:.75rem}
.portal-demo-source{display:inline-block;margin-top:.8rem;font-size:.875rem;font-weight:600}
.portal-topics{padding-top:.5rem;padding-bottom:3rem}.portal-topics>h2,.portal-featured>h2,.portal-library>h2{font-size:1.8rem;letter-spacing:-.035em;line-height:1.2;margin-bottom:1.8rem}
.portal-topic{display:grid;grid-template-columns:1fr 1fr;gap:3.5rem;border-top:1px solid #b7c9d0;padding:1.7rem 0 1.8rem}
.portal-topic:last-child{border-bottom:1px solid #b7c9d0}.portal-topic .portal-kicker{margin-bottom:.65rem}
.portal-topic h3{font-size:1.75rem;font-weight:700;line-height:1.2;letter-spacing:-.035em;margin-bottom:.3rem}
.portal-topic h3 a{text-decoration:none}.portal-topic h3 a:hover{text-decoration:underline}
.portal-topic p{margin-bottom:1rem;color:#405b67}.portal-topic p.portal-kicker{color:#006e69}
.portal-section-link{font-size:1rem;font-weight:700}.portal-section-link span{display:block;font-weight:400;font-size:.875rem;color:#526a76;margin-top:.25rem}
.portal-lower{display:grid;grid-template-columns:1fr 1fr;gap:3.5rem;padding-top:2.5rem;padding-bottom:3rem;background:#e1ebed}
.portal-lower h2{font-size:1.75rem;line-height:1.2;letter-spacing:-.035em;margin-bottom:1rem}.portal-lower a{font-weight:700}.portal-lower p{margin-bottom:1rem}
.portal-footer{display:flex;justify-content:space-between;gap:3rem;padding-top:2rem;padding-bottom:2rem;border-top:1px solid #bccdd3;font-size:.875rem;color:#405b67}.portal-footer p{margin:0}.portal-footer p:last-child{max-width:40rem}
.portal-pillar-hero{padding-top:2rem;padding-bottom:2rem}.portal-breadcrumb{display:inline-block;font-size:.875rem;margin-bottom:1.8rem}.portal-pillar-hero h1{font-size:clamp(2.4rem,4.5vw,4.2rem);line-height:1.08;letter-spacing:-.055em;margin-bottom:2rem;overflow-wrap:anywhere}.portal-pillar-hero>.portal-kicker{margin-bottom:.5rem}
.portal-pillar-intro{display:grid;grid-template-columns:.85fr 1.15fr;gap:3.5rem;border-top:2px solid #c76543;padding-top:1.8rem}.portal-pillar-intro h2{font-size:1.9rem;line-height:1.2;letter-spacing:-.035em}.portal-pillar-intro p{font-size:1.05rem}
.portal-featured{padding-top:1.3rem;padding-bottom:3rem}.portal-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}.portal-feature{background:#fff;display:flex;flex-direction:column;border-bottom:2px solid #b7c9d0}.portal-feature img{width:100%;height:auto;display:block;background:#e4ecee}.portal-feature>div{padding:1.5rem;display:flex;flex-direction:column;flex:1}.portal-feature h3{font-size:1.35rem;line-height:1.25;letter-spacing:-.025em}.portal-feature h3 a{text-decoration:none}.portal-feature h3 a:hover{text-decoration:underline}.portal-feature p{font-size:.9375rem}.portal-feature p.portal-kicker{font-size:.8125rem}.portal-feature>div>a{font-weight:700;margin-top:auto;font-size:.9375rem}
.portal-library{padding-bottom:3rem}.portal-library-intro{max-width:58rem;color:#405b67;margin-bottom:2rem}.portal-method{display:grid;grid-template-columns:8rem minmax(0,1fr) 10rem;gap:1.5rem;border-top:1px solid #b7c9d0;padding:1.5rem 0}.portal-method:last-child{border-bottom:1px solid #b7c9d0}
.portal-method-id{font-size:1.5rem;font-weight:700;color:#b94a2a}.portal-method-id>span{display:block;font-size:.875rem;font-weight:400;color:#405b67;line-height:1.4;margin-top:.35rem}.portal-method h3{font-size:1.3rem;letter-spacing:-.02em;line-height:1.25;margin-bottom:.6rem}.portal-method h3 a{text-decoration:none}.portal-method h3 a:hover{text-decoration:underline}.portal-method p{font-size:.9375rem;margin-bottom:.6rem}.portal-model-link{font-size:.875rem;font-weight:600}.portal-method dl{margin:0}.portal-method dl>div+div{margin-top:.6rem}.portal-method dt{font-size:.8125rem;color:#526a76}.portal-method dd{font-size:1rem;font-weight:700;margin:0}
@media(max-width:1100px){.portal-header-inner{gap:1rem;padding:1rem 1.5rem}.portal-nav{order:3;flex-basis:100%;justify-content:space-between;gap:.7rem}.portal-sections>div{z-index:31}.portal-wrap{padding-left:1.5rem;padding-right:1.5rem}.portal-hero,.portal-topic,.portal-pillar-intro,.portal-lower{gap:2rem}.portal-demo{padding:1.4rem}.portal-feature>div{padding:1.1rem}}
@media(max-width:740px){.portal-hero{grid-template-columns:1fr;padding-top:1.5rem;gap:1.5rem}.portal-opening{padding-top:0}.portal-opening h1{font-size:2.65rem;margin-bottom:1rem}.portal-lead{font-size:1.05rem;margin-bottom:1rem}.portal-small{margin:.75rem 0 0}.portal-demo{max-width:none}.portal-topic{grid-template-columns:1fr;gap:.75rem}.portal-topic h3{font-size:1.55rem}.portal-topic p{margin-bottom:.75rem}.portal-lower,.portal-pillar-intro{grid-template-columns:1fr;gap:1rem}.portal-feature-grid{grid-template-columns:1fr}.portal-feature{display:grid;grid-template-columns:35% minmax(0,1fr)}.portal-feature img{align-self:start}.portal-method{grid-template-columns:5rem minmax(0,1fr);gap:1rem}.portal-method dl{grid-column:2;display:flex;gap:1.3rem;flex-wrap:wrap}.portal-method dl>div+div{margin-top:0}.portal-footer{display:block}.portal-footer p+p{margin-top:1rem}.portal-pillar-intro h2{margin-bottom:0}.portal-pillar-hero h1{font-size:2.6rem}.portal-nav{justify-content:flex-start;column-gap:1.25rem;row-gap:.3rem}}
@media(max-width:420px){.portal-header-inner{padding:1rem}.portal-header .portal-brand{font-size:1.05rem}.portal-brand small{font-size:.8125rem}.portal-mark{display:none}.portal-nav{gap:.3rem 1rem}.portal-nav>a,.portal-sections>summary{font-size:.875rem}.portal-wrap{padding-left:1rem;padding-right:1rem}.portal-opening h1,.portal-pillar-hero h1{font-size:2.3rem}.portal-feature{display:block}.portal-feature img{max-height:150px;object-fit:cover}.portal-method{grid-template-columns:1fr}.portal-method-id>span{display:inline;margin-left:.5rem}.portal-method dl{grid-column:1}.portal-demo label{display:block}.portal-demo output{float:none;display:block;margin-top:.3rem}.portal-results,.portal-results thead,.portal-results tbody{display:block}.portal-results tr{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #526a76}.portal-results thead th:first-child{display:none}.portal-results tbody th{grid-column:1/-1;padding-bottom:0}.portal-results th,.portal-results td{border:0}.portal-results td{text-align:right}.portal-language{margin-left:0}.portal-demo h2{font-size:1.65rem}}
@media(prefers-reduced-motion:reduce){.portal-page *{scroll-behavior:auto!important;transition:none!important}}
@media print{.portal-header,.portal-demo input,.portal-jump{display:none}.portal-page{background:white;color:black}.portal-demo{background:white;color:black;border:1px solid #888}.portal-demo p,.portal-demo details,.portal-demo .portal-kicker,.portal-results td:last-child{color:black}.portal-feature-grid{display:block}.portal-topic,.portal-method,.portal-feature{break-inside:avoid}.portal-footer{font-size:10pt}}
/* Text enlargement must not force grid tracks beyond the mobile viewport. */
.portal-page main *{min-width:0}.portal-page p,.portal-page li,.portal-page a,.portal-page h2,.portal-page h3,.portal-page th{overflow-wrap:anywhere}
.portal-sections>div{min-width:min(17rem,calc(100vw - 2rem))}
@media(max-width:420px){.portal-demo{padding:1rem}.portal-results td{font-size:1rem;padding-left:.15rem;padding-right:.15rem}}

/* A single catalogue connects the article series and the original atlas. */
.portal-guide>div{left:auto;right:0}
.portal-discovery{display:grid;grid-template-columns:1.1fr 1fr;gap:3.5rem;padding-top:2rem;padding-bottom:2.6rem;border-top:3px solid #006e69;border-bottom:1px solid #b7c9d0;margin-bottom:1.5rem}
.portal-discovery h2{font-size:2rem;line-height:1.15;letter-spacing:-.035em;max-width:24ch;margin-bottom:1rem}
.portal-discovery p{max-width:43rem;line-height:1.6}.portal-discovery .portal-kicker{margin-bottom:.6rem}
.portal-discovery-guides{display:flex;flex-direction:column;justify-content:center;gap:1.25rem}
.portal-discovery-guides>a{display:block;border-bottom:1px solid #b7c9d0;padding-bottom:1rem;text-decoration:none}
.portal-discovery-guides strong{display:block;font-size:1.2rem;text-decoration:underline;text-underline-offset:.2em}
.portal-discovery-guides span{display:block;font-size:.95rem;line-height:1.55;color:#405b67;margin-top:.5rem}
@media(max-width:740px){.portal-discovery{grid-template-columns:1fr;gap:1.8rem}.portal-sections>div{position:static;min-width:0;width:min(17rem,calc(100vw - 2rem));margin-top:.5rem}.portal-discovery h2{font-size:1.7rem}}
