/* Sample model (/examples/) — matches the crisp guide & start page style */

body.examples {
  --bg: #fafbfd;
  --surface: #ffffff;
  --surface-subtle: #f3f5fa;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #526074;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #4f5bd5;
  --accent-hover: #3f4bc4;
  --accent-ink: #3730a3;
  --bar-bg: rgba(250, 251, 253, 0.88);
  --shadow-frame: 0 14px 36px rgba(15, 23, 42, 0.08);
  --container: 1000px;

  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    'Geist Variable',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  body.examples {
    --bg: #0b0d13;
    --surface: #12151f;
    --surface-subtle: #171b27;
    --ink: #f1f5f9;
    --ink-secondary: #cbd5e1;
    --muted: #94a3b8;
    --line: #212736;
    --line-strong: #323b50;
    --accent: #7c89ff;
    --accent-hover: #96a1ff;
    --accent-ink: #a5b4fc;
    --bar-bg: rgba(11, 13, 19, 0.88);
    --shadow-frame: 0 18px 44px rgba(0, 0, 0, 0.4);
  }
}

body.examples *,
body.examples *::before,
body.examples *::after {
  box-sizing: border-box;
}

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

/* Header */
body.examples header.site-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: none;
  margin: 0;
  padding: 14px max(24px, calc((100% - var(--container)) / 2));
  background: var(--bar-bg);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 28px;
}

body.examples header.site-bar .brand {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink);
  text-decoration: none;
}

body.examples header.site-bar nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-right: auto;
}

body.examples header.site-bar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.14s ease;
}

body.examples header.site-bar nav a[href='/examples/'] {
  color: var(--ink);
  font-weight: 600;
}

body.examples header.site-bar nav a:hover {
  color: var(--ink);
}

body.examples header.site-bar a.open {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 8px;
  background: #4f5bd5;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 560;
  text-decoration: none;
  transition: background 0.14s ease;
}

body.examples header.site-bar a.open:hover {
  background: #3f4bc4;
}

/* Main container */
body.examples main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 72px;
}

/* Page header */
body.examples .page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: 28px;
}

body.examples .header-copy {
  flex: 1 1 420px;
}

body.examples .page-header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

body.examples .page-lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}

body.examples .header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

/* Buttons & links */
body.examples .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  background: #4f5bd5;
  color: #ffffff;
  font-size: 0.9125rem;
  font-weight: 580;
  text-decoration: none;
  transition: background 0.14s ease;
}

body.examples .btn-primary:hover {
  background: #3f4bc4;
}

body.examples .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.9125rem;
  font-weight: 560;
  color: var(--muted);
  text-decoration: none;
}

body.examples .text-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Full-width sample showcase */
body.examples .sample-showcase {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-frame);
  margin-bottom: 44px;
}

body.examples .sample-preview {
  display: block;
  padding: 16px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--line);
}

body.examples .sample-preview img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

body.examples .sample-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 28px;
  padding: 20px 24px;
}

body.examples .sample-bar-copy {
  flex: 1 1 460px;
}

body.examples .sample-bar h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

body.examples .sample-bar h2 a {
  color: inherit;
  text-decoration: none;
}

body.examples .sample-bar h2 a:hover {
  color: var(--accent-ink);
}

body.examples .sample-summary {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 68ch;
}

body.examples .metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

body.examples .metric-row li {
  margin: 0;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}

/* Try in toro4n grid */
body.examples .try-section {
  margin-bottom: 48px;
}

body.examples .try-section > h2 {
  margin: 0 0 18px;
  font-size: 1.25rem;
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

body.examples .try-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.examples .try-card {
  margin: 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
}

body.examples .try-card h3 {
  margin: 0 0 6px;
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

body.examples .try-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

body.examples .try-card strong {
  color: var(--ink);
  font-weight: 600;
}

body.examples .try-card code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84em;
  color: var(--ink);
}

/* Bottom navigation */
body.examples .also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

body.examples .also-label {
  font-weight: 600;
  color: var(--ink);
}

body.examples .also a {
  display: inline-block;
  padding: 3px 0;
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 500;
}

body.examples .also a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer */
body.examples footer.site-footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

body.examples footer.site-footer p {
  margin: 0 0 8px;
  max-width: none;
}

body.examples footer.site-footer .site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
}

body.examples footer.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--muted);
  text-decoration: none;
}

body.examples footer.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 760px) {
  body.examples .try-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.examples header.site-bar {
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 12px 16px;
  }

  body.examples header.site-bar .brand {
    margin-right: auto;
  }

  body.examples header.site-bar nav {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-right: 0;
  }

  body.examples main {
    padding: 32px 16px 56px;
  }

  body.examples .sample-preview {
    padding: 10px;
  }

  body.examples .sample-bar {
    padding: 16px;
  }
}
