/* === YA Portfolio — Dark Theme === */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* === Tokens === */
:root {
  --bg:           #0a0a0f;
  --bg2:          #111118;
  --bg3:          #18181f;
  --border:       rgba(255,255,255,0.07);
  --border-bright:rgba(255,255,255,0.14);
  --text:         #f0f0f5;
  --text-muted:   #888896;
  --text-dim:     #55555f;
  --accent:       #7c6dfa;
  --accent-dim:   rgba(124,109,250,0.12);
  --accent-border:rgba(124,109,250,0.35);
  --green:        #3ecf8e;
  --green-dim:    rgba(62,207,142,0.1);
  --mono: 'Space Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
img { max-width: 100%; display: block; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* === NAV === */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 0.125rem;
}

.brand-logo {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  margin-right: auto;
  letter-spacing: 0.02em;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  padding: 7px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-icon:hover {
  color: var(--text-muted) !important;
  background: rgba(255,255,255,0.05);
}

.nav-hire {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 6px 16px !important;
  border-radius: 6px;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin-left: 0.5rem;
}

.nav-hire:hover {
  background: #9085fc !important;
  color: #fff !important;
}

/* === MAIN LAYOUT === */
main {
  padding-top: 64px;
}

/* === HERO === */
.hero {
  min-height: calc(100vh - 64px);
  padding: 80px 2rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(124,109,250,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,109,250,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero h1 .accent { color: var(--accent); }

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.hero-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.hero-social a {
  color: var(--text-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 13px;
  font-family: var(--mono);
  transition: color 0.15s;
}

.hero-social a:hover { color: var(--accent); }

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover {
  background: #9085fc;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

/* === SECTION LABEL === */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

/* === GENERIC SECTION === */
section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 3rem;
}

/* override for hero section */
section.hero {
  max-width: 1100px;
  padding: 80px 2rem 5rem;
  min-height: calc(100vh - 64px);
}

/* === CARD LIST (projects / highlights) === */
.card-list {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

.card-list-item {
  background: var(--bg2);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  text-decoration: none;
  transition: background 0.15s;
}

.card-list-item:hover { background: var(--bg3); }
.card-list-item:hover .card-arrow { color: var(--accent); }

.card-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  min-width: 1.5rem;
  padding-top: 0.2rem;
  flex-shrink: 0;
}

.card-body { flex: 1; min-width: 0; }

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.stack-tag {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.card-arrow {
  color: var(--text-dim);
  font-size: 1.1rem;
  transition: color 0.15s;
  padding-top: 0.15rem;
  flex-shrink: 0;
}

/* === COURSE BOX GRID (courses.html) === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.course-box {
  background: var(--bg2);
  display: flex;
  flex-direction: column;
}

.grid .course-box {
  border-radius: 0;
}

.course-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  border-bottom: 1px solid var(--border);
}

.course-box img[src*="cst311-preview"] { object-position: center 2%; }
.course-box img[src*="cst338-preview"] { object-position: center 28%; }

.course-box h2 {
  font-size: 1rem;
  color: var(--text);
  margin: 0.9rem 1rem 0.35rem;
  font-weight: 600;
}

.course-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 1rem 1rem;
  flex: 1;
}

.course-box a {
  display: inline-flex;
  align-items: center;
  margin: 0 1rem 1.1rem;
  align-self: flex-start;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.course-box a:hover { color: var(--text); }

/* === EXPERIENCE LIST === */
.xp-list {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

.xp-item {
  background: var(--bg2);
  padding: 1.75rem 2rem;
}

.xp-item h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.xp-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
  font-weight: 500;
  font-family: var(--mono);
}

.xp-item ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.xp-item ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.xp-item ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.xp-cta { margin-top: 1.1rem; }

/* === EDUCATION === */
.edu-list-wrapper {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

.edu-card {
  background: var(--bg2);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.edu-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.edu-card-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.edu-card h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.edu-year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  padding-top: 0.25rem;
  flex-shrink: 0;
}

.edu-status {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  width: fit-content;
}

.edu-status.in-progress {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(62,207,142,0.25);
}

.edu-status.graduated {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.edu-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.edu-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.edu-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.edu-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.edu-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

/* === ABOUT === */
.about-hero {
  text-align: center;
  margin-bottom: 0.5rem;
}

.about-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  border: 2px solid var(--border-bright);
  background: var(--bg2);
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.about-hero .page-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.about-stats {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.stat {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

.stat strong { color: var(--text); }

/* About two-col intro */
.about-intro {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-top: 2rem;
}

.about-intro .col {
  background: var(--bg2);
  padding: 1.75rem 2rem;
}

.about-intro .col h2 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  font-weight: 400;
}

.about-intro .col p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.chip {
  background: var(--bg);
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
}

.icon-list {
  list-style: none;
  padding: 0;
}

.icon-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.5rem 0 0.5rem 1.35rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.icon-list li:last-child { border-bottom: none; }

.icon-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 0.55rem;
}

/* About feature cards */
.about-cards {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.about-cards .card {
  background: var(--bg2);
  padding: 1.75rem 2rem;
}

.about-cards .card .accent {
  display: none;
}

.about-cards .card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.about-cards .card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-quote {
  text-align: center;
  margin-top: 3rem;
}

.about-quote blockquote {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg2);
  line-height: 1.6;
}

.about-quote blockquote span {
  font-style: normal;
  color: var(--text-dim);
  margin-left: 0.25rem;
}

/* === CONTACT PAGE === */
.contact-box {
  background: var(--bg2);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact-box h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.contact-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 0;
  text-align: left;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-list .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  min-width: 72px;
  letter-spacing: 0.04em;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.contact-list a:hover { color: var(--text); }

/* === PAGE HEADER === */
.page-header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 3rem 0;
}

.page-header h1,
.page-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.15;
  font-family: var(--sans);
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover { color: var(--text-muted); }

/* === CAT === */
#cat-guide { display: none !important; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-family: var(--sans);
}

p { color: var(--text-muted); }
li { color: var(--text-muted); }
ul, ol { list-style-position: outside; }

main a { color: var(--accent); text-decoration: none; }
main a:hover { text-decoration: underline; }

/* === UTILITIES === */
.container { max-width: 1000px; margin-inline: auto; padding-inline: 3rem; }
.muted { color: var(--text-muted); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  nav > a:not(.brand-logo):not(.nav-hire) { display: none; }

  .hero { padding: 60px 1.5rem 4rem; }
  section.hero { padding: 60px 1.5rem 4rem; max-width: 100%; }

  section { padding: 60px 1.5rem; }
  .page-header { padding: 60px 1.5rem 0; }

  .about-intro { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr; }

  .card-list-item { flex-wrap: wrap; gap: 0.75rem; }
  .card-arrow { display: none; }

  .contact-box { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.4rem; }
  .hero-social { gap: 0.75rem; }
}

/* === COURSE PAGES (individual) === */
.page-cst336 main,
.page-cst334 main,
.page-cst363 main,
.page-cst338 main,
.page-cst311 main,
.page-cst300 main { padding-inline: 0; }

main > h1 {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 3rem 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-family: var(--sans);
  color: var(--text);
  display: block;
}

.lead {
  max-width: 1000px;
  margin: 0 auto 1.5rem;
  padding: 0 3rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cards {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 3rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: transparent;
}

.page-cst336 .cards,
.page-cst334 .cards,
.page-cst363 .cards,
.page-cst338 .cards,
.page-cst311 .cards,
.page-cst300 .cards {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
}

.card {
  background: var(--bg2);
  padding: 1.5rem 1.75rem;
}

.card .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  max-width: 70ch;
  line-height: 1.6;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.badge-accent {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.card a {
  display: inline-block;
  margin-right: 0.6rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.card a:hover { color: var(--text); }

.media-16x9 {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg3);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 0.75rem;
  border: 1px solid var(--border);
}

.media-16x9 video { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   INDIVIDUAL COURSE PAGES  (body.course-page)
   ============================================================ */
body.course-page main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

body.course-page main > h1 {
  padding: 80px 0 1.75rem;
  max-width: none;
}

body.course-page section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin: 0 0 1rem;
  max-width: none;
}

body.course-page section > .section-label {
  display: block;
  margin-bottom: 0.5rem;
}

body.course-page section h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.85rem;
  color: var(--text);
}

body.course-page section embed,
body.course-page section iframe,
body.course-page section video {
  border-radius: 8px;
  border: 1px solid var(--border);
  width: 100%;
  display: block;
  margin: 0.75rem 0 1rem;
}

body.course-page section img {
  border-radius: 8px;
  border: 1px solid var(--border);
  max-width: 100%;
}

body.course-page main > p,
body.course-page main > a.back-link {
  padding: 0;
  padding-bottom: 0.5rem;
}

/* Skill grid (cst336) */
.skill-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.skill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pill {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-family: var(--mono);
  white-space: nowrap;
}

/* Link hub (cst336) */
.linkhub {
  text-align: center;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.link-pill {
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 0.15s;
  display: inline-block;
}

.link-pill:hover { background: #9085fc; color: #fff !important; }

.back-link {
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.back-link:hover { color: var(--text); text-decoration: none; }

@media (max-width: 768px) {
  body.course-page main { padding: 0 1rem 4rem; }
  body.course-page main > h1 { padding-top: 60px; padding-bottom: 1.25rem; }
  body.course-page section { padding: 1.25rem; }
}
