:root {
  --green: #5AA039;
  --green-btn: #59ba41;
  --green-dark: #074D12;
  --green-light: #89df62;
  --ink: #212529;
  --muted: #6c757d;
  --card-bg: #e9ecef;
  --light: #f8f9fa;
  --line: #dee2e6;
  --footer-bg: #343a40;
  --footer-text: #ced4da;
  --radius: 20px;
}

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

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

body {
  margin: 0;
  font-family: "Work Sans", "Lato", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

::selection {
  background: var(--green-btn);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--green-btn);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1200;
  background: var(--green-btn);
  color: #fff;
  padding: 10px 14px;
}

.skip:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: inline-flex;
  line-height: 0;
}

.logo img {
  height: 46px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  color: var(--ink);
  font-size: 1.0125rem;
  font-weight: 500;
  text-decoration: none;
}

.menu a:hover {
  color: var(--green-btn);
}

.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  width: 40px;
  height: 40px;
}

.header-icon:hover {
  color: var(--green-btn);
}

.header-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 0 24px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

.page {
  padding: 3.5rem 0 4.5rem;
}

.intro {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.intro .lead {
  color: var(--muted);
  font-size: 1.125rem;
  margin: 0;
}

.page-title {
  margin: 1rem 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card-box {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 1rem 0 1.5rem;
}

.card-logo {
  height: 64px;
  width: auto;
  flex-shrink: 0;
}

.card-head .card-text {
  margin: 0;
}

.card-text {
  color: var(--ink);
  opacity: 0.9;
}

.spec {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.spec li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--muted);
  font-size: 0.975rem;
}

.spec li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  background: var(--green);
}

.button {
  margin-top: auto;
  align-self: flex-start;
  display: inline-block;
  padding: 0.5rem 1.625rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
  border: 1px solid var(--green-btn);
  border-radius: 999px;
  background: transparent;
  color: var(--green-btn);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.button:hover {
  background: var(--green-btn);
  color: #fff;
}

.button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.corner-arch {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  transform: rotate(180deg);
  pointer-events: none;
}

/* ---------- User guide page ---------- */

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.intro-actions {
  margin: 1.75rem 0 0;
}

.guide-path {
  display: inline-block;
  margin: 1rem 0;
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  border-radius: 12px;
  background: var(--ink);
  color: var(--green-light);
  font-family: "Consolas", "Menlo", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: nowrap;
  max-width: 100%;
}

.guide-path-inline {
  margin: 0.5rem 0 0;
}

.guide-toc {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  padding: 1.75rem 2rem;
  background: var(--card-bg);
  border-radius: var(--radius);
}

.guide-toc h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.guide-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  counter-reset: guide-toc;
}

.guide-toc li {
  counter-increment: guide-toc;
}

.guide-toc a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.guide-toc a::before {
  content: counter(guide-toc, decimal-leading-zero);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
}

.guide-toc a:hover {
  color: var(--green-btn);
}

.guide-section {
  max-width: 860px;
  margin: 0 auto 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--card-bg);
  border-radius: var(--radius);
  scroll-margin-top: 96px;
}

.guide-section-head {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}

.guide-number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--green-dark);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.guide-section h2 {
  margin: 0 0 0.2rem;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.guide-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
}

.guide-tag {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  counter-reset: guide-steps;
}

.guide-steps > li {
  position: relative;
  padding-left: 2.1rem;
  counter-increment: guide-steps;
}

.guide-steps > li::before {
  content: counter(guide-steps);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--green-dark);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
}

.guide-steps > li strong {
  color: var(--green-dark);
}

.guide-sublist {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.guide-sublist li {
  position: relative;
  padding-left: 1rem;
}

.guide-sublist li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
}

.guide-note {
  margin-top: 1.25rem;
  padding: 0.9rem 1.15rem;
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  background: rgba(90, 160, 57, 0.1);
  font-size: 0.95rem;
}

.guide-note p {
  margin: 0;
}

.guide-more {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.guide-more strong {
  color: var(--ink);
}

.guide-files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.guide-file {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(90, 160, 57, 0.12);
  color: var(--green-dark);
  font-family: "Consolas", "Menlo", "Courier New", monospace;
  font-size: 0.85em;
  font-weight: 600;
}

.guide-table-wrap {
  overflow-x: auto;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.guide-table th,
.guide-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.guide-table th {
  background: rgba(90, 160, 57, 0.12);
  color: var(--green-dark);
  font-weight: 700;
}

.guide-table thead th {
  background: rgba(90, 160, 57, 0.18);
}

.guide-table tbody tr:last-child th,
.guide-table tbody tr:last-child td {
  border-bottom: 0;
}

.guide-back {
  text-align: center;
  margin-top: 3rem;
}

@media (max-width: 767px) {
  .guide-toc {
    padding: 1.5rem 1.5rem;
  }
}

/* ---------- End user guide page ---------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  padding: 3rem 0;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-row {
    flex-direction: row;
    text-align: left;
  }
}

.social-row {
  display: flex;
  gap: 0.75rem;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social:hover {
  background: var(--green-btn);
  color: #fff;
  transform: translateY(-2px);
}

.social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-logo img {
  height: 44px;
  width: auto;
}

.footer-domain {
  margin: 0;
  font-size: 0.95rem;
  color: var(--footer-text);
  text-decoration: none;
}

.footer-domain:hover {
  color: #fff;
}

.copyrights {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #adb5bd;
}

@media (max-width: 991px) {
  .header-nav .menu {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .corner-arch {
    display: none;
  }

  .card-logo {
    height: 48px;
  }

  .page {
    padding: 2.5rem 0 3rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
