/* tendhousing.com.au: the AMF page and its four guides (/amf/repairs/, /amf/aps-benchmarks/,
   /amf/asset-management-plan/, /amf/asset-condition-assessment/), owner 2026-11-17. Every regulatory line carries
   its AMF reference as a .cite, so a reader can check it against the AHO's PDF. Linked from each page's "styles". */

/* Tables that stack on phones, each cell labelled (moved from amf.css). */
@media (max-width: 719.98px) {
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-stack, .table-stack tbody { display: block; background: transparent; }
  .table-stack tr { display: block; padding: var(--space-3) 0; border-bottom: 1px solid var(--border-default); }
  .table-stack th, .table-stack td { display: block; border: 0; padding: var(--space-1) 0; }
  .table-stack td[data-label]::before { content: attr(data-label); display: block; font-size: var(--step-small); color: var(--muted); }
  .table-stack td.ref { white-space: normal; }
}
.cite { display: inline-block; font-size: var(--step-eyebrow); font-weight: 500; letter-spacing: 0.02em; color: var(--stone-700); background: var(--mist); border: 1px solid var(--rule); border-radius: var(--radius-xs); padding: 2px var(--space-2); white-space: nowrap; }
.table caption { caption-side: top; text-align: left; padding: 0 0 var(--space-3); font-size: var(--step-small); color: var(--muted); }
.table tbody th { font-weight: 600; color: var(--ink); }

/* Where a guide sits: back to the AMF page, above the title. */
.crumb { margin: 0 0 var(--space-5); font-size: var(--step-small); }

/* A note under a table or list, on the measure. */
.guide-note { margin: var(--space-5) 0 0; max-width: 46em; color: var(--stone-700); }
.guide-note.small { color: var(--muted); }
.guide-defs { margin-top: var(--space-8); }
@media (min-width: 960px) { .guide-defs { grid-template-columns: repeat(3, 1fr); } }

/* Plain checklists: a stone dot, because these are what the AMF asks, not what's done (rule 6). */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); max-width: 46em; }
.checks li { position: relative; padding-left: var(--space-6); }
.checks li::before { content: ''; position: absolute; left: var(--space-1); top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--stone-500); }
.checks-tight { gap: var(--space-1); }
.cols-2 { display: grid; gap: var(--space-8) var(--space-12); }
.cols-2 h3, .guide-split h3 { margin-bottom: var(--space-4); }
@media (min-width: 720px) { .cols-2 { grid-template-columns: 1fr 1fr; } }
.guide-split { display: grid; gap: var(--space-8) var(--space-12); align-items: start; }
@media (min-width: 960px) { .guide-split { grid-template-columns: 5fr 7fr; } }

/* A numbered list of what the AMF names, one per line, on ruled rows. */
.plan-list { margin: 0; padding: 0; list-style: none; counter-reset: plan; display: grid; max-width: 52em; }
.plan-list > li { counter-increment: plan; position: relative; padding: var(--space-4) 0 var(--space-4) var(--space-12); border-top: 1px solid var(--rule); }
.plan-list > li:last-child { border-bottom: 1px solid var(--rule); }
.plan-list > li::before { content: counter(plan); position: absolute; left: 0; top: var(--space-3); font-family: var(--font-display); font-size: 1.625rem; line-height: 1.2; color: var(--leaf-700); }
.plan-list strong { color: var(--ink); }

/* The three APS grades side by side. The edge says what each means (rule 6): leaf for the best, stone for the
   floor, gold for the gap. */
.grades { display: grid; gap: var(--space-6); }
@media (min-width: 960px) { .grades { grid-template-columns: repeat(3, 1fr); } }
.grade { padding: var(--space-5); background: var(--bg-surface); border: 1px solid var(--rule); border-top: 3px solid var(--stone-400); border-radius: var(--radius-lg); }
.grade-well { border-top-color: var(--leaf-500); }
.grade-below { border-top-color: var(--marigold-500); }
.grade h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; margin-bottom: var(--space-2); }
.grade > p { margin-bottom: var(--space-3); color: var(--muted); font-size: var(--step-small); }
.nots-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.nots-list li { position: relative; padding-left: var(--space-6); }
.nots-list li::before { content: ''; position: absolute; left: 4px; top: 0.75em; width: 12px; border-top: 2px solid var(--marigold-500); }

/* The repairs matrix, one response time at a time: a component per block, its entries listed. */
.crm-groups { display: grid; gap: var(--space-8) var(--space-12); }
@media (min-width: 960px) { .crm-groups { grid-template-columns: 1fr 1fr; } }
.crm-group h3 { padding-bottom: var(--space-2); margin-bottom: var(--space-3); border-bottom: 1px solid var(--rule); }
.crm-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.crm-items strong { color: var(--ink); }
.crm-times th a { font-weight: 600; }

/* The AMF page's index of its guides. */
.guide-index { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); }
.guide-index p { margin: 0; }
.guide-index ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0; padding: 0; }
/* The six response times stay a table on phones: three short columns fit. */
@media (max-width: 719.98px) { .crm-times th, .crm-times td { padding: var(--space-2) var(--space-2); font-size: var(--step-small); } }
