/* Trump against every president since Truman (Views/Usa/_ApprovalHistory.cshtml) */
.ah__sub { margin: .2rem 0 .7rem; color: var(--muted); max-width: none; }
.ah__modes, .ah__pick { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .6rem; }
.ah__modes button, .ah__pick button { font: 600 .82rem/1 var(--font-ui); padding: .42rem .7rem; border: 1px solid var(--hair); border-radius: var(--radius-fig, 0); background: none; color: var(--ink); cursor: pointer; }
.ah__modes button.is-on { background: var(--ink); color: var(--surface, #fff); border-color: var(--ink); }
.ah__pick button { font-weight: 500; padding: .34rem .55rem; }
.ah__pick button.is-on { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); color: var(--c); font-weight: 700; }
.ah__read { margin: .2rem 0 .4rem; min-height: 2.6em; font-size: .95rem; }
.ah__svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.ah__grid { stroke: var(--hair); stroke-width: 1; }
.ah__grid.is-50 { stroke: var(--muted); stroke-dasharray: 3 3; }
.ah__ylab, .ah__xlab { font: var(--fs-2xs) var(--font-ui); fill: var(--muted); }
.ah__ylab { text-anchor: end; }
.ah__line { fill: none; stroke: var(--c, var(--muted)); stroke-width: 1.4; opacity: .4; stroke-linejoin: round; stroke-linecap: round; transition: opacity .12s, stroke-width .12s; }
/* each president faint in his own colour; the one picked full strength; the one under the pointer brought up (owner, 19 Nov 2026) */
.ah__line.is-on { stroke-width: 2.6; opacity: 1; }
.ah__line.is-hover { stroke-width: 2.2; opacity: .9; }
.ah__line--now, .ah__line--now.is-hover { stroke-width: 3.2; opacity: 1; }
.ah__svg.is-hovering .ah__line:not(.is-on):not(.is-hover):not(.ah__line--now) { opacity: .18; }
.ah__hdot { fill: var(--surface, #fff); stroke: var(--hc, var(--ink)); stroke-width: 2.5; pointer-events: none; }
.ah { position: relative; }
.ah__tip { position: absolute; z-index: 5; pointer-events: none; min-width: 9.5rem; max-width: 15rem; padding: .45rem .6rem; background: var(--surface, #fff); color: var(--ink); border: 1px solid var(--hair); border-left: 4px solid var(--hc, var(--ink)); box-shadow: 0 6px 18px rgba(0, 0, 0, .14); font: .82rem/1.35 var(--font-ui); }
.ah__tip b { display: block; font-size: .9rem; }
.ah__tip strong { font-size: 1.15rem; color: var(--hc, var(--ink)); }
.ah__tip span { color: var(--muted); }
.ah__line--now { stroke: #C8312F; stroke-width: 3.2; opacity: 1; }
.ah__line--dis { stroke: #C8312F; stroke-width: 1.6; opacity: .45; stroke-dasharray: 4 3; }
.ah__line--gap { stroke: var(--c); stroke-width: 1.5; opacity: .35; }
.ah__dot { fill: #C8312F; stroke: var(--surface, #fff); stroke-width: 2; }
.ah__guide { stroke: var(--ink); stroke-width: 1; opacity: .5; }
.ah__rank { margin-top: .6rem; }
.ah__rank summary { cursor: pointer; font-weight: 600; }
.ah__rank ol { margin: .4rem 0 0; padding-left: 1.6rem; columns: 2; column-gap: 2rem; }
.ah__rank li { break-inside: avoid; padding: .1rem 0; }
.ah__rank li span { display: inline-block; min-width: 11rem; }
.ah__rank li.is-now { color: #C8312F; font-weight: 700; }
.ah__key { list-style: none; display: flex; gap: 1rem; padding: 0; margin: .3rem 0 0; font-size: .85rem; }
.ah__key li::before { content: ""; display: inline-block; width: 18px; height: 0; border-top: 3px solid #C8312F; vertical-align: middle; margin-right: .35rem; }
.ah__key li.is-d::before { border-top: 2px dashed #C8312F; opacity: .6; }
.ah__note { margin-top: .6rem; }
.ah__svg--phone, .ah__select { display: none; }
.ah__select select { font: inherit; margin-left: .4rem; padding: .35rem .5rem; border: 1px solid var(--hair); border-radius: var(--radius-fig, 0); background: none; color: var(--ink); max-width: 100%; }
@media (max-width: 640px) {
  .ah__svg--wide, .ah__pick { display: none; }
  .ah__svg--phone { display: block; }
  .ah__select { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; margin: 0 0 .5rem; font-weight: 600; font-size: .9rem; }
  .ah__select select { margin-left: 0; flex: 1 1 12rem; }
  .ah__modes button { flex: 1 1 0; padding: .5rem .4rem; }
  .ah__rank ol { columns: 1; } .ah__rank li span { min-width: 9rem; }
  .ah__ylab, .ah__xlab { font-size: var(--fs-xs); }
}
