/* Air2Protein editorial presentation layer, October 2026.
   This file changes presentation only. Source copy, figures and links remain
   in their original HTML; legacy interaction classes remain supported. */

body.a2p-page,
body.a2p-page.editorial-page.hp-hybrid {
  --paper:rgba(241,237,229,.025);
  --paper-strong:transparent;
  --ink:#f1ede5;
  --muted:#c3c0c6;
  --coral:#e8864e;
  --coral-dark:#e8864e;
  --teal:#8fd4e8;
  --teal-dark:#8fd4e8;
  --space:#080b19;
  --space-ink:#f1ede5;
  --line:rgba(241,237,229,.15);
  --editorial-shell:1240px;
  --editorial-gutter:24px;
  --editorial-sidebar:232px;
  --editorial-column-gap:clamp(36px,4.6vw,68px);
  --editorial-anchor-offset:96px;
  --nav-height:62px;
  color:var(--bone,#f1ede5);
  font-family:var(--sans,"Helvetica Neue",Arial,sans-serif);
  line-height:1.7;
  background:linear-gradient(180deg,#0a0e20 0%,#111027 28%,#1e1429 60%,#11132b 100%);
  background-attachment:fixed;
  overflow-x:clip;
}
html:has(> body.a2p-page) { overflow-x:clip; overflow-y:visible; }
body.a2p-page:not(.menu-open):not(.hp-modal-open) { overflow-y:visible; }
body.a2p-page.menu-open { overflow:hidden; }
body.a2p-page *,body.a2p-page *::before,body.a2p-page *::after { box-sizing:border-box; }
body.a2p-page :is(main,.page-main) { background:transparent; }
@media(max-width:760px) {
  body.a2p-page .page-main > .container > .row:has(> .col-8) { display:block; }
  body.a2p-page .page-main > .container > .row > :is(.col-8,.col-4) { width:100%; min-width:0; }
  body.a2p-page .page-main > .container > .row > .col-4 { margin-top:36px; }
}
body.a2p-page [hidden] { display:none !important; }
body.a2p-page :is(a,button,summary,select,input,textarea,[tabindex]):focus-visible {
  outline:2px solid var(--mars-lt,#e8864e); outline-offset:5px;
}
body.a2p-page :is(h1,h2,h3,h4,h5) { text-wrap:balance; }
body.a2p-page :is(p,li,figcaption,td,th) { overflow-wrap:break-word; }
body.a2p-page :is(.editorial-section,.eng-stage,.software-tool,.content-band,[id^="cycle-"]) {
  scroll-margin-top:96px;
}
body.a2p-page .skip-link { background:#c8552c; color:#fff; }

/* The existing menu controller uses .is-open. Keep its state model while
   giving the navigation the reference design's compact instrument styling. */
body.a2p-page .site-nav.sitenav {
  --ink:#f1ede5; --coral:#e8864e; --coral-dark:#e8864e;
  --line:rgba(241,237,229,.15);
  position:sticky; top:0; left:auto; z-index:100;
  width:100%; height:62px; color:var(--bone,#f1ede5);
  border-bottom:1px solid rgba(241,237,229,.09);
  background:rgba(7,9,18,.9);
  backdrop-filter:blur(18px) saturate(1.2);
  font-family:var(--mono,ui-monospace,monospace); line-height:1.4;
}
body.a2p-page .site-nav .nav-inner.wrap {
  width:min(1240px,100%); min-height:62px; height:62px;
  margin:auto; padding-inline:max(24px,env(safe-area-inset-left,0px));
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
body.a2p-page .site-nav .brand {
  display:flex; align-items:center; gap:9px; min-width:0; flex:none;
  color:var(--bone,#f1ede5); text-decoration:none;
}
body.a2p-page .site-nav .brand img.brand-mark {
  width:32px; height:36px; max-width:none;
  object-fit:contain; filter:none; background:transparent;
}
body.a2p-page .site-nav .brand > span {
  font:500 11px/1.2 var(--mono,ui-monospace,monospace);
  letter-spacing:.13em; text-transform:uppercase;
}
body.a2p-page .site-nav .nav-links.navset {
  position:static; display:flex; align-items:center; justify-content:flex-end;
  gap:1px; width:auto; height:auto; margin-left:auto; padding:0;
  color:var(--bone,#f1ede5); background:none; transform:none; overflow:visible;
}
body.a2p-page .site-nav .nav-group.navgrp { position:relative; display:block; height:auto; }
body.a2p-page .site-nav .nav-group > button {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  width:auto; min-height:44px; padding:8px 10px;
  border:0; background:transparent; color:#a7a6b0;
  font:400 10px/1.4 var(--mono,ui-monospace,monospace);
  letter-spacing:.12em; text-transform:uppercase; white-space:nowrap;
}
body.a2p-page .site-nav .nav-group > button::after {
  width:4px; height:4px; margin:0 0 2px 2px;
  border-width:0 1px 1px 0;
}
body.a2p-page .site-nav .nav-group:is(:hover,.is-open) > button,
body.a2p-page .site-nav .nav-group > button:focus-visible { color:var(--bone,#f1ede5); }
body.a2p-page .site-nav .nav-group.current-section > button { color:var(--mars-lt,#e8864e); }
body.a2p-page .site-nav .nav-menu.navmenu {
  position:absolute; inset:calc(100% + 1px) auto auto 0;
  display:block; min-width:202px; margin:0; padding:5px;
  border:1px solid rgba(241,237,229,.12);
  color:var(--bone,#f1ede5); background:rgba(10,13,26,.98);
  box-shadow:0 16px 35px #0005;
  backdrop-filter:blur(18px);
  opacity:0; visibility:hidden; transform:translateY(6px);
}
body.a2p-page .site-nav .nav-menu-right { left:auto; right:0; }
body.a2p-page .site-nav .nav-group.is-open .nav-menu {
  opacity:1; visibility:visible; transform:none;
}
body.a2p-page .site-nav .nav-menu a {
  display:flex; align-items:center; min-height:39px; padding:9px 11px;
  border-left:1px solid transparent; color:#b9b6be;
  font:400 10px/1.5 var(--mono,ui-monospace,monospace);
  letter-spacing:.09em; text-transform:uppercase; text-decoration:none;
  white-space:nowrap;
}
body.a2p-page .site-nav .nav-menu a:is(:hover,:focus-visible),
body.a2p-page .site-nav .nav-menu a[aria-current="page"] {
  color:var(--mars-lt,#e8864e); background:rgba(241,237,229,.05);
  border-left-color:var(--mars-lt,#e8864e);
}
body.a2p-page .site-nav .nav-links > a.nav-cta.navcta {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:34px; margin-left:8px; padding:7px 12px;
  color:var(--mars-lt,#e8864e); background:transparent !important;
  border:1px solid rgba(200,85,44,.6) !important;
  box-shadow:none;
  font:400 10px/1.4 var(--mono,ui-monospace,monospace);
  letter-spacing:.12em; text-transform:uppercase;
}
body.a2p-page .site-nav .nav-links > a.navcta:is(:hover,:focus-visible) {
  color:#fff; background:#c8552c !important;
}
body.a2p-page .site-nav .menu-toggle.navtoggle {
  display:none; width:40px; height:36px; padding:5px; margin-left:auto;
  border:1px solid rgba(241,237,229,.15); background:transparent; color:var(--bone,#f1ede5);
}
body.a2p-page .site-nav .menu-toggle span {
  width:18px; height:1px; margin:5px auto; background:currentColor;
}

/* Project mastheads retain their supplied background and every original
   gallery image; images are mounted in full rather than cropped. */
body.a2p-page:not(.a2p-home) .page-hero.hero {
  display:block; position:relative; min-height:0; isolation:isolate;
  padding:0; border-bottom:1px solid rgba(241,237,229,.1);
  background-color:#0c0e22;
}
body.a2p-page:not(.a2p-home) .page-hero.hero::before {
  background:linear-gradient(90deg,rgba(8,10,24,.88),rgba(8,10,24,.58) 50%,rgba(8,10,24,.32)),
    linear-gradient(0deg,#0d1025,transparent 55%);
}
body.a2p-page:not(.a2p-home) .page-hero-inner {
  position:relative; z-index:2; width:min(1240px,100%); min-height:0;
  margin:auto; padding:clamp(52px,7.5vw,96px) 24px clamp(52px,7vw,86px);
  display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  align-items:center; gap:clamp(32px,4.5vw,64px);
}
body.a2p-page:not(.a2p-home) .page-hero-inner > * { min-width:0; }
body.a2p-page:not(.a2p-home) .project-hero--text .page-hero-inner,
body.a2p-page:not(.a2p-home) .page-hero-inner:not(:has(.project-photo-wall)) {
  grid-template-columns:minmax(0,1fr);
}
body.a2p-page:not(.a2p-home) .hero-kicker {
  margin:0 0 30px; color:var(--mars-lt,#e8864e);
  font:400 10px/1.5 var(--mono,ui-monospace,monospace);
  letter-spacing:.17em; text-transform:uppercase;
}
body.a2p-page:not(.a2p-home) .hero-kicker::before { width:22px; height:1px; }
body.a2p-page:not(.a2p-home) .page-hero h1,
body.a2p-page:not(.a2p-home) .model-intro-copy h1 {
  max-width:100%; margin:0; font-family:var(--sans,"Helvetica Neue",Arial,sans-serif);
  font-size:clamp(42px,6.3vw,84px); font-weight:760; line-height:.98;
  letter-spacing:-.045em; font-variation-settings:"wdth" 112;
  color:#f5e4d5; background:linear-gradient(176deg,#fff8f0 8%,#f3decb 46%,#e0a882 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  text-shadow:none; overflow-wrap:normal;
}
body.a2p-page:not(.a2p-home) .page-hero .lead {
  max-width:51ch; margin:26px 0 0; color:#d3ccd1;
  font-size:clamp(16px,1.5vw,19px); line-height:1.68; font-weight:400;
}
body.a2p-page:not(.a2p-home) .project-hero-copy { text-shadow:none; }
body.a2p-page:not(.a2p-home) .project-photo-wall {
  height:clamp(330px,34vw,472px); display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px; padding:0; border:0; border-radius:0; background:none; box-shadow:none;
  overflow:hidden; align-items:stretch;
}
body.a2p-page:not(.a2p-home) .project-photo-column { overflow:hidden; border-radius:0; }
body.a2p-page:not(.a2p-home) .project-photo-track {
  animation:project-photo-flow 28s linear infinite;
}
body.a2p-page:not(.a2p-home) .project-photo-column--reverse .project-photo-track {
  animation-direction:reverse; animation-duration:34s;
}
body.a2p-page:not(.a2p-home) .project-photo-wall:is(:hover,:focus,:focus-within) .project-photo-track {
  animation-play-state:paused;
}
body.a2p-page:not(.a2p-home) .project-photo-set { gap:11px; padding:0 0 11px; }
body.a2p-page:not(.a2p-home) .project-photo-set[aria-hidden="true"] { display:grid; }
body.a2p-page:not(.a2p-home) .project-photo-card {
  height:clamp(112px,10.5vw,146px); padding:6px; border-radius:0;
  border:1px solid rgba(255,199,154,.32); background:#fff; box-shadow:0 12px 30px #0003;
}
body.a2p-page:not(.a2p-home) .project-photo-card img {
  width:100%; height:100%; max-height:100%; object-fit:contain; filter:none; opacity:1;
}
body.a2p-page:not(.a2p-home) .model-intro-meta {
  font-family:var(--mono,ui-monospace,monospace); color:#efba9b; font-weight:400;
  font-size:10px; letter-spacing:.17em;
}
body.a2p-page:not(.a2p-home) .unified-opening-extra .lead { color:#e1d6d3; }

/* One restrained reading frame for original editorial and Dry Lab layouts. */
body.a2p-page:not(.a2p-home) :is(.editorial-layout.doc,.eng-layout) {
  display:grid; grid-template-columns:232px minmax(0,1fr);
  gap:clamp(36px,4.6vw,68px); width:min(1240px,100%);
  margin:0 auto; padding:clamp(48px,7vw,88px) 24px clamp(64px,9vw,118px);
  align-items:start;
}
body.a2p-page:not(.a2p-home) :is(.editorial-layout,.eng-layout) > * { min-width:0; }
body.a2p-page:not(.a2p-home) :is(.editorial-sidebar.toc,.eng-sidebar) {
  display:block; position:sticky; top:86px; z-index:4;
  width:auto; max-width:100%; max-height:calc(100svh - 108px);
  overflow-x:hidden; overflow-y:auto; align-self:start; justify-self:stretch;
  margin:0; padding:0 10px 0 0; background:transparent; box-shadow:none; translate:none;
  scrollbar-width:thin; scrollbar-color:#504353 transparent;
}
body.a2p-page:not(.a2p-home) :is(.editorial-contents,.eng-toc) {
  border-top:1px solid var(--line);
}
body.a2p-page:not(.a2p-home) :is(.editorial-contents,.eng-toc) > summary {
  margin:0 0 8px; padding:15px 0 13px; border-bottom:1px solid var(--line);
  color:#9e99a8; font:400 10px/1.5 var(--mono,ui-monospace,monospace);
  letter-spacing:.16em; text-transform:uppercase; cursor:pointer; list-style:none;
}
body.a2p-page:not(.a2p-home) :is(.editorial-contents,.eng-toc) > summary > span {
  font-size:14px; line-height:1;
}
body.a2p-page:not(.a2p-home) :is(.editorial-contents,.eng-toc) nav { min-width:0; padding:0; }
body.a2p-page:not(.a2p-home) :is(.editorial-toc-link,.eng-nav-major) {
  display:flex; align-items:baseline; gap:9px;
  width:100%; padding:8px 0 8px 10px; margin:0;
  border-left:1px solid transparent; color:#aaa6b2;
  font:400 12.5px/1.45 var(--sans,"Helvetica Neue",Arial,sans-serif);
  text-decoration:none; white-space:normal;
}
body.a2p-page:not(.a2p-home) :is(.editorial-toc-number,.eng-nav-major > span:first-child) {
  flex:0 0 23px; margin:0; color:#807382;
  font:400 9px/1.5 var(--mono,ui-monospace,monospace); letter-spacing:.04em;
}
body.a2p-page:not(.a2p-home) .editorial-toc-label { white-space:normal; overflow-wrap:break-word; }
body.a2p-page:not(.a2p-home) :is(.editorial-toc-link,.eng-toc nav a):is(:hover,:focus-visible),
body.a2p-page:not(.a2p-home) :is(.editorial-toc-link,.eng-toc nav a)[aria-current="location"] {
  color:var(--bone,#f1ede5); background:rgba(241,237,229,.035); border-left-color:#e8864e;
}
body.a2p-page:not(.a2p-home) .editorial-toc-link[aria-current="location"] .editorial-toc-number { color:#e8864e; }
body.a2p-page:not(.a2p-home) :is(.editorial-back-top,.eng-back-top) {
  display:block; margin-top:18px; padding:14px 0 0;
  border-top:1px solid var(--line); color:#9e99a8;
  font:400 9px/1.6 var(--mono,ui-monospace,monospace);
  letter-spacing:.12em; text-transform:uppercase;
}
body.a2p-page:not(.a2p-home) :is(.eng-toc-stages,.eng-nav-stages) { gap:2px; padding:0 0 8px 28px; }
body.a2p-page:not(.a2p-home) :is(.eng-toc-stages,.eng-nav-stages) a {
  padding:5px 2px; color:#a6a0ae; font:400 9px/1.5 var(--mono,ui-monospace,monospace);
  text-decoration:none; white-space:normal;
}
body.a2p-page:not(.a2p-home) :is(.editorial-section.sec,.content-band) {
  position:relative; overflow:visible;
}
body.a2p-page:not(.a2p-home) .editorial-section.sec { padding:0 0 clamp(56px,7vw,88px); }
body.a2p-page:not(.a2p-home) .editorial-section.sec + .editorial-section.sec {
  padding-top:clamp(36px,5vw,62px); border-top:1px solid rgba(241,237,229,.09);
}
body.a2p-page:not(.a2p-home) :is(.editorial-section-kicker.kick,.section-kicker) {
  margin:0 0 17px; color:#e8864e;
  font:400 10px/1.6 var(--mono,ui-monospace,monospace); letter-spacing:.15em;
}
body.a2p-page:not(.a2p-home) :is(.editorial-section,.article-flow) h2,
body.a2p-page:not(.a2p-home) :is(.group-heading,.directory-heading) h2 {
  max-width:26ch; margin:0 0 28px; color:#f1e6de;
  font:650 clamp(28px,3.15vw,43px)/1.12 var(--sans,"Helvetica Neue",Arial,sans-serif);
  letter-spacing:-.035em; font-variation-settings:"wdth" 108;
  overflow-wrap:break-word;
}
body.a2p-page:not(.a2p-home) :is(.editorial-section,.article-flow) :is(h3,h4),
body.a2p-page:not(.a2p-home) .eng-cycle-head h3 {
  max-width:100%; margin:36px 0 18px; color:#e9dbd3;
  font:600 clamp(21px,2vw,27px)/1.25 var(--sans,"Helvetica Neue",Arial,sans-serif);
  letter-spacing:-.025em;
}
body.a2p-page:not(.a2p-home) :is(.editorial-prose.prose,.prose) {
  display:block; max-width:none;
}
body.a2p-page:not(.a2p-home) :is(.editorial-prose,.article-flow) > :is(p,ul,ol),
body.a2p-page:not(.a2p-home) :is(.eng-stage,.eng-overview) > :is(p,ul,ol),
body.a2p-page:not(.a2p-home) .eng-cycle-subtitle {
  max-width:76ch; margin:21px 0 0; color:#c3bec7;
  font-family:var(--sans,"Helvetica Neue",Arial,sans-serif);
  font-size:16.5px; font-weight:400; line-height:1.8;
}
body.a2p-page:not(.a2p-home) :is(.editorial-prose,.article-flow) > :is(p,ul,ol):first-child { margin-top:0; }
body.a2p-page:not(.a2p-home) :is(.editorial-prose,.article-flow) > :is(ul,ol) { padding-left:24px; }
body.a2p-page:not(.a2p-home) :is(.editorial-prose,.article-flow) li + li { margin-top:8px; }
body.a2p-page:not(.a2p-home) :is(.editorial-prose,.article-flow,.eng-stage) :is(strong,b) { color:#f1ede5; font-weight:600; }
body.a2p-page:not(.a2p-home) :is(.editorial-prose,.article-flow) a:not(:has(img)) {
  color:#edaa81; text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px;
}
body.a2p-page:not(.a2p-home) :is(.editorial-prose,.article-flow) a:hover { color:#fff0df; }
body.a2p-page:not(.a2p-home) .editorial-references p {
  max-width:none; color:#aaa6b3; font-size:13px; line-height:1.75;
  overflow-wrap:anywhere; scroll-margin-top:96px;
}
body.a2p-page:not(.a2p-home) .editorial-split {
  display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:32px; align-items:start;
}
body.a2p-page:not(.a2p-home) .design-mechanism { display:flow-root; }
body.a2p-page:not(.a2p-home) .design-mechanism > .design-figure {
  float:left; width:calc((100% - 32px)/2); margin:0 32px 24px 0;
}

/* True-colour scientific plates: no filter, opacity or cropped aspect ratio. */
body.a2p-page:not(.a2p-home) :is(.editorial-figure.fig,.drylab-figure,.eng-figure,.lca-figure,.md-figure) {
  max-width:100%; margin:clamp(28px,3.8vw,44px) 0;
  border-block:1px solid var(--line); border-radius:0;
  padding:14px; background:rgba(7,10,21,.42);
  box-shadow:none; backdrop-filter:none; overflow:visible;
}
body.a2p-page:not(.a2p-home) :is(.editorial-figure,.drylab-figure,.eng-figure,.lca-figure,.md-figure) > a {
  display:block; width:100%; max-width:100%; margin:auto;
  background:#fff; box-shadow:0 0 0 1px rgba(255,199,154,.24);
}
body.a2p-page:not(.a2p-home) :is(.editorial-figure,.drylab-figure,.eng-figure,.lca-figure,.md-figure) img {
  display:block; width:100%; max-width:100%; height:auto; max-height:none;
  object-fit:contain; filter:none; opacity:1; border:0; border-radius:0;
  background:#fff;
}
body.a2p-page:not(.a2p-home) :is(.editorial-figure,.drylab-figure,.eng-figure,.lca-figure,.md-figure) figcaption {
  max-width:none; margin:13px 0 0; padding:12px 0 0;
  border-top:1px solid rgba(241,237,229,.08);
  color:#b4aeba; font:400 12.5px/1.7 var(--sans,"Helvetica Neue",Arial,sans-serif);
  text-transform:none; letter-spacing:0;
}
body.a2p-page:not(.a2p-home) :is(.editorial-figure,.drylab-figure) figcaption :is(strong,b) { color:#e8dfd8; }
body.a2p-page:not(.a2p-home) .design-figure-1 > a { max-width:560px; }
body.a2p-page:not(.a2p-home) .editorial-split > .editorial-figure { margin:0; width:100%; }

/* Scientific plates share a quiet dark surround; the original image canvas,
   colours and aspect ratio stay intact. HP has its own interactive frames. */
@media screen {
  body.a2p-page:not(.a2p-home):not(.home-original):not(.hp-page) main
    :is(.editorial-figure,.drylab-figure,.eng-figure,.lca-figure,.md-figure,.lca-model .article-flow > figure) {
    box-sizing:border-box; max-width:100%;
    padding:16px; border:1px solid rgba(211,193,219,.18); border-radius:12px;
    background:linear-gradient(145deg,rgba(10,13,25,.94),rgba(7,10,19,.84));
    box-shadow:0 18px 44px rgba(3,5,12,.18),0 0 28px rgba(37,30,57,.12);
    backdrop-filter:none; overflow:visible;
  }
  body.a2p-page:not(.a2p-home):not(.home-original):not(.hp-page) main
    :is(.editorial-figure,.drylab-figure,.eng-figure,.lca-figure,.md-figure,.lca-model .article-flow > figure) > a {
    display:block; max-width:100%; margin-inline:auto; border:0; border-radius:2px;
    box-shadow:0 0 0 1px rgba(233,223,240,.12); overflow:visible;
  }
  body.a2p-page:not(.a2p-home):not(.home-original):not(.hp-page) main
    :is(.editorial-figure,.drylab-figure,.eng-figure,.lca-figure,.md-figure,.lca-model .article-flow > figure) img {
    display:block; max-width:100%; height:auto; max-height:none;
    object-fit:contain; filter:none; opacity:1; mix-blend-mode:normal;
  }
  body.a2p-page:not(.a2p-home):not(.home-original):not(.hp-page) main
    :is(.editorial-figure,.drylab-figure,.eng-figure,.lca-figure,.md-figure,.lca-model .article-flow > figure) figcaption {
    max-width:none; margin:15px 0 0; padding:13px 0 0;
    border-top:1px solid rgba(233,223,240,.12); background:transparent;
    color:#cbc4d1; font:400 14px/1.72 var(--sans,"Archivo",sans-serif);
    letter-spacing:0; text-transform:none; text-shadow:none;
  }
  body.a2p-page:not(.a2p-home):not(.home-original):not(.hp-page) main
    :is(.editorial-figure,.drylab-figure,.eng-figure,.lca-figure,.md-figure,.lca-model .article-flow > figure) figcaption :is(p,li,span) {
    color:inherit; font:inherit; letter-spacing:inherit;
  }
  body.a2p-page:not(.a2p-home):not(.home-original):not(.hp-page) main
    :is(.editorial-figure,.drylab-figure,.eng-figure,.lca-figure,.md-figure,.lca-model .article-flow > figure) figcaption :is(strong,b) {
    color:#f0e6de; font-weight:600;
  }
  body.a2p-page:not(.a2p-home):not(.home-original):not(.hp-page) main
    :is(.editorial-figure,.drylab-figure,.eng-figure,.lca-figure,.md-figure,.lca-model .article-flow > figure) figcaption a {
    color:#eab29c; text-decoration:underline; text-underline-offset:3px;
  }
}

/* Tables and equations scroll inside the article instead of stretching it. */
body.a2p-page:not(.a2p-home) .editorial-table {
  max-width:100%; margin:32px 0; padding:0; overflow-x:auto;
  border-block:1px solid var(--line); background:rgba(7,10,21,.4);
  overscroll-behavior-inline:contain; color:#c3bec7;
}
body.a2p-page:not(.a2p-home) .editorial-table table {
  width:100%; border-collapse:collapse; color:inherit; font-size:13.5px; line-height:1.65;
}
body.a2p-page:not(.a2p-home) .editorial-table caption { padding:14px; color:#c3bec7; }
body.a2p-page:not(.a2p-home) .editorial-table :is(th,td) {
  padding:14px 16px; border-bottom:1px solid rgba(241,237,229,.1); color:#c3bec7;
}
body.a2p-page:not(.a2p-home) .editorial-table th {
  background:rgba(241,237,229,.04); color:#e8d4c6;
  font-family:var(--mono,ui-monospace,monospace); font-size:10px; font-weight:500; letter-spacing:.04em;
}
body.a2p-page:not(.a2p-home) .editorial-table td:first-child { color:#e4dbd6; }
body.a2p-page:not(.a2p-home) .editorial-table tbody tr:nth-child(even) { background:rgba(241,237,229,.02); }
body.a2p-page:not(.a2p-home) :is(.editorial-equation,.protocol-equation) {
  color:#ded7dc; background:rgba(241,237,229,.035); border-left:2px solid #bf7356;
}
body.a2p-page:not(.a2p-home) :is(.eng-pending,.eng-stage[data-stage="learn"]) {
  padding:22px 24px; border-left:2px solid #7d9ba5; background:rgba(143,212,232,.045); color:#c3bec7;
}
body.a2p-page:not(.a2p-home) .eng-stage[data-stage="learn"] :is(h3,h4) { color:#bbdde1; }
body.a2p-page:not(.a2p-home) .eng-cycle { margin-top:48px; padding-top:36px; }
body.a2p-page:not(.a2p-home) .eng-stage { margin-top:34px; overflow:visible; }
body.a2p-page:not(.a2p-home) .eng-cycle-head h3 { margin-top:12px; }

/* Short articles and team directories use the same measure and type rhythm. */
body.a2p-page:not(.a2p-home) .content-band { background:transparent; padding-block:64px 78px; }
body.a2p-page:not(.a2p-home) .content-layout {
  width:min(1240px,100%); margin:auto; padding-inline:24px;
  grid-template-columns:180px minmax(0,1fr); gap:clamp(36px,4.6vw,68px);
}
body.a2p-page:not(.a2p-home) .article-flow { max-width:890px; min-width:0; }
body.a2p-page:not(.a2p-home) .section-index {
  border-top:1px solid var(--line); padding-top:12px;
}
body.a2p-page:not(.a2p-home) .section-index strong {
  margin:0; color:#e8864e; font:400 30px/1.1 var(--sans,"Helvetica Neue",Arial,sans-serif);
}
body.a2p-page:not(.a2p-home) .section-index span {
  margin-top:12px; color:#95909e; font:400 9px/1.6 var(--mono,ui-monospace,monospace); letter-spacing:.1em;
}
body.a2p-page:not(.a2p-home) .detail-row { grid-template-columns:120px minmax(0,1fr); gap:24px; }
body.a2p-page:not(.a2p-home) .detail-row strong { color:#e8864e; font:400 10px/1.7 var(--mono,ui-monospace,monospace); }
body.a2p-page:not(.a2p-home) .detail-row p { color:#c3bec7; font-size:15px; }
body.a2p-page:not(.a2p-home) :is(.team-band,.directory-band) { padding-block:64px 96px; background:transparent; }
body.a2p-page:not(.a2p-home) :is(.team-inner,.directory-inner,.related-inner) {
  width:min(1240px,100%); margin:auto; padding-inline:24px;
}
body.a2p-page:not(.a2p-home) .group-heading { gap:32px; }
body.a2p-page:not(.a2p-home) .group-heading p { margin:0; color:#aaa5b1; font-size:15px; line-height:1.7; }
body.a2p-page:not(.a2p-home) .member-grid { gap:22px; margin-top:36px; }
body.a2p-page:not(.a2p-home) .member-card {
  border:1px solid rgba(241,237,229,.12); border-radius:0; background:rgba(7,10,21,.4);
}
body.a2p-page:not(.a2p-home) .member-copy h3 {
  color:#f0dfd3; font:600 22px/1.15 var(--sans,"Helvetica Neue",Arial,sans-serif); letter-spacing:-.025em;
}
body.a2p-page:not(.a2p-home) .member-copy .role { color:#e8864e; font:400 9px/1.5 var(--mono,ui-monospace,monospace); letter-spacing:.1em; }
body.a2p-page:not(.a2p-home) .member-copy p { color:#b3adba; }
body.a2p-page:not(.a2p-home) #team-group-photo { margin-top:32px; }
body.a2p-page:not(.a2p-home) #team-group-photo figcaption { color:#aaa5b1; letter-spacing:0; text-transform:none; font-size:12px; }
body.a2p-page:not(.a2p-home) .member-portrait img {
  object-fit:contain; filter:none; transform:none;
}
body.a2p-page:not(.a2p-home) a.protocol-card {
  background:rgba(7,10,21,.4); border-color:rgba(241,237,229,.15); border-top-color:#b36749; color:#f1ede5;
}
body.a2p-page:not(.a2p-home) a.protocol-card:hover { background:rgba(241,237,229,.04); }
body.a2p-page:not(.a2p-home) .protocol-card h3 { color:#e9dbd3; }
body.a2p-page:not(.a2p-home) .protocol-card p { color:#b8b0bd; }
body.a2p-page:not(.a2p-home) .related-band { background:rgba(241,237,229,.02); border-top:1px solid var(--line); }

/* Shared reference footer: original institutional marks stay true-colour. */
body.a2p-page .site-footer.hp-reference-footer {
  --hp-footer-ink:#b4adbb; --hp-footer-accent:#e8864e;
  position:relative; margin:0; padding:52px 0 28px;
  border-top:1px solid rgba(241,237,229,.12);
  color:#b4adbb; background:rgba(5,8,18,.64);
  font-family:var(--sans,"Helvetica Neue",Arial,sans-serif);
}
body.a2p-page .hp-footer-inner { width:min(1240px,100%); padding-inline:24px; }
body.a2p-page .hp-footer-main {
  grid-template-columns:minmax(230px,.85fr) minmax(0,1.65fr); gap:56px; padding-bottom:34px;
}
body.a2p-page .hp-footer-brand { gap:24px; }
body.a2p-page .hp-footer-brand img { width:100px; height:106px; filter:none; opacity:1; }
body.a2p-page .hp-footer-brand .hp-footer-biosyn { padding:10px; }
body.a2p-page .hp-footer-brand figcaption {
  margin-top:10px; border:0; padding:0; color:#aaa2b1;
  font:400 9px/1.6 var(--mono,ui-monospace,monospace); letter-spacing:.06em; text-transform:none;
}
body.a2p-page .hp-footer-social { gap:18px; margin-top:22px; }
body.a2p-page .hp-footer-social > span { width:20px; height:20px; color:#a9a0b2; }
body.a2p-page .hp-footer-logo-set { gap:30px; padding-right:30px; }
body.a2p-page .hp-footer-logo-set li {
  width:130px; height:130px; padding:10px; background:#fff; border:1px solid rgba(255,199,154,.22);
}
body.a2p-page .hp-footer-logo-set img,
body.a2p-page .hp-footer-logo-set li:last-child img { width:110px; height:110px; filter:none; opacity:1; }
body.a2p-page .hp-footer-legal { border-top:1px solid rgba(241,237,229,.1); padding-top:20px; }
body.a2p-page .hp-footer-legal p { max-width:100%; color:#8e879a; font-size:11.5px; line-height:1.8; }
body.a2p-page .hp-footer-legal a { color:#bcb2c3; font-weight:400; }
body.a2p-page .hp-footer-legal a:hover { color:#e8864e; }
body.a2p-page .back-to-top { width:56px; right:18px; bottom:18px; }
body.a2p-page .back-to-top img { width:100%; height:auto; filter:none; }
@media (prefers-reduced-motion:no-preference) {
  body.a2p-page .hp-footer-marquee:is(:hover,:focus,:focus-within) .hp-footer-logo-track {
    animation:hp-footer-drift 32s linear infinite;
    animation-play-state:paused;
  }
}

/* Original HP reading sheets stay light when their parent article is dark. */
body.a2p-page.hp-page .hp-dialog.is-reading-panel {
  --paper:#fff; --paper-strong:#fff;
  --ink:#183346; --muted:#334a5c; --line:#dce2e6;
  --coral-dark:#a34363; --teal-dark:#326951;
}

@media (max-width:1200px) {
  body.a2p-page .site-nav .menu-toggle.navtoggle { display:block; }
  body.a2p-page .site-nav .nav-links.navset {
    position:absolute; inset:62px 0 auto; width:100%; height:auto;
    max-height:calc(100dvh - 62px); padding:12px 24px 20px;
    display:none; flex-direction:column; align-items:stretch; gap:0;
    margin:0; overflow-y:auto; background:rgba(10,13,26,.98); border-bottom:1px solid var(--line);
  }
  body.a2p-page .site-nav .nav-links.navset.is-open { display:flex; }
  body.a2p-page .site-nav .nav-group > button {
    width:100%; justify-content:space-between; min-height:43px; padding:10px 0;
    border-bottom:1px solid rgba(241,237,229,.06); font-size:11px;
  }
  body.a2p-page .site-nav .nav-menu.navmenu {
    position:static; display:none; min-width:0; padding:5px 0 8px 12px;
    border:0; background:transparent; box-shadow:none; backdrop-filter:none;
    opacity:1; visibility:visible; transform:none;
  }
  body.a2p-page .site-nav .nav-group.is-open .nav-menu { display:block; }
  body.a2p-page .site-nav .nav-menu a { min-height:39px; padding-block:9px; white-space:normal; }
  body.a2p-page .site-nav .nav-links > a.navcta { margin:12px 0 0; padding:10px 14px; min-height:40px; }
  body.a2p-page:not(.a2p-home) .editorial-split { grid-template-columns:minmax(0,1fr); }
  body.a2p-page:not(.a2p-home) .design-mechanism > .design-figure {
    float:none; width:min(100%,440px); margin:0 auto 28px;
  }
}
@media (max-width:960px) {
  body.a2p-page:not(.a2p-home) :is(.editorial-layout.doc,.eng-layout) {
    display:block; width:min(920px,100%); padding-top:38px;
  }
  body.a2p-page:not(.a2p-home) :is(.editorial-sidebar.toc,.eng-sidebar) {
    position:static; width:auto; max-height:none; padding:0;
    margin-bottom:38px; background:rgba(7,10,21,.3); overflow:visible;
    border:1px solid rgba(241,237,229,.1);
  }
  body.a2p-page:not(.a2p-home) :is(.editorial-contents,.eng-toc) { border:0; }
  body.a2p-page:not(.a2p-home) :is(.editorial-contents,.eng-toc) > summary { margin:0; padding:16px; }
  body.a2p-page:not(.a2p-home) :is(.editorial-contents,.eng-toc) > nav { padding:10px 14px 14px; }
  body.a2p-page:not(.a2p-home) :is(.editorial-back-top,.eng-back-top) { display:none; }
  body.a2p-page:not(.a2p-home) .content-layout { grid-template-columns:110px minmax(0,1fr); gap:32px; }
  body.a2p-page:not(.a2p-home) .page-hero-inner { gap:28px; }
  body.a2p-page .hp-footer-main { gap:32px; }
}
@media (max-width:700px) {
  body.a2p-page { --editorial-gutter:20px; --editorial-anchor-offset:88px; }
  body.a2p-page .site-nav .nav-inner.wrap { padding-inline:20px; }
  body.a2p-page .site-nav .brand > span { font-size:10px; letter-spacing:.1em; }
  body.a2p-page:not(.a2p-home) .page-hero-inner {
    width:100%; grid-template-columns:minmax(0,1fr); padding:48px 20px 42px; gap:32px;
  }
  body.a2p-page:not(.a2p-home) .page-hero h1 { font-size:clamp(38px,11vw,67px); }
  body.a2p-page:not(.a2p-home) .page-hero .lead { font-size:16px; margin-top:22px; }
  body.a2p-page:not(.a2p-home) .hero-kicker { margin-bottom:23px; font-size:9px; }
  body.a2p-page:not(.a2p-home) .project-photo-wall { height:280px; gap:10px; }
  body.a2p-page:not(.a2p-home) .project-photo-set { gap:10px; padding-bottom:10px; }
  body.a2p-page:not(.a2p-home) .project-photo-card { height:clamp(100px,26vw,150px); }
  body.a2p-page:not(.a2p-home) :is(.editorial-layout.doc,.eng-layout) { padding:32px 20px 64px; }
  body.a2p-page:not(.a2p-home) .editorial-section.sec { padding-bottom:48px; }
  body.a2p-page:not(.a2p-home) .editorial-section.sec + .editorial-section.sec { padding-top:30px; }
  body.a2p-page:not(.a2p-home) :is(.editorial-section,.article-flow) h2 { font-size:28px; margin-bottom:22px; }
  body.a2p-page:not(.a2p-home) :is(.editorial-section,.article-flow) :is(h3,h4) { font-size:22px; }
  body.a2p-page:not(.a2p-home) :is(.editorial-prose,.article-flow) > :is(p,ul,ol),
  body.a2p-page:not(.a2p-home) :is(.eng-stage,.eng-overview) > :is(p,ul,ol),
  body.a2p-page:not(.a2p-home) .eng-cycle-subtitle { font-size:16px; line-height:1.8; }
  body.a2p-page:not(.a2p-home) :is(.editorial-figure.fig,.drylab-figure,.eng-figure,.lca-figure,.md-figure) { padding:10px; margin-block:28px; }
  body.a2p-page:not(.a2p-home) .editorial-references p { font-size:12.5px; }
  body.a2p-page:not(.a2p-home) .content-band { padding-block:42px 52px; }
  body.a2p-page:not(.a2p-home) .content-layout { grid-template-columns:minmax(0,1fr); padding-inline:20px; gap:24px; }
  body.a2p-page:not(.a2p-home) .section-index { display:flex; align-items:baseline; gap:12px; }
  body.a2p-page:not(.a2p-home) .section-index span { margin:0; }
  body.a2p-page:not(.a2p-home) .section-index strong { font-size:24px; }
  body.a2p-page:not(.a2p-home) :is(.team-inner,.directory-inner,.related-inner) { padding-inline:20px; }
  body.a2p-page:not(.a2p-home) .group-heading { display:block; }
  body.a2p-page:not(.a2p-home) .group-heading p { margin-top:18px; }
  body.a2p-page:not(.a2p-home) .member-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
  body.a2p-page:not(.a2p-home) .member-copy { padding:16px; }
  body.a2p-page:not(.a2p-home) .member-copy h3 { font-size:20px; }
  body.a2p-page:not(.a2p-home) .member-copy p { font-size:13px; }
  body.a2p-page:not(.a2p-home) .detail-row { grid-template-columns:minmax(0,1fr); gap:10px; }
  body.a2p-page:not(.a2p-home) :is(.eng-pending,.eng-stage[data-stage="learn"]) { padding:20px 18px; }
  body.a2p-page .site-footer.hp-reference-footer { padding:38px 0 24px; }
  body.a2p-page .hp-footer-inner { width:100%; padding-inline:20px; }
  body.a2p-page .hp-footer-main { grid-template-columns:minmax(0,1fr); gap:32px; }
  body.a2p-page .hp-footer-identity { text-align:left; }
  body.a2p-page .hp-footer-brand { margin-left:0; }
  body.a2p-page .hp-footer-social { justify-content:flex-start; }
  body.a2p-page .hp-footer-logo-set { gap:18px; padding-right:18px; }
  body.a2p-page .hp-footer-logo-set li { width:116px; height:116px; padding:8px; }
  body.a2p-page .hp-footer-logo-set img,body.a2p-page .hp-footer-logo-set li:last-child img { width:100px; height:100px; }
  body.a2p-page .hp-footer-legal p { font-size:10.5px; }
}
@media (max-width:400px) {
  body.a2p-page:not(.a2p-home) .member-grid { grid-template-columns:minmax(0,1fr); }
  body.a2p-page .site-nav .nav-inner.wrap { gap:10px; }
}
@media (prefers-reduced-motion:reduce) {
  body.a2p-page:not(.a2p-home) .project-photo-column { overflow-y:auto; scrollbar-width:thin; }
  body.a2p-page:not(.a2p-home) .project-photo-track { animation:none; transform:none; }
  body.a2p-page:not(.a2p-home) .project-photo-set[aria-hidden="true"] { display:none; }
  body.a2p-page .hp-footer-logo-track { animation:none; transform:none; }
  body.a2p-page .hp-footer-marquee { overflow-x:auto; }
  body.a2p-page .hp-footer-logo-set[aria-hidden="true"] { display:none; }
  body.a2p-page .site-nav *,body.a2p-page .member-portrait img { transition:none; }
}
@media print {
  body.a2p-page { background:#fff; color:#222; }
  body.a2p-page :is(.site-nav,.editorial-sidebar,.eng-sidebar,.back-to-top) { display:none !important; }
  body.a2p-page:not(.a2p-home) :is(.editorial-layout.doc,.eng-layout) { display:block; width:100%; padding:0; }
  body.a2p-page:not(.a2p-home) :is(.editorial-section,.article-flow) :is(h2,h3,h4),
  body.a2p-page:not(.a2p-home) :is(.editorial-prose,.article-flow,.eng-stage,.eng-overview) :is(p,ul,ol,li,strong,b) { color:#222; }
  body.a2p-page:not(.a2p-home) :is(.editorial-figure,.drylab-figure,.editorial-table) { background:#fff; border-color:#ddd; }
  body.a2p-page:not(.a2p-home) :is(.editorial-figure,.drylab-figure) figcaption { color:#444; }
}

/* Transparent original marks: no individual white tiles or Biosyn backing plate. */
body.a2p-page .site-footer.hp-reference-footer .hp-footer-main {
  grid-template-columns:minmax(270px, .95fr) minmax(0,1.5fr);
  gap:clamp(30px,5vw,64px);
}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-brand {
  width:100%; gap:24px; justify-content:center;
}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-brand figure {
  flex:0 1 auto; min-width:0; background:transparent; border:0; box-shadow:none;
}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-brand img {
  width:112px; height:108px; padding:0; object-fit:contain; background:transparent; border:0;
}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-brand .hp-footer-biosyn {
  width:210px; max-width:100%; height:108px; padding:0; background:transparent;
  filter:drop-shadow(0 0 1px #dde6f42b);
}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-brand figcaption {
  font-size:11px; color:#bbb4c7;
}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-institutions {
  background:radial-gradient(ellipse at center,#d9e1ef80 0%,#c3bcd647 40%,transparent 76%);
}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-logo-set li,
body.a2p-page .site-footer.hp-reference-footer .hp-footer-logo-set a {
  background:transparent; border:0; box-shadow:none;
}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-logo-set li {
  width:146px; height:146px; padding:8px;
}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-logo-set img {
  width:130px; height:130px; object-fit:contain;
  filter:drop-shadow(0 0 1px #dde6f469); opacity:1;
}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-logo-set li:last-child {width:176px;}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-logo-set li:last-child img {width:160px;height:138px;}
@media(max-width:760px){
  body.a2p-page .site-footer.hp-reference-footer .hp-footer-main {grid-template-columns:minmax(0,1fr);gap:28px;}
  body.a2p-page .site-footer.hp-reference-footer .hp-footer-brand {gap:20px;}
  body.a2p-page .site-footer.hp-reference-footer .hp-footer-brand img {width:100px;height:94px;}
  body.a2p-page .site-footer.hp-reference-footer .hp-footer-brand .hp-footer-biosyn {width:190px;height:94px;}
  body.a2p-page .site-footer.hp-reference-footer .hp-footer-logo-set {gap:22px;padding-right:22px;}
}
@media(max-width:360px){
  body.a2p-page .site-footer.hp-reference-footer .hp-footer-brand .hp-footer-biosyn {width:166px;}
  body.a2p-page .site-footer.hp-reference-footer .hp-footer-brand {gap:14px;}
}

/* A shared pale nebula field keeps the original blue/grey institutional ink
   readable without recolouring the marks or putting them in white tiles. */
body.a2p-page .site-footer.hp-reference-footer {
  background:linear-gradient(115deg,#d5e0eb 0%,#e5dbe5 53%,#d5e4e9 100%);
  color:#46495c; border-top-color:#c2c7d4;
}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-institutions {background:none;}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-brand figcaption {color:#484b61;}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-social > span {color:#595e76;}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-logo-set img,
body.a2p-page .site-footer.hp-reference-footer .hp-footer-brand .hp-footer-biosyn {filter:none;}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-legal {border-top-color:#7b819c40;}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-legal p {color:#565b70;}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-legal a {color:#384c66;}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-legal a:hover {color:#8b3f61;}

/* Text, scientific plates and tables share one reading measure. Constrain the
   content wrapper so nested panels and the Module IV float keep their layout. */
@media screen {
  body.a2p-page:not(.a2p-home):not(.home-original) { --article-measure:52rem; }
  body.a2p-page:not(.a2p-home):not(.home-original) main
    :is(.editorial-prose,.article-flow,.eng-stage,.eng-overview,.design-mechanism,.editorial-split,.results-subsection) {
    width:100%; max-width:var(--article-measure); min-width:0;
  }
  body.a2p-page.hp-page.hp-hybrid main .editorial-article
    :is(.hp-question,.hp-interview-copy,.hp-reflection-body,.hp-phase-body,.hp-core-questions) {
    max-width:var(--article-measure); min-width:0;
  }
  body.a2p-page:not(.a2p-home):not(.home-original) main
    :is(.editorial-prose,.article-flow,.prose,.eng-stage,.eng-overview) > :is(p,ul,ol),
  body.a2p-page:not(.a2p-home):not(.home-original) main .eng-cycle-subtitle {
    max-width:100%;
  }
}
@media screen and (min-width:1101px) {
  body.a2p-page:not(.a2p-home):not(.home-original) main :is(.editorial-prose,.article-flow,.prose,.eng-stage,.eng-overview) > :is(p,ul,ol),
  body.a2p-page:not(.a2p-home):not(.home-original) main .eng-cycle-subtitle,
  body.a2p-page.hp-page.hp-hybrid main .editorial-article :is(.hp-question,.hp-interview-copy,.hp-reflection-body,.hp-phase-body,.hp-core-questions) > :is(p,ul,ol),
  body.a2p-page.hp-page.hp-hybrid #hp-framework .editorial-prose > .hp-framework-lead:first-child {
    box-sizing:border-box;
    width:min(100%,var(--article-measure));
    max-width:var(--article-measure);
  }
}

/* Desktop long-form reading uses even text edges while preserving a natural
   final line. Figure captions, data, tables and navigation keep authored alignment. */
@media screen and (min-width:1101px) {
  body.a2p-page:not(.a2p-home):not(.home-original) main :is(.editorial-prose,.article-flow,.prose,.eng-stage,.eng-overview) > p,
  body.a2p-page:not(.a2p-home):not(.home-original) main :is(.editorial-prose,.article-flow,.prose,.eng-stage,.eng-overview) > :is(ul,ol) > li,
  body.a2p-page.hp-page.hp-hybrid main .editorial-article :is(.hp-question,.hp-interview-copy,.hp-reflection-body,.hp-phase-body,.hp-core-questions) > p,
  body.a2p-page.hp-page.hp-hybrid main .editorial-article :is(.hp-question,.hp-interview-copy,.hp-reflection-body,.hp-phase-body,.hp-core-questions) > :is(ul,ol) > li,
  body.a2p-page.hp-page .hp-attachment-document :is(p,li):not(td *):not(th *) {
    text-align:justify;
    text-align-last:left;
    hyphens:none;
    text-wrap:wrap;
  }
}

/* Desktop contents rails: larger labels use the full remaining link width.
   Numbered theme grids still rely on the existing explicit .n/.l :has rule. */
@media screen and (min-width:1101px) {
  body.a2p-page:not(.a2p-home):not(.home-original) :is(.editorial-sidebar,.eng-sidebar,.drylab-sidebar) :is(.editorial-toc-link,.eng-nav-major),
  body.a2p-page:not(.a2p-home):not(.home-original) .toc a > .l {
    font-size:16px; line-height:1.5;
  }
  body.a2p-page:not(.a2p-home):not(.home-original) :is(.editorial-toc-number,.eng-nav-major > span:first-child,.toc a > .n) {
    font-size:11.5px; line-height:1.5;
  }
  body.a2p-page:not(.a2p-home):not(.home-original) .editorial-sidebar .editorial-toc-label {
    flex:1 1 0; min-width:0; white-space:normal; overflow-wrap:break-word; word-break:normal;
  }
  body.a2p-page:not(.a2p-home):not(.home-original) :is(.eng-toc-stages,.eng-nav-stages) a,
  body.a2p-page.hp-page.hp-hybrid .editorial-sidebar :is(.hp-subcontents a,.hp-toc-reflection-link,.hp-sidebar-shortcuts a) {
    font-size:15.5px; line-height:1.5; white-space:normal; overflow-wrap:break-word; word-break:normal;
  }
  body.a2p-page.hp-page.hp-hybrid .editorial-sidebar .hp-subcontents a {
    display:block; padding:8px 10px;
  }
  body.a2p-page.hp-page.hp-hybrid .editorial-sidebar .hp-subcontents { margin-left:16px; }
  body.a2p-page.hp-page.hp-hybrid .editorial-sidebar .hp-toc-reflection-link { margin-left:16px; padding:8px 10px; }
  body.a2p-page:not(.a2p-home):not(.home-original) :is(.editorial-contents,.eng-toc) > summary,
  body.a2p-page.hp-page.hp-hybrid .editorial-sidebar .hp-subcontents > summary {
    font-size:14px; line-height:1.5;
  }
}

/* Software chapter markers share the article column instead of reserving an
   additional narrow rail inside the existing sidebar-and-article layout. */
@media screen and (min-width:1101px) {
  body.a2p-page main.software-page .software-content > .content-layout {
    display:grid; grid-template-columns:minmax(0,1fr); align-items:start;
    width:100%; max-width:none; margin-inline:0; padding-inline:0; gap:20px;
  }
  body.a2p-page main.software-page .software-content > .content-layout > .section-index {
    position:static; display:flex; align-items:baseline; flex-wrap:wrap; gap:12px;
    width:100%; min-width:0; margin:0; padding:0; border:0;
  }
  body.a2p-page main.software-page .software-content > .content-layout > .section-index :is(strong,span) {
    margin:0;
  }
  body.a2p-page main.software-page .software-content > .content-layout > .article-flow {
    width:100%; min-width:0; max-width:var(--article-measure);
  }
}

/* Engineering contents list chapter and cycle destinations; the DBTL steps
   remain in the article with their original anchors. */
body.a2p-page.engineering-page .editorial-sidebar .eng-toc-stages {
  display:none;
}

/* Shared contents rails: readable labels and the HP dark selection palette.
   Keep these rules scoped to navigation; article colors and copy are retained. */
@media screen {
  body.a2p-page:not(.a2p-home):not(.home-original) :is(.editorial-sidebar.toc,.eng-sidebar) {
    background:transparent; color:#c8c1cd;
    scrollbar-color:#645566 transparent;
  }
  body.a2p-page:not(.a2p-home):not(.home-original) :is(.editorial-sidebar,.eng-sidebar) :is(.editorial-toc-link,.eng-nav-major,.safety-toc-subsections a,.hp-subcontents a,.hp-toc-reflection-link,.hp-sidebar-shortcuts a) {
    color:#c8c1cd; background:transparent;
  }
  body.a2p-page:not(.a2p-home):not(.home-original) :is(.editorial-sidebar,.eng-sidebar) :is(.editorial-toc-link,.eng-nav-major,.safety-toc-subsections a,.hp-subcontents a,.hp-toc-reflection-link,.hp-sidebar-shortcuts a):is(:hover,:focus-visible,[aria-current="location"],[aria-current="true"]) {
    color:#f1b7a3; background:rgba(232,134,78,.08); border-left-color:#e8864e;
  }
  body.a2p-page:not(.a2p-home):not(.home-original) .safety-toc-subsections { border-left-color:#645566; }
  body.a2p-page:not(.a2p-home):not(.home-original) .safety-toc-subsections a {
    font-size:16px; line-height:1.55; padding:8px 6px;
  }
  body.a2p-page:not(.a2p-home):not(.home-original) .safety-toc-subsections a > span {
    color:#d69679; font-size:13px; padding-top:2px; flex-shrink:0;
  }
  body.a2p-page:not(.a2p-home):not(.home-original) :is(.editorial-sidebar,.eng-sidebar) :is(.editorial-toc-number,.eng-nav-major > span:first-child) {
    white-space:nowrap;
  }
}
@media screen and (min-width:961px) {
  body.a2p-page:not(.a2p-home):not(.home-original) :is(.editorial-layout.doc,.eng-layout) {
    grid-template-columns:clamp(300px,23vw,350px) minmax(0,1fr);
    width:min(1360px,100%);
  }
  body.a2p-page:not(.a2p-home):not(.home-original) :is(.editorial-sidebar.toc,.eng-sidebar) {
    width:100%; justify-self:stretch;
  }
  body.a2p-page:not(.a2p-home):not(.home-original) :is(.editorial-sidebar,.eng-sidebar) :is(.editorial-toc-link,.eng-nav-major) {
    font-size:18px; line-height:1.55; padding-block:10px;
  }
  body.a2p-page:not(.a2p-home):not(.home-original) :is(.editorial-sidebar,.eng-sidebar) :is(.editorial-toc-label,.eng-nav-major) {
    white-space:nowrap; overflow-wrap:normal; word-break:normal;
  }
  body.a2p-page:not(.a2p-home):not(.home-original) :is(.editorial-sidebar,.eng-sidebar) :is(.editorial-toc-number,.eng-nav-major > span:first-child) {
    font-size:12px; line-height:1.6;
  }
  body.a2p-page:not(.a2p-home):not(.home-original) .safety-toc-subsections a { font-size:16.5px; white-space:nowrap; }
  body.a2p-page:not(.a2p-home):not(.home-original) :is(.editorial-contents,.eng-toc) > summary { font-size:14px; }
}
@media screen and (max-width:960px) {
  body.a2p-page:not(.a2p-home):not(.home-original) :is(.editorial-sidebar,.eng-sidebar) :is(.editorial-toc-link,.eng-nav-major) {
    font-size:16px; line-height:1.55;
  }
  body.a2p-page:not(.a2p-home):not(.home-original) .editorial-sidebar .editorial-toc-label {
    white-space:normal; overflow-wrap:break-word;
  }
}
