/* Overview dashboard styles. Owned by the overview page. Tokens only, no new colours. */

/* Rows. Hero is full width, then a 2:1 split, then a 1:1 split. Everything stacks under 900px. */
.ov-hero { margin-top: 4px; padding: 28px 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; }
.ov-row { display: grid; gap: 14px; margin-top: 16px; align-items: start; }
.ov-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.ov-1-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ov-stack { display: flex; flex-direction: column; gap: 14px; }
.ov-row > .card + .card, .ov-stack > .card + .card { margin-top: 0; }
.ov-samplechip { align-self: center; }

/* Readiness ring */
.ov-heroleft { display: flex; align-items: center; gap: 24px; }
.ov-ringwrap { position: relative; width: 168px; height: 168px; flex: none; }
.ov-ring svg { display: block; transform: rotate(-90deg); }
.ov-ringmid { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ov-pct { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.ov-ringnone { color: var(--ink-3); font-size: 14px; font-weight: 500; }
.ov-ringtext { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ov-ringlabel { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.ov-ringbtn { margin-top: 10px; align-self: flex-start; }

/* Big-numeral tiles */
.ov-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ov-kpi { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border-radius: var(--r); color: var(--ink);
  background: var(--glass-strong); -webkit-backdrop-filter: blur(8px) saturate(1.2); backdrop-filter: blur(8px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 26px -20px rgba(9, 17, 38, 0.4); transition: transform var(--t), box-shadow var(--t); }
.ov-kpi:hover { transform: translateY(-2px); text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 32px -20px rgba(9, 17, 38, 0.45); }
.ov-n { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.ov-lab { color: var(--ink-2); font-size: 13px; line-height: 1.35; }

/* Card shell used by every flat panel below the hero */
.ov-card { display: flex; flex-direction: column; gap: 10px; }
.ov-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ov-head h2 { font-size: 17px; }
.ov-head a { white-space: nowrap; }

/* Coverage by function */
.ov-legend { margin-top: 0; gap: 14px; }
.ov-legend .status.none::before { background: var(--line-s); }
.ov-meter .m-unk { background: var(--line-s); }
.ov-fns { display: flex; flex-direction: column; gap: 11px; margin-top: 4px; }
.ov-fn { display: grid; grid-template-columns: 72px minmax(80px, 1fr) auto; gap: 14px; align-items: center; }
.ov-fnname { font-weight: 500; font-size: 13.5px; }
.ov-meter { height: 8px; }
.ov-fncount { white-space: nowrap; }

/* Next key dates, in a narrower column than the calendar page uses */
.ov-card .tl-item { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 11px 0; }
.ov-card .tl-item:first-child { padding-top: 0; }
.ov-card .tl-item .when { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ov-card .tl-item .when b { display: inline; }

/* What to upload next */
.ov-needs { display: flex; flex-direction: column; gap: 8px; }
.ov-need { display: grid; grid-template-columns: minmax(0, 1fr) 148px; gap: 3px 16px; padding: 12px 14px; border-radius: var(--r-inner);
  background: var(--surface-2); color: var(--ink); transition: transform var(--t), background var(--t); }
.ov-need:hover { transform: translateY(-1px); background: var(--accent-soft); text-decoration: none; }
.ov-needtitle { grid-column: 1; font-weight: 600; font-size: 14px; }
.ov-needwhat { grid-column: 1; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ov-needside { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }
.ov-needside .meter { width: 100%; height: 8px; }

/* Vendors and open gaps */
.ov-vchips { gap: 8px; }
.ov-gaps { display: flex; flex-direction: column; gap: 12px; margin-top: 2px; }
.ov-gap { display: flex; flex-direction: column; gap: 7px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ov-gap:last-child { padding-bottom: 0; border-bottom: 0; }
.ov-gaptext { font-size: 13.8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ov-gapmeta { gap: 8px; }

@media (max-width: 900px) {
  .ov-hero { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 24px; }
  .ov-heroleft { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .ov-ringtext { align-items: center; }
  .ov-ringbtn { align-self: center; }
  .ov-2-1, .ov-1-1 { grid-template-columns: minmax(0, 1fr); }
  .ov-fn { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "name count" "bar bar"; gap: 7px 12px; }
  .ov-fnname { grid-area: name; }
  .ov-meter { grid-area: bar; }
  .ov-fncount { grid-area: count; text-align: right; white-space: normal; }
  .ov-need { grid-template-columns: minmax(0, 1fr); }
  .ov-needside { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .ov-pct { font-size: 34px; }
  .ov-n { font-size: 34px; }
}
