/* Skills directory layout. Gold maps to the live angelic set.
   Chrome (header, footer, fonts) comes from the site stylesheets. */
.sk-page {
  --sk-gold: var(--gold-bright, #e6d1a0);
  --sk-gold-mid: var(--gold-mid, #dcc48a);
  --sk-gold-deep: var(--gold-deep, #d4b67a);
  --sk-gold-soft: var(--gold-dim, rgba(220,196,138,.18));
  --sk-on-gold: #0a0a0a;
  --sk-ok: #7fae7a;
  --f-display: var(--sans, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
  --f-body: var(--sans, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
  --f-mono: var(--mono, "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace);
}
.sk-page a:focus-visible, .sk-page button:focus-visible,
.sk-page input:focus-visible, .sk-page select:focus-visible {
  outline: 2px solid var(--sk-gold); outline-offset: 2px;
}
.sk-page .sk-sub {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  font-size: 14px; padding: 14px 0 0;
}
.sk-page .sk-sub a { text-decoration: none; color: var(--muted, #a1a1a1); }
.sk-page .sk-sub a:hover, .sk-page .sk-sub a[aria-current] { color: var(--sk-gold); }
.sk-page .intro { padding-block: 32px 24px; display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.sk-page .eyebrow { font: 600 11px/1 var(--f-body); letter-spacing: .2em;
  text-transform: uppercase; color: var(--sk-gold); -webkit-text-fill-color: var(--sk-gold);
  background: none; margin: 0 0 14px; }
.sk-page h1 { font: 800 clamp(28px, 4.6vw, 48px)/1.08 var(--f-display);
  letter-spacing: -.01em; margin: 0 0 14px; text-wrap: balance; }
.sk-page .lede { color: var(--muted, #a1a1a1); max-width: 62ch; margin: 0; }
.sk-page .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.sk-page .steps li { counter-increment: s; display: flex; align-items: flex-start;
  gap: 10px; font-size: 14px; color: var(--muted, #a1a1a1); }
.sk-page .steps li::before { content: counter(s); flex: none; width: 26px; position: static !important;
  font: 700 12px/26px var(--f-mono); text-align: center; color: var(--sk-gold);
  border: 1px solid var(--line, #262626); border-radius: 50%; height: 26px; }
.sk-page .steps li > span { flex: 1; min-width: 0; }
.sk-page .steps strong { color: var(--text, #ededed); font-weight: 600; }
.sk-page .layout { display: grid; grid-template-columns: 230px minmax(0, 1fr);
  gap: 32px; padding-block: 8px 40px; }
.sk-page .rail h2 { font: 600 11px/1 var(--f-body); letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted, #a1a1a1); margin: 22px 0 10px; }
.sk-page .rail h2:first-child { margin-top: 0; }
.sk-page .chips { display: flex; flex-direction: column; gap: 2px; }
.sk-page .chip { display: flex; justify-content: space-between; gap: 8px; width: 100%;
  text-align: left; background: none; border: 0; color: var(--muted, #a1a1a1);
  font: 500 14px/1.3 var(--f-body); padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.sk-page .chip span:last-child { font: 400 12px/1.6 var(--f-mono); }
.sk-page .chip:hover { color: var(--text, #ededed); background: var(--bg3, #161616); }
.sk-page .chip[aria-pressed="true"],
.sk-page .chip[aria-pressed="true"] span {
  color: var(--sk-gold) !important;
  -webkit-text-fill-color: var(--sk-gold) !important;
  background: none;
}
.sk-page .chip[aria-pressed="true"] {
  background: var(--sk-gold-soft);
  box-shadow: inset 2px 0 0 var(--sk-gold);
}
.sk-page .search { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.sk-page .search input { flex: 1; min-width: 0; background: var(--bg2, #111);
  color: var(--text, #ededed); border: 1px solid var(--line, #262626);
  border-radius: 8px; padding: 11px 14px; font: 15px var(--f-body); }
.sk-page .count { font: 400 12px var(--f-mono); color: var(--muted, #a1a1a1); white-space: nowrap; }
.sk-page .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sk-page .card { display: flex; flex-direction: column; gap: 10px; min-width: 0;
  background: var(--bg2, #111); border: 1px solid var(--line, #262626);
  border-radius: 10px; padding: 18px; position: relative; }
.sk-page .card:hover { border-color: var(--sk-gold); }
.sk-page .card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sk-page .card h3 { font: 700 17px/1.25 var(--f-display); margin: 0; overflow-wrap: anywhere; }
.sk-page .card h3 a { text-decoration: none; }
.sk-page .card h3 a::after { content: ""; position: absolute; inset: 0; }
.sk-page .src { font: 400 12px var(--f-mono); color: var(--muted, #a1a1a1); overflow-wrap: anywhere; }
.sk-page .card p { margin: 0; color: var(--muted, #a1a1a1); font-size: 14px; }
.sk-page .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.sk-page .pill { font: 500 11px/1 var(--f-body); letter-spacing: .04em;
  border: 1px solid var(--line, #262626); border-radius: 999px; padding: 5px 9px;
  color: var(--muted, #a1a1a1); }
.sk-page .pill.lic { color: var(--sk-ok); border-color: currentColor; }
.sk-page .cmd { display: flex; align-items: center; gap: 10px; min-width: 0;
  background: var(--bg3, #161616); border: 1px solid var(--line, #262626);
  border-radius: 8px; padding: 10px 12px; position: relative; z-index: 1; }
.sk-page .cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap;
  font: 13px var(--f-mono); color: var(--text, #ededed); }
.sk-page .cmd code::before { content: "$ "; color: var(--sk-gold); }
.sk-page .copy { flex: none; background: var(--sk-gold-deep); color: var(--sk-on-gold);
  border: 0; border-radius: 6px; padding: 8px 12px; font: 600 12px var(--f-body);
  cursor: pointer; min-height: 44px; }
.sk-page .empty { padding: 40px; text-align: center; color: var(--muted, #a1a1a1);
  border: 1px dashed var(--line, #262626); border-radius: 10px; }
.sk-page .crumbs { font: 400 13px var(--f-mono); color: var(--muted, #a1a1a1);
  padding-block: 22px 6px; overflow-wrap: anywhere; }
.sk-page .crumbs a { text-decoration: none; }
.sk-page .crumbs a:hover { color: var(--text, #ededed); }
.sk-page .detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px; padding-block: 10px 40px; }
.sk-page .detail h1 { overflow-wrap: anywhere; }
.sk-page .detail section { margin-top: 28px; }
.sk-page .detail h2 { font: 700 13px/1 var(--f-display); letter-spacing: .14em;
  text-transform: uppercase; color: var(--sk-gold); margin: 0 0 12px; }
.sk-page .desc { font-size: 17px; max-width: 62ch; margin: 0; }
.sk-page .note { font-size: 13px; color: var(--muted, #a1a1a1); margin: 10px 0 0; }
.sk-page .ledger { background: var(--bg2, #111); border: 1px solid var(--line, #262626);
  border-radius: 10px; padding: 6px 18px; align-self: start; }
.sk-page .ledger dl { margin: 0; }
.sk-page .ledger div { display: grid; gap: 3px; padding-block: 12px;
  border-bottom: 1px solid var(--line, #262626); }
.sk-page .ledger div:last-child { border-bottom: 0; }
.sk-page .ledger dt { font: 600 11px/1 var(--f-body); letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted, #a1a1a1); }
.sk-page .ledger dd { margin: 0; font: 14px var(--f-mono); overflow-wrap: anywhere; }
.sk-page .ledger dd a { color: var(--sk-gold); }
.sk-page .caution { border-left: 2px solid var(--sk-gold); padding: 2px 0 2px 14px;
  color: var(--muted, #a1a1a1); font-size: 14px; max-width: 62ch; }
.sk-page .caution p { margin: 0 0 6px; }
.sk-page .related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sk-page .related a { display: block; text-decoration: none; background: var(--bg2, #111);
  border: 1px solid var(--line, #262626); border-radius: 8px; padding: 12px 14px; min-width: 0; }
.sk-page .related a:hover { border-color: var(--sk-gold); }
.sk-page .related b { font: 700 15px var(--f-display); display: block; overflow-wrap: anywhere; }
.sk-page .related span { font-size: 13px; color: var(--muted, #a1a1a1); }
.sk-page .table-wrap { overflow-x: auto; border: 1px solid var(--line, #262626); border-radius: 10px; }
.sk-page table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.sk-page th, .sk-page td { text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--line, #262626); vertical-align: top; }
.sk-page th { font: 600 11px var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted, #a1a1a1); background: var(--bg2, #111); }
.sk-page tr:last-child td { border-bottom: 0; }
.sk-page td a { color: var(--sk-gold); }
.sk-page .prose { max-width: 70ch; color: var(--muted, #a1a1a1); }
.sk-page .prose p { margin: 0 0 12px; }
.sk-page .sk-eco { margin: 8px 0 36px; padding: 18px 20px;
  border: 1px solid var(--sk-gold-mid); border-radius: 10px; background: var(--sk-gold-soft); }
.sk-page .sk-eco p { margin: 0 0 12px; color: var(--text, #ededed); max-width: 70ch; }
.sk-page .sk-eco-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sk-page .sk-eco-links a { color: var(--sk-gold); }
.sk-page .sk-eco-cta { display: inline-block; background: var(--sk-gold-deep);
  color: var(--sk-on-gold) !important; text-decoration: none; font-weight: 600;
  padding: 10px 16px; border-radius: 8px; min-height: 44px; line-height: 24px; }
.sk-page .sk-credit { font-size: 13px; color: var(--muted, #a1a1a1);
  max-width: 70ch; margin: 0 0 28px; }
@media (max-width: 860px) {
  .sk-page .intro, .sk-page .layout, .sk-page .detail { grid-template-columns: minmax(0, 1fr); }
  .sk-page .chips { flex-direction: row; flex-wrap: wrap; }
  .sk-page .chip { width: auto; border: 1px solid var(--line, #262626); }
  .sk-page .grid, .sk-page .related { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .sk-page .intro { padding-block: 24px 18px; }
  .sk-page .layout, .sk-page .detail { padding-bottom: 24px; }
  .sk-page .cmd { flex-wrap: wrap; }
  .sk-page .cmd code { flex: 1 1 100%; white-space: normal; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { .sk-page * { transition: none !important; } }

/* Skills compatibility row, card bubbles, and detail chips. Reuses /assets/compat/compat.css. */
.sk-page .versatility {
  margin: 14px 0 0;
  color: var(--text, #ededed);
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.5;
}
.sk-page .sk-cli-more {
  margin: 10px 0 0;
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted, #a1a1a1);
}
.sk-page .sk-compat {
  display: block;
  margin: 18px 0 0;
  width: 100%;
  max-width: 100%;
}
.sk-page .sk-compat .compat-k {
  margin: 0 0 10px;
  color: var(--sk-gold);
  -webkit-text-fill-color: var(--sk-gold);
  font: 600 11px/1 var(--f-body);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.sk-page .sk-compat .compat-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 8px;
  width: 100%;
  max-width: 100%;
  align-items: start;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sk-page .sk-compat .compat-logos li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 6px;
  min-width: 0;
  line-height: 1.2;
}
.sk-page .sk-compat .compat-logos img {
  display: block;
  width: 32px;
  height: 32px;
  max-width: 32px;
  object-fit: contain;
  color: var(--compat-ink, #cfc8ba);
  flex: none;
}
.sk-page .sk-compat .cname {
  display: block;
  min-height: 28px;
  font: 500 11px/1.25 var(--f-body);
  color: var(--compat-ink, #cfc8ba);
  overflow-wrap: anywhere;
}
.sk-page .sk-compat-more a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.sk-page .sk-compat-more .more-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--compat-line, rgba(232, 228, 220, 0.22));
  background: rgba(255, 255, 255, 0.03);
  color: var(--sk-gold);
  font: 600 18px/1 var(--f-body);
}
.sk-page .sk-compat-more a:hover .more-chip,
.sk-page .sk-compat-more a:focus-visible .more-chip {
  border-color: var(--sk-gold);
}
@media (min-width: 860px) {
  .sk-page .sk-compat .compat-logos {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 14px 10px;
    max-width: 920px;
  }
  .sk-page .sk-compat .compat-logos img,
  .sk-page .sk-compat-more .more-chip {
    width: 32px;
    height: 32px;
  }
}
.sk-page .sk-compat .compat-logos li:hover img,
.sk-page .sk-compat .compat-logos li:focus-within img {
  filter: none;
}

/* Card bubbles: 24px marks in 30px chips, overriding the shop 16/24 set for this page only. */
html body .sk-page .card .works {
  display: flex !important;
  position: relative;
  z-index: 1;
  pointer-events: auto !important;
  min-height: 30px !important;
  height: 30px !important;
  gap: 6px !important;
  margin-top: 10px !important;
  overflow: hidden !important;
}
html body .sk-page .card .works .wchip.compat-bubble,
html body .sk-page .card .works .wchip.more {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  flex: 0 0 30px !important;
  pointer-events: auto !important;
}
html body .sk-page .card .works .wchip.compat-bubble img {
  width: 24px !important;
  height: 24px !important;
}
html body .sk-page .card .works .wchip.is-packed {
  display: none !important;
}
.sk-page .detail .works.page {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.sk-page .detail .works.page .wchip.compat-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border-radius: 999px;
  padding: 4px 10px 4px 6px;
  border: 1px solid var(--compat-line, rgba(232, 228, 220, 0.22));
  background: rgba(255, 255, 255, 0.03);
  color: var(--compat-ink, #cfc8ba);
  font: 500 13px/1 var(--f-body);
}
.sk-page .detail .works.page .wchip.compat-bubble img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--compat-ink, #cfc8ba);
}
