/* Extra styles for the Fire Toad practitioner guides.
   Loaded after ../style.css (or ../../style.css) and reuses its colour tokens. */

.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

.doc .lede { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0 0 22px; }
.doc h3 { font-size: 18px; margin: 22px 0 6px; letter-spacing: -0.01em; }
.doc .box { margin: 16px 0; }
.doc .box > :first-child { margin-top: 0; }
.doc .box > :last-child { margin-bottom: 0; }
.doc .box h2 { font-size: 18px; margin: 0 0 8px; }
.doc .box.warn { border-left: 3px solid var(--ember-d); }
.doc code, .doc .ref { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.88em; }

/* On this page */
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 0 0 8px; font-size: 15px; }
.toc strong { display: block; margin-bottom: 4px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { color: var(--muted); padding: 2px 0; break-inside: avoid; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }

/* Tables scroll inside their own frame, never the page */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 14px 0 10px; border: 1px solid var(--line); border-radius: 14px; }
table.ft { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; min-width: 600px; }
table.ft caption { text-align: left; padding: 12px 12px 4px; color: var(--muted); font-size: 14px; }
table.ft th, table.ft td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); }
table.ft thead th { background: var(--card); color: var(--text); font-size: 14px; border-top: 0; position: sticky; top: 0; }
table.ft tbody th { color: var(--text); font-weight: 700; min-width: 170px; }
table.ft tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
table.ft td { color: #e9d9c6; }
table.ft td.ref { color: var(--muted); font-size: 14px; }
table.ft tr.group th { background: #211710; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }

.tag { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.tag.crit { background: #4a1a12; color: #ffb3a1; }
.tag.non { background: #3d2f12; color: #f5d08a; }
.tag.nc { background: #1d2e24; color: var(--ok); }
.tag.ill { background: #2b2230; color: #d9c2f0; }

ol.steps { padding-left: 22px; }
ol.steps li { margin-bottom: 10px; }
ol.steps li strong { color: var(--text); }

ul.checks.tight li { padding-top: 4px; padding-bottom: 4px; }

/* Call to action */
.cta-box { margin-top: 36px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--ember-d); border-radius: 16px; padding: 20px; }
.cta-box h2 { margin: 0 0 8px; font-size: 20px; }
.cta-box p { margin: 0 0 14px; }
.cta-box .note { margin: 10px 0 0; }

.sources { font-size: 15px; padding-left: 20px; }
.sources li { margin-bottom: 6px; }
.sources li span { color: var(--muted); }

.disclaimer { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; }
.doc .disclaimer p { color: var(--muted); }

/* Guides index */
.guide-cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 20px 0; }
.guide-cards .card h2 { font-size: 19px; margin: 0 0 6px; }
.guide-cards .card h2 a { color: var(--text); text-decoration: none; }
.guide-cards .card h2 a:hover { color: #ffb08f; text-decoration: underline; }
.guide-cards .card p { margin: 0; }

@media (max-width: 760px) {
  .toc ol { columns: 1; }
  .doc h1 { font-size: 30px; }
  table.ft { font-size: 14px; }
}

/* Phones: stack each table row into a labelled card instead of scrolling sideways */
@media (max-width: 560px) {
  table.ft { min-width: 0; }
  table.ft, table.ft tbody, table.ft tr, table.ft th, table.ft td, table.ft caption { display: block; width: auto; }
  table.ft thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.ft tbody tr { border-top: 1px solid var(--line); padding: 10px 14px 12px; }
  table.ft tbody tr:first-child { border-top: 0; }
  table.ft tbody th, table.ft td { border: 0; padding: 2px 0; min-width: 0; }
  table.ft td[data-label]::before { content: attr(data-label); display: block; margin-top: 8px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  table.ft tr.group { padding: 0; }
  table.ft tr.group th { padding: 8px 14px; }
}
