.guide-page {
  background:
    radial-gradient(circle at 82% -8%, rgb(81 215 199 / 10%), transparent 32rem),
    var(--bg);
}

.guide-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgb(17 19 26 / 90%);
  backdrop-filter: blur(18px);
}

.guide-header-inner,
.guide-main,
.guide-footer-inner {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.guide-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding-top: env(safe-area-inset-top);
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.guide-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.guide-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.guide-nav a:hover,
.guide-nav a[aria-current="page"] {
  color: var(--text);
  background: rgb(255 255 255 / 5%);
}

.guide-main {
  padding-block: clamp(42px, 7vw, 82px) clamp(70px, 10vw, 120px);
}

.guide-hero {
  max-width: 820px;
  margin-bottom: clamp(38px, 6vw, 68px);
}

.guide-hero h1,
.article-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  line-height: 0.99;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.guide-hero > p:not(.eyebrow),
.article-deck {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

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

.guide-card {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-height: 265px;
  padding: clamp(23px, 4vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgb(184 244 109 / 7%), transparent 17rem),
    var(--panel);
}

.guide-card .guide-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 26px;
  border-radius: 9px;
  color: #11150d;
  background: var(--lime);
  font-size: 0.73rem;
  font-weight: 900;
}

.guide-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.guide-card p {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.guide-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.guide-card a::after {
  content: "\2192";
  margin-left: 8px;
}

.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: clamp(32px, 5vw, 54px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgb(81 215 199 / 23%);
  border-radius: var(--radius);
  background: rgb(81 215 199 / 6%);
}

.guide-cta h2,
.guide-cta p {
  margin: 0;
}

.guide-cta h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: -0.035em;
}

.guide-cta p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 30px;
  padding: 0;
  color: var(--quiet);
  font-size: 0.75rem;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 7px;
  color: var(--border-bright);
}

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

.article-header {
  max-width: 900px;
  margin-bottom: 42px;
}

.article-header h1 {
  font-size: clamp(2.1rem, 6vw, 4.25rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  color: var(--quiet);
  font-size: 0.78rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(190px, 250px);
  align-items: start;
  gap: clamp(40px, 7vw, 82px);
}

.article-body {
  min-width: 0;
  color: #d8d8d2;
  font-size: 1rem;
  line-height: 1.78;
}

.article-body h2,
.article-body h3 {
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: balance;
  scroll-margin-top: 92px;
}

.article-body h2 {
  margin: 52px 0 16px;
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
}

.article-body h3 {
  margin: 31px 0 11px;
  font-size: 1.2rem;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin: 0 0 19px;
}

.article-body li + li {
  margin-top: 8px;
}

.article-body a {
  color: var(--lime);
  text-underline-offset: 3px;
}

.article-body strong {
  color: var(--text);
}

.article-body table {
  width: 100%;
  margin: 24px 0 30px;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.5;
}

.article-body th,
.article-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  color: var(--text);
  background: var(--panel-raised);
}

.article-body tr:last-child td {
  border-bottom: 0;
}

.article-body code {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--cyan);
  background: var(--panel);
  font-size: 0.88em;
}

.article-note {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--lime);
  border-radius: 0 11px 11px 0;
  background: rgb(184 244 109 / 6%);
}

.article-note p:last-child {
  margin-bottom: 0;
}

.software-inventory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 34px;
}

.software-entry {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.article-body .software-entry h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 9px;
  font-size: 1rem;
}

.software-entry h3 span {
  flex: 0 0 auto;
  color: var(--quiet);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0;
  text-align: right;
}

.article-body .software-entry p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.article-body .software-entry p:last-child {
  margin-bottom: 0;
}

.article-toc {
  position: sticky;
  top: 98px;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
}

.article-toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc a {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--text);
}

.article-next {
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.article-next nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-next a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  background: var(--panel);
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
}

.guide-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.guide-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
  padding-bottom: env(safe-area-inset-bottom);
  color: var(--quiet);
  font-size: 0.75rem;
}

.guide-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.guide-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 820px) {
  .article-layout {
    display: flex;
    flex-direction: column;
  }

  .article-toc {
    position: static;
    order: -1;
    margin-bottom: 34px;
  }
}

@media (max-width: 620px) {
  .guide-header-inner,
  .guide-main,
  .guide-footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .guide-nav a {
    padding-inline: 10px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 0;
  }

  .guide-cta,
  .guide-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-cta .button {
    width: 100%;
  }

  .guide-footer-inner {
    justify-content: center;
    padding-block: 24px max(24px, env(safe-area-inset-bottom));
  }

  .article-body {
    font-size: 0.96rem;
  }

  .software-inventory {
    grid-template-columns: 1fr;
  }

  .article-body .software-entry h3 {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .software-entry h3 span {
    text-align: left;
  }

  .article-body table {
    table-layout: fixed;
    font-size: 0.72rem;
    white-space: normal;
  }

  .article-body th,
  .article-body td {
    padding: 9px 8px;
    overflow-wrap: anywhere;
  }
}
