/* Desktop default: hidden mobile nav */
.dh2-mobile-nav {
    display: block; display: none; }
/* Two-column layout */
.dh2-layout{display:grid;grid-template-columns:28% 1fr;gap:24px}
.dh2-left{position:sticky;top:135px;align-self:start}
.dh2-list{list-style:none;margin:0;padding:0}
.dh2-item{cursor:pointer;padding:10px 12px;border-radius:8px;transition:background .2s}
.dh2-item:hover{background:rgba(0,0,0,.05)}
.dh2-item.is-active{font-weight:600}

.dh2-right{position:relative}
.dh2-section{padding:8px 0;margin-bottom:24px}
.dh2-section-title{margin:8px 0 12px 0}
.dh2-section-content :where(p, ul, ol){margin:0 0 12px}

/* Style hooks for new controls */
.dh2-section{background-clip:padding-box}

/* ===== MOBILE ONLY (≤ 767px) ===== */
@media (max-width: 767px) {
  .dh2-layout { display: block; }
  .dh2-left { display: none; }

  .dh2-mobile-nav {
    display: block;
    position: fixed;
    left: 8px;
    margin-bottom: 15px;
    right: 8px;
    bottom: calc(env(safe-area-inset-bottom) + 0px);
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    box-shadow: 0 -6px 20px rgba(0,0,0,.08);
    padding: 10px 12px;
    z-index: 9999;
  }

  .dh2-mobile-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
  }

  .dh2-mobile-nav[data-mode="tabs"] .dh2-mobile-dropdown { display: none; }
  .dh2-mobile-nav[data-mode="dropdown"] .dh2-mobile-tabs { display: none; }

  .dh2-mobile-tabs {
    display: none !important;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dh2-mobile-tabs::-webkit-scrollbar { display: none; }

  .dh2-tab {
    white-space: nowrap;
    padding: 8px 12px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.1;
  }
  .dh2-tab[aria-selected="true"] { font-weight: 600; background: rgba(0,0,0,.05); }

  .dh2-mobile-dropdown { position: relative; }
  .dh2-dd-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 0px solid rgba(0,0,0,.12);
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
  }
  .dh2-dd-menu {
    position: absolute;
    right: 0; left: 0; bottom: calc(100% + 6px);
    background: #fff;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
    padding: 6px; max-height: 40vh; overflow: auto; display: none; z-index: 1;
  }
  .dh2-mobile-dropdown[aria-expanded="true"] .dh2-dd-menu { display: block; }
  .dh2-dd-option { padding: 10px 12px; border-radius: 8px; font-size: 14px; }
  .dh2-dd-option.is-active, .dh2-dd-option:hover { background: rgba(0,0,0,.05); }

  .dh2-right { padding-bottom: 100px; }
}

/* Desktop: make active look like hover */
@media (min-width: 768px) {
  .dh2-left .dh2-item:hover,
  .dh2-left .dh2-item.active,
  .dh2-left .dh2-item.is-active {
    background: #E9F2FF;
    font-weight: 600;
  }
}

@media (max-width: 767px) {
  .dh2-mobile-tabs .dh2-tab { color: inherit; }
  .dh2-mobile-dropdown .dh2-dd-trigger { color: inherit; }
  .dh2-dd-option { color: inherit; }
}

@media (max-width: 767px) {
  .dh2-mobile-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .dh2-mobile-tabs::-webkit-scrollbar { display: none; }
  .dh2-tab { flex: 0 0 auto; }
  .dh2-mobile-dropdown { position: relative; z-index: 2; }
  .dh2-dd-menu { z-index: 3; }
}

@media (max-width: 767px){ .dh2-mobile-nav{ display:none !important; } }


/* DH2 dropdown select */
.dh2-dropdown-wrap{ margin-bottom:12px; }
.dh2-select{
  font-size: 14px;
  color: #000;
  width:100%;
  max-width:100%;
  padding:10px 12px;
  border-radius:10px;
  background:#fff;
  font-family: 'Urbanist-SemiBold';
}
@media (max-width: 767px){
  .dh2-dropdown-wrap{ position:sticky; top: calc(var(--dh2-top, 0px)); z-index: 3; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(8px); }
}


/* FORCE DESKTOP GRID */
.dh2-layout{display:grid;grid-template-columns:28% 1fr;gap:24px}
.dh2-left{position:sticky;top:135px;align-self:start}
.dh2-right{position:relative}
@media (max-width: 767px){
  .dh2-layout{display:block}
  .dh2-left{display:none}
}


/* Bottom fixed dropdown for mobile */
.dh2-dropdown-wrap{ display:none; }
@media (max-width: 767px){
  .dh2-dropdown-wrap{
    display:block;
    margin-left: 10px;
    bottom:20px;
    z-index:9999;
    background:rgba(255,255,255,.95);
    border:1px solid rgba(0,0,0,.08);
    border-radius:14px;
    box-shadow:0 8px 28px rgba(0,0,0,.12);
    backdrop-filter:saturate(180%) blur(10px);
  }
  .dh2-select{
    font-size: 14px;
    color: #000;
    width:100%;
    max-width:100%;
    padding:10px 12px;
    border-radius:10px;
    background:#fff;
    font-family: 'Urbanist-SemiBold';
  }
  /* ensure content bottom spacing so dropdown doesn't overlap */
  .dh2-right{ padding-bottom: 120px; }
}
