/**
 * Taka101 Comprehensive Design System & Brand Kit
 * Foundation: LegalBD Terminal Neutral Architecture (+5% Contrast Offset)
 * Palette: Sovereign Financial Emerald + Bullion Gold
 * Layout: WooCommerce Storefront Box-Type Minimalist Grid (Max-Width 1480px)
 */

@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/NotoSansBengali-Variable.woff2') format('woff2');
  unicode-range: U+0980-09FF, U+200C-200D, U+20B9, U+25CC;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/Inter-Variable.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/JetBrainsMono-Variable.woff2') format('woff2');
}

:root {
  --tk-font-scale:           1;
  --tk-font-sans:            'Inter', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, sans-serif;
  --tk-font-mono:            'JetBrains Mono', 'Noto Sans Bengali', monospace;

  --tk-text-xs:              calc(0.75rem * var(--tk-font-scale));
  --tk-text-sm:              calc(0.84375rem * var(--tk-font-scale));
  --tk-text-base:            calc(1rem * var(--tk-font-scale));
  --tk-text-lg:              calc(1.125rem * var(--tk-font-scale));
  --tk-text-xl:              calc(1.25rem * var(--tk-font-scale));
  --tk-text-2xl:             calc(1.5rem * var(--tk-font-scale));
  --tk-text-3xl:             calc(1.875rem * var(--tk-font-scale));
  --tk-text-4xl:             calc(2.25rem * var(--tk-font-scale));

  --tk-emerald-50:           #ecfdf5;
  --tk-emerald-100:          #d1fae5;
  --tk-emerald-200:          #a7f3d0;
  --tk-emerald-400:          #34d399;
  --tk-emerald-500:          #10b981;
  --tk-emerald-600:          #059669;
  --tk-emerald-700:          #047857;
  --tk-emerald-800:          #065f46;
  --tk-emerald-900:          #064e3b;

  --tk-color-shariah:        #0d9488;
  --tk-color-gold:           #b45309;
  --tk-color-success:        #059669;
  --tk-color-warning:        #d97706;
  --tk-color-danger:         #dc2626;
  --tk-color-info:           #2563eb;

  --tk-menu-py:              0.375rem;
  --tk-menu-px:              0.625rem;
  --tk-menu-gap:             0.25rem;
  --tk-header-height:        3.25rem;
  --tk-max-width:            1480px;
}

:root[data-theme="light"],
:root {
  --tk-bg-canvas:            #ffffff;
  --tk-bg-surface:           #f5f8f7;
  --tk-bg-surface-raised:    #ffffff;
  --tk-bg-code:              #ecf2f0;

  --tk-text-primary:         #070d0b;
  --tk-text-secondary:       #2b3d37;
  --tk-text-muted:           #52665e;
  --tk-text-inverse:         #ffffff;

  --tk-border-subtle:        #d5e0dc;
  --tk-border-strong:        #adc0b9;
  --tk-border-focus:         #047857;

  --tk-accent-solid:         #047857;
  --tk-accent-hover:         #065f46;
  --tk-accent-soft-bg:       #e6f7f1;
  --tk-accent-soft-text:     #064e3b;
  --tk-accent-soft-border:   #a7f3d0;

  --tk-warning-bg:           #fef3c7;
  --tk-warning-border:       #f59e0b;
  --tk-warning-text:         #78350f;

  --tk-shadow-sm:            0 1px 2px 0 rgba(7, 13, 11, 0.05);
  --tk-shadow-md:            0 4px 10px -1px rgba(7, 13, 11, 0.08);
  --tk-shadow-focus:         0 0 0 3px rgba(4, 120, 87, 0.24);
}

:root[data-theme="dark"] {
  --tk-bg-canvas:            #050807;
  --tk-bg-surface:           #0b1210;
  --tk-bg-surface-raised:    #111c19;
  --tk-bg-code:              #020403;

  --tk-text-primary:         #fbfdfc;
  --tk-text-secondary:       #a5b8b1;
  --tk-text-muted:           #687d75;
  --tk-text-inverse:         #050807;

  --tk-border-subtle:        #182823;
  --tk-border-strong:        #28423a;
  --tk-border-focus:         #34d399;

  --tk-accent-solid:         #10b981;
  --tk-accent-hover:         #059669;
  --tk-accent-soft-bg:       rgba(16, 185, 129, 0.14);
  --tk-accent-soft-text:     #a7f3d0;
  --tk-accent-soft-border:   rgba(52, 211, 153, 0.32);

  --tk-warning-bg:           rgba(245, 158, 11, 0.14);
  --tk-warning-border:       rgba(245, 158, 11, 0.4);
  --tk-warning-text:         #fde68a;

  --tk-shadow-sm:            0 1px 3px 0 rgba(0, 0, 0, 0.65);
  --tk-shadow-md:            0 6px 14px -2px rgba(0, 0, 0, 0.78);
  --tk-shadow-focus:         0 0 0 3px rgba(52, 211, 153, 0.35);
}

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

/* Force-hide any legacy floating left sidebar or unrequested toast */
.legacy-left-sidebar,
.floating-icon-rail {
  display: none !important;
}

body {
  margin: 0;
  padding: 0 !important;
  background-color: var(--tk-bg-canvas);
  color: var(--tk-text-primary);
  font-family: var(--tk-font-sans);
  font-size: var(--tk-text-base);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.tk-icon {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  flex-shrink: 0;
}

.tk-mono,
.tk-metric-value,
.tk-table td,
input[type="number"] {
  font-family: var(--tk-font-mono);
  font-variant-numeric: tabular-nums;
}

.tk-container {
  width: 100%;
  max-width: var(--tk-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .tk-container {
    padding: 0 1.75rem;
  }
}

/* 1. Top Ticker & Accessible Beta Notice */
.tk-top-strip {
  background-color: #050807;
  color: #a5b8b1;
  border-bottom: 1px solid #182823;
  font-size: var(--tk-text-xs);
  padding: 0.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tk-beta-notice {
  background-color: var(--tk-warning-bg);
  color: var(--tk-warning-text);
  border-bottom: 1px solid var(--tk-warning-border);
  font-size: var(--tk-text-xs);
  font-weight: 500;
  padding: 0.3rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* 2. Unified 52px Sticky Header & Mega-Menu */
.tk-navbar {
  height: var(--tk-header-height);
  background-color: var(--tk-bg-surface);
  border-bottom: 1px solid var(--tk-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.tk-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: var(--tk-text-lg);
  color: var(--tk-text-primary);
  text-decoration: none;
}

.tk-nav-menu {
  display: none;
  align-items: center;
  gap: var(--tk-menu-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .tk-nav-menu {
    display: flex;
  }
  .tk-mobile-toggle {
    display: none !important;
  }
}

.tk-nav-item {
  position: relative;
}

.tk-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--tk-font-sans);
  font-size: var(--tk-text-sm);
  font-weight: 500;
  color: var(--tk-text-secondary);
  background: transparent;
  border: 1px solid transparent;
  padding: var(--tk-menu-py) var(--tk-menu-px);
  border-radius: 0 !important;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.12s ease;
}

.tk-nav-trigger:hover,
.tk-nav-trigger[aria-expanded="true"] {
  background-color: var(--tk-accent-soft-bg);
  color: var(--tk-accent-soft-text);
  border-color: var(--tk-accent-soft-border);
}

.tk-mega-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  min-width: 520px;
  background-color: var(--tk-bg-surface-raised);
  border: 1px solid var(--tk-border-strong);
  border-radius: 0 !important;
  box-shadow: var(--tk-shadow-md);
  padding: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  z-index: 1050;
}

.tk-nav-item:hover .tk-mega-dropdown,
.tk-nav-item:focus-within .tk-mega-dropdown,
.tk-mega-dropdown.is-open {
  display: grid;
}

.tk-mega-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0 !important;
  text-decoration: none;
  color: var(--tk-text-primary);
  font-size: var(--tk-text-sm);
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.12s ease;
}

.tk-mega-link:hover {
  background-color: var(--tk-bg-surface);
  border-color: var(--tk-border-subtle);
  color: var(--tk-accent-solid);
}

/* 3. Accessibility & Language Cluster */
.tk-a11y-cluster {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tk-utility-group {
  display: inline-flex;
  align-items: center;
  background-color: var(--tk-bg-canvas);
  border: 1px solid var(--tk-border-subtle);
  border-radius: 0 !important;
  padding: 1px;
}

.tk-utility-btn {
  background: transparent;
  border: none;
  color: var(--tk-text-secondary);
  font-family: var(--tk-font-sans);
  font-size: var(--tk-text-xs);
  font-weight: 600;
  padding: 0.25rem 0.45rem;
  border-radius: 0 !important;
  cursor: pointer;
}

.tk-utility-btn[aria-pressed="true"] {
  background-color: var(--tk-accent-solid);
  color: #ffffff;
}

/* 4. Mobile Slide-Over Navigation Drawer */
.tk-mobile-drawer {
  position: fixed;
  inset: 0;
  background-color: rgba(5, 8, 7, 0.65);
  z-index: 2000;
  display: none;
}

.tk-mobile-drawer.is-open {
  display: block;
}

.tk-mobile-panel {
  width: min(320px, 88vw);
  height: 100%;
  background-color: var(--tk-bg-surface-raised);
  border-right: 1px solid var(--tk-border-strong);
  padding: 1rem;
  overflow-y: auto;
}

/* 5. Compact Hero Section */
.tk-hero {
  background-color: var(--tk-bg-surface);
  border-bottom: 1px solid var(--tk-border-subtle);
  padding: 1.75rem 0;
}

.tk-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 992px) {
  .tk-hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.tk-hero h1 {
  font-size: var(--tk-text-3xl);
  margin: 0 0 0.25rem 0;
  line-height: 1.25;
}

/* 6. Single-Row Calculator Bar & 2-Column Desktop Grid */
.tk-calc-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background-color: var(--tk-bg-surface);
  border: 1px solid var(--tk-border-subtle);
  padding: 0.4rem;
  border-radius: 0 !important;
  margin: 1.25rem 0;
  overflow-x: auto;
}

.tk-calc-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tk-calc-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  padding: 0.42rem 0.7rem;
  font-family: var(--tk-font-sans);
  font-size: var(--tk-text-sm);
  font-weight: 500;
  color: var(--tk-text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0 !important;
  cursor: pointer;
}

.tk-calc-tab[aria-selected="true"] {
  background-color: var(--tk-accent-solid);
  color: #ffffff;
  font-weight: 600;
}

.tk-calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 992px) {
  .tk-calc-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.tk-panel-box {
  background-color: var(--tk-bg-surface-raised);
  border: 1px solid var(--tk-border-subtle);
  border-radius: 0 !important;
  padding: 1.25rem;
  box-shadow: var(--tk-shadow-sm);
}

.tk-form-group {
  margin-bottom: 0.9rem;
}

.tk-form-label {
  display: block;
  font-size: var(--tk-text-sm);
  font-weight: 600;
  color: var(--tk-text-secondary);
  margin-bottom: 0.3rem;
}

.tk-input,
.tk-select {
  width: 100%;
  padding: 0.5rem 0.7rem;
  font-family: var(--tk-font-sans);
  font-size: var(--tk-text-base);
  color: var(--tk-text-primary);
  background-color: var(--tk-bg-canvas);
  border: 1px solid var(--tk-border-strong);
  border-radius: 0 !important;
}

.tk-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.tk-kpi-box {
  background-color: var(--tk-bg-code);
  border: 1px solid var(--tk-border-subtle);
  border-left: 3px solid var(--tk-accent-solid);
  border-radius: 0 !important;
  padding: 0.6rem 0.75rem;
}

.tk-kpi-label {
  font-size: var(--tk-text-xs);
  color: var(--tk-text-muted);
  display: block;
}

.tk-kpi-val {
  font-family: var(--tk-font-mono);
  font-size: var(--tk-text-lg);
  font-weight: 700;
  color: var(--tk-text-primary);
}

/* 7. Progressive Comparison Filter Bar & Storefront Boxed Grid */
.tk-macro-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.tk-filter-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  background-color: var(--tk-bg-surface);
  border: 1px solid var(--tk-border-subtle);
  padding: 0.75rem;
  border-radius: 0 !important;
}

@media (min-width: 992px) {
  .tk-filter-toolbar {
    grid-template-columns: 2fr 1.2fr 1fr 1fr auto;
    align-items: center;
  }
}

.tk-advanced-drawer {
  display: none;
  margin-top: 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--tk-border-subtle);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.tk-advanced-drawer.is-open {
  display: grid;
}

.tk-storefront-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.tk-box-card {
  background-color: var(--tk-bg-surface-raised);
  border: 1px solid var(--tk-border-subtle);
  border-radius: 0 !important;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: var(--tk-shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tk-box-card:hover {
  border-color: var(--tk-border-strong);
  box-shadow: var(--tk-shadow-md);
}

.tk-box-card.is-selected {
  border-color: var(--tk-accent-solid);
  box-shadow: 0 0 0 1px var(--tk-accent-solid);
}

.tk-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.tk-compare-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--tk-text-xs);
  font-weight: 600;
  color: var(--tk-text-secondary);
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  border-radius: 0 !important;
  border: 1px solid var(--tk-border-subtle);
  background-color: var(--tk-bg-surface);
}

.tk-metric-box {
  background-color: var(--tk-bg-code);
  border: 1px solid var(--tk-border-subtle);
  border-radius: 0 !important;
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tk-metric-value {
  font-size: var(--tk-text-xl);
  font-weight: 700;
  color: var(--tk-text-primary);
}

.tk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.5rem;
  font-size: var(--tk-text-xs);
  font-weight: 600;
  border-radius: 0 !important;
  background-color: var(--tk-accent-soft-bg);
  color: var(--tk-accent-soft-text);
  border: 1px solid var(--tk-accent-soft-border);
}

.tk-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: var(--tk-text-sm);
  font-weight: 600;
  border-radius: 0 !important;
  background-color: var(--tk-accent-solid);
  color: #ffffff !important;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.tk-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  font-size: var(--tk-text-sm);
  font-weight: 500;
  border-radius: 0 !important;
  background-color: var(--tk-bg-canvas);
  color: var(--tk-text-primary);
  border: 1px solid var(--tk-border-strong);
  cursor: pointer;
  text-decoration: none;
}

/* Sticky Bottom Comparison Tray */
.tk-compare-tray {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--tk-bg-surface-raised);
  border-top: 2px solid var(--tk-accent-solid);
  box-shadow: var(--tk-shadow-md);
  padding: 0.65rem 1.25rem;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: space-between;
}

.tk-compare-tray.is-visible {
  display: flex;
}

:focus-visible {
  outline: none;
  box-shadow: var(--tk-shadow-focus);
}

/* 12. Accessibility & Best Practices Enhancements */
html {
  scroll-behavior: smooth;
}

.tk-skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  z-index: 9999;
  background-color: var(--tk-accent-solid);
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  font-weight: 700;
  font-size: var(--tk-text-sm);
  text-decoration: none;
  border-radius: 4px;
  box-shadow: var(--tk-shadow-md);
  transition: top 0.15s ease-out;
}

.tk-skip-link:focus {
  top: 0.75rem;
  outline: none;
  box-shadow: var(--tk-shadow-focus);
}

/* Touch Momentum Scrolling */
.tk-calc-bar-wrap {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Mobile Safe-Area Inset Support */
@supports (padding: env(safe-area-inset-bottom)) {
  .tk-compare-tray {
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom));
  }
  .tk-navbar {
    padding-left: calc(0.75rem + env(safe-area-inset-left));
    padding-right: calc(0.75rem + env(safe-area-inset-right));
  }
}

/* High-Contrast Print Optimization */
@media print {
  .tk-beta-notice,
  .tk-navbar,
  .tk-a11y-cluster,
  .tk-calc-bar-wrap,
  .tk-compare-tray,
  .tk-mobile-toggle,
  .tk-skip-link,
  #mobile-navigation-drawer,
  nav[aria-label="Main Navigation"],
  header,
  footer {
    display: none !important;
  }

  body {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }

  .tk-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .tk-box-card {
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    margin-bottom: 0.75rem !important;
  }

  .tk-hero {
    border-bottom: 1px solid #cccccc !important;
    padding: 0.75rem 0 !important;
  }

  a {
    text-decoration: none !important;
    color: #000000 !important;
  }
}

/* 13. WooCommerce Storefront Box-Type Square Geometry Enforcement */
*,
*::before,
*::after,
.tk-btn-primary,
.tk-btn-outline,
.tk-utility-btn,
.tk-box-card,
.tk-calc-tab,
.tk-calc-bar-wrap,
.tk-panel-box,
.tk-badge,
.tk-tag,
.tk-input,
.tk-select,
.tk-navbar,
.tk-mega-dropdown,
.tk-metric-box,
.tk-kpi-box,
.tk-compare-check,
.tk-filter-toolbar,
.tk-macro-pill,
.tk-back-to-top,
.tk-user-menu,
.tk-user-dropdown,
.tk-mobile-a11y-trigger,
.tk-mobile-a11y-panel,
.rounded,
.rounded-sm,
.rounded-md,
.rounded-lg,
.rounded-xl,
.rounded-2xl,
.rounded-full {
  border-radius: 0 !important;
}

/* 14. Floating Back to Top Control */
.tk-back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  background-color: var(--tk-accent-solid);
  color: #ffffff;
  border: 1px solid var(--tk-border-subtle);
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--tk-shadow-md);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.15s ease;
}

.tk-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.tk-back-to-top:hover {
  background-color: var(--tk-accent-hover);
}

.tk-back-to-top:focus-visible {
  outline: none;
  box-shadow: var(--tk-shadow-focus);
}

/* 15. Mobile Floating Accessibility Drawer */
.tk-mobile-a11y-trigger {
  position: fixed;
  bottom: 5rem;
  right: 1rem;
  z-index: 999;
  background-color: var(--tk-bg-surface-raised);
  color: var(--tk-text-primary);
  border: 2px solid var(--tk-accent-solid);
  padding: 0.45rem 0.65rem;
  font-size: var(--tk-text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: var(--tk-shadow-md);
  cursor: pointer;
}

.tk-mobile-a11y-panel {
  position: fixed;
  bottom: 8.5rem;
  right: 1rem;
  width: min(290px, calc(100vw - 2rem));
  background-color: var(--tk-bg-surface-raised);
  border: 1px solid var(--tk-border-strong);
  box-shadow: var(--tk-shadow-md);
  padding: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tk-mobile-a11y-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tk-mobile-a11y-label {
  font-size: var(--tk-text-xs);
  font-weight: 700;
  color: var(--tk-text-muted);
  text-transform: uppercase;
}

/* 16. Logged-in User Settings Menu */
.tk-user-menu {
  position: relative;
}

.tk-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  background-color: var(--tk-bg-surface);
  border: 1px solid var(--tk-border-subtle);
  color: var(--tk-text-primary);
  font-size: var(--tk-text-xs);
  font-weight: 600;
  cursor: pointer;
}

.tk-user-trigger:hover {
  border-color: var(--tk-border-strong);
  background-color: var(--tk-bg-surface-raised);
}

.tk-user-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  width: 220px;
  background-color: var(--tk-bg-surface-raised);
  border: 1px solid var(--tk-border-strong);
  box-shadow: var(--tk-shadow-md);
  padding: 0.5rem 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
}

.tk-user-dropdown a,
.tk-user-dropdown button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  font-size: var(--tk-text-sm);
  color: var(--tk-text-secondary);
  text-decoration: none;
  background: transparent;
  border: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.tk-user-dropdown a:hover,
.tk-user-dropdown button:hover {
  background-color: var(--tk-bg-surface);
  color: var(--tk-accent-solid);
}

.tk-user-dropdown-divider {
  height: 1px;
  background-color: var(--tk-border-subtle);
  margin: 0.35rem 0;
}

/* Responsive mobile adjustments for tags/chips */
@media (max-width: 640px) {
  .tk-a11y-cluster .tk-utility-group {
    display: none !important;
  }
  .tk-a11y-cluster #tk-theme-toggle {
    display: none !important;
  }
}

