/* The /skills/ pages (README.md): only what hub.css does not draw already, in its tokens. Served as /skills/skills.css. */
.hb-sk [hidden] { display: none !important; }

/* A skill's buttons and the quiet line under them. */
.hb-sk .sk-soon { max-width: 34em; line-height: 1.5; text-wrap: pretty; }
.hb-band .sk-soon { margin-inline: auto; }

/* The group, the command and the kind under the buttons. */
.sk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.sk-chips-links { margin-top: 40px; }
.sk-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: var(--hb-t-lbl); line-height: 1.2; color: var(--hb-mut-2); box-shadow: inset 0 0 0 1px var(--hb-line); }
.sk-chip-cmd { color: var(--hb-fg); font-variant-ligatures: none; }
a.sk-chip { color: var(--hb-fg); transition: background-color .2s var(--hb-ease), box-shadow .2s var(--hb-ease); }
a.sk-chip:hover { background: var(--hb-card-2); box-shadow: inset 0 0 0 1px var(--hb-line-2); }

/* What it makes: the facts strip under its heading, then the notes and the example. */
.hb-sk .sk-facts { margin-top: 48px; }
.sk-facts dd, .sk-notes p { overflow-wrap: anywhere; }
.sk-notes strong { display: block; margin-bottom: 6px; font-size: var(--hb-t-body); }
.sk-ex { display: grid; gap: 16px; max-width: 760px; margin-top: 40px; }
.sk-ex-row { padding: clamp(18px, 2.4vw, 26px); border-radius: 18px; background: var(--hb-card); box-shadow: inset 0 0 0 1px var(--hb-line); }
.sk-ex-l { font-size: var(--hb-t-lbl); font-weight: 500; color: var(--hb-mut); }
.sk-ex-t { margin-top: 8px; font-size: var(--hb-t-body); line-height: 1.6; color: var(--hb-fg); white-space: pre-line; overflow-wrap: anywhere; }
.sk-note { margin-top: 16px; max-width: 40em; font-size: var(--hb-t-lbl); line-height: 1.5; color: var(--hb-mut); overflow-wrap: anywhere; }

/* The full prompt, as plain text, with Copy prompt under it. */
.sk-prompt { margin: 48px 0 0; max-width: 48em; padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: var(--hb-card); box-shadow: inset 0 0 0 1px var(--hb-line); font: inherit; font-size: var(--hb-t-body); line-height: 1.7; color: var(--hb-mut-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.sk-prompt + .sk-note + .hb-btn { margin-top: 20px; }

/* How to use it: numbered. */
.sk-steps { display: grid; gap: 14px; max-width: 44em; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: sk; }
.sk-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; }
.sk-steps li::before { counter-increment: sk; content: counter(sk) '.'; color: var(--hb-mut); font-variant-numeric: tabular-nums; }
.sk-steps p { font-size: var(--hb-t-body); line-height: 1.6; color: var(--hb-mut-2); overflow-wrap: anywhere; }

/* The hub's gallery: the count as the heading, a search pill, group chips, then cards (hub.css .hb-cardgrid: 3, 2 and 1 columns). */
.sk-head { text-align: center; }
.sk-head .hb-h2, .sk-head .hb-lead { margin-inline: auto; }
.sk-search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 640px; height: 48px; margin: 40px auto 0; padding: 0 18px; border-radius: 999px; background: var(--hb-card); color: var(--hb-mut); box-shadow: inset 0 0 0 1px var(--hb-line); scroll-margin-top: calc(var(--hb-hdr) + 16px); transition: background-color .2s var(--hb-ease), box-shadow .2s var(--hb-ease), color .2s var(--hb-ease); }
.sk-search:hover { box-shadow: inset 0 0 0 1px var(--hb-line-2); }
.sk-search:focus-within { background: var(--hb-card-2); color: var(--hb-fg); box-shadow: inset 0 0 0 1px var(--hb-vi-2); }
.sk-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--hb-fg); font: inherit; font-size: var(--hb-t-sm); -webkit-appearance: none; appearance: none; }
.hb .sk-search input:focus-visible { outline: 0; }
.sk-search input::placeholder { color: var(--hb-mut); }
.sk-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 960px; margin: 20px auto 0; padding: 0; list-style: none; }
.sk-cat-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--hb-mut-2); box-shadow: inset 0 0 0 1px var(--hb-line); transition: background-color .2s var(--hb-ease), box-shadow .2s var(--hb-ease), color .2s var(--hb-ease); }
.sk-cat-chip:hover { color: var(--hb-fg); background: var(--hb-card-2); box-shadow: inset 0 0 0 1px var(--hb-line-2); }
.sk-cat-chip.is-on { color: var(--hb-bg); background: var(--hb-fg); box-shadow: none; }
.hb .sk-cat-chip:focus-visible { border-radius: 999px; outline-offset: 2px; }
.sk-count { margin: 32px 0 12px; font-size: var(--hb-t-sm); color: var(--hb-mut); font-variant-numeric: tabular-nums; }
.sk-cards { margin-top: 0; }
.sk-cards .hb-card { gap: 0; padding: 20px; border-radius: 18px; transition: background-color .25s var(--hb-ease), box-shadow .25s var(--hb-ease), transform .3s var(--hb-ease); }
.sk-cards .hb-card:hover { transform: translateY(-2px); }
.sk-cards .hb-card:focus-within { box-shadow: inset 0 0 0 1px var(--hb-line-2); }
/* Each skill's and pack's icon (icons.mjs, the glyph Minda draws for it): on a card it leads the group's line, in a chip or an index
   row its words. */
.sk-ic { flex: none; display: block; color: var(--hb-fg); }
.sk-cat { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: var(--hb-t-lbl); color: var(--hb-mut); }
.sk-area { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sk-index-t { display: inline-flex; align-items: center; gap: 10px; }
.sk-index-t .sk-ic { color: var(--hb-mut-2); }
.sk-cards .hb-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 6px; font-size: 17px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.sk-card-link::after { content: ''; position: absolute; inset: 0; border-radius: 18px; }
.sk-what { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 6px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.sk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: auto; padding-top: 16px; }
.sk-cmd { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: var(--hb-t-lbl); line-height: 1.2; color: var(--hb-mut-2); box-shadow: inset 0 0 0 1px var(--hb-line); overflow-wrap: anywhere; }
/* A quiet pill on every card, white only on the card under the pointer or in focus. */
.hb .sk-add { position: relative; z-index: 1; min-height: 32px; padding: 0 14px; font-size: 14px; font-weight: 500; transition: background-color .2s var(--hb-ease), color .2s var(--hb-ease), box-shadow .2s var(--hb-ease); }
.sk-cards .hb-card:hover .sk-add, .sk-cards .hb-card:focus-within .sk-add { background: var(--hb-fg); color: var(--hb-bg); box-shadow: none; }
.sk-empty { padding: 56px 0 8px; text-align: center; font-size: var(--hb-t-body); color: var(--hb-mut-2); overflow-wrap: anywhere; }
.sk-clear { font-weight: 500; color: var(--hb-fg); text-decoration: underline; text-decoration-color: var(--hb-line-2); text-underline-offset: 3px; }
.sk-clear:hover { text-decoration-color: currentColor; }

/* The sponsored slot: a quiet band of one card, labelled, apart from the skills. */
.sk-sponsor-sec { padding-block: 48px; }
.sk-sponsor-label { font-size: var(--hb-t-lbl); font-weight: 500; color: var(--hb-mut); }
.sk-sponsors { display: grid; gap: 16px; margin-top: 12px; }
.sk-sponsor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: clamp(18px, 2.4vw, 26px); border-radius: 18px; background: var(--hb-card); box-shadow: inset 0 0 0 1px var(--hb-line); }
.sk-sponsor h3 { flex: 1 1 14em; font-size: 17px; }
.sk-sponsor p { flex: 2 1 18em; font-size: var(--hb-t-sm); line-height: 1.5; color: var(--hb-mut-2); overflow-wrap: anywhere; }
.sk-sponsor-house { box-shadow: inset 0 0 0 1px var(--hb-line); background: none; }

/* The advertise page: its blocks as a numbered list of short sections. */
.sk-blocks { display: grid; gap: 28px; max-width: 44em; margin: 40px 0 0; padding: 0; list-style: none; }
.sk-blocks h3 { font-size: var(--hb-t-h3); }
.sk-blocks p { margin-top: 8px; font-size: var(--hb-t-body); line-height: 1.6; color: var(--hb-mut-2); overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .hb-sk .sk-facts, .sk-prompt, .sk-ex, .sk-steps { margin-top: 32px; }
}
@media (max-width: 640px) {
  .sk-gallery { --hb-gut: 16px; }
  .sk-search { height: 44px; margin-top: 28px; padding: 0 16px; }
  .sk-cats { gap: 6px; margin-top: 16px; }
  .sk-cat-chip { padding: 0 12px; font-size: var(--hb-t-lbl); }
  .sk-count { margin-top: 24px; }
  .sk-cards .hb-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .sk-search, .sk-cat-chip, .sk-cards .hb-card { transition: none; }
  .sk-cards .hb-card:hover { transform: none; }
}
