@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Source+Serif+4:wght@600;700&display=swap');

:root {
  --ew-bg: #f3f5f8;
  --ew-bg-top: #fcfdff;
  --ew-ink: #1d2733;
  --ew-muted: #5f6b7a;
  --ew-primary: #103b63;
  --ew-accent: #1b79b4;
  --ew-card: #ffffff;
  --ew-border: #dee5ef;
  --ew-shadow: 0 14px 34px rgba(15, 48, 77, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ew-ink);
  background-color: var(--ew-bg);
  background-image: linear-gradient(180deg, var(--ew-bg-top) 0, #f6f8fb 220px, var(--ew-bg) 220px);
}

.navbar.bg-light {
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(12px) saturate(135%);
  border-bottom: 1px solid #dce6f2;
  box-shadow: 0 10px 26px rgba(14, 53, 86, 0.08);
}

.navbar .container {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

.navbar .navbar-brand {
  font-family: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f2f4b;
}

.navbar .nav-text {
  background: #f1f5fa;
  border: 1px solid #d9e5f2;
  border-radius: 999px;
  padding: 0.16rem 0.52rem;
  font-weight: 700;
  color: #355067 !important;
}

.navbar .navbar-nav.me-auto {
  gap: 0.2rem;
}

.navbar .nav-item {
  position: relative;
}

.navbar .nav-link {
  color: #3a4e63;
  font-weight: 650;
  border-radius: 999px;
  padding: 0.42rem 0.78rem !important;
  line-height: 1.1;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.navbar .nav-link:hover {
  color: #114d79;
  background: #edf5fd;
  box-shadow: inset 0 0 0 1px #d5e5f6;
}

.navbar .nav-item.active > .nav-link,
.navbar .nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0e5f95 0%, #0a4f7d 100%);
  box-shadow: 0 8px 18px rgba(15, 95, 148, 0.22);
}

.navbar .navbar-nav:last-child .nav-link {
  padding: 0.42rem 0.6rem !important;
}

.navbar .navbar-toggler {
  border-color: #d7e3f1;
  border-radius: 10px;
  padding: 0.32rem 0.5rem;
}

.navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(27, 121, 180, 0.22);
}

@media (min-width: 992px) {
  .navbar .navbar-nav.me-auto {
    background: #f6f9fd;
    border: 1px solid #dce7f3;
    border-radius: 999px;
    padding: 0.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
}

.container[class*="template-"] {
  margin-top: 1.35rem;
  margin-bottom: 2.4rem;
}

.container[class*="template-"] main.col-md-9 {
  background: var(--ew-card);
  border: 1px solid var(--ew-border);
  border-radius: 18px;
  box-shadow: var(--ew-shadow);
  padding: 2.1rem 2.3rem 2.3rem;
}

.template-home main.col-md-9 {
  flex: 0 0 70%;
  width: 70%;
  max-width: 70%;
  min-width: 0;
  margin: 0;
}

.template-home aside.col-md-3 {
  display: block;
  flex: 0 0 30%;
  width: 30%;
  max-width: 30%;
  min-width: 0;
}

.template-home .row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.container[class*="template-"] aside.col-md-3 {
  padding-left: 1rem;
}

.container[class*="template-"] aside.col-md-3 .links,
.container[class*="template-"] aside.col-md-3 nav,
.container[class*="template-"] aside.col-md-3 > div {
  background: #ffffff;
  border: 1px solid var(--ew-border);
  border-radius: 14px;
  padding: 0.95rem 1rem;
}

.container[class*="template-"] h1,
.container[class*="template-"] h2,
.container[class*="template-"] h3 {
  font-family: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  color: #142d46;
  letter-spacing: 0.01em;
}

.container[class*="template-"] h1 {
  font-size: 2.05rem;
  margin-bottom: 1.15rem;
}

.container[class*="template-"] h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e9eef5;
}

.container[class*="template-"] p,
.container[class*="template-"] li {
  font-size: 1rem;
  line-height: 1.78;
}

.container[class*="template-"] a {
  color: #0d5485;
}

.container[class*="template-"] a:hover {
  color: #083f67;
}

.home-hero {
  margin: 0 0 1.2rem;
  padding: 1.2rem 1.3rem;
  border-radius: 14px;
  border: 1px solid #d9e4f1;
  border-left: 4px solid #1c7ab4;
  background: #f8fbff;
}

.home-hero .hero-kicker {
  margin: 0 0 0.5rem;
  color: #1c6ea2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.home-hero .hero-lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.8;
  color: #23364b;
}

.home-hero--enhanced {
  background:
    radial-gradient(circle at 88% -15%, rgba(66, 141, 194, 0.22) 0, rgba(66, 141, 194, 0) 38%),
    linear-gradient(120deg, #f8fbff 0%, #f5f8fe 100%);
  border: 1px solid #cfe0f3;
  border-left: 0;
  position: relative;
  overflow: hidden;
}

.home-hero--enhanced::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #1b79b4 0%, #0f4f7c 100%);
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-block;
  padding: 0.48rem 0.88rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

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

.hero-btn-primary {
  background: #0f5f94;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(15, 95, 148, 0.22);
}

.hero-btn-primary:hover {
  background: #0a4f7d;
}

.hero-btn-ghost {
  border: 1px solid #b8cde4;
  color: #114d79 !important;
  background: #f7fbff;
}

.hero-btn-ghost:hover {
  background: #eef6ff;
}

.workflow-frame {
  margin: 1.2rem 0 1.8rem;
  padding: 1rem;
  border: 1px solid #d8e4f2;
  border-radius: 16px;
  background: linear-gradient(180deg, #fafdff 0%, #f5f9fd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.workflow-frame img {
  border-radius: 10px;
}

.install-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0.2rem 0 1.2rem;
}

.install-card {
  border: 1px solid #d8e4f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  padding: 0.9rem 0.95rem;
  box-shadow: 0 9px 20px rgba(17, 66, 104, 0.06);
}

.install-card h3 {
  margin: 0.18rem 0 0.42rem;
  font-size: 1.05rem;
  border: 0 !important;
  padding: 0 !important;
}

.install-step {
  margin: 0;
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1c6ea2;
}

.install-card p {
  margin-bottom: 0.55rem;
}

.install-card pre {
  margin: 0;
  background: #f4f8fd !important;
}

.template-home #toc {
  position: sticky;
  top: 86px;
}

.template-home #toc ul {
  margin: 0.4rem 0 0;
  padding-left: 0;
  list-style: none;
}

.template-home #toc li {
  margin-bottom: 0.24rem;
}

.template-home #toc a {
  display: block;
  padding: 0.24rem 0.42rem;
  border-radius: 8px;
  color: #3a4d63;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.35;
  white-space: normal;
}

.template-home #toc a:hover {
  background: #eef5fd;
  color: #114d79;
}

.container[class*="template-"] pre {
  border: 1px solid #d9e2ee;
  border-radius: 12px;
  background: #f7faff;
  padding: 0.85rem;
}

.container[class*="template-"] code {
  color: #0d4f7d;
}

.container[class*="template-"] .sourceCode {
  font-size: 0.93rem;
}

.container[class*="template-"] table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border: 1px solid #dce4ee;
  border-radius: 12px;
  overflow: hidden;
}

.container[class*="template-"] table th {
  background: #eff5fb;
  color: #17324e;
}

.container[class*="template-"] table th,
.container[class*="template-"] table td {
  border-color: #e4eaf2;
  padding: 0.65rem 0.75rem;
}

@media (max-width: 991px) {
  .navbar .container {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }

  .navbar .navbar-nav.me-auto {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 0.1rem;
  }

  .navbar .nav-link {
    border-radius: 10px;
    padding: 0.55rem 0.72rem !important;
  }

  .navbar .nav-item.active > .nav-link,
  .navbar .nav-link.active {
    box-shadow: none;
  }

  #navbar.collapse.show {
    margin-top: 0.5rem;
    padding: 0.45rem;
    border: 1px solid #dbe7f4;
    border-radius: 12px;
    background: #fbfdff;
  }

  .container[class*="template-"] main.col-md-9 {
    border-radius: 14px;
    padding: 1.2rem 1rem 1.4rem;
  }

  .container[class*="template-"] aside.col-md-3 {
    display: none;
  }

  .template-home main.col-md-9 {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .template-home .row {
    display: block;
  }

  .container[class*="template-"] h1 {
    font-size: 1.78rem;
  }

  .home-hero .hero-lead {
    font-size: 0.98rem;
  }

  .install-quick-grid {
    grid-template-columns: 1fr;
  }
}
