/* All project rows use one numerical scale; only the two ends of each interval vary. */
main:has(.alloc-panel) .pagehead { margin-bottom: 12px; }
main:has(.alloc-panel) .tabs { margin-bottom: 16px; }
.alloc-panel {
  --alloc-progress: var(--chart-3);
  --alloc-usage: var(--chart-2);
  --alloc-cols: minmax(155px, 1.4fr) minmax(170px, 2.65fr) minmax(150px, 1.1fr) minmax(78px, .62fr);
  --alloc-column-gap: clamp(16px, 2.65vw, 44px);
  container-type: inline-size;
  min-width: 0;
  padding: 22px clamp(14px, 1.65vw, 28px) 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  font-variant-numeric: lining-nums tabular-nums;
}
.alloc-head, .alloc-head dl { display: flex; align-items: center; }
.alloc-head h2 { font: 600 var(--type-feature)/1.25 var(--display); white-space: nowrap; }
.alloc-head dl { margin: 0 0 0 clamp(20px, 3vw, 50px); flex: 1; }
.alloc-head dl > div { position: relative; padding: 0 clamp(17px, 2.8vw, 49px); }
.alloc-head dl > div::before {
  content: ""; position: absolute; left: 0; top: 15%; height: 70%; border-left: 1px solid #4c5157;
}
.alloc-head dt, .alloc-legend, .alloc-name small, .alloc-scale div, .alloc-detail small { color: var(--chart-label); font-size: 13px; }
.alloc-head dd { margin: 3px 0 0; font: 600 var(--type-stat)/1.15 "Times New Roman", var(--display); white-space: nowrap; }
.alloc-head dd small { font: 500 .63em var(--font-sans); color: inherit; }
.alloc-head .alloc-total { color: var(--primary); }
.alloc-total strong { font-size: var(--type-metric); }
.alloc-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 34px; padding: 17px 2px 14px; }
.alloc-legend span { display: inline-flex; align-items: center; gap: 9px; }
.alloc-dot, .alloc-diamond, .alloc-mark i { display: block; width: 10px; height: 10px; }
.alloc-dot, .alloc-mark.progress i { background: var(--alloc-progress); border-radius: 50%; }
.alloc-diamond, .alloc-mark.usage i { background: var(--alloc-usage); transform: rotate(45deg); }
.alloc-heading, .alloc-row {
  display: grid; grid-template-columns: var(--alloc-cols); align-items: center;
  column-gap: var(--alloc-column-gap); padding: 0 clamp(12px, 1.25vw, 22px);
}
.alloc-heading { min-height: 62px; text-align: right; border-block: 1px solid var(--border); font-size: 14px; color: #d4d8d7; }
.alloc-heading > :first-child { text-align: left; }
.alloc-heading > span { white-space: nowrap; }
.alloc-heading > span:nth-last-child(-n + 2) { text-align: center; }
.alloc-scale { text-align: center; }
.alloc-scale strong { font-size: 14px; font-weight: 500; }
.alloc-scale div { position: relative; height: 19px; }
.alloc-scale span { position: absolute; transform: translateX(-50%); font-size: 12px; }
.allocation-rows { display: flex; flex-direction: column; }
.alloc-row { position: relative; min-height: 58px; color: var(--foreground); border-bottom: 1px solid var(--border); }
.alloc-row:hover { background: var(--surface); }
.alloc-row[aria-current] { background: color-mix(in srgb,var(--primary) 9%,var(--card)); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--primary); border-color: transparent; }
.alloc-row:focus-visible { outline: 2px solid var(--ring); outline-offset: -3px; }
.alloc-name strong, .alloc-name small { display: block; }
.alloc-name strong { font-size: 17px; font-weight: 550; }
.alloc-name small { line-height: 1.25; }
.alloc-track { position: relative; display: block; height: 1px; background: var(--chart-grid); pointer-events: none; }
.alloc-tick { position: absolute; top: -4px; width: 1px; height: 9px; background: var(--chart-grid); }
.alloc-track platform-chart { position: absolute; top: -5px; clip-path: inset(5px 0 7px); opacity: .8; }
.alloc-mark { position: absolute; display: grid; place-items: center; top: 50%; width: 0; height: 0; }
.alloc-mark i { position: absolute; box-shadow: 0 0 0 1.5px var(--card); }
.alloc-mark.usage i { width: 9px; height: 9px; }
.alloc-mark b { position: absolute; bottom: 9px; color: var(--alloc-progress); font: 600 13px/1 var(--font-sans); white-space: nowrap; }
.alloc-mark.usage b { color: var(--alloc-usage); }
.close-marks .usage b { bottom: auto; top: 9px; }
.alloc-amount, .alloc-remainder { text-align: center; font-size: var(--type-stat); }
.alloc-amount small, .alloc-remainder small { display: none; }
.alloc-amount b, .alloc-remainder { font-weight: 600; }
.alloc-detail {
  order: 1; display: grid; grid-template-columns: minmax(170px, .94fr) minmax(230px,1.9fr) auto; align-items: center;
  gap: 18px; margin-top: 20px; padding: 13px 16px; background: color-mix(in srgb,var(--primary) 5%,var(--card));
  border: 1px solid color-mix(in srgb,var(--primary) 14%,var(--border)); border-radius: 6px;
}
.alloc-project { padding-left: 16px; border-left: 3px solid var(--primary); }
.alloc-project h3 { margin: 0; font: 600 var(--type-card)/1.3 var(--display); }
.alloc-overview:hover { text-decoration: underline; text-underline-offset: 3px; }
.alloc-reading { padding-left: 23px; border-left: 1px solid #505253; }
.alloc-reading p { font-size: 16px; line-height: 1.5; color: var(--foreground); }
.alloc-reading strong { font: 600 var(--type-stat)/1 Georgia, var(--display); color: var(--primary); }
.alloc-reading small span { padding-inline: 4px; }
.alloc-detail a { scroll-margin-block: calc(var(--topbar-height) + 12px) 72px; }
.alloc-evidence { padding-inline: 21px; justify-self: end; flex-direction: row-reverse; white-space: nowrap; }

@container (max-width: 920px) {
  .alloc-heading, .alloc-row { grid-template-columns: minmax(120px,1.05fr) minmax(145px,1.65fr) minmax(128px,.8fr) minmax(76px,.45fr); column-gap: 20px; }
  .alloc-head dl { margin-left: 18px; }
  .alloc-head dl > div { padding-inline: 17px; }
  .alloc-detail { gap: 12px; grid-template-columns: minmax(130px,.9fr) minmax(210px,1.6fr) auto; }
  .alloc-reading { padding-left: 13px; }
}
@container (max-width: 705px) {
  .alloc-head { display: block; }
  .alloc-head dl { margin: 13px 0 0; justify-content: flex-start; }
  .alloc-head dl > div { padding-inline: 15px; }
  .alloc-head dl > div:first-child { padding-left: 0; }
  .alloc-head dl > div:first-child::before { display: none; }
  .alloc-head dt { font-size: 12px; }
  .alloc-head dd { font-size: var(--type-stat); }
  .alloc-head .alloc-total { font-size: var(--type-card); }
  .alloc-legend { gap: 22px; padding: 14px 0 10px; }
  .alloc-heading, .alloc-row { grid-template-columns: minmax(0,1fr) auto auto; column-gap: 14px; padding-inline: 10px; }
  .alloc-heading { grid-template-columns: 1fr; min-height: 29px; padding-inline: 20px; }
  .alloc-heading > span, .alloc-scale strong { display: none; }
  .alloc-scale div { height: 18px; }
  .alloc-row { min-height: 89px; padding-block: 9px 14px; row-gap: 11px; }
  .alloc-row[aria-current] { min-height: 111px; row-gap: 18px; padding-bottom: 18px; }
  .alloc-name strong { font-size: 14px; }
  .alloc-name small { font-size: 12px; }
  .alloc-amount, .alloc-remainder { text-align: right; font-size: 15px; }
  .alloc-amount small, .alloc-remainder small { display: block; color: var(--chart-label); font: 400 var(--type-caption)/1.4 var(--font-sans); }
  .alloc-track { grid-column: 1/-1; grid-row: 2; margin-inline: 10px; }
  .alloc-row:has(.close-marks)[aria-current] { padding-bottom: 25px; }
  .alloc-detail { order: 0; grid-template-columns: 1fr; gap: 8px; margin: 6px 0; padding: 12px; }
  .alloc-project { border: 0; padding: 0; }
  .alloc-project h3 { font-size: 17px; }
  .alloc-reading { padding: 8px 0 0; border: 0; border-top: 1px solid var(--border); }
  .alloc-reading p { font-size: 14px; }
  .alloc-evidence { justify-self: stretch; justify-content: center; min-height: 44px; }
}
@container (max-width: 380px) {
  .alloc-head dl { flex-wrap: wrap; row-gap: 8px; }
  .alloc-head dl > div { padding-inline: 10px; }
  .alloc-head dd { font-size: var(--type-card); }
  .alloc-head .alloc-total { font-size: 16px; }
}
