/* Guides & Articles section styles — all-contractors.com (2026-11-24).
   Built entirely on the network.css design tokens (paper / ink / brand /
   radius / spacing) so guide pages read as part of the site. Loaded only
   by pages under /guides/.
   2026-11-25 design pass: hub cover cards + category shelves (D1/D2),
   long-form article typography layer (D5), data-table radius fix (D6). */

/* ---------- 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)}
