/* skills.css - uses vars.css tokens only */

*{ box-sizing: border-box; }

/* IMPORTANT: remove height:100% and paint background on BOTH */
html, body{
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
}

html{
  background:
    radial-gradient(900px 560px at 20% 0%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(760px 520px at 80% 10%, rgba(255,255,255,0.06), transparent 55%),
    var(--bg);
}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: transparent; /* html paints the full background */
}

.wrap{
  padding: 18px;
}

.top{
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;

  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,0.03));
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.kicker{
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
}

h1{
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  font-size: 26px;
  line-height: 1.1;
}

.sub{
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
  font-size: 14px;
}

.search{
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.search input{
  width: min(360px, 48vw);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--faint);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  outline: none;
}

.search input::placeholder{
  color: rgba(255,255,255,0.45);
}

.search input:focus{
  border-color: rgba(84, 93, 190, 0.55);
  box-shadow: 0 0 0 3px rgba(84, 93, 190, 0.18);
}

.hint{
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}

.grid{
  display: grid;
  gap: 14px;
  grid-template-columns: auto auto;
}

.col{
  display: grid;
  gap: 14px;
}

.card{
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,0.03));
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
  padding: 16px;
  height: auto;
}

.card-head{
  margin-bottom: 10px;
}

.card h2{
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.card p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chips span{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--faint);
  /* background: rgba(255,255,255,0.06); */
  background: var(--blue);
  color: var(--muted);
  font-size: 12px;
}

.chips span.hot{
  background: var(--blue-2);
  color: rgba(255,255,255,0.90);
  border-color: var(--blue);
  /* border-color: rgba(84, 93, 190, 0.55); */
}

.bullets{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.bullets li{
  margin: 8px 0;
}

.bullets strong{
  color: rgba(255,255,255,0.90);
}

.footer{
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 12px;
}

/* Accessibility helper */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 860px){
  .top{
    flex-direction: column;
    align-items: stretch;
  }

  .search{
    align-items: stretch;
  }

  .search input{
    width: 100%;
  }

  .grid{
    grid-template-columns: 1fr;
  }
}



/* ======
 Courses
====== */

.course-grid{
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.course-row{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.course-row:first-child{
  border-top: 0;
  padding-top: 0;
}

.course-label{
  font-weight: 700;
  color: rgba(255,255,255,0.90);
  letter-spacing: -0.01em;
  font-size: 13px;
  padding-top: 2px;
}

.course-items{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip{
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--faint);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 12px;
}

