@media (min-width: 1181px) {
  .site-header-layout {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(240px, 360px) minmax(240px, 1fr);
    align-items: center;
    gap: 8px 28px;
    max-width: 1440px;
    margin-inline: auto;
    padding: 12px 28px 0;
  }
  .site-header-layout > .site-brand,
  .site-header-layout > .site-brand-slot { grid-area: 1 / 1; min-width: 0; }
  .site-header-layout .site-brand,
  .site-header-layout .site-brand-slot > a { font-size: 12px; letter-spacing: 0.14em; }
  .site-header-layout > .site-header-search,
  .site-header-layout > .site-search-slot--desktop {
    display: block;
    grid-area: 1 / 2;
    width: 100%; min-width: 0; max-width: none; margin: 0; transition: none;
  }
  .site-header-layout > .site-search-slot--desktop:focus-within { width: 100%; max-width: none; }
  .site-header-layout > .desktop-actions,
  .site-header-layout > .site-header-actions {
    display: flex; grid-area: 1 / 3; justify-content: flex-end;
    gap: 16px; margin: 0; font-size: 11px; letter-spacing: 0.08em;
  }
  .site-header-layout > .desktop-actions > a,
  .site-header-layout > .site-header-actions > a {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; font-size: 11px; letter-spacing: 0.08em; white-space: nowrap;
  }
  .site-header-layout > .site-nav-links,
  .site-header-layout > .site-primary-nav {
    display: flex; grid-column: 1 / -1; grid-row: 2;
    align-items: center; justify-content: space-between; gap: 20px;
    min-width: 0; margin: 0; border-top: 1px solid rgba(179,155,110,0.16);
    font-size: 12px; line-height: 1.4; letter-spacing: 0.08em;
  }
  .site-header-layout > .site-nav-links > a,
  .site-header-layout > .site-primary-nav > a,
  .site-header-layout > .site-nav-links > details > summary,
  .site-header-layout > .site-primary-nav > details > summary {
    display: flex; align-items: center; gap: 5px; min-height: 44px; padding-block: 10px;
  }
  .site-header-layout > .site-menu,
  .site-header-layout .site-header-mobile { display: none; }
  .site-header-layout .knowledge-nav--desktop .knowledge-panel,
  .site-header-layout > .site-primary-nav > details > div {
    top: calc(100% + 8px); max-height: calc(100dvh - 140px);
  }
  .site-home-header { padding: 0; }
  .site-home-header ~ main > header { padding-top: 160px; }
}
@media (min-width: 1181px) { .site-home-header > .site-header-mobile { display: none; } }
@media (max-width: 768px) {
  .site-header {
    background: rgba(12, 17, 19, 0.96);
    border-bottom: 1px solid rgba(179, 155, 110, 0.2);
    backdrop-filter: blur(12px);
  }
  .site-header .site-nav-inner {
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
  }
  .site-header .site-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .site-header .site-brand img { flex-shrink: 0; }
  .site-header .site-brand > span { display: inline; }
  .site-header .site-brand-prefix { display: none; }
  .site-header .site-menu > summary {
    min-height: 44px;
    min-width: 64px;
    justify-content: center;
    border-radius: 8px;
  }
  .site-header .site-menu-panel {
    top: calc(100% + 8px);
    max-height: calc(100dvh - 84px);
    border-radius: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}
.site-header :is(a, summary):focus-visible {
  outline: 2px solid #f4ecd8;
  outline-offset: 3px;
}
.container :is(h1, h2, h3, section)[id] { scroll-margin-top: 132px; }
@media (max-width: 1180px) {
  .container :is(h1, h2, h3, section)[id] { scroll-margin-top: 84px; }
}
.site-header .site-trial-link--bar { display: none; }
.site-actions .site-register-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; color: #d4c4a8; text-decoration: none; }
.site-actions .site-register-link:hover { color: #fff1da; }
.site-actions .site-trial-link { padding-inline: 16px; }
@media (max-width: 1180px) {
  .site-header .site-trial-link--bar { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0 4px 0 auto; padding: 0 14px; white-space: nowrap; text-decoration: none; }
}
html[data-active-membership] .site-trial-link:not([data-member-home]) { visibility: hidden !important; }
html[data-active-membership] :is(.site-header, .site-menu-panel) [data-auth-navigation] { display: none !important; }
.site-home-header .knowledge-panel { position: fixed; z-index: 120; top: 68px; left: 50%; width: min(1120px, calc(100vw - 2rem)); max-height: calc(100dvh - 84px); overflow-y: auto; overscroll-behavior: contain; transform: translateX(-50%); padding: 16px; white-space: normal; text-align: left; text-transform: none; letter-spacing: 0; background: #161e23; border: 1px solid rgba(179, 155, 110, .34); box-shadow: 0 28px 80px rgba(0, 0, 0, .68); }
.site-home-header .knowledge-panel-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 5.6px 7.2px 16px; border-bottom: 1px solid rgba(179, 155, 110, .18); font-family: 'Cinzel', Georgia, serif; }
.site-home-header .knowledge-panel-head span, .site-home-header .knowledge-panel-head strong { display: block; }
.site-home-header .knowledge-panel-head span { margin-bottom: 4.5px; color: rgba(179, 155, 110, .68); font-size: 8.3px; letter-spacing: .24em; }
.site-home-header .knowledge-panel-head strong { color: #f4ecd8; font-size: 13.1px; letter-spacing: .1em; }
.site-home-header .knowledge-panel-head > a { padding: 11px; color: #b39b6e; font-size: 9.3px; letter-spacing: .12em; }
.site-home-header .knowledge-panel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; padding-top: 13px; }
.site-home-header .knowledge-cluster { min-width: 0; padding: 13.6px; border: 1px solid rgba(179, 155, 110, .13); background: rgba(179, 155, 110, .035); }
.site-home-header .knowledge-cluster .knowledge-cluster-title { display: block; padding: 0 0 6px; color: #f4ecd8; font-family: 'Cinzel', Georgia, serif; font-size: 10.2px; font-weight: 700; letter-spacing: .12em; text-transform: none; }
.site-home-header .knowledge-cluster p { margin: 0 0 7px; color: rgba(212, 196, 168, .62); font-family: Georgia, serif; font-size: 12.5px; line-height: 1.42; text-transform: none; letter-spacing: 0; }
.site-home-header .knowledge-cluster > a:not(.knowledge-cluster-title) { display: block; min-height: 36px; padding: 8px 0; border-top: 1px solid rgba(179, 155, 110, .08); color: rgba(212, 196, 168, .78); font-family: Georgia, serif; font-size: 12.5px; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.site-home-header .knowledge-cluster > a:hover, .site-home-header .knowledge-panel-head > a:hover { color: #f4ecd8; }
