/* Professionals navigation is intentionally visible before its destination modules are complete.
   Reuses existing /tax-professional.html, /lender.html and /realtors.html pages. */
.ds-prof-nav-menu { position:relative; display:inline-flex; flex:0 0 auto; align-items:center; min-width:0; color:inherit; font:inherit; z-index:30; }
.ds-prof-nav-menu > summary { list-style:none; display:inline-flex; align-items:center; gap:5px; min-height:38px; padding:5px 3px; border-radius:8px; color:inherit; cursor:pointer; font:inherit; white-space:nowrap; }
.ds-prof-nav-menu > summary::-webkit-details-marker { display:none; }
.ds-prof-nav-menu > summary:hover { color:#087967; }
.ds-prof-nav-menu > summary:focus-visible { outline:3px solid #087967; outline-offset:3px; }
.ds-prof-chevron { display:inline-block; font-size:14px; line-height:1; transition:transform .15s ease; }
.ds-prof-nav-menu[open] .ds-prof-chevron { transform:rotate(180deg); }
.ds-prof-nav-dropdown { position:absolute; top:calc(100% + 6px); right:0; min-width:205px; max-width:min(280px, calc(100vw - 24px)); display:grid; gap:3px; padding:7px; background:#fff; border:1px solid #c6d8d1; border-radius:13px; box-shadow:0 14px 35px rgba(16,35,44,.18); color:#102333; text-align:left; z-index:60; }
.ds-prof-nav-dropdown a, .home-nav nav .ds-prof-nav-dropdown a, .public-pricing-nav .ds-prof-nav-dropdown a, .ds-account-sitebar nav .ds-prof-nav-dropdown a { display:block; min-height:40px; width:100%; padding:11px 12px; color:#102333 !important; background:transparent !important; text-decoration:none; border-radius:8px; white-space:nowrap; font:700 13px/1.3 Inter,Arial,sans-serif; }
.ds-prof-nav-dropdown a:hover, .home-nav nav .ds-prof-nav-dropdown a:hover, .public-pricing-nav .ds-prof-nav-dropdown a:hover, .ds-account-sitebar nav .ds-prof-nav-dropdown a:hover { color:#075b49 !important; background:#e9f6f0 !important; }
.ds-prof-nav-dropdown a:focus-visible { outline:2px solid #087967; outline-offset:-2px; }
.ds-prof-es { display:none; }
html[data-language="es"] .ds-prof-nav-menu .ds-prof-en, html:not([data-language])[lang="es"] .ds-prof-nav-menu .ds-prof-en { display:none; }
html[data-language="es"] .ds-prof-nav-menu .ds-prof-es, html:not([data-language])[lang="es"] .ds-prof-nav-menu .ds-prof-es { display:inline; }
html[data-theme="dark"] .ds-prof-nav-menu > summary:hover { color:#9de5c0; }
html[data-theme="dark"] .ds-prof-nav-dropdown { background:#27251d; border-color:#5b5645; box-shadow:0 15px 35px rgba(0,0,0,.38); }
html[data-theme="dark"] .ds-prof-nav-dropdown a, html[data-theme="dark"] .home-nav nav .ds-prof-nav-dropdown a, html[data-theme="dark"] .public-pricing-nav .ds-prof-nav-dropdown a, html[data-theme="dark"] .ds-account-sitebar nav .ds-prof-nav-dropdown a { color:#f7f4ec !important; }
html[data-theme="dark"] .ds-prof-nav-dropdown a:hover, html[data-theme="dark"] .home-nav nav .ds-prof-nav-dropdown a:hover, html[data-theme="dark"] .public-pricing-nav .ds-prof-nav-dropdown a:hover, html[data-theme="dark"] .ds-account-sitebar nav .ds-prof-nav-dropdown a:hover { color:#b5f0d2 !important; background:#343b2f !important; }
/* The phone nav previously uses horizontal scrolling; a wrapped nav keeps this dropdown
   visible rather than clipping it inside the scroll container. */
@media screen and (max-width:767px) {
  body.ds-home .home-nav nav, body.da-standalone .da-site-header .da-main-nav,
  body.mc-standalone .mc-site-header .mc-main-nav,
  body.ds-tool-standalone > .mc-site-header .mc-main-nav {
    overflow:visible !important; flex-wrap:wrap !important;
    justify-content:flex-start !important; align-content:start !important;
    gap:3px 10px !important;
  }
  .ds-prof-nav-menu > summary { min-height:38px; padding:7px 3px; font-size:12px; }
  .ds-prof-nav-dropdown { right:auto; left:0; min-width:190px; max-width:calc(100vw - 26px); }
  .ds-prof-nav-dropdown a { min-height:44px; }
}
