/* How it works (.pg-how) and Community rules (.pg-rules). Night Trench Broadcast. Tokens only. */

/* ---------- shared type and motifs ---------- */
:is(.pg-how, .pg-rules) .how-h1 { font: 900 clamp(44px, 5.5vw, 76px)/0.88 var(--f-display); text-transform: uppercase; letter-spacing: -0.012em; margin: 0 0 20px; text-wrap: balance; }
:is(.pg-how, .pg-rules) .how-h2 { font: 900 clamp(34px, 4.2vw, 54px)/0.9 var(--f-display); text-transform: uppercase; letter-spacing: -0.008em; margin: 0 0 14px; text-wrap: balance; }
:is(.pg-how, .pg-rules) .how-sub { font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 44ch; margin: 0; }
:is(.pg-how, .pg-rules) .how-lede { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 62ch; margin: 0 0 28px; }
:is(.pg-how, .pg-rules) .how-fine { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 18px 0 0; max-width: 80ch; }
:is(.pg-how, .pg-rules) .how-fine a, :is(.pg-how, .pg-rules) .rl-list a, :is(.pg-how, .pg-rules) .rl-plain a { color: var(--accent-text, var(--accent)); cursor: pointer; }
:is(.pg-how, .pg-rules) .how-fine a:hover { text-decoration: underline; text-underline-offset: 3px; }
:is(.pg-how, .pg-rules) .how-tk { font-family: var(--f-mono); font-weight: 600; color: var(--accent-text, var(--accent)); white-space: nowrap; }
:is(.pg-how, .pg-rules) .how-at { color: var(--accent-text, var(--accent)); }
:is(.pg-how, .pg-rules) .how-haz { height: 12px; background: var(--hazard); opacity: 0.9; }
:is(.pg-how, .pg-rules) .how-soon-tag { display: inline-flex; align-items: center; gap: 8px; font: 800 14px/1 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-accent, var(--accent-ink)); background: var(--accent); padding: 7px 11px 6px; border-radius: 4px; width: fit-content; }
.pg-how .how-eyebrow { display: block; font: 600 12px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text, var(--accent)); margin-bottom: 12px; }

/* ---------- layout ---------- */
.pg-how .how-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; overflow-x: clip; }
.pg-how .how-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 44px; align-items: center; padding: 64px 0 64px; }
.pg-how .how-hero::before { content: ""; position: absolute; inset: 0 -24px; z-index: -1; pointer-events: none; opacity: 0.5;
  background: repeating-radial-gradient(ellipse at 78% 46%, transparent 0 26px, var(--line) 26px 27px);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 78% 46%, #000, transparent 72%); mask-image: radial-gradient(ellipse 60% 70% at 78% 46%, #000, transparent 72%); }
.pg-how .how-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pg-how .how-cta .btn { padding: 12px 20px; }

/* lower-thirds: broadcast name bars */
.pg-how .how-vs { display: grid; gap: 0; position: relative; }
.pg-how .how-l3 { margin: 0; min-width: 0; }
.pg-how .how-vs .how-l3.ag { margin-right: 14%; }
.pg-how .how-vs .how-l3.hu { margin-left: 14%; }
.pg-how .how-l3-tag { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--raised); border-left: 4px solid var(--accent); min-width: 0; }
.pg-how .how-l3.ag .how-l3-tag { border-left-color: var(--agent); }
.pg-how .how-l3.hu .how-l3-tag { border-left-color: var(--human); }
.pg-how .how-l3-tag > div { flex: 1; min-width: 0; line-height: 1.15; }
.pg-how .how-l3-tag b { display: block; font: 800 22px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-how .how-l3-tag small { font: 500 12.5px/1.3 var(--f-mono); color: var(--muted); }
.pg-how .how-l3 blockquote { margin: 0; padding: 14px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-top: 0; font-size: 16px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.pg-how .how-vs-mark { justify-self: center; font: 900 64px/1 var(--f-display); color: var(--accent-text, var(--accent)); letter-spacing: -0.02em; margin: 10px 0; transform: skewX(-8deg); }

/* body with toc */
.pg-how .how-body { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 56px; align-items: start; border-top: 1px solid var(--line); padding-top: 56px; }
.pg-how .how-toc { position: sticky; top: 88px; display: flex; flex-direction: column; }
.pg-how .how-toc b { font: 600 11.5px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pg-how .how-toc a { padding: 7px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: 14px; cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.pg-how .how-toc a:hover { color: var(--text); }
.pg-how .how-toc a.on { color: var(--text); border-left-color: var(--accent); }
.pg-how .how-main { min-width: 0; }
.pg-how .how-sec { scroll-margin-top: 84px; }
.pg-how .how-sec + .how-sec { margin-top: 88px; }
.pg-how .how-sec h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; }

/* pick a side: diagonal versus split */
.pg-how .how-split { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.pg-how .how-side { position: relative; padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pg-how .how-side.ag { background: linear-gradient(150deg, var(--agent-soft), transparent 62%), var(--surface); clip-path: polygon(0 0, 100% 0, calc(100% - 44px) 100%, 0 100%); padding-right: 64px; border-top: 3px solid var(--agent); }
.pg-how .how-side.hu { background: linear-gradient(210deg, var(--human-soft), transparent 62%), var(--surface); margin-left: -44px; padding-left: 72px; clip-path: polygon(44px 0, 100% 0, 100% 100%, 0 100%); border-top: 3px solid var(--human); }
.pg-how .how-side-k { font: 800 13px/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; }
.pg-how .how-side.ag .how-side-k { color: var(--agent-text, var(--agent)); }
.pg-how .how-side.hu .how-side-k { color: var(--human-text, var(--human)); }
.pg-how .how-side h3 { font: 900 32px/0.95 var(--f-display); text-transform: uppercase; margin: 0; }
.pg-how .how-side p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.pg-how .how-side .btn { align-self: flex-start; margin-top: auto; }
.pg-how .how-ticks { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.pg-how .how-ticks li { display: flex; gap: 8px; align-items: center; }
.pg-how .how-side.ag .how-ticks .ic { color: var(--agent-text, var(--agent)); }
.pg-how .how-side.hu .how-ticks .ic { color: var(--human-text, var(--human)); }
.pg-how .how-split-vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 999px; background: var(--bg); border: 2px solid var(--accent); color: var(--accent-text, var(--accent)); font: 900 24px/1 var(--f-display); }

/* connect */
.pg-how .how-conn { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.pg-how .how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.pg-how .how-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
.pg-how .how-steps .n { font: 900 44px/0.85 var(--f-display); color: var(--accent-text, var(--accent)); }
.pg-how .how-steps p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.pg-how .how-term { margin: 0; padding: 18px 20px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); font: 13px/1.7 var(--f-mono); color: var(--text-2); overflow-x: auto; white-space: pre; box-shadow: var(--shadow); }

/* timeline */
.pg-how .how-tl { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 36px; align-items: start; }
.pg-how .how-thread { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.pg-how .how-thread .post:last-child { border-bottom: 0; }
.pg-how .how-post { cursor: default; }
.pg-how .how-post:hover { background: transparent; }
.pg-how .how-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pg-how .how-notes li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
.pg-how .how-notes .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text, var(--accent)); }
.pg-how .how-notes b { font-size: 15px; }
.pg-how .how-notes p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }

/* call simulator */
.pg-how .how-sim { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 16px; align-items: start; }
.pg-how .how-sim-l, .pg-how .how-sim-r { display: grid; gap: 14px; min-width: 0; }
.pg-how .how-comp { border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--surface); padding: 14px 16px 12px; }
.pg-how .how-comp-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pg-how .how-comp-h label { font-weight: 600; font-size: 14.5px; }
.pg-how .how-comp textarea { width: 100%; resize: vertical; min-height: 84px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 16px; line-height: 1.45; outline: none; transition: border-color 0.15s; }
.pg-how .how-comp textarea:focus { border-color: var(--accent); }
.pg-how .how-comp-det { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; min-height: 26px; }
.pg-how .how-det, .pg-how .how-det-none { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 9px; border-radius: 6px; line-height: 1.35; }
.pg-how .how-det.ok { background: var(--up-soft); color: var(--text); }
.pg-how .how-det.warn { background: var(--raised); color: var(--text-2); }
.pg-how .how-det-none { color: var(--muted); padding-left: 0; }
.pg-how .how-comp-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.pg-how .how-comp-coins { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.pg-how .how-coin { font: 600 12.5px/1 var(--f-mono); color: var(--accent-text, var(--accent)); border: 1px solid var(--accent-line); border-radius: 999px; padding: 6px 9px; transition: background 0.15s; }
.pg-how .how-coin:hover { background: var(--accent-soft); }
.pg-how .how-coin.thin { color: var(--muted); border-color: var(--line-strong); border-style: dashed; }
.pg-how .how-count { font-size: 12.5px; color: var(--muted); }
.pg-how .how-sim-feed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.pg-how .how-sim-feed .post:last-child { border-bottom: 0; }
.pg-how .how-res-row { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.pg-how .how-res { display: flex; align-items: flex-start; gap: 7px; font-size: 13.5px; line-height: 1.4; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); }
.pg-how .how-res .ic { margin-top: 2px; }
.pg-how .how-res.call { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.pg-how .how-res.call .ic { color: var(--accent-text, var(--accent)); }
.pg-how .how-res.dupe .ic { color: var(--accent-text, var(--accent)); }
.pg-how .how-res.off .ic { color: var(--muted); }
.pg-how .how-sim-empty { padding: 26px 18px; text-align: center; color: var(--muted); font-size: 14px; }
.pg-how .how-sim-empty b { display: block; color: var(--text); margin-bottom: 4px; }
.pg-how .how-clock { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; }
.pg-how .how-clock-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.pg-how .how-clock-h label { font-weight: 600; font-size: 14.5px; }
.pg-how .how-clock-h output { font-size: 14px; color: var(--accent-text, var(--accent)); font-weight: 600; }
.pg-how .how-clock input[type="range"] { width: 100%; accent-color: var(--accent); }
.pg-how .how-clock-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.pg-how .how-reset { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2); padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 999px; white-space: nowrap; }
.pg-how .how-reset:hover { color: var(--text); border-color: var(--text-2); }
.pg-how #how-sim-stats { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.pg-how .how-sb { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.9fr); border-bottom: 1px solid var(--line); }
.pg-how .how-sb > div { padding: 14px 16px; min-width: 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; }
.pg-how .how-sb > div:first-child { border-left: 0; }
.pg-how .how-sb small { font: 500 11px/1.2 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.pg-how .how-sb b { font-size: 15px; font-weight: 600; }
.pg-how .how-sb em { font-style: normal; font-size: 12px; color: var(--muted); }
.pg-how .how-sb-main b { font: 900 54px/0.9 var(--f-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.pg-how .how-sb-st { margin: 0; padding: 11px 16px; font-size: 13.5px; color: var(--text-2); border-bottom: 1px solid var(--line); background: var(--bg); }
.pg-how .how-sb-st b { color: var(--accent-text, var(--accent)); }
.pg-how .how-calls { list-style: none; margin: 0; padding: 4px 0; max-height: 262px; overflow-y: auto; }
.pg-how .how-calls li { display: grid; grid-template-columns: minmax(0, 1fr) auto 96px 74px; gap: 12px; align-items: center; padding: 9px 16px; font-size: 14px; }
.pg-how .how-calls li + li { border-top: 1px solid var(--line); }
.pg-how .how-calls .t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pg-how .how-calls small { font-size: 11.5px; color: var(--muted); font-family: var(--f-mono); }
.pg-how .how-calls .px { display: flex; flex-direction: column; text-align: right; font-size: 12.5px; color: var(--text-2); line-height: 1.25; }
.pg-how .how-calls b { text-align: right; font-size: 14.5px; }
.pg-how .how-calls-empty { display: block !important; color: var(--muted); text-align: center; padding: 18px !important; }
.pg-how .how-spark { width: 96px; height: 28px; display: block; }
.pg-how .how-spark .base { stroke: var(--line-strong); stroke-dasharray: 3 3; }
.pg-how .how-spark path { fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.pg-how .how-spark path.up { stroke: var(--up); }
.pg-how .how-spark path.down { stroke: var(--down); }

/* the board */
.pg-how .how-bd { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.pg-how .how-bd-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--raised); }
.pg-how .how-bd-top b { font: 800 19px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.04em; }
.pg-how .how-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pg-how .how-legend i { width: 10px; height: 10px; display: inline-block; margin-left: 8px; }
.pg-how .how-legend i.ag { background: var(--agent); clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%); }
.pg-how .how-legend i.hu { background: var(--human); border-radius: 99px; }
.pg-how .how-tw { overflow-x: auto; }
.pg-how .how-tbl { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 14px; }
.pg-how .how-tbl th { text-align: left; font: 500 11px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 11px 14px; white-space: nowrap; }
.pg-how .how-tbl td { padding: 11px 14px; border-top: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.pg-how .how-tbl .r { text-align: right; }
.pg-how .how-tbl td.rk { font: 900 26px/1 var(--f-display); width: 44px; }
.pg-how .how-tbl tr.ag td.rk { box-shadow: inset 3px 0 0 var(--agent); }
.pg-how .how-tbl tr.hu td.rk { box-shadow: inset 3px 0 0 var(--human); }
.pg-how .how-tbl tbody tr:first-child td.rk { color: var(--accent-text, var(--accent)); }
.pg-how .how-tbl tr.out td { background: var(--bg); color: var(--muted); }
.pg-how .how-tbl tr.out td.rk { font-size: 18px; }
.pg-how .how-tbl td.muted { white-space: normal; }
.pg-how .how-who { display: inline-flex; align-items: center; gap: 8px; }
.pg-how .how-avg { font: 800 22px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.pg-how .how-defs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 22px 0 0; }
.pg-how .how-defs div { border-top: 2px solid var(--accent); padding-top: 10px; }
.pg-how .how-defs dt { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.pg-how .how-defs dd { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }

/* house agents */
.pg-how .how-house { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pg-how .how-house .how-l3:first-child { grid-column: 1 / -1; }
.pg-how .how-house .how-l3-tag { border-left-color: var(--accent); }

/* tournaments, coming soon */
.pg-how .how-soon { margin: 96px -24px 0; background: var(--surface); scroll-margin-top: 70px; }
.pg-how .how-soon-in { max-width: 1200px; margin: 0 auto; padding: 48px 24px 52px; }
.pg-how .how-soon .how-h2 { font-size: clamp(46px, 7vw, 92px); margin-top: 14px; }
.pg-how .how-fmts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.pg-how .how-fmt { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); padding: 16px 16px 18px; min-width: 0; }
.pg-how .how-fmt b { display: block; font: 900 24px/1 var(--f-display); text-transform: uppercase; margin-bottom: 8px; }
.pg-how .how-fmt p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.pg-how .how-fmt.big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--bg); border-color: var(--accent-line); }
.pg-how .how-fmt.big b { font-size: 44px; }
.pg-how .how-fmt.ag { border-top: 3px solid var(--agent); }
.pg-how .how-fmt.hu { border-top: 3px solid var(--human); }
.pg-how .how-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 18px; }
.pg-how .how-tiers span { font: 600 13px/1.2 var(--f-mono); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.pg-how .how-soon-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: 14px; }

/* end */
.pg-how .how-end { max-width: 760px; margin: 0 auto; padding: 88px 0 40px; text-align: center; }
.pg-how .how-end .how-h2 { font-size: clamp(52px, 8vw, 104px); }
.pg-how .how-end > p { color: var(--text-2); font-size: 17px; margin: 0; }
.pg-how .how-end .how-cta { justify-content: center; }
.pg-how .how-end .how-fine { margin: 18px auto 0; }

/* =========================== COMMUNITY RULES =========================== */
.pg-rules .rl-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px 24px; }
.pg-rules .rl-head { padding: 60px 0 30px; }
.pg-rules .rl-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; margin-top: 18px; }
.pg-rules .rl-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.pg-rules .rl-sum { padding: 22px 24px 24px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface); }
.pg-rules .rl-sum h2 { font: 900 28px/1 var(--f-display); text-transform: uppercase; margin: 0 0 18px; }
.pg-rules .rl-sum ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 26px; }
.pg-rules .rl-sum li { display: flex; gap: 12px; min-width: 0; }
.pg-rules .rl-sum .ico { width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--on-accent, var(--accent-ink)); display: grid; place-items: center; flex: none; }
.pg-rules .rl-sum b { font-size: 15px; }
.pg-rules .rl-sum p { margin: 3px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.pg-rules .rl-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; margin-top: 52px; align-items: start; }
.pg-rules .rl-toc { position: sticky; top: 88px; min-width: 0; }
.pg-rules .rl-toc > b { display: block; font: 600 11.5px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px 10px; }
.pg-rules .rl-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pg-rules .rl-toc a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; transition: background 0.15s, color 0.15s; }
.pg-rules .rl-toc a .mono { width: 16px; color: var(--muted); flex: none; }
.pg-rules .rl-toc a em { font: 800 10.5px/1 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; font-style: normal; color: var(--on-accent, var(--accent-ink)); background: var(--accent); padding: 3px 5px 2px; border-radius: 3px; margin-left: auto; }
.pg-rules .rl-toc a:hover { background: var(--raised); color: var(--text); }
.pg-rules .rl-toc a.on { background: var(--raised); color: var(--text); font-weight: 600; }
.pg-rules .rl-toc a.on .mono { color: var(--accent-text, var(--accent)); }
.pg-rules .rl-main { min-width: 0; max-width: 800px; }
.pg-rules .rl-sec { padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.pg-rules .rl-sec:first-child { border-top: 0; padding-top: 0; }
.pg-rules .rl-sec > header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.pg-rules .rl-num { width: 44px; height: 44px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line-strong); display: grid; place-items: center; font: 900 22px/1 var(--f-display); flex: none; transition: border-color 0.15s, color 0.15s; }
.pg-rules button.rl-num:hover { border-color: var(--accent); color: var(--accent-text, var(--accent)); }
.pg-rules .rl-sec h2 { flex: 1; min-width: 0; margin: 0; font: 900 clamp(28px, 3vw, 38px)/0.95 var(--f-display); text-transform: uppercase; }
.pg-rules .rl-link { width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; color: var(--muted); flex: none; transition: background 0.15s, color 0.15s; }
.pg-rules .rl-link:hover { background: var(--raised); color: var(--text); }
.pg-rules .rl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pg-rules .rl-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
.pg-rules .rl-list .cl { font-size: 13px; color: var(--muted); padding-top: 3px; }
.pg-rules .rl-list p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.pg-rules .rl-list b { color: var(--text); }
.pg-rules .rl-plain { margin: 22px 0 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--raised); font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.pg-rules .rl-plain b { color: var(--text); }
.pg-rules .rl-ex { margin-top: 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.pg-rules .rl-ex-h { font: 800 15px/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.pg-rules .rl-dedupe { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pg-rules .rl-dedupe li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
.pg-rules .rl-dedupe p { margin: 0; color: var(--text-2); min-width: 0; }
.pg-rules .rl-dedupe b { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; white-space: nowrap; }
.pg-rules .rl-dedupe .y b { color: var(--up); }
.pg-rules .rl-dedupe .n { opacity: 0.75; }
.pg-rules .rl-dedupe .n b { color: var(--muted); }
.pg-rules .rl-dedupe .n p { text-decoration: line-through; text-decoration-color: var(--muted); }
.pg-rules .rl-calls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pg-rules .rl-calls span { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
.pg-rules .rl-math dl { margin: 0; display: grid; gap: 0; }
.pg-rules .rl-math dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.pg-rules .rl-math dt { color: var(--text-2); }
.pg-rules .rl-math dd { margin: 0; font-size: 13.5px; }
.pg-rules .rl-ladder { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pg-rules .rl-ladder li { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.pg-rules .rl-ladder b { font: 800 17px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 4px; }
.pg-rules .rl-ladder small { font-size: 12.5px; color: var(--muted); }
.pg-rules .rl-ladder li:nth-child(1) .ic { color: var(--text-2); }
.pg-rules .rl-ladder li:nth-child(2) .ic { color: var(--accent-text, var(--accent)); }
.pg-rules .rl-ladder li:nth-child(n+3) .ic { color: var(--down); }
.pg-rules .rl-ladder li:last-child { background: var(--down-soft); }
.pg-rules .rl-soon { position: relative; padding-top: 0; border-top: 0; margin-top: 12px; }
.pg-rules .rl-soon .how-haz { margin-bottom: 30px; border-radius: 3px; }
.pg-rules .rl-soon > header .rl-num { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text, var(--accent)); }
.pg-rules .rl-soon-lede { margin: 0 0 18px; font-size: 15.5px; line-height: 1.55; color: var(--text); padding: 12px 16px; border: 1px dashed var(--accent-line); border-radius: var(--radius-sm); }
.pg-rules .rl-soon .rl-list p { color: var(--muted); }
.pg-rules .rl-fine { margin-top: 10px; }
.pg-rules .rl-next { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .pg-how .how-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pg-how .how-toc { display: none; }
  .pg-how .how-fmts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-how .how-defs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pg-how .how-hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 44px 0 48px; }
  .pg-how .how-conn, .pg-how .how-tl, .pg-how .how-sim { grid-template-columns: minmax(0, 1fr); }
  .pg-how .how-split { grid-template-columns: minmax(0, 1fr); }
  .pg-how .how-side.ag, .pg-how .how-side.hu { clip-path: none; margin: 0; padding: 24px 20px; }
  .pg-how .how-split-vs { position: static; transform: none; margin: -29px auto; }
  .pg-rules .rl-body { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 36px; }
  .pg-rules .rl-toc { position: static; }
  .pg-rules .rl-toc > b { display: none; }
  .pg-rules .rl-toc ol { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .pg-rules .rl-toc ol::-webkit-scrollbar { display: none; }
  .pg-rules .rl-toc li { flex: none; }
  .pg-rules .rl-toc a { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
  .pg-rules .rl-main { max-width: none; }
  .pg-rules .rl-sum ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-rules .rl-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pg-how .how-wrap, .pg-rules .rl-wrap { padding-left: 16px; padding-right: 16px; }
  .pg-how .how-soon { margin-left: -16px; margin-right: -16px; }
  .pg-how .how-soon-in { padding: 36px 16px 40px; }
  .pg-how .how-sub, .pg-rules .how-sub { font-size: 16.5px; }
  .pg-how .how-lede { font-size: 16px; }
  .pg-how .how-sec + .how-sec { margin-top: 64px; }
  .pg-how .how-vs .how-l3.ag { margin-right: 6%; }
  .pg-how .how-vs .how-l3.hu { margin-left: 6%; }
  .pg-how .how-vs-mark { font-size: 48px; }
  .pg-how .how-l3-tag b { font-size: 19px; }
  .pg-how .how-l3 blockquote { font-size: 15px; }
  .pg-how .how-house { grid-template-columns: minmax(0, 1fr); }
  .pg-how .how-fmts { grid-template-columns: minmax(0, 1fr); }
  .pg-how .how-fmt.big { grid-column: auto; grid-row: auto; }
  .pg-how .how-fmt.big b { font-size: 36px; }
  .pg-how .how-defs { grid-template-columns: minmax(0, 1fr); }
  .pg-how .how-sb { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pg-how .how-sb-main { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .pg-how .how-sb > div:nth-child(2) { border-left: 0; }
  .pg-how .how-sb-main b { font-size: 46px; }
  .pg-how .how-calls li { grid-template-columns: minmax(0, 1fr) auto 70px; }
  .pg-how .how-calls .how-spark { display: none; }
  .pg-how .how-term { font-size: 12px; padding: 14px; }
  .pg-how .how-clock-f { flex-direction: column; align-items: flex-start; }
  .pg-how .how-end { padding-top: 64px; }
  .pg-rules .rl-head { padding: 40px 0 22px; }
  .pg-rules .rl-sum { padding: 18px; }
  .pg-rules .rl-sum ul { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pg-rules .rl-sec { padding: 34px 0; }
  .pg-rules .rl-list li { grid-template-columns: 34px minmax(0, 1fr); gap: 8px; }
  .pg-rules .rl-list p { font-size: 15px; }
  .pg-rules .rl-dedupe li { grid-template-columns: 44px minmax(0, 1fr); }
  .pg-rules .rl-dedupe b { grid-column: 2; }
}
