/* Statute cards, shared by the home page's compliance section and compliance.html.
 *
 * Shared on purpose: the home page carries the three strongest, the compliance page carries all of
 * them, and they have to look like the same thing. Keeping two copies of this is how they stop
 * looking like the same thing.
 *
 * Colour variables come from the host page (index.html defines them inline, subpages get them from
 * site.css), so link this AFTER whichever provides them. */

.law-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.law { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; }
.law h3 { margin: 0 0 10px; font-size: 1.02rem; line-height: 1.4; color: var(--gold); }
.law p { margin: 0 0 16px; color: #b9c2cc; font-size: .95rem; line-height: 1.65; flex: 1; }

/* NOT uppercased: Alabama subsections are lowercase — (b)(6)a-d, not (B)(6)A-D. text-transform
   would silently misquote every citation on the page, which is the one thing these cards cannot
   afford to get wrong. */
.law-cite { font-size: .76rem; letter-spacing: .02em; color: #9a8763; border-top: 1px solid var(--border); padding-top: 11px; font-variant-numeric: tabular-nums; }

.law.is-key { grid-column: 1 / -1; background: linear-gradient(180deg, rgba(244,213,139,.08), rgba(244,213,139,.02)); border-color: rgba(244,213,139,.34); }
.law.is-key h3 { font-size: 1.28rem; color: var(--gold-strong); }
.law.is-key p { font-size: 1rem; max-width: 74ch; }

.law-note { max-width: 780px; margin: 0 auto 40px; text-align: center; font-size: .82rem; line-height: 1.7; color: #7d8794; }

/* "See all of it" link under the home page's three cards. */
.law-more { display: block; text-align: center; margin: 0 0 34px; font-size: .95rem; color: var(--gold-strong); }
.law-more:hover { text-decoration: underline; }

@media (max-width: 940px) { .law-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .law-grid { grid-template-columns: 1fr; } }

/* A two-card row, centred. As a class rather than an inline style: an inline grid-template-columns
   outranks site.css's mobile media query and leaves two 247px cards side by side on a phone. */
.feature-grid.is-pair { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; }
@media (max-width: 640px) { .feature-grid.is-pair { grid-template-columns: 1fr; } }
