/* Documents Required — comparison table (desktop) + tabbed checklist (mobile) */

.section-docs {
  padding: 96px 0; background: var(--brand-blue-50);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.docs-header { max-width: 680px; margin-bottom: 36px; }
.docs-header h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem); letter-spacing: -0.03em;
  color: var(--gray-800); margin-bottom: 12px;
}
.docs-header p { font-size: 0.96rem; color: var(--muted); line-height: 1.7; }

/* ══════════════ TABLE (desktop) ══════════════ */
.doc-table-wrap {
  overflow-x: auto;                       /* never let the page scroll sideways */
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.doc-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.87rem; min-width: 660px;
}
.doc-table thead th {
  background: var(--brand-blue-100);
  color: var(--brand-blue-900);
  font-size: 0.76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--brand-blue-200);
  position: sticky; top: 0; z-index: 1;
}
.doc-table thead th.doc-col-type { text-align: center; }

/* Group header row — filled brand blue, white text */
.doc-group-row th {
  background: var(--grad-primary); color: var(--white);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 11px 18px; text-align: left;
}
.doc-table tbody th.doc-col-doc {
  font-weight: 500; text-align: left; color: var(--text);
  padding: 13px 18px; border-bottom: 1px solid var(--gray-150);
  vertical-align: top;
}
.doc-table td.doc-col-type {
  text-align: center; padding: 13px 18px;
  border-bottom: 1px solid var(--gray-150);
  border-left: 1px solid var(--gray-150);
  vertical-align: top;
}
.doc-group:last-child tr:last-child th,
.doc-group:last-child tr:last-child td { border-bottom: none; }
.doc-table tbody tr:hover th.doc-col-doc,
.doc-table tbody tr:hover td.doc-col-type { background: var(--brand-blue-50); }
.doc-group-row:hover th { background: var(--grad-primary); }

.doc-name { display: block; line-height: 1.45; }
.doc-note {
  display: block; font-size: 0.76rem; color: var(--text-muted);
  line-height: 1.5; margin-top: 3px; font-weight: 400;
}
.doc-mark { font-size: 1rem; font-weight: 700; line-height: 1; }
.doc-yes { color: var(--brand-blue-600); }
/* Paired with visually-hidden "Not required"; still kept at AA contrast. */
.doc-no  { color: var(--text-muted); }

.doc-footnote {
  font-size: 0.79rem; color: var(--muted);
  line-height: 1.65; margin-top: 18px; max-width: 760px;
}

/* ══════════════ TABS (mobile) ══════════════ */
.doc-tabs { display: none; }
.doc-tablist {
  display: flex; gap: 6px; margin-bottom: 16px;
  background: var(--white); padding: 5px;
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
}
.doc-tab {
  flex: 1; padding: 10px 8px; border: none; cursor: pointer;
  background: transparent; color: var(--muted);
  font-family: inherit; font-size: 0.8rem; font-weight: 600;
  border-radius: var(--radius); transition: var(--transition);
  line-height: 1.25;
}
.doc-tab.is-active { background: var(--grad-primary); color: var(--white); }
.doc-tab:focus-visible { outline: 2px solid var(--brand-blue-600); outline-offset: 2px; }

.doc-panel {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 20px;
}
.doc-panel[hidden] { display: none; }
.doc-panel:focus-visible { outline: 2px solid var(--brand-blue-600); outline-offset: 2px; }
.doc-panel-intro {
  font-size: 0.84rem; color: var(--muted);
  padding-bottom: 14px; margin-bottom: 4px;
  border-bottom: 1px solid var(--gray-150);
}
.doc-panel-intro strong { color: var(--brand-blue-700); }
.doc-panel-group { margin-top: 18px; }
.doc-panel-group-title {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--white);
  background: var(--grad-primary); padding: 8px 12px;
  border-radius: var(--radius); margin-bottom: 12px; line-height: 1.4;
}
.doc-checklist { list-style: none; padding: 0; margin: 0; }
.doc-checklist li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid var(--gray-150);
  font-size: 0.85rem; line-height: 1.5;
}
.doc-checklist li:last-child { border-bottom: none; }
.doc-checklist .doc-mark { flex-shrink: 0; margin-top: 1px; }

@media (max-width: 760px) {
  .doc-table-wrap { display: none; }
  .doc-tabs { display: block; }
  .section-docs { padding: 72px 0; }
}
