/* Gaffo AI: /skills. The rows themselves (.skill-list .skill) are styled in base.css as a project bin;
   this file frames them: the header with a small Gaffo panel, the bin's toolbar and column heads, the empty state. */

/* header: the promise on the left, a prompt picking its skill on the right */
.sk-head { max-width: none; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px); align-items: end; }
.sk-head-copy { display: grid; gap: 22px; }
.sk-ask .win { max-width: 460px; margin-left: auto; }
.sk-ask .gp-chat { gap: 10px; padding: 14px; }
.sk-ask .msg { font-size: .8125rem; }
.sk-ask .msg.you { font-family: var(--f-text); }
.sk-ask-skill { color: var(--green-hi); font-weight: 600; }
.sk-ask .steps { padding-top: 2px; }
@media (max-width: 900px) {
  .sk-head { grid-template-columns: minmax(0, 1fr); }
  .sk-ask .win { margin-left: 0; }
}

/* the bin: toolbar, column heads, rows, one frame */
.sk-bin-sec { padding-top: clamp(48px, 6vw, 80px); }
.sk-bin { border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--bg-2); overflow: clip; }
.sk-bin .skill-list { border: 0; border-radius: 0; background: transparent; }
.sk-bin > .win-bar { border-radius: var(--r-card) var(--r-card) 0 0; }
.sk-tools { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; background: var(--panel); }
.sk-tools .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; background: var(--bg-2); }
.sk-tools .seg::-webkit-scrollbar { display: none; }
.sk-tools .seg button { white-space: nowrap; flex: none; }

.sk-search { position: relative; display: flex; align-items: center; flex: 1 1 260px; max-width: 380px; min-height: 44px; padding-left: 14px; gap: 10px;
  background: var(--well); border: 1px solid var(--edge-hi); border-radius: var(--r-btn); transition: border-color var(--d-hover) ease; }
.sk-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-wash); }
.sk-search label { font-size: .875rem; font-weight: 500; color: var(--ink-3); }
.sk-search input { flex: 1; min-width: 0; height: 42px; padding: 0 12px 0 0; border: 0; background: transparent; color: var(--ink); font-size: 1rem; }
.sk-search input:focus-visible { outline: none; }
.sk-search input::placeholder { color: var(--ink-3); opacity: .8; }
.sk-count { margin-left: auto; font-size: .875rem; color: var(--ink-3); white-space: nowrap; }

.sk-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 170px 130px; gap: 24px; padding: 10px 22px; background: var(--bg-2); font-size: .8125rem; font-weight: 500; color: var(--ink-3); }
.sk-cols span:last-child { text-align: right; }

/* nothing matches */
.sk-empty { display: grid; justify-items: start; gap: 8px; padding: clamp(32px, 5vw, 56px) 22px; color: var(--ink-2); }
.sk-empty-t { font: 600 var(--t-h3)/1.1 var(--f-display); letter-spacing: -0.02em; color: var(--ink); }
.sk-empty a { color: var(--ink); text-decoration-color: var(--green-lo); }

@media (max-width: 900px) {
  .sk-cols { display: none; }
  .sk-search { max-width: none; }
  .sk-count { margin-left: 0; }
}
@media (max-width: 560px) {
  .sk-tools { position: static; padding: 12px; }
  .sk-search { flex-basis: 100%; }
  .skill { padding: 16px; }
}
@media (pointer: coarse) { .sk-tools .seg button { min-height: 44px; } }

/* closing band */
.sk-cta { display: grid; gap: clamp(28px, 4vw, 44px); }
.sk-cta-body { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px 48px; }
.sk-cta h2 { font-size: var(--t-h2); }
.sk-cta .lead { margin-top: 18px; color: var(--ink-2); max-width: 46ch; }
.sk-cta-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* the footer brings its own top space (not for a band: its colour needs room inside, at the bottom too) */
main > .section:last-child:not(.band) { padding-bottom: 0; }

/* narrow screens: the filters wrap instead of hiding off the edge */
@media (max-width: 640px) {
  .sk-tools .seg { display: flex; flex-wrap: wrap; overflow: visible; }
  .sk-tools .seg button { flex: 1 1 auto; }
}

/* round 3: the prompt band between the head and the skill bin */
.sk-mq { margin-top: 24px; }
