/* XP Hero Field Guide. Scoped to .xphg so it never touches the theme. Tokens live on .xphg. */
.xphg{
  --bg:#f6f4ef; --surface:#ffffff; --surface-2:#eeeae1;
  --text:#1b1f2a; --text-2:#4d5566; --text-3:#7b8290;
  --line:#dcd7cb;
  --ember:#c8521a; --ember-soft:#fbe6da;
  --teal:#157a7f; --teal-soft:#d9eeee;
  --gold:#a5761b; --gold-soft:#f5e9cd;
  --danger:#9c2f2f; --danger-soft:#f7dede;
  --mono-bg:#ebe7dd;
  --radius:8px;
  --w:52rem;
}
.xphg.xphg-dark{
  --bg:#141821; --surface:#1c212c; --surface-2:#242a37;
  --text:#e9ebef; --text-2:#b3b9c6; --text-3:#7f8796;
  --line:#2e3542;
  --ember:#f08a55; --ember-soft:#3a2417;
  --teal:#4fc3c8; --teal-soft:#14383b;
  --gold:#e2b45e; --gold-soft:#3b2f14;
  --danger:#f08787; --danger-soft:#3d1f1f;
  --mono-bg:#262c38;
}
.xphg *{box-sizing:border-box}
.xphg .eyebrow{font-family:"IBM Plex Mono",monospace;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--ember);margin:0 0 8px}
.xphg h1{font-family:"Rubik","IBM Plex Sans",sans-serif;font-weight:800;font-size:clamp(30px,5.5vw,44px);line-height:1.05;letter-spacing:-.015em;margin:0 0 12px;text-wrap:balance}
.xphg .lede{font-size:18px;color:var(--text-2);margin:0 0 18px;max-width:62ch}
.xphg .meta{font-family:"IBM Plex Mono",monospace;font-size:12px;color:var(--text-3);margin:0 0 26px;display:flex;gap:14px;flex-wrap:wrap}
.xphg h2{font-family:"Rubik","IBM Plex Sans",sans-serif;font-weight:700;font-size:24px;line-height:1.15;margin:40px 0 10px;text-wrap:balance;scroll-margin-top:70px}
.xphg h3{font-family:"Rubik","IBM Plex Sans",sans-serif;font-weight:600;font-size:18px;margin:22px 0 6px}
.xphg p{margin:0 0 12px;max-width:66ch}
.xphg ul,.xphg ol{margin:0 0 14px;padding-left:22px;max-width:66ch}
.xphg li{margin:0 0 7px}
.xphg strong{font-weight:600}
.xphg em{font-style:italic}
.xphg code{font-family:"IBM Plex Mono",monospace;font-size:.88em;background:var(--mono-bg);padding:1px 5px;border-radius:4px}
.xphg .note{background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--teal);border-radius:0 var(--radius) var(--radius) 0;padding:14px 18px;margin:18px 0}
.xphg .note.warn{border-left-color:var(--danger);background:var(--danger-soft)}
.xphg .note.gem{border-left-color:var(--gold);background:var(--gold-soft)}
.xphg .note.do{border-left-color:var(--ember);background:var(--ember-soft)}
.xphg .note p:last-child,.xphg .note ul:last-child{margin-bottom:0}
.xphg .note .lbl{font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--text-3);display:block;margin-bottom:4px}
.xphg .flag{display:inline-block;font-family:"IBM Plex Mono",monospace;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;padding:2px 7px;border-radius:4px;background:var(--danger-soft);color:var(--danger);vertical-align:middle;margin-left:6px}
.xphg .flag.ok{background:var(--teal-soft);color:var(--teal)}
.xphg .steps{counter-reset:s;list-style:none;padding:0;margin:14px 0 20px;display:grid;gap:10px;max-width:none}
.xphg .steps li{counter-increment:s;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px 14px 56px;position:relative;margin:0}
.xphg .steps li::before{content:counter(s);position:absolute;left:16px;top:13px;width:28px;height:28px;border-radius:50%;background:var(--ember);color:#fff;font-family:"Rubik",sans-serif;font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center}
.xphg .steps li b{display:block;font-family:"Rubik",sans-serif;font-size:17px;margin-bottom:3px}
.xphg .cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:14px 0 20px}
.xphg .card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;text-decoration:none;color:inherit;display:block}
.xphg a.card:hover{border-color:var(--ember)}
.xphg .card b{display:block;font-family:"Rubik",sans-serif;font-size:17px;margin-bottom:4px;color:var(--text)}
.xphg .card span{font-size:14.5px;color:var(--text-2)}
.xphg .tablewrap{overflow-x:auto;margin:14px 0 20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.xphg table{border-collapse:collapse;width:100%;font-size:14.5px;font-variant-numeric:tabular-nums}
.xphg th,.xphg td{padding:8px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.xphg th{font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-3);font-weight:600;background:var(--surface-2);white-space:nowrap}
.xphg td.n{text-align:right;font-family:"IBM Plex Mono",monospace;font-size:13.5px;white-space:nowrap}
.xphg tr.best td{color:var(--teal);font-weight:600}
.xphg tbody tr:last-child td{border-bottom:0}
.xphg .toc{background:var(--surface-2);border-radius:var(--radius);padding:12px 16px;margin:0 0 22px;font-size:14.5px}
.xphg .toc b{font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--text-3);display:block;margin-bottom:6px;font-weight:600}
.xphg .toc a{margin-right:14px;text-decoration:none;display:inline-block}
.xphg .toc a:hover{text-decoration:underline}
@media (prefers-reduced-motion: reduce){.xphg *{scroll-behavior:auto!important;transition:none!important}}

/* wrapper + elements the theme would otherwise style */
.xphg{max-width:var(--w);margin:0 auto;padding:12px 18px 56px;color:var(--text);font-family:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:17px;line-height:1.55}
.xphg a{color:var(--teal)}
.xphg a:focus-visible{outline:2px solid var(--ember);outline-offset:2px}
.xphg-nav{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 22px;padding:8px 0;border-bottom:1px solid var(--line)}
.xphg-nav a{font-size:14px;color:var(--text-2);text-decoration:none;padding:6px 10px;border-radius:6px;white-space:nowrap}
.xphg-nav a:hover{background:var(--surface-2);color:var(--text)}
.xphg-nav a[aria-current="page"]{background:var(--ember-soft);color:var(--ember);font-weight:600}
.xphg-eyebrow{font-family:"IBM Plex Mono",monospace;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--ember);margin:0 0 8px}
.xphg-h1{font-family:"Rubik","IBM Plex Sans",sans-serif;font-weight:800;font-size:clamp(30px,5.5vw,44px);line-height:1.05;letter-spacing:-.015em;margin:0 0 12px;text-wrap:balance;color:var(--text)}
.xphg-lede{font-size:18px;color:var(--text-2);margin:0 0 18px;max-width:62ch}
.xphg-meta{font-family:"IBM Plex Mono",monospace;font-size:12px;color:var(--text-3);margin:0 0 26px;display:flex;gap:14px;flex-wrap:wrap}
.xphg-pager{display:flex;justify-content:space-between;gap:12px;margin-top:44px;padding-top:18px;border-top:1px solid var(--line);font-size:15px}
.xphg-pager a{text-decoration:none;font-weight:600}
.xphg-pager a:hover{text-decoration:underline}
.xphg-foot{font-size:13.5px;color:var(--text-3);margin-top:28px;max-width:none}
.xphg h2,.xphg h3{color:var(--text)}
.xphg-main{padding:0}
