* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    /* Colors - Light Mode */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(220, 15%, 15%);
    --muted-foreground: hsl(220, 10%, 45%);

    --accent: hsl(168, 76%, 42%);
    --accent-foreground: hsl(0, 0%, 100%);

    --border: hsl(220, 15%, 88%);

    --card-bg: hsl(0, 0%, 100%);
    --sidebar-bg: hsl(0, 0%, 98%);
    --sidebar-border: hsl(220, 15%, 90%);
    --secondary-bg: hsl(220, 15%, 96%);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
}


body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
}


.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: 4rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}


.mobile-toc-toggle {
    display: block;
    margin-bottom: 2rem;
     position: sticky;
    top: 88px; /* below nav + newsticker */
    z-index: 40;
    padding-bottom: 0.5rem;
    max-height: 40vh;
    overflow-y: auto;
}

.mobile-toc-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background-color: var(--card-bg);
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s;
}

.mobile-toc-button:hover {
    background-color: var(--secondary-bg);
}

.mobile-toc-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted-foreground);
}

.mobile-toc-icon {
    color: var(--muted-foreground);
    transition: transform 0.2s;
}

.mobile-toc-icon.open {
    transform: rotate(180deg);
}

.mobile-toc-content {
    display: none;
    margin-top: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background-color: var(--card-bg);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.mobile-toc-content.open {
    display: block;
}

.mobile-toc-nav {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

.mobile-toc-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    text-align: left;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.mobile-toc-item:hover {
    background-color: var(--secondary-bg);
}

.mobile-toc-item.active {
    background-color: hsla(168, 76%, 42%, 0.12);
    color: var(--foreground);
    font-weight: 500;
}

.mobile-toc-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    border: 1px solid var(--muted-foreground);
}

.mobile-toc-item.active .mobile-toc-dot {
    background-color: var(--accent);
    border-color: var(--accent);
}


.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1rem;
}


.sidebar {
    order: 2;
    width: 100%;
    margin-top: 2rem;
}

.sidebar-sticky {
    position: sticky;
    top: 180px;
}

.sidebar-card {
    border: 1px solid var(--sidebar-border);
    border-radius: 0.375rem;
    background-color: var(--sidebar-bg);
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}


.sidebar-header {
    padding: 1rem 1rem 0.5rem;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted-foreground);
}

.sidebar-nav {
    position: relative;
    padding: 0.5rem;
    font-size: 0.875rem;
}

.sidebar-line {
    position: absolute;
    left: 10px;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 1px;
    background-color: var(--sidebar-border);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
}

.sidebar-item:hover {
    background-color: var(--secondary-bg);
}

.sidebar-item.active {
    color: var(--accent);
    font-weight: 500;
}

.sidebar-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    border: 2px solid var(--sidebar-border);
    background-color: var(--background);
}

.sidebar-item.active .sidebar-dot {
    border-color: var(--accent);
}


.main-content {
    order: 1;
    flex: 1;
}

.section {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    scroll-margin-top: 8rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    color: var(--foreground);
    position: relative;
    padding-left: 14px;

}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 60%;
  background: var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 10px hsla(168, 76%, 42%, 0.4);
}

.section-text {
    line-height: 1.75;
    margin-bottom: 1rem;
    color: var(--muted-foreground);
}

.section-list {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.75;
}



.separator {
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.promo-card {
    padding: 1.25rem;
    border-radius: 0.375rem;
    background-color: hsla(168, 76%, 42%, 0.08);
}

.cta-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--accent);
    border-radius: 0.375rem;
    background-color: hsla(168, 76%, 42%, 0.12);
}

.cta-button {
  margin-top: 1rem;
  padding: 0.6rem 1.75rem;
  border-radius: 9999px;
  border: none;
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 500;
  cursor: pointer;
}


@media (min-width: 1024px) {
    .mobile-toc-toggle {
        display: none;
    }

    .content-wrapper {
        flex-direction: row;
    }

    .sidebar {
        order: 1;
        width: 16rem;
        flex-shrink: 0;
    }

    .sidebar-card {
        display: block;
    }

    .main-content {
        order: 2;
    }
}


/* Hide sidebar completely on mobile */
@media (max-width: 1023px) {
  .sidebar {
    display: none;
  }

  .sidebar-card {
    display: none;
  }
}

