/* Globaltuts.com — tutorial site layout */
:root {
  --green: #04aa6d;
  --green-dark: #038a5a;
  --black: #282a35;
  --black-nav: #1d1e26;
  --paper: #fff;
  --page-bg: #f1f1f1;
  --text: #000;
  --muted: #555;
  --sidebar-w: 230px;
  --toc-w: 200px;
  --top-h: 56px;
  --track-bar-h: 0px;
  --mono: Consolas, "Courier New", monospace;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: var(--green-dark) #e4eaef;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--page-bg);
  overflow-x: clip;
  max-width: 100%;
}

/* Site-wide scrollbar (WebKit / Blink) */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: #e8edf2;
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #05b877 0%, var(--green-dark) 100%);
  border-radius: 10px;
  border: 2px solid #e8edf2;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--green) 0%, #026b44 100%);
}

*::-webkit-scrollbar-corner {
  background: #e8edf2;
}

html.gt-loading,
html.gt-loading body {
  overflow: hidden;
}

/* —— GT page loader —— */
.gt-site-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(160deg, #f4f7f6 0%, #e8f5ef 45%, #f1f1f1 100%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.gt-site-loader--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gt-loader-visual {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gt-loader-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(4, 170, 109, 0.15);
  border-top-color: var(--green);
  animation: gt-loader-spin 0.85s linear infinite;
}

.gt-loader-orbit::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: rgba(4, 170, 109, 0.45);
  animation: gt-loader-spin 1.4s linear infinite reverse;
}

.gt-loader-logo {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 24px rgba(4, 170, 109, 0.35);
  animation: gt-loader-pulse 1.6s ease-in-out infinite;
}

.gt-loader-text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a5c54;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes gt-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gt-loader-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gt-loader-orbit,
  .gt-loader-orbit::after,
  .gt-loader-logo {
    animation: none;
  }
}

a {
  color: var(--green-dark);
}

/* —— Top navigation + track bar (sticky together) —— */
.sticky-site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  overflow: visible;
}

.topnav {
  background: linear-gradient(180deg, #05b877 0%, var(--green) 55%, #049e65 100%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 210;
  overflow: visible;
}

.topnav-inner {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  padding: 0 20px 0 16px;
  min-height: var(--top-h);
  gap: 0;
  min-width: 0;
}

.brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 10px 16px 10px 4px;
  margin-right: 4px;
}

.brand-logo img {
  display: block;
  height: 34px;
  width: auto;
}

.topnav-links-scroll--desktop {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.topnav-links-scroll--desktop::-webkit-scrollbar {
  display: none;
  height: 0;
}

.topnav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0 6px;
  width: max-content;
  max-width: none;
}

.topnav-links--desktop .topnav-link,
.topnav-links--desktop .topnav-dropbtn {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.topnav-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  line-height: 1.2;
  transition: border-color 0.15s ease;
}

.topnav-link:hover,
.topnav-link.active {
  border-bottom-color: #fff;
}

.topnav-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.45);
  margin: auto 10px;
  flex-shrink: 0;
  align-self: center;
}

.topnav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  padding-bottom: 6px;
  margin-bottom: -6px;
}

.topnav-dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.topnav-caret {
  font-size: 10px;
  opacity: 0.9;
  line-height: 1;
}

.topnav-dropmenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 196px;
  margin: 0;
  padding: 6px 0;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  z-index: 1200;
}

.topnav-dropitem {
  display: block;
  padding: 10px 18px;
  color: #1a1a1a !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  border-bottom: none !important;
  white-space: nowrap;
}

.topnav-dropitem:hover,
.topnav-dropitem.active {
  background: #e8f5f0;
  color: var(--green-dark) !important;
}

.topnav-dropdown.open .topnav-dropmenu {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .topnav-dropdown:hover .topnav-dropmenu {
    display: block;
  }
}

.topnav-dropdown .topnav-dropbtn.active {
  border-bottom-color: #fff;
}

.mobile-nav-sub {
  padding-left: 28px !important;
  font-size: 0.95rem;
}

.topnav-search-wrap--desktop {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-left: 12px;
}

.topnav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.12);
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px;
}

.toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}

.topnav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topnav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}

.topnav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.topnav-toggle .toggle-bar {
  transition: transform 0.2s, opacity 0.2s;
}

/* —— Mobile drawer —— */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
}

.mobile-drawer.open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(15, 20, 18, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.mobile-drawer.open .mobile-drawer-backdrop {
  opacity: 1;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 92vw);
  height: 100%;
  background: #fff;
  color: #1a1a1a;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--green);
  color: #fff;
  flex-shrink: 0;
}

.mobile-drawer-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.mobile-drawer-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-drawer-search {
  padding: 14px 16px;
  background: #f4f7f5;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.mobile-drawer-search .topnav-search input {
  background: #fff;
}

.mobile-drawer-search .search-dropdown {
  left: 16px;
  right: 16px;
  width: auto;
}

.mobile-nav-section {
  margin: 14px 18px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: #222 !important;
  text-decoration: none !important;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.mobile-nav-item:hover {
  background: #f8f8f8;
}

.mobile-nav-item.active {
  background: #e8f5f0;
  font-weight: 600;
  box-shadow: inset 4px 0 0 var(--green);
}

.mobile-nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

body.mobile-nav-open {
  overflow: hidden;
}

.topnav-search {
  position: relative;
  margin-left: 0;
  flex: 0 0 220px;
  width: 220px;
  min-width: 160px;
}

.topnav-search input {
  width: 100%;
  padding: 9px 16px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  background: #fff;
  color: #333;
  box-shadow: none;
}

.topnav-search input::placeholder {
  color: #888;
}

.topnav-search input:focus {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  max-height: 320px;
  overflow-y: auto;
  z-index: 300;
}

.search-dropdown li {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid #f0f0f0;
}

.search-dropdown li:last-child {
  border-bottom: none;
}

.search-dropdown li:hover,
.search-dropdown li.search-active {
  background: #e8f5f0;
}

.search-hit-title {
  font-size: 14px;
  color: #111;
  font-weight: 600;
}

.search-hit-track {
  font-size: 11px;
  color: var(--t, var(--green));
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-empty {
  color: var(--muted);
  cursor: default;
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body.page-tutorial {
  --track-bar-h: 40px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.page-tutorial .tutorial-shell {
  flex: 1 1 auto;
  width: 100%;
}

body.page-tutorial .site-footer,
body.page-tutorial #shell-footer {
  flex: 0 0 auto;
  width: 100%;
}

/* Track title bar (tutorial pages) */
.trackbar {
  background: var(--black);
  color: #fff;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trackbar-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trackbar-title {
  font-weight: 600;
  border-left: 4px solid var(--track-color, var(--green));
  padding-left: 10px;
}

.trackbar-home {
  color: #9fdfc4 !important;
  text-decoration: none;
  font-size: 13px;
}

.trackbar-chapters-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: auto;
  margin-left: 12px;
}

.trackbar-chapters-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 14px;
}

.trackbar-chapters-icon .toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.trackbar-chapters-btn[aria-expanded="true"] .trackbar-chapters-icon .toggle-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.trackbar-chapters-btn[aria-expanded="true"] .trackbar-chapters-icon .toggle-bar:nth-child(2) {
  opacity: 0;
}

.trackbar-chapters-btn[aria-expanded="true"] .trackbar-chapters-icon .toggle-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.chapters-drawer-header {
  display: none;
}

.chapters-drawer-title {
  font-weight: 700;
  font-size: 1rem;
}

.chapters-drawer-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.chapters-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(15, 20, 18, 0.55);
  cursor: pointer;
}

body.chapters-drawer-open .chapters-drawer-backdrop {
  display: block;
}

body.chapters-nav-open {
  overflow: hidden;
}

@media (min-width: 901px) {
  .chapters-drawer-backdrop,
  body.chapters-drawer-open .chapters-drawer-backdrop {
    display: none !important;
  }

  body.chapters-nav-open {
    overflow: visible;
  }
}

@media (max-width: 900px) {
  .trackbar-chapters-btn {
    display: inline-flex;
  }

  .trackbar-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .chapters-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--green);
    color: #fff;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 2;
  }

  body.page-tutorial #shell-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(340px, 92vw);
    height: 100%;
    max-height: none;
    z-index: 1001;
    margin: 0;
    padding: 0;
    background: var(--paper);
    border-right: 1px solid #ddd;
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
  }

  body.chapters-drawer-open #shell-sidebar {
    transform: translateX(0);
  }

  body.page-tutorial #shell-sidebar .side-title {
    display: none;
  }

  .tutorial-shell {
    display: block;
    max-width: none;
    padding: 0;
  }

  .tutorial-center {
    display: block;
    width: 100%;
  }

  #tutorial-article {
    padding: 16px;
    margin: 0;
    max-width: none;
    width: 100%;
  }

  .site-footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 16px 24px;
  }
}

/* —— Homepage —— */
.home-hero-banner {
  position: relative;
  z-index: 40;
  overflow: hidden;
  background: linear-gradient(135deg, #04aa6d 0%, #028858 55%, #1a5c42 100%);
  color: #fff;
  padding: 48px 20px 56px;
}

.home-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.home-eyebrow {
  margin: 0 0 12px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.home-hero-banner h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
}

.home-lead {
  margin: 0 auto 28px;
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.95;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.home-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none !important;
  font-size: 0.95rem;
}

.home-btn.primary {
  background: #fff;
  color: #038a5a !important;
}

.home-btn.ghost {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff !important;
}

.home-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  opacity: 0.95;
}

.home-stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}

.home-hero-search {
  position: relative;
  max-width: 620px;
  margin: 28px auto 0;
  text-align: left;
}

.home-hero-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 20px;
  font-size: 1.05rem;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  color: #1a1a1a;
}

.home-hero-search-input::placeholder {
  color: #6a6a6a;
}

.home-hero-search-input:focus {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

.home-hero-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.home-hero-search-dropdown .search-hit-title {
  color: #1a1a1a;
}

.page-home .home-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.home-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.feature-card {
  background: var(--paper);
  padding: 22px 20px;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--green-dark);
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.home-section-title {
  margin: 0 0 6px;
  font-size: 1.65rem;
  text-align: center;
}

.home-section-sub {
  margin: 0 0 28px;
  text-align: center;
  color: var(--muted);
}

.home-courses {
  background: #ececec;
  margin: 0 -20px;
  padding: 36px 24px 40px;
  border-radius: 12px;
}

.home-courses .home-section-title,
.home-courses .home-section-sub {
  text-align: center;
}

.home-courses .home-section-sub {
  margin-bottom: 24px;
}

.tutorial-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.course-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none !important;
  color: inherit !important;
  background: #fff;
  border-radius: 14px;
  padding: 28px 18px 26px;
  min-height: 200px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.course-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.course-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 12px;
}

.course-card-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.course-card-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.25;
}

.course-card-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #5a5a5a;
  max-width: 220px;
}

@media (max-width: 960px) {
  .tutorial-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .tutorial-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .home-courses {
    padding: 28px 16px 32px;
    margin: 0 -12px;
  }

  .course-card {
    padding: 22px 12px 20px;
    min-height: 0;
  }
}

@media (max-width: 400px) {
  .tutorial-tiles {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

.home-note {
  margin-top: 40px;
  padding: 20px;
  background: var(--paper);
  border-left: 4px solid var(--green);
  font-size: 0.95rem;
}

/* —— Tutorial layout: desktop = left chapter sidebar + content —— */
.tutorial-shell {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - var(--top-h) - var(--track-bar-h));
}

#shell-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--paper);
  border-right: 1px solid #ddd;
  position: sticky;
  top: calc(var(--top-h) + var(--track-bar-h));
  align-self: flex-start;
  max-height: calc(100vh - var(--top-h) - var(--track-bar-h));
  overflow-y: auto;
}

.side-inner {
  padding: 12px 0 24px;
}

.side-title {
  margin: 0;
  padding: 12px 16px 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.side-section {
  margin: 16px 0 4px;
  padding: 0 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}

#shell-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#shell-sidebar li a {
  display: block;
  padding: 7px 16px 7px 22px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid transparent;
}

#shell-sidebar li a:hover {
  background: #f5f5f5;
}

#shell-sidebar li a.active {
  background: #e7f6ef;
  border-left-color: var(--green);
  font-weight: 600;
}

.tutorial-center {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
  background: var(--paper);
}

#tutorial-article {
  flex: 1;
  min-width: 0;
  padding: 24px 32px 48px;
  max-width: 900px;
}

#shell-toc {
  width: var(--toc-w);
  flex-shrink: 0;
  padding: 24px 16px;
  border-left: 1px solid #eee;
  font-size: 13px;
  position: sticky;
  top: calc(var(--top-h) + var(--track-bar-h));
  align-self: flex-start;
  max-height: calc(100vh - var(--top-h) - var(--track-bar-h));
  overflow-y: auto;
}

.toc-title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
}

.toc-list a:hover {
  color: var(--green-dark);
}

/* Article */
.crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.crumb a {
  color: var(--muted);
}

#tutorial-article h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.25;
}

.meta-line {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

#tutorial-article h2 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
  scroll-margin-top: 100px;
}

#tutorial-article h3 {
  margin: 20px 0 8px;
  font-size: 1.05rem;
}

#tutorial-article p,
#tutorial-article li {
  max-width: 52rem;
}

.code-sample-block {
  max-width: 52rem;
  margin: 1rem 0 1.35rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2d2e36;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.code-sample-block pre {
  margin: 0;
  border-radius: 0;
}

.code-sample-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f9fafb 0%, #eceff3 100%);
  border-top: 1px solid #d5dbe3;
}

.code-sample-filename {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: #4a5568;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #dde2e8;
  border-radius: 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.code-action-btn .code-action-icon {
  flex-shrink: 0;
}

.code-action-btn--ghost {
  background: #fff;
  border-color: #cfd6df;
  color: #2d3748;
}

.code-action-btn--ghost:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.code-action-btn--download {
  background: var(--green);
  color: #fff;
  border-color: var(--green-dark);
  box-shadow: 0 2px 8px rgba(4, 170, 109, 0.35);
}

.code-action-btn--download:hover {
  background: var(--green-dark);
}

.code-action-btn--try {
  background: var(--green);
  color: #fff;
  border-color: var(--green-dark);
  box-shadow: 0 2px 8px rgba(4, 170, 109, 0.35);
}

.code-action-btn--try:hover {
  background: var(--green-dark);
}

.code-action-btn.is-success {
  filter: brightness(1.05);
}

pre {
  position: relative;
  background: var(--black);
  color: #f8f8f2;
  padding: 14px 16px;
  border-radius: 4px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.45;
}

code {
  font-family: var(--mono);
}

p code,
li code {
  background: #f4f4f4;
  padding: 2px 5px;
  border-radius: 3px;
  color: #c7254e;
  font-size: 0.9em;
}

/* Tutorial example output preview */
.output-intro {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.75rem 0 0.5rem;
  max-width: 52rem;
}

.example-output {
  margin: 1rem 0 1.75rem;
  max-width: 52rem;
}

.example-output figcaption {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.output-device {
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.output-device-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #f0f0f0, #e6e6e6);
  border-bottom: 1px solid #ddd;
}

.output-device-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.output-device-bar .red {
  background: #ff5f57;
}

.output-device-bar .yellow {
  background: #febc2e;
}

.output-device-bar .green {
  background: #28c840;
}

.output-device-title {
  margin-left: auto;
  font-size: 11px;
  color: #666;
  font-weight: 600;
}

.output-device-body {
  background: #fafafa;
  padding: 0;
}

.output-iframe {
  display: block;
  width: 100%;
  border: none;
  background: #fff;
}

.output-text,
.output-json {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #fff;
  white-space: pre-wrap;
}

.output-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}

.output-table th,
.output-table td {
  border: 1px solid #e0e0e0;
  padding: 8px 10px;
  text-align: left;
}

.output-table th {
  background: #f3f3f3;
}

.output-meta {
  margin: 0;
  padding: 8px 12px;
  font-size: 12px;
  color: #666;
  background: #f5f5f5;
  border-top: 1px solid #e8e8e8;
}

.output-wp {
  margin: 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  background: #fff;
}

.copy-btn {
  display: none;
}

.tip-box,
.warn-box {
  padding: 14px 16px;
  margin: 16px 0;
  border-radius: 4px;
  font-size: 0.95rem;
  max-width: 52rem;
}

.tip-box {
  background: #e7f6ef;
  border-left: 4px solid var(--green);
}

.warn-box {
  background: #fff8e1;
  border-left: 4px solid #f0ad4e;
}

.lesson-callout {
  padding: 16px 18px;
  margin: 18px 0;
  border-radius: 8px;
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 52rem;
}

.lesson-callout--why {
  background: #e8f5ef;
  border: 1px solid #b8e0cc;
  border-left: 4px solid var(--green);
}

.lesson-callout--warn {
  background: #fff8e6;
  border: 1px solid #f0e0b0;
  border-left: 4px solid #e0a020;
}

.lesson-compact-list {
  margin: 8px 0 0;
  padding-left: 1.2rem;
}

.lesson-checklist {
  list-style: none;
  padding-left: 0;
  max-width: 52rem;
}

.lesson-checklist li {
  position: relative;
  padding: 10px 12px 10px 36px;
  margin: 8px 0;
  background: #f6f9f8;
  border-radius: 6px;
  border: 1px solid #e2ebe6;
}

.lesson-checklist li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 10px;
  font-weight: 800;
  color: var(--green);
}

.lesson-key-points {
  margin: 24px 0 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #f0faf5 0%, #e7f6ef 100%);
  border: 1px solid #c5e6d4;
  border-radius: 8px;
  max-width: 52rem;
}

.lesson-key-points h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--black-nav);
  border: none;
  padding: 0;
}

.lesson-key-points ul {
  margin: 0;
  padding-left: 1.25rem;
}

.lesson-quiz {
  margin-top: 48px;
  padding: 24px 28px;
  max-width: 52rem;
  background: linear-gradient(180deg, #f4fbf7 0%, #f8faf9 100%);
  border: 1px solid #cfe8dc;
  border-radius: 10px;
}

.lesson-quiz h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--black-nav);
  border: none;
  padding: 0;
}

.lesson-quiz-lead {
  margin: 0 0 20px;
  color: #444;
  font-size: 0.98rem;
}

.lesson-quiz-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lesson-quiz-item {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #dde5e1;
  border-radius: 8px;
  background: #fff;
}

.lesson-quiz-item legend {
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0 0 10px;
  color: #1a1a1a;
}

.lesson-quiz-choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 6px 0;
  font-size: 0.95rem;
  line-height: 1.45;
  cursor: pointer;
}

.lesson-quiz-choice input {
  margin-top: 4px;
  flex-shrink: 0;
}

.lesson-quiz-actions {
  margin-top: 20px;
}

.lesson-quiz-check {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}

.lesson-quiz-check:hover {
  background: var(--green-dark);
}

.lesson-quiz-feedback {
  margin: 14px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.lesson-quiz-feedback--ok {
  color: #0d7a4d;
}

.lesson-quiz-feedback--bad {
  color: #b45309;
}

.lesson-quiz-item--ok {
  border-color: #7fd4a8;
  background: #f0fff7;
}

.lesson-quiz-item--bad {
  border-color: #f0b27a;
  background: #fffaf3;
}

#tutorial-article .lesson-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-top: 28px;
  border-top: 2px solid #e0e0e0;
  max-width: 52rem;
}

.lesson-quiz + .lesson-pager {
  margin-top: 28px;
}

.lesson-pager a {
  padding: 14px 16px;
  background: var(--page-bg);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ddd;
}

.lesson-pager a:hover {
  border-color: var(--green);
}

.lesson-pager span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.pager-next {
  text-align: right;
}

.series-nav {
  display: none;
}

/* Static pages */
.page-static .static-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  background: var(--paper);
  min-height: 60vh;
}

/* Legal / policy pages */
.page-static .static-main.legal-doc {
  max-width: 800px;
  line-height: 1.65;
  color: #1a1a1a;
}

/* Legal pages — full width layout */
.page-legal {
  background: var(--page-bg);
}

.legal-full {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  min-height: 60vh;
}

.legal-hero {
  padding-bottom: 48px;
}

.legal-tabs-bar {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: var(--top-h);
  z-index: 40;
  overflow: hidden;
}

.legal-tabs-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
}

.legal-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 10px;
  font-size: clamp(0.72rem, 2.4vw, 0.9rem);
  font-weight: 600;
  color: #555;
  white-space: nowrap;
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.legal-tab + .legal-tab {
  border-left: 1px solid #e8ecef;
}

.legal-tab:hover {
  color: var(--green-dark);
}

.legal-tab.is-active {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.legal-meta-bar {
  background: #f4f6f8;
  border-bottom: 1px solid #e4e8ec;
  text-align: center;
  padding: 12px 24px;
}

.legal-meta-bar p {
  margin: 0;
  font-size: 0.85rem;
  color: #5a6570;
}

.legal-body-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--top-h) + 56px);
}

.legal-toc--sidebar {
  margin: 0 !important;
  padding: 20px 18px !important;
  background: #fff !important;
  border: 1px solid #e2e8e0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.legal-toc--sidebar .legal-toc-title {
  margin-bottom: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.legal-toc--sidebar ol {
  padding-left: 0 !important;
  list-style: none;
  counter-reset: legal-toc;
}

.legal-toc--sidebar li {
  margin: 0 0 4px !important;
  counter-increment: legal-toc;
}

.legal-toc--sidebar li a {
  display: block;
  padding: 7px 10px 7px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: #2d6a4f !important;
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none !important;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.legal-toc--sidebar li a::before {
  content: counter(legal-toc) ". ";
  color: #9ca3af;
  font-weight: 600;
  font-size: 0.8rem;
}

.legal-toc--sidebar li a:hover {
  color: var(--green-dark) !important;
  background: #f0f7f4;
  border-left-color: rgba(4, 170, 109, 0.45);
  text-decoration: none !important;
}

.legal-toc--sidebar li a:focus-visible {
  outline: 2px solid rgba(4, 170, 109, 0.35);
  outline-offset: 2px;
}

.legal-content {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 32px 36px 40px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  line-height: 1.65;
  color: #1a1a1a;
}

.page-legal .legal-content.legal-doc {
  max-width: none;
}

.legal-content .legal-lead {
  margin-top: 0;
}

.legal-content section h2 {
  scroll-margin-top: 120px;
}

.legal-bottom-cta {
  padding: 40px 24px 56px;
  background: linear-gradient(180deg, #e8f5ef 0%, var(--page-bg) 100%);
  border-top: 1px solid #dce8e0;
}

.legal-bottom-inner {
  text-align: center;
  max-width: 560px;
}

.legal-bottom-inner p {
  margin: 0 0 18px;
  color: #444;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .legal-body-wrap {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-toc--sidebar ol {
    columns: 1;
    column-gap: 0;
  }
}

@media (max-width: 520px) {
  .legal-content {
    padding: 22px 18px 28px;
  }

  .legal-toc--sidebar ol {
    columns: 1;
  }

  .legal-tab {
    padding: 12px 6px;
  }
}

@media (min-width: 640px) {
  .legal-tab {
    flex: 0 0 auto;
    padding: 14px 18px;
    font-size: 0.9rem;
  }
}

.legal-doc .legal-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.legal-doc h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  color: var(--black-nav);
}

.legal-doc .legal-meta {
  margin: 0 0 20px;
  font-size: 14px;
  color: #5c5c5c;
}

.legal-doc .legal-lead {
  margin: 0 0 24px;
  font-size: 1.05rem;
  color: #333;
}

.legal-doc .legal-toc {
  margin: 0 0 32px;
  padding: 18px 22px;
  background: #f0f7f4;
  border: 1px solid #d4e8de;
  border-radius: 8px;
}

.legal-doc .legal-toc-title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--black-nav);
}

.legal-doc .legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.legal-doc .legal-toc li {
  margin: 6px 0;
}

.legal-doc .legal-toc a {
  color: var(--green);
  text-decoration: none !important;
  font-weight: 500;
}

.legal-doc .legal-toc a:hover {
  text-decoration: none !important;
}

.legal-doc section {
  margin-bottom: 28px;
}

.legal-doc h2 {
  margin: 0 0 12px;
  padding-top: 8px;
  font-size: 1.25rem;
  color: var(--black-nav);
  border-top: 1px solid #e8e8e8;
}

.legal-doc section:first-of-type h2 {
  border-top: none;
  padding-top: 0;
}

.legal-doc h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
  color: #2a2a2a;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 14px;
  padding-left: 1.35rem;
}

.legal-doc li {
  margin: 8px 0;
}

.legal-doc a {
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
}

.legal-content.legal-doc section a:hover,
.legal-content.legal-doc .legal-lead a:hover {
  text-decoration: none;
  border-bottom: 1px solid rgba(4, 170, 109, 0.45);
}

.legal-doc .legal-related {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
  font-size: 14px;
  color: #555;
}

.page-static .contact-card {
  margin-top: 20px;
  padding: 20px 22px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e2e2e2;
}

.page-static .contact-card h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.page-static .contact-email {
  font-size: 1.1rem;
  font-weight: 600;
  word-break: break-all;
}

/* —— About page (full width) —— */
.page-about {
  background: var(--page-bg);
}

.page-about .about-full {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  min-height: 60vh;
  background: transparent;
}

.about-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-hero {
  background: linear-gradient(135deg, #04aa6d 0%, #028858 50%, #1a5c42 100%);
  color: #fff;
  padding: 56px 24px 64px;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(0, 0, 0, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.about-hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.about-hero-eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.92;
  font-weight: 600;
}

.about-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 4.5vw, 2.85rem);
  line-height: 1.12;
  font-weight: 800;
}

.about-hero-lead {
  margin: 0 auto 28px;
  font-size: 1.12rem;
  line-height: 1.65;
  opacity: 0.96;
  max-width: 640px;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.about-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none !important;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.about-btn:hover {
  transform: translateY(-1px);
}

.about-btn--light {
  background: #fff;
  color: #038a5a !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.about-btn--outline {
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #fff !important;
}

.about-btn--dark {
  background: var(--black-nav);
  color: #fff !important;
}

.about-stats-bar {
  background: #fff;
  border-bottom: 1px solid #e4e4e4;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.about-stats-list {
  list-style: none;
  margin: 0;
  padding: 28px 24px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.about-stats-list strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.1;
}

.about-stats-list span {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  color: #666;
  font-weight: 500;
}

.about-founder-section {
  padding: 56px 0;
  background: #fff;
}

.about-founder-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.about-founder-visual {
  text-align: center;
}

.about-founder-photo-wrap {
  --founder-photo-size: 200px;
  width: var(--founder-photo-size);
  height: var(--founder-photo-size);
  margin: 0 auto 16px;
  padding: 4px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, #04aa6d 0%, #026d47 100%);
  box-shadow: 0 12px 40px rgba(4, 170, 109, 0.28);
  box-sizing: border-box;
}

.about-founder-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 3px solid #fff;
  box-sizing: border-box;
  background: #f0f0f0;
}

.about-founder-caption {
  margin: 0;
  font-weight: 700;
  color: var(--black-nav);
  line-height: 1.4;
}

.about-founder-caption span {
  font-weight: 500;
  color: #666;
  font-size: 0.9rem;
}

.about-founder-copy h2 {
  margin: 0 0 16px;
  font-size: 1.65rem;
  color: var(--black-nav);
}

.about-founder-copy p {
  margin: 0 0 16px;
  color: #333;
  line-height: 1.7;
}

.about-quote {
  margin: 24px 0 0;
  padding: 20px 24px;
  border-left: 4px solid var(--green);
  background: #f6fbf8;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #2a4a3a;
  font-size: 1.05rem;
}

.about-offer-section {
  padding: 56px 0 64px;
  background: var(--page-bg);
}

.about-team-section {
  padding: 56px 0 64px;
  background: #eef1f4;
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.about-team-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 14px 22px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(15, 23, 32, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.about-team-photo-wrap {
  width: 118px;
  height: 118px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, #7c9cff, #b794f6);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.9),
    0 8px 28px rgba(99, 102, 241, 0.28);
}

.about-team-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #e8ecf1;
}

.about-team-photo-wrap--fallback {
  background: linear-gradient(145deg, #7c9cff, #b794f6);
}

.about-team-photo-wrap--fallback::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #e8ecf1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2399a8b5'%3E%3Cpath d='M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v1.2h19.2v-1.2c0-3.2-6.4-4.8-9.6-4.8z'/%3E%3C/svg%3E") center/52% no-repeat;
}

.about-team-photo-wrap {
  position: relative;
}

.about-team-name {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--black-nav);
  line-height: 1.3;
}

.about-team-role {
  margin: 0;
  color: #5c6570;
  font-size: 0.86rem;
  line-height: 1.45;
}

.about-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.about-section-head h2 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  color: var(--black-nav);
}

.about-section-head p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.about-offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.about-offer-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px 22px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.about-offer-card:hover {
  border-color: #b8e0cc;
  box-shadow: 0 8px 28px rgba(4, 170, 109, 0.12);
  transform: translateY(-2px);
}

.about-offer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.about-offer-icon--web {
  background: linear-gradient(135deg, #e44d26, #c73e1d);
}

.about-offer-icon--backend {
  background: linear-gradient(135deg, #306998, #ffd43b);
  color: #1a1a1a;
  font-size: 0.6rem;
}

.about-offer-icon--lang {
  background: linear-gradient(135deg, #00599c, #004482);
}

.about-offer-icon--mobile {
  background: linear-gradient(135deg, #3ddc84, #2db86a);
  color: #0d3d28;
}

.about-offer-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--black-nav);
}

.about-offer-card p {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: #555;
  line-height: 1.55;
}

.about-offer-card a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.about-why-section {
  padding: 56px 0;
  background: var(--black-nav);
  color: #e8e8e8;
}

.about-section-head--light h2 {
  color: #fff;
}

.about-why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.about-why-grid li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 22px 20px;
}

.about-why-grid strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.about-why-grid p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #b8b8b8;
}

.about-trust-section {
  padding: 56px 0;
  background: #fff;
}

.about-trust-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.about-trust-grid h2 {
  margin: 0 0 14px;
  font-size: 1.5rem;
}

.about-trust-grid p {
  margin: 0 0 12px;
  line-height: 1.65;
  color: #444;
}

.about-signature-card {
  background: linear-gradient(160deg, #f8faf9 0%, #eef6f1 100%);
  border: 1px solid #d4e8de;
  border-radius: 12px;
  padding: 28px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.about-signature-label {
  margin: 0 0 8px;
  color: #666;
  font-size: 0.9rem;
}

.about-signature-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--black-nav);
}

.about-signature-role {
  margin: 4px 0 16px;
  color: #555;
  font-size: 0.95rem;
}

.about-signature-email {
  display: inline-block;
  font-weight: 600;
  color: var(--green-dark) !important;
  word-break: break-all;
}

.about-cta-section {
  padding: 48px 24px 64px;
  background: linear-gradient(180deg, #e8f5ef 0%, var(--page-bg) 100%);
}

.about-cta-inner {
  text-align: center;
  max-width: 560px;
}

.about-cta-inner h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.about-cta-inner p {
  margin: 0 0 22px;
  color: #555;
}

@media (max-width: 1200px) {
  .about-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .about-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .about-offer-grid,
  .about-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-founder-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-founder-visual {
    display: flex;
    align-items: center;
    gap: 24px;
    text-align: left;
  }

  .about-founder-photo-wrap {
    --founder-photo-size: 120px;
    margin: 0;
    flex-shrink: 0;
  }

  .about-trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .about-stats-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .about-offer-grid,
  .about-why-grid {
    grid-template-columns: 1fr;
  }

  .about-team-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-founder-visual {
    flex-direction: column;
    text-align: center;
  }

  .about-founder-photo-wrap {
    margin: 0 auto;
  }
}

/* —— Contact page (full width) —— */
.page-contact {
  background: var(--page-bg);
}

.page-contact .contact-full {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  min-height: 60vh;
}

.contact-hero .about-hero-lead strong {
  color: #fff;
}

.contact-quick-bar {
  background: #fff;
  border-bottom: 1px solid #e4e4e4;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.contact-quick-list {
  list-style: none;
  margin: 0;
  padding: 24px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 24px;
}

.contact-quick-list li {
  text-align: center;
}

.contact-quick-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-quick-list a {
  font-weight: 700;
  color: var(--green-dark);
  word-break: break-all;
}

.contact-quick-list strong {
  font-size: 0.95rem;
  color: var(--black-nav);
}

.contact-main-section {
  padding: 56px 0;
  background: var(--page-bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: start;
}

.contact-email-card {
  background: #fff;
  border: 1px solid #e2e8e0;
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 88px;
}

.contact-card-tag {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.contact-email-card h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  color: var(--black-nav);
}

.contact-email-card > p {
  margin: 0 0 14px;
  color: #444;
  line-height: 1.65;
  font-size: 0.95rem;
}

.contact-email-display {
  margin: 20px 0 !important;
  padding: 14px 16px;
  background: #f4faf7;
  border: 1px dashed #b8e0cc;
  border-radius: 8px;
  text-align: center;
}

.contact-email-display a {
  font-size: 1.05rem;
  font-weight: 700;
  word-break: break-all;
}

.contact-mail-btn {
  display: block;
  text-align: center;
  padding: 14px 20px;
  background: var(--green);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(4, 170, 109, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}

.contact-mail-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.contact-email-note {
  margin: 18px 0 0 !important;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

.contact-section-head {
  margin-bottom: 24px;
}

.contact-section-head h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--black-nav);
}

.contact-section-head p {
  margin: 0;
  color: #555;
  line-height: 1.55;
}

.contact-reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-reason-card {
  display: block;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-reason-card:hover {
  border-color: #b8e0cc;
  box-shadow: 0 8px 24px rgba(4, 170, 109, 0.12);
  transform: translateY(-2px);
}

.contact-reason-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #e8f5ef;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.contact-reason-icon--idea {
  background: #fff4e5;
  color: #c45c00;
}

.contact-reason-icon--lock {
  background: #e8eef5;
  color: #2c5282;
}

.contact-reason-icon--legal {
  background: #f0eef5;
  color: #553c9a;
}

.contact-reason-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--black-nav);
}

.contact-reason-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

.contact-guide-section {
  padding: 48px 0 56px;
  background: #fff;
}

.contact-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.contact-checklist li {
  padding: 16px 18px;
  background: #f8faf9;
  border: 1px solid #e5ebe8;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #333;
}

.contact-expect-section {
  padding: 48px 0 56px;
  background: var(--black-nav);
  color: #ddd;
}

.contact-expect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-expect-grid h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.1rem;
}

.contact-expect-grid ul {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.65;
  color: #b0b0b0;
}

.contact-legal-section {
  padding: 40px 24px 56px;
  background: linear-gradient(180deg, #e8f5ef 0%, var(--page-bg) 100%);
}

.contact-legal-inner {
  text-align: center;
  max-width: 640px;
}

.contact-legal-inner p {
  margin: 0 0 20px;
  color: #444;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-email-card {
    position: static;
  }

  .contact-quick-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .contact-quick-list {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .contact-quick-list li {
    text-align: left;
  }

  .contact-reason-grid,
  .contact-checklist,
  .contact-expect-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form label {
  display: block;
  margin-top: 14px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  margin-top: 16px;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.site-footer {
  background: linear-gradient(180deg, #1e2128 0%, var(--black-nav) 100%);
  color: #b8b8b8;
  margin-top: auto;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 20px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px 28px;
  align-items: start;
}

.site-footer-brand {
  min-width: 0;
}

.site-footer-logo {
  display: inline-block;
  margin-bottom: 14px;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-footer-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.site-footer-logo img {
  display: block;
  height: 32px;
  width: auto;
}

.site-footer-tagline {
  margin: 0;
  line-height: 1.55;
  color: #9a9a9a;
  max-width: 320px;
}

.site-footer-col h3 {
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer-col li {
  margin-bottom: 11px;
}

.site-footer-col a {
  color: #9fdfc4 !important;
  text-decoration: none !important;
  display: inline-block;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.site-footer-col a:hover {
  color: #e8f7ef !important;
  border-bottom-color: rgba(159, 223, 196, 0.35);
}

.site-footer-col a.active {
  color: #fff !important;
  font-weight: 600;
  border-bottom-color: rgba(159, 223, 196, 0.55);
}

.site-footer-col a:focus-visible {
  outline: 2px solid rgba(159, 223, 196, 0.45);
  outline-offset: 3px;
  border-bottom-color: transparent;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 18px 20px 22px;
  text-align: center;
}

.site-footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: #888;
}

@media (max-width: 720px) {
  .site-footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 16px 24px;
  }

  .site-footer-tagline {
    max-width: none;
  }
}

/* Legacy alias */
.bottomnav {
  background: var(--black-nav);
}

/* Module index intro inside tutorial article */
.module-intro-list {
  columns: 1;
  margin: 16px 0;
  padding-left: 20px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.module-card {
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 4px;
  background: var(--page-bg);
}

.module-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.module-card h3 a {
  color: inherit;
  text-decoration: none;
}

.module-card h3 a:hover {
  color: var(--green-dark);
}

.module-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.track-hero-art {
  text-align: center;
  margin: 8px 0 20px;
  padding: 16px;
  background: linear-gradient(180deg, #f8f8f8, #fff);
  border-radius: 12px;
  border: 1px solid #eee;
}

.track-hero-art img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

@media (max-width: 1100px) {
  #shell-toc {
    display: none;
  }
}

@media (min-width: 901px) {
  .mobile-drawer {
    display: none;
  }
}

@media (max-width: 1100px) {
  .topnav-link {
    font-size: 13px;
    padding: 0 9px;
  }

  .topnav-search {
    flex: 0 0 180px;
    width: 180px;
  }
}

@media (max-width: 900px) {
  .topnav-links-scroll--desktop,
  .topnav-links--desktop,
  .topnav-search-wrap--desktop {
    display: none !important;
  }

  .topnav-toggle {
    display: flex;
    margin-left: auto;
  }

  .topnav-inner {
    padding: 0 12px;
  }

  .topnav-search {
    margin-left: 0;
    flex: 1;
    max-width: none;
  }
}

@media (max-width: 768px) {
  #tutorial-article {
    padding: 16px;
  }

  .lesson-pager {
    grid-template-columns: 1fr;
  }
}

/* —— Download Codes —— */
.page-downloads {
  background: var(--page-bg);
}

.dl-full {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.dl-hero {
  background: linear-gradient(135deg, #038a5a 0%, #04aa6d 45%, #0d7a52 100%);
}

.dl-catalog-section {
  padding: 56px 0 72px;
}

.dl-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.dl-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid #e2e8e0;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.dl-card:hover {
  border-color: var(--green);
  box-shadow: 0 12px 32px rgba(4, 170, 109, 0.12);
  transform: translateY(-2px);
}

.dl-card-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f8f0;
  color: var(--green-dark);
}

.dl-card--js .dl-card-badge {
  background: #eef4ff;
  color: #1a56db;
}

.dl-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--black-nav);
}

.dl-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  flex: 1;
  line-height: 1.45;
}

.dl-card-cta {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--green-dark);
}

.dl-detail-section {
  padding: 48px 0 64px;
}

.dl-detail-section--bottom {
  background: var(--page-bg);
  border-top: 1px solid #e8e8e8;
  margin-top: 0;
}

.dl-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

.dl-detail-card,
.dl-setup-card {
  background: #fff;
  border: 1px solid #e2e8e0;
  border-radius: 14px;
  padding: 28px 26px;
}

.dl-file-list {
  margin: 12px 0 20px;
  padding-left: 1.25rem;
  line-height: 1.6;
}

.dl-file-list code {
  font-size: 0.88rem;
}

.dl-note {
  font-size: 0.9rem;
  color: #666;
}

.dl-setup-steps {
  margin: 12px 0 16px;
  padding-left: 1.25rem;
  line-height: 1.55;
}

.home-downloads-cta {
  margin: 0 0 32px;
  padding: 28px 24px;
  background: linear-gradient(120deg, #e8f8f0 0%, #fff 55%);
  border: 1px solid #cfe8dc;
  border-radius: 16px;
}

.home-downloads-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.home-downloads-cta h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.home-downloads-cta p {
  margin: 0;
  max-width: 560px;
  color: #444;
  line-height: 1.5;
}

.home-downloads-btn {
  display: inline-block;
  padding: 14px 22px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}

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

.dl-article {
  padding: 48px 0 72px;
  background: #fff;
  border-top: 1px solid #e8e8e8;
}

.dl-article-head {
  margin-bottom: 20px;
}

.dl-article-head h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--black-nav);
}

.dl-article-meta {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.dl-article h3 {
  margin: 28px 0 12px;
  font-size: 1.15rem;
  color: var(--green-dark);
}

.dl-article p {
  line-height: 1.65;
  color: #333;
  margin: 0 0 14px;
  max-width: 820px;
}

.dl-install-list {
  margin: 0 0 20px;
  padding-left: 1.35rem;
  max-width: 820px;
  line-height: 1.6;
}

.dl-install-list li {
  margin-bottom: 8px;
}

.dl-example {
  margin: 20px 0 28px;
  max-width: 900px;
}

.dl-example-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black-nav);
}

.dl-code {
  margin: 0;
  padding: 16px 18px;
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.45;
  border: 1px solid #333;
}

.dl-code code {
  font-family: Consolas, "Courier New", monospace;
  white-space: pre;
}

.dl-explain {
  margin-top: 12px;
  padding: 14px 16px;
  background: #f6faf8;
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #333;
}

.dl-explain p {
  margin: 0;
  max-width: none;
}

.dl-legal-note {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #555;
  margin: 16px 0;
  padding: 12px 14px;
  background: #fff9e6;
  border: 1px solid #e8d9a8;
  border-radius: 8px;
}

.dl-legal-note a {
  font-weight: 700;
  color: var(--green-dark);
}

.dl-ref-intro {
  font-size: 0.92rem;
  color: #555;
  margin: 0 0 12px;
}

.dl-security-warning {
  margin: 16px 0;
  padding: 16px 18px;
  background: #fff3cd;
  border: 1px solid #e0b400;
  border-left: 5px solid #c28b00;
  border-radius: 8px;
  color: #4a3b00;
  font-size: 0.9rem;
  line-height: 1.55;
}

.dl-security-warning-title {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 0.95rem;
}

.dl-security-warning p {
  margin: 0;
}

.dl-legal-disclaimer {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #444;
  margin: 12px 0;
  padding: 12px 14px;
  background: #fdecea;
  border: 1px solid #f5c2c0;
  border-radius: 8px;
}

.dl-policy-links {
  font-size: 0.88rem;
  margin: 0 0 16px;
  line-height: 1.5;
}

.dl-policy-links a {
  font-weight: 700;
  color: var(--green-dark);
}

.dl-host-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: #666;
}

.dl-explain p {
  margin: 0 0 12px;
}

.dl-explain p:last-child {
  margin-bottom: 0;
}

/* —— HTML editors download cards (html-editors lesson) —— */
.editor-download-note {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: #555;
}

.editor-download-grid {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.editor-download-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid #dce8df;
  border-radius: 12px;
  background: linear-gradient(180deg, #fafdfb 0%, #fff 100%);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.editor-download-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 24px rgba(4, 170, 109, 0.12);
  transform: translateY(-1px);
}

.editor-download-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--black-nav);
}

.editor-download-meta {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.4;
}

.editor-download-cta {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
}

/* —— 404 page —— */
.page-404 {
  background: linear-gradient(165deg, #f4f7f4 0%, var(--page-bg) 42%, #eef5ef 100%);
}

.error-page-main {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px;
}

.error-page-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8e0;
  border-radius: 20px;
  padding: 36px 28px 32px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

.error-page-visual {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
}

.error-page-orbit {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(4, 170, 109, 0.35);
  border-radius: 50%;
  animation: gt-error-spin 12s linear infinite;
}

.error-page-badge {
  position: absolute;
  inset: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba(4, 170, 109, 0.35);
}

@keyframes gt-error-spin {
  to {
    transform: rotate(360deg);
  }
}

.error-page-code {
  margin: 0 0 6px;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.02em;
}

.error-page-card h1 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  color: var(--black-nav);
}

.error-page-lead {
  margin: 0 0 20px;
  color: #555;
  line-height: 1.6;
  font-size: 0.98rem;
}

.error-page-path-wrap {
  margin: 0 0 20px;
  text-align: left;
}

.error-page-path-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 6px;
}

.error-page-path {
  display: block;
  padding: 10px 12px;
  background: #f6f8f6;
  border: 1px solid #e2e8e0;
  border-radius: 10px;
  font-size: 0.82rem;
  word-break: break-all;
  color: #333;
}

.error-page-search {
  margin: 0 0 22px;
  text-align: left;
}

.error-page-search-input {
  width: 100%;
}

.error-page-search-dropdown {
  max-height: 220px;
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
}

.error-page-quick-title {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
}

.error-page-quick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.error-page-quick-list a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f0f7f3;
  border: 1px solid #d8ebe0;
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.error-page-quick-list a:hover {
  background: #e4f3eb;
  border-color: var(--green);
}

.error-page-help {
  margin: 18px 0 0;
  font-size: 0.88rem;
  color: #666;
}

.error-page-help a {
  font-weight: 700;
  color: var(--green-dark);
}

@media (max-width: 900px) {
  .dl-detail-grid {
    grid-template-columns: 1fr;
  }
}
