:root {
  --guide-ink: #241d1b;
  --guide-muted: #756a65;
  --guide-paper: #fffaf4;
  --guide-paper-deep: #f4e9df;
  --guide-line: rgba(112, 91, 90, 0.18);
  --guide-gold: #846a2f;
  --guide-rose: #94584e;
  --guide-green: #506b5c;
}

body.guide-body {
  background: #fbf5ed;
  color: var(--guide-ink);
}

.guide-skip {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--guide-ink);
  color: #fff;
}

.guide-skip:focus { top: 8px; }

.guide-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: env(safe-area-inset-top, 0) clamp(18px, 4vw, 54px) 0;
  border-bottom: 1px solid var(--guide-line);
  background: rgba(255, 250, 244, 0.92);
  backdrop-filter: blur(16px);
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--guide-ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
  text-decoration: none;
  white-space: nowrap;
}

.guide-brand img { width: 28px; height: 28px; }

.guide-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.9rem;
}

.guide-nav a {
  color: var(--guide-muted);
  text-decoration: none;
}

.guide-nav a:hover,
.guide-nav a:focus-visible { color: var(--guide-rose); }
.guide-language-link { color: var(--guide-rose); font-weight: 700; }

.guide-main { min-height: 70vh; }

.guide-shell {
  width: min(100% - 36px, 1080px);
  margin: 0 auto;
}

.guide-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 6vw, 70px);
  border-bottom: 1px solid var(--guide-line);
}

.guide-hero-inner { max-width: 780px; }

.guide-eyebrow {
  margin: 0 0 14px;
  color: var(--guide-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-hero h1,
.guide-article h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 6vw, 4.7rem);
  font-weight: 500;
  line-height: 1.15;
}

.guide-lede {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--guide-muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.85;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 34px 0 70px;
}

.guide-card {
  display: flex;
  min-height: 218px;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--guide-line);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.72);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: rgba(132, 106, 47, 0.55);
  background: var(--guide-paper);
}

.guide-card-index {
  color: var(--guide-gold);
  font-size: 0.78rem;
  font-weight: 700;
}

.guide-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
}

.guide-card p {
  margin: 0;
  color: var(--guide-muted);
  line-height: 1.7;
}

.guide-card-cta { color: var(--guide-rose); font-size: 0.9rem; }

.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 26px;
  color: var(--guide-muted);
  font-size: 0.82rem;
}

.guide-breadcrumb a { color: inherit; }

.guide-article {
  width: min(100% - 36px, 720px);
  margin: 0 auto;
  padding: 44px 0 76px;
}

.guide-article h1 {
  margin-top: 20px;
  font-size: clamp(2rem, 6vw, 3.55rem);
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--guide-line);
  color: var(--guide-muted);
  font-size: 0.84rem;
}

.guide-prose { font-size: 1rem; line-height: 1.9; }
.guide-prose > *:first-child { margin-top: 0; }
.guide-prose p { margin: 1.15em 0; }
.guide-prose h2 {
  margin: 2.1em 0 0.7em;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.4;
}
.guide-prose h3 {
  margin: 1.8em 0 0.55em;
  font-size: 1.05rem;
  line-height: 1.5;
}
.guide-prose ul,
.guide-prose ol { padding-left: 1.35em; }
.guide-prose li { margin: 0.5em 0; }
.guide-prose strong { color: #171211; }

.guide-example,
.guide-note {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 3px solid var(--guide-gold);
  background: rgba(255, 250, 244, 0.78);
}

.guide-example p,
.guide-note p { margin: 0.55em 0; }
.guide-example .before { color: var(--guide-muted); text-decoration: line-through; }
.guide-example .after { color: var(--guide-green); font-weight: 650; }

.guide-table-wrap { margin: 28px 0; overflow-x: auto; }
.guide-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.guide-table th,
.guide-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--guide-line);
  text-align: left;
  vertical-align: top;
}
.guide-table th { color: var(--guide-gold); font-weight: 700; }

.guide-tool-link {
  margin: 36px 0;
  padding: 22px;
  border: 1px solid var(--guide-line);
  border-radius: 8px;
  background: var(--guide-paper-deep);
}
.guide-tool-link p { margin: 0 0 12px; }
.guide-tool-link a { color: var(--guide-rose); font-weight: 700; }

.guide-related {
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--guide-line);
}
.guide-related h2 { margin-top: 0; font-size: 1.25rem; }
.guide-related a { color: var(--guide-rose); }

.guide-footer {
  padding: 32px 18px calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--guide-line);
  color: var(--guide-muted);
  text-align: center;
  font-size: 0.82rem;
}
.guide-footer a { color: inherit; }

@media (max-width: 720px) {
  .guide-header { position: static; min-height: 62px; gap: 12px; }
  .guide-nav { gap: 14px; font-size: 0.82rem; }
  .guide-nav a:not(:first-child):not(.guide-language-link) { display: none; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 190px; }
  .guide-article { padding-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card { transition: none; }
}
