/* ============================================
   FONTS
   ============================================ */
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap");

@font-face {
  font-family: 'Salesforce Sans';
  src: url('https://a.sfdcstatic.com/shared/fonts/salesforce-sans/SalesforceSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Salesforce Sans';
  src: url('https://a.sfdcstatic.com/shared/fonts/salesforce-sans/SalesforceSans-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ITCAvantGardePro';
  src: url('https://developer.salesforce.com/workshops/assets/fonts/ITCAvantGardePro-Demi.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  /* Salesforce brand palette */
  --brand-primary:  #0176D3;
  --brand-primary-hover: #0265b8;
  --brand-dark:     #032D60;
  --brand-text:     #3E3E3C;
  --brand-muted:    #706E6B;
  --brand-bg:       #F3F4F6;
  --brand-card:     #F4F6F9;
  --brand-border:   #DDDBDA;
  --white:          #FFFFFF;

  /* Level badge colors */
  --level-100-bg:   #f0fdf4; --level-100-text: #15803d; --level-100-border: #bbf7d0;
  --level-200-bg:   #eff6ff; --level-200-text: #1d4ed8; --level-200-border: #bfdbfe;
  --level-300-bg:   #eef2ff; --level-300-text: #4338ca; --level-300-border: #c7d2fe;
  --level-400-bg:   #fef2f2; --level-400-text: #b91c1c; --level-400-border: #fecaca;

  /* Typography */
  --font-sans: 'Salesforce Sans', Arial, Helvetica, sans-serif;
  --font-heading: 'ITCAvantGardePro', 'Salesforce Sans', Arial, sans-serif;
  --font-mono: 'Fira Code', ui-monospace, monospace;

  /* Layout */
  --nav-height:     56px;
  --max-w-catalog:  1280px;
  --sidebar-width:  272px;
  --toc-width:      220px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-nav:       0 1px 0 0 var(--brand-border);
  --shadow-card:      0 2px 4px 0 rgba(0,0,0,.06);
  --shadow-card-hover: 0 4px 12px 0 rgba(0,0,0,.10);
  --shadow-md:        0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:        0 8px 32px rgba(0,0,0,.12);

  --transition: 150ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--brand-text);
  background: var(--brand-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-primary-hover); }

img { max-width: 100%; height: auto; }

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  height: var(--nav-height);
  background: var(--white);
  box-shadow: var(--shadow-nav);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-w-catalog);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo svg { color: var(--brand-primary); }

.nav-logo-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-dark);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-links .nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-muted);
  transition: background var(--transition), color var(--transition);
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
  background: var(--brand-bg);
  color: var(--brand-dark);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  height: 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--brand-primary-hover);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-text);
  border: 1.5px solid var(--brand-border);
  height: 36px;
  padding: 0 16px;
}
.btn-ghost:hover {
  background: var(--brand-bg);
  color: var(--brand-dark);
  border-color: var(--brand-muted);
}

.btn-lg { height: 44px; padding: 0 24px; font-size: 1rem; }
.btn-sm { height: 28px; padding: 0 12px; font-size: 0.8rem; }

/* ============================================
   PAGE OFFSET (fixed nav)
   ============================================ */
main { margin-top: var(--nav-height); }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #0d2233 100%);
  color: var(--white);
  padding: 72px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(1,118,211,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w-catalog);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 16px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat {
  text-align: center;
  padding: 20px 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   SECTIONS (home page)
   ============================================ */
.section-inner {
  max-width: var(--max-w-catalog);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.link-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.featured-section { padding: 56px 24px; background: var(--white); }
.how-section      { padding: 56px 24px; background: var(--brand-bg); }
.value-section    { padding: 56px 24px; background: var(--white); }

.how-section h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 28px;
  text-align: center;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.how-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
}

.how-icon { font-size: 1.75rem; margin-bottom: 14px; }
.how-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 14px; color: var(--brand-dark); }
.how-card ol { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.how-card li { font-size: 0.875rem; color: var(--brand-muted); }

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-item { padding: 20px; }
.value-icon { font-size: 1.4rem; display: block; margin-bottom: 10px; }
.value-item h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; color: var(--brand-dark); }
.value-item p  { font-size: 0.825rem; color: var(--brand-muted); }

/* ============================================
   WORKSHOP CARDS
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.workshop-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-card);
}

.workshop-card:hover {
  border-color: rgba(1,118,211,0.4);
  box-shadow: var(--shadow-card-hover);
  color: inherit;
}

.workshop-card[data-hidden="true"] { display: none; }

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.workshop-card:hover .card-title { text-decoration: underline; }

.card-desc {
  font-size: 0.875rem;
  color: var(--brand-text);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.meta-duration,
.meta-language {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--brand-muted);
}

.meta-duration svg,
.meta-language svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.meta-level {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 10px;
  line-height: 1.4;
  border: 1px solid;
}

.meta-level.level-100 { background: var(--level-100-bg); color: var(--level-100-text); border-color: var(--level-100-border); }
.meta-level.level-200 { background: var(--level-200-bg); color: var(--level-200-text); border-color: var(--level-200-border); }
.meta-level.level-300 { background: var(--level-300-bg); color: var(--level-300-text); border-color: var(--level-300-border); }
.meta-level.level-400 { background: var(--level-400-bg); color: var(--level-400-text); border-color: var(--level-400-border); }

.card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 2px 10px;
  background: #eff6ff;
  color: var(--brand-primary);
  border: 1px solid #bfdbfe;
}

/* ============================================
   CATALOG PAGE
   ============================================ */
.catalog-page { min-height: calc(100vh - var(--nav-height)); }

.catalog-header {
  background: var(--white);
  border-bottom: 1px solid var(--brand-border);
  padding: 32px 24px;
}

.catalog-header-inner {
  max-width: var(--max-w-catalog);
  margin: 0 auto;
}

.catalog-header h1 {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.catalog-header p {
  color: var(--brand-muted);
  margin-top: 4px;
  font-size: 1rem;
}

.catalog-body {
  max-width: var(--max-w-catalog);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Toolbar card */
.catalog-toolbar-card {
  background: var(--white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toolbar-row-1 {
  display: flex;
  gap: 12px;
}

.toolbar-row-2 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Search input */
.search-wrap {
  position: relative;
  flex: 1;
}

.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--brand-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--brand-border);
  background: var(--white);
  padding: 0 16px 0 42px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--brand-text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(1,118,211,0.2);
}

/* Pill selects */
.pill-select {
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--brand-border);
  background: var(--white);
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--brand-text);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23706E6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.pill-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(1,118,211,0.2);
}

.pill-select.filter-sm { height: 36px; font-size: 0.875rem; }

.no-results {
  text-align: center;
  padding: 48px;
  color: var(--brand-muted);
  font-size: 0.9rem;
}

.no-results button {
  color: var(--brand-primary);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================
   WORKSHOP SHELL (sidebar + content + toc)
   ============================================ */
.workshop-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: calc(100vh - var(--nav-height));
}

/* Sidebar */
.workshop-sidebar {
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  background: var(--white);
  border-right: 1px solid var(--brand-border);
  padding: 0 0 32px;
}

.sidebar-header {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--brand-border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.sidebar-back {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  color: var(--brand-muted);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.sidebar-back:hover { color: var(--brand-primary); }

.sidebar-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.3;
}

.sidebar-nav { padding: 8px 8px 0; }

.nav-section { margin-bottom: 4px; }

.nav-section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-muted);
  padding: 12px 8px 4px;
}

.nav-list { list-style: none; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--brand-muted);
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover {
  background: var(--brand-bg);
  color: var(--brand-dark);
}

.nav-item.active .nav-link {
  background: #eff6ff;
  color: var(--brand-primary);
  font-weight: 600;
}

.nav-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--brand-bg);
  color: var(--brand-muted);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-item.active .nav-step {
  background: var(--brand-primary);
  color: var(--white);
}

/* Workshop content area */
.workshop-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--toc-width);
  grid-template-rows: auto 1fr;
  position: relative;
  background: var(--brand-bg);
  align-items: start;
}

.sidebar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  position: fixed;
  bottom: 24px;
  left: 16px;
  z-index: 200;
  box-shadow: var(--shadow-md);
}

.sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand-muted);
  border-radius: 2px;
}

/* Article */
.workshop-article {
  padding: 40px 48px;
  grid-column: 1;
  background: var(--white);
  margin: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.step-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.workshop-article h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.workshop-article h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--brand-border);
}

.workshop-article h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 24px 0 8px;
}

.workshop-article h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-muted);
  margin: 18px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.workshop-article p {
  color: var(--brand-text);
  line-height: 1.75;
  margin-bottom: 14px;
}

.workshop-article ul, .workshop-article ol {
  padding-left: 24px;
  margin-bottom: 14px;
  color: var(--brand-text);
  line-height: 1.75;
}

.workshop-article li { margin-bottom: 4px; }

.workshop-article a { color: var(--brand-primary); font-weight: 500; }

.workshop-article strong { font-weight: 700; color: var(--brand-dark); }

.workshop-article code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--brand-bg);
  color: var(--brand-dark);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--brand-border);
}

.workshop-article pre {
  background: #011529;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 18px 0;
}

.workshop-article pre code {
  background: none;
  color: #e2e8f0;
  border: none;
  font-size: 0.875rem;
  line-height: 1.7;
  padding: 0;
}

.workshop-article blockquote {
  border-left: 4px solid var(--brand-primary);
  background: #eff6ff;
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 18px 0;
  color: var(--brand-text);
  font-size: 0.9rem;
}

.workshop-article blockquote p { margin: 0; }

.workshop-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.875rem;
}

.workshop-article th {
  background: var(--brand-bg);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--brand-border);
  color: var(--brand-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.workshop-article td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--brand-border);
  color: var(--brand-text);
}

.workshop-article tr:last-child td { border-bottom: none; }

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 0.825rem;
  color: var(--brand-muted);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--brand-border);
}

/* Pagination */
.article-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--brand-border);
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-text);
  transition: all var(--transition);
}

.pagination-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: #eff6ff;
}

/* TOC Panel */
.toc-panel {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  height: fit-content;
  padding: 24px 20px;
  border-left: 1px solid var(--brand-border);
  grid-column: 2;
  grid-row: 1 / -1;
}

.toc-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-muted);
  margin-bottom: 12px;
}

.toc-nav { display: flex; flex-direction: column; gap: 2px; }

.toc-link {
  font-size: 0.8rem;
  color: var(--brand-muted);
  padding: 3px 0 3px 12px;
  border-left: 2px solid transparent;
  transition: all var(--transition);
  line-height: 1.4;
}

.toc-link:hover { color: var(--brand-dark); border-color: var(--brand-border); }
.toc-link.active { color: var(--brand-primary); border-color: var(--brand-primary); font-weight: 600; }
.toc-link.toc-h3 { padding-left: 22px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.6);
  padding: 40px 24px 0;
}

.footer-inner {
  max-width: var(--max-w-catalog);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand { max-width: 300px; }

.footer-logo {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand p { font-size: 0.875rem; line-height: 1.6; }

.footer-links { display: flex; gap: 48px; }

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-w-catalog);
  margin: 0 auto;
  padding: 14px 0;
  font-size: 0.8rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; }
  .stat { flex: 1; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .workshop-content { grid-template-columns: 1fr; }
  .toc-panel { display: none; }
}

@media (max-width: 768px) {
  .workshop-shell { grid-template-columns: 1fr; }
  .workshop-sidebar {
    position: fixed;
    left: -100%;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    z-index: 99;
    transition: left 200ms ease;
    width: var(--sidebar-width);
    box-shadow: var(--shadow-lg);
  }
  .workshop-sidebar.open { left: 0; }
  .sidebar-toggle { display: flex; }
  .workshop-article { padding: 24px 20px; margin: 12px; }
  .catalog-body { padding: 16px; }
  .toolbar-row-1 { flex-direction: column; }
  .how-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 16px; }
  .hero-stats { flex-direction: column; }
}

/* ============================================
   SYNTAX HIGHLIGHTING (rouge)
   ============================================ */
.highlight .c  { color: #6a9955; }
.highlight .k  { color: #c586c0; }
.highlight .s  { color: #ce9178; }
.highlight .s2 { color: #ce9178; }
.highlight .n  { color: #9cdcfe; }
.highlight .o  { color: #d4d4d4; }
.highlight .p  { color: #d4d4d4; }
.highlight .mi { color: #b5cea8; }
.highlight .nb { color: #4ec9b0; }

/* ============================================
   TASK LIST CHECKBOXES
   ============================================ */
.task-list-item-checkbox {
  margin-right: 0.4em;
  vertical-align: middle;
}

/* Ensure text node after checkbox has breathing room */
.task-list-item {
  list-style: none;
}
