:root {
  color-scheme: light;
  --ink: #172c26;
  --muted: #52625b;
  --green: #246346;
  --green-dark: #194b34;
  --line: #dbe3dc;
  --paper: #ffffff;
  --canvas: #f6f8f4;
  --orange: #d9521a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.6; }
a { color: var(--green); text-underline-offset: .2em; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid #be521e; outline-offset: 5px; }
svg { display: block; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
.page-width { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 16px; z-index: 10; padding: 10px 16px; background: var(--paper); border: 2px solid var(--green); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 33px; letter-spacing: -.08em; font-weight: 800; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--orange); }
.back-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 14px; font-weight: 600; text-decoration: none; }
.back-link svg { width: 18px; height: 18px; }
main:focus { outline: none; }
.download-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .9fr); gap: 76px; align-items: center; padding-block: 72px 76px; }
.eyebrow { display: flex; align-items: center; gap: 11px; font-size: 11px; font-weight: 750; letter-spacing: .15em; color: var(--green); margin-bottom: 20px; }
.eyebrow-line { width: 26px; height: 2px; background: var(--orange); }
h1 { max-width: 540px; font-size: clamp(35px, 4.3vw, 51px); line-height: 1.12; letter-spacing: -.045em; font-weight: 730; margin-bottom: 24px; }
.hero-description { max-width: 460px; color: var(--muted); font-size: 17px; line-height: 1.75; margin-bottom: 27px; }
.text-link { display: inline-flex; gap: 12px; font-size: 14px; font-weight: 650; text-decoration: none; padding-block: 4px; }
.text-link:hover, .back-link:hover, .site-footer a:hover { text-decoration: underline; }
.download-card { padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 50px -32px #294a36; }
.package-icon { display: grid; place-items: center; width: 64px; height: 64px; background: #eef5ed; color: var(--green); border-radius: 16px; margin-bottom: 25px; }
.package-icon svg { width: 40px; height: 40px; }
.card-eyebrow { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .16em; margin-bottom: 7px; }
.download-card h2 { font-size: 24px; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 15px; }
.package-context { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin-bottom: 28px; }
.environment-badge { background: #eaf4ea; color: #205533; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 4px 10px; }
.download-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 13px 16px; border: 1px solid var(--green); border-radius: 10px; background: var(--green); color: #fff; text-decoration: none; text-align: center; font-size: 15px; font-weight: 700; }
.download-button:hover { background: var(--green-dark); border-color: var(--green-dark); }
.download-button svg { width: 21px; height: 21px; flex: none; }
.file-meta { text-align: center; color: var(--muted); font-size: 12px; margin: 11px 0 21px; }
.file-meta span { margin-inline: 5px; }
.download-help { margin: 0; border-top: 1px solid #edf0eb; padding-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }
body[data-environment="Development"] .environment-badge { color: #7b440b; background: #fff0d1; }
body[data-environment="Development"] .download-card { border-top: 4px solid #c68725; padding-top: 29px; }
.environment-note { max-width: 460px; border-left: 3px solid var(--green); background: #edf3ed; color: #2b4f3b; padding: 12px 15px; font-size: 13px; margin-bottom: 23px; }
body[data-environment="Development"] .environment-note { border-left-color: #c68725; background: #fff5df; color: #674717; }
.installation-section { padding-block: 42px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.section-heading .eyebrow { margin-bottom: 11px; }
.section-heading h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.035em; margin-bottom: 11px; }
.section-heading > p:last-child { color: var(--muted); font-size: 15px; margin-bottom: 30px; }
.installation-steps { list-style: none; counter-reset: steps; display: grid; grid-template-columns: 1fr 1fr; column-gap: 50px; row-gap: 28px; padding: 0; margin: 0 0 36px; }
.installation-steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-number { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid #cbd8cd; border-radius: 50%; font-weight: 650; font-size: 13px; color: var(--green); background: #edf3eb; }
.installation-steps h3 { font-size: 15px; font-weight: 700; line-height: 1.5; margin: 3px 0 7px; }
.installation-steps p { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0; }
.installation-steps strong { font-weight: 600; color: #35483f; }
.admin-help { display: flex; gap: 15px; padding: 23px 25px; border: 1px solid var(--line); border-radius: 12px; background: #edf3ed; }
.admin-help svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 2px; }
.admin-help h3 { font-size: 14px; margin-bottom: 5px; }
.admin-help p { color: #485e51; font-size: 13px; line-height: 1.7; margin: 0; }
.access-note { padding-block: 0 31px; max-width: 770px; }
.access-note h2 { font-size: 17px; line-height: 1.5; margin-bottom: 10px; }
.access-note p { color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 10px; }
.package-details { border-block: 1px solid var(--line); margin-bottom: 28px; }
.package-details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 650; padding: 20px 0; }
.package-details summary::-webkit-details-marker { display: none; }
.details-symbol { font-size: 21px; font-weight: 400; color: var(--green); }
.package-details[open] .details-symbol { transform: rotate(45deg); }
.details-content { padding-bottom: 24px; }
.details-content > p { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
dl { margin: 0; display: grid; gap: 13px; }
dl > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; }
dt { font-size: 12px; font-weight: 600; color: var(--muted); }
dd { font-size: 12px; margin: 0; min-width: 0; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 11px; overflow-wrap: anywhere; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 20px 35px; color: #65736a; font-size: 12px; }
.site-footer p { margin: 0; }
.site-footer a { color: inherit; text-decoration: none; }

@media (max-width: 860px) {
  .page-width { width: min(680px, calc(100% - 44px)); }
  .download-hero { grid-template-columns: 1fr; gap: 35px; padding-block: 48px; }
  h1 { max-width: 580px; font-size: clamp(35px, 6vw, 46px); }
  .hero-description, .environment-note { max-width: 580px; }
  .download-card { width: 100%; }
  .installation-steps { column-gap: 28px; }
}

@media (max-width: 540px) {
  .page-width { width: calc(100% - 36px); }
  .site-header { min-height: 78px; gap: 14px; }
  .wordmark { font-size: 29px; }
  .back-link { font-size: 12px; gap: 5px; }
  .back-link svg { width: 16px; height: 16px; }
  .download-hero { padding-block: 35px 40px; gap: 30px; }
  .eyebrow { font-size: 10px; margin-bottom: 17px; }
  h1 { font-size: 36px; letter-spacing: -.04em; }
  .hero-description { font-size: 15px; line-height: 1.75; margin-bottom: 20px; }
  .download-card { padding: 25px; border-radius: 16px; }
  body[data-environment="Development"] .download-card { padding-top: 22px; }
  .download-card h2 { font-size: 23px; }
  .package-icon { width: 56px; height: 56px; margin-bottom: 21px; }
  .package-context { margin-bottom: 23px; }
  .installation-section { padding-block: 33px; }
  .section-heading h2 { font-size: 27px; }
  .installation-steps { grid-template-columns: 1fr; row-gap: 26px; }
  .installation-steps p, .admin-help p, .access-note p { font-size: 14px; }
  .admin-help { padding: 20px 17px; gap: 12px; }
  .admin-help h3 { font-size: 14px; line-height: 1.5; }
  .access-note { padding-bottom: 24px; }
  .access-note h2 { font-size: 16px; }
  dl > div { grid-template-columns: 1fr; gap: 3px; }
  .site-footer { padding-block: 15px 28px; }
}

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

@media print {
  body { background: #fff; }
  .page-width { width: 100%; }
  .site-header, .site-footer, .skip-link, .text-link { display: none; }
  .download-hero { padding-block: 20px; gap: 25px; }
  .download-card { box-shadow: none; }
  .installation-section { padding-block: 24px; }
}
