/* ===========================================================
   wrst.io — design tokens, ported 1:1 from the Claude Design
   prototype (project/Wurster.dc.html).
   =========================================================== */

:root {
  --pink-25: #fdf6f4;
  --pink-50: #fce9eb;
  --pink-75: #fbedef;
  --pink-100: #f6dadd;
  --pink-200: #f0c3ca;
  --pink-300: #f4a6b6;
  --pink-500: #e15a73;
  --pink-600: #c94962;
  --card: #fffbfa;
  --card-2: #fff6f5;
  --white: #fff6f5;
  --ink: #2c2333;
  --ink-soft: #4a3f4a;
  --muted: #6b5f6b;
  --muted-2: #8a7a88;
  --muted-3: #a9909f;
  --muted-4: #a9707d;
  --dark: #241e2b;
  --dark-border: #3a3140;
  --footer-bg: #2c2333;
  --footer-text: #e8e2e8;
  --footer-muted: #b3a6b2;
  --footer-accent: #f0a6b4;
  --font-display: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 16px 40px rgba(200, 80, 100, 0.08);
  --shadow-header: 0 4px 24px rgba(200, 80, 100, 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: var(--pink-300); }

html, body {
  margin: 0;
  padding: 0;
  background: var(--pink-50);
}

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #fce9eb 0%, #fdf2f0 420px, #fdf6f4 100%);
  min-height: 100vh;
  color: var(--ink);
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

.btn {
  border: none;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: var(--font-body);
}
.btn-primary { background: var(--pink-500); color: var(--white); }
.btn-primary:hover { background: var(--pink-600); }
.btn-primary.btn-lg {
  padding: 15px 28px;
  border-radius: 14px;
  font-size: 16px;
  box-shadow: 0 8px 20px rgba(225, 90, 115, 0.35);
}
.btn-secondary {
  background: var(--card-2);
  color: var(--pink-500);
  border: 1.5px solid var(--pink-200);
}
.btn-secondary:hover { background: var(--pink-50); }
.btn-secondary.btn-lg { padding: 15px 28px; border-radius: 14px; font-size: 16px; }
.btn-ghost {
  background: transparent;
  color: var(--pink-500);
  border: 1.5px solid var(--pink-200);
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
}
.btn-ghost:hover { background: var(--pink-50); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 16px clamp(16px, 4vw, 40px); }
.site-header-bar {
  max-width: 1240px;
  margin: 0 auto;
  background: rgba(255, 250, 249, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--pink-100);
  border-radius: 20px;
  padding: 10px 14px 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-header);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand-name em { color: var(--pink-500); font-style: normal; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; white-space: nowrap;
}
.main-nav a:hover { color: var(--pink-500); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); border: none; background: transparent; cursor: pointer;
}
.icon-btn:hover { background: var(--pink-100); }
.nav-toggle { background: var(--pink-100); }

.mobile-nav {
  display: none;
  max-width: 1240px; margin: 8px auto 0; background: var(--card-2);
  border: 1px solid var(--pink-100); border-radius: var(--radius-md);
  padding: 10px; flex-direction: column;
  box-shadow: 0 8px 24px rgba(200, 80, 100, 0.1);
}
.mobile-nav a {
  padding: 12px 10px; font-size: 15px; font-weight: 500; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--pink-100);
}
#nav-toggle:checked ~ .mobile-nav { display: flex; }

@media (min-width: 861px) {
  .mobile-nav, .nav-toggle, .mobile-nav-label { display: none !important; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero { max-width: 900px; margin: 0 auto; text-align: center; padding: clamp(40px, 8vw, 72px) clamp(16px, 5vw, 24px) 8px; position: relative; }
.hero-doodle { position: absolute; font-size: 34px; opacity: 0.5; display: none; }
.hero-doodle.left { top: 30px; left: 4%; transform: rotate(-12deg); }
.hero-doodle.right { top: 4px; right: 1%; font-size: 30px; transform: rotate(10deg); }
@media (min-width: 861px) { .hero-doodle { display: block; } }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 6.2vw, 64px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 6px; }
.hero h1.accent { color: var(--pink-500); margin: 0 0 22px; }
.hero p { font-size: clamp(15px, 2vw, 18px); line-height: 1.7; color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.hero p strong { color: var(--pink-500); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Process diagram ---------- */
.process { max-width: 760px; margin: 44px auto 0; padding: 0 clamp(16px, 5vw, 24px); }
.process-card {
  background: var(--card); border: 1px solid var(--pink-100); border-radius: 28px;
  padding: clamp(24px, 5vw, 44px); display: flex; align-items: center; justify-content: center;
  gap: clamp(12px, 3vw, 28px); flex-wrap: wrap; box-shadow: var(--shadow-card);
}
.process-step { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.process-step img.pig, .process-step img.wurst-file { width: clamp(76px, 10vw, 108px); height: clamp(76px, 10vw, 108px); object-fit: contain; }
.process-step img.wurst-file { width: clamp(62px, 8vw, 92px); height: auto; }
.process-step img.grinder { width: clamp(110px, 16vw, 180px); height: clamp(110px, 16vw, 180px); object-fit: contain; }
.process-step span { font-size: 12.5px; color: var(--muted-2); font-weight: 500; }
.process-arrow { font-size: 24px; color: var(--pink-500); }
.process-tagline { text-align: center; margin: 20px 0 0; color: var(--pink-500); font-style: italic; font-weight: 500; font-size: 14.5px; }

/* ---------- Feature / capability cards ---------- */
.card-grid { max-width: 1080px; margin: 56px auto 0; padding: 0 clamp(16px, 5vw, 24px); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card { background: var(--card); border: 1px solid var(--pink-100); border-radius: 20px; padding: 28px 24px; text-align: center; }
.feature-card-icon { width: 60px; height: 60px; border-radius: var(--radius-md); background: var(--pink-100); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.feature-card-icon img { width: 34px; height: 34px; object-fit: contain; }
.feature-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.feature-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0; }

.section-title { max-width: 1080px; margin: 56px auto 0; padding: 0 clamp(16px, 5vw, 24px); }
.section-title h2 { text-align: center; font-family: var(--font-display); font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; margin: 0 0 8px; }
.section-title p { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 32px; font-size: 15px; }

.capability-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.capability-card { background: var(--card-2); border: 1px solid var(--pink-100); border-radius: var(--radius-md); padding: 20px; display: flex; gap: 12px; align-items: flex-start; }
.capability-card .emoji { font-size: 22px; line-height: 1; }
.capability-card .title { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.capability-card .desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Terminal ---------- */
.terminal-wrap { max-width: 900px; margin: 56px auto 0; padding: 0 clamp(16px, 5vw, 24px) 80px; }
.terminal {
  background: var(--dark); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(225, 90, 115, 0.25); border: 1px solid rgba(225, 90, 115, 0.35);
}
.terminal-stripe { height: 5px; background: linear-gradient(90deg, var(--pink-500), var(--pink-300), var(--pink-500)); }
.terminal-titlebar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--dark-border); background: rgba(225, 90, 115, 0.06); }
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red { background: #ef6961; }
.terminal-dot.yellow { background: #f5be4d; }
.terminal-dot.green { background: #61c554; }
.terminal-titlebar span.label { margin-left: 8px; font-size: 12px; color: #c98a97; font-family: var(--font-mono); }
.terminal-body { padding: 22px 24px 26px; font-family: var(--font-mono); font-size: clamp(12.5px, 2vw, 14.5px); line-height: 1.85; overflow-x: auto; }
.terminal-body .prompt { color: #61c554; }
.terminal-body .cmd { color: var(--pink-300); }
.terminal-body .arg { color: #e8e2e8; }

/* ---------- Callout ---------- */
.callout { background: var(--card-2); border: 1px solid var(--pink-100); border-left: 4px solid var(--pink-500); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 24px 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ---------- CTA banner ---------- */
.cta-banner { margin-top: 48px; background: var(--card-2); border: 1px dashed var(--pink-200); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 36px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-banner img { width: 56px; height: 56px; object-fit: contain; }
.cta-banner h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin: 0; }
.cta-banner p { font-size: 14.5px; line-height: 1.65; color: var(--muted); max-width: 460px; margin: 0; }
.cta-banner .btn { margin-top: 6px; }

.wide-banner { background: var(--card-2); border: 1px solid var(--pink-100); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 40px); max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: clamp(20px, 4vw, 40px); flex-wrap: wrap; }
.wide-banner img { width: 72px; height: 72px; object-fit: contain; flex-shrink: 0; }
.wide-banner h2 { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin: 0 0 8px; }
.wide-banner p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0; }

/* ---------- Page heads ---------- */
.page-main { max-width: 1080px; margin: 0 auto; padding: 40px clamp(16px, 5vw, 24px) 80px; }
.page-head { text-align: center; margin-bottom: 10px; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; margin: 0; }
.page-head-icon { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; }
.page-head-icon img { width: 34px; object-fit: contain; }
.page-sub { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 36px; font-size: 15px; }

/* ---------- Examples grid ---------- */
.example-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.example-card { background: var(--card); border: 1px solid var(--pink-100); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; position: relative; }
.example-card-link { position: absolute; inset: 0; z-index: 1; }
.example-thumb { aspect-ratio: 16/10; background: repeating-linear-gradient(45deg, var(--pink-100), var(--pink-100) 10px, var(--pink-75) 10px, var(--pink-75) 20px); display: flex; align-items: center; justify-content: center; position: relative; }
.example-thumb img.real-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.example-thumb .placeholder-label { background: var(--card); border: 1px solid var(--pink-200); color: var(--muted-4); font-family: var(--font-mono); font-size: 11.5px; padding: 5px 10px; border-radius: 8px; }
.example-thumb .tag { position: absolute; top: 10px; right: 10px; background: var(--pink-500); color: var(--white); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.example-body { padding: 18px 20px 22px; text-align: center; }
.example-body .name { font-family: var(--font-mono); font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.example-body p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ---------- Runtime platform cards ---------- */
.platform-lede { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.platform-lede img { width: 26px; object-fit: contain; }
.platform-lede span { font-size: 13.5px; font-weight: 600; color: var(--muted-4); }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-bottom: 48px; }
.platform-card { background: var(--card); border: 1px solid var(--pink-100); border-radius: 18px; overflow: hidden; position: relative; }
.platform-card-stripe { height: 4px; background: linear-gradient(90deg, var(--pink-500), var(--pink-300)); }
.platform-card-body { padding: 22px 22px 24px; position: relative; }
.platform-badge { position: absolute; top: 16px; right: 18px; background: var(--pink-100); color: var(--pink-600); font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.platform-icon { width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--pink-100); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; box-shadow: 0 6px 14px rgba(225, 90, 115, 0.18); }
.platform-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.platform-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0 0 16px; }
.platform-command { background: var(--dark); border-radius: 10px; padding: 10px 12px; font-family: var(--font-mono); font-size: 12.5px; color: var(--pink-300); white-space: nowrap; overflow-x: auto; }

/* ---------- MeatGrinder page ---------- */
.grinder-main { max-width: 720px; margin: 0 auto; padding: 40px clamp(16px, 5vw, 24px) 90px; text-align: center; }
.grinder-main .page-sub { margin-bottom: 36px; }
.grinder-stage { background: var(--card); border: 1px solid var(--pink-100); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 36px) 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; overflow: hidden; }

.dropzone { border: 2px dashed var(--pink-200); background: #fffbfa; border-radius: var(--radius-lg); padding: clamp(36px, 7vw, 56px) 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; transition: background 0.15s, border-color 0.15s; }
.dropzone.dragover { border: 2px solid var(--pink-500); background: #fceef0; }
.dropzone-icons { display: flex; align-items: center; gap: 4px; }
.dropzone-icons img.pig { width: 64px; height: 64px; object-fit: contain; }
.dropzone-icons img.grinder { width: 100px; height: 100px; object-fit: contain; }
.dropzone h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 0; }
.dropzone p { font-size: 13.5px; color: var(--muted-2); margin: 0; }

.file-info { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 380px; background: var(--card-2); border: 1px solid var(--pink-100); border-radius: var(--radius-md); padding: 16px 18px; text-align: left; }
.file-info.poofing { animation: poofShrink 0.38s ease-in forwards; }
.file-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--pink-100); display: flex; align-items: center; justify-content: center; }
.file-meta { flex: 1; min-width: 0; }
.file-meta .fname { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta .fdetails { font-size: 12.5px; color: var(--muted-2); }

.grind-anim { position: relative; height: 130px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.grind-anim img.pig { width: 60px; height: 60px; object-fit: contain; position: absolute; top: 0; animation: pigFall 0.7s ease-out; }
.grind-anim img.grinder { width: 120px; height: 120px; object-fit: contain; animation: grinderShake 0.5s ease-in-out infinite; }
.particle { position: absolute; bottom: 40px; font-size: 20px; animation: particleFloat 1.3s ease-out infinite; }
.comic-text { position: absolute; right: 4%; top: 8px; font-family: "Comic Sans MS", "Segoe Print", cursive; font-weight: 700; font-size: 17px; color: var(--pink-500); animation: comicPop 0.5s ease-in-out infinite; }

.progress-track { width: 100%; max-width: 360px; height: 12px; background: var(--pink-100); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: repeating-linear-gradient(45deg, var(--pink-500), var(--pink-500) 8px, var(--pink-300) 8px, var(--pink-300) 16px); background-size: 32px 100%; animation: barShimmer 0.6s linear infinite; border-radius: 999px; transition: width 0.1s linear; }
.status-text { font-family: var(--font-mono); font-size: 13.5px; color: var(--pink-600); margin: 0; }

.confetti { position: absolute; left: 50%; top: 50%; font-size: 20px; animation: confettiBurst 1.1s ease-out forwards; }
.wurst-out { width: 96px; object-fit: contain; animation: wurstFlyOut 0.8s ease-out; }
.grinder-stage h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin: 0; }
.grinder-stage .hint { font-size: 13.5px; color: var(--muted-2); margin: 0; }
.grinder-stage .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

@keyframes pigFall { 0% { transform: translateY(-130px) rotate(-10deg); opacity: 0; } 65% { transform: translateY(8px) rotate(5deg); opacity: 1; } 100% { transform: translateY(0) rotate(0deg); opacity: 1; } }
@keyframes grinderShake { 0%, 100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-3px) rotate(-0.6deg); } 40% { transform: translateX(3px) rotate(0.6deg); } 60% { transform: translateX(-2px) rotate(-0.3deg); } 80% { transform: translateX(2px) rotate(0.3deg); } }
@keyframes wurstFlyOut { 0% { transform: translate(-30px, 8px) rotate(-16deg) scale(0.5); opacity: 0; } 55% { transform: translate(16px, -12px) rotate(10deg) scale(1.08); opacity: 1; } 100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; } }
@keyframes barShimmer { 0% { background-position: 0 0; } 100% { background-position: 32px 0; } }
@keyframes poofShrink { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(0.15); opacity: 0; } }
@keyframes particleFloat { 0% { transform: translateY(0) scale(0.7); opacity: 0; } 18% { opacity: 1; } 100% { transform: translateY(-100px) scale(1.1); opacity: 0; } }
@keyframes confettiBurst { 0% { transform: translate(0, 0) rotate(0) scale(0.5); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); opacity: 0; } }
@keyframes comicPop { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(3deg) scale(1.08); } }

/* ---------- Docs layout ---------- */
.docs-main { max-width: 1280px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 32px) 80px; display: flex; gap: 32px; align-items: flex-start; }
.docs-sidebar-toggle { display: none; align-items: center; gap: 8px; background: var(--card-2); border: 1px solid var(--pink-200); color: var(--pink-500); font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: var(--radius-sm); cursor: pointer; margin-bottom: 6px; }
.docs-sidebar { width: 240px; flex-shrink: 0; position: sticky; top: 96px; }
.docs-group { margin-bottom: 22px; }
.docs-group-title { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-3); margin-bottom: 8px; }
.docs-sidebar a { display: block; padding: 7px 10px; margin-bottom: 2px; border-radius: 8px; font-size: 14px; text-decoration: none; color: var(--ink-soft); }
.docs-sidebar a:hover { background: var(--pink-75); }
.docs-sidebar a.active { background: var(--pink-100); color: var(--pink-500); font-weight: 600; }
.docs-article { flex: 1; min-width: 0; max-width: 720px; }
.docs-breadcrumb { font-size: 13px; color: var(--muted-3); margin-bottom: 10px; }
.docs-article h1 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin: 0 0 12px; }
.docs-article h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; }
.docs-article h2 .header-anchor { text-decoration: none; color: inherit; }
.docs-article p { font-size: 16px; line-height: 1.75; color: var(--ink-soft); }
.docs-article code { background: var(--pink-100); padding: 2px 7px; border-radius: 6px; font-family: var(--font-mono); font-size: 14px; }
.docs-article pre { background: var(--dark); border-radius: 12px; padding: 18px 20px; font-family: var(--font-mono); font-size: 14px; color: #e8e2e8; line-height: 1.8; overflow-x: auto; }
.docs-article pre code { background: none; padding: 0; }
.docs-article ol, .docs-article ul { font-size: 15px; line-height: 1.8; color: var(--ink-soft); padding-left: 22px; }
.docs-placeholder { background: var(--card-2); border: 1px dashed var(--pink-200); border-radius: var(--radius-md); padding: 32px 24px; text-align: center; color: var(--muted-2); font-size: 14.5px; line-height: 1.7; }
.docs-pagenav { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--pink-100); }
.docs-pagenav a { color: var(--pink-500); text-decoration: none; font-weight: 600; font-size: 14px; }
.docs-toc { width: 190px; flex-shrink: 0; position: sticky; top: 96px; }
.docs-toc-title { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-3); margin-bottom: 10px; }
.docs-toc a { display: block; font-size: 13.5px; color: var(--muted); text-decoration: none; margin-bottom: 8px; }

@media (max-width: 860px) {
  .docs-sidebar-toggle { display: inline-flex; }
  .docs-sidebar { display: none; }
  .docs-sidebar.open { display: block; position: static; width: 100%; }
  .docs-toc { display: none; }
  .docs-main { flex-direction: column; }
  .docs-article { max-width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 48px clamp(16px, 4vw, 32px) 28px; }
.footer-top { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { max-width: 260px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand-row img { width: 34px; height: 34px; object-fit: contain; }
.footer-brand-row span { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.footer-brand p { font-size: 13.5px; color: var(--footer-muted); margin: 0; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col-title { font-weight: 700; color: var(--footer-accent); font-size: 13.5px; margin-bottom: 12px; }
.footer-col a { display: block; margin-bottom: 9px; color: var(--footer-muted); text-decoration: none; font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1240px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid #443a46; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom span { font-size: 12.5px; color: var(--muted-2); }
.footer-bottom img { width: 30px; height: 30px; object-fit: contain; opacity: 0.85; }

/* ---------- Branding playground (standalone page) ---------- */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 24px 0 48px; }
.swatch { border-radius: 14px; padding: 16px; min-height: 70px; display: flex; align-items: flex-end; font-family: var(--font-mono); font-size: 11.5px; border: 1px solid rgba(0,0,0,0.06); }

/* ---------- Wurst Viewer ---------- */
.viewer-main { max-width: 1080px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 32px) 90px; }
.viewer-main .page-head, .viewer-main .page-sub { text-align: center; }
.viewer-main .page-sub { max-width: 720px; margin-left: auto; margin-right: auto; }
.viewer-shell { margin-top: 34px; border: 1px solid var(--pink-100); border-radius: 28px; background: var(--card); padding: clamp(18px, 4vw, 28px); box-shadow: var(--shadow-card); }
.viewer-dropzone { min-height: 190px; border: 2px dashed var(--pink-200); border-radius: 22px; background: #fff9f8; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 28px; cursor: pointer; transition: .16s ease; }
.viewer-dropzone.dragover, .viewer-dropzone:focus-visible { border-color: var(--pink-500); background: #fceef0; outline: none; transform: translateY(-1px); }
.viewer-wurst-icon { width: 84px; height: 84px; object-fit: contain; flex: 0 0 auto; }
.viewer-dropzone h2 { font-family: var(--font-display); font-size: 20px; margin: 0 0 7px; }
.viewer-dropzone h2 code { font-family: var(--font-mono); color: var(--pink-500); }
.viewer-dropzone p { max-width: 540px; color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0; }
.viewer-info { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 14px; align-items: center; margin: 18px 0; padding: 14px 16px; border: 1px solid var(--pink-100); border-radius: 16px; background: var(--card-2); }
.viewer-info > div { min-width: 0; }
.viewer-label { display: block; color: var(--muted-3); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.viewer-info strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-stage-wrap { height: min(70vh, 680px); min-height: 360px; overflow: hidden; border: 1px solid var(--pink-100); border-radius: 22px; background: #fff; }
.viewer-stage-wrap wurst-embed { width: 100%; height: 100%; min-height: 100%; }
.viewer-status { min-height: 20px; margin: 14px 3px 0; color: var(--muted); font-size: 12.5px; }
.viewer-note { margin: 22px auto 0; max-width: 840px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.52); color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.viewer-note strong { color: var(--ink); }
@media (max-width: 760px) {
  .viewer-dropzone { flex-direction: column; text-align: center; }
  .viewer-info { grid-template-columns: 1fr; }
  .viewer-stage-wrap { min-height: 420px; height: 68vh; }
}

/* ---------- WRST.IO publisher verification ---------- */
.verify-main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px) 90px; }
.verify-shell { margin: 4px auto 0; border: 1px solid var(--pink-100); border-radius: 28px; background: var(--card); padding: clamp(18px, 4vw, 30px); box-shadow: var(--shadow-card); }
.verify-file-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.verify-file { border: 1px solid var(--pink-200); border-radius: 16px; padding: 16px; background: #fffafa; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.verify-file.optional { background: var(--card-2); }
.verify-file:hover { border-color: var(--pink-500); }
.verify-file input { display: none; }
.verify-file-icon { font-size: 28px; }
.verify-file strong, .verify-file small { display: block; }
.verify-file strong { font-size: 14px; }
.verify-file small { margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.verify-status { margin: 15px 0; padding: 11px 14px; border-radius: 12px; background: var(--card-2); color: var(--muted); font-size: 13px; }
.verify-status[data-kind="good"] { background: #e9f6ef; color: #246d4d; }
.verify-status[data-kind="bad"] { background: #fff0f2; color: #a53e52; }
.verify-subject { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; padding: 14px; border: 1px solid var(--pink-100); border-radius: 14px; }
.verify-subject span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-3); font-weight: 800; }
.verify-subject strong { display: block; margin-top: 4px; font-size: 12px; word-break: break-all; }
.verify-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.verify-card { border: 1px solid var(--pink-100); border-radius: 18px; background: #fffbfa; padding: 18px; }
.verify-card.claim-done { box-shadow: inset 0 0 0 1px #bbdfcb; }
.verify-card-head { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 14px; }
.verify-card-head > span { font-size: 25px; }
.verify-card h2 { font-family: var(--font-display); font-size: 16px; margin: 0; }
.verify-card p { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin: 3px 0 0; }
.verify-record { display: grid; gap: 7px; background: var(--dark); color: #f9edf0; border-radius: 12px; padding: 13px; margin-bottom: 10px; word-break: break-all; }
.verify-record code { color: inherit; font: 11px/1.5 var(--font-mono); }
.verify-record b { color: #f19caf; font-size: 10px; }
.verify-help { margin: 8px 0 12px !important; }
.verify-code-label { display: block; font-size: 10px; color: var(--muted-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.verify-code { width: 100%; margin: 7px 0 12px; box-sizing: border-box; border: 1px solid var(--pink-200); border-radius: 12px; background: white; padding: 13px; text-align: center; font: 800 25px/1 var(--font-mono); letter-spacing: .35em; color: var(--ink); }
.verify-result { margin-top: 18px; display: flex; gap: 14px; align-items: center; border: 1px solid #b9dfca; border-radius: 18px; padding: 15px; background: #effaf4; }
.verify-seal { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; background: #d8f1e3; color: #226849; font-weight: 900; }
.verify-result > div { flex: 1; min-width: 0; }
.verify-result strong { color: #226849; }
.verify-result p { margin: 3px 0 0; color: #56816a; font-size: 12px; }
.hidden { display: none !important; }
@media (max-width: 760px) { .verify-file-row, .verify-actions, .verify-subject { grid-template-columns: 1fr; } .verify-result { align-items: flex-start; flex-wrap: wrap; } }

.project-status { max-width: 920px; margin: -16px auto 38px; padding: 14px 18px; border: 1px solid var(--pink-200); border-radius: 16px; background: #fff7f8; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.project-status strong { color: var(--pink-600); }

/* Runtime release downloads */
.runtime-download { min-height: 43px; border: 0; border-radius: 11px; padding: 11px 13px; background: var(--dark); color: var(--pink-200); display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; font-family: var(--font-mono); font-size: 12px; font-weight: 700; cursor: pointer; box-sizing: border-box; width: 100%; }
.runtime-download:hover { color: #fff; transform: translateY(-1px); }
.runtime-download small { color: #c9b9c5; font-size: 9px; font-weight: 600; }
.runtime-download.disabled { opacity: .56; cursor: default; transform: none; }
.runtime-download-menu { position: relative; }
.runtime-download-menu > summary { list-style: none; }
.runtime-download-menu > summary::-webkit-details-marker { display: none; }
.runtime-download-menu[open] > summary { border-radius: 11px 11px 6px 6px; }
.runtime-download-popover { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--pink-100); border-radius: 13px; box-shadow: 0 18px 44px rgba(61,35,49,.16); padding: 6px; }
.runtime-download-popover a { display: flex; flex-direction: column; gap: 2px; padding: 10px 11px; border-radius: 9px; text-decoration: none; color: var(--dark); }
.runtime-download-popover a:hover { background: var(--pink-50); }
.runtime-download-popover strong { font-size: 12px; }
.runtime-download-popover small { color: var(--muted); font-size: 10px; }
.runtime-coming-soon { margin-top: 8px; color: var(--muted); font-family: var(--font-mono); font-size: 10px; text-align: center; }
.runtime-release-strip { margin: -18px 0 48px; border: 1px solid var(--pink-100); border-radius: 16px; background: rgba(255,255,255,.76); padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.runtime-release-strip strong, .runtime-release-strip span { display: block; }
.runtime-release-strip strong { font-family: var(--font-display); font-size: 15px; }
.runtime-release-strip span { color: var(--muted); font-size: 11px; margin-top: 3px; }
@media (max-width: 620px) { .runtime-release-strip { align-items: flex-start; flex-direction: column; } }
