   /* =========================================
   ROOT TOKENS
   ========================================= */
:root {
  /* Brand + palette */
  --teal-900: #022c30;
  --teal-700: #036972;
  --teal-600: #00a3b0;
  --cta: var(--teal-600);
  --cta-dark: var(--teal-700);
  --cta-hover: #19c6d4;

  --bg: #020617;
  --card: #020617;
  --ink-900: #e5e7eb;
  --ink-700: #9ca3af;
  --ink-500: #6b7280;
  --muted: #6b7280;
  --border: #1f2937;

  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.8);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.95);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.98);

  /* tightened radii – almost square */
  --radius-lg: 6px;
  --radius-md: 4px;
  --radius-sm: 2px;

  --container: 1480px; /* widened */
  --header-h: 56px;

  --ring: rgba(0, 163, 176, 0.45);
  --info-bg: #020617;
  --info-bd: #334155;
}

/* =========================================
   BASE
   ========================================= */
* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink-900);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

.section { padding: 24px 0; }
.section + .section { border-top: 1px solid var(--border); }

.small-text { font-size: 14px; }

.muted {
  color: var(--ink-500);
  font-size: 14px;
}

/* =========================================
   HEADER / NAV – TRANSPARENT TEAL GLASS
   ========================================= */
.ib-header{
  position: sticky;
  top: 0;
  z-index: 40;

  /* Blue/teal tint + dark falloff for readability on hero images */
  background: linear-gradient(
    180deg,
    rgba(0, 163, 176, 0.28) 0%,
    rgba(2, 6, 23, 0.70) 65%,
    rgba(2, 6, 23, 0.92) 100%
  );

  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);

  border-bottom: 1px solid rgba(0, 163, 176, 0.35);
}

.ib-nav{
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* Brand */
.ib-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  color: #ecfeff;
}

.ib-brand-logo{
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--cta), var(--cta-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(0, 163, 176, 0.6);
}

/* Desktop links */
.ib-nav-links{
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;     /* larger */
  font-weight: 900;    /* bold */
  letter-spacing: 0.25px;
  color: #dbeafe;      /* blue-white */
}

.ib-nav-link{
  position: relative;
  padding: 6px 8px;
  border: none;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* hover/focus */
.ib-nav-link:hover,
.ib-nav-link:focus-visible{
  color: #ffffff;
}

/* underline */
.ib-nav-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-5px;
  width:0;
  height:2px;
  background: linear-gradient(90deg, #22d3ee, #00a3b0);
  border-radius:2px;
  transition: width 0.35s ease;
}
.ib-nav-link:hover::after,
.ib-nav-link.is-active::after{
  width:100%;
}
.ib-nav-link.is-active{
  color:#22d3ee;
}

.ib-caret{
  font-size: 11px;
  opacity: 0.85;
}

/* Dropdown */
.ib-has-dropdown{ position: relative; }

.ib-dropdown{
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  min-width: 220px;

  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 163, 176, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
  padding: 6px 0;
  display: none;
  z-index: 50;
}

/* show dropdown on .open (JS) */
.ib-has-dropdown.open .ib-dropdown{ display:block; }

/* show dropdown on hover (desktop) */
@media (min-width: 821px){
  .ib-has-dropdown:hover > .ib-dropdown{ display:block; }
}

.ib-dropdown-link{
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
  color: #cbd5e1;
}
.ib-dropdown-link:hover{
  background: rgba(0, 163, 176, 0.18);
  color:#ffffff;
}

/* Burger */
.ib-burger{
  display:none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 163, 176, 0.45);
  background: rgba(2, 6, 23, 0.80);
  cursor:pointer;

  align-items:center;
  justify-content:center;
  gap:4px;
  flex-direction: column;
}

.ib-burger-line{
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e0f2fe;
}

/* Mobile menu */
.ib-mobile-menu{
  display:none;
  background: rgba(2, 6, 23, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 163, 176, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

/* Support BOTH class names safely */
.ib-mobile-menu.open,
.ib-mobile-menu.ib-mobile-open{
  display:block;
}

.ib-mobile-nav{
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 18px 14px;
  display:flex;
  flex-direction: column;
  gap: 8px;
}

.ib-mobile-nav a{
  font-size: 15px;
  font-weight: 900;
  color: #dbeafe;
  padding: 6px 0;
}
.ib-mobile-nav a.is-active{ color:#22d3ee; }

/* Mobile tools section */
.ib-mobile-section{
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 163, 176, 0.25);
  padding: 6px 10px;
  background: rgba(2, 6, 23, 0.75);
}

.ib-mobile-summary{
  list-style: none;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:8px;
  cursor:pointer;
  font-size: 15px;
  font-weight: 900;
  color: #dbeafe;
}
.ib-mobile-summary::-webkit-details-marker{ display:none; }

.ib-mobile-links{
  margin-top: 6px;
  display:flex;
  flex-direction: column;
  gap: 6px;
}
.ib-mobile-links a{
  font-weight: 800;
  color: #cbd5e1;
}

/* Responsive */
@media (max-width: 820px){
  .ib-nav-links{ display:none; }
  .ib-burger{ display:flex; }
}
@media (min-width: 821px){
  .ib-mobile-menu{ display:none !important; }
}

/* =========================================
   LEGACY SIMPLE NAV (.nav) – (if used elsewhere)
   ========================================= */
.nav a{
  font-weight: 600;
  color: var(--muted);
  position: relative;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav a:hover,
.nav a:focus-visible{
  color: var(--ink-900);
  background: rgba(0, 163, 176, 0.18);
}
.mobile-links a{
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.mobile-links a:hover,
.mobile-links a:focus-visible{
  background: rgba(15, 23, 42, 0.85);
  color: var(--ink-900);
}

/* =========================================
   CARDS / BUTTONS
   ========================================= */
.card,
.bmi-card,
.peptide-card,
.calc-card{
  background: radial-gradient(circle at top left, #020b1f 0%, #020617 55%, #000000 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

button,
.btn,
.bmi-btn,
.primary-btn,
.secondary-btn{
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
}

.btn-primary,
.primary-btn{
  background: var(--cta);
  color: #f9fafb;
  box-shadow: 0 14px 32px rgba(0, 163, 176, 0.55);
}
.btn-primary:hover,
.primary-btn:hover{
  background: var(--cta-dark);
  box-shadow: var(--shadow-md);
}

.btn-secondary,
.secondary-btn{
  background: #020617;
  color: var(--ink-900);
  border-color: var(--border);
}
.btn-secondary:hover,
.secondary-btn:hover{
  border-color: var(--cta);
}

/* =========================================
   CALCULATOR SHELL
   ========================================= */
#calculator.form-container{
  background: #020617;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.calc-wrap{
  display:flex;
  align-items:flex-start;
  gap:24px;
}

.calc-grid{
  flex: 1 1 0;
  min-width: 0;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.full{ grid-column: 1 / -1; }

/* Right-hand results / syringe panel */
.out{
  flex: 0 0 320px;
  background:#020617;
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:9px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.out h3{
  margin: 0 0 0.2px;
  font-size: 18px;
  color: var(--cta-hover);
}

.kpi{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
  margin-bottom:12px;
}

.kpi .card{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap:12px;
  background:#020617;
  border-radius: var(--radius-md);
  padding:10px 12px;
  box-shadow:none;
}

/* Presets / toggles */
.seg-toggle{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:8px;
  background:#020617;
  border-radius: var(--radius-lg);
  padding:6px;
  max-width: 420px;
  border:1px solid var(--border);
}
.seg-btn{
  background:#020b1f;
  color: var(--ink-700);
  border-radius: var(--radius-md);
  border:1px solid transparent;
}
.seg-btn[aria-checked="true"]{
  background: var(--cta);
  color:#f9fafb;
}

.preset-row{
  display:flex;
  flex-wrap: wrap;
  gap:8px;
  margin-top:8px;
}
.preset{
  border:1px solid #1f2937;
  background:#020617;
  padding:6px 10px;
  border-radius: var(--radius-md);
  cursor:pointer;
  font-weight:600;
  font-size:13px;
  color: var(--ink-700);
}
.preset:hover{ background:#020b1f; }
.preset.active,
.preset[aria-pressed="true"]{
  background: var(--cta);
  color:#f9fafb;
  border-color: var(--cta);
}

/* Live chips */
.live-reads{
  display:flex;
  gap:6px;
  flex-wrap: wrap;
  align-items:center;
}
.live-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  font-size:13px;
  line-height:1.2;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.16);
  border: 1px solid rgba(34, 197, 235, 0.4);
  color: var(--cta-hover);
  box-shadow: 0 1px 0 rgba(0,0,0,0.3);
}

/* =========================================
   SLIDERS – large touch hitbox + animated fill
   ========================================= */
input[type="range"]{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  background:transparent;
  outline:none;
  border:none;
  height:28px;
  --ib-range-fill: 50%;
  touch-action: pan-x;
}

input[type="range"]::-webkit-slider-runnable-track{
  height:8px;
  border-radius:999px;
  background: linear-gradient(
    to right,
    var(--cta) 0,
    var(--cta) var(--ib-range-fill, 50%),
    #0f172a var(--ib-range-fill, 50%),
    #0f172a 100%
  );
  transition: background 0.15s ease-out;
}

input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:22px;
  height:22px;
  border-radius:50%;
  background: var(--cta);
  border:2px solid #020617;
  box-shadow: 0 1px 3px rgba(15,23,42,0.85);
  cursor:pointer;
  margin-top:-7px;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
}

input[type="range"]::-moz-range-track{
  height:8px;
  border-radius:999px;
  background: linear-gradient(
    to right,
    var(--cta) 0,
    var(--cta) var(--ib-range-fill, 50%),
    #0f172a var(--ib-range-fill, 50%),
    #0f172a 100%
  );
  transition: background 0.15s ease-out;
}

input[type="range"]::-moz-range-thumb{
  width:22px;
  height:22px;
  border-radius:50%;
  background: var(--cta);
  border:2px solid #020617;
  box-shadow: 0 1px 3px rgba(15,23,42,0.85);
  cursor:pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
}

input[type="range"]:active::-webkit-slider-thumb{
  transform: scale(1.1);
  background: var(--cta-hover);
  box-shadow: 0 0 0 8px rgba(0,178,181,0.45);
}
input[type="range"]:active::-moz-range-thumb{
  transform: scale(1.1);
  background: var(--cta-hover);
  box-shadow: 0 0 0 8px rgba(0,178,181,0.45);
}

/* =========================================
   NOTICE / WARNINGS
   ========================================= */
.notice{
  background:#1f2937;
  border:1px solid #facc15;
  padding:12px;
  border-radius: var(--radius-md);
  text-align:center;
  font-weight:600;
  font-size:15px;
  color:#fef9c3;
  margin-top:16px;
}

.warn{
  margin-top:8px;
  padding:8px 10px;
  border:1px solid #f97373;
  background:#451a1a;
  color:#fecaca;
  border-radius: var(--radius-md);
}

/* =========================================
   HERO (global default)
   ========================================= */
.hero{
  position: relative;
  display:flex;
  flex-direction: column;
  align-items:center;
  padding: 80px 20px;
  text-align:center;
  overflow:hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(0,147,149,0.16), transparent 60%),
    radial-gradient(900px 450px at -10% 10%, rgba(34,211,238,0.12), transparent 60%),
    linear-gradient(to bottom, #020617 0%, #020617 55%, #000000 100%);
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("/needle1400.webp") center bottom / contain no-repeat;
  opacity:0.22;
  z-index:0;
  pointer-events:none;
}

@media (max-width: 1200px){
  .hero::before{ background-image: url("/needle1000.webp"); }
}
@media (max-width: 768px){
  .hero::before{ background-image: url("/needle600.webp"); }
}

.hero > *{ position: relative; z-index:1; }

.hero-inner{
  max-width: var(--container);
  width:100%;
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:36px;
  padding: 9px 0 40px;
}

.hero h1{
  font-size: 2.4rem;
  line-height:1.15;
  margin: 8px 0 16px;
  font-weight: 900;
  color:#e5f3f3;
}

.hero p{
  font-size: 1.1rem;
  color: var(--ink-700);
  margin: 0 0 24px;
}

.tag{
  display:inline-block;
  font-size:0.8rem;
  font-weight:800;
  letter-spacing:0.3px;
  color:#a5f3fc;
  background: rgba(0,147,149,0.22);
  padding:6px 10px;
  border-radius:999px;
}

.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

/* =========================================
   CTA BAR
   ========================================= */
.cta-bar{
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0) 0%,
    rgba(2, 6, 23, 0.9) 18%,
    #020617 100%
  );
  border-top: 1px solid var(--border);
  transition: transform 0.18s ease, opacity 0.18s ease;
  will-change: transform, opacity;
}

.cta-bar--hidden{
  transform: translateY(110%);
  opacity:0;
  pointer-events:none;
}

.cta-bar .container{
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.cta-bar-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:12px;
  padding:14px 0;
}

.cta-bar-title{
  color:#e5f3f3;
  margin:0;
}

.cta-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

/* =========================================
   FOOTER (DARK)
   ========================================= */
.ib-footer{
  background:#06514c;
  color:#e5e7eb;
  padding:12px 12px 12px;
  margin-top:12px;
}

.ib-footer-inner{
  max-width: 1080px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap:32px;
}

.ib-footer-col ul,
.ib-footer-links{
  list-style:none;
  margin:0;
  padding:0;
}

.ib-footer-logo{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
  color:#f9fafb;
}

.ib-footer-logo-mark{
  width:34px;
  height:34px;
  border-radius:999px;
  background: var(--cta);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  box-shadow: 0 0 18px rgba(0,0,0,0.6);
}

.ib-footer-tagline{
  margin:0;
  font-size:14px;
  opacity:0.8;
  max-width:260px;
  line-height:1.5;
}

.ib-footer-heading{
  font-size:13px;
  font-weight:600;
  margin:0 0 12px;
  text-transform: uppercase;
  letter-spacing:0.05em;
  opacity:0.75;
  color:#f9fafb;
}

.ib-footer-links a{
  display:block;
  color:#e5e7eb;
  font-size:14px;
  padding:2px 0;
  opacity:0.85;
}
.ib-footer-links a:hover{
  opacity:1;
  color: var(--cta-hover);
}

.ib-footer-bottom{
  max-width: 1080px;
  margin:36px auto 0;
  border-top: 1px solid rgba(148,163,184,0.4);
  padding-top:20px;
  display:flex;
  align-items:center;
  justify-content: space-between;
}

.ib-footer-disclaimer{
  margin:0 0 10px;
  font-size:13px;
  line-height:1.5;
  opacity:0.8;
}
.ib-footer-copy{
  margin:0;
  font-size:13px;
  opacity:0.7;
}

.ib-footer-social{
  display:flex;
  gap:14px;
}

.ib-social-icon svg{
  width:22px;
  height:22px;
  opacity:0.9;
  transition: opacity 0.2s ease;
}
.ib-social-icon:hover svg{ opacity:1; }

.ib-footer-separator{
  width:100%;
  height:1px;
  background: rgba(148,163,184,0.35);
  margin:24px 0 12px 0;
}

/* =========================================
   SCROLL TO TOP BUTTON (MOBILE)
   ========================================= */
#ib-scroll-top{
  position: fixed;
  bottom: 84px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cta, #00b2b5);
  color: #020617;
  border: none;
  font-size: 22px;
  font-weight: 700;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  opacity:0;
  transform: translateY(20px);
  pointer-events:none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index:9999;
}
#ib-scroll-top.visible{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}
@media (min-width: 981px){
  #ib-scroll-top{ display:none !important; }
}

/* =========================================
   RESPONSIVE: CALCULATOR / HERO / FOOTER
   ========================================= */
@media (max-width: 900px){
  #calculator.form-container{ padding: 9px; }
  .calc-wrap{ flex-direction: column; gap: 9px; }
  .calc-grid{
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
  .out{ position: static; width: 100%; margin-top: 8px; }

  .hero-inner{ grid-template-columns: 1fr; }
  .hero .container{ padding-left: 24px; padding-right: 24px; }

  .cta-row{ justify-content: center; }
  .cta-row .btn{ width: 100%; max-width: 520px; }

  .cta-bar-inner{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .cta-actions{
    flex-direction: column;
    width:100%;
    max-width: 520px;
  }
  .cta-actions .btn{ width:100%; }

  .ib-footer-inner{ grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 700px){
  .ib-footer-inner{ grid-template-columns: 1fr 1fr; }
  .ib-footer-brand{ grid-column: 1 / -1; }
}

@media (max-width: 480px){
  .ib-footer-inner{ grid-template-columns: 1fr; }
  .ib-footer-bottom{
    flex-direction: column;
    align-items: flex-start;
  }
  .ib-footer-disclaimer{ font-size: 12px; }
}

@media (prefers-reduced-motion: reduce){
  .cta-bar{ transition:none; }
}
/* =========================================
   NAV BAR – EXTRA TRANSPARENT OVERRIDE
   (paste at very bottom)
   ========================================= */
.ib-header{
  background: linear-gradient(
    180deg,
    rgba(0, 163, 176, 0.12) 0%,
    rgba(2, 6, 23, 0.38) 55%,
    rgba(2, 6, 23, 0.55) 100%
  ) !important;

  backdrop-filter: saturate(140%) blur(16px) !important;
  -webkit-backdrop-filter: saturate(140%) blur(16px) !important;

  border-bottom: 1px solid rgba(0, 163, 176, 0.18) !important;
}
/* =========================================
   NAV DROPDOWN – STAY OPEN (HOVER + FOCUS)
   Paste at bottom of style.css
   ========================================= */

/* Ensure the dropdown is anchored to the whole item */
.ib-has-dropdown { position: relative; }

/* Remove the "hover buffer" gap if it exists (it causes flicker) */
.ib-has-dropdown::after { display: none !important; }

/* Make the dropdown easier to hit */
.ib-dropdown{
  margin-top: 0 !important;          /* kills hover gap */
  padding-top: 8px;                  /* keeps visual spacing inside */
}

/* Keep open while hovering the parent OR the dropdown itself */
@media (min-width: 821px){
  .ib-has-dropdown:hover > .ib-dropdown,
  .ib-has-dropdown:focus-within > .ib-dropdown,
  .ib-dropdown:hover{
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Stop "pointer-events:none" from breaking hover-to-dropdown */
  .ib-dropdown{
    pointer-events: auto !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
  }

  /* When active via hover/focus, make it visible */
  .ib-has-dropdown:hover > .ib-dropdown,
  .ib-has-dropdown:focus-within > .ib-dropdown{
    opacity: 1;
    visibility: visible;
  }
}

/* Optional: bigger hitbox on the Tools button */
.ib-dropdown-toggle{
  padding: 8px 10px !important;
}
/* =========================================
   FOOTER FIX (paste at very bottom)
   - One line at top of footer bottom area
   - One line at very bottom of footer
   - Bigger footer typography
   ========================================= */

/* Remove the extra horizontal line (was duplicating separator) */
.ib-footer-bottom{
  border-top: none !important;
}

/* Keep separator as the TOP line above the bottom row */
.ib-footer-separator{
  height: 1px !important;
  background: rgba(148,163,184,0.35) !important;
  margin: 18px 0 12px 0 !important;
}

/* Add a single BOTTOM line for the whole footer */
.ib-footer{
  border-bottom: 1px solid rgba(148,163,184,0.35) !important;
}

/* Increase footer font sizes */
.ib-footer-tagline{ font-size: 16px !important; }
.ib-footer-heading{ font-size: 14px !important; }
.ib-footer-links a{ font-size: 16px !important; }
.ib-footer-disclaimer{ font-size: 15px !important; }
.ib-footer-copy{ font-size: 15px !important; }

/* Keep mobile from getting too big */
@media (max-width: 480px){
  .ib-footer-links a{ font-size: 15px !important; }
  .ib-footer-disclaimer{ font-size: 14px !important; }
}
/* =========================================
   GUIDES SIDEBAR (clean + collapsible)
   - Works with your existing:
     .ib-guides-nav, .ib-guides-cat, .ib-guides-cat-toggle,
     .ib-guides-cat-panel, .ib-guides-cat-icon, etc.
   ========================================= */

.ib-guides-nav{
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
  background: radial-gradient(circle at top left, #020b1f 0%, #020617 55%, #000000 100%);
  border: 1px solid rgba(0, 163, 176, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}

.ib-guides-nav-header{
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 163, 176, 0.14);
  margin-bottom: 10px;
}

.ib-guides-nav-heading{
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e0f2fe;
}

.ib-guides-nav-subtitle{
  margin: 0;
  font-size: 13px;
  color: var(--ink-700);
}

.ib-guides-accordion{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Category shell */
.ib-guides-cat{
  border: 1px solid rgba(0, 163, 176, 0.14);
  border-radius: var(--radius-md);
  background: rgba(2, 6, 23, 0.55);
  overflow: hidden;
}

/* Toggle row */
.ib-guides-cat-toggle{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: #dbeafe;
  cursor: pointer;

  font: inherit;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.ib-guides-cat-toggle:hover{
  background: rgba(0, 163, 176, 0.10);
}

.ib-guides-cat-toggle:focus-visible{
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.ib-guides-cat-main{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ib-guides-cat-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ib-guides-cat-label{
  font-size: 14px;
  font-weight: 900;
  color: #e0f2fe;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ib-guides-cat-current{
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chevron */
.ib-guides-cat-icon{
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 163, 176, 0.20);
  background: rgba(2, 6, 23, 0.65);
  color: #a5f3fc;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

/* Open state: you can set aria-expanded="true" (recommended) */
.ib-guides-cat-toggle[aria-expanded="true"] .ib-guides-cat-icon{
  transform: rotate(90deg);
  background: rgba(0, 163, 176, 0.14);
  border-color: rgba(0, 163, 176, 0.35);
}

/* Panel */
.ib-guides-cat-panel{
  padding: 6px 10px 10px;
}

.ib-guides-cat-panel a{
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px 10px;
  border-radius: var(--radius-md);
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 800;

  border: 1px solid transparent;
  background: transparent;
}

.ib-guides-cat-panel a:hover{
  background: rgba(0, 163, 176, 0.10);
  border-color: rgba(0, 163, 176, 0.18);
  color: #ffffff;
}

/* Active link (set .is-active on the current page link) */
.ib-guides-cat-panel a.is-active{
  background: rgba(0, 163, 176, 0.16);
  border-color: rgba(0, 163, 176, 0.35);
  color: #a5f3fc;
}

/* Optional: tiny divider inside a panel (if you add <hr class="ib-guides-hr">) */
.ib-guides-hr{
  border: none;
  height: 1px;
  background: rgba(0, 163, 176, 0.12);
  margin: 6px 6px 8px;
}

/* =========================================
   LAYOUT HELPERS (if your guides page uses a grid)
   - Use on the guides page container:
     .ib-guides-layout { display:grid; ... }
   ========================================= */
.ib-guides-layout{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 980px){
  .ib-guides-layout{
    grid-template-columns: 1fr;
  }
  .ib-guides-nav{
    position: relative;
    top: auto;
  }
}

/* =========================================
   MOBILE: Make sidebar a clean collapsible block
   (still uses the same accordion categories inside)
   ========================================= */
@media (max-width: 640px){
  .ib-guides-nav{
    padding: 12px;
    border-radius: var(--radius-md);
  }
  .ib-guides-cat-toggle{
    padding: 10px 10px;
  }
  .ib-guides-cat-panel a{
    padding: 9px 10px;
  }
}
.ib-guide-section { display: block; }
.ib-guide-section ul { display: block; }
.ib-guide-section li { display: list-item; }
