/* October 21: page-owned refinements; shared wiki pages retain their layout. */
body.imported-wiki-page {
    --opening-copy-left: max(8px, calc((100vw - 1240px)/2));
   }
   body.imported-wiki-page .imported-main > .dogma-wave-hero {
    padding-left:var(--opening-copy-left)!important;
    padding-right:var(--opening-copy-left)!important;
   }
   body.imported-wiki-page .result-hero-copy {
    margin-left:0!important;transform:none!important;
   }
   body.imported-wiki-page .result-hero-copy :is(h1,.dogma-subpage-lead) {
    margin-left:0!important;margin-right:0!important;text-align:left!important;
   }
   body.imported-wiki-page #edu-open :is(.edu-title,.edu-sub) {
    left:50%!important;transform:translate(-50%,-50%)!important;
    margin-left:0!important;margin-right:0!important;text-align:center!important;
    max-width:calc(100vw - 2 * var(--opening-copy-left));
   }
   
   /* The frame clips the scroll track before either rounded corner. */
   body.human-practice-page:not(.collab-page) #survey .hp-scroll-frame {
    box-sizing:border-box;width:100%;height:calc(50vh + 5.5cm);
    min-height:calc(300px + 5.5cm);margin-top:.5cm;
    padding:10px 4px 10px 0;overflow:hidden;border-radius:22px;
    border:1px solid rgba(47,111,158,.38);background:transparent;
   }
   body.human-practice-page:not(.collab-page) #survey .hp-scroll-card {
    width:100%;height:100%;min-height:0;margin:0;padding:12px clamp(20px,1.8vw,32px) 20px;
    border:0;border-radius:0;scrollbar-gutter:stable;
   }
   body.human-practice-page:not(.collab-page) #survey .hp-scroll-card .hp-quote-body,
   body.human-practice-page:not(.collab-page) #survey .hp-scroll-card .hp-quote-body p {
    margin-block:0!important;
   }
   body.human-practice-page:not(.collab-page) #survey .hp-scroll-card .hp-fig {
    margin:.2cm auto!important;position:relative;overflow:hidden;
    aspect-ratio:var(--survey-chart-width) / var(--survey-chart-height);
   }
   /* Preserve all chart marks and labels; remove the files' transparent top/bottom borders. */
   body.human-practice-page:not(.collab-page) #survey .hp-scroll-card .hp-fig:nth-of-type(1) {
    --survey-chart-width:3300;--survey-chart-height:2338;--survey-chart-top:95;
   }
   body.human-practice-page:not(.collab-page) #survey .hp-scroll-card .hp-fig:nth-of-type(2) {
    --survey-chart-width:4000;--survey-chart-height:1907;--survey-chart-top:192;
   }
   body.human-practice-page:not(.collab-page) #survey .hp-scroll-card .hp-fig:nth-of-type(3) {
    --survey-chart-width:3997;--survey-chart-height:2178;--survey-chart-top:159;
   }
   body.human-practice-page:not(.collab-page) #survey .hp-scroll-card .hp-fig img {
    display:block;position:absolute;left:0;top:calc(-100% * var(--survey-chart-top) / var(--survey-chart-height));
    width:100%!important;max-width:none!important;height:auto!important;max-height:none;margin:0;
   }
   body.imported-wiki-page.human-practice-page:not(.collab-page) #care-analysis .hp-candidate-figure.hp-flush-diagram {
    margin-block:.5cm!important;
   }
   
   /* Move the 2.1 text together, preserving the island positions below it. */
   body.education-page:not(.human-practice-page) #voyage .edu-sea-head {position:relative;top:2cm;}
   body.education-page:not(.human-practice-page) #eduOrbit {translate:0 2cm;}
   
   /* Four larger charts stay on one row; narrow screens can pan this row. */
   body.education-page:not(.human-practice-page) .edu-capradar-strip {
    width:calc(100% + 3cm)!important;max-width:var(--edu-radar-available,100%)!important;
    overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
    padding-bottom:8px;scrollbar-width:thin;
   }
   body.education-page:not(.human-practice-page) #eduCapRadarGrid {
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    display:grid!important;width:100%;min-width:900px;gap:12px;
   }
   body.education-page:not(.human-practice-page) #eduEvoTrack .edu-evo-card h3 {
    font-size:var(--edu-expert-name-size,26px)!important;
    line-height:1.3!important;letter-spacing:-.02em!important;white-space:nowrap;
   }
   
   /* Team filter: lift another 0.5 cm from the previous 1 cm adjustment. */
   body.members-page #member-filters {
    top:max(8px,calc(var(--team-main-nav-bottom,var(--dogma-nav-clearance,124px)) + 12px - 1.5cm));
    padding:10px 12px;align-items:center;box-sizing:border-box;justify-content:flex-start;justify-content:safe center;
    border:1px solid var(--dogma-glass-line);border-radius:1.65rem;
    background:linear-gradient(135deg,rgba(255,255,255,.28),rgba(255,255,255,.04) 58%,rgba(127,197,238,.07)),var(--dogma-glass);
    box-shadow:var(--dogma-glass-shadow);
    -webkit-backdrop-filter:blur(var(--dogma-glass-blur)) saturate(165%);
    backdrop-filter:blur(var(--dogma-glass-blur)) saturate(165%);
   }
   body.members-page #member-wet-team-fangying-xiang .member-card-role,
   body.members-page #group-PI .member-card-role {white-space:nowrap;flex-shrink:0;}
   body.members-page #group-PI .member-photo-card {
    background:transparent;
   }
   body.members-page #group-PI .member-photo-card img {
    inset:auto;left:50%;top:6%;width:auto;height:auto;max-width:70%;max-height:65%;
    transform:translateX(-50%)!important;filter:none!important;
    object-fit:contain;object-position:center top;
   }
   body.members-page #group-PI .member-card-header {flex-direction:column;gap:8px;}
   body.members-page #group-PI .member-card-role {max-width:100%;font-size:clamp(11px,1.05vw,13.44px);}
   
   @media(max-width:1100px) {
    body.education-page:not(.human-practice-page) #eduOrbit {translate:1cm -5cm;}
   }
   @media(max-width:760px) {
    body.human-practice-page:not(.collab-page) #survey .hp-scroll-frame {height:calc(60vh + 5.5cm);}
   }
   @media(max-width:700px) {
    body.education-page:not(.human-practice-page) #eduOrbit {width:calc(100% - 2cm);}
    body.education-page:not(.human-practice-page) #eduEvoTrack .edu-evo-card {padding-inline:16px;}
    body.members-page #member-filters {border-radius:1.3rem;padding:8px;}
   }
   
   /* Representative proteins use the same blurred Read More treatment as Education activities. */
   body.human-practice-page:not(.collab-page) #care-analysis .hp-protein-card-strip {
    width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;
    padding:4px 2px 14px;box-sizing:border-box;scrollbar-width:thin;
   }
   body.human-practice-page:not(.collab-page) #care-analysis .hp-protein-card-row {
    grid-template-columns:repeat(4,minmax(0,1fr))!important;min-width:780px;
    gap:12px;margin-top:20px;
   }
   body.human-practice-page:not(.collab-page) #care-analysis .hp-protein-card {
    position:relative;display:block;min-height:280px;padding:14px 12px;overflow:hidden;
    background:var(--dogma-surface,#fff);text-align:center;
   }
   body.human-practice-page:not(.collab-page) .hp-protein-card-content {
    display:flex;flex-direction:column;align-items:center;gap:12px;
    transition:filter .3s ease,opacity .3s ease;
   }
   body.human-practice-page:not(.collab-page) #care-analysis img.hp-protein-card-image {
    display:block;width:100%;height:160px;object-fit:contain;margin:0;
   }
   body.human-practice-page:not(.collab-page) .hp-protein-card-name {font-size:20px;}
   body.human-practice-page:not(.collab-page) .hp-protein-card-note {font-size:14px;line-height:1.5;white-space:nowrap;}
   body.human-practice-page:not(.collab-page) .hp-protein-card::before {
    content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
    background:rgba(255,255,255,.25);opacity:0;transition:opacity .3s ease;
   }
   body.human-practice-page:not(.collab-page) .hp-protein-card-more {
    position:absolute;top:50%;left:50%;z-index:2;pointer-events:none;
    transform:translate(-50%,-50%);padding:6px 17px;border-radius:999px;
    font:700 14.8px/1.3 Inter,Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;
    color:#fff;background:var(--dogma-blue,#216a9e);white-space:nowrap;
    box-shadow:0 6px 16px rgba(18,70,160,.32);opacity:0;transition:opacity .3s ease;
   }
   body.human-practice-page:not(.collab-page) .hp-protein-card:is(:hover,:focus-visible) .hp-protein-card-content {filter:blur(5px);opacity:.55;}
   body.human-practice-page:not(.collab-page) .hp-protein-card:is(:hover,:focus-visible)::before,
   body.human-practice-page:not(.collab-page) .hp-protein-card:is(:hover,:focus-visible) .hp-protein-card-more {opacity:1;}
   body.human-practice-page:not(.collab-page) .hp-ethics-table {table-layout:auto;min-width:720px;}
   body.human-practice-page:not(.collab-page) .hp-ethics-table .hp-validation-label {white-space:nowrap;}
   body.imported-wiki-page.human-practice-page:not(.collab-page) #care-analysis .hp-ethical-figure.hp-flush-diagram {
    margin-block:.5cm!important;
   }
   @media(hover:none) {
    body.human-practice-page:not(.collab-page) .hp-protein-card-content {padding-bottom:44px;}
    body.human-practice-page:not(.collab-page) .hp-protein-card-more {top:auto;bottom:18px;transform:translateX(-50%);opacity:1;}
   }
   @media(prefers-reduced-motion:reduce) {
    body.human-practice-page:not(.collab-page) :is(.hp-protein-card-content,.hp-protein-card-more,.hp-protein-card::before) {transition:none;}
   }
   
   /* HP copy starts at the main navigation's outer left border at every viewport. */
   body.imported-wiki-page.human-practice-page #hp-opening {
    padding-left:var(--opening-copy-left)!important;
    padding-right:var(--opening-copy-left)!important;
   }
   body.imported-wiki-page.human-practice-page #hp-opening .result-hero-copy {
    left:0!important;align-self:flex-start!important;padding-left:0!important;
   }
   body.members-page #team-photo .members-photo-copy {
    display:block;width:100%;max-width:none;text-align:center!important;
    margin-inline:auto!important;
   }
   
   /* Keep the end of CARE readable and the conclusion in normal document flow. */
   body.imported-wiki-page.human-practice-page:not(.collab-page) #care-analysis > .hp-panel-card {
    padding-bottom:0!important;
   }
   body.imported-wiki-page.human-practice-page:not(.collab-page) #conclusion.members-snap-panel {
    margin-top:0!important;padding-top:0!important;
   }
   body.imported-wiki-page.human-practice-page:not(.collab-page) #conclusion > .hp-panel-card {
    padding-top:0!important;background:none!important;border-color:transparent!important;
    box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;
   }
   /* Timeline cards retain their rounded outlines without a protruding colour stripe. */
   body.imported-wiki-page:is(.education-page,.human-practice-page) .wiki-scene-content .edu-evo-card::before {
    content:none!important;display:none!important;
   }
   
   /* Keep the ethical commitments in the text column; only their table may pan. */
   body.imported-wiki-page.human-practice-page:not(.collab-page) #care-analysis .hp-societal-copy {
    box-sizing:border-box;align-self:stretch;width:100%;max-width:100%;min-width:0;
   }
   body.imported-wiki-page.human-practice-page:not(.collab-page) .hp-societal-copy .hp-ethics-table-wrap {
    width:100%;max-width:100%;min-width:0;overflow-x:auto;
   }
   