/* =====================================================================
   Guides (blog) · blog.css
   Loads after ../assets/brand.css, which supplies the tokens, masthead,
   section bar, footer and buttons. This file only styles guide content,
   using the same tokens so articles match the tools.
   ===================================================================== */

html { -webkit-text-size-adjust: 100%; }
body { font: 400 1.0625rem/1.65 var(--f-body); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
h1, h2, h3 { line-height: 1.2; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main { padding-block: 40px 16px; }

/* ---------- Page head (same rhythm as the tool pages) ---------- */
.eyebrow { color: var(--accent); }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.index-head { max-width: 66ch; margin-bottom: 8px; }
.index-head h1, article h1 { font-size: var(--fs-title); line-height: 1.12; margin: 8px 0 12px; }
.index-head p { color: var(--ink-2); margin: 0; font-size: 1.02rem; }
.meta { font-size: .86rem; color: var(--ink-3); margin-bottom: 24px; }

/* ---------- Article ---------- */
article { width: min(100% - 32px, 720px); margin-inline: auto; }
article h2 { font-size: var(--fs-section); margin: 1.9em 0 .5em; }
article h3 { font-size: var(--fs-card); margin: 1.5em 0 .4em; }
article p, article ul, article ol { margin: 0 0 1em; }
article ul, article ol { padding-left: 1.3em; }
article li { margin-bottom: .4em; }
article > h2:last-of-type { font-size: 1rem; margin-top: 2.2em; color: var(--ink-2); }
article > h2:last-of-type + ul { font-size: .9rem; color: var(--ink-2); }

/* short-answer callout */
.answer { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 20px; margin: 0 0 28px; }
.answer b { display: block; font: 500 var(--fs-eyebrow)/1.2 var(--f-data); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.answer p { margin: 0; font-size: 1.05rem; }

/* tables */
.tw { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font: 600 .72rem/1.3 var(--f-data); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }

/* call-to-action band: identical to the home page band */
.try { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; margin: 2em 0; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.try p { margin: 0; max-width: 46ch; font-size: .98rem; color: var(--ink-2); }
.try p strong { color: var(--ink); }
.try a { display: inline-flex; align-items: center; gap: 8px; font: 600 .92rem/1.2 var(--f-body); padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); text-decoration: none; white-space: nowrap; transition: background-color .15s; }
.try a::after { content: "→"; }
.try a:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* keep reading */
.related { border-top: 1px solid var(--rule); margin-top: 2.4em; padding-top: 1.2em; }
.related h2 { font-size: var(--fs-card); margin: 0 0 .6em; color: var(--ink); }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55em; }
.related a { font-weight: 600; }
.disclaimer { font-size: .8rem; color: var(--ink-3); margin-top: 2em; }

/* ---------- Guide list: same card as the home page tool cards ---------- */
.group { margin-top: 32px; }
.group h2 { font-size: var(--fs-section); margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 17px 15px; display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); }
.card b { font-family: var(--f-display); font-size: var(--fs-card); line-height: 1.25; font-weight: 700; }
.card span { font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.card i { font-style: normal; font-family: var(--f-data); font-size: .78rem; color: var(--ink-3); margin-top: 4px; }

/* support block (not currently on any page; styled to the system if used) */
.coffee { margin: 2.2em 0 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; align-items: center; }
.coffee h2 { font-size: var(--fs-card); margin: 0 0 6px; color: var(--ink); }
.coffee p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.coffee .fine { font-size: .78rem; color: var(--ink-3); margin-top: 8px; }
.btn-coffee { display: inline-flex; align-items: center; gap: 8px; font: 600 .92rem/1.2 var(--f-body); padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--rule); background: var(--surface); color: var(--ink); text-decoration: none; white-space: nowrap; }
.btn-coffee:hover { border-color: var(--accent); color: var(--accent); }
.index-coffee { max-width: 720px; margin-top: 34px; }
@media (max-width: 640px) { .coffee { grid-template-columns: 1fr; } }
