/* Executive Overview page only (pages/executive-overview.mjs).
   "One Platform. Three Connected Perspectives.": the Staff, Management and
   Leadership Hubs as one connected progression joined by thin gold lines.
   Bump ASSETS.execVersion in config.mjs when this file changes. */

.hub-flow {
  --hf-pad: clamp(24px, 2.8vw, 36px);
  --hf-node: 44px;
  --hf-line: rgba(200, 161, 74, .85);
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--paper); border: 1px solid var(--rule); border-radius: 14px;
}
.hub-flow__step { position: relative; min-width: 0; padding: var(--hf-pad); }

/* Rail: the numbered node, then a gold line running to the next node. */
.hub-flow__rail { position: relative; display: flex; align-items: center; margin: 0 0 24px; }
.hub-flow__node {
  flex: none; width: var(--hf-node); height: var(--hf-node); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(200, 161, 74, .08);
  font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1; color: var(--navy);
  font-variant-numeric: lining-nums;
}
.hub-flow__step:not(:last-child) .hub-flow__rail::after {
  content: ""; flex: 1; height: 1px;
  /* Crosses this step's right padding and the next step's left padding,
     stopping just short of the next node. */
  margin: 0 calc(14px - 2 * var(--hf-pad)) 0 14px;
  background: linear-gradient(90deg, rgba(200, 161, 74, .5), var(--hf-line));
}
.hub-flow__step:not(:last-child) .hub-flow__rail::before {
  content: ""; position: absolute; top: 50%; right: calc(14px - 2 * var(--hf-pad));
  width: 7px; height: 7px; border-top: 1px solid var(--hf-line); border-right: 1px solid var(--hf-line);
  transform: translateY(-50%) rotate(45deg);
}

.hub-flow h3 { margin: 0 0 4px; font-family: var(--serif); font-size: clamp(23px, 2vw, 26px); font-weight: 600; line-height: 1.2; color: var(--navy); }
.hub-flow__who { margin: 0 0 18px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.hub-flow__verb {
  margin: 0 0 10px; padding-top: 16px; border-top: 1px solid var(--rule);
  font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink);
}
.hub-flow__text { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--body); max-width: 40ch; }

/* Narrow screens: the hubs stack, and the gold line runs down the left
   from one node to the next. */
@media (max-width: 860px) {
  .hub-flow { --hf-pad: 24px; grid-template-columns: 1fr; }
  .hub-flow__step { display: grid; grid-template-columns: var(--hf-node) minmax(0, 1fr); column-gap: 20px; padding: var(--hf-pad) 22px; }
  .hub-flow__rail { flex-direction: column; align-self: stretch; margin: 0; }
  .hub-flow__step:not(:last-child) .hub-flow__rail::after {
    width: 1px; height: auto;
    margin: 12px 0 calc(12px - 2 * var(--hf-pad));
    background: linear-gradient(180deg, rgba(200, 161, 74, .5), var(--hf-line));
  }
  .hub-flow__step:not(:last-child) .hub-flow__rail::before {
    top: auto; right: auto; left: 50%; bottom: calc(12px - 2 * var(--hf-pad));
    transform: translate(-50%, 0) rotate(135deg);
  }
  .hub-flow__body { padding-top: 9px; }
  .hub-flow__text { max-width: none; }
}
