/* ═══════════════════════════════════════════════════════════════════
   tokens.css — Design Tokens
   All CSS custom properties (colors, typography, spacing, shadows,
   motion) that form the Sustalium design system.
   Mirrors the landing-page tokens.css so both sites stay in sync.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Self-hosted Brand Fonts — eliminates render-blocking Google Fonts ─── */

/* Montserrat (latin-ext) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Montserrat (latin) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Outfit (latin-ext) */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Outfit (latin) */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ── Brand palette ─────────────────────────────────────────────── */
  --color-canopy: #30ca71;
  --color-carbon: #06383e;
  --color-nautic: #00282e;
  --color-sand: #d6d4ca;
  --color-white: #ffffff;
  --color-atlantic: #020ea0;
  --color-ozone: #031fea;
  --color-sky: #315bf4;

  /* ── Surface system — derived from Nautic ──────────────────────── */
  --color-surface-950: #001419;
  --color-surface-900: #001d23;
  --color-surface-800: #002a33;
  --color-surface-700: #003844;
  --color-surface-600: #004655;

  /* ── Semantic colors ───────────────────────────────────────────── */
  --color-bg-primary: #f5f4f0;
  --color-bg-dark: var(--color-surface-900);
  --color-bg-darker: var(--color-surface-950);
  --color-text-primary: #06383e;
  --color-text-on-dark: #e8f0ee;
  --color-text-muted: rgba(6, 56, 62, 0.6);
  --color-text-muted-dark: rgba(232, 240, 238, 0.65);
  --color-text-secondary: rgba(6, 56, 62, 0.55);
  --color-accent: var(--color-canopy);
  --color-accent-hover: #3de080;
  --color-card-bg: var(--color-white);
  --color-border: rgba(6, 56, 62, 0.1);
  --color-border-dark: rgba(255, 255, 255, 0.08);

  /* ── Accent glows ──────────────────────────────────────────────── */
  --glow-accent-sm: 0 0 12px rgba(48, 202, 113, 0.12);
  --glow-accent-md: 0 0 24px rgba(48, 202, 113, 0.1), 0 0 48px rgba(48, 202, 113, 0.03);
  --glow-accent-lg: 0 0 32px rgba(48, 202, 113, 0.15), 0 0 60px rgba(48, 202, 113, 0.04);
  --glow-sky-sm: 0 0 12px rgba(49, 91, 244, 0.1);

  /* ── Typography ────────────────────────────────────────────────── */
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  /* Fluid type scale */
  --text-xs: clamp(0.6875rem, 0.65rem + 0.2vw, 0.75rem);
  --text-sm: clamp(0.75rem, 0.72rem + 0.2vw, 0.8125rem);
  --text-base: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-lg: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --text-xl: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-2xl: clamp(1.375rem, 1.15rem + 1.1vw, 1.75rem);
  --text-3xl: clamp(1.75rem, 1.35rem + 2vw, 2.5rem);
  --text-4xl: clamp(2rem, 1.4rem + 3vw, 3rem);
  --text-5xl: clamp(2.5rem, 1.6rem + 4.5vw, 4rem);

  /* Font weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* ── Spacing ───────────────────────────────────────────────────── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* ── Border radius ─────────────────────────────────────────────── */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.125rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* ── Shadows — layered, from landing page ──────────────────────── */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 24px 48px -8px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.06);

  /* ── Transitions ───────────────────────────────────────────────── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 500ms;
}

/* ═══════════════════════════════════════════════════════════════════
   mkdocs-overrides.css — MkDocs Material Variable Overrides
   Maps Sustalium design tokens to MkDocs Material's --md-* custom
   properties for both light (default) and dark (slate) color schemes.
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   Light Mode Overrides
   ───────────────────────────────────────────────────────────────── */
/* ─────────────────────────────────────────────────────────────────
   Dark Mode Overrides (Slate)
   ───────────────────────────────────────────────────────────────── */
[data-md-color-scheme="slate"] {
  /* Primary */
  --md-primary-fg-color: var(--color-canopy);
  --md-primary-fg-color--light: var(--color-accent-hover);
  --md-primary-fg-color--dark: #28b862;
  --md-primary-bg-color: var(--color-surface-950);
  --md-primary-bg-color--light: var(--color-surface-900);

  /* Accent */
  --md-accent-fg-color: var(--color-canopy);
  --md-accent-fg-color--transparent: rgba(48, 202, 113, 0.1);
  --md-accent-bg-color: rgba(48, 202, 113, 0.08);

  /* Foreground / text */
  --md-default-fg-color: var(--color-text-on-dark);
  --md-default-fg-color--light: rgba(232, 240, 238, 0.75);
  --md-default-fg-color--lighter: var(--color-text-muted-dark);
  --md-default-fg-color--lightest: rgba(232, 240, 238, 0.3);

  /* Background — deep teal surfaces, NOT generic gray */
  --md-default-bg-color: var(--color-surface-950);
  --md-default-bg-color--light: var(--color-surface-900);
  --md-default-bg-color--lighter: var(--color-surface-800);
  --md-default-bg-color--lightest: var(--color-surface-700);

  /* Typography */
  --md-typeset-color: var(--color-text-on-dark);
  --md-typeset-a-color: var(--color-canopy);

  /* Code */
  --md-code-bg-color: var(--color-surface-800);
  --md-code-fg-color: var(--color-text-on-dark);
  --md-code-hl-color: rgba(48, 202, 113, 0.15);
  --md-code-hl-number-color: #79c0ff;
  --md-code-hl-special-color: var(--color-canopy);
  --md-code-hl-function-color: #d2a8ff;
  --md-code-hl-constant-color: #79c0ff;
  --md-code-hl-keyword-color: #ff7b72;
  --md-code-hl-string-color: #a5d6ff;
  --md-code-hl-name-color: var(--color-text-on-dark);
  --md-code-hl-operator-color: rgba(232, 240, 238, 0.6);
  --md-code-hl-punctuation-color: rgba(232, 240, 238, 0.5);
  --md-code-hl-comment-color: rgba(232, 240, 238, 0.35);
  --md-code-hl-generic-color: rgba(232, 240, 238, 0.5);
  --md-code-hl-variable-color: var(--color-text-on-dark);

  /* Footer */
  --md-footer-bg-color: var(--color-surface-950);
  --md-footer-bg-color--dark: #000d11;
  --md-footer-fg-color: var(--color-text-on-dark);
  --md-footer-fg-color--light: var(--color-text-muted-dark);
  --md-footer-fg-color--lighter: rgba(232, 240, 238, 0.5);

  /* Admonition */
  --md-admonition-bg-color: rgba(255, 255, 255, 0.04);

  /* Shadow (deeper on dark) */
  --md-shadow-z1: 0 2px 4px rgba(0, 0, 0, 0.3);
  --md-shadow-z2: 0 4px 12px rgba(0, 0, 0, 0.35);
  --md-shadow-z3: 0 12px 24px rgba(0, 0, 0, 0.4);

  /* Hue override — MkDocs Material uses this for slate palette generation */
  --md-hue: 189;
}
/* ═══════════════════════════════════════════════════════════════════
   typography.css — Font Families, Headings, Body Text, Links
   Base typographic rules applied across the entire blog.
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   Base Font Size — tuned for blog readability (MkDocs Material)
   Landing page uses larger fluid tokens; blog needs tighter sizing.
   ───────────────────────────────────────────────────────────────── */
:root {
  --md-typeset-font-size: 0.8rem;
}

body,
.md-typeset {
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────────────────────────────
   Headings — Montserrat, extrabold, tight tracking
   ───────────────────────────────────────────────────────────────── */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6,
.md-header__topic,
.md-nav__title,
.md-footer__title {
  font-family: var(--font-heading);
  font-weight: var(--weight-extrabold);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.md-typeset h1 {
  font-size: 1.4rem;
  margin-bottom: var(--space-6);
  color: var(--color-text-on-dark);
}

.md-typeset h2 {
  font-size: 1.1rem;
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}

.md-typeset h3 {
  font-size: 0.95rem;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--color-text-on-dark);
}

.md-typeset h4 {
  font-size: 0.85rem;
  font-weight: var(--weight-bold);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  color: var(--color-text-muted-dark);
}

.md-typeset h5,
.md-typeset h6 {
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
  color: var(--color-text-muted-dark);
}

/* Body text — muted like landing page */
.md-typeset p,
.md-typeset li {
  color: var(--color-text-muted-dark);
}

/* Strong text — slightly brighter for emphasis */
.md-typeset strong {
  color: var(--color-text-on-dark);
}

/* Paragraph max-width for readability (only in article content, not hero/cards) */
.md-content article .md-typeset p,
.md-content__inner > .md-typeset > p {
  max-width: 65ch;
}

/* ─────────────────────────────────────────────────────────────────
   Links
   ───────────────────────────────────────────────────────────────── */
.md-typeset a {
  transition: color var(--duration-fast) var(--ease-out),
              text-decoration-color var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

[data-md-color-scheme="slate"] .md-typeset a {
  color: var(--color-canopy);
  text-decoration: underline;
  text-decoration-color: rgba(48, 202, 113, 0.3);
  text-underline-offset: 3px;
}

[data-md-color-scheme="slate"] .md-typeset a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
  text-decoration-color: rgba(48, 202, 113, 0.4);
  text-underline-offset: 3px;
}

/* Nav links and heading links should not get the content link underline */
.md-nav__link,
.md-footer__link,
.md-tabs__link,
.md-header a,
.md-typeset h1 a,
.md-typeset h2 a,
.md-typeset h3 a,
.md-typeset h4 a,
.md-typeset h5 a,
.md-typeset h6 a {
  text-decoration: none !important;
}

/* ─────────────────────────────────────────────────────────────────
   Blog Post Article Typography
   ───────────────────────────────────────────────────────────────── */
.md-content article {
  max-width: 900px;
  margin: 0 auto;
}

/* Blog post metadata */
.md-typeset .md-meta {
  color: var(--md-default-fg-color--lighter);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}

/* Blog post title — hero-sized */
.md-content__inner > article > h1:first-child {
  font-size: 1.6rem;
  font-family: var(--font-heading);
  font-weight: var(--weight-extrabold);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--md-typeset-color);
  margin-bottom: var(--space-4);
  margin-top: var(--space-8);
}

/* Blog excerpts / lead paragraph */
.md-typeset article > p:first-of-type {
  font-size: 0.9rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.65;
  margin-bottom: var(--space-8);
  max-width: 55ch;
}

/* ─────────────────────────────────────────────────────────────────
   Misc Typographic Elements
   ───────────────────────────────────────────────────────────────── */

/* Horizontal rule — signature green-to-blue gradient */
.md-typeset hr {
  border: none !important;
  height: 1px !important;
  margin: var(--space-10) 0 !important;
  background: linear-gradient(90deg, transparent, rgba(48, 202, 113, 0.3), rgba(49, 91, 244, 0.15), transparent) !important;
}

/* Blockquote */
.md-typeset blockquote {
  border-left: 4px solid var(--color-canopy);
  padding: var(--space-3) var(--space-5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

[data-md-color-scheme="slate"] .md-typeset blockquote {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-muted-dark);
}

/* Image styling */
.md-typeset img {
  border-radius: var(--radius-md);
}

/* Mark / highlight */
.md-typeset mark {
  background-color: rgba(48, 202, 113, 0.15);
  color: inherit;
  padding: 0.1em 0.3em;
  border-radius: var(--radius-sm);
}

/* Footnotes */
.md-typeset .footnote-ref {
  color: var(--color-canopy);
  font-weight: var(--weight-bold);
}

/* Definition lists */
.md-typeset dt {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
}

/* Tooltips & Abbreviations */
.md-typeset abbr {
  text-decoration-color: rgba(48, 202, 113, 0.4);
  text-underline-offset: 3px;
}

/* ─────────────────────────────────────────────────────────────────
   Selection
   ───────────────────────────────────────────────────────────────── */
::selection {
  background-color: var(--color-canopy);
  color: var(--color-nautic);
}

/* ─────────────────────────────────────────────────────────────────
   Responsive Typography
   ───────────────────────────────────────────────────────────────── */
/* Responsive overrides no longer needed — fluid clamp() handles scaling */
/* ═══════════════════════════════════════════════════════════════════
   layout.css — Header, Footer, Sidebar Navigation, Scrollbar
   Structural layout elements and their visual treatments.
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   Header / Navigation — Glassmorphism
   ───────────────────────────────────────────────────────────────── */
.md-header {
  background: rgba(0, 20, 25, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: none;
  transition: background-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

/* Light mode header — slightly different treatment */
/* Scrolled state — more opaque */
.md-header[data-md-state="shadow"] {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-md-color-scheme="slate"] .md-header[data-md-state="shadow"] {
  background-color: rgba(0, 20, 25, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.md-header__title {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
}

.md-header__topic {
  font-weight: var(--weight-bold) !important;
  font-size: var(--text-sm);
  line-height: 2.4rem !important;
}

.md-header__button.md-logo {
  display: inline-flex;
  align-items: center;
}

[data-md-color-scheme="slate"] .md-header__title {
  color: var(--color-text-on-dark);
}

/* Logo */
.md-header__button.md-logo {
  display: inline-flex;
  align-items: center;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 28px;
  width: auto;
}

/* Header nav links / tabs */
.md-tabs {
  background-color: transparent;
}

[data-md-color-scheme="slate"] .md-tabs__link {
  color: rgba(232, 240, 238, 0.7);
}

[data-md-color-scheme="slate"] .md-tabs__link:hover,
[data-md-color-scheme="slate"] .md-tabs__link--active {
  color: var(--color-white);
}

/* Nav tabs — extra.css override (landing page nav style) */
.md-tabs {
  background-color: rgba(0, 20, 25, 0.6) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

/* ─────────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────────── */
.md-footer {
  background-color: #001419 !important;
  color: var(--color-text-on-dark);
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Gradient top border — matches landing page footer */
.md-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(48, 202, 113, 0.2), rgba(49, 91, 244, 0.1), transparent);
}

.md-footer-meta {
  background-color: rgba(0, 0, 0, 0.2);
}

.md-footer__link {
  color: var(--color-text-on-dark);
  opacity: 0.9;
  transition: opacity var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.md-footer__link:hover {
  opacity: 1;
  color: var(--color-canopy);
}

/* Footer title — uppercase with letter-spacing, like landing footer col titles */
.md-footer__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(232, 240, 238, 0.6);
}

/* Copyright */
.md-copyright {
  font-size: var(--text-xs);
  color: rgba(232, 240, 238, 0.5);
}

/* Social links in footer */
.md-social__link {
  color: var(--color-text-muted-dark);
  transition: color var(--duration-fast) var(--ease-out);
}

.md-social__link:hover {
  color: var(--color-canopy);
}

/* ─────────────────────────────────────────────────────────────────
   Sidebar / Navigation
   ───────────────────────────────────────────────────────────────── */
.md-nav__link {
  font-family: var(--font-body);
  font-size: 0.6rem !important;
  transition: color var(--duration-fast) var(--ease-out);
}

.md-nav__title {
  font-size: 0.6rem !important;
}

.md-nav__item {
  padding: 0 !important;
}

.md-nav__link--active {
  font-weight: var(--weight-semibold);
}

[data-md-color-scheme="slate"] .md-nav__link--active {
  color: var(--color-canopy);
}

[data-md-color-scheme="slate"] .md-nav__link:hover {
  color: var(--color-accent-hover);
}

/* Sidebar border */
[data-md-color-scheme="slate"] .md-sidebar {
  border-right: 1px solid var(--color-border-dark);
}

/* Table of contents indicator */
.md-nav__link--index[data-md-state="active"],
.md-nav__link[data-md-state="active"] {
  color: var(--color-canopy);
}

.md-sidebar {
  scrollbar-width: thin;
  scrollbar-color: var(--color-surface-600) transparent;
}

.md-nav__link:hover {
  color: var(--color-canopy);
}

.md-nav__link--active {
  color: var(--color-canopy);
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────
   Scrollbar
   ───────────────────────────────────────────────────────────────── */

/* Webkit scrollbar (brand.css base) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

[data-md-color-scheme="slate"] ::-webkit-scrollbar-track {
  background: var(--color-surface-900);
}

::-webkit-scrollbar-thumb {
  background: rgba(48, 202, 113, 0.3);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-canopy);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 202, 113, 0.3) transparent;
}

[data-md-color-scheme="slate"] * {
  scrollbar-color: var(--color-surface-600) var(--color-surface-900);
}

/* ─────────────────────────────────────────────────────────────────
   Content Fade-in Animation
   ───────────────────────────────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.md-content {
  animation: fadeIn 0.5s var(--ease-out);
}

/* ─────────────────────────────────────────────────────────────────
   Mobile Layout — Industry-standard responsive treatment
   ───────────────────────────────────────────────────────────────── */

/* Tablet (≤960px) */
@media screen and (max-width: 60em) {
  /* Content area needs breathing room */
  .md-content__inner {
    padding: 0 1rem !important;
  }

  /* Blog post cards — more padding on tablet */
  .md-typeset .md-post,
  .md-typeset .md-post--excerpt,
  .md-typeset article.md-post {
    padding: 1.25rem !important;
    margin-bottom: 1.25rem !important;
  }
}

/* Mobile (≤719px) — primary mobile breakpoint for MkDocs Material */
@media screen and (max-width: 44.9375em) {
  /* Touch targets */
  .md-nav__link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Full-width content on mobile — no wasted horizontal space */
  .md-content__inner {
    padding: 0 0.75rem !important;
    margin: 0 !important;
  }

  /* Main grid — single column, full width */
  .md-main__inner {
    padding: 0 !important;
  }

  .md-content {
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Blog post cards — clean mobile cards */
  .md-typeset .md-post,
  .md-typeset .md-post--excerpt,
  .md-typeset article.md-post {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0.625rem !important;
  }

  /* Blog post headings — tighter on mobile */
  .md-typeset .md-post h2 {
    font-size: 1rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.5rem !important;
  }

  /* Blog post excerpt text */
  .md-typeset .md-post p {
    font-size: 0.7rem !important;
    line-height: 1.55 !important;
  }

  /* Author avatar — smaller on mobile */
  .md-post .md-post__meta .md-author img,
  .md-post__meta img[src*="avatar"],
  .md-post nav img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
  }

  /* Post meta — compact on mobile */
  .md-post .md-post__meta,
  .md-post header nav {
    font-size: 0.6rem !important;
    gap: 0.25rem !important;
    flex-wrap: wrap !important;
  }

  /* Typeset paragraph max-width — full on mobile */
  .md-typeset p {
    max-width: 100% !important;
  }

  /* Tables — horizontal scroll on mobile */
  .md-typeset__scrollwrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Footer — stack and center on mobile */
  .md-footer__inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1rem !important;
    padding: 1rem !important;
  }

  .md-footer-nav__direction {
    font-size: 0.6rem !important;
  }

  .md-footer-nav__title {
    font-size: 0.7rem !important;
  }

  /* Footer meta — stack on mobile */
  .md-footer-meta__inner {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 1rem 0.75rem !important;
  }

  /* Copyright centered */
  .md-copyright {
    text-align: center !important;
  }

  /* Social links centered */
  .md-social {
    justify-content: center !important;
  }

  /* Header — more compact on mobile */
  .md-header__title {
    font-size: 0.7rem !important;
  }

  /* Tabs — scrollable on mobile */
  .md-tabs {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .md-tabs__list {
    white-space: nowrap !important;
  }

  /* Search on mobile — full width */
  .md-search__form {
    border-radius: 0.625rem !important;
  }

  /* Sidebar on mobile — let MkDocs Material handle the drawer */
  .md-sidebar {
    border-right: none !important;
  }

  /* Pagination — compact on mobile */
  .md-typeset .md-pagination {
    gap: 0.25rem !important;
    margin: 1.5rem 0 !important;
  }

  .md-typeset .md-pagination a,
  .md-typeset .md-pagination .md-pagination__current {
    min-width: 2rem !important;
    height: 2rem !important;
    font-size: 0.65rem !important;
  }

  /* Back to top — mobile positioning */
  .md-top {
    bottom: 1rem !important;
    right: 1rem !important;
    font-size: 0.65rem !important;
    padding: 0.5rem 1rem !important;
  }
}

/* Small phones (≤375px) */
@media screen and (max-width: 23.4375em) {
  .md-content__inner {
    padding: 0 0.5rem !important;
  }

  .md-typeset .md-post,
  .md-typeset .md-post--excerpt,
  .md-typeset article.md-post {
    padding: 0.75rem !important;
    border-radius: 0.5rem !important;
  }

  .md-typeset .md-post h2 {
    font-size: 0.9rem !important;
  }
}

/* ─────────────────────────────────────────────────────────────────
   Instant Loading Progress Bar
   ───────────────────────────────────────────────────────────────── */
.md-progress {
  background-color: var(--color-canopy);
}
/* ═══════════════════════════════════════════════════════════════════
   components.css — Buttons, Admonitions, Code, Tables, Tags,
   Search, Pagination, Tabs, Tooltips, Back-to-top, and other
   reusable UI components.
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   Buttons & CTAs (brand.css base)
   ───────────────────────────────────────────────────────────────── */
.md-typeset .md-button {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: 0.8rem;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.625rem;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: all var(--duration-normal) var(--ease-out);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

/* Primary button — canopy gradient with dark nautic text */
.md-typeset .md-button--primary {
  background: linear-gradient(135deg, var(--color-canopy) 0%, #28b862 100%) !important;
  color: var(--color-nautic) !important;
  border: none !important;
  font-weight: var(--weight-bold);
  box-shadow: 0 4px 16px rgba(48, 202, 113, 0.3);
}

.md-typeset .md-button--primary:hover,
.md-typeset .md-button--primary:focus {
  background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-canopy) 100%) !important;
  color: var(--color-nautic) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(48, 202, 113, 0.4), 0 0 32px rgba(48, 202, 113, 0.15);
}

.md-typeset .md-button--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Secondary/outline button — light mode */
/* Secondary/outline button — dark mode */
[data-md-color-scheme="slate"] .md-typeset .md-button:not(.md-button--primary) {
  color: var(--color-text-on-dark);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

[data-md-color-scheme="slate"] .md-typeset .md-button:not(.md-button--primary):hover {
  border-color: rgba(48, 202, 113, 0.5);
  color: var(--color-canopy);
  background: rgba(48, 202, 113, 0.06);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────────────────
   Admonitions (brand.css base)
   ───────────────────────────────────────────────────────────────── */
.md-typeset .admonition,
.md-typeset details {
  border: none;
  border-left: 4px solid var(--color-canopy);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-6) 0;
  font-size: var(--text-base);
  box-shadow: var(--shadow-xs);
}

[data-md-color-scheme="slate"] .md-typeset .admonition,
[data-md-color-scheme="slate"] .md-typeset details {
  background-color: var(--color-surface-800);
  box-shadow: none;
}

.md-typeset .admonition-title,
.md-typeset summary {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
}

[data-md-color-scheme="slate"] .md-typeset .admonition-title,
[data-md-color-scheme="slate"] .md-typeset summary {
  color: var(--color-text-on-dark);
}

/* Admonition type variants — border color overrides */
.md-typeset .admonition.note,
.md-typeset .admonition.info {
  border-left-color: var(--color-sky);
}

.md-typeset .admonition.tip,
.md-typeset .admonition.hint {
  border-left-color: var(--color-canopy);
}

.md-typeset .admonition.warning,
.md-typeset .admonition.caution {
  border-left-color: #f59e0b;
}

.md-typeset .admonition.danger,
.md-typeset .admonition.error {
  border-left-color: #ef4444;
}

.md-typeset .admonition.success,
.md-typeset .admonition.check {
  border-left-color: var(--color-canopy);
}

/* Light-mode type-specific background tints */
/* Dark mode admonition — glass surface treatment */
[data-md-color-scheme="slate"] .md-typeset .admonition,
[data-md-color-scheme="slate"] .md-typeset details {
  background: rgba(0, 42, 51, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-md-color-scheme="slate"] .md-typeset .admonition-title,
[data-md-color-scheme="slate"] .md-typeset summary {
  background: rgba(48, 202, 113, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Dark mode admonition type border colors */
[data-md-color-scheme="slate"] .md-typeset .admonition.warning,
[data-md-color-scheme="slate"] .md-typeset details.warning {
  border-left-color: #ff9100;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.danger,
[data-md-color-scheme="slate"] .md-typeset details.danger {
  border-left-color: #ff5252;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.info,
[data-md-color-scheme="slate"] .md-typeset details.info {
  border-left-color: var(--color-sky);
}

[data-md-color-scheme="slate"] .md-typeset .admonition.abstract,
[data-md-color-scheme="slate"] .md-typeset details.abstract {
  border-left-color: #00b0ff;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.success,
[data-md-color-scheme="slate"] .md-typeset details.success {
  border-left-color: var(--color-canopy);
}

/* ─────────────────────────────────────────────────────────────────
   Code Blocks
   ───────────────────────────────────────────────────────────────── */

/* Inline code */
.md-typeset code {
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.88em;
  font-family: var(--font-mono);
}

[data-md-color-scheme="slate"] .md-typeset code {
  background-color: var(--color-surface-800);
  color: var(--color-canopy);
}

/* Fenced code blocks */
.md-typeset pre {
  border-radius: var(--radius-md);
  margin: var(--space-4) 0;
  line-height: 1.6;
}

[data-md-color-scheme="slate"] .md-typeset pre {
  background-color: var(--color-surface-800);
  border: 1px solid var(--color-border-dark);
}

/* Code block inner — reset inline-code overrides */
.md-typeset pre code {
  background: transparent;
  color: inherit;
  padding: 1em 1.2em;
  border-radius: 0;
  font-size: inherit;
  display: block;
}

/* Dark mode code — glass surface */
[data-md-color-scheme="slate"] .md-typeset pre > code {
  background: rgba(0, 20, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

[data-md-color-scheme="slate"] .md-typeset code {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
}

/* ─────────────────────────────────────────────────────────────────
   Tables
   ───────────────────────────────────────────────────────────────── */
.md-typeset table:not([class]) {
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: var(--text-base);
  border-collapse: separate;
  border-spacing: 0;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) {
  border: 1px solid var(--color-border-dark);
}

/* Table header */
.md-typeset table:not([class]) th {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  text-align: left;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background-color: var(--color-surface-800);
  color: var(--color-text-on-dark);
}

/* Table cells */
.md-typeset table:not([class]) td {
  padding: var(--space-3) var(--space-4);
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) td {
  border-top: 1px solid var(--color-border-dark);
}

/* Row hover */
[data-md-color-scheme="slate"] .md-typeset table:not([class]) tr:hover td {
  background-color: var(--color-surface-700);
}

/* Data tables inside cards */
[data-md-color-scheme="slate"] .md-typeset .md-typeset__scrollwrap {
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
}

/* ─────────────────────────────────────────────────────────────────
   Tags (brand.css base)
   ───────────────────────────────────────────────────────────────── */
.md-tag {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.025em;
  border-radius: var(--radius-full);
  padding: 0.2rem 0.7rem;
  transition: all var(--duration-fast) var(--ease-out);
}

[data-md-color-scheme="slate"] .md-tag {
  background-color: rgba(48, 202, 113, 0.1);
  color: var(--color-canopy);
  border: 1px solid rgba(48, 202, 113, 0.2);
}

[data-md-color-scheme="slate"] .md-tag:hover {
  background-color: rgba(48, 202, 113, 0.18);
  border-color: rgba(48, 202, 113, 0.35);
}

/* Category links in sidebar / post meta */
.md-typeset .md-categories__list a,
.md-typeset a[href*="category"] {
  background: rgba(48, 202, 113, 0.08);
  color: var(--color-canopy);
  border-radius: var(--radius-full);
  padding: 0.15rem 0.6rem;
  font-size: var(--text-xs);
  font-weight: 600;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
  text-decoration: none;
  border-bottom: none;
}

.md-typeset .md-categories__list a:hover,
.md-typeset a[href*="category"]:hover {
  background: rgba(48, 202, 113, 0.18);
  color: var(--color-accent-hover);
}

/* ─────────────────────────────────────────────────────────────────
   Search
   ───────────────────────────────────────────────────────────────── */

/* brand.css search base */
.md-search__input {
  border-radius: var(--radius-md);
  font-family: var(--font-body);
}

[data-md-color-scheme="slate"] .md-search__input {
  background-color: var(--color-surface-800);
  border: 1px solid var(--color-border-dark);
}

.md-search__input:focus {
  border-color: var(--color-canopy);
  box-shadow: 0 0 0 3px rgba(48, 202, 113, 0.15);
}

/* Search result styling */
.md-search-result__link:hover {
  background-color: rgba(48, 202, 113, 0.06);
}

[data-md-color-scheme="slate"] .md-search-result {
  background-color: var(--color-surface-900);
}

/* extra.css search dialog overrides */
.md-search__form {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.md-search__input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  color: var(--color-text-on-dark);
  font-family: 'Outfit', system-ui, sans-serif;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.md-search__input:focus {
  border-color: var(--color-canopy);
  box-shadow:
    0 0 0 3px rgba(48, 202, 113, 0.15),
    0 0 12px rgba(48, 202, 113, 0.08);
  background: rgba(255, 255, 255, 0.07);
}

.md-search__input::placeholder {
  color: var(--color-text-muted-dark);
}

/* Search output / results panel */
.md-search__output {
  background: rgba(0, 20, 25, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.md-search-result__link {
  border-radius: var(--radius-md);
  transition: background var(--duration-fast) var(--ease-out);
}

.md-search-result__link:hover {
  background: rgba(48, 202, 113, 0.08);
}

.md-search-result__teaser mark {
  background: rgba(48, 202, 113, 0.2);
  color: var(--color-canopy);
}

/* Light mode search (extra.css) */
/* ─────────────────────────────────────────────────────────────────
   Pagination
   ───────────────────────────────────────────────────────────────── */
.md-typeset .md-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin: 2rem 0;
}

.md-typeset .md-pagination a,
.md-typeset .md-pagination .md-pagination__current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted-dark);
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

.md-typeset .md-pagination a:hover {
  background: rgba(48, 202, 113, 0.1);
  border-color: rgba(48, 202, 113, 0.3);
  color: var(--color-canopy);
  transform: translateY(-1px);
}

/* Active page */
.md-typeset .md-pagination .md-pagination__current {
  background: var(--color-canopy);
  color: var(--color-carbon);
  border-color: var(--color-canopy);
  font-weight: 700;
}

/* Light mode pagination */
/* ─────────────────────────────────────────────────────────────────
   Content Tabs
   ───────────────────────────────────────────────────────────────── */
.md-typeset .tabbed-labels > label {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.md-typeset .tabbed-labels > label:hover {
  color: var(--color-canopy);
}

/* Content tab indicator */
.md-typeset .tabbed-labels > label.tabbed-labels__active,
.md-typeset .tabbed-set > input:checked + label {
  border-color: var(--color-canopy);
}

/* ─────────────────────────────────────────────────────────────────
   Tooltips
   ───────────────────────────────────────────────────────────────── */
.md-tooltip {
  border-radius: var(--radius-md);
  font-family: var(--font-body);
}

[data-md-color-scheme="slate"] .md-tooltip {
  background: var(--color-surface-800);
  border: 1px solid var(--color-border-dark);
  box-shadow: var(--shadow-lg);
}

/* ─────────────────────────────────────────────────────────────────
   Back-to-top Button
   ───────────────────────────────────────────────────────────────── */
.md-top {
  background-color: var(--color-canopy);
  color: var(--color-carbon);
  border-radius: var(--radius-full);
  font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-out);
}

.md-top:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--glow-accent-sm);
}

/* ─────────────────────────────────────────────────────────────────
   Keyboard Keys
   ───────────────────────────────────────────────────────────────── */
.md-typeset kbd {
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

[data-md-color-scheme="slate"] .md-typeset kbd {
  background: var(--color-surface-800);
  border-color: var(--color-border-dark);
  color: var(--color-text-on-dark);
  box-shadow: 0 1px 0 var(--color-surface-700);
}

/* ─────────────────────────────────────────────────────────────────
   Announcement Bar / Banner
   ───────────────────────────────────────────────────────────────── */

/* brand.css banner */
.md-banner {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

[data-md-color-scheme="slate"] .md-banner {
  background: rgba(48, 202, 113, 0.06);
  color: var(--color-text-on-dark);
  border-bottom: 1px solid rgba(48, 202, 113, 0.1);
}

/* extra.css banner overrides */
.md-banner {
  background-color: var(--color-canopy);
  color: var(--color-carbon);
}

.md-banner__inner {
  font-weight: 700;
  font-size: var(--text-sm);
}

.md-banner a {
  color: var(--color-carbon);
  text-decoration: underline;
  text-decoration-color: rgba(6, 56, 62, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--duration-fast) var(--ease-out);
}

.md-banner a:hover {
  text-decoration-color: var(--color-carbon);
}

/* ─────────────────────────────────────────────────────────────────
   Version Selector & Source Link
   ───────────────────────────────────────────────────────────────── */
.md-version {
  font-family: var(--font-body);
}

[data-md-color-scheme="slate"] .md-version__current {
  color: var(--color-text-muted-dark);
}

.md-source {
  font-family: var(--font-body);
  font-size: var(--text-xs);
}

.md-source:hover {
  opacity: 0.85;
}

/* ─────────────────────────────────────────────────────────────────
   Focus Visible (Accessibility)
   ───────────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-canopy);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════════════
   pages.css — Page-specific Styles
   Homepage hero, feature cards, hexagon animations, blog post cards,
   CTA sections, post verified date, and page-level responsive rules.
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   Homepage Hero Section
   ───────────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  text-align: center;
  padding: clamp(4rem, 3rem + 5vw, 7rem) 1.5rem clamp(3rem, 2rem + 4vw, 5rem);
  margin-bottom: 2rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(48, 202, 113, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--color-surface-950) 0%, var(--color-surface-900) 100%);
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* Ambient glow orbs — canopy green */
.hero-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -25%;
  right: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48, 202, 113, 0.06) 0%, transparent 70%);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: heroOrbGreen 28s ease-in-out infinite;
}

/* Ambient glow orbs — sky blue */
.hero-section::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  bottom: -20%;
  left: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 91, 244, 0.04) 0%, transparent 70%);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: heroOrbBlue 28s ease-in-out infinite;
  animation-delay: -14s;
}

@keyframes heroOrbGreen {
  0%, 100% { opacity: 0.04; transform: translate(0, 0) scale(1); }
  25%      { opacity: 0.06; transform: translate(30px, -20px) scale(1.1); }
  50%      { opacity: 0.03; transform: translate(-20px, 15px) scale(0.95); }
  75%      { opacity: 0.05; transform: translate(15px, 25px) scale(1.05); }
}

@keyframes heroOrbBlue {
  0%, 100% { opacity: 0.03; transform: translate(0, 0) scale(1); }
  25%      { opacity: 0.05; transform: translate(-25px, 15px) scale(1.08); }
  50%      { opacity: 0.03; transform: translate(15px, -20px) scale(0.92); }
  75%      { opacity: 0.04; transform: translate(-10px, -15px) scale(1.04); }
}

/* Hero content sits above orbs */
.hero-section > * {
  position: relative;
  z-index: 1;
}

/* Hero — center ALL children including paragraphs and buttons */
.hero-section p {
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* Hero buttons row — flex centered */
.hero-section p:has(.md-button) {
  display: flex !important;
  gap: 1rem !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  max-width: none !important;
}

/* Hero buttons — landing-page style */
.hero-section .md-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  padding: 0.875rem 2rem !important;
  border-radius: var(--radius-xl) !important;
  text-decoration: none !important;
  letter-spacing: 0.01em !important;
}

/* Hero primary button — white text on green gradient (like landing) */
.hero-section .md-button--primary {
  background: linear-gradient(135deg, var(--color-canopy) 0%, #28b862 100%) !important;
  color: var(--color-nautic) !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(48, 202, 113, 0.3) !important;
}

.hero-section .md-button--primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(48, 202, 113, 0.4), 0 0 32px rgba(48, 202, 113, 0.15) !important;
}

/* Hero outline button */
.hero-section .md-button:not(.md-button--primary) {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--color-text-on-dark) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
}

.hero-section .md-button:not(.md-button--primary):hover {
  border-color: rgba(48, 202, 113, 0.5) !important;
  color: var(--color-canopy) !important;
  background: rgba(48, 202, 113, 0.06) !important;
  transform: translateY(-1px) !important;
}

/* Hero title — gradient text */
.hero-section h1 {
  font-size: clamp(1.75rem, 1.35rem + 2vw, 2.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 1rem !important;
  background: linear-gradient(135deg, #30ca71 0%, rgba(48, 202, 113, 0.6) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-wrap: balance;
}

/* Hero tagline */
.hero-section .tagline {
  font-size: 0.9rem;
  color: rgba(232, 240, 238, 0.65) !important;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* Hero subtitle/paragraph text — muted like landing page */
.hero-section p {
  color: rgba(232, 240, 238, 0.65) !important;
}

.hero-section p strong {
  color: var(--color-text-on-dark) !important;
  -webkit-text-fill-color: var(--color-text-on-dark) !important;
}

/* ─────────────────────────────────────────────────────────────────
   Feature Cards Grid (Homepage)
   ───────────────────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
  margin: 1.5rem 0;
}

@media (max-width: 1200px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Glass-morphism feature card */
a.feature-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: var(--radius-lg);
  padding: clamp(0.875rem, 0.75rem + 0.5vw, 1.25rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    border-color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    background var(--duration-normal) var(--ease-out);
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}

a.feature-card:hover {
  border-color: var(--color-canopy);
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(48, 202, 113, 0.15),
    0 0 24px rgba(48, 202, 113, 0.08);
  background: rgba(255, 255, 255, 0.07);
}

/* Dark mode feature cards */
[data-md-color-scheme="slate"] a.feature-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-md-color-scheme="slate"] a.feature-card:hover {
  border-color: var(--color-canopy);
  background: rgba(255, 255, 255, 0.06);
}

/* Light mode feature cards — glass on light bg */
/* ─────────────────────────────────────────────────────────────────
   Feature Card Icons — Hexagon with Canopy Green
   ───────────────────────────────────────────────────────────────── */
.feature-card .feature-icon {
  position: relative;
  width: 48px;
  height: 52px;
  margin-bottom: 0.75rem;
}

.feature-card .hexagon-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 52px;
}

.feature-card .hex-static {
  fill: none;
  stroke: rgba(48, 202, 113, 0.25);
  stroke-width: 1.5;
}

.feature-card .hex-glow {
  fill: none;
  stroke: var(--color-canopy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 180;
  stroke-dashoffset: 0;
  filter:
    drop-shadow(0 0 4px rgba(48, 202, 113, 0.6))
    drop-shadow(0 0 8px rgba(48, 202, 113, 0.3));
  animation: hexTravel 8s linear infinite;
}

.feature-card:nth-child(1) .hex-glow { animation-delay: 0s; }
.feature-card:nth-child(2) .hex-glow { animation-delay: 2s; }
.feature-card:nth-child(3) .hex-glow { animation-delay: 4s; }
.feature-card:nth-child(4) .hex-glow { animation-delay: 6s; }

@keyframes hexTravel {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -188; }
}

.feature-card .inner-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  color: var(--color-canopy);
  filter: drop-shadow(0 0 3px rgba(48, 202, 113, 0.4));
  transition: filter var(--duration-normal) var(--ease-out);
}

.feature-card:hover .inner-icon {
  filter:
    drop-shadow(0 0 6px rgba(48, 202, 113, 0.7))
    drop-shadow(0 0 12px rgba(48, 202, 113, 0.35));
}

.feature-card:hover .hex-glow {
  filter:
    drop-shadow(0 0 8px rgba(48, 202, 113, 0.8))
    drop-shadow(0 0 16px rgba(48, 202, 113, 0.4));
}

.feature-card h3 {
  color: var(--color-canopy);
  margin: 0 0 0.5rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--color-text-muted-dark);
  margin: 0;
  flex-grow: 1;
  font-size: 0.7rem;
  line-height: 1.5;
}

.feature-card .feature-arrow {
  color: var(--color-canopy);
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
  margin-top: 1rem;
  font-size: 1.2rem;
}

a.feature-card:hover .feature-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ─────────────────────────────────────────────────────────────────
   Blog Post Cards / Excerpts
   ───────────────────────────────────────────────────────────────── */

/* brand.css blog post cards */
.md-typeset .blog-post-card {
  background: var(--md-default-bg-color);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--duration-normal) var(--ease-out);
  margin-bottom: var(--space-6);
}

[data-md-color-scheme="slate"] .md-typeset .blog-post-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-border-dark);
}

.md-typeset .blog-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(48, 202, 113, 0.2);
}

/* Blog post excerpt cards — glass treatment */
article.md-post,
article.md-post--excerpt,
.md-typeset .md-post,
.md-typeset .md-post--excerpt,
.md-typeset article.md-post {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-lg) !important;
  padding: clamp(1.25rem, 1rem + 0.8vw, 1.75rem) !important;
  margin-bottom: 1.5rem !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition:
    border-color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    background var(--duration-normal) var(--ease-out);
}

/* Top-edge gradient glow on each card */
article.md-post::before,
article.md-post--excerpt::before,
.md-typeset .md-post::before,
.md-typeset .md-post--excerpt::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(48, 202, 113, 0.35), rgba(49, 91, 244, 0.15), transparent) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

article.md-post:hover,
article.md-post--excerpt:hover,
.md-typeset .md-post:hover,
.md-typeset .md-post--excerpt:hover {
  border-color: rgba(48, 202, 113, 0.4) !important;
  transform: translateY(-3px);
  box-shadow:
    0 12px 32px rgba(48, 202, 113, 0.12),
    0 0 24px rgba(48, 202, 113, 0.06) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Light mode blog cards */
/* Blog post headings link color */
.md-typeset .md-post h2 a,
.md-typeset article.md-post h2 a {
  color: var(--color-text-on-dark) !important;
  text-decoration: none !important;
}

.md-typeset .md-post h2 a:hover,
.md-typeset article.md-post h2 a:hover {
  color: var(--color-canopy) !important;
}

/* Blog post heading size within cards */
.md-typeset .md-post h2,
.md-typeset article.md-post h2 {
  font-size: 0.95rem !important;
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
}

/* Blog post card body text */
.md-typeset .md-post p,
.md-typeset article.md-post p {
  font-size: 0.72rem !important;
  max-width: none !important;
  color: var(--color-text-muted-dark) !important;
}

/* Blog post card metadata */
.md-typeset .md-post .md-post__meta,
.md-typeset .md-post header nav,
.md-typeset article.md-post .md-post__meta {
  font-size: 0.62rem !important;
}

/* Continue reading link styling */
.md-typeset .md-post nav a,
.md-typeset article.md-post nav a {
  color: var(--color-canopy) !important;
  font-weight: 600;
  font-size: 0.7rem !important;
}

/* Light mode blog post text */
/* ─────────────────────────────────────────────────────────────────
   Post Verified Date
   ───────────────────────────────────────────────────────────────── */
.post-verified-date {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-muted-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding: 0;
  border: none;
}

/* ─────────────────────────────────────────────────────────────────
   CTA Divider
   ───────────────────────────────────────────────────────────────── */
.cta-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(48, 202, 113, 0.3), transparent);
  margin: 3rem 0 0;
}

/* ─────────────────────────────────────────────────────────────────
   CTA Glass Card
   ───────────────────────────────────────────────────────────────── */
.cta-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(48, 202, 113, 0.12);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem) clamp(1.25rem, 1rem + 1.5vw, 2rem);
  margin-top: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle top-edge glow */
.cta-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(48, 202, 113, 0.35), transparent);
}

/* Light mode glass */
.cta-glass__header {
  margin-bottom: 2rem;
}

/* Gradient text on the CTA title */
.cta-glass__title {
  margin-top: 0;
  font-size: 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-canopy) 0%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.cta-glass__subtitle {
  max-width: 700px;
  margin: 0.5rem auto 0;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--color-text-muted-dark);
}

/* ─────────────────────────────────────────────────────────────────
   CTA Keyword Directory Grid
   ───────────────────────────────────────────────────────────────── */
.cta-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  font-size: 0.7rem;
  text-align: left;
  margin-bottom: 2rem;
}

.cta-directory__col {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-dark);
  transition:
    border-color var(--duration-normal) var(--ease-out),
    background var(--duration-normal) var(--ease-out);
}

.cta-directory__col:hover {
  border-color: rgba(48, 202, 113, 0.3);
  background: rgba(48, 202, 113, 0.04);
}

.cta-directory__heading {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-canopy);
  margin-bottom: 0.625rem;
}

.cta-directory__list {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.7;
  color: var(--color-text-muted-dark);
}

.cta-directory__list li::before {
  content: '\2022';
  color: var(--color-canopy);
  display: inline-block;
  width: 1em;
  margin-left: -0.25em;
  opacity: 0.5;
}

/* ─────────────────────────────────────────────────────────────────
   CTA Buttons (landing-page style)
   ───────────────────────────────────────────────────────────────── */
.cta-glass__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.cta-glass__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-xl);
  transition:
    all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  letter-spacing: 0.01em;
  position: relative;
}

.cta-glass__actions .btn--lg {
  padding: 0.875rem 2rem;
  font-size: 0.8rem;
}

.cta-glass__actions .btn--primary {
  background: linear-gradient(135deg, var(--color-canopy) 0%, #28b862 100%);
  color: var(--color-nautic) !important;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(48, 202, 113, 0.3);
}

.cta-glass__actions .btn--primary:hover {
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    var(--glow-accent-sm);
  transform: translateY(-2px);
}

.cta-glass__actions .btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cta-glass__actions .btn--outline {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--color-text-on-dark);
  border-color: rgba(255, 255, 255, 0.15);
}

.cta-glass__actions .btn--outline:hover {
  border-color: rgba(48, 202, 113, 0.5);
  color: var(--color-canopy);
  background-color: rgba(48, 202, 113, 0.06);
  transform: translateY(-1px);
}

/* Light mode buttons */
/* Mobile touch targets */
@media (max-width: 767px) {
  .cta-glass__actions .btn--lg {
    min-height: 44px;
    width: 100%;
  }
}

/* ─────────────────────────────────────────────────────────────────
   CTA Contact Line
   ───────────────────────────────────────────────────────────────── */
.cta-glass__contact {
  margin-top: 1.5rem;
  font-size: 0.7rem;
  color: var(--color-text-muted-dark);
}

.cta-glass__contact a {
  color: var(--color-canopy);
  font-weight: 600;
  border-bottom: none;
}

.cta-glass__contact a:hover {
  color: var(--color-accent-hover);
}

/* ─────────────────────────────────────────────────────────────────
   Page-level Responsive Rules
   ───────────────────────────────────────────────────────────────── */

/* Tablet (≤960px) */
@media (max-width: 960px) {
  .hero-section {
    padding: clamp(3rem, 2rem + 4vw, 5rem) 1.25rem clamp(2rem, 1.5rem + 3vw, 3.5rem);
  }

  .hero-section h1 {
    font-size: var(--text-4xl) !important;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
  .hero-section {
    padding: 2rem 1rem 1.5rem;
    border-radius: 0;
    margin-bottom: 1rem;
  }

  .hero-section h1 {
    font-size: var(--text-2xl) !important;
    line-height: 1.15 !important;
    margin-bottom: 0.75rem !important;
  }

  .hero-section p {
    font-size: var(--text-sm) !important;
    line-height: 1.5 !important;
  }

  .hero-section .tagline {
    font-size: var(--text-base);
    margin-bottom: 1.5rem;
  }

  /* Hero buttons — stack vertically on mobile */
  .hero-section .md-button,
  .hero-section a.md-button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    min-height: 44px !important;
  }

  /* Disable ambient orbs on mobile for performance */
  .hero-section::before,
  .hero-section::after {
    display: none;
  }

  /* Feature cards — single column on mobile */
  .feature-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    margin: 1rem 0 !important;
  }

  a.feature-card {
    padding: 1rem !important;
  }

  .feature-card .feature-icon {
    width: 40px !important;
    height: 44px !important;
    margin-bottom: 0.5rem !important;
  }

  .feature-card h3 {
    font-size: var(--text-sm) !important;
    margin-bottom: 0.25rem !important;
  }

  .feature-card p {
    font-size: var(--text-xs) !important;
    line-height: 1.45 !important;
  }

  /* CTA Glass — mobile-friendly */
  .cta-glass {
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem !important;
    margin-top: 1.5rem;
  }

  .cta-glass__header {
    margin-bottom: 1.25rem;
  }

  .cta-glass__title {
    font-size: var(--text-lg) !important;
  }

  .cta-glass__subtitle {
    font-size: var(--text-sm) !important;
    line-height: 1.5 !important;
  }

  /* CTA directory grid — 2 columns on mobile */
  .cta-directory {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .cta-directory__col {
    padding: 0.625rem;
  }

  .cta-directory__heading {
    font-size: 0.6rem !important;
    margin-bottom: 0.4rem;
  }

  .cta-directory__list {
    font-size: 0.6rem !important;
    line-height: 1.5;
  }

  /* CTA buttons — full width on mobile */
  .cta-glass__actions {
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
  }

  .cta-glass__actions .btn--lg {
    width: 100% !important;
    padding: 0.875rem 1.5rem !important;
    font-size: var(--text-base) !important;
    min-height: 44px !important;
  }

  .cta-glass__contact {
    font-size: var(--text-xs) !important;
    margin-top: 1rem !important;
  }

  /* Post verified date */
  .post-verified-date {
    font-size: 0.6rem !important;
    margin-bottom: 1rem !important;
  }

  /* CTA divider */
  .cta-divider {
    margin: 2rem 0 0 !important;
  }
}

/* Small phones (≤400px) */
@media (max-width: 400px) {
  .hero-section h1 {
    font-size: var(--text-xl) !important;
  }

  .cta-directory {
    grid-template-columns: 1fr;
  }

  .feature-card .feature-icon {
    width: 36px !important;
    height: 40px !important;
  }
}

/* ─────────────────────────────────────────────────────────────────
   Reduced Motion
   ───────────────────────────────────────────────────────────────── */
@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;
  }

  .hero-section::before,
  .hero-section::after {
    animation: none;
    opacity: 0.03;
  }

  .md-content {
    animation: none;
  }

  .feature-card .hex-glow {
    animation: none;
  }
}

/* ─────────────────────────────────────────────────────────────────
   Print Styles
   ───────────────────────────────────────────────────────────────── */
@media print {
  .md-header,
  .md-footer,
  .md-sidebar,
  .md-tabs,
  .md-top,
  .md-banner {
    display: none !important;
  }

  .md-typeset {
    font-size: 11pt;
    color: #000;
  }

  .md-typeset h1,
  .md-typeset h2,
  .md-typeset h3 {
    color: #000;
    page-break-after: avoid;
  }

  .md-typeset a {
    color: #000;
    text-decoration: underline;
  }

  .md-typeset pre,
  .md-typeset code {
    border: 1px solid #ccc;
    background: #f8f8f8;
  }

  .md-typeset table {
    page-break-inside: avoid;
  }

  .md-content article {
    max-width: 100%;
  }

  .hero-section {
    background: none;
    padding: 1rem 0;
  }

  .hero-section::before,
  .hero-section::after {
    display: none;
  }

  .hero-section h1 {
    -webkit-text-fill-color: initial;
    color: #06383e;
  }
}

/* Hide heading permalink icons while keeping anchors functional */
.md-content__anchor {
  display: none;
}

.headerlink {
  display: none !important;
}
