/* Guides — reading room for quiet authority */

.guides {
  --ink: #17202a;
  --ink-soft: #1f2933;
  --muted: #52606d;
  --brand: #176b67;
  --brand-deep: #0f4f4c;
  --line: rgba(23, 32, 42, 0.1);
  --paper: #f7f5f0;
  min-height: 100%;
  color: var(--ink-soft);
  background:
    radial-gradient(ellipse 90% 55% at 100% -10%, rgba(23, 107, 103, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(23, 32, 42, 0.04), transparent 50%),
    linear-gradient(180deg, #f3f0e8 0%, var(--paper) 40%, #faf9f6 100%);
}

.guides-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  backdrop-filter: blur(10px);
  background: rgba(247, 245, 240, 0.8);
  border-bottom: 1px solid rgba(23, 32, 42, 0.06);
}

.guides-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.guides-nav-brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.4rem;
  object-fit: contain;
}

.guides-nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.875rem;
}

.guides-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.guides-nav-links a:hover { color: var(--ink); }

.guides-nav-links .guides-nav-cta {
  color: #fff;
  background: var(--brand);
  padding: 0.45rem 0.85rem;
  border-radius: 0.4rem;
  font-weight: 650;
}

.guides-nav-links .guides-nav-cta:hover {
  background: var(--brand-deep);
  color: #fff;
}

.guides-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.25rem 1.5rem 2rem;
}

.guides-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.guides-hero h1 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.guides-hero-lead {
  margin: 1rem 0 0;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36rem;
}

.guides-hero-lead a {
  color: var(--brand);
  font-weight: 650;
  text-decoration: none;
}

.guides-hero-lead a:hover {
  text-decoration: underline;
}

.guides-group {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}

.guides-group-title {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.guides-group .guides-list {
  padding: 0;
}

.guides-list {
  list-style: none;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  max-width: 720px;
  display: grid;
  gap: 0;
}

.guides-list li {
  border-top: 1px solid var(--line);
}

.guides-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.guides-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.35rem 0;
  text-decoration: none;
  color: inherit;
  transition: padding 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 640px) {
  .guides-list a {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.guides-list a:hover {
  padding-left: 0.35rem;
}

.guides-list-num {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.guides-list-title {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.guides-list-summary {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.guides-list-meta {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Article */
.guide-article {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.75rem 1.5rem 2rem;
}

.guide-crumb {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.guide-crumb a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.guide-crumb a:hover { text-decoration: underline; }

.guide-article-header h1 {
  margin: 0.35rem 0 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.guide-dek {
  margin: 1rem 0 0;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--muted);
}

.guide-meta {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.guide-body {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

.guide-section {
  margin: 0 0 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(23, 107, 103, 0.2);
}

.guide-section h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.guide-section p {
  margin: 0.85rem 0 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.guide-related {
  margin: 3rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}

.guide-related h2 {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.guide-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.guide-related a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.guide-related a:hover { color: var(--brand); }

.guide-related span {
  display: block;
  margin-top: 0.2rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.guide-close {
  margin: 3rem auto 4rem;
  max-width: 680px;
  padding: 0 1.5rem;
}

.guide-close-inner {
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 1.75rem;
  text-align: center;
}

.guide-close-inner p {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.guide-close-inner span {
  display: block;
  margin-top: 0.45rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
}

.guide-close-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  padding: 0.65rem 1.05rem;
}

.guide-btn--solid {
  background: var(--brand);
  color: #fff;
}

.guide-btn--solid:hover { background: var(--brand-deep); }

.guide-btn--ghost {
  border: 1px solid rgba(23, 32, 42, 0.16);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
}

.guide-btn--ghost:hover { background: #fff; }

.guides-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.guides-footer a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
