/* Training Compliance page: additions to tax.css and dep.css only. */
.tr-year { display: grid; gap: 4px; margin: 4px 0 10px; padding: 12px 14px; border-radius: var(--r-field); background: var(--tint); font-size: var(--fs-small); line-height: 1.55; }
.tr-year .hint { margin: 0; }

/* Month grid: twelve compact cells; counted months carry the accent. */
.tr-months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; margin-top: 12px; }
.tr-cell { display: grid; gap: 4px; min-width: 0; }
.tr-cell label { font-size: var(--fs-micro); font-weight: 600; color: var(--ink-2); }
.tr-cell .cell { width: 100%; min-height: 44px; padding: 6px 10px; text-align: right; font: 500 1rem/1.2 var(--text); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-field); font-variant-numeric: tabular-nums; }
.tr-cell .cell:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.tr-cell .cell[aria-invalid='true'] { border-color: #A3271A; }
.tr-cell .cell:disabled { background: var(--tint); color: var(--ink-2); border-style: dashed; }
.tr-cell[data-state='counted'] label { color: var(--accent); }
.tr-cell[data-state='counted'] .cell { box-shadow: inset 3px 0 0 var(--accent); }
.tr-months-note { margin: 8px 0 0; font-size: var(--fs-small); color: var(--ink-2); }
.tr-months-note:empty { display: none; }
.tr-routes { margin-top: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tr-sub { margin: -4px 0 6px 36px; }
.tr-sub[hidden] { display: none; }
.tr-sub .field { padding-top: 0; }

/* Result figures. */
.tr-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.tr-card { margin: 0; padding: 12px 14px; border-radius: var(--r-field); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tr-card dt { font-size: var(--fs-micro); font-weight: 600; color: var(--ink-2); }
.tr-card dd { margin: 2px 0 0; font-family: var(--display); font-size: 1.6rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tr-card small { display: block; margin-top: 2px; font-size: var(--fs-micro); color: var(--ink-2); }

/* Page sections. */
.cite-n { white-space: nowrap; }
.cite-n a { margin-left: 1px; font-size: .78em; vertical-align: super; line-height: 0; color: var(--accent); text-decoration: none; }
.cite-n a:hover, .cite-n a:focus-visible { text-decoration: underline; }
.tr-example { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-card); background: var(--tint); }
.tr-example h3, .tr-counts h3, .tr-other h3 { margin: 0 0 6px; font-size: 1rem; }
.tr-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.tr-guide .tr-lead { max-width: 65ch; color: var(--ink-2); }
.tr-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.tr-guide-card { min-width: 0; padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r-panel); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tr-guide-card h3 { margin: 6px 0 10px; font-size: 1.15rem; }
.tr-when { display: inline-flex; align-items: center; min-height: 26px; margin: 0; padding: 0 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-size: var(--fs-micro); font-weight: 600; }
.tr-gap { margin: 14px 0 6px; padding: 10px 12px; border-radius: var(--r-field); background: #FBF3E4; color: #6B4A12; font-size: var(--fs-small); line-height: 1.5; }
.tr-reduce { margin: 0; }
.tr-reduce div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.tr-reduce div:last-child { border-bottom: 0; }
.tr-reduce dt { font-weight: 600; }
.tr-reduce dd { margin: 2px 0 0; color: var(--ink-2); font-size: var(--fs-small); }
.tr-other { margin-top: 22px; padding: 16px 18px; border-radius: var(--r-card); background: var(--tint); }
.tr-faq p { margin: 0; padding: 0 0 14px; }

@media (max-width: 720px) {
  .tr-months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tr-routes, .tr-counts, .tr-guide-grid { grid-template-columns: 1fr; }
  .tr-sub { margin-left: 0; }
}
