/* Recognition remains visual; other supporting documents remain compact. */
#pageRoot .p249-awards-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))!important;gap:18px!important;align-items:stretch!important;}
#pageRoot .p249-award-card{position:relative!important;display:flex!important;flex-direction:column!important;width:auto!important;max-width:none!important;min-width:0!important;height:auto!important;min-height:0!important;margin:0!important;inset:auto!important;transform:none!important;overflow:hidden;border:1px solid #cddbd6;border-radius:16px;background:#fff;color:#153d35;box-shadow:0 5px 18px #143d3510;text-align:start;}
#pageRoot .p249-award-preview{display:block!important;width:100%!important;height:250px!important;min-height:0!important;padding:12px!important;margin:0!important;border:0!important;border-bottom:1px solid #dbe5df!important;border-radius:0!important;position:relative!important;overflow:hidden;background:#f1f6f2!important;color:#254b40!important;cursor:zoom-in;box-sizing:border-box;}
#pageRoot .p249-award-preview img,#pageRoot .p249-award-preview canvas,#pageRoot .p249-award-preview iframe{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;display:block;padding:0!important;border:0;}
#pageRoot .p249-award-preview .r61-award-pdf{display:block;width:100%;height:100%;aspect-ratio:auto;overflow:hidden;}
#pageRoot .p249-award-preview [hidden],#pageRoot .p249-preview-error[hidden],#pageRoot .p249-preview-loading[hidden]{display:none!important;}
#pageRoot .p249-award-preview:not([data-preview-state="ready"]):not([data-preview-state="native"]) .r65-award-pdf-canvas{display:none!important;}
#pageRoot .p249-preview-loading{position:absolute;inset:auto 12px 12px;padding:8px;background:#ffffffed;border-radius:8px;font-size:.83rem;pointer-events:none;}
#pageRoot .p249-preview-error{padding:16px;background:#f9f4e9;color:#674a1f;font-size:.88rem;}
#pageRoot .p249-preview-error p{margin:0 0 10px;}
#pageRoot [data-p249-preview-state="error"]>.p249-award-preview{display:none!important;}
#pageRoot .p249-award-caption{display:flex!important;flex-direction:column!important;gap:10px;padding:16px!important;flex:1;color:inherit;}
#pageRoot .p249-award-caption h4{margin:0!important;font-size:1rem!important;line-height:1.7;overflow-wrap:anywhere;color:var(--n243-ink,#153d35)!important;}
#pageRoot .p249-award-caption p{margin:0;color:var(--n243-muted,#4e665e)!important;font-size:.85rem;}
html[data-theme] #pageRoot .p249-award-card{background:var(--n243-paper,#fff)!important;color:var(--n243-ink,#153d35)!important;border-color:var(--n243-line,#cddbd6)!important;}
html[data-theme] #pageRoot .p249-award-card .p249-award-caption{background:var(--n243-paper,#fff)!important;color:var(--n243-ink,#153d35)!important;}
#pageRoot .p249-award-view{margin-top:auto!important;align-self:stretch;justify-content:center;min-height:44px;white-space:normal;}
#pageRoot .p249-award-card .r59-award-admin{position:static!important;display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 14px;}
#pageRoot .p249-award-card button:focus-visible{outline:3px solid #ac7b25;outline-offset:-3px;}
@media(min-width:1280px){#pageRoot .p249-awards-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(max-width:600px){#pageRoot .p249-awards-grid{grid-template-columns:1fr!important;}#pageRoot .p249-award-preview{height:260px!important;}}
@media print{#pageRoot .p249-award-card{break-inside:avoid;box-shadow:none;}#pageRoot .p249-award-view,#pageRoot .p249-award-card .r59-award-admin,#pageRoot .p249-preview-loading{display:none!important;}}

/* R249: the chosen portfolio theme owns the reading palette and native form
   controls. The former light-dark() tokens followed the inherited system scheme
   because the prototype's data-appearance attribute is not set by the runtime. */
html[data-theme="light"]{color-scheme:light;}
html[data-theme="dark"]{color-scheme:dark;}
html[data-theme="light"] #pageRoot[data-p244-ready]{
 --p-ink:#173c3a;--p-muted:#596c67;--p-paper:#fffefa;--p-bg:#f3f3ec;
 --p-soft:#e8eee6;--p-line:#d6dfd5;--p-accent:#22675e;--p-gold:#86622d;
 --p-dark:#163d38;--p-on:#f5f7ef;--p-dark-hover:#24594f;
 --p-topic-gold:#d7bb83;--p-topic-line:#638a7d;--p-ring-line:#c4b58a40;--p-shadow:#163d3810;
 color-scheme:light;
}
html[data-theme="dark"] #pageRoot[data-p244-ready]{
 --p-ink:#edf2eb;--p-muted:#b7c9c2;--p-paper:#1c302b;--p-bg:#142421;
 --p-soft:#28413a;--p-line:#415b50;--p-accent:#9dd5c4;--p-gold:#d7bb83;
 --p-dark:#244e44;--p-on:#f5f7ef;--p-dark-hover:#316151;
 --p-topic-gold:#e4c994;--p-topic-line:#80a492;--p-ring-line:#c4b58a55;--p-shadow:#00000024;
 color-scheme:dark;
}

/* R249: dark-mode corrections verified against the owner's imported portfolio.
   Exact records and their existing foreground colours only. No typography,
   alignment, scientific markup, saved data or document-page surface changes. */
@media screen{
  /* Transparent author blocks previously retained their light-mode ink. */
  html[data-theme="dark"] #pageRoot.n243-public[data-p244-ready] article.block:is(
    [data-block-id="block-1270bd80-09db-4dd7-8ac0-e08d81d7a8a6"],
    [data-block-id="block-8cb9b028-7234-4f29-af72-eb8abb56970f"],
    [data-block-id="block-31223bb5-8c9f-447e-ac23-ea4eb7a44385"],
    [data-block-id="block-f9acfb5f-7f3f-4c0d-a0f6-6471d9f52b0d"],
    [data-block-id="block-9c6f095c-2d69-485c-9f26-ff1bf975d848"],
    [data-block-id="block-fd9a1595-9764-4a83-a534-b2159b530911"],
    [data-block-id="block-2adb965c-e851-46b9-a1b5-0b64e70c3f5d"],
    [data-block-id="block-4f825b0c-4b4d-4722-bc49-e67a7ccc2a1f"],
    [data-block-id="block-394084c0-2fb9-45af-8ee0-b172d8cfc4a6"],
    [data-block-id="block-a56b631c-44ef-4fbf-9907-2954484fe60f"],
    [data-block-id="block-e9406c1e-c760-4ada-b422-df978dfc605c"],
    [data-block-id="community-overview"]
  ):is([style*="color:#172033" i],[style*="color: #172033" i],[style*="color: rgb(23, 32, 51)" i]){
    color:var(--n243-ink,#edf2eb)!important;
  }
  /* The saved Word spans have their own ink, so inheritance alone cannot fix it. */
  html[data-theme="dark"] #pageRoot.n243-public[data-p244-ready] article.block:is(
    [data-block-id="block-31223bb5-8c9f-447e-ac23-ea4eb7a44385"],
    [data-block-id="block-f9acfb5f-7f3f-4c0d-a0f6-6471d9f52b0d"],
    [data-block-id="block-9c6f095c-2d69-485c-9f26-ff1bf975d848"],
    [data-block-id="block-fd9a1595-9764-4a83-a534-b2159b530911"],
    [data-block-id="block-2adb965c-e851-46b9-a1b5-0b64e70c3f5d"],
    [data-block-id="block-4f825b0c-4b4d-4722-bc49-e67a7ccc2a1f"],
    [data-block-id="block-394084c0-2fb9-45af-8ee0-b172d8cfc4a6"],
    [data-block-id="block-a56b631c-44ef-4fbf-9907-2954484fe60f"],
    [data-block-id="block-e9406c1e-c760-4ada-b422-df978dfc605c"]
  ) .office-rich-content :is([style*="color:#15233b" i],[style*="color: #15233b" i],[style*="color: rgb(21, 35, 59)" i]),
  html[data-theme="dark"] #pageRoot.n243-public[data-p244-ready] article.block[data-block-id="block-1270bd80-09db-4dd7-8ac0-e08d81d7a8a6"] .office-rich-content :is(
    [style*="color:#12355b" i],[style*="color: #12355b" i],[style*="color: rgb(18, 53, 91)" i],
    [style*="color:#356e73" i],[style*="color: #356e73" i],[style*="color: rgb(53, 110, 115)" i]
  ){
    color:var(--n243-ink,#edf2eb)!important;
  }
  /* Three saved pale gradients conflict with the dark-theme section headings. */
  html[data-theme="dark"] #pageRoot.n243-public[data-p244-ready] article.block:is(
    [data-block-id="block-ccec80f4-1f36-435f-9f20-1e961092cdb9"],
    [data-block-id="block-11d61951-4c5a-4f39-8507-47db2915d249"],
    [data-block-id="block-ed1ab37a-8e32-4543-a778-2d426ffa81f1"]
  ){
    background:var(--n243-paper,#1c302b)!important;
    color:var(--n243-ink,#edf2eb)!important;
    border-color:var(--n243-line,#42594f)!important;
  }
  /* Existing access settings: their labels already use the a243 dark ink. */
  html[data-theme="dark"] #r180AccessModal .r180-download-toggle{
    background:var(--a243-soft,#243d35);
    color:var(--a243-ink,#edf2eb);
    border-color:var(--a243-line,#5e7b6d);
  }
  html[data-theme="dark"] #r180AccessModal .r180-preview-file input[type="file"]{
    background:var(--a243-paper,#1c302b);
    color:var(--a243-ink,#edf2eb);
    border-color:var(--a243-control-line,#8dab9c);
  }
  /* Change the loading message surface; loaded document images stay untouched. */
  html[data-theme="dark"] #adminDrawer .media-card .r190-library-cover[data-cover-state="pending"]{
    background:var(--a243-soft,#243d35);
    color:var(--a243-muted,#b6c9be);
  }
}
