/* /taxregistration — State Payroll Tax Registration Guide */
.tr-wrap { padding: 2.5rem 1.25rem 4rem; max-width: 1000px; }
.tr-tools { position: sticky; top: 72px; z-index: 5; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 1rem 1.25rem; box-shadow: var(--shadow-md); margin-bottom: 1.5rem; }
.tr-label { display: block; font-weight: 700; color: var(--gray-900); margin-bottom: .4rem; }
#trSearch { width: 100%; box-sizing: border-box; font: 400 1.05rem var(--font-body); padding: .75rem 1rem; border: 1.5px solid var(--gray-300); border-radius: 10px; }
#trSearch:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(0,150,199,.15); }
.tr-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.tr-chip { border: 1.5px solid var(--gray-300); background: #fff; border-radius: 999px; padding: .35rem .85rem; font: 600 .82rem var(--font-body); color: var(--gray-700); cursor: pointer; }
.tr-chip.is-on { border-color: var(--primary); background: var(--blue-50); color: var(--primary-dark); }
.tr-count { margin: .6rem 0 0; font-size: .85rem; color: var(--gray-500); }
.tr-before { background: var(--blue-50); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.tr-before h2 { font-family: var(--font-heading); font-size: 1.3rem; margin: 0 0 .5rem; color: var(--gray-900); }
.tr-before ul { columns: 2; margin: .25rem 0 .75rem; padding-left: 1.2rem; }
.tr-small { font-size: .88rem; color: var(--gray-600); margin: 0; }
.tr-az { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1.5rem; }
.tr-az a { font: 600 .78rem var(--font-body); padding: .3rem .45rem; border-radius: 6px; background: var(--gray-100); color: var(--gray-700); text-decoration: none; min-width: 2.2em; text-align: center; }
.tr-az a:hover { background: var(--primary); color: #fff; }
.tr-card { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; background: #fff; scroll-margin-top: 220px; }
.tr-card:target { border-color: var(--primary); box-shadow: var(--shadow-blue); }
.tr-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.tr-card-head h2 { font-family: var(--font-heading); font-size: 1.45rem; margin: 0; color: var(--gray-900); }
.tr-abbr { display: inline-grid; place-items: center; background: var(--gradient); color: #fff; border-radius: 8px; font-size: .85rem; padding: .2rem .45rem; margin-right: .35rem; vertical-align: middle; }
.tr-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.tr-tag { font: 600 .72rem var(--font-body); padding: .2rem .55rem; border-radius: 999px; background: var(--gray-100); color: var(--gray-600); }
.tr-tag-nowh { background: #ecfdf5; color: #047857; } .tr-tag-combined { background: var(--blue-50); color: var(--primary-dark); }
.tr-tag-local { background: #fff7ed; color: #c2410c; } .tr-tag-leave { background: #f5f3ff; color: #6d28d9; }
.tr-combined { background: var(--blue-50); border-left: 4px solid var(--blue-400); padding: .6rem .9rem; border-radius: 0 8px 8px 0; margin: 0 0 1rem; font-weight: 500; }
.tr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tr-box { border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 1rem 1.1rem; }
.tr-box h3, .tr-local h3 { font-size: 1rem; margin: 0 0 .35rem; color: var(--gray-900); }
.tr-box p { margin: .3rem 0; line-height: 1.55; }
.tr-box-muted { background: var(--gray-50); color: var(--gray-600); }
.tr-agency { font-weight: 600; color: var(--primary-dark); }
.tr-go a { font-weight: 700; }
.tr-go a::after { content: " ↗"; }
.tr-extras { margin-top: 1rem; background: #faf5ff; border-color: #ede9fe; }
.tr-extras ul, .tr-local ul { margin: .25rem 0 0; padding-left: 1.2rem; line-height: 1.6; }
.tr-local { margin-top: 1rem; }
.tr-local p { margin: .2rem 0; color: var(--gray-700); }
.tr-ids { margin-top: 1rem; border-collapse: collapse; width: 100%; max-width: 520px; }
.tr-ids caption { text-align: left; font-weight: 700; color: var(--gray-900); padding-bottom: .35rem; }
.tr-ids caption span { font-weight: 400; color: var(--gray-500); font-size: .82rem; margin-left: .4rem; }
.tr-ids th, .tr-ids td { border: 1px solid var(--gray-200); padding: .45rem .7rem; text-align: left; font-size: .9rem; }
.tr-ids th { background: var(--gray-50); }
.tr-ids code { font-size: .95rem; letter-spacing: .03em; }
.tr-verified { margin: .9rem 0 0; font-size: .8rem; color: var(--gray-500); }
.tr-empty { text-align: center; color: var(--gray-500); padding: 2rem; }
.tr-foot { margin-top: 2rem; font-size: .9rem; color: var(--gray-600); border-top: 1px solid var(--gray-200); padding-top: 1rem; }
@media (max-width: 720px) {
  .tr-grid { grid-template-columns: 1fr; } .tr-before ul { columns: 1; }
  .tr-tools { position: static; } .tr-card { scroll-margin-top: 90px; padding: 1.1rem; }
}
@media print {
  .navbar, .footer, .tr-tools, .tr-az, .page-hero, .tr-go a::after { display: none !important; }
  .tr-card { break-inside: avoid; box-shadow: none; } .tr-card[hidden] { display: none; }
  .tr-go a::before { content: attr(href); font-weight: 400; font-size: .8rem; }
}

/* ---- Landing: map + tiles ---- */
.tr-mapbox { margin: 0 0 1.5rem; }
.tr-map { width: 100%; height: auto; display: block; }
.tr-st path { fill: #cfe3f7; stroke: #fff; stroke-width: 1.2; transition: fill .15s; }
.tr-st.tr-full path { fill: var(--blue-400, #00B4D8); }
.tr-st:hover path, .tr-st:focus path { fill: var(--primary, #0066CC); }
.tr-st text { font: 700 11px var(--font-body); fill: var(--gray-800, #2d2d44); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.tr-st.tr-full text, .tr-st:hover text, .tr-st:focus text { fill: #fff; }
.tr-st:focus { outline: none; } .tr-st:focus path { stroke: var(--gray-900); stroke-width: 2; }
.tr-small-states { font-size: .85rem; color: var(--gray-600); margin: .5rem 0 .25rem; }
.tr-small-states a { display: inline-block; margin: 0 .2rem .2rem 0; padding: .15rem .45rem; border-radius: 6px; background: var(--gray-100); font-weight: 600; text-decoration: none; color: var(--gray-700); }
.tr-legend { font-size: .82rem; color: var(--gray-500); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin: 0; }
.tr-key { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: #cfe3f7; margin-left: .6rem; } .tr-key-full { background: var(--blue-400, #00B4D8); margin-left: 0; }
.tr-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.tr-tile { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; border: 1px solid var(--gray-200); border-radius: 12px; padding: .65rem .8rem; text-decoration: none; color: var(--gray-900); background: #fff; }
.tr-tile:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.tr-tile-name { font-weight: 600; }
.tr-tag-full { background: var(--blue-400, #00B4D8); color: #fff; }
.tr-tools { margin-bottom: 1.25rem; }
.tr-filters { margin: 0 0 .5rem; }

/* ---- State pages ---- */
.tr-state { max-width: 860px; }
.tr-crumbs { font-size: .88rem; color: var(--gray-500); margin: 1.5rem 0 .75rem; }
.tr-crumbs a { color: var(--primary); }
.tr-state-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.tr-state-head h1 { font-family: var(--font-heading); font-size: 2rem; margin: 0; color: var(--gray-900); }
.tr-lead { font-size: 1.08rem; color: var(--gray-600); }
.tr-acct { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; margin: 1.25rem 0; background: #fff; }
.tr-acct h2, .tr-local h2, .tr-links h2, .tr-after h2 { font-family: var(--font-heading); font-size: 1.3rem; margin: 0 0 .5rem; color: var(--gray-900); }
.tr-acct h3 { font-size: 1rem; margin: 1.1rem 0 .35rem; color: var(--gray-900); }
.tr-num { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--gradient); color: #fff; font-size: .9rem; margin-right: .5rem; vertical-align: 2px; }
.tr-acct ul, .tr-acct ol, .tr-local ul, .tr-links ul { margin: .2rem 0; padding-left: 1.3rem; line-height: 1.65; }
.tr-steps li { margin-bottom: .25rem; }
.tr-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; margin: .75rem 0 0; }
.tr-facts div { background: var(--gray-50); border-radius: 10px; padding: .6rem .8rem; }
.tr-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); }
.tr-facts dd { margin: .15rem 0 0; font-weight: 600; } .tr-facts dd span { font-weight: 400; color: var(--gray-500); font-size: .85rem; }
.tr-go { font-weight: 700; } .tr-go::after { content: " ↗"; }
.tr-ids th span { font-weight: 400; color: var(--gray-500); font-size: .8rem; margin-left: .3rem; }
.tr-ids { max-width: 100%; }
.tr-after { margin-top: 1.25rem; }
.tr-pager { display: flex; justify-content: space-between; gap: .5rem; margin: 2rem 0 1rem; font-weight: 600; flex-wrap: wrap; }
.tr-help { color: var(--gray-600); }
@media (max-width: 720px) { .tr-facts { grid-template-columns: 1fr; } .tr-state-head h1 { font-size: 1.5rem; } .tr-acct { padding: 1.1rem; } }
@media print { .tr-mapbox, .tr-pager, .tr-crumbs, .tr-help { display: none !important; } .tr-acct { break-inside: avoid; } }
.tr-state ul, .tr-tools ul { list-style: disc; } .tr-state ol { list-style: decimal; }
.tr-state ul li, .tr-state ol li { display: list-item; }
.tr-state { padding-top: 6.5rem; }
@media (max-width: 720px) { .tr-state { padding-top: 5.5rem; } }

.tr-agentid { background: var(--blue-50); border-radius: 8px; padding: .5rem .75rem; margin: .25rem 0 .5rem; font-weight: 600; }
.tr-agentid code { font-size: 1rem; } .tr-agentid-none { font-weight: 500; color: var(--gray-600); background: var(--gray-50); }
.tr-poa-head { font-weight: 600; margin: .6rem 0 .2rem; } .tr-poa a::after { content: " ↗"; }
.tr-local-flag { font-size: 1.02rem; margin: .1rem 0 .5rem !important; }
.tr-local-yes strong { color: #b45309; } .tr-local-no strong { color: #047857; } .tr-local-state strong { color: var(--gray-900); }
.tr-local-list { margin-top: .5rem !important; }
/* Keep [hidden] working on elements that set their own display (filters/search on the landing page). */
.tr-wrap [hidden] { display: none !important; }
.tr-local ol { margin: .2rem 0; padding-left: 1.3rem; line-height: 1.65; }
.tr-local h3 { margin-top: .8rem; }
.tr-local a, .tr-poa a, .tr-links a { color: var(--primary); }
.tr-local a::after { content: " ↗"; }

/* ---- Print / Save as PDF (state pages) ---- */
.tr-print { margin-left: auto; padding: .5rem 1rem; border: 1px solid var(--primary); border-radius: 8px; background: #fff;
  color: var(--primary); font: 600 .9rem var(--font-body, inherit); cursor: pointer; }
.tr-print:hover, .tr-print:focus-visible { background: var(--primary); color: #fff; }
.tr-print-only { display: none; }
@media print {
  @page { margin: 14mm 12mm; }
  .navbar, .footer, .skip-link, #cookieConsent, .fab-container, .fab-backdrop,
  .tr-print, .tr-crumbs, .tr-pager, .tr-help { display: none !important; }
  body { background: #fff !important; color: #000; }
  main, .tr-wrap { padding-top: 0 !important; margin-top: 0 !important; }
  .tr-print-only { display: block; margin: 0 0 .5rem; font-size: .8rem; color: #444; }
  .tr-acct, .tr-local { box-shadow: none !important; break-inside: auto !important; }
  .tr-ids, .tr-state li, .tr-facts > * { break-inside: avoid; }
  .tr-state h2, .tr-state h3 { break-after: avoid; }
  .tr-state a { color: #000 !important; text-decoration: underline; }
  .tr-local a::after { content: none; }
  .tr-state a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; color: #444; word-break: break-all; }
}
