/* ============================================================
   SERVICES — the full rate and term reference
   ============================================================

   Loaded after styles.css and pmes.css. pmes.css supplies the
   table styling, so a rate table here reads exactly like one in
   the seminar; this file is only the page around them.
   ============================================================ */

.sv-page { padding-bottom: 20px; }

.sv-head {
  padding-top: 54px;
  padding-bottom: 8px;
  max-width: 820px;
}
.sv-head .section-title { margin-top: 6px; }
.sv-head .section-lead { margin-top: 14px; }

/* Four anchors. The page is a reference — people arrive wanting one number,
   not a narrative, so the jumps come before the content rather than after. */
.sv-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.sv-jump a {
  padding: 9px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: var(--r-pill);
  transition: background-color .15s ease;
}
.sv-jump a:hover { background: #D7E6FA; }

/* Anchored sections land below the sticky header rather than under it. */
.sv-section { scroll-margin-top: calc(var(--header-h) + 12px); }

.sv-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.sv-lead {
  max-width: 68ch;
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.68;
  color: var(--body);
}
.sv-lead a { color: var(--blue); }
.sv-lead a:hover { text-decoration: underline; }

.sv-sub {
  margin: 44px 0 16px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}
.sv-sub-note {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 400;
  white-space: normal;
  color: var(--muted);
}

/* What the abbreviations in the loan table mean. Without this, "4× SD" is
   unreadable to exactly the person the table is for. */
.sv-key {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-bottom: 18px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--body);
  background: var(--canvas);
  border-radius: var(--r-md);
}
.sv-key > b { color: var(--ink); }
.sv-key span b { color: var(--blue); }

/* The loan table carries long qualifying conditions, so its second column
   wraps rather than forcing the table into a sideways scroll. */
.sv-loans td:nth-child(2) {
  white-space: normal;
  min-width: 230px;
  font-size: 13.5px;
  line-height: 1.45;
}
.sv-loans tbody th { white-space: normal; min-width: 130px; }

.sv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.sv-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.sv-card {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.sv-card.is-wide { grid-column: 1 / -1; }
.sv-card h4 {
  margin: 0 0 12px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}
.sv-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.sv-card li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--body);
}
.sv-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
}
.sv-card b { color: var(--ink); }
.sv-card i { font-style: normal; color: var(--blue-dark); }
.sv-card-note {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--body);
}
.sv-card-note:last-child { margin-bottom: 0; }
.sv-card .table-wrap { margin-top: 16px; }

/* Something we are not prepared to state as fact yet. Marked as pending
   rather than quietly left out, so nobody assumes the service is gone. */
.sv-pending {
  margin-top: 18px;
  padding: 18px 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--body);
  background: var(--blue-light);
  border-radius: var(--r-md);
}
.sv-pending b { color: var(--ink); }
.sv-pending span { display: block; margin-top: 8px; font-weight: 600; color: var(--blue-dark); }
.sv-pending a { color: var(--blue-dark); text-decoration: underline; }

/* The annual premium is the line a reader is looking for, so it is ruled
   off from the payouts above it. */
.pmes-table tr.is-total th,
.pmes-table tr.is-total td { border-top: 2px solid var(--line); }

.sv-cta { margin-top: 42px; text-align: center; }
.sv-cta-note {
  max-width: 48ch;
  margin: 14px auto 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* Only worth saying where the table actually scrolls. */
.sv-scroll-hint { display: none; }

@media (max-width: 720px) {
  .sv-scroll-hint { display: inline; font-weight: 600; color: var(--blue); }

  .sv-head { padding-top: 34px; }
  .sv-card { padding: 18px 20px; }
  .sv-key { gap: 6px 14px; padding: 12px 14px; }
  /* Long qualifying text in a narrow column becomes a column of single
     words; below this width the table is better scrolled than squeezed. */
  .sv-loans td:nth-child(2) { min-width: 200px; }
}
