/*
Theme Name: Bridgesource Accounting Services LLC
Theme URI: https://bridgesourceaccounting.com
Description: Standalone, enterprise-grade custom WordPress theme for Bridgesource Accounting Services LLC. Features native custom page templates, modern responsive layouts, robust security, and built-in form capture.
Author: Bridgesource Accounting Services LLC
Author URI: https://bridgesourceaccounting.com
Version: 1.0.1
Text Domain: bridge-accounting
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


/* ==========================================================================
   Hello Elementor Child Theme Core Styles & Design Tokens
   ========================================================================== */

:root {
  --navy: #092c4c;
  --navy-2: #0f3f69;
  --navy-900: #071126;
  --navy-950: #040c18;
  --blue: #1452a3;
  --cyan: #10b7dc;
  --cyan-soft: #e9f9fd;
  --sky: #dff4fb;
  --ink: #172536;
  --muted: #607284;
  --line: #d9e2e9;
  --white: #ffffff;
  --off: #f7fafc;
  --gold: #d8a13b;
  --shadow: 0 18px 50px rgba(8, 44, 76, 0.12);
  --shadow-sm: 0 4px 12px rgba(8, 44, 76, 0.06);
  --shadow-lg: 0 20px 45px rgba(8, 44, 76, 0.16);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: white;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.section { padding: 86px 0; }
.section.tight { padding: 60px 0; }
p { margin: 0; }
.lead { font-size: 1.16rem; color: #d7e7f2; max-width: 700px; }
.small { font-size: 0.86rem; color: var(--muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 9px;
  padding: 14px 19px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.18s ease;
  text-decoration: none;
}
.btn.primary { background: var(--cyan); color: #032a3c; }
.btn.primary:hover { transform: translateY(-1px); background: #1ac5ea; color: #032a3c; }
.btn.dark { background: var(--navy); color: white; }
.btn.dark:hover { background: #0284c7; color: white; }
.btn.ghost { border-color: rgba(255, 255, 255, 0.45); color: white; background: transparent; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.15); color: white; border-color: white; }
.btn.outline { border-color: var(--navy); color: var(--navy); background: white; }
.btn.outline:hover { background: var(--navy); color: white; }

/* ==========================================================================
   Unified Header & Navigation Bar
   ========================================================================== */


/* Guarantee zero gap above header */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}
.nav {
  margin-top: 0 !important;
  top: 0 !important;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(7, 39, 68, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  min-width: max-content;
}
.brand-logo {
  display: block;
  width: 190px;
  height: auto;
  max-height: 55px;
  object-fit: contain;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #d0dfe9;
  font-size: 0.84rem;
  font-weight: 700;
}
.nav-item {
  position: relative;
}
.nav-top {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 28px 10px;
  color: #d0dfe9;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-top:hover,
.nav-item:hover > .nav-top {
  color: #ffffff;
}
.caret {
  font-size: 0.62rem;
  opacity: 0.72;
  margin-top: 1px;
}

/* Dropdown styling & hierarchy */
.dropdown {
  position: absolute;
  left: 0;
  top: calc(100% - 4px);
  min-width: 290px !important;
  background: #ffffff !important;
  color: #20384d !important;
  border: 1px solid #dbe5eb !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  box-shadow: 0 20px 45px rgba(4, 28, 47, 0.22) !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  transition: all 0.16s ease;
  z-index: 1000;
}
.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown .nav-heading-link {
  display: block !important;
  font-weight: 800 !important;
  font-size: 0.93rem !important;
  color: #1e3a8a !important;
  padding: 8px 10px !important;
  border-radius: 6px !important;
  transition: all 0.15s ease !important;
  margin-top: 4px !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}
.dropdown .nav-heading-link:hover {
  background: #f0f9ff !important;
  color: #0284c7 !important;
}
.dropdown .nav-heading-link.has-border-top {
  margin-top: 12px !important;
  border-top: 1px solid #e2e8f0 !important;
  padding-top: 12px !important;
}
.dropdown a.subitem {
  display: block !important;
  padding: 6px 10px 6px 22px !important;
  font-size: 0.86rem !important;
  color: #475569 !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
  line-height: 1.5 !important;
}
.dropdown a.subitem:hover {
  background: #f8fafc !important;
  color: #0284c7 !important;
  padding-left: 26px !important;
}
.dropdown .submenu-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7990a0;
  padding-bottom: 5px;
  margin-top: 3px;
}

/* Nav CTA */
.nav-cta {
  padding: 10px 14px;
  font-size: 0.78rem;
  white-space: nowrap;
}

/* Mobile Menu Navigation */
.mobile-menu {
  display: none;
  position: relative;
}
.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 800;
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.mobile-panel {
  position: absolute;
  right: 0;
  top: 48px;
  width: min(330px, calc(100vw - 28px));
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 12px;
  color: #294457;
  max-height: 75vh;
  overflow: auto;
  z-index: 1000;
}
.mobile-panel a,
.mobile-panel .m-label {
  display: block;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 0.85rem;
  text-decoration: none;
}
.mobile-panel .m-label {
  font-weight: 900;
  color: var(--navy);
  padding-bottom: 3px;
}
.mobile-panel .m-sub {
  padding-left: 24px;
  color: #587083;
}
.mobile-panel a:hover {
  background: #eef8fb;
  color: #0284c7;
}

/* ==========================================================================
   Unified Footer Styles
   ========================================================================== */

.footer {
  background: #061f35;
  color: #a8bdcb;
  padding: 58px 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
}
.footer a {
  color: #d8e8f1;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer a:hover {
  color: #ffffff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr 0.95fr 1.05fr;
  gap: 42px;
  padding-bottom: 42px;
}
.footer-brand img {
  width: 200px;
  height: auto;
  display: block;
  margin-bottom: 18px;
}
.footer-brand p {
  max-width: 300px;
  line-height: 1.65;
  color: #b7cad6;
}
.footer-title {
  font-family: Georgia, serif;
  color: white;
  font-size: 1rem;
  margin-bottom: 13px;
  font-weight: 700;
}
.footer-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 18px;
}
.footer-menu a {
  font-size: 0.78rem;
  line-height: 1.35;
  padding: 2px 0;
}
.footer-contact {
  display: grid;
  gap: 10px;
}
.footer-contact a,
.footer-contact div {
  line-height: 1.45;
}
.socials {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.socials a {
  width: 29px;
  height: 29px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 900;
  color: white;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.socials a:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #032a3c;
}
.newsletter {
  display: flex;
  margin-top: 9px;
}
.newsletter input {
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: 7px 0 0 7px;
  padding: 10px;
  background: white;
  outline: none;
}
.newsletter button {
  border: 0;
  background: var(--cyan);
  color: #052a3b;
  font-weight: 900;
  padding: 0 13px;
  border-radius: 0 7px 7px 0;
  cursor: pointer;
  transition: background 0.15s ease;
}
.newsletter button:hover {
  background: #1ac5ea;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 17px 0;
  color: #839dab;
  font-size: 0.74rem;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
}

/* ==========================================================================
   Modals (Tax Review & Financial Control Review)
   ========================================================================== */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 17, 28, 0.72);
  z-index: 1050;
  padding: 24px;
  align-items: center;
  justify-content: center;
}
.modal.open {
  display: flex;
}
.modal-box {
  width: min(580px, 100%);
  background: white;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  position: relative;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.modal-head h3 {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin-top: 4px;
}
.close {
  border: 0;
  background: #eef3f6;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 900;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.close:hover {
  background: #dbe5ec;
}
.modal-box p {
  color: var(--muted);
  margin: 12px 0 22px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field {
  display: grid;
  gap: 6px;
}
.field.full {
  grid-column: 1 / -1;
}
label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #395367;
}
input {
  border: 1px solid #cfdce4;
  border-radius: 9px;
  padding: 12px 12px;
  background: white;
  outline: none;
  width: 100%;
}
input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(16, 183, 220, 0.12);
}
.form-note {
  font-size: 0.72rem;
  color: #7c8c98;
  margin-top: 13px !important;
}

/* ==========================================================================
   Trusted Tools & Proven Systems Section (Balanced Optical Sizing)
   ========================================================================== */

.trusted-tools-section {
  background: linear-gradient(180deg, #f0f7fc 0%, #eaf4fc 100%) !important;
  padding: 5rem 0 5.5rem !important;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.tools-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}
.tools-head h2 {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.45rem);
  color: #0b2545;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.25;
}
.tools-head p {
  color: #475569;
  font-size: 1.05rem;
  margin: 0 auto;
  line-height: 1.6;
}
.tools-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.5rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.tool-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;
}
.tool-logo-card:hover {
  transform: translateY(-2px);
  opacity: 1;
}
.tool-logo-card img {
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.2s ease;
}
/* Individual Optical Balancing Matching Reference */
.tool-logo-card img.logo-bill,
.tool-logo-card img[alt*="Bill"] {
  height: 32px !important;
  max-height: 32px !important;
  max-width: 95px !important;
}
.tool-logo-card img.logo-gusto,
.tool-logo-card img[alt*="Gusto"] {
  height: 34px !important;
  max-height: 34px !important;
  max-width: 130px !important;
}
.tool-logo-card img.logo-qb,
.tool-logo-card img[alt*="QuickBooks"] {
  height: 38px !important;
  max-height: 38px !important;
  max-width: 160px !important;
}
.tool-logo-card img.logo-stripe,
.tool-logo-card img[alt*="Stripe"] {
  height: 32px !important;
  max-height: 32px !important;
  max-width: 115px !important;
}
.tool-logo-card img.logo-ms,
.tool-logo-card img[alt*="Microsoft"] {
  height: 28px !important;
  max-height: 28px !important;
  max-width: 140px !important;
}

/* --- Dynamic Article Badges on Homepage (Image 1 Fix) --- */
.article-visual {
  height: 180px;
  position: relative;
  overflow: hidden;
}
.article-visual:after {
  display: none !important;
}
.insight-badge {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  background: rgba(7, 17, 38, 0.92) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  padding: 5px 12px !important;
  border-radius: 9999px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  z-index: 5 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  display: inline-block !important;
  line-height: 1.2 !important;
}
.article-meta-date {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 6px;
}
.article-read-btn {
  font-weight: 800;
  color: var(--blue);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: all 0.15s ease;
}
.article-read-btn:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

/* --- Assessment Form Hover Effects --- */
.answer {
  color: #0b2545 !important;
  font-weight: 600 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.answer:hover, .answer:focus {
  border-color: #00b4d8 !important;
  background: #092c4c !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(9, 44, 76, 0.25) !important;
}
.answer:hover *, .answer:focus * {
  color: #ffffff !important;
}

/* ==========================================================================
   Responsive Breakpoints & Phone Header Un-stick
   ========================================================================== */

@media (max-width: 980px) {
  .nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
  }
  .navlinks, .nav-cta { display: none !important; }
  .mobile-toggle { display: flex !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .trusted-tools-section { padding: 48px 0 54px; }
  .tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 440px;
    margin: 0 auto;
  }
  .tool-logo-card {
    width: 100%;
    height: 56px;
    padding: 6px 10px;
  }
  .tool-logo-card img {
    max-height: 30px;
  }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 26px, 1180px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-menu { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { display: block; text-align: center; }
  .footer-bottom-inner div:last-child { margin-top: 7px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .tool-logo-card {
    height: 50px;
  }
}

/* ==========================================================================
   Universal FAQ Accordion Rules
   ========================================================================== */
.faq-item {
  background: var(--bg-white, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.75rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy-900, #071126);
  cursor: pointer;
}

.faq-question:focus {
  outline: none;
}

.faq-answer {
  display: none;
  padding: 0 1.75rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted, #475569);
  line-height: 1.7;
}

.faq-item.open .faq-answer,
.faq-item.active .faq-answer {
  display: block !important;
}

.faq-item:not(.open):not(.active) .faq-answer {
  display: none !important;
}

.faq-question i,
.faq-question .faq-icon {
  font-size: 0.875rem;
  color: var(--blue, #1452a3);
  transition: transform 0.3s ease;
  display: inline-block;
}

.faq-item.open .faq-question i,
.faq-item.open .faq-question .faq-icon,
.faq-item.active .faq-question i,
.faq-item.active .faq-question .faq-icon {
  transform: rotate(180deg) !important;
}



/* ==========================================================================
   Comprehensive 100% Mobile Responsiveness & Touch Optimization
   ========================================================================== */

/* Universal Overflow & Container Hardening */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

img, svg, video, iframe, canvas {
  max-width: 100% !important;
  height: auto;
}

/* Fluid responsive table wrapper */
.table-responsive,
.dates-table-wrap,
.table-container {
  display: block;
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px; /* Ensures readable table cells with smooth swipe scroll */
}

/* Universal Media Queries for Mobile & Tablet */
@media screen and (max-width: 980px) {
  .nav {
    position: relative !important;
    top: auto !important;
    padding: 12px 16px !important;
  }
  .navlinks, .nav-cta, .top-bar {
    display: none !important;
  }
  .mobile-menu {
    display: block !important;
  }
}

@media screen and (max-width: 768px) {
  /* Prevent iOS zoom on input focus */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Fluid typography */
  
/* Prevent automatic word-breaking and awkward hyphenation across all headings */
h1, h2, h3, h4, h5, h6,
.hero h1, .section-title, .page-hero h1, .proof-head h2 {
  hyphens: manual !important;
  -webkit-hyphens: manual !important;
  -ms-hyphens: manual !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

  h1, .hero-title, .page-hero h1 {
    font-size: clamp(1.7rem, 5.2vw, 2.4rem) !important;
    line-height: 1.2 !important;
  }
  h2, .section-title {
    font-size: clamp(1.6rem, 5vw, 2.25rem) !important;
    line-height: 1.25 !important;
  }
  h3, .card-title {
    font-size: clamp(1.25rem, 4vw, 1.6rem) !important;
  }
  p, .lead, .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  /* Section Spacing on Mobile */
  .section,
  .section-padded,
  .page-hero {
    padding: 3.5rem 0 !important;
  }

  /* Responsive Grids */
  .grid,
  .services-grid,
  .audience-grid,
  .pillars-grid,
  .process-grid,
  .services-process-grid,
  .next-steps-grid,
  .features-grid,
  .two-col,
  .form-grid,
  .footer-grid,
  .hero-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Touch Targets */
  .btn,
  button,
  .nav-item a,
  .filter-tab-btn,
  .mobile-panel a,
  .faq-question {
    min-height: 46px;
    touch-action: manipulation;
  }

  .btn {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center;
    justify-content: center;
  }

  /* Responsive Modals */
  .modal-box,
  .hec-modal-box,
  .modal-content,
  .tax-modal-box {
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    margin: 16px auto !important;
    padding: 1.5rem 1.25rem !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    border-radius: 12px !important;
  }

  /* Quiz Step Options */
  .quiz-option,
  .assessment-option-card {
    padding: 1rem 1.15rem !important;
    font-size: 0.9375rem !important;
  }

  /* Inline fixed widths safety override */
  [style*="width: 8"],
  [style*="width: 9"],
  [style*="width: 7"],
  [style*="width: 6"],
  [style*="width: 1000"] {
    max-width: 100% !important;
  }
}

@media screen and (max-width: 480px) {
  .wrap {
    width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
  
  .hero-stat-card,
  .stat-card {
    padding: 1rem !important;
  }

  .brand-logo {
    max-width: 155px !important;
  }

  .filter-tabs-nav {
    gap: 0.4rem !important;
  }
  .filter-tab-btn {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.8125rem !important;
  }
}

/* Step Counter Single-Line Fix */
#qcount, .qcount {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}
.assessment-top > div:last-child {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

/* Sticky Header Offset for Anchor Navigation */
section[id], div[id], [id] {
  scroll-margin-top: 100px;
}

/* Accessible Visible Keyboard Focus Ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.answer:focus-visible,
.btn-review-toggle:focus-visible,
.btn-quiz-back:focus-visible {
  outline: 3px solid #00b4d8 !important;
  outline-offset: 3px !important;
}

@keyframes orbitPulse {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 200; }
}
.orbiting-pulse {
  animation: orbitPulse 8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .orbiting-pulse {
    animation: none !important;
  }
}
.framework-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 520px;
  margin: 0 auto;
}
.fnode {
  transition: transform 0.25s ease;
}
.fnode:hover {
  transform: scale(1.03);
  transform-origin: center;
}
