.guide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.guide-nav .brand img { width: min(32vw, 152px); height: auto; }
.guide-nav nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); }
.guide-nav nav a { color: var(--home-muted); }
.guide-nav nav a:hover { color: var(--home-accent); }

.linux-guide {
  width: min(1000px, 100% - 40px);
  margin-inline: auto;
  padding-block: clamp(32px, 5vw, 56px);
  line-height: 1.65;
}

.linux-guide h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -.035em;
}

.guide-intro { margin-bottom: 24px; }

.guide-step {
  margin-top: 16px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--home-line);
  border-radius: 14px;
  background: var(--home-panel);
}

.guide-step h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.2rem, 3vw, 1.48rem);
  line-height: 1.35;
  font-weight: 650;
}

.guide-step h2 > span {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding-inline: 4px;
  border-radius: 8px;
  background: var(--home-raised);
  color: var(--home-accent);
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
}

.linux-guide p { margin-block: 12px; color: var(--home-muted); }
.guide-step > :last-child { margin-bottom: 0; }
.linux-guide strong { color: var(--home-ink); }
.linux-guide a { color: var(--home-accent); text-decoration: underline; text-underline-offset: 4px; }
.linux-guide a:hover { color: var(--home-accent-hover); }
.linux-guide code { font: .88em ui-monospace, Consolas, monospace; color: var(--home-ink); overflow-wrap: anywhere; }
.linux-guide p code { background: var(--home-bg); border-radius: 4px; padding: .12em .3em; }

.guide-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.guide-section-heading a { font-size: .875rem; }

.linux-guide pre {
  margin-block: 14px 16px;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: var(--home-bg);
}

.linux-guide pre code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.guide-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  min-width: 0;
  margin-block: 14px 16px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: var(--home-bg);
}

.linux-guide .guide-command pre {
  margin: 0;
  border: 0;
  background: transparent;
}

.guide-copy {
  min-inline-size: 5.25rem;
  min-block-size: 36px;
  margin: 4px;
  padding-inline: 8px;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  background: var(--home-raised);
  color: var(--home-muted);
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
  white-space: nowrap;
}

.guide-copy:hover, .guide-copy[data-copied] { color: var(--home-accent); }
.guide-copy:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 2px; }
.guide-copy[data-manual] { color: var(--home-ink); }

.guide-mode .guide-command { margin-block: 10px 0; }

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

.guide-mode {
  display: grid;
  grid-template-rows: auto minmax(2.75em, auto) auto auto 1fr;
  align-items: start;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
}

.guide-mode h3 { margin: 0; font-size: 1.125rem; line-height: 1.4; }
.guide-mode pre, .guide-mode .guide-command, .linux-guide .guide-mode p { margin-block: 0; }

.guide-address {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: var(--home-raised);
}

.guide-address code { color: var(--home-accent); }
.guide-address span { color: var(--home-ink); }

.linux-guide kbd { font: inherit; color: var(--home-ink); }

.guide-unlock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  align-items: center;
  gap: 20px;
}

.guide-image { margin: 0; }

.guide-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--home-line);
  border-radius: 8px;
}

@media (max-width: 700px) {
  .guide-modes, .guide-unlock { grid-template-columns: 1fr; }
  .guide-mode { grid-template-rows: none; }
  .guide-image { max-width: 340px; }
}

@media (max-width: 580px) {
  [data-home-design] .guide-nav { width: calc(100% - 32px); }
  .guide-nav { min-height: 60px; }
  .guide-nav nav { font-size: .85rem; }
  .linux-guide { width: calc(100% - 32px); }
  .guide-command { grid-template-columns: minmax(0, 1fr); }
  .guide-copy { justify-self: end; min-inline-size: 4rem; min-block-size: 44px; margin-block-start: 0; }
}

.guide-step details {
  margin-block: 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  color: var(--home-accent);
  background: var(--home-bg);
}

.guide-step summary { cursor: pointer; font-weight: 550; }
.guide-step details[open] > :last-child { margin-bottom: 0; }
