.kxm-page { box-sizing:border-box; margin:0; padding:28px 18px; background:#eddfcf; color:#0b2b45; font-family:Arial,Helvetica,sans-serif; -webkit-font-smoothing:antialiased; }
    .kxm-guide,.kxm-guide * { box-sizing:border-box; }
    .kxm-guide {
      --paper:#fff1e5; --ivory:#fff9f0; --navy:#0b2b45; --forest:#28543a;
      --burgundy:#7a1f1b; --gold:#b58a3a; --line:#dfc3a4; --ink:#21313b;
      --serif:Georgia,Cambria,"Times New Roman",serif;
      width:min(1100px,100%); margin-inline:auto; padding:34px 36px 26px;
      border:1px solid #dbc1a7; border-radius:25px; color:var(--ink);
      background:radial-gradient(ellipse at 15% 0%,#ffffffa8,transparent 45%),linear-gradient(130deg,#fff9f1,#fff1e5 75%);
      box-shadow:0 16px 40px #61452d1a,inset 0 0 0 2px #ffffff8c;
      font:400 1rem/1.5 Arial,Helvetica,sans-serif;
      color-scheme:light;
    }
    .kxm-guide h1,.kxm-guide h2,.kxm-guide h3,.kxm-guide p,.kxm-guide ul,.kxm-guide dl { margin:0; }
    .kxm-guide h1,.kxm-guide h2,.kxm-guide h3 { color:var(--navy); font-family:var(--serif); }
    .kxm-guide h1 { font-size:clamp(2.3rem,4.6vw,3.65rem); line-height:1.08; letter-spacing:-.025em; }
    .kxm-guide h2 { font-size:1.85rem; line-height:1.15; letter-spacing:-.012em; }
    .kxm-guide h3 { font-size:1.4rem; line-height:1.15; }
    .kxm-guide strong { font-weight:700; }
    .kxm-guide svg { display:block; flex:none; }
    .kxm-defs { position:absolute; width:0; height:0; overflow:hidden; }
    .kxm-sr { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
    .kxm-header { display:grid; grid-template-columns:minmax(0,1fr) 270px; gap:30px; align-items:center; padding-block-end:25px; }
    .kxm-brand { display:flex; align-items:center; gap:14px; margin-block-end:11px!important; color:var(--navy); font:700 .95rem/1.3 var(--serif); letter-spacing:.045em; }
    .kxm-brand::before,.kxm-brand::after { content:""; flex:1; min-width:20px; height:1px; background:#c69b60; }
    .kxm-brand span { text-align:center; }
    .kxm-subtitle { display:inline-block; margin-block:15px 10px!important; padding:5px 20px; border-radius:999px; background:#dce8cb; color:#284b31; font-weight:700; font-size:1.06rem; }
    .kxm-intro { max-width:760px; font-size:1.05rem; line-height:1.45; }
    .kxm-hero-image { display:block; width:270px; max-width:100%; height:auto; max-height:225px; object-fit:contain; justify-self:end; filter:drop-shadow(0 8px 10px #49311f1c); }
    .kxm-section { padding-block:21px 3px; border-block-start:1px solid #c9a06d; margin-block-start:21px; }
    .kxm-header + .kxm-section { margin-block-start:0; }
    .kxm-section-head { display:flex; align-items:center; flex-wrap:wrap; gap:13px; margin-block-end:14px; }
    .kxm-step { display:inline-grid; place-items:center; flex:none; min-width:48px; min-height:35px; padding:3px 11px; border-radius:18px; background:linear-gradient(135deg,#42623b,#28543a); color:#fff9ee; font:700 1.45rem/1 var(--serif); box-shadow:inset 0 1px 0 #ffffff33; }
    .kxm-lead { margin-block-end:15px!important; line-height:1.5; }
    .kxm-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
    .kxm-card { min-width:0; display:grid; grid-template-columns:66px minmax(0,1fr); gap:16px; align-items:center; padding:18px 16px; border:1px solid #e2c5a4; border-radius:15px; background:linear-gradient(140deg,#fffaf13b,#f4e5d443); box-shadow:0 3px 5px #7553340d,inset 0 1px 0 #ffffffb3; }
    .kxm-card-icon { width:66px; height:74px; }
    .kxm-card-copy { min-width:0; }
    .kxm-card h3 { margin-block-end:5px; }
    .kxm-analogy { margin-block-end:7px!important; font:italic 600 1rem/1.35 var(--serif); color:#4a4540; }
    .kxm-card-copy > p:not(.kxm-analogy) { line-height:1.4; }
    .kxm-note { margin-block-start:12px!important; text-align:center; font-size:.96rem; line-height:1.45; }
    .kxm-level-sc { --level-fill:#dcead8; --level-ink:#28543a; }
    .kxm-level-mc { --level-fill:#e7dfc5; --level-ink:#765a24; }
    .kxm-level-lc { --level-fill:#eedad5; --level-ink:#7a1f1b; }
    .kxm-level .kxm-card-icon { color:var(--level-ink); }
    .kxm-level-name { white-space:nowrap; font-size:1.28rem!important; }
    .kxm-pill { display:inline-block; padding:3px 13px; border-radius:999px; background:#dce8cb; color:var(--forest); font-weight:700; line-height:1.3; }
    .kxm-level .kxm-pill { display:block; max-width:16rem; border-radius:12px; background:var(--level-fill); color:var(--level-ink); white-space:normal; font-weight:650; line-height:1.35; }
    .kxm-level .kxm-pill b { display:block; margin-bottom:2px; font-size:1.15rem; }
    .kxm-level .kxm-analogy { margin-block-end:8px!important; }
    .kxm-score .kxm-card { grid-template-columns:55px minmax(0,1fr); gap:13px; padding-inline:14px; align-items:start; }
    .kxm-score .kxm-card-icon { width:55px; height:68px; }
    .kxm-score h3 { font-size:1.21rem; margin-block-end:10px; }
    .kxm-ku { display:inline-block; padding:3px 15px; border-radius:999px; background:#dce8cb; color:var(--forest); font-weight:700; white-space:nowrap; }
    .kxm-elimination { display:grid; gap:6px; font-size:.91rem; line-height:1.25; }
    .kxm-elimination > div { display:flex; align-items:center; justify-content:space-between; gap:7px; white-space:nowrap; }
    .kxm-elimination .kxm-ku { min-width:78px; padding:2px 7px; text-align:center; }
    .kxm-pool { display:grid; grid-template-columns:66px minmax(0,1fr); gap:18px; align-items:center; padding:15px 19px; margin-block-end:17px; border:1px solid #d8dfbd; border-radius:14px; background:#e2e8cc; }
    .kxm-pool svg { width:62px; height:62px; }
    .kxm-list { padding-inline-start:20px; line-height:1.5; }
    .kxm-list li + li { margin-block-start:5px; }
    .kxm-list li::marker { color:var(--forest); }
    .kxm-terms { display:grid; gap:8px; margin:14px 0 16px!important; }
    .kxm-terms > div { display:grid; grid-template-columns:minmax(9rem,14rem) minmax(0,1fr); gap:10px; align-items:stretch; }
    .kxm-terms dt { display:grid; place-items:center; margin:0; padding:9px 12px; border:1px solid #395b38; border-radius:9px; background:#375b38; color:#fff9ee; font:700 1rem/1.3 var(--serif); text-align:center; }
    .kxm-terms dd { margin:0; padding:9px 14px; border:1px solid #e2c5a4; border-radius:9px; background:#fff8ee; line-height:1.4; }
    .kxm-equations { display:grid; gap:9px; margin-block:15px!important; }
    .kxm-equations > div { display:grid; grid-template-columns:158px minmax(0,1fr); gap:10px; align-items:stretch; }
    .kxm-equations dt { display:grid; place-items:center; padding:9px 12px; border:1px solid #395b38; border-radius:9px; background:#375b38; color:#fff9ee; font:700 1.12rem/1.3 var(--serif); text-align:center; }
    .kxm-equations dd { display:flex; gap:12px; align-items:center; margin:0; padding:9px 14px; border:1px solid #e2c5a4; border-radius:9px; background:#fff8ee; line-height:1.4; }
    .kxm-equals { font-size:1.2rem; font-weight:700; }
    .kxm-caveats { display:flex; flex-wrap:wrap; gap:6px 27px; margin-block:10px 19px!important; padding-inline-start:20px; font-size:.93rem; }
    .kxm-example { display:grid; grid-template-columns:1fr 1.1fr; gap:20px; align-items:stretch; }
    .kxm-example-copy,.kxm-example-table { min-width:0; padding:18px; border:1px solid #d7c7a3; border-radius:15px; background:linear-gradient(135deg,#e5e9ce77,#fff8ee77); }
    .kxm-example-title { display:flex; align-items:center; gap:12px; margin-block-end:12px; }
    .kxm-example-title svg { width:40px; height:44px; }
    .kxm-example-copy h3 { color:var(--forest); }
    .kxm-example-copy .kxm-list { font-size:.95rem; }
    .kxm-example-copy mark { padding:2px 7px; border-radius:7px; background:#dce8cb; color:var(--forest); font-weight:700; }
    .kxm-example-tag { display:inline-block; padding:4px 12px; border:1px solid #e3c18b; border-radius:999px; background:#f6e2bc; color:#40382b; font-size:.78rem; font-weight:700; letter-spacing:.025em; text-transform:uppercase; line-height:1.4; }
    .kxm-example-table .kxm-example-tag { margin-block-end:12px; }
    .kxm-table { width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; border:1px solid #d4b995; border-radius:9px; background:#fff8ee; font-size:.95rem; line-height:1.4; }
    .kxm-table th,.kxm-table td { padding:9px 11px; border-inline-end:1px solid #dbc5a8; border-block-end:1px solid #dbc5a8; text-align:left; vertical-align:middle; }
    .kxm-table tr > :last-child { border-inline-end:0; }
    .kxm-table tbody tr:last-child > *,.kxm-table tfoot tr:last-child > * { border-block-end:0; }
    .kxm-table thead { color:#fff9ee; background:#355a38; }
    .kxm-table thead th { font-weight:700; }
    .kxm-table tbody th { font-weight:600; }
    .kxm-table tbody tr:nth-child(even) { background:#f8eddf; }
    .kxm-table tfoot { color:var(--forest); background:#dfe8c9; font-weight:700; }
    .kxm-example-table td:not(:first-child),.kxm-example-table th:not(:first-child) { text-align:center; }
    .kxm-example-table tbody tr:last-child > * { border-block-end:1px solid #dbc5a8; }
    .kxm-row-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:13px; }
    .kxm-same-ku { display:grid; grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr); align-items:center; gap:17px; margin-block-start:15px; }
    .kxm-same-ku > p { padding:14px 15px; border:1px solid #dfc2a0; border-radius:12px; background:#fff7eb; text-align:center; font-size:1.06rem; line-height:1.45; }
    .kxm-same-ku > p:last-child { background:#e2e8cd; border-color:#c2cca1; }
    .kxm-arrow { color:#88632e; font-size:2.1rem; line-height:1; text-align:center; }
    .kxm-part-divider { display:flex; align-items:center; gap:15px; margin-block:28px 16px!important; color:#4c5360; font:700 .78rem/1.35 var(--serif); letter-spacing:.035em; text-align:center; text-transform:uppercase; }
    .kxm-part-divider::before,.kxm-part-divider::after { content:""; flex:1; height:1px; background:#c79c62; }
    .kxm-analogy-panel { display:grid; grid-template-columns:285px minmax(0,1fr); gap:25px; align-items:center; padding:22px 25px; border:1px solid #e1c5a7; border-radius:17px; background:radial-gradient(circle at 12% 20%,#fffaf2 0,transparent 32%),linear-gradient(135deg,#f1ddc9,#fff4e8 72%); box-shadow:0 5px 12px #76502f12,inset 0 1px 0 #ffffffc7; }
    .kxm-analogy-figure { min-width:0; padding-inline-end:23px; border-inline-end:1px solid #d2ae7a; }
    .kxm-analogy-figure img { display:block; width:100%; height:auto; max-height:235px; margin-inline:auto; object-fit:contain; filter:drop-shadow(0 7px 8px #49311f1a); }
    .kxm-analogy-copy h2 { margin-block-end:8px; font-size:1.9rem; }
    .kxm-analogy-copy > p { line-height:1.45; }
    .kxm-analogy-example { margin-block-start:13px!important; padding:12px 15px; border:1px solid #ead1b2; border-radius:11px; background:#fff8edb8; color:#3e3a34; font:italic 600 .98rem/1.45 var(--serif); }
    .kxm-future-note { margin-block:13px 16px!important; padding:13px 16px; border-inline-start:4px solid var(--gold); border-radius:0 11px 11px 0; background:#f4e5ce; color:#253b35; line-height:1.5; }
    .kxm-holding-rule { width:fit-content; max-width:100%; margin:14px auto!important; padding:8px 22px; border-radius:999px; color:#fff9ee !important; background:#375c3b; font:700 1.3rem/1.35 var(--serif); text-align:center; }
    .kxm-outcomes { display:grid; gap:9px; margin-block:15px 10px; }
    .kxm-outcome { display:grid; grid-template-columns:25px minmax(0,1fr) 24px minmax(0,1.15fr); gap:12px; align-items:center; padding:10px 15px; border:1px solid #dfc3a4; border-radius:10px; background:#fff6e8; font-size:.96rem; }
    .kxm-move { color:var(--forest); font-size:1.5rem; font-weight:700; line-height:1; text-align:center; }
    .kxm-move-down { color:var(--burgundy); }
    .kxm-move-flat { color:#765a24; }
    .kxm-outcome > :nth-child(3) { color:#88632e; font-size:1.2rem; text-align:center; }
    .kxm-special { display:grid; grid-template-columns:1fr 1fr; gap:26px; align-items:start; }
    .kxm-zero { display:grid; grid-template-columns:42px minmax(0,1fr); align-items:start; gap:12px; padding:17px; border:1px solid #d7dfb8; border-radius:14px; background:#e1e8ca; }
    .kxm-zero svg { width:42px; height:48px; }
    .kxm-zero h3 { color:var(--forest); font-size:1.28rem; margin-block-end:8px; }
    .kxm-zero p { font-size:.95rem; line-height:1.45; }
    .kxm-time-zone { display:inline-block; padding:4px 13px; border:1px solid #e2c595; border-radius:999px; color:#493b25; background:#f5e4c7; font-size:.85rem; font-weight:700; }
    .kxm-market-table { margin-block-start:14px; font-size:.94rem; }
    .kxm-market-table thead th:first-child { width:24%; }
    .kxm-market-table thead th:nth-child(2) { width:23%; }
    .kxm-market-table tbody td:nth-child(2) { white-space:nowrap; }
    .kxm-ranked { display:flex; align-items:center; justify-content:center; gap:10px; margin-block-start:15px!important; padding:10px 16px; border:1px solid #ced8ab; border-radius:10px; background:#dce7bf; color:#28442d; font-weight:700; text-align:center; }
    .kxm-ranked svg { width:23px; height:23px; }
    .kxm-footer { margin-block-start:25px; }
    .kxm-conclusion { padding:12px 18px; border-radius:12px; color:#fff9ee !important; background:#28543a; font:italic 700 1.15rem/1.4 var(--serif); text-align:center; }
    .kxm-footer-brand { margin-block-start:13px!important; color:#45505a; font-size:.85rem; font-weight:600; letter-spacing:.035em; text-align:center; }
    @media (max-width:900px) {
      .kxm-guide { padding:28px 25px; }
      .kxm-header { grid-template-columns:minmax(0,1fr) 220px; gap:20px; }
      .kxm-hero-image { width:220px; max-height:185px; }
      .kxm-cards { gap:12px; }
      .kxm-card { grid-template-columns:48px minmax(0,1fr); gap:10px; padding:15px 12px; }
      .kxm-card-icon { width:48px; height:62px; }
      .kxm-level-name { font-size:1.12rem!important; }
      .kxm-score .kxm-card { grid-template-columns:1fr; }
      .kxm-score .kxm-card-icon { width:45px; height:48px; }
      .kxm-example { grid-template-columns:1fr; gap:15px; }
      .kxm-example-table .kxm-table { font-size:1rem; }
    }
    @media (max-width:640px), (orientation:portrait) and (max-width:1100px) {
      .kxm-page { padding:12px 10px; }
      .kxm-guide { padding:22px 18px; border-radius:19px; font-size:1rem; }
      .kxm-header { grid-template-columns:1fr; gap:10px; padding-block-end:10px; align-items:start; }
      .kxm-hero-image { width:min(280px,100%); max-height:none; margin-block-start:5px; justify-self:center; }
      .kxm-guide h1 { font-size:clamp(1.95rem,6.3vw,2.8rem); line-height:1.09; }
      .kxm-brand { font-size:.74rem; letter-spacing:.025em; gap:7px; margin-block-end:13px!important; }
      .kxm-brand::before { display:none; }
      .kxm-brand::after { min-width:10px; }
      .kxm-subtitle { font-size:.87rem; padding:5px 12px; margin-block:13px 10px!important; }
      .kxm-intro { font-size:.96rem; line-height:1.5; }
      .kxm-section { margin-block-start:22px; padding-block-start:18px; }
      .kxm-guide h2 { font-size:1.5rem; line-height:1.2; }
      .kxm-section-head { flex-wrap:nowrap; align-items:start; gap:10px; }
      .kxm-step { min-width:42px; min-height:32px; font-size:1.25rem; }
      .kxm-cards { grid-template-columns:1fr; gap:13px; }
      .kxm-card { grid-template-columns:64px minmax(0,1fr); padding:18px 16px; gap:15px; }
      .kxm-card-icon { width:64px; height:72px; }
      .kxm-guide h3 { font-size:1.37rem; }
      .kxm-level-name { font-size:1.32rem!important; white-space:normal; }
      .kxm-score .kxm-card { grid-template-columns:57px minmax(0,1fr); gap:14px; padding:17px 14px; }
      .kxm-score .kxm-card-icon { width:57px; height:65px; }
      .kxm-score h3 { font-size:1.19rem; }
      .kxm-elimination { font-size:.96rem; }
      .kxm-pool { grid-template-columns:42px minmax(0,1fr); padding:16px 13px; gap:11px; }
      .kxm-pool svg { width:42px; height:50px; }
      .kxm-pool .kxm-list { padding-inline-start:16px; }
      .kxm-terms > div { grid-template-columns:1fr; gap:0; }
      .kxm-terms dt { justify-items:start; border-radius:10px 10px 0 0; padding:8px 13px; }
      .kxm-terms dd { border-radius:0 0 10px 10px; }
      .kxm-equations > div { grid-template-columns:1fr; gap:0; }
      .kxm-equations dt { justify-items:start; border-radius:10px 10px 0 0; padding:8px 13px; }
      .kxm-equations dd { border-radius:0 0 10px 10px; padding:12px 13px; gap:9px; }
      .kxm-caveats { display:block; }
      .kxm-caveats li + li { margin-block-start:7px; }
      .kxm-example-copy,.kxm-example-table { padding:15px 12px; }
      .kxm-example-table .kxm-table { font-size:.89rem; }
      .kxm-example-table th,.kxm-example-table td { padding:9px 7px; }
      .kxm-row-head { justify-content:start; }
      .kxm-example-tag { font-size:.7rem; padding-inline:9px; }
      .kxm-same-ku { grid-template-columns:1fr; gap:9px; }
      .kxm-arrow { transform:rotate(90deg); font-size:1.9rem; }
      .kxm-same-ku > p { padding:14px 12px; }
      .kxm-part-divider { gap:8px; font-size:.66rem; letter-spacing:.015em; }
      .kxm-analogy-panel { grid-template-columns:1fr; gap:16px; padding:18px 15px; }
      .kxm-analogy-figure { padding:0 0 15px; border-inline-end:0; border-block-end:1px solid #d2ae7a; }
      .kxm-analogy-figure img { max-width:255px; max-height:230px; }
      .kxm-analogy-copy h2 { font-size:1.55rem; }
      .kxm-analogy-example { font-size:.94rem; }
      .kxm-future-note { padding:12px 13px; }
      .kxm-holding-rule { font-size:1.15rem; border-radius:12px; padding:10px 14px; }
      .kxm-outcome { grid-template-columns:24px minmax(0,1fr); gap:5px 10px; padding:13px; }
      .kxm-outcome > :nth-child(3) { display:none; }
      .kxm-outcome > :last-child { grid-column:2; }
      .kxm-special { grid-template-columns:1fr; gap:17px; }
      /* Schedule rows become labelled cards; native table roles are retained. */
      .kxm-market-table { display:block; border:0; border-radius:0; background:none; }
      .kxm-market-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
      .kxm-market-table tbody { display:grid; gap:12px; }
      .kxm-market-table tbody tr { display:block; padding:14px 15px; border:1px solid #dfc3a4; border-radius:12px; background:#fff7eb; }
      .kxm-market-table tbody th,.kxm-market-table tbody td { display:block; border:0; padding:0; width:auto; }
      .kxm-market-table tbody th { margin-block-end:8px; color:var(--forest); font-size:1.07rem; font-weight:700; }
      .kxm-market-table tbody td:nth-child(2) { margin-block-end:7px; white-space:normal; font-weight:700; }
      .kxm-market-table tbody td:nth-child(2)::before { content:"Time: "; font-weight:400; }
      .kxm-ranked { align-items:start; text-align:left; }
      .kxm-ranked svg { margin-block-start:1px; }
      .kxm-conclusion { font-size:1.1rem; }
    }
    @media (max-width:360px) {
      .kxm-guide { padding-inline:14px; }
      .kxm-header { grid-template-columns:1fr; gap:7px; }
      .kxm-hero-image { width:min(235px,100%); }
      .kxm-brand { font-size:.67rem; }
      .kxm-guide h1 { font-size:1.85rem; }
      .kxm-score .kxm-card { grid-template-columns:43px minmax(0,1fr); gap:10px; padding-inline:11px; }
      .kxm-score .kxm-card-icon { width:43px; height:52px; }
      .kxm-elimination { font-size:.87rem; }
      .kxm-elimination .kxm-ku { min-width:68px; padding-inline:5px; }
      .kxm-example-table .kxm-table { font-size:.82rem; }
      .kxm-example-table th,.kxm-example-table td { padding-inline:5px; }
    }
    @media print {
      @page { size:A4; margin:12mm; }
      .kxm-page { padding:0; background:#fff; }
      .kxm-guide { width:100%; border:0; border-radius:0; padding:0; box-shadow:none; font-size:10pt; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
      .kxm-guide h1 { font-size:28pt; }
      .kxm-guide h2 { font-size:17pt; }
      .kxm-guide h3 { font-size:12pt; }
      .kxm-header { grid-template-columns:1fr 180px; }
      .kxm-hero-image { width:180px; max-height:145px; }
      .kxm-section { margin-block-start:15px; padding-block-start:12px; break-inside:avoid; }
      .kxm-cards { grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
      .kxm-card { grid-template-columns:1fr; padding:10px; gap:8px; }
      .kxm-card-icon { width:46px; height:50px; }
      .kxm-score .kxm-card { grid-template-columns:1fr; }
      .kxm-level-name { font-size:11pt!important; }
      .kxm-example { grid-template-columns:1fr 1.1fr; gap:12px; }
      .kxm-example-copy,.kxm-example-table { padding:11px; }
      .kxm-analogy-panel { grid-template-columns:185px minmax(0,1fr); gap:18px; padding:15px 18px; break-inside:avoid; }
      .kxm-analogy-figure { padding-inline-end:16px; border-inline-end:1px solid #d2ae7a; border-block-end:0; }
      .kxm-analogy-figure img { max-height:155px; }
      .kxm-analogy-copy h2 { font-size:16pt; }
      .kxm-analogy-example { font-size:9pt; }
      .kxm-special { grid-template-columns:1fr 1fr; gap:14px; }
      .kxm-table,.kxm-market-table { display:table; font-size:9pt; border:1px solid #d4b995; border-radius:6px; background:#fff8ee; }
      .kxm-market-table thead { display:table-header-group; position:static; width:auto; height:auto; clip-path:none; white-space:normal; }
      .kxm-market-table tbody { display:table-row-group; }
      .kxm-market-table tbody tr { display:table-row; padding:0; border:0; }
      .kxm-market-table tbody th,.kxm-market-table tbody td { display:table-cell; padding:6px; border-block-end:1px solid #dbc5a8; font-size:9pt; }
      .kxm-market-table tbody td:nth-child(2)::before { content:none; }
      .kxm-market-table tbody td:nth-child(2) { white-space:nowrap; font-weight:400; }
      .kxm-market-table tr { break-inside:avoid; }
      .kxm-footer { break-inside:avoid; }
    }
    @media (forced-colors:active) { .kxm-guide,.kxm-card,.kxm-equations dt,.kxm-equations dd,.kxm-pool,.kxm-zero,.kxm-table { border:1px solid CanvasText; } }

/* Embedded inside the How KX Works modal */
.modal.kx-works-guide.guide-modal{
  display:flex !important;
  flex-direction:column;
  width:min(100%,1120px) !important;
  max-width:min(100%,1120px) !important;
  max-height:min(94vh,920px) !important;
  overflow:hidden !important;
  padding:0 !important;
  background:#eddfcf !important;
  color:#0b2b45 !important;
  border:0 !important;
  border-radius:18px !important;
  box-shadow:0 28px 90px rgba(11,33,32,.28);
}
.modal.kx-works-guide .kx-works-scroll{
  position:relative;
  flex:1;
  min-height:0;
  overflow:auto;
  padding:0 12px 18px;
  float:none;
}
.modal.kx-works-guide .kx-works-toolbar{
  position:sticky;
  top:10px;
  z-index:8;
  height:0;
  min-height:0;
  margin:0;
  padding:0;
  background:none;
  pointer-events:none;
  overflow:visible;
}
.modal.kx-works-guide .kx-works-toolbar .close{
  position:absolute !important;
  float:none !important;
  top:8px !important;
  right:8px !important;
  pointer-events:auto;
  width:42px;
  height:42px;
  margin:0;
  border:1px solid rgba(11,43,69,.18);
  border-radius:999px;
  background:#fff9f0;
  color:#0b2b45;
  font-size:1.45rem;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(44,49,52,.12);
}
.modal.kx-works-guide .kx-works-toolbar .close:hover{
  background:#fff;
  border-color:rgba(11,43,69,.3);
}
.modal.kx-works-guide .kxm-defs{
  position:absolute !important;
  width:0 !important;
  height:0 !important;
  overflow:hidden !important;
}
.modal.kx-works-guide .kxm-guide{
  width:100%;
  max-width:none;
  margin:0;
  clear:both;
  isolation:isolate;
}
.modal.kx-works-guide .kxm-header,
.kxm-guide > header.kxm-header{
  position:static !important;
  top:auto !important;
  z-index:auto !important;
  margin:0;
  padding-top:0;
  color:inherit !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
}
.modal.kx-works-guide .kxm-brand{
  padding-right:46px;
}
.modal.kx-works-guide .kxm-guide h1,
.modal.kx-works-guide .kxm-guide h2,
.modal.kx-works-guide .kxm-guide h3{
  color:#0b2b45 !important;
  font-family:Georgia,Cambria,"Times New Roman",serif !important;
  letter-spacing:-.012em;
}
.modal.kx-works-guide .kxm-guide h1{
  margin:0 !important;
  font-size:clamp(2.1rem,4vw,3.2rem) !important;
  font-weight:700 !important;
  line-height:1.08 !important;
}
.modal.kx-works-guide .kxm-guide h2{
  margin:0 !important;
  font-size:clamp(1.35rem,2.4vw,1.85rem) !important;
  font-weight:700 !important;
  line-height:1.15 !important;
}
.modal.kx-works-guide .kxm-guide h3{
  margin:0 0 5px !important;
  font-size:1.25rem !important;
  font-weight:700 !important;
  line-height:1.15 !important;
}
.modal.kx-works-guide .kxm-guide p,
.modal.kx-works-guide .kxm-guide li,
.modal.kx-works-guide .kxm-guide dd,
.modal.kx-works-guide .kxm-guide span{
  color:inherit;
  font-size:inherit;
  line-height:inherit;
}
.modal.kx-works-guide .kxm-intro{
  max-width:760px;
  margin:0 !important;
  color:#21313b !important;
  font-size:1.05rem !important;
  line-height:1.45 !important;
}
.modal.kx-works-guide .kxm-section{
  display:block;
  clear:both;
}
.modal.kx-works-guide .kxm-section-head{
  display:flex !important;
  align-items:center;
  flex-wrap:wrap;
  gap:13px;
  margin:0 0 14px !important;
}
.modal.kx-works-guide .kxm-step{
  display:inline-grid !important;
  place-items:center;
  min-width:48px;
  min-height:35px;
  color:#fff9ee !important;
  background:linear-gradient(135deg,#42623b,#28543a);
}
.modal.kx-works-guide .kxm-cards{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.modal.kx-works-guide .kxm-card{
  display:grid !important;
  grid-template-columns:66px minmax(0,1fr);
  gap:16px;
  align-items:center;
  min-width:0;
}
.modal.kx-works-guide .kxm-card-icon,
.modal.kx-works-guide .kxm-pool svg,
.modal.kx-works-guide .kxm-ranked svg{
  overflow:visible;
}
.modal.kx-works-guide .kxm-pool{
  overflow:visible;
}
.modal.kx-works-guide table.kxm-table{
  width:100%;
  min-width:0;
  border-collapse:separate;
  border-spacing:0;
}
.modal.kx-works-guide table.kxm-table th,
.modal.kx-works-guide table.kxm-table td{
  color:inherit;
  background:inherit;
  text-transform:none;
  letter-spacing:0;
  white-space:normal;
}
.modal.kx-works-guide table.kxm-table thead th{
  color:#fff9ee !important;
  background:#355a38 !important;
}
.modal.kx-works-guide table.kxm-table tbody tr:hover{
  background:#f8eddf;
}
@media (max-width:900px){
  .modal.kx-works-guide .kxm-cards{
    grid-template-columns:1fr;
  }
  .modal.kx-works-guide .kxm-card,
  .modal.kx-works-guide .kxm-score .kxm-card{
    grid-template-columns:64px minmax(0,1fr);
  }
}
@media (max-width:720px){
  .modal-bg.show:has(.kx-works-guide){
    align-items:stretch;
    place-items:stretch;
    padding:8px;
  }
  .modal.kx-works-guide.guide-modal{
    width:100% !important;
    max-width:100% !important;
    height:calc(100dvh - 16px) !important;
    max-height:calc(100dvh - 16px) !important;
    min-height:0 !important;
    border-radius:14px !important;
  }
  .modal.kx-works-guide .kx-works-scroll{
    flex:1 1 auto;
    min-height:0;
    overflow-x:hidden;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    touch-action:pan-y;
    padding:0 10px 24px;
  }
  .modal.kx-works-guide .kxm-guide{
    padding:12px 14px 22px;
    border-radius:16px;
    font-size:16px;
    line-height:1.55;
  }
  .modal.kx-works-guide .kxm-guide h1{
    font-size:1.7rem !important;
    line-height:1.15 !important;
  }
  .modal.kx-works-guide .kxm-guide h2{
    font-size:1.35rem !important;
  }
  .modal.kx-works-guide .kxm-hero-image{
    width:min(180px,58%) !important;
    max-height:128px !important;
    margin-inline:auto;
  }
  .modal.kx-works-guide .kxm-brand{
    color:#0b2b45;
    font-size:13px;
    letter-spacing:.02em;
  }
  .modal.kx-works-guide .kxm-intro,
  .modal.kx-works-guide .kxm-lead,
  .modal.kx-works-guide .kxm-note,
  .modal.kx-works-guide .kxm-terms dd,
  .modal.kx-works-guide .kxm-terms dt,
  .modal.kx-works-guide .kxm-card p,
  .modal.kx-works-guide .kxm-list,
  .modal.kx-works-guide .kxm-equations dd,
  .modal.kx-works-guide .kxm-equations dt,
  .modal.kx-works-guide .kxm-table,
  .modal.kx-works-guide .kxm-caveats,
  .modal.kx-works-guide .kxm-analogy-example,
  .modal.kx-works-guide .kxm-outcome,
  .modal.kx-works-guide .kxm-future-note{
    font-size:16px !important;
    line-height:1.5 !important;
    overflow-wrap:break-word;
    word-break:normal;
  }
  .modal.kx-works-guide .kxm-elimination,
  .modal.kx-works-guide .kxm-elimination > div,
  .modal.kx-works-guide .kxm-market-table tbody td{
    white-space:normal;
  }
  .modal.kx-works-guide .kxm-part-divider,
  .modal.kx-works-guide .kxm-example-tag{
    font-size:13px !important;
  }
}
