/* The shared resource separates physical machines from client allocations. */
.allocation-diagram {
  display: grid;
  grid-template-columns: 1fr .24fr 1.05fr .24fr 1.12fr;
  align-items: start;
  margin-top: 64px;
}
.allocation-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.allocation-panel-heading { min-height: 72px; }
.allocation-panel-heading h3 {
  margin: 0 0 8px;
  color: var(--text);
  font: 600 12px/1.4 Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.allocation-panel-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.allocation-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.allocation-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.allocation-list li:last-child { border-bottom: 0; }
.allocation-icon { width: 32px; height: 32px; flex: 0 0 32px; stroke: var(--accent); stroke-width: 1.2; }
.allocation-miner-icon { stroke: var(--text); stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; }
.allocation-miner-icon .miner-top { fill: rgba(77,159,232,.12); }
.allocation-miner-icon .miner-side { fill: rgba(77,159,232,.07); }
.allocation-miner-icon .miner-front { fill: var(--panel); }
.allocation-miner-icon .miner-vents { stroke: var(--muted); stroke-width: .8; }
.allocation-miner-icon .miner-blades { stroke: var(--accent); stroke-width: .85; }
.allocation-list li > span { white-space: nowrap; }
.allocation-list strong { margin-left: auto; white-space: nowrap; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.allocation-list strong small { font-size: 10px; font-weight: 400; color: var(--muted); }
.allocation-list li > span small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.allocation-workers .allocation-list li { height: 77.5px; }
.allocation-connections { width: 100%; height: 340px; margin-top: 95px; overflow: visible; stroke: #4d9fe8; stroke-width: 1.3; }
.allocation-connections path { vector-effect: non-scaling-stroke; }
.allocation-connections .concept-currents { stroke: #07558a; }
@media (prefers-reduced-motion: reduce) {
  .allocation-connections .concept-currents { display: none; }
}
.allocation-outputs { stroke: #75a5be; }
.allocation-center { display: flex; align-items: center; height: 340px; margin-top: 95px; }
.allocation-resource {
  width: 100%;
  padding: 30px 18px;
  text-align: center;
  background: #1e364a;
  border: 1px solid #395c76;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(30,54,74,.08);
  color: #fff;
}
.allocation-total { display: flex; flex-direction: column; gap: 5px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.16); }
.allocation-total strong { font: 500 30px/1.2 Manrope, sans-serif; letter-spacing: -.03em; }
.allocation-total strong span { font-size: 14px; letter-spacing: 0; }
.allocation-total > span { color: #b9cedd; font-size: 12px; }
.allocation-resource img { display: block; width: min(100%,210px); height: auto; margin: 0 auto; }
.allocation-resource p { margin: 18px 0 0; color: #e3edf4; font-size: 14px; line-height: 1.5; }
.allocation-purpose { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .13em; color: #b9cedd; }
#fits .section-head p strong { color: var(--text); font-weight: 600; }
.allocation-caption { margin: 28px auto 0; text-align: center; max-width: 800px; }
.allocation-caption p:first-child { color: var(--text); font-size: 16px; font-weight: 500; line-height: 1.6; }
.allocation-caption p + p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.7; }
@media (min-width: 901px) and (max-width: 1150px) {
  .allocation-panel { padding: 22px 14px; }
  .allocation-list li { gap: 7px; font-size: 12px; }
  .allocation-list strong { font-size: 13px; }
  .allocation-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .allocation-panel-heading p { font-size: 11px; }
  .allocation-purpose { font-size: 8px; letter-spacing: .08em; }
}
@media (max-width: 900px) {
  .allocation-diagram { grid-template-columns: 1fr; max-width: 480px; margin: 40px auto 0; }
  .allocation-panel-heading { min-height: 66px; }
  .allocation-connections { width: 1px; height: 36px; margin: 0 auto; background: #75a5be; overflow: hidden; }
  .allocation-connections path { display: none; }
  .allocation-center { height: auto; margin: 0; }
  .allocation-resource { padding: 26px; }
  .allocation-total { padding-bottom: 20px; margin-bottom: 24px; }
  .allocation-list li { font-size: 15px; }
}

/* Short triple connectors continue the desktop currents through the phone stack. */
.allocation-phone-connections { display: none; }
@media (max-width: 640px) {
  .allocation-connections:not(.allocation-phone-connections) { display: none; }
  .allocation-phone-connections { display: block; width: 32px; height: 24px; margin: 0 auto; background: transparent; overflow: hidden; }
  .allocation-phone-connections path { display: block; }
  .allocation-resource { padding: 20px 24px; }
  .allocation-total { padding-bottom: 14px; margin-bottom: 18px; }
  .allocation-resource img { width: min(100%, 185px); }
  .allocation-resource p { margin-top: 14px; }
}

@media (max-width: 640px) {
  .allocation-resource { padding: 16px 20px; }
  .allocation-total { gap: 4px; padding-bottom: 10px; margin-bottom: 14px; }
  .allocation-total strong { font-size: 28px; }
  .allocation-resource img { width: min(100%, 170px); }
  .allocation-resource p { margin-top: 10px; font-size: 13px; }
}

/* Phone resource: two compact columns separated by the existing divider. */
@media (max-width: 640px) {
  .allocation-resource {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 16px;
    padding: 20px 16px;
    align-items: center;
  }
  .allocation-total {
    grid-column: 1;
    grid-row: 1 / 5;
    align-self: stretch;
    justify-content: center;
    padding: 6px 16px 6px 0;
    margin: 0;
    border-bottom: 0;
    border-right: 1px solid rgba(255,255,255,.16);
  }
  .allocation-total strong { font-size: clamp(23px, 6.5vw, 28px); }
  .allocation-total strong span { font-size: 11px; }
  .allocation-total > span { font-size: 10px; }
  .allocation-resource img { grid-column: 2; grid-row: 2; width: 100%; max-width: 155px; }
  .allocation-resource p { grid-column: 2; grid-row: 3; margin: 10px 0 0; font-size: 11px; line-height: 1.5; }
}

@media (max-width: 640px) {
  .allocation-phone-connections { width: 160px; max-width: 100%; height: 32px; }
}
