/* Root theme */
:root {
  --bg: #ffffff;
  --text: #2f3b4a;
  --muted: #6b7785;
  --soft: #eef2f6;
  --primary: #3a7afe;
  --sidebar-width: 280px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

.app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  border-right: 1px solid var(--soft);
  padding: 24px 16px;
  background: #fafbfc;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.brand .logo {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #6aa7ff, #9ec5ff);
  color: #fff;
  font-weight: 800;
}

.nav {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.nav li {
  margin: 6px 0;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--muted);
  border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}

.nav a:hover {
  background: var(--soft);
  color: var(--text);
}

.nav a.active {
  background: #e8f0ff;
  color: var(--primary);
  font-weight: 600;
}

.nav .icon {
  width: 22px;
  text-align: center;
  font-size: 18px;
}

.sidebar .section-divider {
  margin: 16px 8px;
  height: 1px;
  background: var(--soft);
}

.sidebar .footer {
  margin-top: 16px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

/* Content area */
.content {
  flex: 1;
  padding: 32px 40px;
  max-width: 1100px;
}

.page-title {
  margin: 0 0 0 0;
  font-size: 34px;
  line-height: 2.2;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 0 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 780px;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #7a8595;
  margin: 2px 0 0 0;
}

.coming-soon::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ffb26b;
  box-shadow: 0 0 0 6px #fff3e6;
  opacity: 0.9;
}

.card {
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: 14px;
  padding: 20px 20px;
  margin: 14px 0;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03), 0 6px 16px rgba(17, 24, 39, 0.06);
}

.content .card:first-of-type {
  margin-top: 1px; /* tighten gap beneath one-liner */
}

.card h2 {
  margin: 4px 0 12px 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.grid {
  display: grid;
  gap: 12px;
}

/* Lists */
ul.clean {
  margin: 0;
  padding-left: 18px;
}

ul.clean li {
  margin: 6px 0;
}

/* Enhanced numbered list style for the first section on each page */
.content .card:first-of-type ul.clean {
  counter-reset: item;
  list-style: none;
  padding-left: 0;
}

.content .card:first-of-type ul.clean li {
  position: relative;
  padding-left: 46px;
  margin: 12px 0;
}

.content .card:first-of-type ul.clean li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #ff7a00;
  background: #fff7ef;
  border: 1px solid #ffe6cf;
}

/* Make the second and third cards sit side-by-side on wide screens */
@media (min-width: 980px) {
  /* Use a simple grid layout to naturally equalize card heights */
  .content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 12px;
  }
  .content .page-title,
  .content .coming-soon,
  .content .lead,
  .content .card:first-of-type,
  .content .card:nth-of-type(4) {
    grid-column: 1 / -1; /* span full width */
  }
  .content .card:nth-of-type(2) {
    grid-column: 1;
  }
  .content .card:nth-of-type(3) {
    grid-column: 2;
  }
}

/* Small helpers */
.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 999px;
  background: #eef3ff;
  color: var(--primary);
  border: 1px solid #dfe8ff;
}

/* Section icons for the three key cards (CSS-only, no HTML changes) */
.content .card h2 {
  position: relative;
  padding-left: 28px;
}
.content .card h2::before {
  content: "💰";
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(2px);
  font-size: 18px;
}
.content > .card:nth-of-type(1) h2::before {
  content: "💰" !important;
}
.content > .card:nth-of-type(2) h2::before {
  content: "🔎" !important;
}
.content > .card:nth-of-type(3) h2::before {
  content: "📘" !important;
}

/* Responsive */
@media (max-width: 980px) {
  .sidebar {
    position: fixed;
    z-index: 10;
    transform: translateX(-100%);
    transition: transform .2s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .content {
    padding: 24px 20px;
  }
}


