.quiet-home .nav { z-index: 30; gap: 32px; min-height: 68px; padding-inline: max(48px, calc((100% - var(--q-content-width)) / 2)); background: var(--q-dark-gradient); border-bottom-color: rgb(255 255 255 / 8%); }
.quiet-home .nav .brand { color: #fff; }
.quiet-home .nav .brand-letter { color: #b9d0ff; }
.quiet-home .nav .brand-caption { color: #bdcdeb; border-left-color: #4c658b; }
.quiet-home .nav-actions { gap: 12px; }
.quiet-home .nav .menu-toggle { border-color: #6882ab; background: rgb(255 255 255 / 5%); color: #fff; }
.quiet-home .nav-links { gap: 8px; align-items: center; }
.quiet-home .nav-home, .mega-trigger { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 7px 13px; border: 0; border-radius: 8px; color: #dce7fc; font-size: 16px; font-weight: 400; line-height: 1.5; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background-color 180ms, color 180ms; }
.quiet-home .nav-links > .nav-home { font-size: 16px; color: #dce7fc; }
.quiet-home .nav-home[aria-current="page"] { color: #fff; }
.mega-menu { position: static; }
.mega-trigger { list-style: none; }
.mega-trigger::-webkit-details-marker { display: none; }
.mega-trigger::marker { content: ''; }
.mega-trigger svg { width: 12px; height: 12px; color: #afc5eb; transition: rotate 180ms; }
.mega-menu[open] > .mega-trigger { background: #2e507d; color: #fff; }
.mega-menu[open] > .mega-trigger svg { rotate: 180deg; color: #dce7fc; }
.mega-panel { position: absolute; top: 100%; left: max(48px, calc((100% - var(--q-content-width)) / 2)); right: max(48px, calc((100% - var(--q-content-width)) / 2)); display: grid; grid-template-columns: minmax(0, 1fr) 286px; min-height: 382px; margin-top: 8px; border: 1px solid #e6ebf0; border-radius: 12px; background: #fff; box-shadow: 0 24px 60px -16px rgb(14 27 46 / 28%); max-height: calc(100dvh - 92px); overflow-y: auto; overscroll-behavior: contain; }
.mega-menu:not([open]) > .mega-panel { display: none; }
.mega-columns { display: grid; grid-template-columns: 1.05fr 1fr 1fr; align-content: start; gap: 42px; padding: 32px; min-width: 0; }
.mega-columns-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-column, .mega-feature { min-width: 0; }
.mega-column h2 { margin: 0 0 13px; color: var(--wc-heading); font-size: 16px; font-weight: 600; line-height: 1.5; }
.mega-column .mega-subheading { margin-top: 30px; }
.quiet-home .mega-panel .mega-link { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; min-height: 38px; margin-inline: -10px; padding: 8px 10px; border: 0; border-radius: 6px; white-space: normal; color: var(--wc-muted); font-size: 16px; line-height: 1.6; text-decoration: none; }
.mega-link strong { color: var(--wc-muted); font-weight: 400; }
.mega-link > span { color: #60738b; font-size: 11px; }
.mega-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; padding: 16px; border: 1px solid #e4eaf7; border-radius: 8px; background: var(--q-panel-gradient); }
.mega-note > svg { width: 18px; height: 18px; margin-top: 3px; color: #3264ca; }
.mega-note > div { min-width: 0; flex: 1; }
.mega-note strong { color: #2e5c9d; font-size: 13px; font-weight: 500; }
.mega-note p { font-size: 12px; line-height: 1.7; margin-top: 7px; color: #506987; }
.quiet-home .mega-note a { display: flex; justify-content: space-between; gap: 8px; min-height: 38px; margin-top: 12px; padding: 6px 10px; border: 1px solid #fff; border-radius: 6px; background: #fff; white-space: normal; font-size: 12px; color: #214d83; }
.mega-note a svg { width: 14px; height: 14px; }
.mega-boundary { margin-top: 22px; padding-top: 16px; border-top: 1px solid #e4ecf5; color: #60738b; font-size: 12px; }
.mega-feature { display: flex; flex-direction: column; padding: 30px 26px 0; border-left: 1px solid #e7edf2; border-radius: 0 11px 11px 0; background: var(--q-panel-gradient); }
.mega-kicker { display: flex; align-items: center; gap: 8px; color: #416a9a; font-size: 11px; }
.mega-kicker svg { width: 16px; height: 16px; }
.mega-feature h2 { margin: 18px 0 10px; color: #204c7b; font-size: 22px; line-height: 1.5; }
.mega-feature p { color: #486781; font-size: 12px; line-height: 1.8; }
.mega-directory { padding-top: 30px; }
.mega-directory h2 { margin: 0 0 12px; color: var(--wc-heading); font-size: 16px; font-weight: 600; line-height: 1.5; }
.quiet-home .mega-directory .mega-link { min-height: 34px; padding-block: 6px; }
.mega-illustration { display: block; align-self: center; flex: 0 0 auto; width: 250px; max-width: calc(100% + 28px); height: 156px; margin: 2px -14px 0; object-fit: contain; }
.mega-feature-symbol { display: grid; place-items: center; height: 130px; color: #6b9ac4; }
.mega-feature-symbol svg { width: 72px; height: 72px; stroke-width: 1; }
.quiet-home .mega-feature-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; margin: auto -26px 0; padding: 15px 26px; border: 0; border-top: 1px solid #e7edf2; border-radius: 0 0 11px 0; background: #fff; color: var(--wc-heading); white-space: normal; font-size: 16px; text-decoration: none; }
.mega-feature-link svg { width: 16px; height: 16px; }
@media (hover: hover) {
  .quiet-home .nav-links > .nav-home:hover, .mega-trigger:hover { background: #2e507d; color: #fff; }
  .quiet-home .mega-panel .mega-link:hover { background: #f0f6ff; color: #245bd6; }
  .quiet-home .mega-feature-link:hover, .quiet-home .mega-note a:hover { background: #fff; color: #245bd6; }
}
@media (max-width: 1100px) {
  .quiet-home .nav { min-height: 72px; gap: 0 20px; padding-inline: 32px; }
  .quiet-home .nav-links { align-items: stretch; gap: 4px; flex-direction: column; flex-wrap: nowrap; }
  .quiet-home .nav-links > * { flex-shrink: 0; }
  .quiet-home .nav[data-menu-open] .nav-links { max-height: calc(100dvh - var(--home-header-height, 72px)); }
  .quiet-home .nav-home, .mega-trigger { width: 100%; min-height: 48px; padding-inline: 12px; }
  .quiet-home .nav-links > .nav-home, .mega-trigger { color: #35475d; }
  .mega-menu[open] > .mega-trigger { background: #eaf0fa; color: #245bd6; }
  .mega-menu[open] > .mega-trigger svg { color: #245bd6; }
  .mega-trigger { justify-content: space-between; }
  .mega-panel { position: static; grid-template-columns: 1fr; min-height: 0; margin: 4px 0 12px; max-height: none; border-radius: 12px; overflow: visible; box-shadow: none; }
  .mega-columns { padding: 24px; gap: 24px; }
  .mega-feature { display: none; }
  .mega-note { margin-top: 14px; }
}
@media (max-width: 700px) {
  .quiet-home .nav { gap: 0 12px; padding-inline: 20px; }
  .quiet-home .nav-actions .text-link { padding-inline: 9px; }
  .mega-columns, .mega-columns-two { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .mega-column + .mega-column { border-top: 1px solid #e4ecf5; padding-top: 20px; }
  .mega-column h2 { font-size: 15px; margin-bottom: 10px; }
  .quiet-home .mega-panel .mega-link { min-height: 44px; }
  .mega-note { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .mega-trigger, .mega-trigger svg, .quiet-home .nav-home { transition: none; }
}
@media print {
  .mega-panel { display: none !important; }
}
