/* Guides: long-form reading pages and the /guides/ hub. Uses the theme's tokens only. */
.guide .doc{max-width:72ch}
.crumbs .lang{margin-left:10px;padding:2px 10px;border:1px solid var(--line);border-radius:999px;text-decoration:none}
.gother{margin:6px 0 0;font-size:14.5px}
.gother a{font-weight:600}
.gdraft{display:inline-block;margin:12px 0 0;padding:4px 10px;border-radius:999px;background:#FFE9C7;color:#7A4B00;font-size:12.5px;font-weight:600}

.gbody h1{text-wrap:balance;margin-bottom:8px}
.byline{font-size:13.5px;color:var(--muted);margin:0 0 18px}
.byline a{color:inherit;font-weight:600}
.gbody .lede{font-size:18px;line-height:1.55;color:var(--ink)}
.gbody p,.gbody li{line-height:1.7}
.gbody h2{margin-top:2.2em;text-wrap:balance;scroll-margin-top:80px}
.gbody h3{margin-top:1.6em;scroll-margin-top:80px}
.gbody code{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.92em;padding:.1em .35em;border-radius:6px;background:var(--accent-soft)}

.toc{margin:22px 0 8px;padding:14px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface,#fff)}
.toc b{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.toc ul{margin:0;padding:0;list-style:none}
.toc li{line-height:1.8}

.gbody .note{margin:1.4em 0;padding:12px 16px;border-left:3px solid var(--accent);border-radius:0 12px 12px 0;background:var(--accent-soft)}
.gbody .note p{margin:0}
.gbody .caveat{border-left-color:#C77700;background:#FFF6E8}

.tablewrap{overflow-x:auto;margin:1.2em 0;border:1px solid var(--line);border-radius:12px}
.tablewrap table{border-collapse:collapse;width:100%;min-width:420px;font-size:14px}
.tablewrap th,.tablewrap td{padding:9px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.tablewrap th{background:var(--surface,#fff);font-weight:600}
.tablewrap td{font-variant-numeric:tabular-nums}
.tablewrap tr:last-child td{border-bottom:0}

/* a card for one of our tools, inline in the text and in "Tools used in this guide" */
.gcards{display:grid;gap:10px}
.gcard{display:flex;align-items:center;gap:14px;margin:1em 0;padding:12px 14px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface,#fff);color:inherit;text-decoration:none;transition:border-color .15s}
.gcards .gcard{margin:0}
.gcard:hover{border-color:var(--accent)}
.gico{flex:0 0 34px;width:34px;height:34px;color:var(--accent);display:flex;align-items:center;justify-content:center}
.gico svg{width:100%;height:100%}
.gmark{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;color:#fff;font-weight:800;font-size:15px}
.gtext{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.gtext b{font-size:15px}
.gtext span{font-size:13px;color:var(--muted);line-height:1.45}
.ggo{flex:0 0 auto;font-size:13px;font-weight:600;color:var(--accent)}
@media (max-width:480px){.ggo{display:none}}

.gtools{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.gtools a{border:1px solid var(--line);border-radius:999px;padding:6px 12px;font-size:14px;text-decoration:none;color:inherit;background:var(--surface,#fff)}
.gtools a:hover{border-color:var(--accent);color:var(--accent)}
.gmore{padding-left:1.1em}
.gmore li{line-height:1.8}

/* hub */
.glist{list-style:none;padding:0;margin:22px 0 0;display:grid;gap:10px}
.gitem a{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface,#fff);color:inherit;text-decoration:none}
.gitem a:hover{border-color:var(--accent)}
.gitem b{font-size:16.5px;text-wrap:balance}
.gitem span{font-size:14px;color:var(--muted);line-height:1.5}
.gitem em{font-style:normal;font-size:12.5px;color:var(--muted)}

/* on tool pages: "Guides that use this tool" */
.guides-for{margin:28px 0 0}
.guides-for h2{font-size:18px}
.guides-for ul{padding-left:1.1em}
.guides-for li{line-height:1.8}
