/* Tool-specific styles (owned by Tools agent). Uses variables from main.css. */
.az-tool .az-mt { margin-top: 16px; }
.az-tool .az-mt-lg { margin-top: 36px; }
.az-tool .az-small { font-size: .88rem; }
.az-tool .az-block { display: block; margin-top: 2px; }
.az-tool .az-label { margin: 0 0 4px; font-size: .9rem; font-weight: 500; }
.az-tool .az-big { margin: 0 0 8px; font-size: clamp(1.45rem, 4.2vw, 2rem); font-weight: 800; color: var(--brand-900); line-height: 1.25; }
.az-tool .az-h { font-size: 1.2rem; font-weight: 700; color: var(--brand-900); margin: 0 0 8px; }
.az-tool .az-h3 { font-size: 1.02rem; font-weight: 700; color: var(--brand-800); margin-bottom: 6px; }
.az-tool .az-list { margin: 0; padding-inline-start: 1.25em; display: grid; gap: 6px; }
.az-tool .result-card:focus { outline: 3px solid var(--accent-500); outline-offset: 2px; }
.az-tool .result-card:focus:not(:focus-visible) { outline: none; }

/* Status lines (deadline tool) */
.az-tool .az-status { margin: 0 0 8px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--ok-bg); color: var(--ok-fg); }
.az-tool .az-status-warn { background: var(--warn-bg); color: var(--warn-fg); border: 1px solid var(--warn-line); }
.az-tool .az-status-danger { background: var(--danger-bg); color: var(--danger-fg); }
.az-tool .az-result-warn { border-color: var(--warn-line); }
.az-tool .az-facts { margin: 10px 0 0; padding-inline-start: 1.2em; font-size: .95rem; color: var(--brand-700); display: grid; gap: 4px; }

/* Segmented radio (purchase tax) */
.az-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.az-legend { font-weight: 600; font-size: .95rem; color: var(--brand-900); margin-bottom: 8px; padding: 0; }
.az-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.az-seg-item { position: relative; flex: 1 1 160px; }
.az-seg-item input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.az-seg-item span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 14px; text-align: center;
  border: 1.5px solid var(--brand-200); border-radius: 12px; background: #fff; font-weight: 600; color: var(--brand-800); transition: border-color .15s, background .15s; }
.az-seg-item input:hover + span { border-color: var(--brand-300); }
.az-seg-item input:checked + span, .az-seg-item.is-checked span { border-color: var(--accent-600); background: var(--accent-50); color: var(--accent-800); box-shadow: inset 0 0 0 1px var(--accent-600); }
.az-seg-item input:focus-visible + span { outline: 3px solid var(--accent-500); outline-offset: 2px; }
.az-num { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }

/* Breakdown table */
.az-table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--accent-200); border-radius: var(--radius-sm); background: #fff; }
.az-table-wrap:focus-visible { outline: 3px solid var(--accent-500); outline-offset: 2px; }
.az-table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; min-width: 460px; }
.az-table th, .az-table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.az-table thead th { background: var(--brand-50); color: var(--brand-800); font-weight: 600; }
.az-table tfoot th, .az-table tfoot td { font-weight: 800; color: var(--brand-900); border-bottom: 0; background: var(--accent-50); }

/* Checklist */
.az-checklist { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 4px; }
.az-checklist li { border-bottom: 1px solid var(--accent-100); }
.az-checklist li:last-child { border-bottom: 0; }
.az-check { padding: 10px 4px; cursor: pointer; min-height: 44px; }
.az-check input:focus-visible { outline: 3px solid var(--accent-500); outline-offset: 2px; }
.az-progress { margin: 0; font-weight: 500; }

@media (max-width: 560px) {
  .az-tool .btn-row .btn { width: 100%; }
  .az-table { min-width: 0; font-size: .88rem; }
  .az-table th, .az-table td { padding: 8px 6px; white-space: normal; }
}

/* Print: checklist only */
@media print {
  .az-tool .result-card { background: none; border: 1px solid #999; }
  .az-check input { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.az-printing-checklist .page-hero .breadcrumbs,
  body.az-printing-checklist .sidebar,
  body.az-printing-checklist .prose,
  body.az-printing-checklist .notice,
  body.az-printing-checklist .cta-band { display: none !important; }
  body.az-printing-checklist .layout { display: block !important; }
  .az-table-wrap { overflow: visible; border: 0; }
}

/* English (left-to-right) pages */
html[dir="ltr"] .az-num { text-align: left; }
html[dir="ltr"] .az-table th, html[dir="ltr"] .az-table td { text-align: left; }
