:root {
  --primary-color: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --secondary-color: #10b981;
  --secondary-dark: #059669;
  --secondary-light: #34d399;
  --accent-color: #f59e0b;
  --accent-gold: #fbbf24;
  --primary-green: #2d6a4f;
  --success-color: #22c55e;
  --success-bg: #f0fdf4;
  --success-light: #4ade80;
  --success-muted: #86efac;
  --danger-color: #ef4444;
  --danger-bg: #fef2f2;
  --danger-light: #f87171;
  --danger-muted: #fca5a5;
  --warning-color: #f59e0b;
  --warning-bg: #fffbeb;
  --warning-light: #fbbf24;
  --info-color: #0ea5e9;
  --info-bg: rgba(14, 165, 233, 0.1);
  --background-color: #080808;
  --nav-foot-bg-color: #111;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-bg-hover: rgba(255, 255, 255, 0.05);
  --bg-light: #f8fafc;
  --bg-white: #fff;
  --text-color: #e2eaf1;
  --text-muted: #a0aec0;
  --text-light: #64748b;
  --text-dim: #718096;
  --text-dark: #1e293b;
  --text-medium: #475569;
  --nav-foot-text-color: #e2eaf1;
  --white: #fff;
  --border-color: rgba(255, 255, 255, 0.1);
  --card-border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.05);
  --box-shadow-color: rgba(243, 139, 3, 0.8);
  --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
  --gradient-primary-soft: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.15) 0%,
    rgba(16, 185, 129, 0.15) 100%
  );
  --gradient-primary-hover: linear-gradient(135deg, #0284c7 0%, #059669 100%);
  --accent-gradient: linear-gradient(135deg, var(--primary-color), #a855f7);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.3);
  --shadow-glow-strong: 0 0 40px rgba(14, 165, 233, 0.4);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s ease;
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-fixed: 1000;
  --z-modal: 10000;
  --z-tooltip: 99999;
  --header-height: 70px;
  --max-width: 1200px;
  --article-max-width: 1000px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  font-family:
    Roboto,
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    Oxygen,
    Ubuntu,
    sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  max-width: 100%;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
  text-transform: capitalize;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
img[loading="lazy"] {
  aspect-ratio: auto;
}
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}
::selection {
  background: rgb(14 165 233 / 0.3);
  color: var(--text-color);
}
::-moz-selection {
  background: rgb(14 165 233 / 0.3);
  color: var(--text-color);
}
.header {
  position: fixed;
  width: 100%;
  min-height: 70px;
  background-color: var(--nav-foot-bg-color);
  top: 0;
  z-index: 99999;
  border-bottom: 1px solid rgb(255 255 255/0.05);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}
.logo {
  font-size: 1rem;
  color: var(--primary-color);
  padding-left: 20px;
}
.logo img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: contain;
}
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 50px;
  height: 24px;
  padding-right: 20px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
}
.hamburger .line {
  height: 4px;
  width: 30px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}
.hamburger.active .line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger.active .line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}
.nav__link {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background-color: var(--background-color);
  z-index: 1000;
  padding: 10px 15px;
  border-bottom: 1px solid rgb(255 255 255/0.1);
}
.nav__link a {
  display: block;
  text-align: center;
  padding: 10px 0;
  font-weight: 500;
}
.nav__link a:focus,
.nav__link a:hover {
  background-color: var(--box-shadow-color);
  border-radius: 10px;
  margin: 0 5px;
}
.hide {
  display: none;
}
@media screen and (min-width: 600px) {
  .nav {
    background-color: var(--nav-foot-bg-color);
    display: flex;
    align-items: center;
    padding: 10px 30px;
  }
  .nav__link {
    display: flex;
    align-items: center;
    position: static;
    width: auto;
    margin-right: 20px;
    background: none;
    transform: none;
    left: auto;
    top: auto;
    gap: 5px;
    border-bottom: none;
    padding: 0;
  }
  .nav__link a {
    display: inline-block;
    padding: 10px 16px;
  }
  .nav__link a:focus,
  .nav__link a:hover {
    background-color: var(--box-shadow-color);
    border-radius: 10px;
    margin: 0;
  }
  .hamburger {
    display: none;
  }
}
@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, -40px) scale(1.1);
  }
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  z-index: var(--z-tooltip);
  transition: top 0.3s ease;
}
.skip-link:focus {
  top: 0;
}
nav[aria-label="Breadcrumb"] {
  margin-top: calc(var(--header-height) + 0.25rem);
  padding: 0.75rem 1.5rem;
  background: linear-gradient(
    to right,
    rgb(14 165 233 / 0.05),
    rgb(16 185 129 / 0.05)
  );
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  max-width: 100vw;
  line-height: normal;
}
nav[aria-label="Breadcrumb"]::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}
nav[aria-label="Breadcrumb"]:hover::before {
  transform: scaleX(1);
}
nav[aria-label="Breadcrumb"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  max-width: var(--article-max-width);
  padding: 1rem 0;
  margin: 0.5rem auto;
  font-size: 0.9rem;
}
nav[aria-label="Breadcrumb"] li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
nav[aria-label="Breadcrumb"] li:not(:last-child)::after {
  content: "›";
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 300;
}
nav[aria-label="Breadcrumb"] a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: capitalize;
}
nav[aria-label="Breadcrumb"] a:hover,
nav[aria-label="Breadcrumb"] a:focus {
  color: var(--primary-light);
  background: rgb(14 165 233 / 0.1);
}
nav[aria-label="Breadcrumb"] li[aria-current="page"] {
  color: var(--text-color);
  font-weight: 500;
}
@media (max-width: 600px) {
  nav[aria-label="Breadcrumb"] {
    margin-top: calc(var(--header-height) + 0.25rem);
    padding: 0.5rem 1rem;
  }
  nav[aria-label="Breadcrumb"] ol {
    font-size: 0.85rem;
    gap: 0.35rem;
  }
}

/* ============================================
   ARTICLE & MAIN CONTENT LAYOUT
   ============================================ */

#main-content {
  min-height: 100vh;
}

article {
  max-width: var(--article-max-width);
  margin: 0 auto;
  margin-top: var(--header-height);
  padding: 2rem 1.5rem 4rem;
}

/* ============================================
   ARTICLE HEADER / INTRO DIV
   ============================================ */

article > div:first-of-type {
  position: relative;
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.08) 0%,
    rgba(16, 185, 129, 0.08) 100%
  );
  border: 1px solid rgba(14, 165, 233, 0.15);
  overflow: hidden;
}

article > div:first-of-type::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

article > div:first-of-type::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* ============================================
   H1
   ============================================ */

h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* ============================================
   AUTHOR LINE
   ============================================ */

article > div:first-of-type > p:first-of-type {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

article > div:first-of-type > p:first-of-type a {
  color: var(--primary-light);
  font-weight: 600;
  text-transform: none;
  font-size: 0.875rem;
  transition: var(--transition-fast);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
}

article > div:first-of-type > p:first-of-type a:hover {
  background: rgba(14, 165, 233, 0.12);
  color: var(--white);
}

/* ============================================
   INTRO PARAGRAPHS
   ============================================ */

article > div:first-of-type > p:not(:first-of-type) {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-color);
  margin-bottom: 0;
}

article > div:first-of-type > p:not(:first-of-type):last-child {
  margin-top: 0.85rem;
  padding: 1rem 1.25rem;
  background: rgba(16, 185, 129, 0.07);
  border-left: 3px solid var(--secondary-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1rem;
  color: var(--text-color);
}

/* ============================================
   SECTIONS — BASE
   ============================================ */

article section {
  position: relative;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base);
}

article section:hover {
  border-color: rgba(14, 165, 233, 0.2);
}

article section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: var(--radius-full);
}

article section:hover::before {
  opacity: 0.4;
}

/* ============================================
   H2
   ============================================ */

h2 {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  position: relative;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

article section:hover h2::after {
  width: 80px;
}

/* tighten gap after h2 before table / div / blockquote */
article section h2 + table,
article section h2 + div,
article section h2 + blockquote {
  margin-top: 0.75rem;
}

/* ============================================
   H3
   ============================================ */

h3 {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: var(--primary-light);
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.formula-header {
  margin: .5rem 0;
  color: var(--secondary-color);
}

/* ============================================
   PARAGRAPHS
   ============================================ */

article section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-color);

}

article section p:last-child {
  margin-bottom: 0;
}

article section p strong {
  color: var(--white);
  font-weight: 600;
}

/* ============================================
   BLOCKQUOTE — FORMULA DISPLAY
   ============================================ */

blockquote {
  position: relative;
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem 1.25rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.07) 0%,
    rgba(16, 185, 129, 0.07) 100%
  );
  border-left: 4px solid var(--primary-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.8;
  overflow-x: auto;
}

blockquote::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.4rem;
  color: rgba(14, 165, 233, 0.18);
  font-family: serif;
  pointer-events: none;
  line-height: 1;
}

blockquote strong {
  color: var(--primary-light);
  font-weight: 700;
}

/* ============================================
   FORMULA NOTE — small tag
   ============================================ */

article section p small {
  display: block;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

article section p small strong {
  color: var(--accent-color);
}

/* ============================================
   EM
   ============================================ */

article section em {
  color: var(--secondary-light);
  font-style: italic;
}

/* ============================================
   TABLE
   ============================================ */

article section table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.5rem;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
}

article section table caption {
  caption-side: top;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
  padding: 0 0 1.2rem 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

article section table thead tr {
  background: linear-gradient(
    90deg,
    rgba(14, 165, 233, 0.18) 0%,
    rgba(16, 185, 129, 0.18) 100%
  );
}

article section table thead th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--white);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  border-bottom: 2px solid rgba(14, 165, 233, 0.3);
}

article section table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}

article section table tbody tr:last-child {
  border-bottom: none;
}

article section table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

article section table tbody tr:hover {
  background: rgba(14, 165, 233, 0.06);
}

article section table tbody td {
  padding: 0.875rem 1rem;
  color: var(--text-color);
  vertical-align: top;
  line-height: 1.55;
}

article section table tbody td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ============================================
   TABLE — MOBILE SCROLL
   ============================================ */

@media (max-width: 640px) {
  article section:has(table) {
    padding: 1.25rem 1rem;
    overflow-x: auto;
  }

  article section table {
    min-width: 520px;
  }

  article section table tbody td:first-child {
    white-space: normal;
  }
}

/* ============================================
   TOOL CTA LINK PARAGRAPHS
   ============================================ */

article section p:has(> a[href*="kindastuff.com"]) {
  padding: 0.875rem 1.25rem;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

article section p a {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
  font-size: inherit;
  transition: var(--transition-fast);
  position: relative;
}

article section p a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-light);
  transition: width var(--transition-fast);
}

article section p a:hover {
  color: var(--white);
}

article section p a:hover::after {
  width: 100%;
}

article section p:has(a[href*="kindastuff"]) strong {
  color: var(--white);
}

/* ============================================
   TOOLKIT SECTION — CONTAINER
   ============================================ */

article section:has(> h3:first-child) {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.06) 0%,
    rgba(168, 85, 247, 0.06) 100%
  );
  border: 1px solid rgba(14, 165, 233, 0.18);
}

/* ============================================
   TOOLKIT FLEX — EQUAL BOXES
   ============================================ */

article section > div[style*="display: flex"] {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  margin: 1rem 0 0 0 !important;
  padding: 0 !important;
  width: 100% !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}

article section > div[style*="display: flex"] > div {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 0 !important;
  padding: 0.875rem !important;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  position: relative !important;
  overflow: hidden;
  box-sizing: border-box !important;
}

article section > div[style*="display: flex"] > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

article section > div[style*="display: flex"] > div:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.25);
  transform: translateY(-2px);
}

article section > div[style*="display: flex"] > div:hover::before {
  transform: scaleX(1);
}

article section > div[style*="display: flex"] > div strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  word-break: break-word;
}

article section > div[style*="display: flex"] > div a {
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: none;
  transition: var(--transition-fast);
  display: inline-block;
}

article section > div[style*="display: flex"] > div a:hover {
  color: var(--white);
}

/* Pro tip paragraph */
article section > p[style*="font-size: 13px"] {
  font-size: 0.8125rem !important;
  color: var(--text-muted) !important;
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-top: 1px solid rgba(14, 165, 233, 0.15) !important;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ============================================
   FAQ SECTION
   ============================================ */

article section:has(> h2 + h3) h3 {
  margin-top: 1.5rem;
  padding: 0.875rem 1.25rem 0.875rem 1.5rem;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-left: 3px solid var(--primary-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-color);
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

article section:has(> h2 + h3) h3::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

article section:has(> h2 + h3) p {
  padding-left: 1rem;
  border-left: 2px solid var(--border-light);
  margin-left: 0.25rem;
  font-size: 0.9625rem;
  color: var(--text-muted);
}

/* ============================================
   KEY TAKEAWAYS — LAST SECTION
   ============================================ */

article section:last-of-type {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.06) 0%,
    rgba(14, 165, 233, 0.06) 100%
  );
  border-color: rgba(16, 185, 129, 0.2);
}

article section:last-of-type::before {
  opacity: 0.6;
}

article section:last-of-type h2::after {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  width: 64px;
}

article section:last-of-type p {
  position: relative;
  padding-left: 1.25rem;
}

article section:last-of-type p::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.875rem;
}

/* ============================================
   REFERENCES — OL
   ============================================ */

article section ol {
  list-style: none;
  counter-reset: ref-counter;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

article section ol li {
  counter-increment: ref-counter;
  position: relative;
  padding: 0.875rem 1rem 0.875rem 3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: var(--transition-fast);
}

article section ol li::before {
  content: counter(ref-counter);
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

article section ol li:has(strong)::before {
  top: 1.1rem;
  transform: none;
}

article section ol li:hover {
  background: rgba(14, 165, 233, 0.06);
  border-color: rgba(14, 165, 233, 0.2);
}

article section ol li strong {
  color: var(--text-color);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

article section ol li em {
  color: var(--secondary-light);
  font-style: italic;
  font-size: 0.875rem;
}

article section ol li a {
  color: var(--primary-light);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: none;
  text-decoration: none;
  border-bottom: 1px dashed rgba(56, 189, 248, 0.4);
  transition: var(--transition-fast);
}

article section ol li a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* verification line after ol */
article section ol + p {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--success-color);
  font-weight: 500;
}

/* ============================================
   DISCLAIMER
   ============================================ */

article > p:last-of-type {
  margin: 2rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

article > p:last-of-type strong {
  color: var(--accent-color);
  font-weight: 700;
}

/* ============================================
   BREADCRUMB
   ============================================ */

nav[aria-label="Breadcrumb"] {
  margin-top: 0;
  top: var(--header-height);
  padding: 0.4rem 1.5rem;
  background: linear-gradient(
    to right,
    rgb(14 165 233 / 0.05),
    rgb(16 185 129 / 0.05)
  );
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  max-width: 100vw;
}

nav[aria-label="Breadcrumb"]::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

nav[aria-label="Breadcrumb"]:hover::before {
  transform: scaleX(1);
}

nav[aria-label="Breadcrumb"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  max-width: var(--article-max-width);
  margin: 0 auto;
  font-size: 0.82rem;
}

nav[aria-label="Breadcrumb"] li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

nav[aria-label="Breadcrumb"] li:not(:last-child)::after {
  content: "›";
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
}

nav[aria-label="Breadcrumb"] a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  text-transform: capitalize;
}

nav[aria-label="Breadcrumb"] a:hover,
nav[aria-label="Breadcrumb"] a:focus {
  color: var(--primary-light);
  background: rgb(14 165 233 / 0.1);
}

nav[aria-label="Breadcrumb"] li[aria-current="page"] {
  color: var(--text-color);
  font-weight: 500;
}

/* ============================================
   RESPONSIVE — TABLET 768px
   ============================================ */

@media (max-width: 768px) {
  article section > div[style*="display: flex"] {
    flex-direction: column !important;
    margin: 0 !important;
  }
  article {
    padding: 1.5rem 1rem 3rem;
    margin-top: var(--header-height);
  }

  article > div:first-of-type {
    padding: 1.75rem 1.25rem;
    margin-bottom: 2rem;
  }

  article section {
    padding: 1.5rem 1.25rem;
    margin-bottom: 2rem;
  }

  blockquote {
    padding: 1rem 1rem 1rem 1.25rem;
    font-size: 0.875rem;
  }

  article section ol li {
    padding-left: 2.75rem;
  }

  article section > div[style*="display: flex"] > div {
    flex: 1 1 calc(50% - 0.375rem) !important;
    width: auto !important;
    min-width: 0 !important;
  }
}

/* ============================================
   RESPONSIVE — MOBILE 600px
   ============================================ */

@media (max-width: 600px) {
  nav[aria-label="Breadcrumb"] {
    padding: 0.3rem 0.875rem;
  }

  nav[aria-label="Breadcrumb"] ol {
    font-size: 0.78rem;
    gap: 0.25rem;
  }

  nav[aria-label="Breadcrumb"] a {
    padding: 0.1rem 0.3rem;
  }
}

/* ============================================
   RESPONSIVE — MOBILE 480px
   ============================================ */

@media (max-width: 480px) {
   article section > div[style*="display: flex"] {
    flex-direction: column !important;
    margin: 0 !important;
  }
  article {
    padding: 1rem 0.875rem 2.5rem;
    margin-top: var(--header-height);
  }

  article > div:first-of-type {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
  }

  article section {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
  }

  h1 {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
  }

  h2 {
    font-size: clamp(1.1rem, 5vw, 1.35rem);
  }

  h3 {
    font-size: 0.975rem;
  }

  blockquote {
    font-size: 0.825rem;
    padding: 0.875rem 0.875rem 0.875rem 1rem;
    border-left-width: 3px;
  }

  article section > div[style*="display: flex"] {
    gap: 0.5rem !important;
  }

  article section > div[style*="display: flex"] > div {
    flex: 1 1 calc(50% - 0.25rem) !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0.75rem !important;
  }

  article section > div[style*="display: flex"] > div strong {
    font-size: 0.75rem;
  }

  article section > div[style*="display: flex"] > div a {
    font-size: 0.75rem;
  }

  article section ol li {
    padding: 0.75rem 0.875rem 0.75rem 2.75rem;
  }

  article section ol li::before {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
    left: 0.6rem;
  }

  article section:has(> h2 + h3) h3 {
    font-size: 0.9rem;
    padding: 0.75rem 1rem 0.75rem 1.25rem;
  }
}

/* ============================================
   PRINT
   ============================================ */

@media print {
  article section {
    border: 1px solid #ccc;
    background: white;
    page-break-inside: avoid;
  }

  h1,
  h2,
  h3 {
    color: #000;
    -webkit-text-fill-color: #000;
    background: none;
  }

  blockquote {
    border-left: 3px solid #0ea5e9;
    background: #f0f9ff;
  }

  article section p,
  article section td,
  article section li {
    color: #1e293b;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #666;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  nav[aria-label="Breadcrumb"]::before {
    transition: none;
  }
}
.footer {
  background-color: var(--surface-color);
  color: var(--text-color);
  padding: 40px 20px;
  border-top: 1px solid var(--border-color);
}
.footer__content {
  max-width: 1200px;
  margin: 0 auto;
}
@media screen and (min-width: 600px) {
  .footer__socials {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .footer__links {
    flex-direction: row !important;
    justify-content: center;
    gap: 30px;
  }
}
img[loading="lazy"] {
  aspect-ratio: auto;
  display: block;
  width: 100%;
  height: auto;
}
.footer__social-follow {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  justify-content: center;
}
@media (max-width: 480px) {
  .footer__social-follow {
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
  }
  .footer__social-link svg {
    width: 20px;
    height: 20px;
  }
}
.footer__logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  align-items: center;
}
.footer_img_logo {
  max-width: 100%;
  height: auto;
  aspect-ratio: 200/60;
  display: block;
  object-fit: contain;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}
.footer__links a {
  color: var(--text-color);
  font-weight: 400;
  transition: var(--transition);
}
.footer__links a:hover {
  color: rgb(243 139 3/0.8);
}
.footer__follow-text {
  font-weight: 400;
  color: var(--text-muted);
}
.footer__social-link {
  color: #21a4eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgb(255 255 255/0.05);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.footer__social-link:hover,
.footer__social-link:focus {
  color: #c0ddec;
  background: rgb(33 164 235/0.2);
  transform: translateY(-2px);
  outline: none;
}
.footer__social-link svg {
  vertical-align: middle;
  fill: currentColor;
  width: 20px;
  height: 20px;
}
@media (max-width: 480px) {
  .footer__social-follow {
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
  }
  .footer__social-link {
    width: 36px;
    height: 36px;
  }
  .footer__social-link svg {
    width: 18px;
    height: 18px;
  }
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.footer-bottom__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.footer-bottom__copyright {
  font-size: 0.9rem;
  color: var(--text-dim);
}
.footer-bottom__divider {
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.6;
}
.footer-bottom__links {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom__links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  transition: var(--transition);
  font-weight: 400;
}
.footer-bottom__links a:hover {
  color: var(--text-color);
  background: rgb(255 255 255/0.05);
}
.footer-bottom__links a[aria-current="page"] {
  color: var(--text-color);
}
.footer-bottom__privacy-badge {
  display: flex;
  justify-content: center;
}
.privacy-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(
    135deg,
    rgb(46 204 113/0.1) 0%,
    rgb(58 168 228/0.1) 100%
  );
  border: 1px solid rgb(46 204 113/0.2);
  border-radius: var(--radius-md);
  max-width: 600px;
}
.privacy-badge__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.privacy-badge__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.privacy-badge__text strong {
  color: var(--success-color);
}
@media screen and (max-width: 600px) {
  .footer-bottom__legal {
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer-bottom__divider {
    display: none;
  }
  .privacy-badge {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
  }
  .privacy-badge__icon {
    width: 36px;
    height: 36px;
  }
}

