/* /leaving-the-faa: moving to another federal job and the two ways back. One
   reading column on the site tokens in style.css (--card-bg, --card-border,
   --text-color), so it follows the light/dark theme. */

.lf-page {
  --lf-accent: #1d4e89;
  --lf-accent-soft: rgba(29, 78, 137, 0.08);
  --lf-muted: var(--secondary);
  max-width: 820px;
}
[data-bs-theme="dark"] .lf-page {
  --lf-accent: #8ab4f8;
  --lf-accent-soft: rgba(138, 180, 248, 0.1);
}
.lf-narrow { max-width: 820px; }

.hero-section.bg-leaving-the-faa {
  background: radial-gradient(circle at 85% 20%, rgba(110, 219, 160, 0.18), transparent 55%),
              linear-gradient(135deg, #10263a 0%, #1f4a5c 100%);
  color: #fff;
}
.bg-leaving-the-faa .lead { opacity: 0.85; line-height: 1.5; }

/* ── The questions this page answers ── */
.lf-questions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .lf-questions { grid-template-columns: 1fr 1fr; } }
.lf-questions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.6rem;
  color: var(--text-color);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}
/* A down arrow on the right: each one jumps further down the page. */
.lf-questions a::after {
  content: "";
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
  background-color: var(--lf-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lf-questions a:hover, .lf-questions a:focus-visible { border-color: var(--lf-accent); background: var(--lf-accent-soft); }

/* ── Sections ── */
.lf-section { margin-top: 3rem; }
.lf-section > h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.9rem; }
.lf-section h3 { font-size: 1.1rem; font-weight: 700; }
.lf-section p, .lf-section li { line-height: 1.65; }
.lf-page [id] { scroll-margin-top: 5.5rem; }
.lf-cite { font-size: 0.85rem; color: var(--lf-muted); margin-top: 0.75rem; }
.lf-sources {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.85rem;
  color: var(--lf-muted);
}

/* ── A rule worth stopping on ── */
.lf-callout {
  border-left: 4px solid var(--lf-accent);
  background: var(--lf-accent-soft);
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0;
}
.lf-callout p:last-child { margin-bottom: 0; }

/* ── Retirement example ── */
.lf-sum { width: 100%; max-width: 520px; margin: 1rem 0 0.5rem; border-collapse: collapse; }
.lf-sum th, .lf-sum td { padding: 0.45rem 0; border-bottom: 1px solid var(--card-border); font-size: 0.95rem; }
.lf-sum th { font-weight: 400; text-align: left; padding-right: 1rem; }
.lf-sum td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lf-sum tr.lf-sum-total th, .lf-sum tr.lf-sum-total td { font-weight: 700; border-bottom: 0; }

/* ── The two ways back ── */
.lf-routes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 768px) { .lf-routes { grid-template-columns: 1fr 1fr; } }
.lf-route {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--lf-accent);
  border-radius: 0 0 0.6rem 0.6rem;
  padding: 1.1rem 1.2rem 0.6rem;
}
.lf-route h3 { margin: 0 0 0.35rem; }
.lf-route > p { color: var(--lf-muted); font-size: 0.95rem; margin-bottom: 0.75rem; }
.lf-route dl { margin: 0; }
.lf-route dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lf-muted);
  margin-top: 0.75rem;
}
.lf-route dd { margin: 0.15rem 0 0; font-size: 0.95rem; line-height: 1.55; }

/* ── The clock after you leave ── */
.lf-timeline { list-style: none; padding: 0; margin: 1.25rem 0 0.6rem; position: relative; }
.lf-timeline li {
  position: relative;
  padding: 0 0 1rem 1.6rem;
  line-height: 1.55;
}
.lf-timeline li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--lf-accent);
}
.lf-timeline li::after {
  content: "";
  position: absolute;
  left: 0.47rem;
  top: 1.15rem;
  bottom: 0;
  width: 2px;
  background: var(--card-border);
}
.lf-timeline li:last-child::before { background: var(--lf-accent); }
.lf-timeline li:last-child::after { display: none; }
.lf-timeline strong:first-child { display: block; }
