.xp-paths {
  --path-paper: #f0f0eb;
  --path-sage: #c1cec1;
  --path-muted: #b2b2ac;
  --path-border: #353533;
  --path-panel: #151514;
  color: var(--path-paper);
  container-type: inline-size;
  min-width: 0;
}
.xp-paths h1, .xp-paths h2, .xp-paths h3, .xp-paths p { margin: 0; }
.xp-paths h1, .xp-paths h2, .xp-paths h3 { text-wrap: balance; }
.xp-path-hero, .xp-path-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3cqi, 42px);
  padding: clamp(20px, 4cqi, 56px);
  background: linear-gradient(130deg, #1c1c1b, #101010 66%);
  border: 1px solid var(--path-border);
  border-radius: 20px;
}
.xp-path-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--path-sage);
  font: 600 10px/1.45 var(--mono);
  letter-spacing: .14em;
}
.xp-path-kicker .icon { width: 15px; height: 15px; }
.xp-paths h1 {
  margin: 15px 0 14px;
  font-size: clamp(35px, 5.85cqi, 84px);
  line-height: .99;
  letter-spacing: -.067em;
  font-weight: 650;
}
.xp-path-hero-copy > p, .xp-path-detail-hero > div > p {
  max-width: 42ch;
  font-size: clamp(14px, 1.6cqi, 17px);
  line-height: 1.65;
  color: var(--path-muted);
}
.xp-path-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 25px;
  color: var(--path-muted);
  font-size: 12px;
}
.xp-path-hero-facts span { display: flex; gap: 7px; align-items: baseline; }
.xp-path-hero-facts strong { color: var(--path-paper); font-size: 20px; font-weight: 650; }

.xp-path-map {
  background-color: var(--path-paper);
  background-image: radial-gradient(#292b2229 .8px, transparent .8px);
  background-size: 12px 12px;
  color: #171b17;
  border-radius: 14px;
  padding: 13px;
}
.xp-path-map-caption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 8px;
  padding: 3px 3px 10px;
  border-bottom: 1px solid #c7cac0;
  font: 650 9px/1.45 var(--mono);
  letter-spacing: .07em;
}
.xp-path-map-caption span:last-child { color: #555b51; }
.xp-path-map-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(66px, 1fr) minmax(0, 2.1fr);
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  min-height: 220px;
}
.xp-path-map-lines {
  position: absolute;
  width: 42%;
  height: 100%;
  left: 10%;
  color: #899285;
}
.xp-path-map-branch { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.xp-path-map-origin {
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  justify-self: start;
  color: #f0f0eb;
  background: #252b25;
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.xp-path-map-origin .icon { width: 17px; height: 17px; color: #ced9c9; }
.xp-path-map-destinations { display: grid; grid-template-rows: repeat(4, 1fr); gap: 6px; min-height: inherit; z-index: 1; }
.xp-path-node {
  width: 100%;
  min-width: 0;
  border: 1px solid #c8ccc3;
  background: #f9f9f5;
  color: #191d19;
  border-radius: 7px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  text-align: left;
  padding: 5px 7px;
}
.xp-path-node:hover, .xp-path-node[aria-pressed="true"] { background: #dce5d9; border-color: #899783; }
.xp-path-node:focus-visible { outline-color: #424e40; }
.xp-path-node-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 5px;
  background: #e7ebe3;
}
.xp-path-node-icon .icon { width: 15px; height: 15px; }
.xp-path-node strong, .xp-path-node small { display: block; }
.xp-path-node strong { font-size: 12px; line-height: 1.15; }
.xp-path-node small { margin-top: 2px; color: #50574f; font-size: 10px; line-height: 1.2; }
.xp-path-node-number { color: #596055; font: 10px/1 var(--mono); }

.xp-path-shortcut, .xp-path-career {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--path-panel);
  border: 1px solid var(--path-border);
  border-radius: 12px;
  padding: 13px 16px;
  margin-top: 13px;
}
.xp-path-shortcut-icon, .xp-path-card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 39px;
  height: 39px;
  color: var(--path-sage);
  border: 1px solid #3e473c;
  border-radius: 9px;
  background: #262d25;
}
.xp-path-shortcut strong { display: block; margin-top: 2px; font-size: 14px; }
.xp-path-shortcut a, .xp-path-skills a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--path-paper);
  font-size: 12px;
  font-weight: 650;
}
.xp-path-shortcut a { margin-left: auto; }
.xp-path-shortcut a:hover, .xp-path-skills a:hover { text-decoration: underline; text-underline-offset: 4px; }
.xp-path-shortcut a .icon, .xp-path-skills a .icon { width: 15px; height: 15px; }
.xp-path-directory { margin-top: 32px; min-width: 0; }
.xp-path-directory-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 15px;
}
.xp-path-directory-head h2 {
  margin-top: 5px;
  font-size: clamp(26px, 3.7cqi, 44px);
  letter-spacing: -.05em;
  line-height: 1.06;
  scroll-margin-top: 90px;
}
.xp-path-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(100%, 280px);
  padding: 0 11px;
  min-height: 42px;
  border: 1px solid var(--path-border);
  border-radius: 8px;
  background: var(--path-panel);
  color: var(--path-muted);
}
.xp-path-search:focus-within { border-color: var(--path-sage); }
.xp-path-search .icon { width: 16px; height: 16px; }
.xp-path-search input {
  width: 100%;
  min-width: 0;
  color: var(--path-paper);
  background: transparent;
  border: 0;
  padding: 8px 0;
  font-size: 13px;
  color-scheme: dark;
}
.xp-path-search input::placeholder { color: var(--path-muted); }
.xp-path-search input:focus-visible { outline: 0; }
.xp-path-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.xp-path-filters button, .xp-path-pagination button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #191918;
  color: #deded8;
  border: 1px solid var(--path-border);
  border-radius: 7px;
  padding: 7px 12px;
  min-height: 37px;
  font-size: 12px;
  font-weight: 600;
}
.xp-path-filters button:hover, .xp-path-pagination button:hover:not(:disabled) { border-color: #868980; }
.xp-path-filters button[aria-pressed="true"] {
  background: var(--path-paper);
  border-color: var(--path-paper);
  color: #1d201c;
}
.xp-path-filters small { font: 10px/1 var(--mono); }
.xp-path-result { padding: 11px 0 9px; color: var(--path-muted); font-size: 11px; }
.xp-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.xp-path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 15px;
  border: 1px solid var(--path-border);
  border-radius: 12px;
  background: linear-gradient(145deg, #1c1c1a, #121212);
  transition: background-color .2s, border-color .2s, transform .2s;
}
.xp-path-card:hover, .xp-path-card:focus-within { border-color: #838b7e; }
@media (hover: hover) { .xp-path-card:hover { transform: translateY(-3px); } }
.xp-path-card-top, .xp-path-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  color: var(--path-muted);
  font-size: 11px;
}
.xp-path-card-top { margin-bottom: 13px; }
.xp-path-card h3 {
  text-wrap: initial;
  font-size: clamp(16px, 2.05cqi, 23px);
  line-height: 1.18;
  letter-spacing: -.025em;
}
.xp-path-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.xp-path-card h3 a:focus-visible { outline: 0; }
.xp-path-card h3 a:focus-visible::after { outline: 2px solid var(--path-sage); outline-offset: 3px; }
.xp-path-card > p { margin: 7px 0 15px; font-size: 12px; line-height: 1.55; color: var(--path-muted); flex: 1; }
.xp-path-progress { display: grid; gap: 5px; color: #d1d3ca; font-size: 11px; }
.xp-path-progress progress {
  appearance: none;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  background: #383a35;
  color: var(--path-sage);
}
.xp-path-progress progress::-webkit-progress-bar { background: #383a35; }
.xp-path-progress progress::-webkit-progress-value { background: var(--path-sage); }
.xp-path-progress progress::-moz-progress-bar { background: var(--path-sage); }
.xp-path-card-foot { margin-top: 11px; padding-top: 9px; border-top: 1px solid #ffffff12; }
.xp-path-card-foot .icon { width: 16px; height: 16px; color: var(--path-sage); }
.xp-path-empty {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed var(--path-border);
  border-radius: 10px;
  color: var(--path-muted);
}
.xp-path-career {
  margin-top: 18px;
  justify-content: space-between;
}
.xp-path-career:hover { border-color: #828a7e; }
.xp-path-career > span { display: flex; align-items: center; gap: 11px; }
.xp-path-career .icon { color: var(--path-sage); }
.xp-path-career strong, .xp-path-career small { display: block; }
.xp-path-career small { margin-top: 2px; color: var(--path-muted); }

.xp-path-back {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 11px;
  padding-block: 4px;
  color: var(--path-muted);
  font-size: 13px;
}
.xp-path-back:hover { color: var(--path-paper); }
.xp-path-back .icon { width: 15px; height: 15px; }
.xp-path-detail-hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.xp-path-detail-hero h1 { font-size: clamp(33px, 5.2cqi, 72px); }
.xp-path-detail-hero .xp-path-progress { margin-top: 20px; max-width: 330px; }
.xp-path-next {
  padding: clamp(16px, 2.6cqi, 32px);
  border-radius: 13px;
  background: var(--path-paper);
  color: #181b17;
}
.xp-path-next .xp-path-kicker { color: #465446; }
.xp-path-next h2 { margin: 9px 0 7px; font-size: clamp(20px, 2.55cqi, 33px); line-height: 1.13; letter-spacing: -.036em; }
.xp-path-next p { color: #545a51; font-size: 12px; }
.xp-path-next-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 7px;
  color: #f5f5f1;
  background: #242a23;
  font-size: 13px;
  font-weight: 650;
}
.xp-path-next-link:hover { background: #3b473a; }
.xp-path-next-link .icon { width: 16px; height: 16px; }
.xp-path-next-link:focus-visible { outline-color: #344330; }
.xp-path-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-top: 25px;
}
.xp-path-detail-body .xp-path-directory { margin-top: 0; }
.xp-path-skills {
  padding: 16px;
  border: 1px solid var(--path-border);
  border-radius: 12px;
  background: var(--path-panel);
}
.xp-path-skills h2 { margin: 7px 0; font-size: 19px; line-height: 1.2; }
.xp-path-skills ul { list-style: none; margin: 10px 0 13px; padding: 0; color: var(--path-muted); font-size: 12px; }
.xp-path-skills li { display: flex; align-items: flex-start; gap: 7px; padding: 6px 0; }
.xp-path-skills li .icon { width: 15px; height: 15px; color: var(--path-sage); }
.xp-path-exercises {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--path-border);
  border-radius: 11px;
  background: var(--path-panel);
}
.xp-path-exercises li + li { border-top: 1px solid var(--path-border); }
.xp-path-exercises a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  min-height: 57px;
  border-radius: 7px;
}
.xp-path-exercises a:hover, .xp-path-exercises a:focus-visible { background: #242624; }
.xp-path-exercises a > .icon { width: 15px; height: 15px; color: var(--path-sage); }
.xp-path-exercises a strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.xp-path-exercises a small { display: block; margin-top: 2px; font-size: 11px; color: var(--path-muted); }
.xp-path-step-num {
  display: grid;
  place-items: center;
  min-width: 30px;
  min-height: 30px;
  padding: 4px;
  border-radius: 6px;
  background: #282c27;
  color: var(--path-sage);
  font: 11px/1 var(--mono);
}
.xp-path-step-num .icon { width: 15px; height: 15px; }
.xp-path-pagination:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--path-muted);
  font-size: 11px;
}
.xp-path-pagination .icon { width: 14px; height: 14px; }

@container (max-width: 710px) {
  .xp-path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp-path-detail-body { grid-template-columns: minmax(0, 1fr); }
  .xp-path-skills { grid-row: 1; }
}
@container (max-width: 565px) {
  .xp-path-hero, .xp-path-detail-hero { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .xp-path-hero-facts { margin-top: 11px; }
  .xp-path-directory { margin-top: 25px; }
}
@container (max-width: 400px) {
  .xp-path-grid { grid-template-columns: minmax(0, 1fr); }
  .xp-path-node-number { display: none; }
  .xp-path-shortcut { gap: 7px; padding: 10px; }
  .xp-path-shortcut-icon { width: 30px; height: 30px; }
  .xp-path-shortcut a { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .xp-path-card, .xp-path-node { transition: none; }
  .xp-path-card:hover { transform: none; }
}

body:has(.xp-paths) .tut-offer { display: none; }
