.main-header:has(.reference-home) {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  height:auto}
.reference-home {
  display:flex;
  align-items:center;
  margin:8px 16px;
  white-space:nowrap;
  font-weight:600}
.reference-home span {
  margin-left:.4rem;
  font-weight:400}
.main-header:has(.reference-home) .aux-nav {
  height:auto}
.reference-site-header {
  display:none}
.main-header:has(.reference-home) .site-search {
  flex-basis:100%}
.reference-body {
  min-width:0}
.reference-categories {
  padding:0 16px 24px;
  font-size:14px;
  overflow:auto}
.reference-categories summary,
.reference-contents summary {
  cursor:pointer;
  font-size:14px;
  font-weight:500}
.reference-categories p { margin:16px 0 }
.reference-categories a {
  display:block;
  padding:4px 0;
  color:#264caf;
  text-decoration:none}
.reference-contents {
  margin:0 0 24px;
  min-width:0;
  background:#fff;
  color:#5c5962}
.reference-contents summary { padding:16px 32px }
.reference-overview-contents nav { padding:0 32px 24px; font-size:14px }
.reference-overview-contents ul { list-style:none; margin:0; padding:0 }
.reference-overview-contents a {
  display:block;
  padding:4px 0;
  color:#264caf;
  text-decoration:none}
.reference-overview-contents a:hover { text-decoration:underline }
.reference-overview-contents a[aria-current="location"] {
  font-weight:600;
  background:#f5f6fa}
.reference-contents iframe {
  display:block;
  width:100%;
  height:24rem;
  max-height:70vh;
  border:0}
.reference-navigation {
  margin:0;
  padding:16px clamp(12px,8vw,32px);
  color:#27262b;
  background:#fff;
  font:14px/1.6 system-ui,sans-serif;
  overflow-wrap:anywhere}
.reference-navigation ul {
  list-style:none;
  padding:0}
.reference-navigation a {
  display:block;
  padding:.2rem 0;
  color:#264caf;
  text-decoration:none}
.reference-navigation a:hover {
  text-decoration:underline}
.reference-navigation code {
  font:inherit}
.reference-navigation .reference-categories,
.reference-navigation h2 { display:none }
.reference-navigation a[aria-current="page"] {
  color:#264caf;
  font-weight:600;
  background:#f5f6fa}
.reference-navigation p { margin:0 0 16px }
.reference-navigation .reference-variable-list { margin:0 }
@media (min-width:50rem) {
  /* Share the site's actual navigation rail width, without a centering gutter. */
  .reference-sidebar {
    inset:0 auto 0 0;
    height:100vh;
    height:100dvh}
  .reference-site-header {
    display:flex;
    flex-shrink:0}
  .main:has(.reference-sidebar) {
    margin-left:var(--gcubed-nav-actual);
    margin-right:0;
    max-width:none}
  .main:has(.reference-sidebar) .reference-home {
    display:none}
  .main-header:has(.reference-home) .site-search {
    flex-basis:auto}
  .reference-categories { flex:1 }
  .reference-categories > summary { display:none }
  @supports selector(details::details-content) {
    .reference-categories::details-content { content-visibility:visible }
  }
}
@media (min-width:720px) {
  html:has(meta[name="gcubed-reference-layout"]) {
    --gcubed-nav-actual:clamp(200px,var(--gcubed-nav-width),min(452px,calc(100% - 864px)));
    --gcubed-toc-actual:clamp(240px,var(--gcubed-toc-width),min(520px,calc(100% - var(--gcubed-nav-actual) - 624px)))}
  html:has(meta[name="gcubed-reference-layout"]) .main { margin-right:var(--gcubed-toc-actual) }
  .reference-contents {
    position:fixed;
    top:60px;
    right:0;
    bottom:0;
    width:var(--gcubed-toc-actual);
    margin:0;
    border-left:1px solid #eeebee;
    z-index:5}
  .reference-contents iframe {
    height:calc(100dvh - 60px - var(--reference-summary-height,54px));
    max-height:none}
  .reference-overview-contents { overflow:auto }
  @supports selector(details::details-content) {
    .reference-contents::details-content { content-visibility:visible }
    .reference-contents > summary { list-style:none }
  }
}
.gcubed-layout-toc { display:none }
@media (min-width:720px) {
  .gcubed-layout-toc {
    display:block;
    left:auto;
    right:calc(var(--gcubed-toc-actual) - 4px)}
}
@media (min-width:720px) and (max-width:1199px) {
  html:has(meta[name="gcubed-reference-layout"]) {
    --gcubed-nav-actual:clamp(140px,calc(var(--gcubed-nav-width)*.5),min(220px,calc(100% - 580px)));
    --gcubed-toc-actual:clamp(160px,calc(var(--gcubed-toc-width)*.5),min(260px,calc(100% - var(--gcubed-nav-actual) - 420px)))}
  html:has(meta[name="gcubed-reference-layout"]) .main {
    margin-left:var(--gcubed-nav-actual);
    max-width:none}
  html:has(meta[name="gcubed-reference-layout"]) .side-bar {
    position:fixed;
    inset:0 auto 0 0;
    width:var(--gcubed-nav-actual);
    height:100vh;
    height:100dvh;
    padding-left:0;
    display:flex;
    flex-flow:column nowrap;
    align-items:stretch;
    overflow:hidden}
  html:has(meta[name="gcubed-reference-layout"]) .side-bar .site-header {
    display:flex;
    width:100%;
    flex-shrink:0}
  html:has(meta[name="gcubed-reference-layout"]) .side-bar .site-button { display:none }
  html:has(meta[name="gcubed-reference-layout"]) .side-bar .site-title {
    padding:12px;
    font-size:18px!important}
  html:has(meta[name="gcubed-reference-layout"]) .side-bar .site-title-logo {
    height:20px;
    margin-right:6px}
  html:has(meta[name="gcubed-reference-layout"]) .side-bar .site-nav {
    display:block;
    width:100%;
    flex:1;
    overflow:auto;
    padding:16px 0;
    font-size:14px;
    line-height:1.6}
  html:has(meta[name="gcubed-reference-layout"]) .side-bar .nav-list .nav-list-link {
    font-size:14px;
    padding-top:4px;
    padding-bottom:4px;
    padding-left:12px;
    padding-right:12px;
    line-height:1.6;
    overflow-wrap:anywhere}
  html:has(meta[name="gcubed-reference-layout"]) .side-bar .nav-list-item:has(> .nav-list-expander) > .nav-list-link {
    padding-right:48px}
  html:has(meta[name="gcubed-reference-layout"]) .side-bar .site-footer { padding:12px }
  html:has(meta[name="gcubed-reference-layout"]) .gcubed-layout-handle { display:block }
  html:has(meta[name="gcubed-reference-layout"]) .gcubed-layout-reset { display:block }
  html:has(meta[name="gcubed-reference-layout"]) .main .main-header { display:flex; height:60px; margin:0 }
  html:has(meta[name="gcubed-reference-layout"]) .main-header .site-search { flex:1; min-width:0 }
  html:has(meta[name="gcubed-reference-layout"]) .main-content-wrap { padding:24px 20px }
  .reference-site-header { display:flex }
  html:has(meta[name="gcubed-reference-layout"]) .reference-home { display:none }
  .reference-categories { flex:1; padding:0 12px 24px }
  .reference-categories > summary { display:none }
  .reference-contents > summary { padding:12px }
  .reference-overview-contents nav { padding:0 12px 24px }
}
