/* Advanced XRPL track charts — preview only. Palette #FFFFFF / #17141F, green, gold, purple. AA text. */
.xt-ch,.bc-ch.xt-ch{margin:22px 0;padding:16px 14px 14px;border:1px solid #D5D9E0;border-radius:18px;background:#FFFFFF;color:#17141F;max-width:100%;box-sizing:border-box;min-width:0;box-shadow:none}
.xt-ch .bc-title,.xt-ch .xt-title{margin:0 0 4px;font-weight:800;font-size:1.15rem;line-height:1.3;color:#17141F}
.xt-ch .bc-units,.xt-ch .bc-sum,.xt-ch .xt-units,.xt-ch .xt-sum{margin:0 0 8px;font-size:1rem;line-height:1.45;color:#3D4350}
.xt-ch .bc-asof,.xt-ch .xt-asof{margin:0 0 8px;font-size:1rem;line-height:1.45;font-weight:700;color:#17141F}
.xt-ch .bc-src,.xt-ch .xt-src{margin:10px 0 0;font-size:.98rem;line-height:1.45;color:#3D4350}
.xt-ch .bc-src a,.xt-ch .xt-src a{color:#00592C;font-weight:700;text-underline-offset:2px}
.xt-ch svg{width:100%;height:auto;display:block;overflow:visible;max-width:100%}
.xt-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin:6px 0 10px;font-weight:700;color:#17141F;font-size:.95rem}
.xt-sw{display:inline-block;width:14px;height:14px;border-radius:3px;margin-right:6px;vertical-align:middle;border:1px solid transparent}
.xt-sw.on{background:#007A3D}
.xt-sw.vote{background:#FFF6E8;border-color:#B34700}
.xt-sw.dev{background:#F3EFFA;border-color:#7A3FE0}
.xt-sw.off{background:#17141F}
.xt-sw.uk{background:#FFF6E8;border:1px dashed #B34700}

/* Vertical flow diagrams (mobile-first, no horizontal overflow) */
.xt-flow{display:grid;gap:0;margin:8px 0 4px}
.xt-step{display:grid;grid-template-columns:2.2rem 1fr;gap:8px 10px;align-items:start}
.xt-num{width:2.2rem;height:2.2rem;border-radius:50%;background:#7A3FE0;color:#FFFFFF;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:.95rem;flex:none}
.xt-step-body{min-width:0;padding:8px 10px;border:1px solid #D5D9E0;border-radius:12px;background:#FFFFFF;color:#17141F}
.xt-step-body strong{color:#6B5500;display:block;margin:0 0 2px}
.xt-step-body p{margin:0;font-size:1rem;line-height:1.4;color:#17141F}
.xt-arrow{grid-column:1 / -1;text-align:center;color:#7A3FE0;font-weight:800;line-height:1;padding:2px 0 4px;font-size:1.2rem}
.xt-branch{display:grid;gap:8px;margin:8px 0 0}
.xt-branch .xt-step-body{border-style:dashed}
.xt-cap{margin:4px 0 0;font-weight:800;font-size:.95rem;line-height:1.35;color:#17141F}

/* Status rows / timeline */
.xt-rows{display:grid;gap:8px;margin:8px 0 4px}
.xt-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;align-items:center;padding:8px 0;border-top:1px solid #E4DDF2;min-width:0}
.xt-row:first-child{border-top:0;padding-top:0}
.xt-lab{font-weight:800;color:#17141F;font-size:1rem;line-height:1.3;min-width:0;overflow-wrap:anywhere;word-break:break-word}
.xt-lab span{display:block;font-weight:600;font-size:.95rem;color:#3D4350}
.xt-pill{display:inline-block;border-radius:999px;padding:6px 12px;font-weight:800;font-size:.92rem;line-height:1.3;background:#F3EFFA;color:#17141F;border:1px solid #D5D9E0;overflow-wrap:anywhere;word-break:break-word;max-width:100%;text-align:center}
.xt-pill.on{background:#E9F7EF;color:#00592C;border-color:#007A3D}
.xt-pill.vote{background:#FFF6E8;color:#6B5500;border-color:#B34700}
.xt-pill.dev{background:#F3EFFA;color:#17141F;border-color:#7A3FE0}
.xt-pill.off{background:#17141F;color:#FFFFFF;border-color:#17141F}
.xt-pill.uk{background:#FFF6E8;color:#6B5500;border:1px dashed #B34700}

/* Year groups on the roadmap */
.xt-year{margin:12px 0 4px;font-weight:800;color:#17141F;font-size:1.05rem}
.xt-year:first-child{margin-top:4px}

/* Comparison / matching matrix — stacks on small screens */
.xt-matrix{overflow:visible;margin:8px 0;max-width:100%}
.xt-matrix table{border-collapse:separate;border-spacing:4px;width:100%;font-size:.95rem;table-layout:fixed}
.xt-matrix th,.xt-matrix td{padding:8px;text-align:center;vertical-align:middle;border-radius:10px;color:#17141F;background:#F8F5FF;overflow-wrap:anywhere;word-break:break-word}
.xt-matrix th{font-weight:800;background:#17141F;color:#FFFFFF}
.xt-matrix th.xt-corner{background:#FFFFFF;color:#17141F;text-align:left}
.xt-matrix td.xt-rowlab{text-align:left;font-weight:800;background:#FFFFFF;color:#17141F}
.xt-matrix td.yes{background:#E9F7EF;color:#00592C;font-weight:800}
.xt-matrix td.no{background:#F4F1FA;color:#17141F;font-weight:700}
.xt-matrix td.uk{background:#FFF6E8;color:#6B5500;font-weight:800}

.xt-table details{margin-top:10px}
.xt-table summary{cursor:pointer;font-weight:800;min-height:44px;display:flex;align-items:center;color:#17141F}
.xt-table table{border-collapse:collapse;width:100%;font-size:1rem;table-layout:fixed}
.xt-table th,.xt-table td{text-align:left;padding:6px 8px;border-bottom:1px solid #D5D9E0;color:#17141F;overflow-wrap:anywhere;word-break:break-word}

.xt-means{margin:12px 0 4px;padding:12px 14px;border:1px solid #D5D9E0;border-radius:14px;background:#FFFFFF;color:#17141F;overflow-wrap:anywhere;word-break:break-word;max-width:100%;box-sizing:border-box}
.xt-means-h{margin:0 0 6px;font-weight:800;font-size:1.05rem;line-height:1.3;color:#17141F}
.xt-means p{margin:0 0 8px;font-size:1rem;line-height:1.45;color:#17141F}
.xt-means ul{margin:0;padding-left:1.2em}
.xt-means li{margin:6px 0;font-size:1rem;line-height:1.45;color:#17141F}

/* Theme ink may force nowrap on .tt-src — always wrap on these lessons */
main .tt-src,main a.tt-src,main .xt-ch,main .xt-ch a,main .xt-src,main .xt-src a,main .xt-table th,main .xt-table td,main .xt-lab,main .xt-pill{
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  white-space:normal!important;
  max-width:100%;
}

.xt-conflict{margin:12px 0;padding:12px 14px;border:1px solid #B34700;border-left:4px solid #B34700;border-radius:12px;background:#FFF6E8;color:#17141F}
.xt-conflict strong{color:#6B5500}
.xt-conflict p{margin:0 0 8px;color:#17141F}
.xt-conflict p:last-child{margin:0}
.xt-hype{margin:12px 0;padding:12px 14px;border:1px solid #7A3FE0;border-left:4px solid #7A3FE0;border-radius:12px;background:#F8F5FF;color:#17141F}
.xt-hype strong{color:#17141F}
.xt-hype p{margin:0 0 8px;color:#17141F}
.xt-hype p:last-child{margin:0}

@media (max-width:430px){
  .xt-ch{padding:14px 10px 12px}
  .xt-row{grid-template-columns:1fr;gap:4px}
  .xt-step{grid-template-columns:1.8rem 1fr;gap:6px 8px}
  .xt-num{width:1.8rem;height:1.8rem;font-size:.85rem}
  .xt-matrix table{font-size:.88rem;border-spacing:3px}
  .xt-matrix th,.xt-matrix td{padding:6px 4px}
}

/* Prefer whole-word wrapping in matrices; anywhere-break was causing mid-word splits at 390px. */
main .xt-ch .xt-matrix th,main .xt-ch .xt-matrix td,main .xt-matrix th,main .xt-matrix td{
  overflow-wrap:break-word!important;
  word-break:normal!important;
  hyphens:manual;
}
@media (max-width:430px){
  .xt-matrix table{font-size:.82rem;border-spacing:2px}
  .xt-matrix th,.xt-matrix td{padding:6px 3px;line-height:1.3}
}

@media (max-width:430px){
  .xt-matrix table{display:block;width:100%;border-spacing:0;table-layout:auto}
  .xt-matrix thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .xt-matrix tbody,.xt-matrix tr,.xt-matrix th,.xt-matrix td{display:block;width:auto;max-width:100%;box-sizing:border-box}
  .xt-matrix tr{margin:0 0 10px;padding:6px;border:1px solid #D5D9E0;border-radius:12px;background:#FFFFFF}
  .xt-matrix td{text-align:left;margin:4px 0;padding:8px 10px;line-height:1.35}
  .xt-matrix td.xt-rowlab{margin:0 0 6px;background:#17141F;color:#FFFFFF;font-weight:800;border-radius:8px}
  .xt-matrix td:not(.xt-rowlab)::before{content:attr(data-label);display:block;font-weight:800;color:#17141F;margin:0 0 2px;font-size:.9rem}
}

.xt-sw.sep{background:#FFFFFF;border:2px solid #7A3FE0}
.xt-pill.sep{background:#FFFFFF;color:#17141F;border:2px solid #7A3FE0}
