/* Shared navigation structure and behavior. Product themes retain their own identity. */
.family-header { --family-bg: #101319; --family-text: #f7f6f3; --family-muted: #c4cbd2; --family-accent: #ffb29c; --family-panel: #1b2028; --family-hover: #303844; --family-line: #59616d; --family-focus: #ffd3b8; --family-width: 1472px; --family-gutter: 64px; --family-gap: 46px; position: relative; z-index: 10; background: var(--family-bg); color: var(--family-text); }
.family-shell { display: flex; align-items: center; gap: var(--family-gap); width: min(var(--family-width), calc(100% - var(--family-gutter))); min-height: 74px; margin-inline: auto; }
.family-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; white-space: nowrap; font-size: 28px; font-weight: 950; letter-spacing: -1px; color: var(--family-text); }
.family-header svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.family-bear { display: block; flex: none; width: 34px; height: 34px; object-fit: contain; }
.family-dot { color: var(--family-accent); }
.family-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 750; }
.family-nav > a, .family-menu > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; position: relative; color: var(--family-muted); white-space: nowrap; }
.family-header a:hover, .family-menu > summary:hover { color: var(--family-accent); }
.family-nav > a[aria-current="page"] { color: var(--family-accent); }
.family-nav > a[aria-current="page"]::after { position: absolute; content: ""; height: 2px; left: 0; right: 0; bottom: 1px; background: var(--family-accent); }
.family-menu { position: relative; }
.family-menu > summary { cursor: pointer; list-style: none; }
.family-menu > summary::-webkit-details-marker { display: none; }
.family-chevron { width: 15px; height: 15px; }
.family-menu[open] > summary .family-chevron { transform: rotate(180deg); }
.family-panel { position: absolute; z-index: 20; left: -14px; top: calc(100% + 9px); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 560px; max-height: min(610px, calc(100dvh - 100px)); overflow-y: auto; overscroll-behavior: contain; padding: 15px; border: 1px solid var(--family-line); border-radius: 14px; background: var(--family-panel); color: var(--family-text); box-shadow: 0 18px 40px #0005; text-align: left; }
.family-group > p { margin: 2px 10px 8px; padding: 0; color: var(--family-muted); font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.family-group > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 9px 10px; border-radius: 7px; color: var(--family-text); line-height: 1.35; }
.family-group > a:hover, .family-group > a:focus-visible { background: var(--family-hover); }
.family-group > a[aria-current] { background: var(--family-hover); box-shadow: inset 3px 0 var(--family-accent); }
.family-group strong, .family-group small { display: block; }
.family-group strong { font-size: 15px; font-weight: 850; }
.family-group small { color: var(--family-muted); font-size: 12px; font-weight: 500; margin-top: 3px; }
.family-external { width: 15px; height: 15px; }
.family-group > .family-contact { border-top: 1px solid var(--family-line); border-radius: 0; margin-top: 9px; min-height: 44px; font-size: 13px; }
.family-group > .family-account-note { color: var(--family-muted); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; margin: 9px 10px 0; }
.family-account { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; margin-left: auto; padding: 7px 15px; border: 1px solid var(--family-line); border-radius: 25px; color: var(--family-text); font-size: 14px; font-weight: 750; white-space: nowrap; }
.family-account:hover { background: var(--family-hover); }
.family-header a:focus-visible, .family-header summary:focus-visible { outline: 3px solid var(--family-focus); outline-offset: 4px; }
.family-theme-home { --family-gap: 94px; }
.family-theme-home .family-brand { font-size: 36px; font-weight: 1000; letter-spacing: -1.5px; gap: 12px; }
.family-theme-home .family-bear { width: 44px; height: 44px; }
.family-theme-home .family-nav { font-size: 19px; gap: 35px; }
.family-theme-home .family-account { font-size: 18px; padding-inline: 19px; }
.family-theme-media { --family-bg: #0b0e10; --family-width: 1216px; --family-gutter: 80px; --family-gap: 58px; --family-accent: #ff991f; --family-focus: #ffd197; }
.family-theme-media .family-shell { min-height: 76px; }
.family-theme-bearcade { --family-width: 1390px; --family-gutter: 144px; --family-accent: #ff927b; }
.family-theme-bearcade .family-brand { font-size: 26px; }
.family-theme-bearcade .family-bear { width: 30px; height: 30px; }
.family-theme-attic { --family-bg: #0e3028; --family-text: #fff9ed; --family-muted: #d5e3d7; --family-accent: #efbf6b; --family-focus: #efbf6b; --family-panel: #0e3028; --family-hover: #23493b; --family-line: #6f8d79; --family-width: 1300px; --family-gutter: 112px; }
.family-theme-attic .family-shell { min-height: 64px; }
.family-theme-attic .family-brand { font-family: Georgia, serif; font-weight: 700; font-size: 25px; letter-spacing: -.6px; gap: 13px; }
.family-theme-attic .family-bear { width: 27px; height: 27px; }
.family-theme-den, .family-theme-den-docs { --family-bg: #0b100d; --family-text: #f2f1e9; --family-muted: #b9c0b6; --family-accent: #d3f777; --family-focus: #d3f777; --family-panel: #141c16; --family-hover: #273222; --family-line: #637557; --family-width: 1320px; --family-gutter: 88px; border-bottom: 1px solid #354135; }
.family-theme-den .family-shell, .family-theme-den-docs .family-shell { min-height: 70px; }
.family-theme-den .family-brand, .family-theme-den-docs .family-brand { font-size: 25px; }
.family-slashes { color: var(--family-accent); font-size: 29px; font-weight: 1000; letter-spacing: -2px; transform: skew(-8deg); }
.family-theme-den-docs { --family-width: 1692px; --family-gutter: 68px; }
/* Nom retains the shared header contract in its cookbook palette. */
.family-theme-nom { --family-bg: #fbf2df; --family-text: #352114; --family-muted: #6d5946; --family-accent: #91501f; --family-panel: #fff8e8; --family-hover: #eee5c8; --family-line: #bdaa83; --family-focus: #79521f; --family-width: 1240px; --family-gutter: 112px; border-bottom: 1px solid #dac7a6; }
.family-theme-nom .family-shell { min-height: 65px; }
.family-theme-nom .family-brand { font-family: Georgia, serif; font-size: 25px; font-weight: 700; letter-spacing: -.7px; }
.family-theme-nom .family-bear { width: 27px; height: 27px; }
@media (max-width: 1250px) { .family-header { --family-gap: 30px; --family-gutter: 48px; } .family-theme-home .family-brand { font-size: 31px; } .family-theme-home .family-nav { font-size: 16px; gap: 25px; } .family-theme-home .family-account { font-size: 14px; padding-inline: 15px; } }
@media (max-width: 920px) {
  .family-header { --family-gutter: 40px; }
  .family-header .family-shell { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 12px; min-height: 112px; padding-block: 9px 5px; }
  .family-header .family-brand { grid-column: 1; grid-row: 1; font-size: 25px; min-height: 44px; gap: 9px; }
  .family-header .family-bear { width: 32px; height: 32px; }
  .family-header .family-account { grid-column: 2; grid-row: 1; min-height: 44px; font-size: 12px; padding-inline: 12px; }
  .family-header .family-nav { grid-column: 1 / -1; grid-row: 2; gap: 26px; font-size: 14px; }
  .family-panel { left: 0; width: min(560px, calc(100vw - 40px)); max-height: calc(100dvh - 145px); }
}
@media (max-width: 680px) {
  .family-header { --family-gutter: 32px; }
  .family-header .family-shell { min-height: 112px; }
  .family-header .family-brand { font-size: 24px; }
  .family-header .family-bear { width: 30px; height: 30px; }
  .family-header .family-nav { font-size: 13px; gap: 23px; }
  .family-panel { grid-template-columns: 1fr; gap: 13px; width: min(358px, calc(100vw - 32px)); padding: 12px; }
  .family-group > a { min-height: 54px; }
  .family-launches { border-top: 1px solid var(--family-line); padding-top: 13px; }
}
@media (max-width: 360px) { .family-header .family-brand { font-size: 22px; gap: 7px; } .family-header .family-bear { width: 27px; height: 27px; } .family-header .family-account { padding-inline: 10px; gap: 7px; } .family-header .family-nav { gap: 19px; } }
@media (forced-colors: active) { .family-panel, .family-account { border: 1px solid CanvasText; } .family-nav > a[aria-current="page"] { text-decoration: underline; } .family-group > a[aria-current] { outline: 1px solid CanvasText; } }
