/* SASSA SRD Status Guide: mobile-first, system fonts, no framework. */
:root {
  --green: #007749;
  --green-dark: #005c38;
  --ink: #1c2420;
  --muted: #4d5a53;
  --line: #d8ded9;
  --strip-bg: #fff6dd;
  --strip-line: #e3c766;
  --card-bg: #f4f7f4;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}
.wrap { max-width: 46rem; margin-inline: auto; padding-inline: 1rem; }
a { color: var(--green-dark); }
a:focus-visible, summary:focus-visible, .table-wrapper:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* Header */
.site-header { border-bottom: 3px solid var(--green); background: #fff; }
.header-inner { padding-block: 0.75rem; }
.brand {
  font-size: 1.55rem; font-weight: 800; color: var(--ink); text-decoration: none;
  letter-spacing: -0.01em; white-space: nowrap;
}
.brand span { color: var(--green); }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand-logo { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.main-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.4rem; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-size: 0.98rem; padding: 0.45rem 0.1rem;
}
.main-nav a:hover { text-decoration: underline; }
.main-nav a[aria-current="page"] { color: var(--green-dark); font-weight: 700; text-decoration: underline; }

/* Disclaimer strip */
.disclaimer-strip { background: var(--strip-bg); border-bottom: 1px solid var(--strip-line); }
.disclaimer-strip p { margin: 0; padding-block: 0.6rem; font-size: 0.95rem; }

/* Article */
main { padding-block: 1.25rem 2rem; }
h1 { font-size: 1.75rem; line-height: 1.25; letter-spacing: -0.015em; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.2rem 0 0.7rem; letter-spacing: -0.01em; }
h3 { font-size: 1.12rem; line-height: 1.35; margin: 1.4rem 0 0.4rem; }
p { margin: 0 0 0.9rem; }
ul, ol { margin: 0 0 0.9rem; padding-left: 1.3rem; }
li { margin-bottom: 0.45rem; }
.steps li { margin-bottom: 0.7rem; }

/* Call to action */
.cta-row { margin: 1.2rem 0 0.4rem; }
.cta-button {
  display: block; text-align: center;
  background: var(--green); color: #fff;
  font-size: 1.15rem; font-weight: 700; text-decoration: none;
  padding: 1rem 1.25rem; border-radius: 0.6rem; min-height: 3.5rem;
}
.cta-button:hover { background: var(--green-dark); }
.cta-note { font-size: 0.92rem; color: var(--muted); }

/* Tables */
.table-wrapper { overflow-x: auto; margin: 1rem 0 1.2rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
caption { text-align: left; font-weight: 700; padding-bottom: 0.5rem; }
th, td { border: 1px solid var(--line); padding: 0.6rem 0.7rem; vertical-align: top; text-align: left; }
thead th { background: var(--green); color: #fff; }
tbody th[scope="row"] { background: var(--card-bg); font-weight: 700; min-width: 8.5rem; }
.dates-table td { white-space: nowrap; }

/* Stacked tables on small screens: row header stays visible, cells get labels. */
@media (max-width: 40rem) {
  .status-table thead { display: none; }
  .status-table, .status-table tbody, .status-table tr, .status-table th, .status-table td { display: block; }
  .status-table tr { border: 1px solid var(--line); margin-bottom: 1rem; }
  .status-table th, .status-table td { border: none; }
  .status-table tbody th[scope="row"] { border-bottom: 1px solid var(--line); }
  .status-table td::before {
    content: attr(data-label) ": ";
    font-weight: 700;
  }
}

/* FAQ accordion: native details/summary, marker kept beside the label. */
.faq details { border: 1px solid var(--line); border-radius: 0.5rem; margin-bottom: 0.6rem; background: #fff; }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 700;
  display: flex; align-items: baseline; gap: 0.5ch;
  padding: 0.85rem 1rem; min-height: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; flex-shrink: 0; align-self: center;
  inline-size: 0.65em; block-size: 0.65em;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
}
.faq details[open] > summary::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .faq summary::before { transition: transform 0.2s ease; }
}
.faq details p { padding: 0 1rem 0.9rem; margin: 0; }

/* Footer */
.site-footer { border-top: 3px solid var(--green); background: var(--card-bg); margin-top: 2rem; }
.site-footer .wrap { padding-block: 1.4rem 1.8rem; }
.footer-brand { font-weight: 800; }
.site-footer p { font-size: 0.95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.8rem; }
.footer-nav a { padding: 0.4rem 0; }

/* Wider screens */
@media (min-width: 48rem) {
  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.55rem; }
  .cta-button { display: inline-block; }
}

/* Header layout: big brand row on top, full menu on a single line below */
@media (min-width: 40rem) {
  .header-inner { max-width: 72rem; padding-block: 0.9rem 0.7rem; }
  .brand { font-size: 1.75rem; }
  .brand-logo { width: 50px; height: 50px; border-radius: 11px; }
  .main-nav { margin-top: 0.6rem; flex-wrap: nowrap; gap: 0.25rem 1.15rem; font-size: 1rem; overflow-x: auto; }
  .main-nav a { white-space: nowrap; }
}

/* Wide screens: brand left, menu parallel on the right, one single line */
@media (min-width: 66rem) {
  .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
  .main-nav { margin-top: 0; gap: 0.25rem 0.95rem; overflow-x: visible; }
}
