/* Small, scoped presentation enhancement; original themes and comparison styles remain untouched. */
a.kp-ux-nav-pressed {
  outline: 2px solid currentColor !important;
  outline-offset: 3px;
  filter: brightness(.93);
}
#kp-ux-nav-notice[hidden] { display: none !important; }
#kp-ux-nav-notice {
  position: fixed;
  z-index: 999999;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px));
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: min(390px, calc(100vw - 28px));
  padding: 14px 18px;
  border: 1px solid #82ab93;
  border-radius: 12px;
  background: #19382d;
  color: #fff;
  box-shadow: 0 8px 26px rgb(0 0 0 / 20%);
  font: 600 0.9375rem/1.5 system-ui, sans-serif;
}
#kp-ux-nav-notice .kp-ux-spinner {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #adceb6;
  border-top-color: transparent;
  animation: kp-ux-spin .8s linear infinite;
}
#kp-ux-nav-notice .kp-ux-retry { color: #d7ffd3; text-decoration: underline; font: inherit; }
@keyframes kp-ux-spin { to { transform: rotate(360deg); } }
.kp-ux-scroll-sentinel { display: block; width: 1px; height: 1px; pointer-events: none; }
#kp-ranking .kp-bank-pagination .kp-ux-scroll-note {
  flex-basis: 100%;
  width: 100%;
  font-size: calc(0.8125rem * var(--kp-text-scale, 1));
  font-weight: 400;
  color: var(--muted, #52665a);
  margin: 8px 0 0;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) { #kp-ux-nav-notice .kp-ux-spinner { animation: none; } }

/* 1.3.0: restrained editorial clarifications; honors the active light/dark theme. */
.kp-vux-editorial-note{margin:1.35rem 0;padding:.85rem 1rem;border-inline-start:3px solid var(--kp-accent,#447c70);background:rgba(110,125,124,.055);color:inherit;border-radius:0 .45rem .45rem 0;}
.kp-vux-editorial-note>strong{display:block;font-weight:700;margin-bottom:.3rem;}
.kp-vux-editorial-note p{margin:.5rem 0;line-height:1.55;}
.kp-vux-editorial-note .kp-vux-editorial-sources{font-size:.875em;opacity:.88;}
.kp-vux-editorial-note h2{margin:.1rem 0 .7rem;font-size:clamp(1.05rem,2.1vw,1.3rem);line-height:1.35;}
.kp-vux-editorial-note a{text-decoration:underline;text-underline-offset:.14em;}
.kp-vux-editorial-note a:focus-visible{outline:2px solid currentColor;outline-offset:3px;}
.kp-vux-editorial-note .kp-vux-table-scroll{overflow-x:auto;max-width:100%;} 
.kp-vux-editorial-note table{border-collapse:collapse;width:100%;font-size:.95em;}
.kp-vux-editorial-note th,.kp-vux-editorial-note td{padding:.35rem .5rem;border-block-end:1px solid rgba(125,125,125,.3);text-align:start;}
.kp-vux-editorial-note caption{font-size:.85em;text-align:start;padding:.3rem 0;}


/* 1.3.1: robust left alignment for bank logos and offer names across viewports. */
.kp-landing .kp-product-identity__name,
.kp-landing .kp-name-cell > .kp-product-identity > .kp-product-identity__name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  justify-items: start;
  gap: .32rem;
  width: 100%;
  min-width: 0;
  text-align: left;
}
.kp-landing .kp-product-identity__name > .kp-bank-logo,
.kp-landing .kp-name-cell > img.kp-bank-logo,
.kp-landing .kp-table-wrap .kp-table .kp-product-row > .kp-name-cell > img.kp-bank-logo {
  display: block;
  align-self: flex-start;
  justify-self: start;
  margin: 0;
  width: auto;
  max-width: min(172px, 100%);
  height: auto;
  max-height: 40px;
  object-fit: contain;
  object-position: left center !important;
}
.kp-landing .kp-product-identity__name > strong,
.kp-landing .kp-product-identity__name > small {
  display: block;
  width: 100%;
  margin: 0;
  text-align: left;
}
[data-kp-view="dark"] body.kp-landing .kp-product-identity__name > .kp-bank-logo,
[data-kp-view="dark"] body.kp-landing .kp-name-cell > img.kp-bank-logo {
  background: #c7dccb;
  min-width: 96px;
  height: 38px;
  padding: 3px 9px;
  box-sizing: border-box;
  border: 1px solid #aebfae;
  border-radius: 8px;
}
@media (max-width: 900px) {
  .kp-landing .kp-product-identity__name > .kp-bank-logo,
  .kp-landing .kp-name-cell > img.kp-bank-logo,
  .kp-landing .kp-table-wrap .kp-table .kp-product-row > .kp-name-cell > img.kp-bank-logo {
    max-width: min(152px, 100%);
    max-height: 36px;
  }
}
@media (max-width: 600px) {
  .kp-landing .kp-product-identity__name > .kp-bank-logo,
  .kp-landing .kp-name-cell > img.kp-bank-logo,
  .kp-landing .kp-table-wrap .kp-table .kp-product-row > .kp-name-cell > img.kp-bank-logo {
    max-width: min(136px, 100%);
    max-height: 34px;
  }
}


/* 1.4.0: restore original first-column composition; only keep bank logos left aligned. */
.kp-landing .kp-product-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .55rem;
  min-width: 0;
}
.kp-landing .kp-product-identity__name,
.kp-landing .kp-name-cell > .kp-product-identity > .kp-product-identity__name {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: left;
}
.kp-landing .kp-product-identity__name > .kp-bank-logo,
.kp-landing .kp-name-cell > img.kp-bank-logo,
.kp-landing .kp-table-wrap .kp-table .kp-product-row > .kp-name-cell > img.kp-bank-logo {
  display: block;
  margin: 0 0 .32rem 0;
  width: auto;
  max-width: min(172px, 100%);
  height: auto;
  max-height: 40px;
  object-fit: contain;
  object-position: left center !important;
}
.kp-landing .kp-product-identity__name > strong,
.kp-landing .kp-product-identity__name > small {
  display: block;
  width: 100%;
  margin: 0;
  text-align: left;
}
.kp-landing .kp-table .kp-name-cell .kp-product-identity > .kp-score-circle {
  margin: 0;
}
[data-kp-view="dark"] body.kp-landing .kp-product-identity__name > .kp-bank-logo,
[data-kp-view="dark"] body.kp-landing .kp-name-cell > img.kp-bank-logo {
  background: #c7dccb;
  min-width: 96px;
  height: 38px;
  padding: 3px 9px;
  box-sizing: border-box;
  border: 1px solid #aebfae;
  border-radius: 8px;
}
@media (max-width: 900px) {
  .kp-landing .kp-product-identity__name > .kp-bank-logo,
  .kp-landing .kp-name-cell > img.kp-bank-logo,
  .kp-landing .kp-table-wrap .kp-table .kp-product-row > .kp-name-cell > img.kp-bank-logo {
    max-width: min(152px, 100%);
    max-height: 36px;
  }
}
@media (max-width: 600px) {
  .kp-landing .kp-product-identity__name > .kp-bank-logo,
  .kp-landing .kp-name-cell > img.kp-bank-logo,
  .kp-landing .kp-table-wrap .kp-table .kp-product-row > .kp-name-cell > img.kp-bank-logo {
    max-width: min(136px, 100%);
    max-height: 34px;
  }
}

/* 1.5.0: The senior guide wraps some sections in top-level <details>.
 * Those wrappers lack the .section max-width and previously stretched to viewport edges.
 * Match the existing 1,160px content container, without altering the inner content. */
body.kp-landing main.kp-retirement > details.kp-senior-detail,
body.kp-landing main.kp-retirement > section.kp-ux-section {
  display: block;
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 1160px;
  min-width: 0;
  margin-inline: auto;
}
body.kp-landing main.kp-retirement > details.kp-senior-detail > summary {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  overflow-wrap: anywhere;
}
body.kp-landing main.kp-retirement > details.kp-senior-detail > .section {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
body.kp-landing main.kp-retirement .kp-ux-details {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
@media (max-width: 600px) {
  body.kp-landing main.kp-retirement > details.kp-senior-detail,
  body.kp-landing main.kp-retirement > section.kp-ux-section {
    width: calc(100% - 24px);
  }
  body.kp-landing main.kp-retirement > details.kp-senior-detail > summary {
    padding-inline: 14px;
  }
}

/* The image's actual colored pixels, not its transparent/white interior
 * whitespace, should meet the left edge of the product title.  The JS trim
 * is bounded and fails open; this CSS removes a residual dark-mode inset. */
body.kp-landing #kp-ranking .kp-name-cell img.kp-bank-logo {
  display: block;
  margin-inline: 0;
  padding-inline-start: 0 !important;
  border-inline-start-width: 0;
  object-position: left center !important;
}

body.kp-landing #kp-ranking .kp-verified-price-source { display:block; margin-top:.4rem; font-size:.8rem; opacity:.87; }
body.kp-landing #kp-ranking .kp-verified-price-source a { text-decoration:underline; text-underline-offset:.12em; }


/* 1.6.0: harmonize all bank logos after runtime trimming. */
body.kp-landing #kp-ranking .kp-name-cell img.kp-bank-logo,
body.kp-landing #kp-ranking .kp-product-identity__name > img.kp-bank-logo {
  display: block;
  margin: 0 0 .32rem 0;
  width: auto !important;
  height: 34px;
  max-width: min(188px, 100%);
  max-height: none;
  object-fit: contain;
  object-position: left center !important;
}
[data-kp-view="dark"] body.kp-landing #kp-ranking .kp-name-cell img.kp-bank-logo,
[data-kp-view="dark"] body.kp-landing #kp-ranking .kp-product-identity__name > img.kp-bank-logo {
  background: #c7dccb;
  padding: 3px 8px;
  border: 1px solid #aebfae;
  border-radius: 8px;
  box-sizing: content-box;
}
@media (max-width: 900px) {
  body.kp-landing #kp-ranking .kp-name-cell img.kp-bank-logo,
  body.kp-landing #kp-ranking .kp-product-identity__name > img.kp-bank-logo {
    height: 32px;
    max-width: min(172px, 100%);
  }
}
@media (max-width: 600px) {
  body.kp-landing #kp-ranking .kp-name-cell img.kp-bank-logo,
  body.kp-landing #kp-ranking .kp-product-identity__name > img.kp-bank-logo {
    height: 30px;
    max-width: min(156px, 100%);
  }
}
