:root {
  --ink: #222222;
  --muted: #6b7280;
  --surface: #ffffff;
  --surface-soft: #f4f6fb;
  --line: #dbe1ec;
  --navy: #091846;
  --navy-2: #112b78;
  --blue: #2452b8;
  --blue-light: #3b77f0;
  --orange: #ff9d00;
  --shadow: 0 18px 55px rgba(10, 22, 55, 0.13);
  --radius: 14px;
  --container: 1160px;
  --gap: clamp(1rem, 2vw, 1.75rem);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eef1f6;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  line-height: 1.65;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--orange);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.narrow-container {
  --container: 900px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: #ffffff;
  background: var(--navy);
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
}

.topbar {
  color: #cfd7ff;
  background: #050913;
  font-size: 0.9rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-height: 38px;
}

.topbar p {
  margin: 0;
}

.social-links,
.main-menu,
.sub-menu {
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.social-links a {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(180deg, var(--blue-light), var(--navy-2));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  text-decoration: none;
}

.masthead {
  background:
    radial-gradient(circle at top left, rgba(255, 157, 0, 0.22), transparent 24rem),
    linear-gradient(180deg, #102a73 0%, #07143d 100%);
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 98px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 300px;
}

.brand img {
  width: min(300px, 52vw);
  display: block;
}

.site-nav {
  flex: 1 1 auto;
}

.main-menu {
  justify-content: flex-end;
  gap: 0.15rem;
}

.menu-item {
  position: relative;
}

.menu-item > a {
  display: block;
  padding: 0.88rem 0.9rem;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 8px;
}

.menu-item > a:hover,
.menu-item > a:focus-visible,
.menu-item.is-active > a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.sub-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  z-index: 20;
  display: none;
  min-width: 210px;
  padding: 0.5rem;
  background: #0a1744;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.menu-item:hover > .sub-menu,
.menu-item:focus-within > .sub-menu {
  display: block;
}

.sub-menu .menu-item > a {
  padding: 0.7rem 0.8rem;
  font-size: 0.88rem;
  text-transform: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 0.5rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
}

.nav-toggle span:not(.nav-toggle-text) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
}

.nav-toggle-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hero {
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(8, 18, 58, 0.94), rgba(10, 36, 105, 0.96)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 90px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: center;
  min-height: clamp(430px, 50vw, 620px);
  padding-block: clamp(2rem, 5vw, 5rem);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 0.8rem;
  padding: 0.25rem 0.7rem;
  color: #07143d;
  background: var(--orange);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.75rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 8px 25px rgba(0,0,0,0.45);
}

.hero-news {
  max-width: 48rem;
  margin: 0 0 1.1rem;
  padding: clamp(0.72rem, 1.6vw, 0.95rem);
  background: linear-gradient(135deg, rgba(3, 8, 28, 0.62), rgba(21, 54, 137, 0.32));
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.24);
}

.hero-news-topline {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.hero-news-heading {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-news-all {
  color: #ffd27f;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.hero-news-all:hover,
.hero-news-all:focus {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hero-news-list {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-news-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.62rem;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.38rem 0.5rem;
  color: #ffffff;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  text-decoration: none;
}

.hero-news-item:hover,
.hero-news-item:focus {
  color: #ffffff;
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.24);
}

.hero-news-item time {
  display: inline-flex;
  min-width: 3.2rem;
  justify-content: center;
  padding: 0.22rem 0.45rem;
  color: #07143d;
  background: var(--orange);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-news-item span {
  overflow: hidden;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-lede {
  max-width: 48rem;
  margin: 1.25rem 0 1.7rem;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  color: #dfe7ff;
}

.hero-actions,
.logo-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.image-button {
  display: inline-flex;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

.image-button img {
  display: block;
  width: 174px;
}

.hero-panel {
  display: grid;
  gap: 1.35rem;
  justify-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(3, 8, 28, 0.36);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel-media {
  justify-items: stretch;
}


.hero-video-card {
  position: relative;
  overflow: hidden;
  padding: clamp(0.55rem, 1.4vw, 0.8rem);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.42), rgba(20, 58, 150, 0.28));
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.32);
}

.media-label {
  margin: 0 0 0.45rem;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-shell {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
}

.video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-playlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.video-track {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.65rem;
  color: #dfe7ff;
  text-align: left;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 9px;
  cursor: pointer;
}

.video-track:hover,
.video-track:focus-visible,
.video-track.is-active {
  color: #ffffff;
  background: rgba(36, 82, 184, 0.58);
  border-color: rgba(255, 157, 0, 0.68);
}

.video-track-number {
  display: inline-grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  color: #101827;
  background: #ffbd45;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
}

.video-status {
  margin: 0.55rem 0 0;
  color: #b8c5ef;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.media-caption {
  margin: 0.55rem 0 0;
  color: #dfe7ff;
  font-size: 0.92rem;
  line-height: 1.45;
}


.logo-stack {
  justify-content: center;
}

.logo-stack a {
  display: inline-flex;
  max-width: 100%;
}

.logo-stack img {
  max-height: 85px;
  object-fit: contain;
}

.promo-strip {
  position: relative;
  z-index: 2;
  margin-top: -2.25rem;
  margin-bottom: 2rem;
}

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

.promo-card {
  padding: clamp(1.2rem, 2.8vw, 2rem);
  color: #ffffff;
  background: linear-gradient(135deg, #0b1b51 0%, #1e51bd 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.promo-card h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.promo-card p {
  margin: 0 0 1rem;
  color: #dce8ff;
}

.more-link,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.68rem 1rem;
  color: #ffffff;
  background: linear-gradient(180deg, #2e65d3, #122e7c);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.more-link::before,
.button-primary::before {
  content: "➜";
  margin-right: 0.45rem;
}

.more-link:hover,
.more-link:focus-visible,
.button-primary:hover,
.button-primary:focus-visible {
  color: #ffffff;
  filter: brightness(1.08);
}

.content-section {
  padding-block: clamp(1.75rem, 4vw, 3.2rem);
}

.intro-section {
  padding-top: 0;
}

.split-layout,
.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.9fr);
  gap: var(--gap);
  align-items: start;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 35px rgba(7, 20, 61, 0.08);
}

.content-card + .content-card {
  margin-top: var(--gap);
}

.content-card h1,
.content-card h2,
.content-card h3,
.section-heading h2,
.page-title-band h1 {
  color: #10245f;
  line-height: 1.15;
}

.content-card h2,
.section-heading h2 {
  margin-top: 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.content-card h3 {
  margin-top: 1.25rem;
  font-size: 1.18rem;
}

.lead-card p:first-of-type {
  font-size: 1.08em;
}

.version-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1rem;
}

.version-grid article,
.link-grid a,
.info-pill {
  padding: 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.link-grid a {
  display: flex;
  align-items: center;
  min-height: 58px;
  font-weight: 700;
  text-decoration: none;
}

.link-grid a::before {
  content: "➜";
  margin-right: 0.5rem;
  color: var(--orange);
}

.section-heading {
  margin-bottom: 1rem;
  text-align: center;
}

.section-heading p {
  margin-top: -0.5rem;
  color: var(--muted);
}

.feature-list ul,
.feature-columns,
.compact-list {
  column-gap: 2rem;
  padding-left: 1.1rem;
}

.feature-list ul {
  columns: 2 320px;
}

.feature-columns {
  columns: 2 320px;
}

.feature-list li,
.feature-columns li,
.compact-list li {
  break-inside: avoid;
  margin-bottom: 0.55rem;
}

.compact-list {
  columns: 2 190px;
}

.bottom-line {
  display: block;
  width: min(700px, 100%);
  margin: 0 auto 1.5rem;
}

.page-title-band {
  color: #ffffff;
  background:
    radial-gradient(circle at 14% 40%, rgba(255, 157, 0, 0.24), transparent 18rem),
    linear-gradient(135deg, #102a73 0%, #07143d 100%);
  padding-block: clamp(2.4rem, 7vw, 4.5rem);
}

.page-title-band h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  text-shadow: 0 8px 25px rgba(0,0,0,0.28);
}

.page-title-band p {
  max-width: 760px;
  margin: 0.8rem 0 0;
  color: #dce8ff;
  font-size: 1.16rem;
}

.news-list {
  display: grid;
  gap: 1rem;
}

.news-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.news-date {
  display: grid;
  min-height: 62px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(180deg, var(--orange), #e17100);
  border-radius: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.news-date span {
  font-size: 1.45rem;
}

.news-date small {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.news-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
}

.news-card p {
  margin: 0;
  color: var(--muted);
}

.meta-line {
  color: var(--muted);
  font-weight: 700;
}

.rich-text :first-child {
  margin-top: 0;
}

.rich-text pre,
.rich-text code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  background: #f0f3f8;
  border-radius: 6px;
}

.rich-text code {
  padding: 0.08rem 0.25rem;
}

.rich-text pre {
  padding: 1rem;
}

.credits-list {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.25fr);
  gap: 0.9rem 1.25rem;
}

.credits-list dt {
  color: #10245f;
  font-weight: 800;
}

.credits-list dd {
  margin: 0;
}

.download-hero {
  display: grid;
  grid-template-columns: minmax(130px, 230px) minmax(0, 1fr);
  gap: var(--gap);
  align-items: center;
}

.info-pill {
  display: inline-flex;
  margin: 0 0.5rem 0.5rem 0;
  font-weight: 700;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 0.78rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: #ffffff;
  background: var(--navy-2);
}

tr:nth-child(even) td {
  background: #f8faff;
}

.section-link {
  margin-top: 1rem;
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.featured-logo {
  margin-inline: auto;
}

.site-footer {
  padding-block: 2rem;
  color: #d8def8;
  background: #060b19;
}

.footer-inner {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
}

.footer-logo img {
  display: block;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--orange);
}

.copyright {
  margin: 0;
  color: #aab5d7;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  background: var(--navy-2);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.back-to-top.is-visible {
  display: grid;
}

.back-to-top img {
  width: 31px;
}

@media (max-width: 980px) {
  .masthead-inner {
    flex-wrap: wrap;
    padding-block: 0.8rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    flex-basis: 100%;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .main-menu {
    display: grid;
    gap: 0.35rem;
    padding: 0.7rem 0 0.3rem;
  }

  .menu-item > a {
    padding: 0.72rem 0.85rem;
    background: rgba(255,255,255,0.08);
  }

  .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    margin-top: 0.35rem;
    padding: 0.35rem 0 0.35rem 1rem;
    background: rgba(0,0,0,0.17);
    box-shadow: none;
  }

  .hero-inner,
  .split-layout,
  .two-columns,
  .download-hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: 0;
  }

  .version-grid,
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 1.1rem, var(--container));
  }

  .topbar-inner {
    justify-content: center;
    flex-wrap: wrap;
    padding-block: 0.45rem;
  }

  .brand img {
    width: min(240px, 68vw);
  }

  .hero {
    text-align: center;
  }

  .hero-inner {
    min-height: 0;
  }

  .hero-actions,
  .logo-stack {
    justify-content: center;
  }

  .hero-panel-media {
    padding: 0.8rem;
  }

  .media-label,
  .media-caption {
    text-align: left;
  }

  .video-playlist {
    grid-template-columns: 1fr;
  }

  .video-track {
    min-height: 42px;
  }

  .hero-news {
    margin-inline: auto;
    text-align: left;
  }

  .hero-news-item {
    grid-template-columns: 1fr;
    gap: 0.32rem;
  }

  .hero-news-item time {
    justify-self: start;
  }

  .hero-news-item span {
    white-space: normal;
  }

  .promo-strip {
    margin-top: 0;
  }

  .promo-grid,
  .version-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 1rem;
  }

  .news-card {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 0.8rem;
  }

  .news-date {
    min-height: 52px;
  }

  .credits-list {
    grid-template-columns: 1fr;
  }

  .credits-list dt {
    margin-top: 0.75rem;
  }

  .footer-nav {
    gap: 0.35rem 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Complete Setup Wizard guide conversion */
.setup-guide-page .container {
  --container: 1280px;
}

.setup-guide-layout {
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
  align-items: start;
  gap: var(--gap);
}

.setup-guide-toc {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.setup-guide-toc h2 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.setup-guide-toc ol {
  display: grid;
  gap: 0.28rem;
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.setup-guide-toc a {
  display: inline-block;
  padding: 0.16rem 0;
  color: var(--ink);
  text-decoration: none;
}

.setup-guide-toc a:hover,
.setup-guide-toc a:focus-visible {
  color: var(--blue);
  text-decoration: underline;
}

.setup-guide-content {
  min-width: 0;
}

.guide-source-note {
  margin: 0 0 1rem;
  padding: 0.65rem 0.8rem;
  color: #43506a;
  background: #eef4ff;
  border: 1px solid #d9e6ff;
  border-radius: 10px;
  font-size: 0.88rem;
}

.legacy-guide {
  overflow-wrap: anywhere;
}

.legacy-guide h2 {
  clear: both;
  margin: 2.2rem 0 0.85rem;
  padding: 0.75rem 0 0.35rem;
  color: var(--navy);
  border-bottom: 2px solid var(--line);
  font-size: clamp(1.35rem, 1.08rem + 1.1vw, 2rem);
  line-height: 1.2;
  scroll-margin-top: 1rem;
}

.legacy-guide h2:first-child {
  margin-top: 0;
}

.legacy-guide h3,
.legacy-guide h4 {
  margin: 1.3rem 0 0.55rem;
  color: var(--navy-2);
}

.legacy-guide p {
  margin: 0.45rem 0 0.9rem;
}

.legacy-guide ul,
.legacy-guide ol {
  margin: 0.45rem 0 1rem 1.2rem;
  padding-left: 1rem;
}

.legacy-guide li + li {
  margin-top: 0.15rem;
}

.legacy-guide a {
  font-weight: 700;
}

.legacy-guide code,
.notice-card code {
  padding: 0.08rem 0.25rem;
  background: #f4f6fb;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.92em;
}

.legacy-guide img {
  display: block;
  width: auto;
  max-width: min(100%, 640px);
  height: auto;
  margin: 1rem auto 1.25rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(10, 22, 55, 0.12);
}

.legacy-guide img[src$="/help.png"],
.legacy-guide img[src$="help.png"] {
  display: inline-block;
  width: 28px;
  max-width: 28px;
  height: 28px;
  margin: 0 0.45rem 0.25rem 0;
  vertical-align: middle;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}

.notice-card {
  padding: 1rem;
  margin-bottom: 1rem;
  color: #5d3100;
  background: #fff6e5;
  border: 1px solid #f5cd82;
  border-radius: var(--radius);
}

.notice-card h2 {
  margin-top: 0;
  color: #5d3100;
}

.fallback-guide {
  columns: 2 18rem;
}

@media (max-width: 980px) {
  .setup-guide-layout {
    grid-template-columns: 1fr;
  }

  .setup-guide-toc {
    position: static;
    max-height: none;
  }

  .setup-guide-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 1.25rem;
  }
}

@media (max-width: 700px) {
  .setup-guide-toc ol {
    grid-template-columns: 1fr;
  }

  .legacy-guide h2 {
    margin-top: 1.6rem;
  }

  .guide-source-note {
    display: none;
  }
}

.legacy-guide table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.legacy-guide th,
.legacy-guide td {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  vertical-align: top;
}

.legacy-guide pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 0.75rem;
  background: #f4f6fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}
