/* Banky, bonus a rozšířené řádky výsledků (část B). Barvy a rozměry dědí z design.css / theme.json. */

/* ---------- Žlutý pruh s bonusem ---------- */
.bonus-banner {
  display: flex; align-items: center; gap: 22px;
  margin: 0 0 26px; padding: 22px 28px;
  background: var(--gold); color: var(--navy);
  border-radius: var(--sb-radius-panel, 18px);
}
.bonus-banner-icon { width: 54px; height: 54px; flex-shrink: 0; stroke-width: 1.4; }
.bonus-banner-copy { flex: 1; min-width: 0; padding-left: 22px; border-left: 1px solid rgba(7, 22, 55, .28); }
.bonus-banner-copy strong { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.2; font-weight: 400; }
.bonus-banner-copy p { margin: 5px 0 0; font-size: 14px; line-height: 1.5; }
.bonus-banner-link { flex-shrink: 0; font-weight: 500; font-size: 12px; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; padding: 10px 4px; }
.bonus-banner-link:hover { text-decoration-thickness: 2px; }
.bonus-banner-compact { margin: 18px 0 0; padding: 16px 22px; }
.bonus-banner-compact .bonus-banner-icon { width: 38px; height: 38px; }
.bonus-banner-compact .bonus-banner-copy strong { font-size: 22px; }

.bonus-tag {
  display: inline-block; margin-top: 6px; padding: 3px 9px;
  font-size: 10px; line-height: 1.5; font-weight: 600; letter-spacing: .01em;
  color: #4f3b06; background: #fdecb0; border: 1px solid #ecc95a; border-radius: 999px;
}
.focus-tag {
  display: inline-block; margin: 6px 0 0 6px; padding: 3px 9px;
  font-size: 10px; line-height: 1.5; font-weight: 600; color: #fff; background: var(--navy); border-radius: 999px;
}
.offer-row.is-focused { box-shadow: inset 4px 0 0 var(--gold); background: #fffdf5; }

/* ---------- Odkazy na detail banky v řádcích ---------- */
.bank-name-link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.bank-name-link:hover { border-bottom-color: currentColor; }
.bank-logo-link { display: inline-flex; flex-shrink: 0; }
.bank-detail-link, .bank-link-inline, .bank-card-more { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 12px; }
.bank-detail-link .icon, .bank-link-inline .icon, .bank-card-more .icon { width: 14px; height: 14px; }
.product-institution-link { margin: 14px 0 0; font-size: 12px; }
.product-institution-link a { display: inline-flex; gap: 7px; align-items: center; font-weight: 600; }
.product-institution-link .icon { width: 14px; height: 14px; }
.directory-all-link { margin: 22px 0 0; font-size: 13px; }
.directory-all-link a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.directory-all-link .icon { width: 16px; height: 16px; }

/* ---------- Detail nabídky v řádku výsledků ---------- */
.offer-details > summary { color: var(--navy); font-weight: 600; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; width: fit-content; min-height: 44px; align-items: center; padding-bottom: 0; margin-bottom: 4px; }
.offer-details > summary > .icon { height: 15px; width: 15px; }
.offer-conditions h4 { font-family: var(--sans); font-size: 12px; font-weight: 600; margin: 16px 0 8px; letter-spacing: 0; }
.offer-model { background: #e8f0f8; border-radius: 6px; padding: 14px 16px; margin: 0 0 6px; }
.offer-model p { margin: 0 0 10px; }
.offer-model dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 20px; margin: 0; }
.offer-model dl > div { min-width: 0; }
.offer-model dt { font-size: 10px; color: var(--muted); }
.offer-model dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.offer-bonus { margin: 14px 0 0; padding: 11px 14px; background: #fff3cc; border-radius: 6px; color: #4a3708; }
.offer-bonus a { font-weight: 600; }
.offer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; }
.offer-links a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 12px; }
.offer-links .icon { width: 14px; height: 14px; }

/* ---------- Řádky bank, u kterých splátku počítáme individuálně (stejný vzhled jako ostatní řádky) ---------- */
.variant-rate { font-size: 17px; }
.variant-rate small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.variant-payment { font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.4; white-space: normal; }
.variant-why { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.variant-why p { margin: 0; font-size: 12px; line-height: 1.6; flex: 1 1 360px; min-width: 0; }
.variant-fit { display: inline-block; padding: 2px 8px; margin-right: 4px; font-size: 10px; font-weight: 600; background: #edf0f2; color: #3b4a58; border-radius: 999px; }
.variant-fit.is-match { background: #e0efdd; color: #274d30; }
.variant-fit.is-no { background: #f7e4e1; color: #7a2b23; }
.variant-action { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.variant-action .icon { width: 14px; height: 14px; }

/* ---------- Detail a přehled bank ---------- */
.bank-page { padding-block: 24px 64px; }
.bank-intro .breadcrumbs { margin-top: 0; flex-wrap: wrap; }
.bank-intro-card { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; margin-top: 22px; padding: 34px; background: #fff; border: 1px solid #dde2e5; border-radius: var(--sb-radius-panel, 18px); }
.bank-intro-logo { display: grid; place-items: center; min-height: 110px; background: var(--cream); border-radius: 12px; padding: 18px; }
.bank-logo-large { width: 100%; max-width: 180px; height: 72px; }
.bank-logo-large img { max-height: 72px; }
.bank-intro-copy h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; margin: 8px 0 12px; overflow-wrap: anywhere; }
.bank-since { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.bank-summary { margin: 0; font-size: 16px; line-height: 1.6; max-width: 720px; }
.bank-section { margin-top: 44px; }
.bank-section > h2 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 18px; }
.bank-subtitle { font-family: var(--sans); font-size: 16px; font-weight: 600; margin: 30px 0 12px; letter-spacing: 0; }
.bank-note { padding: 14px 18px; background: #f0eadf; border: 1px solid #e5d8be; border-radius: 6px; font-size: 13px; line-height: 1.6; margin: 0 0 16px; }
.bank-table-wrap { overflow-x: auto; border: 1px solid #d6dce0; border-radius: 8px; background: #fff; max-width: 100%; }
.bank-rate-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.bank-rate-table caption { text-align: left; padding: 14px 18px; font-size: 12px; color: var(--muted); caption-side: bottom; border-top: 1px solid #e1e5e7; line-height: 1.5; }
.bank-rate-table th, .bank-rate-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid #e8ebed; }
.bank-rate-table thead th { background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; }
.bank-rate-table tbody th { font-weight: 600; white-space: nowrap; }
.bank-rate-table td { font-weight: 600; font-variant-numeric: tabular-nums; }
.bank-conditions { margin: 16px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.7; color: #3a4654; }
.bank-products { list-style: none; margin: 0; padding: 0; border: 1px solid #d6dce0; border-radius: 8px; background: #fff; }
.bank-product { padding: 18px 20px; }
.bank-product + .bank-product { border-top: 1px solid #e1e5e7; }
.bank-product-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.bank-product-head strong { font-size: 15px; line-height: 1.5; }
.bank-product-rate { font-weight: 700; white-space: nowrap; }
.bank-product-facts { margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.bank-product-conditions { margin-top: 10px; font-size: 12px; }
.bank-product-conditions > summary { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-height: 36px; text-decoration: underline; text-underline-offset: 3px; }
.bank-product-conditions .icon { width: 14px; height: 14px; }
.bank-product-conditions ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.7; color: #3a4654; }
.bank-source { margin: 16px 0 0; font-size: 12px; color: var(--muted); }
.bank-source a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.bank-source .icon { width: 14px; height: 14px; }

.bank-calc { padding: 30px; background: #f1ebdf; border-radius: var(--sb-radius-panel, 18px); }
.bank-calc-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; margin-top: 16px; }
.bank-calc-form label { font-size: 13px; }
.bank-calc-form .button { grid-column: 1 / -1; justify-self: start; }
.bank-calc-links { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin: 22px 0 0; }
.bank-link-inline { font-size: 14px; }

.bank-about { max-width: 820px; }
.bank-about h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 36px 0 12px; }
.bank-about p { line-height: 1.7; }
.bank-about .wp-block-details { border-bottom: 1px solid #dde2e5; padding: 4px 0; }
.bank-about .wp-block-details summary { cursor: pointer; font-weight: 600; padding: 12px 0; min-height: 44px; }
.bank-all-link { margin-top: 36px; font-size: 14px; }
.bank-editor-note { padding: 14px 18px; border: 1px dashed #9aa6b3; border-radius: 6px; font-size: 13px; color: var(--muted); }

.bank-archive-head h1 { font-size: clamp(34px, 5vw, 56px); margin: 10px 0 14px; max-width: 900px; line-height: 1.1; }
.bank-archive-head p { max-width: 760px; }
.bank-directory-count { margin: 6px 0 24px; font-size: 13px; color: var(--muted); }
.bank-group { margin-top: 32px; }
.bank-group > h2 { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: 0; margin: 0 0 14px; }
.bank-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bank-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; background: #fff; border: 1px solid #dde2e5; border-radius: var(--sb-radius-panel, 18px); min-width: 0; }
.bank-card-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; min-width: 0; width: 100%; }
.bank-card-link .bank-logo { width: 96px; height: 44px; }
.bank-card-name { font-weight: 600; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.bank-card p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); flex: 1; }
.bank-card .bonus-tag { margin-top: 0; }
.bank-card-more { margin-top: auto; min-height: 44px; }

@media (max-width: 1100px) {
  .bank-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bank-calc-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .bank-intro-card { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .bank-intro-logo { justify-self: start; width: 100%; max-width: 260px; }
}
@media (max-width: 640px) {
  .bonus-banner { flex-wrap: wrap; gap: 12px 16px; padding: 18px; }
  .bonus-banner-icon { width: 40px; height: 40px; }
  .bonus-banner-copy { flex-basis: calc(100% - 60px); padding-left: 0; border-left: 0; }
  .bonus-banner-copy strong { font-size: 24px; }
  .bonus-banner-copy p { font-size: 13px; }
  .bonus-banner-link { margin-left: 56px; font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
  .bonus-banner-compact .bonus-banner-link { margin-left: 0; }
  .variant-payment { text-align: right; }
  .variant-payment span { display: block; font-size: 13px; }
  .variant-rate:before { content: 'Zveřejněná sazba'; }
  .variant-row .offer-action { grid-column: 1 / 3; }
  .variant-why p { flex-basis: 100%; font-size: 11px; }
  .offer-model dl { grid-template-columns: 1fr; }
  .bank-page { padding-block: 14px 44px; }
  .bank-intro-card { padding: 20px; }
  .bank-cards { grid-template-columns: 1fr; }
  .bank-calc { padding: 20px; }
  .bank-calc-form { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bank-calc-form .button { width: 100%; justify-self: stretch; }
  .bank-calc-links { flex-direction: column; align-items: stretch; }
  .bank-calc-links .button { width: 100%; }
  .bank-rate-table th, .bank-rate-table td { padding: 11px 12px; }
  .bank-product-head { flex-direction: column; gap: 4px; }
}

.bank-name-link { text-decoration: underline; text-decoration-color: rgba(7, 22, 55, .25); text-underline-offset: 3px; border-bottom: 0; }
.bank-name-link:hover { text-decoration-color: currentColor; }

.offer-payment .over-budget { display: block; margin-top: 5px; padding: 5px 8px; font-size: 10px; line-height: 1.45; font-weight: 400; letter-spacing: 0; white-space: normal; color: #73591c; background: #fff3d3; border-radius: 4px; }

/* ---------- Dotykové cíle na mobilu: alespoň 44 × 44 px ---------- */
@media (max-width: 640px) {
  .edit-link,
  .offer-bank strong .bank-name-link,
  .bank-detail-link,
  .offer-links a,
  .product-institution-link a,
  .source-card-top .bank-name-link,
  .bank-link-inline,
  .bank-card-more,
  .bank-all-link a,
  .directory-all-link a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .product-conditions > summary,
  .bank-product-conditions > summary,
  .source-products > summary,
  .offer-details > summary { min-height: 44px; display: flex; align-items: center; }
  .sort-label select { min-height: 44px; }
  .insurance-filter { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
  .insurance-filter input[type=checkbox] { width: 24px; height: 24px; margin: 0; }
  .insurance-filter span { padding-block: 6px; }
}
