/* For councils page: extra rules on top of site.css */

.councils-reasons .card { gap: 8px; }

/* Standards table sits in a white card */
.standards-table {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.standards-table .table { min-width: 0; }
.standards-table .table th,
.standards-table .table td { border-bottom: 0; border-top: 1px solid var(--line); padding: 16px; }
.standards-table thead th {
  border-top: 0;
  padding: 12px 16px;
  background: var(--surface-sunk);
  color: var(--ink);
  font-size: 15px;
  line-height: 20px;
}
.standards-table tbody th { width: 34%; background: var(--white); }
.standards-table td { font-size: 16px; line-height: 26px; color: var(--ink); text-wrap: pretty; }
.standards-table__name { display: flex; gap: 12px; align-items: baseline; font-size: 16px; line-height: 24px; color: var(--ink); }
.standards-table__num { font-family: var(--font-mono); font-weight: 500; font-size: 14px; line-height: 20px; color: var(--teal-text); flex: none; }

/* Small screens: each standard becomes a stacked block (roles in the markup keep table semantics) */
@media (max-width: 560px) {
  .standards-table .table,
  .standards-table tbody,
  .standards-table tr,
  .standards-table tbody th,
  .standards-table td { display: block; width: auto; }
  .standards-table thead {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .standards-table tr { border-top: 1px solid var(--line); padding: 16px; }
  .standards-table tr:first-child { border-top: 0; }
  .standards-table .table tbody th,
  .standards-table .table td { border-top: 0; padding: 0; }
  .standards-table .table td { padding-top: 6px; }
}

.councils-contract { padding: clamp(24px, 4.44vw, 64px); }
.standards-table + .text-link { margin-top: 16px; }

/* Standards page: points inside each row, and a teal flash on the row you jumped to */
.standards-points { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.standards-points li::marker { color: var(--teal-deep); }
.standards-table tr { scroll-margin-top: 96px; }
.standards-table tr:target th, .standards-table tr:target td { background: var(--teal-soft); }
