.tag-hero { align-items: end; }
.tag-page h1 { font-size: clamp(40px, 6.2vw, 76px); letter-spacing: -.04em; }
.tag-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 16px; font-size: 14px; color: var(--muted); }
.tag-meta > * + *::before { content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 12px; background: var(--field-border); vertical-align: -1px; }
.tag-meta span:first-child { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.tag-meta a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--field-border); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tag-meta a:hover { color: var(--accent-strong); text-decoration-color: currentColor; }
.tag-page .cat-intro { padding-bottom: 6px; }
.tag-page .qa { margin-top: 40px; }
.tag-page .home-section { margin-top: 80px; }
.tag-page .qa-forms { margin-top: 0; padding-top: 28px; }
.qa-more { margin-top: auto; padding-top: 24px; font-size: 14.5px; font-weight: 600; }
.qa-more a { text-decoration: underline; text-decoration-color: var(--field-border); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.qa-more a::after { content: " \2193"; }
.qa-more a:hover { color: var(--accent-strong); text-decoration-color: currentColor; }
.tag-tools { scroll-margin-top: 80px; }
.qa-only .qa-q { grid-template-columns: minmax(0, 1fr); color: var(--text); cursor: auto; }
.qa-only .qa-q::before { content: none; }
.qa-only .qa-q-tool { grid-column: 1; }

.tag-facts .facts { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tag-facts .fact { padding-right: 40px; }
.tag-facts .fact + .fact { padding-left: 40px; }
.tag-facts .fact-label { min-height: 0; }
.tag-facts .fact-chart { height: 84px; }
.tag-facts .fact-text { max-width: 52ch; }
.fact-compare { margin: 0; display: grid; gap: 10px; }
.fact-compare > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; align-items: baseline; font-size: 13px; }
.fact-compare dt { color: var(--muted); }
.fact-compare dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.cmp-bar { grid-column: 1 / -1; display: block; width: 100%; height: 6px; }
.cmp-bar rect { stroke: none; }
.fact-compare .bar-tax { fill: color-mix(in srgb, var(--muted) 55%, transparent); }

.example-list { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.example-list li { border-bottom: 1px solid var(--rule); }
.example-list a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 20px; gap: 6px 48px; align-items: start; padding: 24px 0 26px; text-decoration: none; }
.example-list a::after { content: "\2192"; grid-column: 3; grid-row: 1; align-self: start; justify-self: end; margin-top: 2px; color: var(--muted); transition: transform .15s ease; }
.row-head { display: grid; gap: 4px; }
.example-list .tool-name { font: 700 19px/1.3 var(--font-heading); letter-spacing: -.012em; }
.example-list .tool-text { font-size: 14.5px; }
.row-example { display: grid; gap: 4px; padding-left: 24px; border-left: 1px solid var(--rule); }
.row-example .sit-figure { font-size: 26px; }
.row-example .dec { font-size: .62em; color: var(--muted); }
.row-example .sit-caption { margin-top: 0; max-width: 54ch; }
.example-list a:hover .tool-name, .example-list a:hover::after { color: var(--accent-strong); }
.example-list a:hover::after { transform: translateX(3px); }

.bg-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.bg-list a { display: grid; gap: 6px; padding: 2px 0 4px; text-decoration: none; }
.bg-kind { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bg-title { font: 700 19px/1.3 var(--font-heading); letter-spacing: -.012em; text-wrap: balance; }
.bg-text { font-size: 14.5px; line-height: 1.55; color: var(--muted); max-width: 52ch; }
.bg-list a:hover .bg-title { color: var(--accent-strong); }

.sib-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.sib-list li { border-bottom: 1px solid var(--rule); }
.sib-list a { display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 4px 16px; padding: 16px 0 17px; text-decoration: none; }
.sib-list a::after { content: "\2192"; grid-column: 2; grid-row: 1; color: var(--muted); transition: transform .15s ease; }
.sib-name { display: flex; align-items: baseline; gap: 10px; font-size: 16px; font-weight: 650; }
.sib-count { font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.sib-text { grid-column: 1; font-size: 14px; line-height: 1.5; color: var(--muted); }
.sib-list a:hover .sib-name, .sib-list a:hover::after { color: var(--accent-strong); }
.sib-list a:hover::after { transform: translateX(3px); }

@media (max-width: 860px) {
  .tag-hero { align-items: start; }
  .tag-hero .cat-hero-main { display: block; }
  .tag-hero .cat-intro { order: 0; }
  .example-list a { grid-template-columns: minmax(0, 1fr) 20px; gap: 10px 16px; }
  .example-list a::after { grid-column: 2; }
  .row-example { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .qa-more { display: none; }
  .bg-list, .sib-list { grid-template-columns: minmax(0, 1fr); }
  .bg-list { row-gap: 24px; }
}
@media (max-width: 640px) {
  .tag-page h1 { font-size: 40px; }
  .tag-meta { margin-top: 10px; font-size: 13.5px; }
  .tag-page .qa { margin-top: 28px; }
  .tag-page .home-section { margin-top: 56px; }
  .tag-facts .facts { grid-template-columns: minmax(0, 1fr); }
  .tag-facts .fact, .tag-facts .fact + .fact { padding: 24px 0 26px; border-left: 0; }
  .tag-facts .fact:first-child { padding-top: 0; }
  .tag-facts .fact-chart { height: auto; }
  .example-list { margin-top: 18px; }
  .example-list a { padding: 18px 0 20px; }
  .example-list .tool-name { font-size: 17px; }
  .example-list .tool-text { display: none; }
  .row-example { padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
  .row-example .sit-figure { font-size: 23px; }
  .row-example .sit-caption { font-size: 13px; }
  .sib-text { display: none; }
  .sib-list a { padding: 13px 0; }
}
