/* --- Fluid Scale Tokens --- */
:root {
  --fluid-xs:          clamp(0.7rem, 0.65rem + 0.25vw, 0.85rem);
  --fluid-sm:          clamp(0.8rem, 0.75rem + 0.25vw, 0.95rem);
  --fluid-base:        clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
  --fluid-md:          clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --fluid-lg:          clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --fluid-xl:          clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --fluid-2xl:         clamp(1.35rem, 1.2rem + 0.75vw, 1.75rem);
  --fluid-3xl:         clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --fluid-4xl:         clamp(2rem, 1.75rem + 1.25vw, 3rem);
  --fluid-hero:        clamp(2.5rem, 2rem + 2vw, 4rem);
  --fluid-space-xs:    clamp(0.35rem, 0.3rem + 0.25vw, 0.5rem);
  --fluid-space-sm:    clamp(0.6rem, 0.5rem + 0.5vw, 0.9rem);
  --fluid-space-md:    clamp(1rem, 0.85rem + 0.75vw, 1.5rem);
  --fluid-space-lg:    clamp(1.5rem, 1.25rem + 1.25vw, 2.5rem);
  --fluid-space-xl:    clamp(2rem, 1.75rem + 1.5vw, 3.5rem);
  --fluid-space-2xl:   clamp(3rem, 2.5rem + 2vw, 5rem);
  --container-narrow:  min(100% - 2rem, 600px);
  --container-base:    min(100% - 2rem, 900px);
  --container-wide:    min(100% - 2rem, 1200px);
  --container-full:    min(100% - 1rem, 1400px);
}

/* --- Dark Mode Overrides --- */
:is(html.dark-mode, body.dark-mode) {
  --primary-gradient:           linear-gradient(135deg, #232526 0%, #414345 100%);
  --primary-background:         linear-gradient(135deg, #121212 0%, #1f1f1f 100%);
  --box-background-image:       #1f1f1f;
  --card-gradient:              #1f1f1f;
  --accent-gradient:            #2a2a2a;
  --box-shadow-color:           rgba(255, 255, 255, 0.25);
  --box-shadow-xs:              0 1px 3px rgba(0, 0, 0, 0.2);
  --box-shadow-sm:              0 2px 8px rgba(0, 0, 0, 0.35);
  --box-shadow-md:              0 4px 16px rgba(0, 0, 0, 0.4);
  --box-shadow-lg:              0 8px 32px rgba(0, 0, 0, 0.5);
  --box-shadow-hover:           0.3rem 0.5rem 1.5rem rgba(255, 255, 255, 0.15);
  --box-shadow-focus-accent:    0 0 0 3px rgba(122, 170, 255, 0.2);
  --box-shadow-focus-danger:    0 0 0 3px rgba(231, 76, 60, 0.15);
  --box-shadow-focus-default:   0 0 0 3px rgba(88, 166, 255, 0.15);
  --text-color:                 #ffffff;
  --text-secondary-color:       #1c1c1c;
  --text-muted:                 #b0b0b0;
  --text-strong:                #ffffff;
  --text-label:                 #ffffffdb;
  --text-subtle:                #9aa5b4;
  --text-placeholder:           #7f8c8d;
  --text-on-dark:               #ffffff;
  --text-on-accent:             #ffffff;
  --link-color:                 #7aaaff;
  --link-hover-color:           #aac8ff;
  --link-visited-color:         #cc9955;
  --link-unvisited:             #7aaaff;
  --service-link-color:         #7aaaff;
  --service-link-hover-color:   #aac8ff;
  --accent-blue:                #7aaaff;
  --accent-blue-border:         rgba(122, 170, 255, 0.35);
  --accent-blue-border-strong:  rgba(122, 170, 255, 0.6);
  --accent-dark-blue:           #1a3a6b;
  --accent-blue-light:          #2a3a4a;
  --hover-color:                rgba(122, 170, 255, 0.15);
  --accent-info:                #5dade2;
  --accent-info-bg:             #1e2d3d;
  --color-danger:               #ff6b6b;
  --color-danger-dark:          #ff4444;
  --color-danger-bg:            #3a1a1a;
  --color-danger-bg-soft:       rgba(255, 107, 107, 0.15);
  --color-danger-shadow:        rgba(255, 68, 68, 0.15);
  --color-success:              #4ade80;
  --color-success-dark:         #22c55e;
  --color-success-bg:           #1a3a2a;
  --color-success-bg-soft:      rgba(74, 222, 128, 0.15);
  --color-warning:              #fbbf24;
  --color-warning-dark:         #f59e0b;
  --color-warning-bg:           #3a300a;
  --color-warning-bg-soft:      rgba(251, 191, 36, 0.15);
  --color-disabled:             #6b7b8b;
  --color-disabled-bg:          #2a2a2a;
  --color-disabled-text:        #6b7b8b;
  --border-color-light:         #333;
  --border-color-default:       #444;
  --border-color-medium:        #555;
  --border-color-focus:         #7aaaff;
  --border-color-accent:        rgba(122, 170, 255, 0.35);
  --bg-page:                    #121212;
  --bg-surface:                 #1f1f1f;
  --bg-surface-soft:            #2a2a2a;
  --bg-surface-muted:           #252525;
  --bg-overlay:                 rgba(30, 30, 30, 0.85);
  --bg-overlay-focus:           rgba(30, 30, 30, 0.97);
  --toggle-bg-light:            #ffffff;
  --toggle-bg-dark:             rgb(53, 53, 53);
  --opacity-disabled:           0.55;
  --opacity-muted:              0.70;
  --opacity-subtle:             0.85;
  --opacity-full:               1;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  background: var(--bg-page);
  background-image: var(--primary-background);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-base);
}

::-webkit-scrollbar{width:.625rem}
::-webkit-scrollbar-track{background:var(--bg-surface-muted,#f5f7fa)}
::-webkit-scrollbar-thumb{
    border:.15rem solid var(--bg-surface-muted,#f5f7fa);
    border-radius:var(--radius-pill,999px);
    background:linear-gradient(180deg,var(--accent-blue,#2b8ffa),var(--accent-dark-blue,#1a3a6b));
}
::-webkit-scrollbar-thumb:hover{background:var(--accent-dark-blue,#1a3a6b)}
/* ============================================================
   03. BREADCRUMB NAVIGATION
   ============================================================ */
.breadcrumb-nav {
    width: var(--section-width);
    max-width: var(--max-width);
    margin-top: clamp(4.5rem, 8vw, 5.2rem);
    margin-left: auto;
    margin-right: auto;
    padding: clamp(0.35rem, 5vw, 0.45rem);
    background: var(--accent-gradient);
    border-radius: var(--radius-pill);
    border: 2px solid var(--accent-blue-border);
}

.breadcrumb-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    font-family: var(--nav-head-font);
    font-size: clamp(0.52rem, 2vw, 0.65rem);
    font-weight: 300;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 400;
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    user-select: none;
}

.breadcrumb-current {
    color: var(--text-strong);
    font-weight: 500;
}
/* --- Page Shell (scoped typography/color) --- */
.page-shell {
  flex: 1; width: 100%;
  display: flex; flex-direction: column;
  font-family: var(--body-font);
  font-size: var(--fluid-base);
  line-height: var(--line-height-base);
  color: var(--text-color);
  transition: color var(--transition-base);
}

.page-shell img, .downFooter img { max-width: 100%; height: auto; display: block; }
.page-shell a, .downFooter a { color: var(--link-color); text-decoration: none; transition: color var(--transition-fast); }
.page-shell a:hover, .downFooter a:hover { color: var(--link-hover-color); }
.page-shell a:visited, .downFooter a:visited { color: var(--link-visited-color); }

/* Focus visible (global for a11y) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
  outline: var(--border-width-thick) solid var(--border-color-focus);
  outline-offset: 2px;
  box-shadow: var(--box-shadow-focus-accent);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --- Container / Layout --- */
.container { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--fluid-space-md); }
.container-narrow { max-width: var(--container-narrow); }
.container-base { max-width: var(--container-base); }
.page-shell > *:first-child { margin-top: clamp(1.5rem, 1rem, 3rem); }

/* --- Hero --- */
.hero {
  width: 95%; margin-inline: auto;
  padding: var(--fluid-space-2xl) var(--fluid-space-md);
  text-align: center;
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  margin-bottom: var(--fluid-space-xl);
}
.hero .eyebrow {
  font-family: var(--primary-main-font); font-size: var(--fluid-sm);
  font-weight: var(--font-weight-medium); color: var(--accent-blue);
  text-transform: uppercase; letter-spacing: var(--letter-spacing-wider);
  margin-bottom: var(--fluid-space-xs);
}
.hero h1 {
  font-family: var(--heading-font); font-size: var(--fluid-hero);
  font-weight: var(--font-weight-bold); color: var(--text-strong);
  line-height: var(--line-height-tight); margin-bottom: var(--fluid-space-sm);
}
.hero-title {
  font-family: var(--secondary-main-font); font-size: var(--fluid-2xl);
  font-weight: var(--font-weight-semibold); color: var(--text-color);
  margin-bottom: var(--fluid-space-md);
}
.hero-copy {
  font-family: var(--primary-main-font,"DM Mono",monospace); font-size: var(--fluid-lg); color: var(--text-muted);
  max-width: 60ch; margin: 0 auto var(--fluid-space-lg); line-height: var(--line-height-relaxed);
}
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--fluid-space-md); margin-top: var(--fluid-space-lg); }
.meta-pill {
  display: inline-flex; align-items: center; gap: var(--fluid-space-xs);
  padding: var(--fluid-space-xs) var(--fluid-space-md);
  background: var(--bg-surface); border: var(--border-width-thin) solid var(--border-color-default);
  border-radius: var(--radius-pill); font-family: var(--nav-head-font);
  font-size: var(--fluid-sm); color: var(--text-color);
  box-shadow: var(--box-shadow-xs);
  transition: background 0.1s ease-out, border-color 0.1s ease-out, transform 0.1s ease-out;
}
.meta-pill:hover { background: var(--bg-surface-soft); border-color: var(--accent-blue-border); transform: translateY(-1px); }
.meta-icon { font-family: var(--nav-head-font); font-size: var(--fluid-base); color: var(--accent-blue); }

/* --- Search Panel --- */
.search-panel { padding: var(--fluid-space-lg) var(--fluid-space-md); margin-bottom: var(--fluid-space-xl); }
.search-wrap { max-width: var(--container-base); margin: 0 auto; position: relative; }
.search-icon { position: absolute; left: var(--fluid-space-md); top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--text-subtle); pointer-events: none; flex-shrink: 0; }
#faq-search {
  width: 100%; padding: var(--fluid-space-sm) var(--fluid-space-md) var(--fluid-space-sm) calc(22px + var(--fluid-space-md) * 2);
  font-family: var(--body-font); font-size: var(--fluid-base); color: var(--text-color);
  background: var(--bg-surface); border: var(--border-width-base) solid var(--border-color-default);
  border-radius: var(--radius-lg); box-shadow: var(--box-shadow-sm);
  transition: border-color 0.1s ease-out, box-shadow 0.1s ease-out;
}
#faq-search:focus { border-color: var(--border-color-focus); box-shadow: var(--box-shadow-focus-accent); outline: none; }
#faq-search::placeholder { color: var(--text-placeholder); }
.clear-search {
  position: absolute; right: var(--fluid-space-md); top: 55%; transform: translateY(-50%);
  width: 28px; height: 28px; border: none; background: transparent;
  font-size: var(--fluid-xl); color: var(--text-subtle); cursor: pointer;
  border-radius: var(--radius-circle); display: flex; align-items: center; justify-content: center;
  transition: background 0.1s ease-out, color 0.1s ease-out;
}
.clear-search:hover { background: var(--bg-surface-muted); color: var(--text-color); }
.search-status { margin-top: var(--fluid-space-sm); text-align: center; font-family: var(--primary-main-font); font-size: var(--fluid-sm); color: var(--text-subtle); }
.no-results { display: none; text-align: center; padding: var(--fluid-space-2xl) var(--fluid-space-md); color: var(--text-muted); }
.no-results[style*="block"], .no-results.visible { display: block; }
.no-results strong { display: block; font-family: var(--heading-font); font-size: var(--fluid-xl); color: var(--text-strong); margin-bottom: var(--fluid-space-xs); }

/* --- FAQ Section --- */
.faq-section { padding: 0 var(--fluid-space-md) var(--fluid-space-2xl); }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--fluid-space-md); margin-bottom: var(--fluid-space-lg); max-width: var(--container-base); margin-inline: auto; }
.section-kicker { font-family: var(--primary-main-font); font-size: var(--fluid-sm); font-weight: var(--font-weight-medium); color: var(--accent-blue); text-transform: uppercase; letter-spacing: var(--letter-spacing-wider); }
.section-heading h2 { font-family: var(--heading-font); font-size: var(--fluid-3xl); font-weight: var(--font-weight-bold); color: var(--text-strong); line-height: var(--line-height-tight); }
.question-count { font-family: var(--primary-main-font); font-size: var(--fluid-sm); color: var(--text-subtle); white-space: nowrap; }
.faq-list { display: flex; flex-direction: column; gap: var(--fluid-space-sm); max-width: var(--container-base); margin-inline: auto; }
.faq-item {
  background: var(--bg-surface); border: var(--border-width-thin) solid var(--border-color-default);
  border-radius: var(--radius-md); box-shadow: var(--box-shadow-xs); overflow: hidden;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
  will-change: box-shadow, border-color;
}
.faq-item:hover { box-shadow: var(--box-shadow-sm); border-color: var(--border-color-medium); }
:is(html.dark-mode, body.dark-mode) .faq-item:hover { border-color: var(--accent-blue); }
.faq-question { display: flex; align-items: flex-start; gap: var(--fluid-space-md); padding: var(--fluid-space-lg) var(--fluid-space-md); width: 100%; text-align: left; background: transparent; border: none; cursor: pointer; font-family: inherit; color: inherit; }
.faq-question:focus { outline: none; }
.faq-question:focus-visible { outline: var(--border-width-thick) solid var(--border-color-focus); outline-offset: -2px; border-radius: var(--radius-md); }
.q-number { flex-shrink: 0; width: clamp(28px, 3vw, 36px); height: clamp(28px, 3vw, 36px); display: flex; align-items: center; justify-content: center; background: var(--accent-gradient); border: var(--border-width-thin) solid var(--accent-blue-border); border-radius: var(--radius-circle); font-family: var(--primary-main-font); font-size: var(--fluid-sm); font-weight: var(--font-weight-bold); color: var(--accent-blue); }
.q-text { flex: 1; font-family: var(--heading-font); font-size: var(--fluid-md); font-weight: var(--font-weight-semibold); color: var(--text-strong); line-height: var(--line-height-snug); padding-right: var(--fluid-space-lg); }
.chevron { flex-shrink: 0; width: 24px; height: 24px; margin-top: 2px; color: var(--text-subtle); transition: transform 0.15s ease-out; }
.faq-item[open] .chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 var(--fluid-space-md) var(--fluid-space-lg) calc(clamp(28px, 3vw, 36px) + var(--fluid-space-md) * 2); border-top: var(--border-width-thin) solid var(--border-color-light); animation: slideDown var(--anim-duration-base) var(--anim-easing-base); }
@keyframes slideDown { from { opacity: 0; transform: translateY(var(--anim-slide-offset)); } to { opacity: 1; transform: translateY(0); } }
.answer-copy { font-family: var(--primary-main-font); font-size: var(--fluid-base); line-height: var(--line-height-relaxed); color: var(--text-color); margin: 0; }

/* --- Reveal Animation --- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(1) { transition-delay: 0ms; }    .reveal:nth-child(2) { transition-delay: 50ms; }
.reveal:nth-child(3) { transition-delay: 100ms; }  .reveal:nth-child(4) { transition-delay: 150ms; }
.reveal:nth-child(5) { transition-delay: 200ms; }  .reveal:nth-child(6) { transition-delay: 250ms; }
.reveal:nth-child(7) { transition-delay: 300ms; }  .reveal:nth-child(8) { transition-delay: 350ms; }
.reveal:nth-child(9) { transition-delay: 400ms; }  .reveal:nth-child(10) { transition-delay: 450ms; }

/* --- Topic Section --- */
.topic-section { padding: 0 var(--fluid-space-md) var(--fluid-space-2xl); }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--fluid-space-lg); max-width: var(--container-wide); margin-inline: auto; }
.topic-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--fluid-space-md); padding: var(--fluid-space-lg); background: var(--card-gradient); border: var(--border-width-thin) solid var(--border-color-default); border-radius: var(--radius-lg); box-shadow: var(--box-shadow-sm); text-decoration: none; color: inherit; transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.1s ease-out; will-change: transform, box-shadow, border-color; }
.topic-card:hover, .topic-card:focus { transform: translateY(-4px); box-shadow: var(--box-shadow-lg); border-color: var(--accent-blue-border); text-decoration: none; }
:is(html.dark-mode, body.dark-mode) .topic-card:hover, :is(html.dark-mode, body.dark-mode) .topic-card:focus { border-color: var(--accent-blue); }
.topic-code { font-size: var(--fluid-2xl); line-height: 1; flex-shrink: 0; }
.topic-copy { display: flex; flex-direction: column; gap: var(--fluid-space-xs); flex: 1; }
.topic-copy strong { font-family: var(--heading-font); font-size: var(--fluid-lg); font-weight: var(--font-weight-bold); color: var(--text-strong); line-height: var(--line-height-tight); }
.topic-copy span { font-family: var(--primary-main-font,--body-font); font-size: var(--fluid-sm); color: var(--text-muted); line-height: var(--line-height-base); }
.topic-link { display: inline-flex; align-items: center; gap: var(--fluid-space-xs); font-family: var(--primary-main-font); font-size: var(--fluid-sm); font-weight: var(--font-weight-medium); color: var(--accent-blue); margin-top: var(--fluid-space-xs); transition: gap 0.1s ease-out; }
.topic-link:hover { gap: var(--fluid-space-sm); }

/* --- Legal Note / Disclaimer --- */
.legal-note {
  width: 95%; margin-inline: auto;
  display: flex; gap: var(--fluid-space-md);
  padding: var(--fluid-space-lg) var(--fluid-space-md);
  margin-top: var(--fluid-space-xl); margin-bottom: var(--fluid-space-2xl);
  background: var(--accent-gradient);
  border: var(--border-width-thin) solid var(--accent-blue-border);
  border-radius: var(--radius-lg);
}
.note-icon { flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--accent-blue); color: var(--text-on-accent); border-radius: var(--radius-circle); font-family: var(--head-font); font-size: var(--fluid-lg); font-weight: var(--font-weight-bold); }
.note-copy { flex: 1; }
.note-copy h3 { font-family: var(--heading-font); font-size: var(--fluid-xl); font-weight: var(--font-weight-bold); color: var(--text-strong); margin-bottom: var(--fluid-space-sm); }
/* Teaser — visible when collapsed, hidden when expanded */
.disclaimer-teaser {
  font-family: var(--body-font); font-size: var(--fluid-sm);
  color: var(--text-muted); line-height: var(--line-height-base);
  margin-bottom: var(--fluid-space-sm);
  transition: opacity 0.15s ease-out;
}
/* When disclaimer is open: hide teaser and "Read" label */
.legal-note.disclaimer-open .disclaimer-teaser { display: none; }
.legal-note.disclaimer-open .toggle-label-open { display: none; }
/* When disclaimer is closed: hide "Hide" label */
.legal-note:not(.disclaimer-open) .toggle-label-close { display: none; }
.disclaimer-content { overflow: hidden; transition: max-height var(--transition-slow) ease, opacity var(--transition-base) ease; }
/* Collapsed state */
.disclaimer-content.collapsed { max-height: 0; opacity: 0; margin: 0; }
/* Expanded state */
.disclaimer-content.expanded { max-height: 500px; opacity: 1; }
.disclaimer-content p { font-family: var(--body-font); font-size: var(--fluid-base); line-height: var(--line-height-relaxed); color: var(--text-color); margin-bottom: var(--fluid-space-sm); }
.disclaimer-content p:last-child { margin-bottom: 0; }
/* Toggle button */
.disclaimer-toggle {
  display: inline-flex; align-items: center; gap: var(--fluid-space-xs);
  margin-top: var(--fluid-space-md);
  padding: var(--fluid-space-xs) var(--fluid-space-sm);
  font-family: var(--primary-main-font); font-size: var(--fluid-sm);
  font-weight: var(--font-weight-medium); color: var(--accent-blue);
  background: transparent; border: var(--border-width-thin) solid var(--accent-blue-border);
  border-radius: var(--radius-pill); cursor: pointer;
  transition: background 0.1s ease-out, color 0.1s ease-out;
}
.disclaimer-toggle:hover { background: var(--accent-blue); color: var(--text-on-accent); }
.disclaimer-toggle .arrow { display: inline-block; transition: transform 0.25s ease-out; font-size: var(--fluid-base); }
.legal-note.disclaimer-open .disclaimer-toggle .arrow { transform: rotate(180deg); }

/* ============================================================
   20. FOOTER
   ============================================================ */
.downFooter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(161, 175, 222, 0.32);
    width: 100%;
    height: auto;
    padding-top: 3rem;
    padding-bottom: var(--spacing-md);
}

.socialLink {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
}

.socialLink p {
    font-family: var(--nav-head-font);
    font-size: var(--para-font-size);
    font-weight: 300;
    margin: 0;
    padding-bottom: 2rem;
}

.socialIcons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform var(--transition-base),
                filter var(--transition-base);
    filter: grayscale(15%);
}

.socialIcons a:hover .social-logo,
.socialIcons a:focus .social-logo {
    transform: scale(1.2) translateY(-3px);
    filter: grayscale(0%) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.socialIcons a:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

.downFooter nav {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin: var(--spacing-xs) 0;
}

.policy {
    padding-top: var(--spacing-sm);
    font-size: 12px;
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--nav-head-font);
    font-weight: 300;
    transition: color var(--transition-fast),
                background var(--transition-base);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
}

.policy:hover,
.policy:focus {
    color: var(--service-link-hover-color);
    background: rgba(0, 0, 0, 0.05);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.policy:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 3px;
}

.footerBottom {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-xs);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 90%;
    text-align: center;
}

.footerBottom p {
    font-size: smaller;
    font-family: var(--nav-head-font);
    font-weight: 300;
    color: var(--text-muted);
    padding: 0;
    margin: 0.5rem 0;
    line-height: 1.65;
}
/* --- Theme Toggle Button --- */
.theme-toggle { position: fixed; bottom: var(--fluid-space-lg); right: var(--fluid-space-lg); width: 48px; height: 48px; border: var(--border-width-thin) solid rgba(0, 0, 0, 0.15); border-radius: var(--radius-circle); font-size: var(--fluid-xl); cursor: pointer; z-index: var(--z-index-toast); background: var(--card-gradient); box-shadow: var(--box-shadow-md); display: flex; align-items: center; justify-content: center; user-select: none; touch-action: manipulation; transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out; }
.theme-toggle:hover { transform: scale(1.1) rotate(15deg); box-shadow: var(--box-shadow-lg); }
.theme-toggle:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: 3px; }
:is(html.dark-mode, body.dark-mode) .theme-toggle { background: var(--toggle-bg-dark); border-color: rgba(255, 255, 255, 0.15); }

/* --- Dark Mode: Element-level Header Overrides (hardcoded only) --- */
:is(html.dark-mode, body.dark-mode) .menuBtn { background: var(--accent-gradient); border: 2px solid #aac8ff; }
:is(html.dark-mode, body.dark-mode) .menuBtn:hover { background: rgba(87, 108, 113, 0.498); }
:is(html.dark-mode, body.dark-mode) .services-list li:hover, :is(html.dark-mode, body.dark-mode) .services-list h2:hover { border-color: var(--accent-blue); }
:is(html.dark-mode, body.dark-mode) .slide:hover { border-color: var(--accent-blue); }
:is(html.dark-mode, body.dark-mode) .lawyerName, :is(html.dark-mode, body.dark-mode) .lawyerName h2 { color: #ffffff; }
:is(html.dark-mode, body.dark-mode) .logoWrap img { filter: brightness(0) invert(1); }

/* --- Media Queries --- */
@media (max-width: 767px) {
  .hero { padding: var(--fluid-space-xl) var(--fluid-space-md); }
  .topic-grid { grid-template-columns: 1fr; }
  .legal-note { flex-direction: column; text-align: center; width: 95%; }
  .note-icon { margin-inline: auto; }
  .theme-toggle { bottom: var(--fluid-space-md); right: var(--fluid-space-md); width: 44px; height: 44px; }
}
@media (max-width: 480px) {
  :root { --fluid-space-md: clamp(0.75rem, 0.6rem + 0.75vw, 1rem); --fluid-space-lg: clamp(1rem, 0.85rem + 0.75vw, 1.5rem); }
  .hero h1 { font-size: var(--fluid-3xl); }
  .hero-title { font-size: var(--fluid-xl); }
  .section-heading h2 { font-size: var(--fluid-2xl); }
  .faq-question { padding: var(--fluid-space-md); }
  .q-text { font-size: var(--fluid-base); }
  .faq-answer { padding-left: var(--fluid-space-md); padding-right: var(--fluid-space-md); }
}
@media (min-width: 1200px) { .topic-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1600px) { .topic-grid { grid-template-columns: repeat(4, 1fr); } }

/* --- Print --- */
@media print {
  .search-panel, .theme-toggle, .socialIcons, .disclaimer-toggle, .disclaimer-teaser, .chevron { display: none !important; }
  .disclaimer-content { max-height: none !important; opacity: 1 !important; }
  body { background: white !important; color: black !important; font-size: 12pt; line-height: 1.5; }
  .hero { background: none !important; border-radius: 0; padding: 0; margin-bottom: 2rem; page-break-after: avoid; }
  .hero h1, .hero-title, .hero-copy, .hero-meta { color: black !important; }
  .faq-section, .topic-section, .legal-note { padding: 0; margin: 0 0 2rem; page-break-inside: avoid; }
  .faq-item { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; page-break-inside: avoid; }
  .faq-answer { display: block !important; border-top: 1px solid #eee; }
  .topic-grid { display: block; }
  .topic-card { display: block; border: 1px solid #ccc; box-shadow: none; margin-bottom: 1rem; padding: 1rem; break-inside: avoid; page-break-inside: avoid; }
  .downFooter { border-top: 2px solid #000; padding: 1rem 0; }
  .downFooter .policy { color: #000 !important; text-decoration: underline; }
  .page-shell a, .downFooter a { text-decoration: underline; }
  .page-shell a[href^="http"]::after, .downFooter a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
}

/* --- High Contrast --- */
@media (prefers-contrast: high) {
  :root { --border-color-default: #000; --border-color-medium: #000; --text-muted: #333; --text-subtle: #333; }
  :is(html.dark-mode, body.dark-mode) { --border-color-default: #fff; --border-color-medium: #fff; --text-muted: #ccc; --text-subtle: #ccc; }
  .faq-item, .topic-card, .legal-note, .search-wrap input { border-width: 2px; }
  .theme-toggle { border-width: 2px; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .faq-answer { animation: none; }
  .topic-card:hover { transform: none; }
  .theme-toggle:hover { transform: scale(1.1); }
}

/* --- Touch Targets --- */
@media (pointer: coarse) {
  .faq-question, .topic-card, .disclaimer-toggle, .theme-toggle, .clear-search { min-height: 44px; min-width: 44px; }
  .faq-question { padding: var(--fluid-space-md) var(--fluid-space-md); }
}

/* --- Misc --- */
:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.page-shell ::selection, .downFooter ::selection { background: var(--accent-blue-light); color: var(--accent-dark-blue); }
:is(html.dark-mode, body.dark-mode) .page-shell ::selection, :is(html.dark-mode, body.dark-mode) .downFooter ::selection { background: var(--accent-blue); color: var(--text-on-accent); }

/* ============================================================
   17. INTERNAL NAVIGATION LINKS
  ============================================================ */

.internal-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--section-width);
    max-width: var(--max-width);
    margin:1rem auto;
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-lg);
    background: var(--header-background);
    border: 4px solid var(--accent-blue-border);
    transition: box-shadow var(--transition-base);
}

.internal-nav-links:hover {
    box-shadow: var(--box-shadow-md);
}

.internal-nav-links h3 {
    font-family: var(--heading-font);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    text-align: center;
    margin: 0 0 var(--spacing-sm);
    color: var(--text-color);
    letter-spacing: 0.02em;
}

.internal-nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.internal-nav-links li {
    display: flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: background var(--transition-base),
                transform var(--transition-fast),
                border-color var(--transition-base);
}

.internal-nav-links li::before {
    content: "→";
    margin-right: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.internal-nav-links li:hover {
    background: rgba(43, 143, 250, 0.08);
    border-color: var(--accent-blue-border);
    transform: translateX(4px);
}

.internal-nav-links a {
    font-family: var(--nav-head-font);
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-fast);
    line-height: 1.5;
}

.internal-nav-links a:hover {
    color: var(--service-link-hover-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.internal-nav-links a strong {
    font-weight: 600;
    font-size: 0.75rem;
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.waBook {
    position: fixed;
    right: 2%;
    bottom: 2%;
    z-index: 999;
    filter: drop-shadow(0 .25rem .75rem rgba(0, 218, 84, 0.35));
    transition: filter var(--transition-base),
                transform var(--transition-fast);
}

.waBook:hover {
    filter: drop-shadow(0 .375rem 1.125rem rgba(0, 218, 84, 0.55));
    transform: translateY(-0.125rem);
}

.WaChat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.4px;
    text-decoration: none;
}

.waLogo {
    display: block;
    width: 2.1875rem;
    height: auto;
    transition: transform var(--transition-fast);
}

.WaChat:hover .waLogo {
    transform: scale(1.1) rotate(-5deg);
}

.WaChat span {
    background-color: #00da54;
    border: 2px solid var(--primary-background);
    font-size: .875rem;
    padding-left: 4px;
    padding-right: 4px;
    border-radius: 1rem;
    border: 2px solid white;
    font-family: var(--hindi-font), sans-serif;
    color: #0a0a0ae1;
    font-weight: 200;
    white-space: nowrap;
    box-shadow: var(--box-shadow-sm);
}

/* ============================================================
   FOOTER
   ============================================================ */
.downFooter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(161, 175, 222, 0.32);
    width: 100%;
    height: auto;
    padding-top: 3rem;
    padding-bottom: var(--spacing-md);
    margin-top: var(--spacing-xl);
    border-top: 2px solid #c3cfe2;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    transition: background var(--transition-base),
                border-color var(--transition-base),
                box-shadow var(--transition-base);
}

:is(html.dark-mode, body.dark-mode) .downFooter {
    background-color: rgba(20, 30, 50, 0.55);
    border-top-color: #333;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
}

.socialLink {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
}

.socialLink p {
    color: var(--text-color);
    font-family: var(--nav-head-font);
    font-size: var(--para-font-size);
    font-weight: 300;
    margin: 0;
    padding-bottom: 2rem;
    transition: color var(--transition-base);
}

.socialIcons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform var(--transition-base),
                filter var(--transition-base);
    filter: grayscale(15%);
}

.socialIcons a:hover .social-logo,
.socialIcons a:focus .social-logo {
    transform: scale(1.2) translateY(-3px);
    filter: grayscale(0%) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.socialIcons a:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

/* --- Footer Nav Links --- */
.downFooter nav {
    display: grid;
    gap: var(--spacing-md);
    place-items: center;
    margin: var(--spacing-xs) 0;
}

.policy {
    padding-top: var(--spacing-sm);
    font-size: 12px;
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--nav-head-font);
    font-weight: 300;
    transition: color var(--transition-fast),
                background var(--transition-base);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
}

.policy:hover,
.policy:focus {
    color: var(--service-link-hover-color);
    background: rgba(0, 0, 0, 0.05);
    text-decoration: underline;
    text-underline-offset: 3px;
}

:is(html.dark-mode, body.dark-mode) .policy:hover {
    background: rgba(255, 255, 255, 0.05);
}

.policy:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 3px;
}

/* --- Footer Bottom --- */
.footerBottom {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-xs);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 90%;
    text-align: center;
    transition: border-color var(--transition-base);
}

:is(html.dark-mode, body.dark-mode) .footerBottom {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.footerBottom p {
    font-size: smaller;
    font-family: var(--nav-head-font);
    font-weight: 300;
    color: var(--text-muted);
    padding: 0;
    margin: 0.5rem 0;
    line-height: 1.65;
    transition: color var(--transition-base);
}
