:root {
  --bg-linen: #f5f2ea;
  --bg-paper: #fcfbf8;
  --bg-stone: #eee9de;
  --border-sand: #e2dcd0;
  --border-strong: #cbc2b2;
  --ink-primary: #1c1916;
  --ink-secondary: #575148;
  --ink-muted: #847d72;
  --sage-primary: #234738;
  --sage-dark: #193529;
  --sage-tint: #ebf1ed;
  --sage-border: #bfd1c7;
  --clay-primary: #9a523c;
  --clay-tint: #f6ebe6;
  --clay-border: #dfc2b6;
  --spring-red: #bf4330;
  --spring-blue: #366885;
  --spring-green: #234738;
  --spring-yellow: #c4922c;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-card: 0 2px 12px rgba(28, 25, 21, 0.045);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
}

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

html, body {
  background-color: var(--bg-linen);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--sage-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--clay-primary);
}

.guide-header {
  background: rgba(252, 251, 248, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-sand);
  padding: 0 2rem;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 30;
}

.guide-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink-primary);
}

.guide-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--sage-primary);
  color: #fcfbf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.guide-brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.guide-brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
}

.guide-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.guide-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.guide-nav a:hover {
  color: var(--ink-primary);
}

.btn-workbench {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--sage-primary);
  color: #fcfbf8 !important;
  text-decoration: none !important;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.15s ease;
}

.btn-workbench:hover {
  background: var(--sage-dark);
}

.guide-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.75rem 1.5rem 4rem;
}

.breadcrumb {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.breadcrumb a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clay-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.summary-callout {
  background: var(--bg-paper);
  border: 1px solid var(--border-sand);
  border-left: 3px solid var(--sage-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2.25rem;
}

.summary-callout-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--sage-primary);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.summary-callout p {
  font-size: 0.95rem;
  color: var(--ink-primary);
  margin: 0;
}

h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-primary);
  margin: 2.4rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-sand);
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 1.5rem 0 0.45rem;
}

p {
  margin-bottom: 1rem;
  color: var(--ink-secondary);
}

ul, ol {
  margin: 0 0 1.25rem 1.35rem;
  color: var(--ink-secondary);
}

li {
  margin-bottom: 0.45rem;
}

li strong {
  color: var(--ink-primary);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-paper);
  border: 1px solid var(--border-sand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin: 1.25rem 0 1.85rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

th {
  background: var(--bg-stone);
  color: var(--ink-primary);
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-sand);
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-sand);
  color: var(--ink-secondary);
  vertical-align: top;
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-primary);
}

.spring-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-linen);
  border: 1px solid var(--border-sand);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  color: var(--ink-primary);
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot.red { background: var(--spring-red); }
.dot.blue { background: var(--spring-blue); }
.dot.green { background: var(--spring-green); }
.dot.yellow { background: var(--spring-yellow); }

.cue-sheet-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-sand);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
  margin: 1.25rem 0 1.85rem;
}

.cue-transition {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--clay-primary);
  background: var(--clay-tint);
  border: 1px solid var(--clay-border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  display: inline-block;
  margin: 0.75rem 0 0.45rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.guide-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-sand);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.guide-card:hover {
  border-color: var(--sage-primary);
  transform: translateY(-1px);
}

.guide-card h2 {
  font-size: 1.38rem;
  margin: 0.3rem 0 0.55rem;
  padding: 0;
  border: none;
}

.guide-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.guide-card-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sage-primary);
}

.cta-banner {
  background: var(--bg-paper);
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 2.75rem;
  box-shadow: var(--shadow-card);
}

.cta-banner h2 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
  font-size: 1.6rem;
}

.faq-item {
  background: var(--bg-paper);
  border: 1px solid var(--border-sand);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.3rem;
  margin-bottom: 0.85rem;
}

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.faq-item p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.guide-footer {
  border-top: 1px solid var(--border-sand);
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.guide-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 640px) {
  .guide-header {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }
  .guide-shell {
    padding: 1.75rem 1rem 3rem;
  }
  th, td {
    padding: 0.6rem 0.75rem;
    font-size: 0.84rem;
  }
}
