/* =========================================================
   SAVINGS ACCOUNTS PAGE
   Standardized to match Personal Checking typography system
   ---------------------------------------------------------
   Key standards applied:
   - Container width: 1280px
   - Edge padding: 20px desktop / 15px mobile
   - Headings: Playfair Display
   - Body text: Arial / Helvetica
   - Body line height: 1.5
   - Grid gap: 2rem
   ========================================================= */


/* =========================================================
   PAGE CONTAINER
   ========================================================= */

.savings-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px 40px;
}

/* =========================================================
   GRID LAYOUT
   ========================================================= */

.savings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 1.5rem;
  align-items: start;
}
.savings-left,
.savings-right {
  min-width: 0;
  width: 100%;
}

/* =========================================================
   LEFT COLUMN (MAIN CONTENT)
   ========================================================= */

.savings-left h2 {
  font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #002d62;
}

.savings-left p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}


/* =========================================================
   SAVINGS PRODUCT CARDS
   ========================================================= */

.savings-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.savings-card h3 {
  font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.savings-card p,
.savings-card ul {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}


/* =========================================================
   ROUND-UP SAVINGS SECTION
   ========================================================= */

.savings-roundup h3 {
  font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.savings-roundup p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}


/* =========================================================
   RATE TABLE
   Corrected: allow natural column sizing so text does not
   wrap into broken fragments.
   ========================================================= */

.savings-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  background: #fff;
}

.savings-table thead th {
  background-color: #1f2a56;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-align: left;
  vertical-align: middle;
  padding: 12px 12px;
  border: 1px solid #cfcfcf;
  font-size: 0.98rem;
  line-height: 1.2;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.savings-table td {
  padding: 12px 12px;
  border: 1px solid #cfcfcf;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  vertical-align: middle;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

/* Give columns room without forcing broken text */
.savings-table th:nth-child(1),
.savings-table td:nth-child(1) {
  min-width: 130px;
}

.savings-table th:nth-child(2),
.savings-table td:nth-child(2) {
  min-width: 90px;
}

.savings-table th:nth-child(3),
.savings-table td:nth-child(3) {
  min-width: 85px;
}

.savings-table th:nth-child(4),
.savings-table td:nth-child(4) {
  min-width: 170px;
}
/* =========================================================
   FOOTNOTES
   ========================================================= */

.footnotes {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 1.5rem;
  line-height: 1.4;
}


/* =========================================================
   MOBILE / TABLET LAYOUT
   ========================================================= */

@media (max-width: 900px) {
  .savings-container {
    padding: 40px 15px 30px;
    overflow-x: hidden;
  }

  .savings-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .savings-left,
  .savings-right {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .savings-card,
  .savings-roundup {
    width: 100%;
    max-width: 100%;
    padding: 18px;
    margin-left: 0;
    margin-right: 0;
  }

  .savings-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .savings-table thead,
  .savings-table tbody,
  .savings-table tr {
    width: 100%;
  }

  .savings-table th,
  .savings-table td {
    padding: 10px 10px;
    font-size: 0.92rem;
    line-height: 1.35;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .footnotes {
    text-align: left !important;
    font-size: 0.8rem;
    padding: 0 4px;
  }
}