/* All Sign Customizer — Guides (/guides/). Articles reuse docs.css; this file
   adds the layout without the section menu, the guides index, the closing
   call to action and the related guides. */

/* ================================================================ Article */

.asc-docs--article.asc-guide { grid-template-columns: minmax(0, 1fr) 220px; max-width: 1140px; }
.asc-docs--article.asc-guide:has(.asc-doc-toc[hidden]) { grid-template-columns: minmax(0, 1fr); }
.asc-guide .asc-doc { max-width: 780px; }

.asc-guide-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 28px;
  align-items: center;
  margin-top: 56px;
  padding: 28px;
  border: 1px solid #C7EFE4;
  border-radius: 20px;
  background: linear-gradient(135deg, #F2FCF9, #F7FAFC);
}
.asc-guide-cta h2 { margin: 0 0 6px; font-size: 1.25rem !important; }
.asc-guide-cta p { margin: 0; color: var(--asc-doc-muted); }
.asc-guide-cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.asc-guide-related { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--asc-doc-line); }
.asc-guide-related h2 { margin: 0 0 14px; font-size: 1.1rem !important; }
.asc-guide-related ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.asc-guide-related a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--asc-doc-line);
  border-radius: 14px;
  color: var(--asc-doc-ink);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.asc-guide-related a:hover { border-color: var(--asc-teal); box-shadow: var(--asc-doc-shadow); }
.asc-guide-related span { color: var(--asc-doc-muted); font-size: 14px; line-height: 1.5; }

/* ================================================================== Index */

.asc-guides-hero { padding: 72px 0 40px; background: linear-gradient(180deg, #F2FCF9, #fff); }
.asc-guides-eyebrow { margin: 0 0 10px; color: var(--asc-doc-link); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.asc-guides-hero h1 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.asc-guides-lede { max-width: 62ch; margin: 0; color: var(--asc-doc-muted); font-size: 1.12rem; line-height: 1.6; }

.asc-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 24px 0 96px;
  list-style: none;
}
.asc-guide-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--asc-doc-line);
  border-radius: 18px;
  background: #fff;
  color: var(--asc-doc-ink);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.asc-guide-card:hover { border-color: var(--asc-teal); box-shadow: var(--asc-doc-shadow); transform: translateY(-2px); }
.asc-guide-card:focus-visible { outline: 3px solid var(--asc-teal); outline-offset: 3px; }
.asc-guide-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--asc-doc-soft); }
.asc-guide-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.asc-guide-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.asc-guide-card-body b { font-size: 1.12rem; line-height: 1.35; }
.asc-guide-card-body > span:last-child { color: var(--asc-doc-muted); font-size: 15px; line-height: 1.55; }
.asc-guide-card-meta { color: var(--asc-doc-link); font-size: 12.5px; font-weight: 600; }
.asc-guides-empty { padding: 32px 0 96px; color: var(--asc-doc-muted); }

@media (max-width: 960px) {
  .asc-docs--article.asc-guide { display: block; }
  .asc-guide .asc-doc-toc { display: none; }
}
@media (max-width: 640px) {
  .asc-guide-cta { grid-template-columns: 1fr; padding: 22px; }
  .asc-guides-hero { padding: 48px 0 24px; }
  .asc-guides-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .asc-guide-card, .asc-guide-related a { transition: none; }
  .asc-guide-card:hover { transform: none; }
}
