.services{position:relative}.services>summary{list-style:none;display:flex;align-items:center;justify-content:center;cursor:pointer;width:36px;height:36px;border-radius:6px;color:var(--muted)}
.services>summary::-webkit-details-marker{display:none}.services>summary:hover{background:var(--blue);color:var(--accent)}
.services nav{position:absolute;right:0;top:44px;z-index:60;min-width:210px;padding:8px;background:var(--paper);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}
.services nav a{display:flex;gap:12px;padding:10px;border-radius:4px;color:var(--text);font-weight:300}.services nav a:hover{background:var(--blue);text-decoration:none}.services nav a[aria-current=page]{color:var(--accent)}

body{padding-bottom:56px}
body .csri-header{width:100%;max-width:1440px;margin:0 auto;padding:12px 40px;gap:24px;flex:none;min-height:76px;height:auto;display:flex;align-items:center}
body .csri-header.has-search>.csri-logo{display:block;flex:none}
.csri-logo img{display:block;width:110px;height:auto}
.csri-header.has-search>.skdh-logo{position:relative;display:block;width:180px;height:40px;overflow:hidden;mix-blend-mode:multiply}
.csri-header .skdh-logo img{position:absolute;width:370px;max-width:none;height:auto;left:-93px;top:-26px;filter:none}
:root[data-theme=dark] .csri-header .skdh-logo{mix-blend-mode:screen}
:root[data-theme=dark] .csri-header .skdh-logo img{filter:invert(1) hue-rotate(180deg)}
body .csri-header{min-height:84px;height:auto;display:grid;grid-template-columns:180px minmax(0,1fr) auto;grid-template-rows:48px;align-content:start;column-gap:24px;row-gap:24px}
/* The shared header contains metrics; legacy search-mode heights must not clip it. */
body.skdh-page .csri-header{height:auto}
body.skdh-page .csri-header>#search-form{height:48px}
body .csri-header>.skdh-logo{grid-column:1;grid-row:1}
body .csri-header>form{grid-column:2;grid-row:1;width:100%}
body .csri-header>.preferences{grid-column:3;grid-row:1}
body.skdh-page .csri-header>.metrics-section{grid-column:2;grid-row:2;min-width:0;padding:0}
body.skdh-page .csri-header .metrics{margin:0}
body.skdh-page .layout{display:block;max-width:none;width:var(--search-column-width,calc(100% - 40px));margin-left:var(--search-column-left,20px);margin-right:0;padding:0}
body.skdh-page .layout>main{width:100%;max-width:none;margin:0}
@media(max-width:1024px){
 body .csri-header{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:40px 48px;padding:12px 20px;gap:20px 12px}
 body .csri-header>.preferences{grid-column:2;grid-row:1}
 body .csri-header>form{grid-column:1/-1;grid-row:2}
 body.skdh-page .csri-header>.metrics-section{grid-column:1/-1;grid-row:3}
}
.skdh-page .search-section{padding:0!important;min-height:0}
.skdh-page #brand-title,.skdh-page #search-tabs,.skdh-page .metrics-section>.section-line{display:none!important}
.skdh-page .metrics-section .metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
body.skdh-page{--type-body:14px;--type-meta:12px;font-size:var(--type-body)}
body.skdh-page :is(.card-tabs button,.card-pane,.card-pane h2,.card-pane h3,.relation,.relation a,.relation-section-body,.class-requirement,.attribute,.attribute-unit,.options,.attribute-group>summary,.pset>summary,.snippet,.match-line,.result-card h3,.results-heading h2,#other-results-title,.term-article p,.term-section-heading,.class-description p,#query){font-size:var(--type-body);line-height:1.6}
body.skdh-page :is(.result-card h3,.results-heading h2,#other-results-title,.relation-section>h3){font-weight:500}
body.skdh-page :is(.muted,.eyebrow,.card-tabs button>span,.result-meta,.result-source,.class-code,.class-breadcrumbs,.source-reference,.source-index,.text-button,.metric-label,.attribute-group>summary>span,.inherited,.class-translation,.term-english,.csri-footer){font-size:var(--type-meta);line-height:1.5}
body.skdh-page .entity-card h1{font-size:24px;line-height:1.4}
body.skdh-page :is(.card-pane,.relation-section-body)>p.muted{font-size:var(--type-body);line-height:1.6}
body.skdh-page .metric-value{font-size:24px;line-height:1.2}
@media(max-width:680px){
  body .csri-header{flex-wrap:wrap;grid-template-rows:36px 48px;padding:12px 20px;gap:12px}
  .csri-header>form{order:3;flex-basis:100%;width:100%}
  .csri-header.has-search>.skdh-logo{width:130px;height:30px}
  .csri-header .skdh-logo img{width:268px;left:-67px;top:-19px}
  .csri-header .preferences{gap:4px}
}
:root[data-theme=dark] .csri-logo img{filter:invert(1) hue-rotate(180deg)}
body .csri-header>form{flex:1;min-width:0;width:100%;max-width:none;margin:0;height:48px;box-shadow:none;background:var(--paper)}
.csri-header .preferences{flex:none;gap:12px;margin-left:auto}
.csri-account-slot{display:block;width:36px;height:36px;flex:none}
.csri-header .csri-account-slot{display:inline-flex;color:var(--muted);opacity:.55}
.csri-header .csri-account-slot:hover{background:none;color:var(--muted)}
.coolicons-grid{--icon:url('/icons/coolicons-grid.svg')}
.coolicons-user{--icon:url('/icons/coolicons-user.svg')}
.services a[href="/encyclopedia"] .icon{--icon:url('/icons/coolicons-book-open.svg');width:24px;height:24px;mask-size:16px 16px}
.map-pager .map-dot,.map-pager .map-name{display:none}
.map-edge.edge-pager{stroke:color-mix(in srgb,#61834f 58%,var(--line));stroke-dasharray:3 4}
.map-page-controls{display:flex;gap:4px;height:36px;align-items:center;color:#61834f}
.map-page-action{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border-radius:6px;color:inherit}
.map-page-action>span{font:300 23px/1 Inter,Arial,sans-serif}
.map-page-action:hover,.map-page-action:focus-visible{background:var(--green);box-shadow:inset 0 0 0 1px currentColor;color:inherit}
@media(max-width:680px){.map-dock{left:50%;right:auto;top:auto;bottom:12px;transform:translateX(-50%)}.map-controls{flex-direction:row}.map-controls-divider{width:1px;height:auto;margin:7px 5px}}
.csri-header .coolicons-grid,.csri-header .coolicons-user{width:24px;height:24px}
.csri-header .sun{--icon:url('/icons/coolicons-sun.svg')}
.csri-header .moon{--icon:url('/icons/coolicons-moon.svg')}
.csri-header .sun,.csri-header .moon,.csri-header .coolicons-user{width:24px;height:24px;mask-size:16px 16px}
.csri-header .preferences .icon-button,.csri-header .services>summary,.csri-header .languages button,.csri-header #ency-language{transition:box-shadow .15s ease,background-color .15s ease,color .15s ease;border-radius:6px}
.csri-header .preferences .icon-button:not(:disabled):hover,.csri-header .services>summary:hover,.csri-header .languages button:hover,.csri-header #ency-language:hover,#ency-up:hover,.back-to-top:hover{box-shadow:inset 0 0 0 1px var(--cornflower);background:var(--blue);color:var(--accent)}
.csri-header .preferences :focus-visible,#ency-up:focus-visible,.back-to-top:focus-visible{outline:2px solid var(--cornflower);outline-offset:2px}
#ency-up .icon.arrow,.back-to-top .icon.arrow{--icon:url('/icons/coolicons-up.svg');transform:none;width:24px;height:24px;mask-size:18px 18px}
.csri-header .languages{background:none;padding:0}
.csri-header #ency-language{min-width:37px;height:28px;font-size:12px}
body .csri-header input{font-size:14px;line-height:1.6}
.search-mode .search-section,.card-mode .search-section{display:block;padding:0}
.search-mode #brand-title,.card-mode #brand-title{display:none}
.ency-heading{margin:0}
body>footer.csri-footer{position:fixed;inset:auto 0 0;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;max-width:none;min-height:48px;padding:10px max(24px,calc((100% - 1360px)/2));margin:0;border:0;background:linear-gradient(to bottom,color-mix(in srgb,var(--bg) 94%,var(--sage)),color-mix(in srgb,var(--bg) 80%,var(--sage)));color:var(--muted);font-size:11px}
.csri-footer::before{content:'';position:absolute;left:0;right:0;bottom:100%;height:14px;background:linear-gradient(to bottom,transparent,color-mix(in srgb,var(--bg) 94%,var(--sage)));pointer-events:none}
.csri-footer button{font-size:11px;font-weight:300;color:inherit}
.csri-footer button:hover{color:var(--accent)}
.csri-footer .footer-copyright{white-space:normal;min-width:0}
.csri-footer .footer-version{white-space:nowrap}
#ency-up,.back-to-top{bottom:72px}
@media(max-width:700px){
 body .csri-header.has-search{height:auto;min-height:64px}
 body .csri-header{padding:12px 20px;gap:12px;flex-wrap:wrap;min-height:64px}
 .csri-header .preferences{gap:8px}
 body .csri-header>form{order:3;flex-basis:100%;width:100%}
 .csri-account-slot{width:28px}
 body{padding-bottom:76px}
 body>footer.csri-footer{min-height:68px;flex-direction:column;justify-content:center;gap:4px;padding:8px 14px}
 .csri-footer>div{gap:18px}
 #ency-up,.back-to-top{bottom:84px}
}
