/* Rate teaser. Colours come from the plugin's colour settings (--rt-* variables). Mobile-first: rows are stacked cards, then a table from 641px. */
.rt-teaser{display:flex;flex-direction:column;gap:20px}
.rt-teaser [hidden]{display:none!important}

/* Hero card */
.rt-teaser .rt-teaser-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:24px 28px;border:1px solid var(--rt-line,#D9E0E5);border-radius:14px;background:#fff;box-shadow:0 2px 12px rgba(20,35,59,.08)}
.rt-teaser .rt-teaser-tenors{display:flex;flex-wrap:nowrap;gap:8px;align-self:stretch;margin:0 0 10px;padding-bottom:4px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.rt-teaser button.rt-teaser-chip{flex:0 0 auto;box-sizing:border-box;min-height:44px;margin:0;padding:0 16px;border:1px solid var(--rt-head,#14233B);border-radius:999px;background:#fff;color:var(--rt-head,#14233B)!important;font:inherit;font-size:15px;font-weight:600;line-height:1;cursor:pointer;white-space:nowrap;text-transform:none;box-shadow:none}
.rt-teaser button.rt-teaser-chip:hover{border-color:var(--rt-accent,#0B5D66)}
.rt-teaser button.rt-teaser-chip.is-on{background:var(--rt-head,#14233B);color:var(--rt-head-text,#fff)!important}
.rt-teaser button.rt-teaser-chip:focus-visible{outline:2px solid var(--rt-accent,#0B5D66);outline-offset:2px}
.rt-teaser-label{font-size:14px;color:#5B6B7A}
.rt-teaser-ratewrap{display:flex;align-items:baseline;gap:8px}
.rt-teaser-big{font-size:clamp(40px,7vw,56px);font-weight:700;line-height:1.05;color:var(--rt-accent,#0B5D66);font-variant-numeric:tabular-nums}
.rt-teaser-pa{font-size:clamp(16px,2.6vw,20px);font-weight:600;color:var(--rt-accent,#0B5D66)}
.rt-teaser-bank{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-bottom:12px}
.rt-teaser-minchip{display:inline-block;padding:3px 10px;border-radius:999px;background:var(--rt-zebra,#F6F8F9);border:1px solid var(--rt-line,#D9E0E5);color:#5B6B7A;font-size:13px;font-weight:600;line-height:1.4;white-space:nowrap}
.rt-teaser a.rt-teaser-btn,.rt-teaser a.rt-teaser-btn:link,.rt-teaser a.rt-teaser-btn:visited{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;box-sizing:border-box;border-radius:8px;background:var(--rt-head,#14233B);color:var(--rt-head-text,#fff)!important;font-weight:700;text-decoration:none!important;border:1px solid var(--rt-head,#14233B)}
.rt-teaser a.rt-teaser-btn:hover,.rt-teaser a.rt-teaser-btn:focus-visible{background:var(--rt-accent,#0B5D66);border-color:var(--rt-accent,#0B5D66);color:var(--rt-head-text,#fff)!important;text-decoration:none!important}
.rt-teaser a.rt-teaser-btn:focus-visible{outline:2px solid var(--rt-accent,#0B5D66);outline-offset:2px}

/* Table section: title, trust line, rows */
.rt-teaser-list{display:flex;flex-direction:column;gap:10px}
.rt-teaser .rt-teaser-tabletitle{margin:0}
.rt-teaser .rt-teaser-meta{margin:0;font-size:14px;color:#5B6B7A}
.rt-teaser .rt-teaser-meta a{color:var(--rt-accent,#0B5D66);text-decoration:underline}
.rt-teaser .rt-teaser-more{margin:0;font-weight:700}
.rt-teaser-scroll{overflow-x:auto}
.rt-teaser .rt-teaser-table{width:100%;margin:0;border:0;display:block}
.rt-teaser .rt-teaser-table thead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.rt-teaser .rt-teaser-table tbody{display:flex;flex-direction:column;gap:10px}
.rt-teaser .rt-teaser-table tbody tr{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto 16px;grid-template-areas:"name rate go" "tenor min go";align-items:center;gap:8px 12px;padding:14px 16px;border:1px solid var(--rt-line,#D9E0E5);border-radius:12px;background:#fff}
.rt-teaser .rt-teaser-table tbody td{display:block;padding:0;border:0;background:transparent!important;font-variant-numeric:tabular-nums}
.rt-teaser .rt-teaser-table td.rt-teaser-name{grid-area:name;color:var(--rt-head,#14233B);font-weight:700}
.rt-teaser .rt-teaser-table td.rt-teaser-rate{grid-area:rate;justify-self:end;font-weight:700;font-size:1.1em;color:var(--rt-accent,#0B5D66);white-space:nowrap}
.rt-teaser .rt-teaser-table td.rt-teaser-tenor{grid-area:tenor}
.rt-teaser .rt-teaser-table td.rt-teaser-min{grid-area:min;justify-self:end;font-size:14px;color:#5B6B7A;white-space:nowrap}
.rt-teaser .rt-teaser-table td.rt-teaser-min::before{content:"Min. "}
.rt-teaser .rt-teaser-table td.rt-teaser-go{grid-area:go;justify-self:end;color:var(--rt-accent,#0B5D66);font-weight:700}
.rt-teaser .rt-teaser-go-t{display:none}

/* Bank name: bold navy, underline on hover. The link stretches over the whole row, so the row is one big tap target. */
.rt-teaser .rt-teaser-table td.rt-teaser-name a,.rt-teaser .rt-teaser-table td.rt-teaser-name a:link,.rt-teaser .rt-teaser-table td.rt-teaser-name a:visited,.rt-teaser .rt-teaser-table td.rt-teaser-name a:focus{color:var(--rt-head,#14233B)!important;font-weight:700!important;text-decoration:none!important;border-bottom:0!important;box-shadow:none!important}
.rt-teaser .rt-teaser-table td.rt-teaser-name a:hover{color:var(--rt-head,#14233B)!important;text-decoration:underline!important;text-underline-offset:3px}
.rt-teaser .rt-teaser-name a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.rt-teaser .rt-teaser-name a:focus-visible{outline:none}
.rt-teaser .rt-teaser-name a:focus-visible::after{outline:2px solid var(--rt-accent,#0B5D66);outline-offset:2px}
.rt-teaser .rt-teaser-table tbody tr.rt-teaser-has-link:hover{border-color:var(--rt-accent,#0B5D66);background:var(--rt-accent-bg,#E6F0F1)}
.rt-teaser .rt-teaser-has-link:hover .rt-teaser-go-a{transform:translateX(3px)}
.rt-teaser-go-a{display:inline-block;transition:transform .15s ease}

/* "Highest" badge: the one place amber is used in the table. Navy text on amber. */
.rt-teaser .rt-teaser-badge{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;background:var(--rt-amber,#F2A33A);color:var(--rt-head,#14233B);font-size:12px;font-weight:700;line-height:1.5;text-transform:none;vertical-align:middle;white-space:nowrap}

/* Tenor pill: neutral on purpose, so colour never suggests "better". */
.rt-teaser .rt-teaser-pill{display:inline-block;padding:3px 10px;border:1px solid var(--rt-line,#D9E0E5);border-radius:999px;background:#fff;color:var(--rt-head,#14233B);font-size:13px;font-weight:600;line-height:1.4;white-space:nowrap}

/* Quick links under the hero text (plain HTML in the page, not part of the shortcode). */
.rt-quicklinks{display:flex;flex-wrap:wrap;gap:8px 20px;margin:16px 0 0;padding:0;list-style:none}
.rt-quicklinks a{display:inline-flex;align-items:center;min-height:44px;color:var(--rt-accent,#0B5D66);font-weight:600;text-decoration:none}
.rt-quicklinks a::after{content:"\2192";margin-left:6px}
.rt-quicklinks a:hover{text-decoration:underline;text-underline-offset:3px}

/* 641px and up: a real table with a light header row. */
@media (min-width:641px){
.rt-teaser-scroll{border:1px solid var(--rt-line,#D9E0E5);border-radius:12px;background:#fff}
.rt-teaser .rt-teaser-table{display:table;border-collapse:collapse}
.rt-teaser .rt-teaser-table thead{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal;display:table-header-group}
.rt-teaser .rt-teaser-table tbody{display:table-row-group}
.rt-teaser .rt-teaser-table tr{display:table-row}
.rt-teaser .rt-teaser-table th{padding:10px 16px;text-align:left;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;background:var(--rt-zebra,#F6F8F9);color:#5B6B7A;border:0;border-bottom:1px solid var(--rt-line,#D9E0E5)}
.rt-teaser .rt-teaser-table tbody tr{display:table-row;padding:0;border:0;border-radius:0;background:transparent}
.rt-teaser .rt-teaser-table tbody td{display:table-cell;padding:12px 16px;border-top:1px solid var(--rt-line,#D9E0E5);vertical-align:middle;justify-self:auto}
.rt-teaser .rt-teaser-table tbody tr:first-child td{border-top:0}
.rt-teaser .rt-teaser-table tbody tr:nth-child(even) td{background:var(--rt-zebra,#F6F8F9)!important}
.rt-teaser .rt-teaser-table tbody tr.rt-teaser-has-link:hover td{background:var(--rt-accent-bg,#E6F0F1)!important}
.rt-teaser .rt-teaser-table tbody tr.rt-teaser-has-link:hover{border-color:transparent;background:transparent}
.rt-teaser .rt-teaser-table td.rt-teaser-min{font-size:inherit;color:inherit}
.rt-teaser .rt-teaser-table td.rt-teaser-min::before{content:none}
.rt-teaser .rt-teaser-table td.rt-teaser-go{text-align:right;white-space:nowrap;font-size:14px}
.rt-teaser .rt-teaser-go-t{display:inline}
.rt-teaser .rt-teaser-name a::after{border-radius:0}
.rt-teaser .rt-teaser-table{min-width:520px}
}
