/* R246: compact supporting documents, scoped to the public reading surface. */
html[data-theme] body #pageRoot .p246-document-item{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:100%;min-width:0;margin:0;padding:0;border:0;background:none;box-shadow:none}
html[data-theme] body #pageRoot :is(.r234-evidence-links,.cvj-evidence-list){display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:flex-start;gap:8px;min-width:0}
html[data-theme] body #pageRoot button.p246-document-button{
 display:inline-flex!important;align-items:center;justify-content:flex-start!important;gap:8px;
 width:auto!important;max-width:100%!important;min-width:0!important;min-height:44px!important;height:auto!important;
 padding:8px 12px!important;margin:0!important;border:1px solid var(--n243-line,#d6dfd5)!important;border-radius:8px!important;
 background:var(--n243-paper,#fffefa)!important;color:var(--n243-ink,#173c3a)!important;
 font-size:14px!important;line-height:1.7!important;text-align:start!important;white-space:normal!important;
 overflow-wrap:anywhere!important;word-break:normal!important;box-shadow:none!important;transform:none!important;cursor:pointer;
}
html[data-theme] body #pageRoot button.p246-document-button:hover{background:var(--n243-soft,#e8eee6)!important;border-color:var(--n243-teal,#22675e)!important}
html[data-theme] body #pageRoot button.p246-document-button:focus-visible{outline:2px solid var(--n243-teal,#22675e)!important;outline-offset:3px}
html[data-theme] body #pageRoot button.p246-document-button :is(.cvj-evidence-text,.r234-evidence-label){min-width:0;max-width:100%;text-align:start!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
html[data-theme] body #pageRoot button.p246-document-button svg{flex:0 0 18px;width:18px!important;height:18px!important}
html[data-theme] body #pageRoot button.p246-document-button small{font-size:12px;line-height:1.6;color:var(--n243-muted,#596c67)}
/* Saved free-canvas positions must not leave large empty areas after conversion. */
html[data-theme] body #pageRoot [data-p246-flow=true]{position:static!important;inset:auto!important;display:flex!important;flex-wrap:wrap;align-items:flex-start;gap:8px;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;transform:none!important;overflow:visible!important;padding:0!important;margin:8px 0!important;grid-column:1/-1}
html[data-theme] body #pageRoot [data-p246-flow=true]>.attachment-heading{flex-basis:100%;margin:0 0 4px}
html[data-theme] body #pageRoot .p246-preview-layout-control{display:none!important}
html[data-theme] body #pageRoot [data-p246-flow=true]>.block-attachment-layout-toolbar{flex-basis:100%;flex-wrap:wrap}
@media(max-width:600px){html[data-theme] body #pageRoot .p246-document-item{flex-basis:100%}html[data-theme] body #pageRoot button.p246-document-button{max-width:100%!important}}
/* R246: keep the home hero together inside the fluid page.
   Scope and specificity intentionally exceed the R244 desktop/mobile rules. */
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home{
  container-name:p246-home;
  container-type:inline-size;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home>.p244-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(220px,280px);
  align-items:center;
  justify-content:center;
  gap:32px clamp(32px,4vw,56px);
  inline-size:100%;
  max-inline-size:980px;
  margin-inline:auto;
  padding:24px 0 44px;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home>.p244-hero>.p244-hero-copy{
  min-inline-size:0;
  max-inline-size:640px;
  justify-self:stretch;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home .p244-hero-copy>p:not(.p244-label){
  max-inline-size:52ch;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home>.p244-hero>.p244-portrait{
  grid-row:auto;
  inline-size:100%;
  max-inline-size:280px;
  justify-self:center;
  margin:0;
  padding:0;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home .p244-portrait::before{
  content:none;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home .p244-portrait-media{
  display:grid;
  place-items:center;
  inline-size:100%;
  aspect-ratio:4/5;
  min-height:0;
  min-block-size:0;
  overflow:hidden;
  border:1px solid var(--n243-line);
  border-radius:72px 12px 12px 12px;
  background:var(--n243-soft);
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home .p244-portrait-media>[data-media-image]{
  display:block;
  inline-size:100%;
  block-size:100%;
  min-inline-size:0;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home .p244-portrait img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  aspect-ratio:4/5;
  object-fit:contain;
  object-position:center;
  border-radius:0;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home .p244-portrait-caption{
  position:relative;
  margin:12px 0 0;
  padding:12px 14px;
  border-inline-start:3px solid var(--n243-brass);
  border-radius:4px;
  background:var(--n243-paper);
  box-shadow:none;
  font-size:13px;
  line-height:1.8;
  overflow-wrap:anywhere;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home .p244-portrait-caption small{
  font-size:12px;
  line-height:1.8;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home .p245-photo-change{
  margin-top:12px;
  max-inline-size:100%;
}
/* The content area can be narrow while the desktop sidebar is still visible. */
@container p246-home (max-width:760px){
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home>.p244-hero{
    grid-template-columns:minmax(0,1fr);
    max-inline-size:620px;
    gap:28px;
    padding:16px 0 36px;
  }
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home>.p244-hero>.p244-hero-copy{
    grid-row:2;
    inline-size:100%;
  }
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home>.p244-hero>.p244-portrait{
    grid-row:1;
    max-inline-size:230px;
  }
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home .p244-hero h1{
    font-size:clamp(30px,5cqw,38px);
    line-height:1.65;
  }
}
/* Viewport fallback also covers browsers without container-query support. */
@media(max-width:760px){
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home>.p244-hero{
    grid-template-columns:minmax(0,1fr);
    max-inline-size:620px;
    gap:28px;
    padding:16px 0 36px;
  }
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home>.p244-hero>.p244-hero-copy{
    grid-row:2;
    inline-size:100%;
  }
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home>.p244-hero>.p244-portrait{
    grid-row:1;
    max-inline-size:230px;
  }
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home .p244-hero h1{
    font-size:clamp(30px,5vw,38px);
    line-height:1.65;
  }
}
@media(max-width:420px){
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home>.p244-hero>.p244-portrait{
    max-inline-size:200px;
  }
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home .p244-hero .p244-actions{
    gap:10px;
  }
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home .p244-hero .p244-actions>.p244-btn{
    flex:1 1 140px;
  }
}
@media print{
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home{
    container-type:normal;
  }
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-home>.p244-hero{
    break-inside:avoid;
  }
}
/* R246: reading measure and narrow-content resilience across public pages.
   Does not change the fluid shell, scientific markup, document readers or visibility. */
html[data-theme] body #pageRoot.n243-public[data-p244-ready] :is(
  .p244-hero-copy,.p244-paper,.p244-paper-top,.p244-paper-footer,
  .story242-copy,.story242-station,.cvj-identity,.cvj-card-main,
  .lr241-entry,.lr241-reflection-body,.lr242-row-footer,
  .r86-abstract,.r86-science-item,[data-p244-proposal-panel]
){
  min-inline-size:0;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] :is(
  .page-header>p,.p244-paper-excerpt,.p244-paper-authors,
  .story242-introduction>p,.story242-copy>p,.story242-statement>p,
  .cvj-identity>p,.cvj-copy>p,.cvj-relevance>p,
  .lr241-entry>p,.lr241-reflection-body>p,.lr242-impact>p,
  .r86-abstract>p,.r126-proposal-section-body>p,
  .block-content>p,.block-component-richtext>p,.p244-chapter-panel p
){
  max-inline-size:82ch;
  overflow-wrap:break-word;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .r86-science-item>div:where(:not(:has(table,figure,img,iframe,canvas,video))){
  max-inline-size:82ch;
  overflow-wrap:break-word;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] :is(
  .page-header h2,.p244-paper h3,.story242-station-heading h4,
  .lr241-entry h3,.lr241-entry h4,.r86-science-item>strong,
  [data-p244-proposal-panel]>h4
){
  max-inline-size:48ch;
  overflow-wrap:break-word;
  text-wrap:pretty;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] :is(
  .story242-copy,.cvj-copy,.lr241-reflection-body,.r86-abstract,
  .r126-proposal-section-body,.block-content,.block-component-richtext
) p+p{
  margin-block-start:.75em;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] :is(
  .p244-paper-top,.p244-paper-footer,.p244-section-head,
  .p244-actions,.lr241-panel-heading,.lr242-row-footer
){
  flex-wrap:wrap;
  gap:12px 16px;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] :is(
  .p244-identity-tabs,.p244-proposal-tabs,.lr241-tabs,
  .p244-section-nav,.p244-stepbar,.lr242-source-links,.story242-evidence-links
){
  min-inline-size:0;
  max-inline-size:100%;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] :is(
  .p244-identity-tabs,.p244-proposal-tabs,.lr241-tabs,.p244-section-nav
)>button{
  min-inline-size:0;
  max-inline-size:100%;
  min-block-size:44px;
  white-space:normal;
  overflow-wrap:anywhere;
  text-align:start;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] :is(
  .p244-btn,.p244-source,.lr241-source-button,.story242-evidence,
  .lr242-filename,.p244-paper-code
){
  min-inline-size:0;
  max-inline-size:100%;
  white-space:normal;
  overflow-wrap:anywhere;
}
/* The title filter had no dedicated layout/input styling in R244/R245. */
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-research-filter{
  display:grid;
  gap:8px;
  inline-size:100%;
  max-inline-size:36rem;
  margin-block:0 24px;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-research-filter .p244-search{
  inline-size:100%;
  min-inline-size:0;
  min-block-size:46px;
  padding:10px 14px;
  border:1px solid var(--n243-line);
  border-radius:8px;
  background:var(--n243-paper);
  color:var(--n243-ink);
  font:inherit;
  font-size:15px;
  line-height:1.7;
  box-shadow:none;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-research-filter .p244-search:focus-visible{
  outline:3px solid var(--n243-focus);
  outline-offset:3px;
}
/* R244 reduces this table from five columns to three: the old 820px floor is obsolete. */
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .lr241-matrix.lr242-course-matrix{
  min-width:0;
  min-inline-size:0;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .lr241-table-wrap{
  min-inline-size:0;
  max-inline-size:100%;
  overscroll-behavior-inline:contain;
}
/* Existing r234-public container accounts for the sidebar at desktop widths. */
@media screen{
  @container r234-public (max-width:760px){
    html[data-theme] body #pageRoot.n243-public[data-p244-ready] :is(.lr242-plan-grid,.lr242-evidence-grid,.lr242-ip-grid,.p244-columns,.p244-grid){
      grid-template-columns:minmax(0,1fr);
    }
    html[data-theme] body #pageRoot.n243-public[data-p244-ready] .lr241-matrix.lr242-course-matrix,
    html[data-theme] body #pageRoot.n243-public[data-p244-ready] .lr242-course-matrix :is(tbody,tr){
      display:block;
      inline-size:100%;
    }
    html[data-theme] body #pageRoot.n243-public[data-p244-ready] .lr242-course-matrix thead{
      display:none;
    }
    html[data-theme] body #pageRoot.n243-public[data-p244-ready] .lr242-course-matrix td{
      display:block;
      width:100%!important;
      inline-size:100%!important;
      text-align:start!important;
      border-top:0;
      padding:12px 16px;
    }
    html[data-theme] body #pageRoot.n243-public[data-p244-ready] .lr242-course-matrix td::before{
      content:attr(data-label);
      display:block;
      margin-block-end:6px;
      color:var(--n243-muted);
      font-size:14px;
      line-height:1.8;
    }
    html[data-theme] body #pageRoot.n243-public[data-p244-ready] .lr242-course-matrix tr+tr{
      border-top:2px solid var(--n243-line);
    }
    html[data-theme] body #pageRoot.n243-public[data-p244-ready] .lr242-course-matrix td:first-child{
      background:var(--n243-soft);
    }
  }
}
@media(max-width:760px){
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] :is(.lr242-plan-grid,.lr242-evidence-grid,.lr242-ip-grid,.p244-columns,.p244-grid){
    grid-template-columns:minmax(0,1fr);
  }
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .lr241-matrix.lr242-course-matrix,
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .lr242-course-matrix :is(tbody,tr){
    display:block;
    inline-size:100%;
  }
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .lr242-course-matrix thead{
    display:none;
  }
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .lr242-course-matrix td{
    display:block;
    width:100%!important;
    inline-size:100%!important;
    text-align:start!important;
    border-top:0;
    padding:12px 16px;
  }
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .lr242-course-matrix td::before{
    content:attr(data-label);
    display:block;
    margin-block-end:6px;
    color:var(--n243-muted);
    font-size:14px;
    line-height:1.8;
  }
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .lr242-course-matrix tr+tr{
    border-top:2px solid var(--n243-line);
  }
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .lr242-course-matrix td:first-child{
    background:var(--n243-soft);
  }
}
@media(max-width:520px){
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] :is(.p244-paper,.lr241-entry,[data-p244-proposal-panel]:not([hidden])){
    padding:18px 16px;
  }
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] .p244-paper h3{
    font-size:20px;
    line-height:1.8;
  }
}
/* R246: size the reading surface together with its text, rather than leaving
   a short text column inside a full-width bordered panel. The shell stays fluid. */
html[data-theme] body #pageRoot.n243-public[data-p244-ready]{
  --r246-reading-frame:90ch;
  --r246-evidence-frame:1120px;
}
/* These are application-generated reading panels, not owner-designed canvases. */
html[data-theme] body #pageRoot.n243-public[data-p244-ready] :is(
  .lr242-reflections>.lr241-reflection,
  .lr242-change-list>.lr241-reflection,
  .lr242-stage-grid,
  .p244-research-cards,
  .cvj-grid,
  [data-p244-proposal-panel]:not([hidden])
){
  inline-size:100%;
  max-inline-size:var(--r246-reading-frame);
  margin-inline:auto;
}
/* Multi-card evidence and planning collections retain useful side-by-side space. */
html[data-theme] body #pageRoot.n243-public[data-p244-ready] :is(
  .lr242-evidence-grid,.lr242-plan-grid,.lr242-ip-grid
){
  inline-size:100%;
  max-inline-size:var(--r246-evidence-frame);
  margin-inline:auto;
}
/* Give the story's introduction, timeline and conclusion a common reading edge. */
html[data-theme] body #pageRoot.n243-public[data-p244-ready] :is(
  .story242-introduction,.story242-grid,.story242-statement,.story242-proposal
){
  inline-size:100%;
  max-inline-size:var(--r246-reading-frame);
  margin-inline:auto;
}
/* Fill these bounded surfaces; the frame now supplies the reading measure. */
html[data-theme] body #pageRoot.n243-public[data-p244-ready] :is(
  .p244-paper-excerpt,.p244-paper-authors,
  .lr241-reflection-body>p,.lr241-entry>p,.lr242-impact>p,
  .story242-introduction>p,.story242-copy>p,.story242-statement>p,
  .cvj-copy>p,.cvj-relevance>p,
  [data-p244-proposal-panel]>.r126-proposal-section-body>p,
  [data-p244-proposal-panel]>.p244-prose,
  .r86-abstract[data-p244-proposal-panel]>p,
  .r86-science-item[data-p244-proposal-panel]>div
){
  max-inline-size:100%;
}
/* Ordinary text-only blocks can use a bounded frame too. Explicit media,
   mixed research records, table components and editable layouts are excluded. */
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .block:where(:not(.editable,.r86-research-mixed,.r31-document-collection-block):not(:has(.block-document-canvas,.block-component-table,.block-component-spreadsheet,iframe,canvas,video)):has(>.block-composition>.block-component-richtext:only-child)){
  inline-size:100%;
  max-inline-size:var(--r246-reading-frame);
  margin-inline:auto;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .block:where(:not(.editable,.r86-research-mixed,.r31-document-collection-block):not(:has(.block-document-canvas,.block-component-table,.block-component-spreadsheet,iframe,canvas,video)):has(>.block-composition>.block-component-richtext:only-child))>.block-composition>.block-component-richtext>p{
  max-inline-size:100%;
}
/* A grid saved with two component columns must not reserve a blank column
   when its only rendered component is text. Overlay/mosaic layouts are untouched. */
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .block:not(.editable,.r86-research-mixed)>.block-composition:is([data-layout="grid"],[data-layout="stack"]):has(>.block-component-richtext:only-child){
  grid-template-columns:minmax(0,1fr);
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .block:not(.editable,.r86-research-mixed)>.block-composition:is([data-layout="grid"],[data-layout="stack"]):has(>.block-component-richtext:only-child)>.block-component-richtext{
  grid-column:1/-1;
  inline-size:100%;
  min-inline-size:0;
}
/* JS37 marks only public blocks whose media has become compact document links.
   This releases the saved 1400px minimum after the old visual canvas is gone. */
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .block[data-p246-compact-block="true"]{
  inline-size:100%;
  max-inline-size:var(--r246-reading-frame);
  margin-inline:auto;
  height:auto!important;
  min-height:0!important;
  block-size:auto!important;
  min-block-size:0!important;
  align-content:start;
}
html[data-theme] body #pageRoot.n243-public[data-p244-ready] .block[data-p246-compact-block="true"] .block-component-richtext>p{
  max-inline-size:100%;
}
@media(max-width:760px){
  html[data-theme] body #pageRoot.n243-public[data-p244-ready] :is(
    .lr242-reflections>.lr241-reflection,.lr242-change-list>.lr241-reflection,
    .lr242-stage-grid,.p244-research-cards,.cvj-grid,
    .story242-introduction,.story242-grid,.story242-statement,.story242-proposal,
    [data-p244-proposal-panel]:not([hidden])
  ){
    max-inline-size:100%;
  }
}
/* R246: darker public header, page-navigation drawer and footer.
   No content-surface, administration-panel or document-reader selectors. */
@media screen{
  html[data-theme][data-p244-layout]{
    --r246-chrome:#153b36;
    --r246-chrome-deep:#10312d;
    --r246-chrome-control:#234f46;
    --r246-chrome-hover:#2a5d52;
    --r246-chrome-active:#326b5f;
    --r246-chrome-ink:#f4f7ee;
    --r246-chrome-secondary:#e1eae3;
    --r246-chrome-link:#dceee4;
    --r246-chrome-line:#638c7c;
    --r246-chrome-gold:#e4c587;
  }
  html[data-theme="dark"][data-p244-layout]{
    --r246-chrome:#0b201b;
    --r246-chrome-deep:#071713;
    --r246-chrome-control:#173d32;
    --r246-chrome-hover:#255746;
    --r246-chrome-active:#2c6652;
    --r246-chrome-line:#668f7c;
    --r246-chrome-ink:#f4f7ee;
    --r246-chrome-secondary:#e1eae3;
    --r246-chrome-link:#dceee4;
    --r246-chrome-gold:#ead092;
  }
  html[data-theme][data-p244-layout] body>.topbar{
    background:var(--r246-chrome)!important;
    background-image:none!important;
    color:var(--r246-chrome-ink)!important;
    border-bottom-color:var(--r246-chrome-line)!important;
  }
  html[data-theme][data-p244-layout] body>.topbar :is(.brand-title,.brand-sub,.brand-subtitle,.r121-mobile-college-name){
    color:var(--r246-chrome-ink)!important;
    opacity:1;
    text-shadow:none;
  }
  html[data-theme][data-p244-layout] body>.topbar .brand-logo{
    background:var(--r246-chrome-control)!important;
    color:var(--r246-chrome-ink)!important;
    border:1px solid var(--r246-chrome-gold)!important;
  }
  /* Explicit IDs win over the R244/R245 !important light toolbar buttons. */
  html[data-theme][data-p244-layout] body>.topbar .toolbar button:is(#searchBtn,#printBtn,#themeBtn,#langBtn,#manageBtn,#mobileMenuBtn,#maharaBtn){
    background:var(--r246-chrome-control)!important;
    background-image:none!important;
    color:var(--r246-chrome-ink)!important;
    border-color:var(--r246-chrome-line)!important;
    box-shadow:none!important;
  }
  html[data-theme][data-p244-layout] body>.topbar .toolbar button:is(#searchBtn,#printBtn,#themeBtn,#langBtn,#manageBtn,#mobileMenuBtn,#maharaBtn):is(:hover,:active,[aria-expanded="true"]){
    background:var(--r246-chrome-hover)!important;
    color:var(--r246-chrome-ink)!important;
    border-color:var(--r246-chrome-gold)!important;
  }
  html[data-theme][data-p244-layout] body>.topbar .toolbar :is(.toolbar-symbol,.portfolio-assistant-symbol,.r121-mahara-word){
    color:inherit!important;
    background:transparent!important;
  }
  html[data-theme][data-p244-layout] body>.topbar .toolbar button svg{
    color:inherit!important;
    stroke:currentColor!important;
  }
  /* The same #sidebar is the desktop navigation and the mobile page drawer. */
  html[data-theme][data-p244-layout] body>.shell>#sidebar.sidebar{
    background:var(--r246-chrome)!important;
    background-image:none!important;
    color:var(--r246-chrome-ink)!important;
    border-inline-end-color:var(--r246-chrome-line)!important;
  }
  html[data-theme][data-p244-layout] body>.shell>#sidebar .nav-item{
    background:transparent!important;
    color:var(--r246-chrome-ink)!important;
    border-color:transparent!important;
  }
  html[data-theme][data-p244-layout] body>.shell>#sidebar .nav-item .nav-title{
    color:inherit!important;
  }
  html[data-theme][data-p244-layout] body>.shell>#sidebar .nav-item:hover{
    background:var(--r246-chrome-hover)!important;
    color:var(--r246-chrome-ink)!important;
  }
  html[data-theme][data-p244-layout] body>.shell>#sidebar .nav-item:is(.active,[aria-current="page"]){
    background:var(--r246-chrome-active)!important;
    color:var(--r246-chrome-ink)!important;
    font-weight:700;
    box-shadow:inset 3px 0 var(--r246-chrome-gold)!important;
  }
  html[data-theme][data-p244-layout][dir="rtl"] body>.shell>#sidebar .nav-item:is(.active,[aria-current="page"]){
    box-shadow:inset -3px 0 var(--r246-chrome-gold)!important;
  }
  html[data-theme][data-p244-layout] body>.shell>#sidebar :is(.nav-symbol,.nav-icon){
    background:transparent!important;
    color:var(--r246-chrome-gold)!important;
  }
  html[data-theme][data-p244-layout] body>.shell>#sidebar :is(.side-label,.sidebar-toggle-text,.sidebar-local-date,.sidebar-location,.sidebar-visitor-label){
    color:var(--r246-chrome-secondary)!important;
    opacity:1;
  }
  html[data-theme][data-p244-layout] body>.shell>#sidebar .sidebar-collapse-btn{
    background:var(--r246-chrome-control)!important;
    color:var(--r246-chrome-ink)!important;
    border-color:var(--r246-chrome-line)!important;
  }
  html[data-theme][data-p244-layout] body>.shell>#sidebar .sidebar-collapse-btn:hover{
    background:var(--r246-chrome-hover)!important;
    border-color:var(--r246-chrome-gold)!important;
  }
  html[data-theme][data-p244-layout] body>.shell>#sidebar .sidebar-info-panel,
  html[data-theme][data-p244-layout] body>.shell>#sidebar .sidebar-visitor-counter{
    background:transparent!important;
    border-color:var(--r246-chrome-line)!important;
  }
  html[data-theme][data-p244-layout] body>.shell>#sidebar :is(.sidebar-digital-clock,.sidebar-visitor-number){
    background:transparent!important;
    color:var(--r246-chrome-ink)!important;
    border-color:var(--r246-chrome-line)!important;
    opacity:1;
    text-shadow:none;
  }
  /* The exact public-footer scope overrides the older transparent all-* rule. */
  html[data-theme][data-p244-layout] body #pageRoot.n243-public[data-p244-ready] footer.r110-footer.p244-runtime-footer{
    background:var(--r246-chrome)!important;
    background-image:none!important;
    color:var(--r246-chrome-ink)!important;
    border:1px solid var(--r246-chrome-line)!important;
    border-top:2px solid var(--r246-chrome-gold)!important;
    border-radius:12px!important;
    padding:24px!important;
    box-shadow:none!important;
  }
  html[data-theme][data-p244-layout] body #pageRoot.n243-public[data-p244-ready] footer.r110-footer.p244-runtime-footer *{
    color:inherit!important;
    background:transparent!important;
    border-color:var(--r246-chrome-line)!important;
    opacity:1;
  }
  html[data-theme][data-p244-layout] body #pageRoot.n243-public[data-p244-ready] footer.r110-footer.p244-runtime-footer :is(.r110-footer-program,.r110-footer-university-id,.r110-footer-rights,.r106-home-version){
    color:var(--r246-chrome-secondary)!important;
  }
  html[data-theme][data-p244-layout] body #pageRoot.n243-public[data-p244-ready] footer.r110-footer.p244-runtime-footer .r110-footer-identity{
    border-inline-start-color:var(--r246-chrome-gold)!important;
  }
  html[data-theme][data-p244-layout] body #pageRoot.n243-public[data-p244-ready] footer.r110-footer.p244-runtime-footer .r110-footer-meta{
    background:var(--r246-chrome-deep)!important;
    border-radius:8px;
    padding:12px 16px;
  }
  html[data-theme][data-p244-layout] body #pageRoot.n243-public[data-p244-ready] footer.r110-footer.p244-runtime-footer :is(.r110-footer-link,.p244-footer-links>summary){
    color:var(--r246-chrome-link)!important;
    background:var(--r246-chrome-control)!important;
    border:1px solid var(--r246-chrome-line)!important;
    border-radius:7px;
    padding:7px 11px;
    min-height:40px;
    line-height:1.8;
    max-width:100%;
    white-space:normal;
  }
  html[data-theme][data-p244-layout] body #pageRoot.n243-public[data-p244-ready] footer.r110-footer.p244-runtime-footer :is(.r110-footer-link,.p244-footer-links>summary):hover{
    background:var(--r246-chrome-hover)!important;
    color:var(--r246-chrome-ink)!important;
    border-color:var(--r246-chrome-gold)!important;
  }
  html[data-theme][data-p244-layout] body>.topbar :is(button,a):focus-visible,
  html[data-theme][data-p244-layout] body>.shell>#sidebar :is(button,a):focus-visible,
  html[data-theme][data-p244-layout] body #pageRoot.n243-public[data-p244-ready] footer.r110-footer.p244-runtime-footer :is(a,button,summary):focus-visible{
    outline:3px solid var(--r246-chrome-gold)!important;
    outline-offset:3px;
  }
}

/* R251: reviewed metadata controls and secondary document context. */
.r251-evidence-context{display:block;font-size:.8rem;color:inherit;opacity:.85;line-height:1.65}
.r251-audit-panel{padding:1rem;margin-block:1rem;border:1px solid currentColor;border-radius:12px;background:var(--card,#fff);color:var(--text,#173b37)}
.r251-audit-panel p{line-height:1.8;max-width:80ch}

/* R267: native research links use the same compact layout as the top documents. */
html[data-theme] body #pageRoot [data-r123-proposal-intro] a.r267-research-link{
 display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;
 max-width:100%;min-width:0;min-height:44px;box-sizing:border-box;
 padding:8px 12px;margin:0;border:1px solid var(--n243-line,#d6dfd5);border-radius:8px;
 background:var(--n243-paper,#fffefa);color:var(--n243-ink,#173c3a);
 font-size:14px;line-height:1.7;text-align:start;white-space:normal;
 overflow-wrap:anywhere;word-break:normal;text-decoration:none;
}
html[data-theme] body #pageRoot [data-r123-proposal-intro] a.r267-research-link:hover{background:var(--n243-soft,#e8eee6);border-color:var(--n243-teal,#22675e)}
html[data-theme] body #pageRoot [data-r123-proposal-intro] a.r267-research-link:focus-visible{outline:2px solid var(--n243-teal,#22675e);outline-offset:3px}
html[data-theme] body #pageRoot [data-r123-proposal-intro] a.r267-research-link svg{flex:0 0 18px;width:18px;height:18px}
html[data-theme] body #pageRoot [data-r123-proposal-intro] a.r267-research-link .r234-evidence-label{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
html[data-theme] body #pageRoot [data-r123-proposal-intro] a.r267-research-link small{display:block;font-size:12px;line-height:1.6;color:var(--n243-muted,#596c67)}
@media(max-width:600px){html[data-theme] body #pageRoot [data-r123-proposal-intro] a.r267-research-link{width:100%;flex-basis:100%}}
