/* Guides page styles - related guides grid and index list */

/* Shared variables - match landing.css warm palette */
.guide-related,
.guide-list {
  --card: #fbfaf7;
  --line: #e0ddd5;
  --ink: #131514;
  --ink2: #464a47;
  --slab: Rockwell, "Roboto Slab", "Zilla Slab", Georgia, serif;
}

/* Related guides section */
.guide-related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.guide-related h2 {
  font: 500 1.5rem/1.3 var(--slab);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 24px;
}

/* Card grid - responsive columns */
.guide-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-related-grid li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-related-grid li::marker {
  content: none;
}

@media (max-width: 999px) {
  .guide-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .guide-related-grid {
    grid-template-columns: 1fr;
  }
}

/* Guide card link */
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(19, 21, 20, 0.15);
  text-decoration: none;
  color: var(--ink);
}

.guide-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
}

.guide-card-title svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--ink2);
  margin-top: 2px;
  transition: transform 0.2s;
}

.guide-card:hover .guide-card-title svg {
  transform: translateX(3px);
}

.guide-card-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink2);
  margin: 0;
}

/* Navigation links below grid */
.guide-back {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  font-size: 0.9rem;
}

.guide-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink2);
  text-decoration: none;
}

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

.guide-back a svg {
  width: 14px;
  height: 14px;
}

/* Guides index page - same card style */
.guide-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 999px) {
  .guide-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .guide-list {
    grid-template-columns: 1fr;
  }
}

.guide-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-list li::marker {
  content: none;
}

.guide-list a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.guide-list a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(19, 21, 20, 0.15);
  text-decoration: none;
  color: var(--ink);
}

.guide-list strong {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
}

.guide-list strong::after {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3'/%3E%3C/svg%3E") center/contain no-repeat;
  color: var(--ink2);
  transition: transform 0.2s;
}

.guide-list a:hover strong::after {
  transform: translateX(3px);
}

.guide-list span {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink2);
}

/* Index page API docs link */
.docs > p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
