/*
 * /guides/ (index + articles). Loaded after /tools.css, which supplies the
 * tokens, header, footer, light theme and the .guide article typography.
 */

/* Breadcrumb (matches the BreadcrumbList JSON-LD) */
.crumbs { padding-top: 24px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: '/'; padding: 0 10px; color: var(--muted); }
.crumbs a { color: var(--text-secondary); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.crumbs li[aria-current="page"] { color: var(--muted); }

/* Articles read as prose: a narrower measure and a smaller H1 than the tools */
.guide-page .page-hdr { padding-top: 16px; max-width: 760px; }
.guide-page h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1; }
.guide-page .lede { max-width: 760px; }
.guide-page .answer-first { font-size: 19px; font-weight: 400; color: var(--text); }
.guide-page .disclaimer { margin: 20px 0 12px; max-width: 760px; }
.txdmv-line { font-size: 15px; color: var(--text-secondary); margin: 0 0 8px; }
.guide-article { margin-top: 24px; }
.guide-article a { overflow-wrap: anywhere; }
.guide-article blockquote { margin: 16px 0; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.guide-article blockquote p { color: var(--text); font-size: 16px; }
.guide-article blockquote cite { display: block; margin-top: 8px; font-family: var(--mono); font-size: 12px; font-style: normal; color: var(--muted); }
.guide-article .example-table { margin: 16px 0 20px; }
.guide-article ol.sources { padding-left: 22px; }
.guide-article ol.sources li { font-size: 14px; line-height: 1.6; }
.guide-article ol.sources li + li { margin-top: 10px; }
.guide-page .cta-block { max-width: 760px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }

/* Index */
.guides-intro { max-width: 760px; }
.guides-intro p { font-size: 16px; line-height: 1.7; color: var(--text-secondary); }
.guides-intro p + p { margin-top: 12px; }
.g-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.g-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; transition: border-color .2s; }
.g-card:hover, .g-card:focus-within { border-color: var(--brand); }
.g-card h2 { font-size: 26px; line-height: 1.1; margin-bottom: 10px; }
.g-card h2 a { color: var(--heading); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.g-card h2 a:hover { color: var(--brand); }
.g-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

@media (max-width: 900px) {
  .g-cards { grid-template-columns: 1fr; }
  .crumbs { padding-top: 16px; }
}

/* Print: readable black on white, no nav, breadcrumb or CTA (tools.css hides
   the header, footer and .cta-block). The article prints in full. */
@media print {
  .crumbs, .cta-block, .skip { display: none !important; }
  .guide-page .page-hdr { padding: 0 0 8pt; }
  .guide-page h1 { font-size: 22pt; color: #000; }
  .guide-page .lede, .guide-page .answer-first { font-size: 11pt; color: #000; }
  .guide-page .disclaimer { font-size: 10pt; color: #000; background: #fff; border-left: 2pt solid #000; }
  .page-meta, .txdmv-line { font-size: 9pt; color: #000; }
  .guide-article { margin-top: 8pt; max-width: none; }
  .guide-article h2 { font-size: 15pt; margin: 14pt 0 4pt; color: #000; break-after: avoid; }
  .guide-article h3 { font-size: 11pt; color: #000; break-after: avoid; }
  .guide-article p, .guide-article li, .guide-article .answer { font-size: 10.5pt; line-height: 1.45; color: #000; }
  .guide-article blockquote { background: #fff; border: 1pt solid #000; break-inside: avoid; }
  .guide-article blockquote p { font-size: 10.5pt; color: #000; }
  .guide-article blockquote cite { font-size: 9pt; color: #000; }
  .guide-article ol.sources li { font-size: 9pt; color: #000; }
  .guide-article a { color: #000; }
  .guide-article ol.sources a::after { content: ' (' attr(href) ')'; font-size: 8pt; }
  .example-table { break-inside: avoid; }
  .g-cards { display: block; }
  .g-card { border: 1pt solid #000; background: #fff; padding: 8pt; margin-bottom: 8pt; break-inside: avoid; }
  .g-card h2 { font-size: 14pt; }
  .g-card h2 a, .g-card p, .guides-intro p { color: #000; font-size: 10.5pt; }
}
