/* Guides section: list page and articles. */
:root {
  --text: #f4f7ff;
  --muted: #a7b5db;
  --soft: #dbe6ff;
  --border: rgba(120, 148, 235, 0.24);
  --panel: rgba(10, 18, 44, 0.84);
  --aim-blue: #4da8f5;
  --aim-purple: #7a5cff;
  --aim-gold: #cbb55c;
  --green: #7be36a;
  --red: #ff9a9a;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(77, 168, 245, 0.12), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(122, 92, 255, 0.13), transparent 28%),
    linear-gradient(180deg, #04070f 0%, #071024 50%, #04070f 100%);
}
a {
  color: #8fc6ff;
}
.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}
.article-wrap {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(4, 11, 21, 0.82);
  border-bottom: 1px solid rgba(163, 189, 222, 0.1);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1320px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.top-nav .nav-link {
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  color: var(--soft);
  font-weight: 750;
  font-size: 0.95rem;
  text-decoration: none;
}
.top-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--aim-blue), var(--aim-purple));
  color: #fff;
  box-shadow: 0 16px 34px rgba(108, 37, 190, 0.24);
}
.button:hover {
  transform: translateY(-1px);
}

/* Headers */
.page-head {
  padding: 3rem 0 1.5rem;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}
.crumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  opacity: 0.6;
}
.crumbs a {
  color: var(--soft);
  text-decoration: none;
}
.eyebrow {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 150, 190, 0.12);
  border: 1px solid rgba(108, 37, 190, 0.26);
  color: #d4c4ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.035em;
}
h1 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.04;
}
.lede {
  margin: 0;
  color: var(--soft);
  font-size: 1.2rem;
  line-height: 1.65;
}
.byline {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Guides list */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.guide-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.6rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.guide-card:hover {
  border-color: rgba(77, 168, 245, 0.6);
  transform: translateY(-2px);
}
.guide-card h2,
.guide-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
  line-height: 1.2;
}
.guide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.guide-meta {
  margin: 0 0 0.8rem !important;
  color: var(--soft) !important;
  font-size: 0.85rem;
  font-weight: 700;
}
.guide-more {
  margin-top: auto !important;
  padding-top: 1.1rem;
  color: #8fc6ff !important;
  font-weight: 800;
}

/* Article body */
.article {
  padding-bottom: 1rem;
}
.article h2 {
  margin: 2.6rem 0 0.8rem;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.2;
  scroll-margin-top: 90px;
}
.article h3 {
  margin: 1.8rem 0 0.5rem;
  font-size: 1.2rem;
}
.article p,
.article li,
.article td {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}
.article strong {
  color: var(--soft);
}
.article ul,
.article ol {
  padding-left: 1.3rem;
}
.article li {
  margin-bottom: 0.45rem;
}
.article code {
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--soft);
  font-size: 0.92em;
}
.article pre {
  overflow-x: auto;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 18, 0.85);
  line-height: 1.6;
}
.article pre code {
  padding: 0;
  background: none;
  color: #dbe6ff;
  font-size: 0.9rem;
}
.toc {
  margin: 2rem 0 0;
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.toc strong {
  display: block;
  margin-bottom: 0.4rem;
}
.toc ol {
  margin: 0;
}
.toc li {
  margin: 0.2rem 0;
  font-size: 1rem;
}
.toc a {
  color: var(--soft);
  text-decoration: none;
}
.toc a:hover {
  color: #fff;
  text-decoration: underline;
}
.callout-box {
  margin: 1.6rem 0;
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  border-left: 4px solid var(--aim-gold);
  background: rgba(203, 181, 92, 0.07);
}
.callout-box p {
  margin: 0;
}
.example-box {
  margin: 1.6rem 0;
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 92, 92, 0.3);
  background: rgba(255, 92, 92, 0.06);
}
.example-box p {
  margin: 0.4rem 0 0;
}
.example-box .label {
  margin: 0;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.checklist {
  list-style: none;
  padding-left: 0 !important;
}
.checklist li {
  position: relative;
  padding-left: 2rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 5px;
  border: 2px solid var(--aim-blue);
}
.table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0;
}
.article table {
  width: 100%;
  border-collapse: collapse;
}
.article th,
.article td {
  padding: 0.75rem 0.7rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.article th {
  color: var(--soft);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.article td {
  font-size: 0.98rem;
}

/* Inline call to action inside an article */
.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.2rem 0;
  padding: 1.2rem 1.4rem;
  border-radius: 20px;
  border: 1px solid rgba(77, 168, 245, 0.4);
  background: linear-gradient(135deg, rgba(77, 168, 245, 0.1), rgba(122, 92, 255, 0.1));
}
.inline-cta p {
  flex: 1 1 280px;
  margin: 0;
  color: var(--soft) !important;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.7rem;
}
.faq-item {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.faq-item summary {
  position: relative;
  padding: 1rem 3rem 1rem 1.2rem;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-weight: 750;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--aim-blue);
  font-size: 1.35rem;
  font-weight: 700;
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-item p {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
}

/* End-of-article call to action */
.end-cta {
  margin: 3rem 0 0;
  padding: 2rem;
  border-radius: 28px;
  border: 1px solid rgba(108, 37, 190, 0.3);
  background: linear-gradient(135deg, rgba(37, 150, 190, 0.16), rgba(108, 37, 190, 0.14), rgba(123, 227, 106, 0.08));
}
.end-cta h2 {
  margin: 0 0 0.6rem !important;
}
.end-cta p {
  margin: 0;
  color: var(--soft) !important;
}
.end-cta .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.3rem;
}
.related {
  padding: 3rem 0 4rem;
}
.related h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
}
.related .guide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .top-nav .nav-link {
    display: none;
  }
}
@media (max-width: 640px) {
  .related .guide-grid {
    grid-template-columns: 1fr;
  }
  .end-cta {
    padding: 1.4rem;
  }
  .end-cta .button {
    width: 100%;
  }
}
@media (max-width: 420px) {
  .brand span {
    display: none;
  }
}
