/* ── RESOURCE PAGES ──
   Long-read pages for construction buyers (today
   subcontractor-database-template.html). They load styles.css and
   construction.css first and reuse that page's hero, section titles,
   dividers, fade-up and footer CTA; this file only adds what those pages
   need on top: prose, paired cards with lists, data tables that stack on a
   phone, a dated note, a source list and download buttons. */

.res-section { padding: 72px 0; }
.res-section .con-sectionSub { max-width: 640px; }

/* Table captions for screen readers; the section heading says it visually. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Links inside body copy: underlined, as on construction.html. */
.res-prose a, .res-card a, .res-table a, .res-note a, .res-sources a, .res-fileMeta a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}
.res-prose a:hover, .res-card a:hover, .res-table a:hover, .res-note a:hover,
.res-sources a:hover, .res-fileMeta a:hover { color: var(--accent); }

/* ── PROSE ── */
.res-prose { max-width: 68ch; margin-top: 28px; }
.res-prose p, .res-prose li { font-size: 16px; color: var(--muted); line-height: 1.7; }
.res-prose p { margin: 0 0 14px; }
.res-prose ul, .res-prose ol { margin: 0 0 14px; padding-left: 20px; }
.res-prose li { margin-bottom: 8px; }
.res-prose strong { color: var(--fg); font-weight: 600; }

/* ── PAIRED CARDS ── */
.res-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 40px; align-items: stretch;
}
.res-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
}
.res-card--us {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.07), transparent 55%), var(--card-bg);
}
.res-cardTag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.res-card--us .res-cardTag { color: var(--accent); }
.res-card h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.res-bestFor { font-size: 14.5px; color: var(--fg); line-height: 1.6; margin: 0 0 16px; }
.res-card ul { margin: 0; padding-left: 18px; }
.res-card li { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 9px; }
.res-card li:last-child { margin-bottom: 0; }
.res-card li strong { color: var(--fg); font-weight: 600; }

/* ── DATED NOTE ── */
.res-note {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 24px;
  font-size: 14.5px; line-height: 1.6; color: var(--fg);
}

/* ── TABLES ──
   Row headers are <th scope="row">. Below 720px every row becomes a card
   and each cell prints its column name from data-label, so nothing scrolls
   sideways on a phone. */
.res-tableWrap {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.res-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.res-table caption { text-align: left; }
.res-table thead th {
  text-align: left; vertical-align: bottom;
  padding: 14px 16px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
}
.res-table thead th.res-us { color: var(--accent); }
.res-table thead th small {
  display: block; margin-top: 2px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--faint);
}
.res-table tbody th, .res-table td {
  text-align: left; vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}
.res-table tbody tr:last-child th, .res-table tbody tr:last-child td { border-bottom: none; }
.res-table tbody th { color: var(--fg); font-weight: 600; width: 22%; }
.res-table td { color: var(--muted); }
.res-table td.res-us { background: rgba(var(--accent-rgb), 0.04); color: #C9CDD4; }
.res-table code { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg); }

/* A price cell: the figure, then the sum that makes it. */
.res-figure {
  display: block;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--fg);
}
.res-working {
  display: block; margin-top: 4px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.55;
  color: var(--muted);
}

/* Yes / partly / no marks: mint only for "included", as on pricing.html. */
.res-mark { font-weight: 600; color: var(--fg); }
.res-mark--yes { color: var(--verify); }

@media (max-width: 720px) {
  .res-tableWrap { border-radius: 12px; }
  .res-table thead { display: none; }
  .res-table, .res-table tbody, .res-table tr, .res-table tbody th, .res-table td {
    display: block; width: auto;
  }
  .res-table tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .res-table tbody tr:last-child { border-bottom: none; }
  .res-table tbody th, .res-table td { padding: 5px 0; border: 0; }
  .res-table tbody th { font-size: 15px; padding-bottom: 6px; }
  .res-table td.res-us { background: none; }
  .res-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--faint); margin-bottom: 1px;
  }
  .res-table td.res-us[data-label]::before { color: var(--accent); }
}

/* ── SOURCES ── */
.res-sources { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.res-sources li {
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--muted); line-height: 1.6;
}
.res-sources li strong { color: var(--fg); font-weight: 600; }
.res-small { font-size: 13px; color: var(--faint); line-height: 1.6; margin-top: 20px; max-width: 68ch; }
.res-small a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.res-small a:hover { color: var(--accent); }

/* ── DOWNLOADS ── */
.res-downloads { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.res-downloads svg { width: 18px; height: 18px; margin-right: 8px; flex-shrink: 0; }
.res-fileMeta { font-size: 13px; color: var(--muted); margin: 0 auto; max-width: 560px; line-height: 1.6; }

/* A glimpse of the sheet: scrolls inside its own box, never the page. */
.res-sheet {
  margin-top: 32px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--surface);
  overflow-x: auto;
}
.res-sheet table { border-collapse: collapse; font-size: 12.5px; width: 100%; }
.res-sheet th, .res-sheet td {
  text-align: left; white-space: nowrap;
  padding: 8px 8px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.res-sheet th:last-child, .res-sheet td:last-child { border-right: none; }
.res-sheet tbody tr:last-child td { border-bottom: none; }
.res-sheet thead th {
  font-weight: 700; color: var(--fg);
  background: rgba(var(--accent-rgb), 0.12);
}
.res-sheet td { color: var(--muted); }
.res-sheet td.res-mono { font-family: var(--font-mono); font-size: 11.5px; }
.res-sheet td.res-soon { color: var(--accent); }
.res-sheet td.res-lapsed { color: #F2A7A7; font-weight: 600; }
.res-sheet .res-pill {
  display: inline-block; padding: 1px 8px; border-radius: 99px;
  font-family: var(--font-main); font-size: 11.5px; font-weight: 600;
  background: rgba(var(--verify-rgb), 0.12); color: var(--verify);
}
.res-sheet .res-pill--wait { background: rgba(var(--accent-rgb), 0.12); color: var(--accent); }
.res-sheet .res-pill--no { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.res-sheetCaption { font-size: 13px; color: var(--faint); margin-top: 10px; }
.res-swipe { display: none; color: var(--muted); }
@media (max-width: 960px) { .res-swipe { display: inline; } }

@media (max-width: 900px) {
  .res-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .res-section { padding: 56px 0; }
  .res-card { padding: 22px; }
  .res-downloads { flex-direction: column; align-items: stretch; }
}
