/* Guides & Articles section styles — search-banks.com adaptation
   (2026-11-27) of the network guides.css (all-contractors, 2026-11-24;
   2026-11-25 design pass: hub cover cards + category shelves (D1/D2),
   long-form article typography layer (D5), data-table radius fix (D6)).
   Loaded only by pages under /guides/.

   search-banks.com is a standalone-page site: its pages load
   /css/bootstrap.css + /css/theme.css, and theme.css (the 2026-11-05
   search-banks skin) does define the network token set. The :root
   block below mirrors the live theme.css values verbatim (fetched
   2026-11-27) so this stylesheet is self-sufficient on its own —
   every var() used further down resolves even if theme.css is ever
   unlinked or renamed. Only --text-h4 is not a theme.css token; it
   is interpolated from the theme's type scale (just under --text-h3).

   A standalone layer at the end of the file supplies the few classes
   theme.css does not carry (.page-head, .xlinks, the topbar Guides
   link, the bigFooter.php fallback layout, data-table cell basics).
   Everything else the templates use (.wrap, .breadcrumb, .display,
   .lede, .eyebrow, .card-fresh, .listing-card) comes from theme.css. */

:root{
  --brand:#008CBF; --brand-soft:#E9F5FA;
  --ink:#1A1D21; --ink-2:#4A5058; --ink-3:#6B7280;
  --line:#E3E1DC; --line-strong:#C9C6BF;
  --surface:#FFFFFF;
  --radius-m:10px; --radius-l:16px;
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:24px; --space-6:32px; --space-7:48px;
  --text-h2:clamp(1.3rem,1.15rem + .8vw,1.625rem);
  --text-h3:clamp(1.1rem,1.02rem + .4vw,1.25rem);
  --text-h4:1rem;
  --text-lede:clamp(1.06rem,1rem + .3vw,1.19rem);
}

/* ---------- Hub: category shelves + cover cards ---------- */
.guide-shelf{margin-top:var(--space-7)}
.guide-shelf>h2{font-size:var(--text-h2);line-height:1.2;
  margin:0 0 var(--space-4);padding-bottom:var(--space-2);
  border-bottom:1px solid var(--line-strong)}
.guide-grid{display:grid;grid-template-columns:1fr;gap:var(--space-4)}
@media(min-width:720px){.guide-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.guide-grid{grid-template-columns:repeat(3,1fr)}}
.guide-grid .guide-card{margin:0}
.listing-card.guide-card{position:relative;padding:0;overflow:hidden;
  display:flex;flex-direction:column;transition:border-color 120ms ease-out}
.guide-card:hover{border-color:var(--line-strong)}
@media(prefers-reduced-motion:reduce){.guide-card{transition:none}}
.guide-cover{aspect-ratio:16/9;background:var(--brand-soft);overflow:hidden;flex:none}
.guide-cover img{width:100%;height:100%;object-fit:cover;display:block}
.guide-cover--empty{display:flex;align-items:center;justify-content:center}
.guide-cover--empty span{font-size:2.5rem;font-weight:750;color:var(--brand);opacity:.5}
.guide-card-body{padding:var(--space-4) var(--space-5) var(--space-5);
  display:flex;flex-direction:column;flex:1}
.guide-card-body .card-fresh{margin-top:auto;padding-top:var(--space-3)}
.listing-card .eyebrow{margin-bottom:var(--space-2)}

/* ---------- Article: long-form typography layer ---------- */
.guide-article{max-width:760px;font-size:1.0625rem;line-height:1.7}
.guide-byline{color:var(--ink-2);font-size:var(--text-lede);line-height:1.5;
  margin-bottom:var(--space-5)}
.guide-article p{margin:0 0 var(--space-4)}
.guide-article h2{font-size:var(--text-h2);line-height:1.2;
  margin:var(--space-7) 0 var(--space-3)}
.guide-article h2:first-of-type{margin-top:var(--space-5)}
.guide-article h3{font-size:var(--text-h3);line-height:1.3;font-weight:650;
  margin:var(--space-6) 0 var(--space-2)}
.guide-article h4{font-size:var(--text-h4);line-height:1.35;font-weight:650;
  margin:var(--space-5) 0 var(--space-2)}
.guide-article ul,.guide-article ol{margin:0 0 var(--space-4);padding-left:1.35em}
.guide-article li{margin-bottom:var(--space-2)}
.guide-article li::marker{color:var(--brand)}
.guide-article blockquote{margin:var(--space-6) 0;
  padding:var(--space-1) 0 var(--space-1) var(--space-5);
  border-left:3px solid var(--brand);
  font-size:var(--text-lede);line-height:1.55;color:var(--ink-2)}
.guide-article blockquote p{margin-bottom:var(--space-2)}
.guide-article blockquote p:last-child{margin-bottom:0}
.guide-article hr{border:none;border-top:1px solid var(--line);
  margin:var(--space-6) 0}
.guide-article figure{margin:var(--space-6) 0}
.guide-article figure img{width:100%;height:auto;display:block;
  border:1px solid var(--line);border-radius:var(--radius-l)}
.guide-article figcaption{font-size:.875rem;color:var(--ink-3);
  margin-top:var(--space-2);line-height:1.5}

/* Data tables (D6): the base table uses border-collapse:collapse, which
   makes any border-radius a dead rule. In the article layer the table
   opts into separate borders with zero spacing, so the border + radius
   actually render; overflow:hidden clips the header row to the radius.
   The base stylesheet's <=719px stacked pattern (display:block rows,
   td::before labels from data-th) is unaffected — it never relied on
   border-collapse, and the outer border + radius now frame the stacked
   card on phones too. */
.guide-article table.data{margin:var(--space-5) 0 var(--space-6);
  border-collapse:separate;border-spacing:0;
  border:1px solid var(--line);border-radius:var(--radius-m);
  overflow:hidden}
.guide-article table.data th:first-child,.guide-article table.data td:first-child{padding-left:14px}

/* ---------- Sources box ---------- */
.guide-notes{background:var(--surface);border:1px solid var(--line);
  border-left:3px solid var(--brand);border-radius:var(--radius-m);
  padding:var(--space-4) var(--space-5);margin-top:var(--space-7);
  font-size:.9375rem;line-height:1.55;color:var(--ink-2)}
.guide-notes h2{font-size:var(--text-h3);color:var(--ink);margin-bottom:var(--space-2)}
.guide-notes h3{font-size:var(--text-h4);color:var(--ink);margin:var(--space-4) 0 var(--space-2)}
.guide-notes ul{margin:0 0 var(--space-3);padding-left:20px}
.guide-notes li{margin-bottom:6px}
.guide-notes p{margin-bottom:var(--space-3)}

.guide-more{margin-top:var(--space-7)}

/* ---------- search-banks standalone layer (2026-11-27) ----------
   Classes theme.css does not define, plus chrome the guides
   templates carry themselves on this site. */

/* Topbar "Guides & Articles" link: sits next to the brand inside
   theme.css's flex .topbar .container (gap handles the spacing). */
.guides-nav-link{font-size:.9375rem;font-weight:550;color:var(--ink-2);
  text-decoration:none}
.guides-nav-link:hover{color:var(--brand);text-decoration:none}

/* Page head (theme.css has .page-header, a different component). */
.page-head{margin:var(--space-6) 0}
.page-head .display{margin:0}
.page-head .eyebrow{margin:0 0 var(--space-2)}
.page-head .lede{margin:var(--space-3) 0 0;color:var(--ink-2)}

/* "More guides" strip (the .xlinks family is a network base class
   that theme.css does not carry). */
.xlinks ul{list-style:none;margin:0;padding:0}
.xlinks li{border-bottom:1px solid var(--line)}
.xlinks li a{display:block;padding:var(--space-3) 0;text-decoration:none}
.xlinks .x-name{display:block;font-weight:650;color:var(--ink)}
.xlinks li a:hover .x-name{color:var(--brand)}
.xlinks .x-desc{display:block;font-size:.875rem;color:var(--ink-3);
  margin-top:2px}

/* Data-table cell basics: the network base stylesheet that pads
   cells and shades headers on other sites is not loaded here —
   theme.css only sets table{width:100%}. */
.guide-article table.data th,.guide-article table.data td{
  padding:10px 12px;text-align:left;vertical-align:top;
  border-bottom:1px solid var(--line)}
.guide-article table.data th{background:var(--brand-soft);
  font-weight:650;color:var(--ink)}
.guide-article table.data tr:last-child td{border-bottom:none}

/* bigFooter.php fallback layout: on the live site the fragment's
   column styling lives in per-page inline <style> blocks, which
   guides pages do not load (checked 2026-11-27: no big-footer rules
   in bootstrap.css, theme.css or css.php output). These rules give
   the four link columns a sane flex layout on guides pages only. */
.wrap_footer{margin-top:var(--space-7);border-top:1px solid var(--line);
  padding-top:var(--space-5)}
#big-footer{display:flex;flex-wrap:wrap;gap:var(--space-5)}
#big-footer>div{flex:1 1 200px;min-width:180px}
#big-footer h3,#big-footer h4{font-size:1rem;margin:0 0 var(--space-3)}
#big-footer ul{list-style:none;margin:0;padding:0}
#big-footer li{margin-bottom:var(--space-2)}
