/* Scroll-driven city scene, automatically revealed title and finite reading stop. */
.unified-page .city-intro { --city-pan:0; --city-dusk:0; --city-sunset:0; --city-night:0; --city-copy:1; --city-sun-alpha:1; --city-sun-drop:200px; position:relative; height:100svh; padding:0; background:#fff; }
.model-city-stage { position:sticky; top:0; width:100%; height:100svh; overflow:hidden; isolation:isolate; background:#fff; }
.model-city-scene { position:absolute; inset:0; z-index:0; overflow:hidden; background:#fff; pointer-events:none; transform-origin:50% 52%; }
.city-motion-ready[data-city-entrance="waiting"] .model-city-scene { opacity:0; clip-path:inset(8% 49% round 18px); transform:scale(.72); }
.city-motion-ready[data-city-entrance="playing"] .model-city-scene { will-change:transform,opacity,clip-path; }
.city-view { position:absolute; top:-14%; left:-7%; width:114%; height:128%; max-width:none; object-fit:cover; object-position:50% 48%; transform:translate3d(0,calc(var(--city-pan)*10%),0) scale(calc(1.04 + var(--city-pan)*.02)); }
.city-day { z-index:0; }
.city-dusk { z-index:1; opacity:var(--city-dusk); }
.city-sun { position:absolute; top:48%; left:50%; z-index:2; width:clamp(38px,6.7vh,68px); aspect-ratio:1; border-radius:50%; background:#f3bd62; box-shadow:0 0 28px #f5ba5c55; transform:translate3d(-50%,calc(-50% + var(--city-sunset)*var(--city-sun-drop)),0) scale(calc(1 - var(--city-sunset)*.48)); opacity:var(--city-sun-alpha); }
.city-night-shade { position:absolute; inset:0; z-index:4; background:#030814b3; opacity:var(--city-night); }
.city-lights { z-index:5; mix-blend-mode:screen; opacity:var(--city-night); }
.city-reading-shade { position:absolute; inset:0; z-index:6; background:radial-gradient(ellipse at 50% 43%,#06121b80,transparent 72%); opacity:var(--city-night); }
.city-intro:not(.city-motion-ready) .city-reading-shade { background:#07131e80; opacity:1; }
.model-intro-layout { position:relative; z-index:10; display:grid; place-items:center; width:min(1100px,calc(100% - 64px)); height:100%; margin:0 auto; padding-top:64px; text-align:center; box-sizing:border-box; }
.model-intro-copy { width:100%; padding:36px 0; opacity:var(--city-copy); transform:translate3d(0,calc((1 - var(--city-copy))*18px),0); }
.model-intro-meta { margin:0 0 28px; color:#e6c9d1; font:650 11px/1.6 "Segoe UI",Arial,sans-serif; letter-spacing:.2em; text-transform:uppercase; }
.model-intro-copy h1 { margin:0; color:#fff5ec; font:400 clamp(72px,9.4vw,140px)/.96 Georgia,"Times New Roman",serif; letter-spacing:-.045em; text-shadow:0 3px 24px #03111b80; }
.model-intro-copy h1 span { display:block; }
.model-intro-copy h1 span+span { margin-top:9px; }
/* Match the supplied original's 120/220/360 ms stagger, 500 ms fade and 720 ms move. */
.city-motion-ready .model-intro-copy { opacity:1; transform:none; }
.city-motion-ready .model-intro-meta { opacity:var(--city-meta-opacity,0); transform:translateY(calc((1 - var(--city-meta-motion,0))*22px)); }
.city-motion-ready .model-intro-copy h1 { opacity:var(--city-title-opacity,0); transform:translateY(calc((1 - var(--city-title-motion,0))*22px)); }
.city-motion-ready .hp-hero-photographs { opacity:var(--city-photos-opacity,0); transform:translateY(calc((1 - var(--city-photos-motion,0))*22px)); }
@media (max-width:700px) {
  .model-intro-layout { width:calc(100% - 36px); padding-top:64px; }
  .model-intro-meta { margin-bottom:25px; font-size:9px; letter-spacing:.12em; }
  .model-intro-copy h1 { font-size:clamp(64px,17vw,98px); }
}
@media (prefers-reduced-motion:reduce) {
  .unified-page .city-intro { height:100svh; --city-copy:1; }
  .city-motion-ready[data-city-entrance="waiting"] .model-city-scene { opacity:1; transform:none; clip-path:none; }
  .city-view { transform:scale(1.04); }
  .city-dusk,.city-lights,.city-sun,.city-night-shade { display:none; }
  .city-reading-shade { background:#07131e80; opacity:1; }
  .model-intro-copy { opacity:1; transform:none; }
}
@media print {
  .unified-page .city-intro { height:auto !important; }
  .model-city-stage { position:relative; height:auto; background:#fff; }
  .model-city-scene { display:none; }
  .model-intro-copy { opacity:1; transform:none; }
  .model-intro-copy :is(h1,p,a) { color:#16232b; text-shadow:none; }
}

/* 2024 BUCT's identity / moving-logo / legal structure, in Air2Protein colours. */
.hp-page.hp-hybrid .editorial-layout { padding-bottom:40px; }
body.unified-page .hp-reference-footer {
  --hp-footer-ink:#283b49; --hp-footer-accent:#963e5d;
  position:relative; margin-top:0; padding:58px 0 30px; border-top:0;
  color:var(--hp-footer-ink); background:linear-gradient(120deg,#f4e4ec,#edf3f7 58%,#f8f2f5);
  font-family:'Segoe UI',Arial,sans-serif;
}
.hp-footer-inner { width:min(1320px,calc(100% - 64px)); margin:0 auto; }
.hp-footer-main { display:grid; grid-template-columns:minmax(280px,1fr) minmax(0,2fr); align-items:center; gap:clamp(40px,5vw,80px); padding-bottom:38px; }
.hp-footer-identity { min-width:0; text-align:center; }
.hp-footer-brand { display:flex; align-items:center; justify-content:center; gap:24px; width:fit-content; margin:0 auto; }
.hp-footer-brand figure { margin:0; }
.hp-footer-brand img { display:block; width:132px; height:142px; object-fit:contain; }
.hp-footer-brand .hp-footer-biosyn { background:#344a3f; padding:14px; }
.hp-footer-brand figcaption { margin-top:12px; color:#533f50; font-size:12px; font-weight:650; line-height:1.6; letter-spacing:.025em; }
.hp-footer-social { display:flex; justify-content:center; align-items:center; gap:20px; margin-top:28px; }
.hp-footer-social > span { display:inline-flex; width:24px; height:24px; color:#765466; }
.hp-footer-social svg { display:block; width:100%; height:100%; }
.hp-footer-institutions { min-width:0; }
.hp-footer-marquee { width:100%; overflow:hidden; }
.hp-footer-logo-track { display:flex; width:max-content; animation:hp-footer-drift 32s linear infinite; }
.hp-footer-logo-set { display:flex; align-items:center; flex:0 0 auto; gap:46px; margin:0; padding:0 46px 0 0; list-style:none; }
.hp-footer-logo-set li { display:grid; place-items:center; width:180px; height:180px; }
.hp-footer-logo-set a { display:grid; width:100%; height:100%; place-items:center; }
.hp-footer-logo-set img { display:block; width:172px; height:172px; object-fit:contain; }
.hp-footer-logo-set li:last-child img { width:180px; }
.hp-footer-marquee:hover .hp-footer-logo-track { animation-play-state:paused; }
.hp-footer-marquee:focus-within { overflow-x:auto; scrollbar-width:thin; }
.hp-footer-marquee:focus-within .hp-footer-logo-track { animation:none; transform:none; }
.hp-footer-legal { padding-top:24px; border-top:1px solid #af93a340; }
.hp-footer-legal p { margin:0; font-size:12px; line-height:1.85; color:#56616d; }
.hp-footer-legal p + p { margin-top:7px; }
.hp-reference-footer .hp-footer-legal a { color:#70445c; font-weight:600; text-decoration:none; text-underline-offset:4px; overflow-wrap:anywhere; }
.hp-reference-footer .hp-footer-legal a:hover,.hp-reference-footer .hp-footer-legal a:focus-visible { text-decoration:underline; }
.hp-reference-footer :is(a,button,[tabindex]):focus-visible { outline:2px solid #963e5d; outline-offset:4px; }
@keyframes hp-footer-drift { to { transform:translateX(-50%); } }

/* The complete supplied institutional and organization marks share one light
   field: transparent original inks remain readable without recolouring. */
body.a2p-page footer.site-footer.hp-reference-footer[aria-label] {
  background:linear-gradient(115deg,#d5e0eb 0%,#e5dbe5 53%,#d5e4e9 100%);
  color:#46495c;font-family:var(--sans,"Source Sans 3",sans-serif);
}
body.a2p-page footer.site-footer.hp-reference-footer[aria-label] .hp-footer-brand figcaption,
body.a2p-page footer.site-footer.hp-reference-footer[aria-label] .hp-footer-legal p {color:#464d62;}
body.a2p-page footer.site-footer.hp-reference-footer[aria-label] .hp-footer-legal a {color:#354964;}
body.a2p-page footer.site-footer.hp-reference-footer[aria-label] .hp-footer-institutions {background:none;}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-institutions .hp-footer-logo-track {animation-duration:78s;}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-institutions .hp-footer-logo-set {gap:24px;padding-right:24px;}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-institutions .hp-footer-logo-set li,
body.a2p-page .site-footer.hp-reference-footer .hp-footer-institutions .hp-footer-logo-set li:last-child {
  width:204px;height:142px;padding:12px;background:transparent;border:0;box-shadow:none;
}
body.a2p-page .site-footer.hp-reference-footer .hp-footer-institutions .hp-footer-logo-set img,
body.a2p-page .site-footer.hp-reference-footer .hp-footer-institutions .hp-footer-logo-set li:last-child img {
  display:block;width:180px;height:116px;object-fit:contain;object-position:center;filter:none;opacity:1;
}
@media (max-width:960px) {
  .hp-footer-main { grid-template-columns:minmax(240px,.9fr) minmax(0,1.4fr); gap:32px; }
  .hp-footer-logo-set { gap:28px; padding-right:28px; }
  .hp-footer-logo-set li { width:156px; height:168px; }
  .hp-footer-logo-set img,.hp-footer-logo-set li:last-child img { width:152px; height:152px; }
}
@media (max-width:700px) {
  .hp-page.hp-hybrid .editorial-layout { padding-bottom:28px; }
  body.unified-page .hp-reference-footer { padding-top:38px; }
  .hp-footer-inner { width:calc(100% - 40px); }
  .hp-footer-main { grid-template-columns:minmax(0,1fr); gap:34px; padding-bottom:26px; }
  .hp-footer-brand img { width:118px; height:122px; }
  .hp-footer-logo-set { gap:26px; padding-right:26px; }
  .hp-footer-logo-set li { width:140px; height:144px; }
  .hp-footer-logo-set img,.hp-footer-logo-set li:last-child img { width:136px; height:136px; }
  .hp-footer-legal { padding-top:20px; }
}
@media (prefers-reduced-motion:reduce) {
  .hp-footer-logo-track { animation:none; width:100%; }
  .hp-footer-logo-set { justify-content:space-around; flex:1 1 auto; gap:12px; padding:0; }
  .hp-footer-logo-set li { width:auto; min-width:0; height:auto; flex:1; }
  .hp-footer-logo-set img,.hp-footer-logo-set li:last-child img { width:100%; height:auto; max-height:172px; }
  .hp-footer-logo-set[aria-hidden="true"] { display:none; }
}
@media print {
  .hp-reference-footer { break-inside:avoid; }
  .hp-footer-logo-track { animation:none; }
  .hp-footer-logo-set[aria-hidden="true"] { display:none; }
}

/* Shared framing is scoped: Home and each page's reviewed article styles stay intact. */
@font-face { font-family:'HP Cormorant';src:url('https://static.igem.wiki/teams/6055/wiki/assets/fonts/hp-display.ttf') format('truetype');font-style:normal;font-weight:300 700;font-display:swap; }
/* Clip page-level MathML/off-canvas overshoot; keep local table/formula scroll. */
html:has(> body.unified-page) { overflow-x:clip; }
.unified-page { --hp-nav-height:76px;--hp-title-rise:40px; }
.unified-page > header:not(.unified-opening) .brand { min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere; }
.unified-page .site-nav { position:fixed;inset:0 0 auto;z-index:1100; }
/* Loader backdrop is defined once in a2p-loader.css. */
.unified-page .unified-opening { --city-copy:1;display:block;position:relative;margin:0;padding:0;width:100%;max-width:none;border:0;background:#fff; }
.unified-opening .model-city-stage { position:sticky;top:0;width:100%;height:100svh; }
.unified-opening .model-intro-layout { position:absolute;inset:var(--hp-nav-height) 0 0;z-index:10;display:grid;place-items:center;width:min(1200px,calc(100% - 64px));height:auto;margin:0 auto;padding:0;text-align:center;background:none; }
.unified-opening .model-intro-layout::before { display:none; }
.unified-opening .model-intro-copy { position:relative;top:calc(-1 * var(--hp-title-rise));width:100%;max-width:none;margin:0;padding:0;background:none;border:0;text-align:center; }
.unified-opening .model-intro-meta { position:absolute;bottom:calc(100% + 26px);left:0;width:100%;margin:0;color:#ebd4da;font:650 11px/1.6 'Segoe UI',Arial,sans-serif;letter-spacing:.2em;text-transform:uppercase; }
.unified-opening .model-intro-copy h1 { margin:0;color:#fff7f0;font:500 clamp(88px,min(14vw,24svh),220px)/.95 'HP Cormorant',Georgia,serif;letter-spacing:-.025em;text-shadow:0 2px 18px #03111b33;overflow-wrap:anywhere;text-wrap:balance; }
.unified-opening .model-intro-copy h1 span { display:block; }
.unified-opening .model-intro-copy h1 span:first-child { color:#f3d3dc;font-size:.88em;font-weight:400;font-style:italic; }
.unified-opening .model-intro-copy h1 span:last-child { font-weight:600; }
.unified-opening.unified-title-medium .model-intro-copy h1 { font-size:clamp(70px,10vw,145px); }
.unified-opening.unified-title-long .model-intro-copy h1 { font-size:clamp(48px,7vw,104px); }
.unified-opening .unified-opening-extra { max-width:850px;margin:26px auto 0;color:#edf2f6;opacity:var(--city-photos-opacity,0);transform:translateY(calc((1 - var(--city-photos-motion,0))*22px)); }
.unified-opening .unified-opening-extra .lead { margin:0;color:#e9edf2;font:400 clamp(15px,1.45vw,20px)/1.65 'Segoe UI',Arial,sans-serif;max-width:none; }
.unified-opening .unified-opening-extra .model-functional-unit { margin:18px auto 0;max-width:100%;width:fit-content;padding:14px 20px;color:#fff;text-decoration:none; }
.unified-opening .unified-opening-extra .model-topic-links { justify-content:center;flex-wrap:wrap; }
.unified-opening .unified-opening-extra .model-topic-links a { color:#fff1f3;border-color:#d9a4b6; }
.unified-opening .hp-hero-photographs { position:absolute;inset:0;pointer-events:none; }
.unified-opening .unified-hero-photo { position:absolute;left:-18px;top:66%;width:clamp(130px,13vw,180px);margin:0;padding:6px;background:#fffaf6;box-shadow:0 14px 38px #020d1840;transform:rotate(-5deg); }
.unified-opening .unified-hero-photo-2 { left:auto;right:-18px;top:2%;transform:rotate(5deg); }
.unified-opening .unified-hero-photo img { display:block;width:100%;height:auto;max-height:180px;object-fit:contain; }
.unified-page .unified-mascot { position:fixed;right:23px;bottom:25px;z-index:100;display:flex;align-items:center;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s; }
.unified-page .unified-mascot.is-visible { opacity:1;visibility:visible; }
.unified-page .unified-mascot img { display:block;width:45px;height:53px;object-fit:contain; }
.unified-page .hp-reference-footer a { color:inherit; }
.unified-page .hp-footer-brand figure { padding:0;border:0; }
.unified-page .hp-reference-footer { font-size:14px;line-height:1.6; }
.unified-page .hp-reference-footer .hp-footer-inner { padding:0; }
@media (max-width:1200px) { .unified-page { --hp-nav-height:68px; } }
@media (max-width:1050px) { .unified-opening .unified-hero-photo { top:calc(100% + 35px);left:2%;width:124px; }.unified-opening .unified-hero-photo-2 { left:auto;right:2%;top:calc(100% + 48px); } }
@media (max-width:700px) {
 .unified-page { --hp-title-rise:24px; }
 .unified-opening .model-intro-layout { width:calc(100% - 36px); }
 .unified-opening .model-intro-copy h1 { font-size:clamp(67px,17vw,98px); }
 .unified-opening.unified-title-medium .model-intro-copy h1 { font-size:clamp(54px,13vw,78px); }
 .unified-opening.unified-title-long .model-intro-copy h1 { font-size:clamp(34px,10vw,66px); }
 .unified-opening .model-intro-meta { font-size:9px;letter-spacing:.12em; }
 .unified-opening .unified-opening-extra { margin-top:18px; }
 .unified-opening .unified-hero-photo { width:112px; }
 .unified-page .unified-mascot { right:9px;bottom:15px; }
 .unified-page .unified-mascot img { width:34px;height:40px; }
}
@media (max-height:650px) { .unified-opening .hp-hero-photographs { display:none; }.unified-opening .model-intro-copy h1 { font-size:clamp(44px,15svh,100px); }.unified-opening .model-intro-meta { bottom:calc(100% + 14px); }.unified-opening .unified-opening-extra { margin-top:14px; } }
@media (prefers-reduced-motion:reduce) { .unified-opening .model-intro-copy h1,.unified-opening .model-intro-meta,.unified-opening .hp-hero-photographs,.unified-opening .unified-opening-extra { opacity:1;transform:none; } }
@media print { .unified-opening,.unified-mascot,.unified-page .site-nav { display:none !important; } }

/* Transparent brand marks sit directly on the shared footer field, including
   Home which does not load the article presentation stylesheet. */
body.a2p-page.unified-page footer.site-footer.hp-reference-footer[aria-label] .hp-footer-brand,
body.a2p-page.unified-page footer.site-footer.hp-reference-footer[aria-label] .hp-footer-brand :is(figure,img,.hp-footer-biosyn) {
  background:transparent; border:0; box-shadow:none; padding:0; filter:none;
}
body.a2p-page.unified-page footer.site-footer.hp-reference-footer[aria-label] .hp-footer-brand .hp-footer-biosyn {
  width:210px; height:108px; object-fit:contain;
}

/* A more compact shared footer retains the native mark sizes. */
body.a2p-page.unified-page footer.site-footer.hp-reference-footer[aria-label]{padding:34px 0 22px}
body.a2p-page.unified-page footer.site-footer.hp-reference-footer[aria-label] .hp-footer-main{padding-bottom:22px}
body.a2p-page.unified-page footer.site-footer.hp-reference-footer[aria-label] .hp-footer-social{margin-top:18px}
body.a2p-page.unified-page footer.site-footer.hp-reference-footer[aria-label] .hp-footer-legal{padding-top:16px}
body.a2p-page.unified-page footer.site-footer.hp-reference-footer[aria-label] .hp-footer-legal p+p{margin-top:4px}
body.a2p-page.unified-page footer.site-footer.hp-reference-footer[aria-label] .hp-footer-institutions .hp-footer-logo-set li,
body.a2p-page.unified-page footer.site-footer.hp-reference-footer[aria-label] .hp-footer-institutions .hp-footer-logo-set li:last-child{height:132px;padding:8px}
