/*
 * WOLIS — Table styles
 * Uses design-system CSS variables from style.css
 */

/* ── Wrapper ── */
.fees-wrap {
  margin-top: 0;
}

.fees-wrap h3 {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}

.fees-wrap .fees-sub {
  font-size: 13px;
  color: var(--gray);
  margin: 0 0 22px;
}

/* ── Table shell ── */
.fees-table {
  width: auto;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px -8px rgba(15, 42, 71, 0.14);
}

/* ── Header ── */
.fees-table thead tr {
  background: var(--navy);
}

.fees-table thead th {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--white);
  padding: 14px 18px;
  text-align: left;
  letter-spacing: 0.03em;
  border-bottom: 3px solid var(--gold);
  white-space: nowrap;
}

.fees-table thead th:first-child {
  padding-left: 22px;
}

/* ── Body rows ── */
.fees-table tbody tr {
  background: var(--white);
  transition: background 0.18s ease;
}

.fees-table tbody tr:nth-child(even) {
  background: var(--cream);
}

.fees-table tbody tr:hover {
  background: #EEF5FB;
}

/* ── Cells ── */
.fees-table tbody td {
  padding: 13px 18px;
  vertical-align: top;
  line-height: 1.5;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}

.fees-table tbody tr:last-child td {
  border-bottom: none;
}

/* Level column */
.fees-table tbody td:first-child {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
  white-space: nowrap;
  padding-left: 22px;
  background: inherit;
}

/* ── Term labels (mini eyebrow above each amount) ── */
.fees-table .term-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  margin-bottom: 1px;
  margin-top: 6px;
}

.fees-table .term-label:first-child {
  margin-top: 0;
}

/* Numeric amounts */
.fees-table tbody td span + br + span,
.fees-table tbody td {
  font-variant-numeric: tabular-nums;
}

/* ── Footer note ── */
.fees-note {
  font-size: 12.5px;
  color: var(--gray);
  margin: 14px 0 0;
  line-height: 1.65;
  padding: 12px 16px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

.fees-note strong {
  color: var(--ink);
}

.fees-note-full {
  margin-top: 8px;
  grid-column: 1/-1;
}

.fees-nb-list {
  margin: 8px 0 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fees-nb-list li {
  line-height: 1.6;
}

.fees-note a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

.fees-note a:hover {
  text-decoration: underline;
}

/* ── Checklist cards (full-width grid on navy) ── */
.checklist-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 720px) {
  .checklist-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .checklist-cards { grid-template-columns: 1fr; }
}

/* ── Fees 60/40 split ── */
.fees-split {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .fees-split { grid-template-columns: 1fr; }
}

.fees-split-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.fees-split-side {
  min-width: 0;
}

/* Account table: label column styling */
.account-table tbody td:first-child {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--navy);
  white-space: nowrap;
  width: 40%;
}

/* ── Account details table ── */
.account-details h4 {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.account-table {
  box-shadow: none;
  border-radius: 10px;
  overflow: hidden;
}

.account-table tbody td {
  font-size: 13px;
  padding: 10px 14px;
}

.account-table tbody td:first-child {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--navy);
  white-space: nowrap;
  padding-left: 14px;
  width: 38%;
}

/* ── Navy section overrides ── */
.section-navy {
  background: var(--navy);
}

/* Checklist cards on navy background */
.section-navy .checklist-cards .check-item {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}

.section-navy .checklist-cards .check-item p {
  color: rgba(255,255,255,0.88);
}

.section-navy .checklist-cards .check-icon {
  background: rgba(95,174,140,0.25);
}

/* Section heading on navy */
.section-navy .section-head h2 {
  color: var(--white);
}

.section-navy .eyebrow-gold {
  color: var(--gold);
}

/* FAQ items on navy background */
.section-navy .faq-item {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.section-navy .faq-item summary {
  color: var(--white);
}

.section-navy .faq-item summary .chev {
  stroke: var(--white);
}

.section-navy .faq-item .faq-body {
  color: rgba(255,255,255,0.75);
}

/* ── Fees download link ── */
.fees-download {
  margin-top: 20px;
  text-align: right;
}

@media (max-width: 700px) {
  .fees-download {
    text-align: center;
  }
}

.fees-download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 30px;
  padding: 9px 18px;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.fees-download-link:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── Responsive — horizontal scroll container ── */
.table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
}
