/* ==========================================================================
   GOVERNANCE (4 Nov, "Unlock Homepage Edits"), on paper: six controls, each
   an icon, a title and one line. Copy verbatim.
   13 Nov (user): the hairline grid of cells became six separate cards in two
   staggered rows, after flowbase.co's Jambo feature 03 (one long card and two
   equal ones per row, the long one swapping sides). A large
   faint icon in each corner (after Jambo feature 02), an edge, a shadow and
   hovers were tried the same day and removed (user). The grid before:
   web/versions/before-governance-cards/.
   ========================================================================== */

.governance {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3);   /* 12px, as Problems (13 Nov, user) */
  margin: 0; padding: 0; list-style: none;
}
/* From 1400px (narrower, "Data & execution boundaries" wraps in a short
   card; two equal columns until then): seven columns, one long card and two equal ones per row,
   the long one at the left above and at the right below (13 Nov, user:
   "one card long and the other two the same width"; 6 · 4 · 5 over
   4 · 5 · 6 of fifteen before). Both rows the same height. */
@media (min-width: 1400px) {
  .governance { grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .governance li { grid-column: span 2; }
  .governance li:nth-child(1), .governance li:nth-child(6) { grid-column: span 3; }
}

/* Four cards (30 Nov, the Governance and security page's How it is enforced,
   user: "give the 4 cards, governance and security style", then "keep them
   4 in same row, just style like that"): the cards' make, four equal in one
   row from 1200px, two by two below (one on phones, as above). The long and
   short rhythm on five columns was on for a few minutes. */
@media (min-width: 1200px) {
  .governance--four { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .governance--four li, .governance--four li:nth-child(1), .governance--four li:nth-child(6) { grid-column: auto; }   /* not the six cards' long/short spans from 1400 */
}

.governance li {
  display: grid; align-content: start; gap: var(--space-3);
  padding: var(--space-5);   /* 24px (13 Nov, user; 32 before) */
  border-radius: var(--r-box, 6px);
  /* White on the paper, nothing else (13 Nov, user): no edge line, no
     shadow, no background icon. */
  background: var(--white);
}
/* The small icon, plain (no tile since 13 Nov), muted, 20px; the card's
   12px gap under it to the title (no extra margin, 13 Nov, user). */
.governance__icon { display: block; line-height: 0; }
.governance .icon { --icon-size: 24px; color: var(--ink-muted); }   /* 24 (27 Nov, user: main items, one scale; 20 before) */
/* titles at 20px (30 Nov, user, on the Governance page's four: "instead of 24px, can you show 20px", then "update similar titles too … homepage governance and security"; --size-h3, 24, before) */
.governance h3 { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.15; letter-spacing: var(--display-tracking); color: var(--heading); }
.governance p { margin: 0; font-size: var(--size-body); line-height: 1.55;   /* 16 (27 Nov, user: main items, one scale; 14 from 13 Nov) */ color: var(--ink); }

@media (max-width: 640px) {
  .governance { grid-template-columns: minmax(0, 1fr); }
  .governance li { padding: var(--space-5); }
}
