/* /style/platform-header.css */
@scope (html[data-site-styles~="836e0431f8f73eb4"]) {/* Shared PLATFORM-HEADER-1 chrome. This is the sole header skin for Astro,
   Svelte, static tools, admin, foundations, and the kids-books bridge. */
iotclass-platform-header:where(:scope, *) { display: block; position: relative; z-index: 1100; min-height: 124px; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.skip-link:where(:scope, *) { position: fixed; z-index: 9999; top: 8px; left: 8px; transform: translateY(-160%); padding: 8px 12px; border-radius: 6px; background: #fff; color: #17303f; font-weight: 800; }
.skip-link:focus:where(:scope, *) { transform: translateY(0); }
.platform-header:where(:scope, *) { display: grid; grid-template-columns: minmax(150px,1fr) minmax(420px,40vw) minmax(150px,1fr); grid-template-areas: "brand search auth" ". links ."; align-items: center; gap: 8px 24px; box-sizing: border-box; width: 100%; min-height: 124px; height: 124px; padding: 12px clamp(18px,3vw,48px) 10px; border-top: 3px solid #1865f2; border-bottom: 1px solid #dbdcdd; background: #fff; color: #21242c; box-shadow: none; }
.platform-header a:where(:scope, *) { color: #334155; text-decoration: none; }
.platform-header__brand:where(:scope, *) { grid-area: brand; display: inline-flex; width: max-content; min-height: 44px; align-items: center; gap: 9px; color: #17303f !important; font-size: 1rem; font-weight: 800; }
/* Founder 2026-09-08: the logo is square; no corner rounding from the global img rule. */
.platform-header__brand img:where(:scope, *) { display: block; width: 40px; height: 40px; object-fit: contain; box-shadow: none; border-radius: 0; }
.platform-header__search:where(:scope, *) { grid-area: search; display: flex; width: 100%; min-height: 44px; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #f7f8fa; color: #475569; font: inherit; font-size: .92rem; cursor: pointer; }
.platform-header__search:hover:where(:scope, *) { border-color: #1865f2; background: #f1f5f9; }
.platform-header__search svg:where(:scope, *) { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.platform-header__search span:where(:scope, *) { flex: 1; text-align: left; }
.platform-header__search kbd:where(:scope, *) { padding: 2px 6px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; color: #64748b; font: 700 .72rem/1.4 inherit; }
.platform-header .platform-header__auth:where(:scope, *) { grid-area: auth; display: flex; flex: 0 0 150px; width: 150px; min-width: 150px; max-width: 150px; height: 44px; justify-self: end; justify-content: flex-end; align-items: center; gap: 8px; }
.platform-header__signin:where(:scope, *),.platform-header .iotclass-profile-presence-signout:where(:scope, *) { min-height: 44px; padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #17303f; font: inherit; font-size: .84rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.platform-header__links:where(:scope, *) { grid-area: links; display: flex; justify-content: center; align-items: center; gap: clamp(16px,2vw,30px); min-width: 0; }
.platform-header__links a:where(:scope, *) { padding: 5px 2px 7px; border-bottom: 2px solid transparent; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.platform-header__links a.platform-header__nav-active:where(:scope, *) { border-bottom-color: #1865f2; color: #1251c5; }
.platform-header__links a:hover:where(:scope, *) { color: #1251c5; }
.platform-header__toggle:where(:scope, *) { display: none; grid-area: toggle; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #17303f; }
.platform-header #iot-feature-controls-root:where(:scope, *) { position: absolute; width: 0; height: 0; }
.platform-header__toggle span:where(:scope, *),.platform-header__toggle span:where(:scope, *)::before,.platform-header__toggle span:where(:scope, *)::after { display: block; width: 18px; height: 2px; background: currentColor; content: ""; }
.platform-header__toggle span:where(:scope, *) { position: relative; }.platform-header__toggle span:where(:scope, *)::before { position: absolute; top: -6px; }.platform-header__toggle span:where(:scope, *)::after { position: absolute; top: 6px; }
.platform-header :focus-visible:where(:scope, *) { outline: 3px solid rgba(24,101,242,.28); outline-offset: 2px; }
.platform-header .iotclass-profile-presence:where(:scope, *) { position: relative; }
.platform-header .iotclass-profile-presence-trigger:where(:scope, *) { display: flex; min-height: 44px; align-items: center; gap: 7px; padding: 4px 8px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #17303f; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.platform-header .iotclass-profile-presence-avatar:where(:scope, *) { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: none; }
.platform-header .iotclass-profile-presence-menu:where(:scope, *) { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: 210px; padding: 8px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; box-shadow: 0 12px 28px rgba(15,23,42,.14); }
.platform-header .iotclass-profile-presence-menu[hidden]:where(:scope, *) { display: none; }
.platform-header .iotclass-profile-presence-menu a:where(:scope, *),.platform-header .iotclass-profile-presence-menu button:where(:scope, *),.platform-header .iotclass-profile-presence-progress:where(:scope, *) { display: block; box-sizing: border-box; width: 100%; margin: 0; padding: 8px; text-align: left; font-size: .82rem; }
.platform-header .iotclass-profile-presence-progress:where(:scope, *) { color: #64748b; }
/* Social icons (TikTok, X, YouTube): in the bar beside Sign in from 1280 px; folded into the menu / links row below that. 44 px tap targets, 20 px icons. */
.platform-header__auth-group:where(:scope, *) { grid-area: auth; display: flex; align-items: center; justify-self: end; justify-content: flex-end; gap: 4px; min-width: 0; }
.platform-header .platform-header__auth-group > .platform-header__auth:where(:scope, *) { grid-area: auto; }
.platform-header__social:where(:scope, *) { display: none; align-items: center; gap: 0; }
.platform-header .platform-header__social-link:where(:scope, *) { display: inline-flex; box-sizing: border-box; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; align-items: center; justify-content: center; color: #334155; border-radius: 7px; }
.platform-header .platform-header__social-link:hover:where(:scope, *) { color: #1251c5; background: #f1f5f9; }
.platform-header .platform-header__social-link svg:where(:scope, *) { width: 20px; height: 20px; }
.platform-header__social--menu:where(:scope, *) { display: inline-flex; }
@media (min-width: 1280px) {
  .platform-header__social--bar:where(:scope, *) { display: inline-flex; }
  .platform-header__social--menu:where(:scope, *) { display: none; }
}
@media (max-width: 860px) {
  .platform-header__social--menu:where(:scope, *) { display: flex; justify-content: flex-start; padding: 4px 4px 0; }
}
@media (max-width: 860px) {
  iotclass-platform-header:where(:scope, *) { min-height: 154px; }
  .platform-header:where(:scope, *) { grid-template-columns: minmax(0, 1fr) auto auto auto; grid-template-areas: "brand auth controls toggle" "search search search search"; min-height: 154px; height: 154px; gap: 10px 12px; padding: 10px 16px 12px; }
  .platform-header #iot-feature-controls-root:where(:scope, *) { position: static; grid-area: controls; width: 44px; height: 44px; }
  .platform-header__search:where(:scope, *) { width: 100%; min-width: 0; }
  .platform-header__toggle:where(:scope, *) { display: inline-flex; }
  .platform-header__links:where(:scope, *) { display: none; position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 14px; border-bottom: 1px solid #dbdcdd; background: #fff; box-shadow: 0 12px 24px rgba(15,23,42,.12); }
  .platform-header[data-menu-open="true"] .platform-header__links:where(:scope, *) { display: flex; }
  .platform-header__links a:where(:scope, *) { min-height: 42px; padding: 11px 8px; }
  .platform-header__auth .iotclass-profile-presence-label:where(:scope, *) { display: none; }
  .platform-header .platform-header__auth:where(:scope, *) { flex-basis: 70px; width: 70px; min-width: 70px; max-width: 70px; }
}
@media (max-width: 430px) {
  .platform-header:where(:scope, *) { grid-template-columns: minmax(0, 1fr) auto auto auto; padding-inline: 12px; }
  .platform-header__brand span:where(:scope, *) { font-size: .9rem; }
  .platform-header__brand img:where(:scope, *) { width: 34px; height: 34px; }
  .platform-header__search kbd:where(:scope, *) { display: none; }
  .platform-header__signin:where(:scope, *) { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) { .platform-header *:where(:scope, *) { scroll-behavior: auto !important; } }
/* Phone table-of-contents toggle lives in the header's auth row (it used to sit in the module bar). */
.platform-header .toc-mobile-toggle-inline:where(:scope, *) { display: inline-flex; width: 44px; min-width: 44px; min-height: 44px; padding: 0; align-items: center; justify-content: center; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #17303f; box-shadow: none; }
.platform-header .toc-mobile-toggle-inline .toc-toggle-text:where(:scope, *) { display: none; }
.platform-header .toc-mobile-toggle-inline:hover:where(:scope, *), .platform-header .toc-mobile-toggle-inline.active:where(:scope, *) { border-color: #1865f2; color: #1251c5; background: #f1f5f9; }
/* World uses the shared feature gate, including before the runtime is ready. */
.platform-header [data-feature-gate="world"][hidden]:where(:scope, *) { display: none !important; }
/* World is shown by default (feature-enable-1): give its link its space from the first paint (prepaint sets data-feat-world) so the header does not shift when the feature gate opens. */
html:where(:scope)[data-feat-world="on"] .platform-header [data-feature-gate="world"][hidden] { display: inline !important; }
}
