/* ======================================================
   BANK FUND PAGE (bfp-*) — programmatic SEO landing
   PorovnejFondy.cz · pf-* design system
====================================================== */

.bfp {
  background: linear-gradient(180deg, #f8f3ef 0%, #fcf8f4 100%);
  color: #032246;
  min-height: 100vh;
}
.bfp-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.bfp-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.bfp-topbar-spacer { height: 8em; background: #032246; }
@media (max-width: 880px) { .bfp-topbar-spacer { height: 6em; } }

/* ===== HERO ===== */
.bfp-hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(184,134,42,0.16), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 30%, rgba(228,198,190,0.18), transparent 65%),
    linear-gradient(135deg, #021833 0%, #032246 50%, #0a3464 100%);
  color: #f5ecea;
  padding: 50px 0 60px;
  overflow: hidden;
}

.bfp-breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 12.5px;
  margin: 0 0 26px;
  color: rgba(228,198,190,0.6);
}
.bfp-breadcrumb a {
  color: rgba(228,198,190,0.85);
  text-decoration: none;
  transition: color .15s ease;
}
.bfp-breadcrumb a:hover { color: #b8862a; }
.bfp-breadcrumb .current { color: #f5ecea; font-weight: 600; }

.bfp-hero-eyebrow {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin: 0 0 20px;
}
.bfp-bank-badge {
  padding: 5px 14px;
  background: rgba(43,86,135,0.32);
  border: 1px solid rgba(74,126,184,0.45);
  border-radius: 2px;
  font-family: "Big Shoulders Text", sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #e4c6be;
}
.bfp-cat {
  padding: 5px 12px;
  background: rgba(245,236,234,0.08);
  border: 1px solid rgba(228,198,190,0.22);
  border-radius: 2px;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 12px; color: rgba(228,198,190,0.85);
}

.bfp-hero h1 {
  font-family: Caudex, serif;
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 400; line-height: 1.08;
  margin: 0 0 22px; color: #f5ecea;
  letter-spacing: -0.012em;
  max-width: 900px;
}
.bfp-hero h1 em { font-style: italic; color: #e4c6be; }
.bfp-hero h1 .gold { color: #d4a040; }

.bfp-hero-lead {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 17px; line-height: 1.6;
  color: rgba(245,236,234,0.88);
  margin: 0 0 32px; max-width: 720px;
}
.bfp-hero-lead strong { color: #e4c6be; font-weight: 600; }

.bfp-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; max-width: 800px;
}
@media (max-width: 720px) { .bfp-hero-stats { grid-template-columns: repeat(2, 1fr); } }
.bfp-hero-stat {
  padding: 16px 18px;
  background: rgba(245,236,234,0.06);
  border: 1px solid rgba(228,198,190,0.18);
  border-radius: 2px;
  backdrop-filter: blur(10px);
}
.bfp-hero-stat-label {
  font-family: "Big Shoulders Text", sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(228,198,190,0.7);
  margin: 0 0 6px;
}
.bfp-hero-stat-num {
  font-family: Caudex, serif;
  font-size: 24px; font-weight: 400;
  color: #f5ecea; line-height: 1.05;
}
.bfp-hero-stat-num.good { color: #d4a040; }
.bfp-hero-stat-num.bad { color: #ff8888; }

/* ===== SECTIONS ===== */
.bfp-section { padding: 50px 0; }
.bfp-section-pad { padding: 60px 0 50px; }
.bfp-section.alt { background: #fff; border-top: 1px solid rgba(144,108,99,0.12); border-bottom: 1px solid rgba(144,108,99,0.12); }

.bfp-section-eyebrow {
  font-family: "Big Shoulders Text", sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #b8862a; margin: 0 0 10px;
}
.bfp-section-title {
  font-family: Caudex, serif;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 400; line-height: 1.15;
  color: #032246; margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.bfp-section-title em { font-style: italic; color: #906c63; }
.bfp-section-lead {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 16px; line-height: 1.65;
  color: #3a2c28;
  margin: 0 0 32px; max-width: 760px;
}

/* ===== FUND CARD ===== */
.bfp-fund-card {
  background: #fff;
  border: 1px solid rgba(144,108,99,0.18);
  border-radius: 2px;
  padding: 32px 34px 28px;
  box-shadow: 0 18px 50px rgba(3,34,70,0.06);
}
.bfp-fund-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap;
  margin: 0 0 22px;
}
.bfp-fund-card-name {
  font-family: Caudex, serif;
  font-size: 24px; font-weight: 400;
  color: #032246; margin: 0 0 4px;
}
.bfp-fund-card-meta {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 13.5px; color: #7d6056;
}
.bfp-fund-card-meta code {
  background: #faf5f1;
  padding: 2px 7px;
  border-radius: 2px;
  font-family: Consolas, monospace;
  font-size: 12px;
  color: #b8862a;
}
.bfp-fund-card-tag {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 2px;
  font-family: "Big Shoulders Text", sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.bfp-fund-card-tag.avoid { background: #b03a3a; color: #fff; }
.bfp-fund-card-tag.good { background: #b8862a; color: #fff; }

.bfp-fund-card-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 22px;
  background: #faf5f1;
  border-radius: 2px;
  margin: 0 0 22px;
}
@media (max-width: 720px) { .bfp-fund-card-grid { grid-template-columns: repeat(2, 1fr); } }
.bfp-fund-card-stat-label {
  font-family: "Big Shoulders Text", sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #906c63; margin: 0 0 4px;
}
.bfp-fund-card-stat-value {
  font-family: Caudex, serif;
  font-size: 18px; font-weight: 400;
  color: #032246; line-height: 1.1;
}
.bfp-fund-card-stat-value.bad { color: #b03a3a; }

.bfp-narrative {
  margin: 18px 0;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 15px; line-height: 1.65;
  color: #3a2c28;
}

.bfp-weakness {
  margin: 18px 0 0;
  padding: 18px 22px;
  background: rgba(176,58,58,0.06);
  border-left: 4px solid #b03a3a;
  border-radius: 0 2px 2px 0;
}
.bfp-weakness-tag {
  font-family: "Big Shoulders Text", sans-serif;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #b03a3a; margin: 0 0 6px;
}
.bfp-weakness p:last-child {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 14.5px; line-height: 1.6;
  color: #3a2c28; margin: 0;
}

/* ===== PERIOD SWITCHER ===== */
.bfp-period {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 0 0 24px;
}
.bfp-period-btn {
  cursor: pointer;
  background: #fff;
  border: 1px solid rgba(144,108,99,0.22);
  color: #7d6056;
  padding: 9px 18px;
  border-radius: 2px;
  font-family: "Big Shoulders Text", sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: all .2s ease;
}
.bfp-period-btn:hover { border-color: #b8862a; color: #032246; }
.bfp-period-btn.active {
  background: #032246; border-color: #032246; color: #f5ecea;
  box-shadow: 0 6px 18px rgba(3,34,70,0.22);
}

/* ===== CHART ===== */
.bfp-chart-wrap {
  background: #fff;
  border-radius: 2px;
  padding: 28px 28px 24px;
  border: 1px solid rgba(144,108,99,0.14);
  box-shadow: 0 18px 50px rgba(3,34,70,0.06);
  height: 460px;
}
#bfp-chart { max-width: 100%; height: 400px !important; }
@media (max-width: 720px) {
  .bfp-chart-wrap { height: 360px; padding: 18px; }
  #bfp-chart { height: 300px !important; }
}

/* ===== ALTERNATIVES TABLE ===== */
.bfp-table-wrap {
  background: #fff;
  border-radius: 2px;
  padding: 4px;
  border: 1px solid rgba(144,108,99,0.14);
  box-shadow: 0 14px 36px rgba(3,34,70,0.05);
  overflow-x: auto;
}
.bfp-table {
  width: 100%; border-collapse: collapse;
  font-family: "Source Sans Pro", sans-serif;
  min-width: 720px;
}
.bfp-table thead th {
  text-align: left;
  padding: 14px 16px;
  background: #faf5f1;
  font-family: "Big Shoulders Text", sans-serif;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #906c63;
  border-bottom: 1px solid rgba(144,108,99,0.18);
}
.bfp-table tbody td {
  padding: 14px 16px;
  font-size: 13.5px;
  color: #3a2c28;
  border-bottom: 1px solid rgba(144,108,99,0.1);
}
.bfp-row-current { background: rgba(176,58,58,0.05); }
.bfp-row-current td { font-weight: 600; }
.bfp-table-name {
  font-family: Caudex, serif;
  font-size: 14px; color: #032246;
}
.bfp-table-isin {
  font-family: Consolas, monospace;
  font-size: 10.5px; color: #906c63;
  margin-top: 2px;
}
.bfp-table-tag {
  display: inline-block;
  padding: 3px 8px;
  font-family: "Big Shoulders Text", sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: 2px;
}
.bfp-table-tag.top { background: #1f7a4d; color: #fff; }
.bfp-table-tag.good { background: #b8862a; color: #fff; }
.bfp-table-tag.avoid { background: #b03a3a; color: #fff; }
.bfp-perf {
  font-family: Caudex, serif;
  font-size: 14px; font-weight: 400;
}
.bfp-perf.good { color: #1f7a4d; }
.bfp-perf.bad { color: #b03a3a; }
.bfp-perf.mid { color: #b8862a; }

/* ===== LOSS CALCULATOR ===== */
.bfp-loss {
  background: linear-gradient(135deg, #032246 0%, #0a3464 100%);
  color: #f5ecea;
  border-radius: 2px;
  padding: 44px 44px 38px;
  position: relative; overflow: hidden;
}
@media (max-width: 720px) { .bfp-loss { padding: 32px 24px 28px; } }
.bfp-loss::after {
  content: ""; position: absolute; right: -120px; bottom: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(184,134,42,0.32), transparent 70%);
  border-radius: 50%; filter: blur(50px); pointer-events: none;
}
.bfp-loss-tag {
  display: inline-block;
  font-family: "Big Shoulders Text", sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #b8862a; margin: 0 0 12px;
}
.bfp-loss h2 {
  font-family: Caudex, serif;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 400; line-height: 1.15;
  color: #f5ecea; margin: 0 0 22px;
  max-width: 720px;
  position: relative; z-index: 1;
}
.bfp-loss h2 em { font-style: italic; color: #e4c6be; }
.bfp-loss-controls {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; margin: 0 0 26px;
  position: relative; z-index: 1;
}
@media (max-width: 720px) { .bfp-loss-controls { grid-template-columns: 1fr; } }
.bfp-loss-field { display: flex; flex-direction: column; gap: 6px; }
.bfp-loss-label {
  font-family: "Big Shoulders Text", sans-serif;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(228,198,190,0.85);
}
.bfp-loss-input {
  padding: 14px 18px;
  background: rgba(245,236,234,0.08);
  border: 1px solid rgba(228,198,190,0.28);
  border-radius: 2px;
  color: #f5ecea;
  font-family: Caudex, serif;
  font-size: 20px;
}
.bfp-loss-input:focus {
  outline: none;
  border-color: #b8862a;
  background: rgba(245,236,234,0.12);
}
.bfp-loss-results {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 24px;
  background: rgba(245,236,234,0.08);
  border: 1px solid rgba(228,198,190,0.22);
  border-radius: 2px;
  position: relative; z-index: 1;
}
@media (max-width: 720px) { .bfp-loss-results { grid-template-columns: 1fr; gap: 14px; } }
.bfp-loss-result-label {
  font-family: "Big Shoulders Text", sans-serif;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(228,198,190,0.7); margin: 0 0 6px;
}
.bfp-loss-result-value {
  font-family: Caudex, serif;
  font-size: 26px; font-weight: 400;
  color: #f5ecea; line-height: 1.05; margin: 0 0 4px;
}
.bfp-loss-result-value.gold { color: #d4a040; }
.bfp-loss-result-value.danger { color: #ff7d7d; }
.bfp-loss-result-sub {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 11.5px; color: rgba(228,198,190,0.7);
}
.bfp-loss-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin: 30px 0 0;
  position: relative; z-index: 1;
}
.bfp-loss-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px;
  border-radius: 2px;
  font-family: "Big Shoulders Text", sans-serif;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none;
  transition: all .2s ease;
}
.bfp-loss-btn.primary {
  background: #b8862a; color: #fff;
  box-shadow: 0 12px 30px rgba(184,134,42,0.32);
}
.bfp-loss-btn.primary:hover { transform: translateY(-2px); }
.bfp-loss-btn.ghost {
  background: rgba(245,236,234,0.08);
  border: 1px solid rgba(228,198,190,0.32);
  color: #f5ecea;
}
.bfp-loss-btn.ghost:hover { background: rgba(245,236,234,0.18); }

/* ===== MIGRATION STEPS ===== */
.bfp-steps {
  counter-reset: stp;
  list-style: none;
  padding: 0; margin: 0 0 24px;
}
.bfp-steps li {
  counter-increment: stp;
  position: relative;
  padding: 22px 22px 22px 84px;
  background: #fff;
  border: 1px solid rgba(144,108,99,0.18);
  border-radius: 2px;
  margin: 0 0 14px;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 14.5px; line-height: 1.6;
  color: #3a2c28;
  box-shadow: 0 10px 28px rgba(3,34,70,0.04);
}
.bfp-steps li::before {
  content: counter(stp);
  position: absolute; top: 22px; left: 22px;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #032246 0%, #0a3464 100%);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: Caudex, serif;
  font-size: 22px;
}
.bfp-steps li strong { color: #032246; }
.bfp-steps a { color: #b8862a; text-decoration: underline; }

.bfp-warning {
  padding: 18px 22px;
  background: rgba(184,134,42,0.08);
  border-left: 4px solid #b8862a;
  border-radius: 0 2px 2px 0;
  margin: 14px 0 0;
}
.bfp-warning-tag {
  font-family: "Big Shoulders Text", sans-serif;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #b8862a; margin: 0 0 6px;
}
.bfp-warning p:last-child {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 14.5px; line-height: 1.6;
  color: #3a2c28; margin: 0;
}

/* ===== FAQ ===== */
.bfp-faq details {
  background: #fff;
  border: 1px solid rgba(144,108,99,0.16);
  border-radius: 2px;
  padding: 4px 0;
  margin: 0 0 12px;
  box-shadow: 0 8px 22px rgba(3,34,70,0.04);
}
.bfp-faq summary {
  padding: 16px 22px;
  font-family: Caudex, serif;
  font-size: 16px; font-weight: 400;
  color: #032246;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 50px;
}
.bfp-faq summary::after {
  content: "+";
  position: absolute; right: 22px; top: 14px;
  font-size: 22px; color: #b8862a;
  transition: transform .2s ease;
}
.bfp-faq details[open] summary::after { content: "−"; }
.bfp-faq-content {
  padding: 0 22px 16px;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 14.5px; line-height: 1.7;
  color: #3a2c28;
}
.bfp-faq-content ul { padding-left: 20px; margin: 8px 0; }
.bfp-faq-content a { color: #b8862a; }

/* ===== RELATED BANK FUNDS ===== */
.bfp-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.bfp-related-card {
  display: block;
  padding: 22px 22px 18px;
  background: #fff;
  border: 1px solid rgba(144,108,99,0.18);
  border-radius: 2px;
  text-decoration: none;
  transition: all .25s ease;
  box-shadow: 0 8px 22px rgba(3,34,70,0.04);
}
.bfp-related-card:hover {
  border-color: #b8862a;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(3,34,70,0.1);
}
.bfp-related-bank {
  font-family: "Big Shoulders Text", sans-serif;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #906c63; margin: 0 0 4px;
}
.bfp-related-name {
  font-family: Caudex, serif;
  font-size: 17px; font-weight: 400;
  color: #032246; margin: 0 0 8px;
  line-height: 1.2;
}
.bfp-related-stats {
  display: flex; gap: 6px; align-items: center;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 12.5px; color: #7d6056;
}

/* ===== TRUST ===== */
.bfp-trust {
  background: #faf5f1;
  border-top: 1px solid rgba(144,108,99,0.18);
  padding: 50px 0;
}
.bfp-trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
@media (max-width: 720px) { .bfp-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.bfp-trust-grid > div { text-align: center; }
.bfp-trust-num {
  font-family: Caudex, serif;
  font-size: 32px; font-weight: 400;
  color: #032246; line-height: 1; margin: 0 0 6px;
}
.bfp-trust-num em { font-style: italic; color: #b8862a; }
.bfp-trust-label {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 12.5px; color: #7d6056;
}
