.guides-shell {
  width: var(--shell);
  margin-inline: auto;
}

.guides-page a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.guides-skip {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
}

.guides-skip:focus {
  transform: translateY(0);
}

.guides-header,
.guides-footer {
  background: var(--bg-soft);
}

.guides-header {
  border-bottom: 1px solid var(--line);
}

.guides-header-inner,
.guides-footer-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.guides-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.guides-nav a,
.guides-breadcrumb,
.guides-footer a {
  color: var(--muted);
  font-size: 15px;
}

.guides-nav a:hover,
.guides-nav [aria-current],
.guides-breadcrumb:hover,
.guides-footer a:hover {
  color: var(--accent);
}

.guides-index,
.guides-article {
  padding-block: clamp(34px, 7vw, 82px) clamp(44px, 8vw, 96px);
}

.guides-intro,
.guides-article-header {
  margin-bottom: clamp(24px, 5vw, 44px);
}

.guides-intro h1,
.guides-article h1 {
  max-width: 19ch;
  margin: 0 0 16px;
  font-size: clamp(2rem, 5.2vw, 4.25rem);
  line-height: 1.08;
  text-wrap: balance;
}

.guides-intro p,
.guides-lead {
  max-width: 67ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.19rem);
}

.guides-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
  gap: 16px;
}

.guide-card,
.guides-callout,
.guides-template {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.guide-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: clamp(18px, 3vw, 29px);
}

.guide-card:hover {
  border-color: var(--accent);
}

.guides-topic {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 700;
}

.guide-card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.27;
}

.guide-card h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guide-card p:not(.guides-topic) {
  margin: 0;
  color: var(--muted);
}

.guides-breadcrumb {
  display: inline-block;
  margin-bottom: 24px;
}

.guides-article article,
.guides-related {
  max-width: 790px;
  margin-inline: auto;
}

.guides-section,
.guides-template,
.guides-callout,
.guides-related {
  margin-top: 32px;
}

.guides-section h2,
.guides-template h2,
.guides-callout h2,
.guides-related h2 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 3vw, 1.72rem);
  line-height: 1.25;
}

.guides-section p,
.guides-section li,
.guides-section dd,
.guides-related li {
  color: var(--muted);
}

.guides-section ol,
.guides-related ul {
  padding-inline-start: 23px;
}

.guides-section li + li,
.guides-related li + li {
  margin-top: 9px;
}

.guides-rows {
  margin: 16px 0 0;
}

.guides-rows div {
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
}

.guides-rows dt {
  font-weight: 750;
}

.guides-rows dd {
  margin: 4px 0 0;
}

.guides-template,
.guides-callout {
  padding: clamp(18px, 4vw, 30px);
}

.guides-callout {
  background: var(--panel-strong);
}

.guides-callout p {
  margin: 0 0 16px;
  color: var(--muted);
}

.guides-related a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 4px;
}

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

@media (max-width: 480px) {
  .guides-header-inner {
    align-items: start;
    flex-direction: column;
    padding-block: 12px;
  }

  .guides-nav {
    gap: 10px 20px;
  }
}
