/* Compact comparison embedded after complete card details. */
body[data-design="agy"] .quick-comparison {
  --dense-val-size: 14px;
  --dense-note-size: 12px;
  padding-block: 24px 56px;
  scroll-margin-top: 84px;
}
body[data-design="agy"] .quick-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--surface-border-hover); padding-top: 28px;
}
body[data-design="agy"] .quick-heading h2 { margin: 0; font-size: 26px; line-height: 1.35; }
body[data-design="agy"] .quick-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-block: 18px 8px; font-size: 14px; }
body[data-design="agy"] .quick-toolbar select { max-width: 260px; min-width: 180px; min-height: 44px; padding: 8px 30px 8px 12px; border: 1px solid var(--surface-border); border-radius: 6px; background: var(--canvas-elevated); color: var(--ink); font-size: 15px; }
body[data-design="agy"] .quick-count { margin-left: auto; color: var(--muted); }
body[data-design="agy"] .quick-hint { margin: 0 0 12px; color: var(--subtle); font-size: 13px; }
body[data-design="agy"] .quick-pan-hint { display: none; }
body[data-design="agy"] .quick-scroll { overflow: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #39455c var(--canvas); border-block: 1px solid var(--surface-border); }
body[data-design="agy"] .quick-table { width: 100%; min-width: 1260px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 14px; }
body[data-design="agy"] .quick-card-col { width: 224px; }
body[data-design="agy"] .quick-col-eligibility { width: 164px; }
body[data-design="agy"] .quick-col-issuance { width: 112px; }
body[data-design="agy"] .quick-col-ongoing { width: 128px; }
body[data-design="agy"] .quick-col-fx { width: 170px; }
body[data-design="agy"] .quick-col-rewards { width: 194px; }
body[data-design="agy"] .quick-col-apple_pay,
body[data-design="agy"] .quick-col-google_pay { width: 86px; }
body[data-design="agy"] .quick-apply-col { width: 96px; }
body[data-design="agy"] .quick-table th,
body[data-design="agy"] .quick-table td { padding: 9px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
body[data-design="agy"] .quick-table thead th { position: sticky; top: 0; z-index: 2; height: 48px; background: var(--canvas-elevated); color: var(--muted); font-size: 13px; font-weight: 600; }
body[data-design="agy"] .quick-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--canvas); border-right: 1px solid var(--line); }
body[data-design="agy"] .quick-table thead th:first-child { left: 0; z-index: 3; }
body[data-design="agy"] .quick-table .quick-current > * { background: #101827; }
body[data-design="agy"] .quick-table .quick-current > th { box-shadow: inset 3px 0 var(--accent); }
body[data-design="agy"] .quick-table tbody tr:hover > * { background: var(--paper); }
body[data-design="agy"] .quick-name { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; }
body[data-design="agy"] .quick-name:hover strong { color: var(--accent); }
body[data-design="agy"] .quick-identity { min-width: 0; }
body[data-design="agy"] .quick-identity strong,
body[data-design="agy"] .quick-identity > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 21px; }
body[data-design="agy"] .quick-identity strong { font-size: 14px; font-weight: 600; }
body[data-design="agy"] .quick-identity > span { color: var(--muted); font-size: 12px; font-weight: 400; }
body[data-design="agy"] .quick-current-label { display: block; margin-left: 50px; color: var(--accent); font-size: 11px; line-height: 16px; font-weight: 400; }
body[data-design="agy"] .quick-name .card-visual { width: 40px; min-width: 40px; max-width: 40px; margin: 0; }
body[data-design="agy"] .quick-name .designed-card { width: 40px; aspect-ratio: 1.586; padding: 2px 4px; border-radius: 4px; box-shadow: none; }
body[data-design="agy"] .quick-name .card-brand-logo { max-width: 32px; max-height: 12px; width: auto; height: auto; }
body[data-design="agy"] .quick-name .card-brand-text { font-size: 8px; line-height: 1; }
body[data-design="agy"] .quick-name .card-design-bottom { display: none; }
body[data-design="agy"] .quick-action a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: none; font-size: 13px; white-space: nowrap; }
body[data-design="agy"] .quick-action a:hover { text-decoration: underline; }
body[data-design="agy"] .quick-action small { display: block; color: var(--muted); font-size: 11px; }
body[data-design="agy"] .quick-empty { padding: 28px 0; color: var(--muted); }
body[data-design="agy"] .quick-empty a { display: inline-flex; min-height: 44px; align-items: center; margin-top: 12px; color: var(--accent); }

/* Bounded previews: off-screen columns and long source terms cannot grow a row. */
body[data-design="agy"] .quick-comparison :is(.dense-cell-summary, .dense-cell-fallback) {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  height: 62px;
  min-height: 62px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
body[data-design="agy"] .quick-comparison .dense-val {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-height: 38px;
  width: 100%;
  font-size: var(--dense-val-size);
  font-weight: 600;
  color: var(--ink);
  line-height: 19px;
  font-variant-numeric: tabular-nums;
}
body[data-design="agy"] .quick-comparison td.is-emphasis .dense-val {
  color: #c0d4ff;
}
body[data-design="agy"] .quick-comparison .dense-note {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  font-size: var(--dense-note-size);
  color: #a7b3c8;
  padding-right: 16px;
  line-height: 18px;
  font-weight: 400;
}
body[data-design="agy"] .quick-comparison .dense-expand-icon {
  position: absolute;
  bottom: 7px;
  right: 0;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  pointer-events: none;
}
body[data-design="agy"] .quick-comparison .dense-cell-summary:hover .dense-expand-icon {
  stroke: var(--accent);
}

/* Capability signals use both shape and text, independent of color perception. */
body[data-design="agy"] .quick-comparison [data-support] {
  --support-bg: #222b3a;
  --support-ink: #b8c4d9;
  --support-ring: #66769122;
}
body[data-design="agy"] .quick-comparison [data-support="yes"] {
  --support-bg: #13bd7e;
  --support-ink: #fff;
  --support-ring: #13bd7e22;
}
body[data-design="agy"] .quick-comparison [data-support="no"] {
  --support-bg: #35232e;
  --support-ink: #e19aa7;
  --support-ring: #e19aa711;
}
body[data-design="agy"] .quick-comparison :is([data-support="conditional"], [data-support="paused"]) {
  --support-bg: #3a3020;
  --support-ink: #efc375;
  --support-ring: #efc37516;
}
body[data-design="agy"] .quick-comparison .compare-capability {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 62px;
}
body[data-design="agy"] .quick-comparison .support-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--support-bg);
  color: var(--support-ink);
  box-shadow: 0 0 0 3px var(--support-ring);
}
body[data-design="agy"] .quick-comparison .support-mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body[data-design="agy"] .quick-comparison .support-caption {
  color: #bdc8da;
  font-size: 12.5px;
  line-height: 18px;
  font-weight: 500;
}
body[data-design="agy"] .quick-comparison .compare-metric {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  width: 100%;
}
body[data-design="agy"] .quick-comparison .compare-metric .support-mark {
  width: 18px;
  height: 18px;
  box-shadow: none;
}
body[data-design="agy"] .quick-comparison .compare-metric .support-mark svg { width: 13px; height: 13px; }
body[data-design="agy"] .quick-comparison :is([data-feature-column="apple_pay"], [data-feature-column="google_pay"]) { text-align: center; }

/* Native top-layer disclosure works without JavaScript and never enters table flow.
   Older browsers retain a direct link to the matching variant's complete facts. */
body[data-design="agy"] .quick-comparison .dense-cell-summary,
body[data-design="agy"] .quick-comparison .compare-terms {
  display: none;
}
@supports selector(:popover-open) {
  body[data-design="agy"] .quick-comparison .dense-cell-summary { display: flex; }
  body[data-design="agy"] .quick-comparison .dense-cell-fallback { display: none; }
}
body[data-design="agy"] .quick-comparison .compare-terms:popover-open {
  display: block;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border: 1px solid #39455c;
  border-radius: 12px;
  background: #141824;
  color: var(--ink);
  box-shadow: 0 20px 80px #0009;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  font-weight: 400;
  text-align: left;
}
body[data-design="agy"] .quick-comparison .compare-terms::backdrop { background: #05081166; }
body[data-design="agy"] .quick-comparison .compare-terms-card {
  margin: 0 30px 8px 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.5;
}
body[data-design="agy"] .quick-comparison .compare-terms h2 {
  margin: 0 30px 20px 0;
  font-size: 20px;
  line-height: 1.3;
}
body[data-design="agy"] .quick-comparison .compare-terms-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  cursor: pointer;
}
body[data-design="agy"] .quick-comparison .compare-terms-close:hover { background: #252d3d; color: var(--ink); }
body[data-design="agy"] .quick-comparison .dense-full-val,
body[data-design="agy"] .quick-comparison .dense-full-note {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}
body[data-design="agy"] .quick-comparison .dense-full-val { font-weight: 600; }
body[data-design="agy"] .quick-comparison .dense-full-note { margin-top: 12px; color: #b9c3d5; }


@media (max-width: 1280px) {
  body[data-design="agy"] .quick-pan-hint { display: inline; }
}
@media (max-width: 640px) {
  body[data-design="agy"] .quick-heading { align-items: flex-start; }
  body[data-design="agy"] .quick-heading h2 { font-size: 22px; }
  body[data-design="agy"] .quick-heading .subtle-link { font-size: 13px; padding: 0; min-height: 32px; white-space: nowrap; }
  body[data-design="agy"] .quick-toolbar { gap: 8px; }
  body[data-design="agy"] .quick-toolbar select { min-width: 0; max-width: 190px; flex: 1; font-size: 16px; }
  body[data-design="agy"] .quick-card-col { width: 146px; }
  body[data-design="agy"] .quick-name .card-visual { display: none; }
  body[data-design="agy"] .quick-current-label { margin-left: 0; }
  body[data-design="agy"] .quick-table { min-width: 1180px; }
  body[data-design="agy"] .quick-table th, body[data-design="agy"] .quick-table td { padding-inline: 10px; }
  body[data-design="agy"] .quick-comparison .compare-terms:popover-open { inset: auto 0 12px; max-height: calc(100dvh - 24px); padding: 20px; }
}
