/* ===========================================================================
   Components — tiles, steps, collapsibles, rows.
   Section 5: square corners, no shadows. Section 8: transitions of at most .2s.
   =========================================================================== */

/* --- Collapsible block (section 7) --- */
.collapsible { border-bottom: 1px solid var(--rule); max-width: 820px; }
.collapsible-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 18px 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--accent-hover);
  min-height: 44px;
}
.collapsible-sign { font-size: 26px; line-height: 1; }
.collapsible-body { padding-bottom: var(--sp-2); }
.collapsible-body p { font-size: var(--fs-tile); line-height: 1.65; color: var(--text-soft); }
.collapsible-body .doelgroep { color: var(--accent-hover); font-weight: 500; }

/* --- Steps (section 7) --- */
.steps { display: flex; flex-direction: column; gap: var(--sp-3); }
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: var(--sp-3);
  align-items: start;
  border-top: 6px solid var(--surface-brand);
  padding-top: 18px;
}
.step--two { border-top-color: var(--accent); }
.step-label { font-size: var(--fs-small); font-weight: 600; color: var(--accent); }
.step h2 { margin: 4px 0 10px; }
.step-intro { font-size: var(--fs-small); line-height: 1.55; color: var(--text-soft); margin: 0; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

/* --- Tiles (section 7). Shape, not colour, separates the two kinds. --- */
.tile {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: 18px;
  min-height: 170px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.tile-title { margin-top: auto; font-size: var(--fs-tile); font-weight: 600; }
.tile-meta { font-size: var(--fs-meta); }
.tile .glyph { width: 44px; height: 44px; }

.tile--fundament {
  background: var(--surface-brand);
  color: var(--on-brand);
}
.tile--fundament .tile-meta { color: var(--on-brand-soft); }
.tile--fundament .glyph { width: 52px; height: 52px; }
.tile--fundament:hover, .tile--fundament.is-preview { background: var(--surface-brand-hover); color: var(--on-brand); }

.tile--domein {
  background: var(--surface-tile);
  color: var(--accent-hover);
}
.tile--domein .tile-meta { color: var(--text-meta); }
.tile--domein:hover, .tile--domein.is-preview { border-color: var(--surface-brand); color: var(--accent-hover); }

/* --- List rows, shared by the overview pages (section 10) --- */
.row-list { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.row {
  display: flex;
  gap: var(--sp-1);
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--accent-hover);
  min-height: 44px;
}
.row:hover { background: var(--surface-tile-hover); color: var(--accent-hover); }
.row .glyph { width: 28px; height: 28px; }
.row-title { font-weight: 600; font-size: var(--fs-small); }
.row-sub { font-size: var(--fs-meta); color: var(--text-meta); }

/* --- Buttons (section 7) --- */
.btn-primary {
  display: inline-block;
  background: var(--surface-brand);
  color: var(--on-brand);
  border: 0;
  padding: 13px 24px;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
}
.btn-primary:hover { background: var(--surface-brand-hover); color: var(--on-brand); }

/* --- Narrow screens --- */
@media (max-width: 760px) {
  .step { grid-template-columns: 1fr; gap: var(--sp-2); }
}
