:root {
  --font-family-base: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --color-text-primary: #1f2933;
  --color-text-secondary: #4c5662;
  --color-text-muted: #7a8796;
  --color-surface: rgba(255, 255, 255, 0.86);
  --color-border: rgba(208, 213, 221, 0.7);
  --color-teal-500: #0f9d8a;
  --color-teal-400: #35b6a6;
  --color-teal-50: #e4f5f2;
  --color-amber-400: #f7c27d;
  --color-amber-50: #fff3df;
  --color-slate-50: #f6f7f4;
  --shadow-soft: 0 20px 45px rgba(15, 53, 62, 0.08);
  --shadow-inner: inset 0 1px 4px rgba(15, 53, 62, 0.08);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --max-width-content: 1100px;
  --transition-base: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  color: var(--color-text-primary);
  background: linear-gradient(180deg, #f7fcfa 0%, #fbf9f5 35%, #f6f7f4 100%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.toc-open {
  overflow: hidden;
}

body.toc-pinned {
  overflow: auto;
}

a {
  color: var(--color-teal-500);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--color-teal-400);
  text-decoration: underline;
  text-decoration-color: rgba(15, 157, 138, 0.2);
  text-underline-offset: 0.3em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(15, 157, 138, 0.55);
  outline-offset: 3px;
  border-radius: 999px;
}

.hero {
  position: relative;
  padding: 7rem 1.5rem 6rem;
  overflow: hidden;
}

.hero-content {
  max-width: var(--max-width-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin: 0;
  color: #0f172a;
}

.hero-copy {
  max-width: 640px;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}

.eyebrow {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-teal-500);
}

.hero-toggle {
  position: fixed;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 1px solid rgba(15, 157, 138, 0.35);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  color: var(--color-teal-500);
  box-shadow: 0 12px 30px rgba(15, 157, 138, 0.16);
  transition: transform var(--transition-base), background var(--transition-base);
  z-index: 50;
}

.hero-toggle:hover {
  transform: translate(-2px, -50%);
  background: rgba(228, 245, 242, 0.98);
}

@media (max-width: 1023px) {
  .hero-toggle {
    top: auto;
    bottom: 2rem;
    left: 1rem;
    transform: none;
  }

  .hero-toggle:hover {
    transform: translateY(-2px);
  }
}

.hero-auras .aura {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.55;
}

.aura-teal {
  width: 22rem;
  height: 22rem;
  right: -6rem;
  bottom: -10rem;
  background: rgba(15, 157, 138, 0.35);
}

.aura-amber {
  width: 18rem;
  height: 18rem;
  left: -8rem;
  top: -6rem;
  background: rgba(247, 194, 125, 0.35);
}

.toc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 24, 45, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base);
  z-index: 30;
}

.toc-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.toc {
  display: flex;            
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(20rem, 86vw);
  padding: 3rem 2rem 3rem;
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid rgba(208, 213, 221, 0.6);
  box-shadow: var(--shadow-soft);
  transform: translateX(-110%);
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 40;
  pointer-events: none;
  overflow: hidden;       
}


.toc-header,
.toc-header-controls {
  position: relative;      
  z-index: 1;
}


.toc-nav {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
  padding-bottom: 2rem;
  overflow-y: auto; 
  flex: 1;                  
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 157, 138, 0.35) rgba(228, 245, 242, 0.4);
}

.toc-nav::-webkit-scrollbar {
  width: 6px;
}

.toc-nav::-webkit-scrollbar-track {
  background: rgba(228, 245, 242, 0.4);
  border-radius: 999px;
}

.toc-nav::-webkit-scrollbar-thumb {
  background: rgba(15, 157, 138, 0.45);
  border-radius: 999px;
}

.toc.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

.toc.is-pinned {
  transform: translateX(0);
  pointer-events: auto;
}

#open-toc-btn {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

#open-toc-btn:not(.is-visible) {
  opacity: 0;
}

@media (min-width: 1024px) {
  .toc {
    top: 0;
    height: 100vh;
    padding: 5rem 2.5rem 3rem;
    border-radius: 0 24px 24px 0;
  }

  .toc.is-pinned {
    position: fixed;
    top: 0;
    height: 100vh;
  }
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  padding-bottom: 1rem;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1;
}

.toc-header h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--color-teal-500);
}

.toc-header-controls {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: sticky;
  top: 2.8rem;
  padding-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1;
}

.toc-close,
.toc-pin {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.3rem 1rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.9);
  transition: background var(--transition-base), border var(--transition-base);
}

.toc-pin[aria-pressed="true"] {
  border-color: rgba(15, 157, 138, 0.35);
  color: var(--color-teal-500);
  background: rgba(228, 245, 242, 0.85);
}


.toc-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.85);
  text-align: left;
  transition: border var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  color: var(--color-text-secondary);
}

.toc-item:hover {
  border-color: rgba(15, 157, 138, 0.18);
  background: rgba(228, 245, 242, 0.65);
}

.toc-item.active {
  border-color: rgba(15, 157, 138, 0.35);
  background: rgba(15, 157, 138, 0.08);
  box-shadow: 0 10px 30px rgba(15, 157, 138, 0.12);
  color: var(--color-text-primary);
}

.toc-number {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-teal-500);
  align-self: center;
}

.toc-text strong {
  display: block;
  font-weight: 600;
  color: var(--color-text-primary);
}

.toc-text small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.toc-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.5rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 157, 138, 0.25);
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-teal-500);
  font-weight: 600;
  box-shadow: 0 16px 30px rgba(15, 157, 138, 0.14);
  transition: transform var(--transition-base), background var(--transition-base);
  z-index: 35;
}

.toc-fab:hover {
  transform: translateY(-2px);
  background: rgba(228, 245, 242, 0.92);
}

@media (min-width: 1024px) {
  .toc-fab {
    display: none;
  }
}

.content {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 1.5rem 7rem;
}

body.toc-open .content,
body.toc-open .hero-content,
body.toc-pinned .content,
body.toc-pinned .hero-content {
  transition: margin var(--transition-base);
}

@media (min-width: 1024px) {
  body.toc-open .content,
  body.toc-open .hero-content,
  body.toc-pinned .content,
  body.toc-pinned .hero-content {
    margin-left: 19rem;
  }

  body.toc-open .hero-toggle,
  body.toc-pinned .hero-toggle {
    left: calc(19rem + 1rem);
  }
}

.section-card {
  margin-top: 3.5rem;
  display: grid;
  gap: 2rem;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  scroll-margin-top: 6.5rem;
}

.section-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-teal-500);
}

.section-card h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1.15;
  color: #142032;
}

.section-copy p {
  margin: 0;
  color: var(--color-text-secondary);
}

.section-highlights,
.section-steps,
.section-resources {
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(15, 157, 138, 0.18);
  background: rgba(228, 245, 242, 0.55);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-inner);
}

.section-steps {
  border-color: rgba(247, 194, 125, 0.35);
  background: rgba(255, 243, 223, 0.65);
}

.section-resources {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(248, 249, 251, 0.75);
}

.section-highlights-title,
.section-steps-title,
.section-resources-title {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  font-weight: 700;
}

.section-highlights ul,
.section-resources ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.section-highlights li,
.section-resources li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--color-text-secondary);
}

.section-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--color-teal-400);
}

.section-steps ol {
  margin: 1rem 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  color: var(--color-text-secondary);
}

.section-resources li a {
  font-weight: 600;
}

.section-resources li p {
  margin: 0.35rem 0 0;
  color: var(--color-text-muted);
}

.section-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 6px rgba(15, 53, 62, 0.08);
}

.section-media figcaption {
  font-size: 0.75rem;
  padding: 0.9rem 1.2rem;
  color: var(--color-text-muted);
}

.section-media a {
  color: inherit;
}

@media (min-width: 768px) {
  .section-card {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: stretch;
  }
}

@media (max-width: 767px) {
  .section-card {
    padding: 2rem 1.5rem;
  }

  .hero {
    padding-top: 6rem;
  }
}

@media (max-width: 599px) {
  .toc {
    width: min(88vw, 18rem);
  }

  .section-card {
    padding: 1.85rem 1.4rem;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
