/* The platform directory stays in the workbench; the document shows what its recipient would see. */
body:has(.cc) .galaxy-sky { opacity: .11; }
.cc {
  --cc-line: #353a3b;
  --cc-text: #f0ece2;
  --cc-soft: #b7bcbb;
  --cc-paper-ink: #27251f;
  --cc-gold: #d6ae6a;
  color: var(--cc-text);
}
.cc .pagehead { align-items: flex-start; margin: 4px 3px 15px; }
.cc .pagehead h1 { font: 700 var(--type-page)/1.22 var(--display); letter-spacing: .035em; }
.cc .pagehead p { margin-top: 5px; color: #cdcac3; font-size: var(--type-body); }
.cc-date { color: #b9bdc1; font-size: 13px; }
.cc-context, .cc-directory { border: 1px solid var(--cc-line); border-radius: 12px; background: #14191e; }
.cc-context { padding: 16px 20px 5px; margin-bottom: 20px; background: #191e23; }
.cc-context-line { display: flex; align-items: center; gap: 20px; padding: 0 0 10px; }
.cc-project-link { flex: none; display: flex; gap: 12px; align-items: baseline; color: var(--cc-text); font: 600 var(--type-body)/1.4 var(--display); }
.cc-project-link i { color: var(--cc-gold); font: italic 600 var(--type-card)/1.2 Georgia,serif; white-space: nowrap; }
.cc-details { min-width: 0; border: 0; border-left: 1px solid #50504b; padding: 2px 0 2px 20px; }
.cc-details summary { color: #ddd4bf; cursor: pointer; }
.cc-details[open] summary { display: none; }
.cc-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-size: 15px; }
.cc-facts + .cc-facts { margin-top: 6px; }
.cc-facts > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.cc-facts > div + div { border-left: 1px solid #454a4d; padding-left: 16px; }
.cc-facts span, .cc-sources > span { color: var(--cc-soft); white-space: nowrap; }
.cc-decision-link { color: #eee9df; }
.cc-decision-link b { display: inline-block; font: 500 12px/1.6 var(--font-sans); white-space: nowrap; padding: 0 6px; border-radius: 4px; background: #453b2c; color: #efc784; }
.cc-decision-link b[data-status="approved"] { background: #233d32; color: #a3d2b6; }
.cc-decision-link b[data-status="rejected"] { background: #4b2f2e; color: #efb9af; }
.cc-project-link:hover strong, .cc-decision-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.cc-sources { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 14px; border-top: 1px solid #353a3c; font-size: 15px; }
.cc-doc { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 0; color: #a4d8c3; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #648f81; }
.cc-doc:hover { text-decoration-thickness: 2px; }
.cc-desk { display: grid; grid-template-columns: minmax(230px, .93fr) minmax(0, 2fr); gap: 16px; align-items: stretch; }
.cc-directory { display: flex; flex-direction: column; padding: 20px 15px 16px; min-width: 0; background: #11161c; }
.cc-directory header { margin: 0 8px 21px; }
.cc-directory h2 { font: 650 var(--type-section)/1.4 var(--display); }
.cc-directory p { color: #bbbdbb; font-size: 14px; margin-top: 4px; }
.cc-platforms { display: grid; gap: 15px; }
.cc-platforms a { display: flex; gap: clamp(12px,1.45vw,24px); align-items: center; min-height: 81px; padding: 12px 15px; border: 1px solid #333b43; border-radius: 8px; background: #191e24; color: var(--cc-text); transition: background-color .15s,border-color .15s; }
.cc-platforms a:hover { background: #20262c; border-color: #666765; }
.cc-platforms a[aria-current] { outline: 1px solid #deb575; outline-offset: -2px; border-color: #e3b773; background: #2c2923; }
.cc-mark { width: 48px; height: 48px; object-fit: contain; flex: none; }
.cc-platforms strong { display: block; font: 650 var(--type-lead)/1.35 var(--display); }
.cc-platforms small { display: block; margin-top: 4px; color: #c3c4c1; font-size: 15px; }
.cc-platforms .icon { flex: none; margin-left: auto; color: #bdc3c3; }
.cc-platforms [aria-current] .icon { color: #e8c88d; }
.cc-directory footer { display: flex; gap: 9px; align-items: center; margin-top: auto; padding: 18px 5px 4px; border-top: 1px solid #343c40; color: #b7bfbd; font-size: 14px; }
.cc-directory footer strong { color: #e2ddd3; font-weight: 500; }
.cc-paper { color-scheme: light; display: flex; flex-direction: column; min-width: 0; min-height: 594px; padding: 20px clamp(20px,2vw,34px) 12px; border: 1px solid #cec8b9; border-radius: 12px; color: var(--cc-paper-ink); background: #f2ede3 url("../assets/collab/paper.webp") repeat; background-size: 256px 256px; }
.cc-paper-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.cc-paper-head h2 { font: 700 var(--type-section)/1.35 var(--display); letter-spacing: .01em; }
.cc-paper-head h2 span { font-size: .85em; }
.cc-paper-head small { margin-left: auto; border: 1px solid #ada598; border-radius: 5px; padding: 2px 8px; color: #443c32; font: 550 13px/1.6 var(--display); }
.cc-stages { margin-top: 12px; display: flex; border-bottom: 1px solid #c5bdae; }
.cc-stages a { display: grid; place-items: center; min-height: 47px; padding: 0 clamp(12px,1.45vw,24px); border-bottom: 3px solid transparent; color: #47433b; font: 650 var(--type-lead)/1.3 var(--display); }
.cc-stages a[aria-current] { color: #815a23; border-color: #b78a4d; }
.cc-stages a:hover { background: #88765212; }
.cc-message { flex: 1; padding: clamp(22px,2.25vw,36px) clamp(2px,.7vw,13px) 27px; }
.cc-recipient { display: flex; gap: 12px; align-items: center; font-size: 15px; color: #555046; }
.cc-message h3 { margin-top: 12px; color: #211e19; font: 700 var(--type-feature)/1.28 var(--display); letter-spacing: .025em; overflow-wrap: anywhere; }
.cc-copy { margin-top: 6px; color: #353127; font-size: var(--type-body); line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.cc-fields { margin: 24px 0 30px; font-size: var(--type-body); }
.cc-fields > div { display: grid; grid-template-columns: 6em minmax(0,1fr); gap: 13px; align-items: baseline; padding: 4px 0; }
.cc-fields > div + div { border-top: 1px solid #a89a841f; }
.cc-fields dt { border-radius: 4px; background: #dcd5c887; padding: 3px 7px; color: #4f493e; text-align: center; font: 600 .87em/1.55 var(--display); }
.cc-fields dd { margin: 0; overflow-wrap: anywhere; }
.cc-open { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 53px; padding: 11px 37px; background: #543a19; border: 1px solid #4c331a; border-radius: 6px; color: #fff5de; font: 600 var(--type-card)/1.4 var(--display); transition: background-color .15s; }
.cc-open:hover { background: #704e23; }
.cc-paper :focus-visible { outline-color: #825529; }
.cc-paper-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 18px; border-top: 1px solid #c1b7a6; padding: 9px 5px 0; font-size: 14px; color: #554f44; }
.cc-paper-foot > div { display: inline-flex; align-items: baseline; gap: 8px; }
.cc-paper-foot .cc-doc { color: #265d51; }
.cc-paper-foot small { color: #554f44; font-size: 14px; }
.cc-paper-foot > div + small { padding-left: 16px; border-left: 1px solid #b9afa1; }
@media (min-width: 1200px) {
  main:has(.cc) { padding: 31px clamp(23px,1.95vw,37px) 40px; }
  .cc-paper { min-height: clamp(596px,43.1vw,685px); }
  .cc-platforms a { min-height: clamp(85px,6.14vw,100px); }
}
@media (max-width: 1199px) {
  .cc-context-line { align-items: flex-start; }
  .cc-project-link { flex-direction: column; gap: 1px;  }
  .cc-facts > div + div { border: 0; padding-left: 0; }
  .cc-directory { padding-inline: 10px; }
  .cc-directory header { margin-inline: 4px; }
  .cc-paper { min-height: 580px; }
}
@media (max-width: 930px) and (min-width: 761px) {
  .cc-desk { grid-template-columns: minmax(186px, .7fr) minmax(0, 2fr); gap: 10px; }
  .cc-platforms a { padding-inline: 8px; gap: 9px; }
  .cc-date { display: none; }
}
@media (max-width: 760px) {
  .cc .pagehead { margin: 0 0 15px; }
  .cc-date { display: none; }
  .cc-context { padding: 10px 12px 4px; margin-bottom: 12px; }
  .cc-context-line { display: block; padding-bottom: 5px; }
  .cc-project-link { flex-direction: row; gap: 9px;  }
  .cc-details { border: 0; padding: 0; }
  .cc-details summary, .cc-details[open] summary { display: list-item; width: fit-content; padding: 6px 0; font-size: 13px; }
  .cc-details[open] { padding-bottom: 5px; }
  .cc-facts { gap: 4px; }
  .cc-facts > div { width: 100%; }
  .cc-sources { gap: 0 8px; font-size: 12px; }
  .cc-sources > span { display: none; }
  .cc-desk { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .cc-directory { padding: 12px; }
  .cc-directory header { margin: 0 0 10px; }
  .cc-directory header p { display: none; }
  .cc-platforms { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .cc-platforms a { min-height: 48px; padding: 5px 7px; gap: 6px; }
  .cc-platforms strong { font-size: 16px; }
  .cc-platforms small { display: none; }
  .cc-platforms .cc-mark { width: 30px; height: 30px; }
  .cc-platforms .icon { width: 12px; }
  .cc-directory footer { margin-top: 9px; border: 0; padding: 0; font-size: 12px; gap: 5px; }
  .cc-directory footer .icon { width: 13px; height: 13px; }
  .cc-paper { padding: 14px 14px 12px; min-height: 0; }
  .cc-paper-head { gap: 5px; }
  .cc-paper-head .cc-mark { width: 31px; height: 31px; }
  .cc-paper-head small { font-size: var(--type-caption); padding: 1px 4px; }
  .cc-stages { margin-top: 6px; }
  .cc-stages a { flex: 1; font-size: 15px; min-height: 44px; padding-inline: 1px; }
  .cc-message { padding: 19px 1px 24px; }
  .cc-recipient { font-size: 13px; gap: 6px; }
  .cc-recipient .icon { width: 18px; }
  .cc-message h3 {  margin-top: 8px; }
  .cc-fields { margin: 13px 0 16px; }
  .cc-fields > div { grid-template-columns: 5em minmax(0,1fr); gap: 8px; }
  .cc-open { font-size: 16px; min-height: 44px; padding-inline: 18px; }
  .cc-paper-foot { display: grid; gap: 0; padding: 4px 0; font-size: 13px; }
  .cc-paper-foot > div + small { border: 0; padding: 0; }
  .cc-paper-foot small { font-size: 12px; }
}
.cc-details summary span { color: #d2c6ac; }
.cc-details[open] summary span { display: none; }
.cc-platforms a:focus-visible { outline: 2px solid #f7ce86; outline-offset: 2px; }
.cc-mapping { width: 100%; border-collapse: collapse; margin: 18px 0 22px; color: #302d27; font-size: 14px; text-align: left; }
.cc-mapping th, .cc-mapping td { border: 0; padding: 7px 10px; text-align: left; vertical-align: baseline; white-space: normal; overflow-wrap: anywhere; }
.cc-mapping thead th { background: #ded8cc; color: #514a3b; font: 650 14px/1.5 var(--display); }
.cc-mapping tbody tr { border-bottom: 1px solid #cfc6b7; }
.cc-mapping tbody th { background: transparent; color: #493d2b; font-size: inherit; font-weight: 550; }
.cc-mapping tbody td:first-child { color: #645a4c; }
@media (max-width: 760px) {
  .cc-mapping { font-size: 13px; table-layout: fixed; }
  .cc-mapping th, .cc-mapping td { padding: 6px 3px; }
  .cc-mapping th:nth-child(1) { width: 32%; }
  .cc-mapping th:nth-child(2) { width: 26%; }
}
