/* The home page overview and small fixes of the other pages. Colours come from tokens.css. */

/* The six steps of a project, one glyph and one line each, linked to their section. */
.ov-steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ov-steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 37px; height: 2px; background: var(--grad-bar); opacity: 0.6; }
.ov-step { position: relative; z-index: 1; }
.ov-step a {
  height: 100%; display: grid; justify-items: start; align-content: start; gap: 6px; padding: 16px;
  color: var(--text); text-decoration: none; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--glass-3); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--sheen);
  transition: border-color var(--dur-2), box-shadow var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.ov-step a:hover { border-color: var(--accent); box-shadow: var(--sheen), var(--glow-accent-sm); transform: translateY(-2px); }
.ov-step a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ov-glyph {
  width: 42px; height: 42px; padding: 9px; border-radius: var(--radius-sm); border: 1px solid var(--accent);
  background: var(--wash-accent); color: var(--accent); box-shadow: var(--glow-accent-sm);
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ov-step small { margin-top: 6px; font-family: var(--font-mono); font-size: var(--text-label); color: var(--accent); }
.ov-step b { font-family: var(--font-display); font-size: var(--text-card); }
.ov-step span { font-size: var(--text-note); color: var(--text-muted); line-height: 1.45; }

/* All pages as one narrow row below the steps. */
.ov-grid { margin-top: var(--space-6); display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ov-card { position: relative; display: grid; align-content: start; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--glass-1); }
.ov-card .no { font-family: var(--font-mono); font-size: var(--text-label); color: var(--accent); }
.ov-card h3 { font-size: 0.98rem; margin: 0; }
.ov-card h3 a { color: var(--text); text-decoration: none; }
.ov-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ov-card h3 a:focus-visible { outline: none; }
.ov-card:focus-within, .ov-card:hover { border-color: var(--accent); }
.ov-card:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.ov-card p { display: none; }

/* Method: room between the principles and the offers. */
.principles + .offers { margin-top: var(--space-5); }

html[data-motion="off"] .ov-step a { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .ov-step a { transition: none; }
  .ov-step a:hover { transform: none; }
}

@media (max-width: 1080px) {
  .ov-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ov-steps::before { display: none; }
  .ov-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ov-steps { grid-template-columns: minmax(0, 1fr); }
  .ov-step a { grid-template-columns: 42px minmax(0, 1fr); column-gap: 12px; }
  .ov-step a > :not(.ov-glyph) { grid-column: 2; }
  .ov-glyph { grid-row: 1 / span 3; }
  .ov-step small { margin-top: 0; }
  .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
