/* Shared two-tier navigation. The product shortcut row belongs to the home page. */
:root { --sn-main-height: 76px; --sn-product-height: 44px; --sp-header: var(--sn-main-height); }
body[data-page="home"] { --header-height: calc(var(--sn-main-height) + var(--sn-product-height)); }
html:has(.sn-header) { scroll-padding-top: calc(var(--sn-main-height) + 16px); }
html:has(.sn-header-home) { scroll-padding-top: calc(var(--sn-main-height) + var(--sn-product-height) + 16px); }
body[data-page="home"] :is(#npu, #product, #system, #specs, #contact) { scroll-margin-top: 0; }
body[data-page="home"] .cin-hero-content { padding-top: calc(var(--header-height) + 40px); }
body.sn-nav-open { overflow: hidden; }
.sn-header, .sn-header * { box-sizing: border-box; }
.sn-header {
  position: fixed; inset: 0 0 auto; z-index: 1100;
  color: #fff; background: #091321; border-bottom: 1px solid #293746;
  font-family: "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; font-weight: 500; line-height: 1.5;
  text-align: left; letter-spacing: 0;
}
.sn-header ::selection { background: #27b7e8; color: #07101f; }
.sn-header :focus-visible { outline: 2px solid #54d2fb; outline-offset: 4px; }
.sn-header a { color: inherit; text-decoration: none; }
.sn-header button, .sn-header summary { color: inherit; font: inherit; cursor: pointer; }
.sn-header button { margin: 0; border-radius: 0; }
.sn-header svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sn-header [hidden] { display: none; }
.sn-shell { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.sn-main-row { display: grid; grid-template-columns: 164px 1fr auto; align-items: center; gap: 28px; min-height: var(--sn-main-height); }
.sn-brand { display: flex; align-items: center; width: 134px; min-height: 44px; }
.sn-brand img { display: block; width: 100%; height: auto; }
.sn-primary { display: flex; align-items: center; justify-content: center; gap: 28px; }
.sn-dropdown { position: relative; margin: 0; }
.sn-dropdown > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; list-style: none; }
.sn-dropdown > summary::-webkit-details-marker { display: none; }
.sn-dropdown > summary::marker { content: ""; }
.sn-dropdown > summary svg { width: 16px; height: 16px; color: #a9bacb; transition: transform 160ms ease-out; }
.sn-dropdown[open] > summary svg { transform: rotate(180deg); }
.sn-primary > .sn-dropdown[open] > summary, .sn-current-group, .sn-primary summary:hover, .sn-business-link:hover { color: #54d2fb; }
.sn-dropdown-panel {
  position: absolute; top: calc(100% + 15px); left: -20px; z-index: 2;
  width: 242px; max-height: calc(100dvh - var(--sn-main-height) - 24px); overflow-y: auto;
  padding: 10px; border: 1px solid #344454; background: #101e2e;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .24); scrollbar-color: #8295a8 #101e2e;
}
.sn-dropdown-panel a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 10px 12px; color: #e4edf5; font-size: 14px; font-weight: 400; }
.sn-dropdown-panel a:hover, .sn-dropdown-panel a:focus-visible { color: #fff; background: #22384b; }
.sn-dropdown-panel [aria-current="page"] { color: #54d2fb; text-decoration: underline; text-underline-offset: 5px; }
.sn-dropdown-panel small { color: #a9bacb; font-size: 11px; }
.sn-dropdown-divider { height: 1px; margin: 8px 12px; background: #344454; }
.sn-business { position: relative; display: flex; align-items: center; }
.sn-business-link { display: flex; align-items: center; min-height: 44px; }
.sn-business-dropdown { position: static; }
.sn-business-dropdown > summary { justify-content: center; width: 32px; }
.sn-business-dropdown .sn-dropdown-panel { left: -20px; }
.sn-actions { display: flex; align-items: center; gap: 24px; }
.sn-header .language-trigger, .sn-languages > summary { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 12px; white-space: nowrap; }
.sn-header .language-trigger > span:last-child, .sn-alternate { color: #a9bacb; }
.sn-languages .sn-dropdown-panel { right: 0; left: auto; width: 174px; }
.sn-header .language-menu { top: calc(100% + 15px); z-index: 3; border-color: #344454; background: #101e2e; }
.sn-header .language-option { font-size: 14px; }
.sn-header a.sn-contact { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 42px; padding: 10px 18px; color: #07101f; background: #27b7e8; font-size: 14px; font-weight: 600; transition: background-color 160ms ease-out; white-space: nowrap; }
.sn-header a.sn-contact:hover { background: #81ddfa; }
.sn-menu-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 10px; border: 1px solid #516173; background: transparent; }
.sn-menu-toggle svg { width: 24px; height: 24px; }
.sn-menu-toggle[aria-expanded="true"] path { d: path("M6 6 18 18M6 18 18 6"); }
.sn-products { background: #101e2e; border-top: 1px solid #293746; }
.sn-product-links { display: flex; align-items: stretch; gap: 40px; padding-left: 192px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #8295a8 #101e2e; }
.sn-product-links a { display: flex; align-items: center; position: relative; min-height: var(--sn-product-height); padding: 0 2px; flex-shrink: 0; font-size: 13px; font-weight: 400; color: #c2cfdb; white-space: nowrap; }
.sn-product-links a:hover, .sn-product-links a[aria-current="location"] { color: #fff; }
.sn-product-links a[aria-current="location"]::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: #27b7e8; }
.sn-product-links a:focus-visible { outline-offset: -4px; }
@media (max-width: 1000px) {
  .sn-main-row { grid-template-columns: 140px 1fr auto; gap: 18px; }
  .sn-primary { gap: 18px; }
  .sn-actions { gap: 18px; }
  .sn-product-links { padding-left: 158px; }
}
@media (max-width: 760px) {
  :root { --sn-main-height: 68px; }
  .sn-shell { width: calc(100% - 32px); }
  .sn-main-row { display: flex; justify-content: space-between; gap: 16px; }
  .sn-brand { width: 116px; flex-shrink: 0; }
  .sn-actions { margin-left: auto; gap: 12px; }
  .sn-header a.sn-contact { min-height: 40px; padding: 9px 14px; gap: 12px; font-size: 13px; }
  .sn-main-row > .sn-primary { position: fixed; inset: var(--sn-main-height) 0 auto; max-height: calc(100dvh - var(--sn-main-height)); padding: 16px 24px 28px; border-top: 1px solid #344454; border-bottom: 1px solid #344454; overflow-y: auto; background: #091321; box-shadow: 0 18px 30px rgba(0, 0, 0, .2); flex-direction: column; align-items: stretch; gap: 0; z-index: 4; }
  .sn-ready .sn-primary:not(.is-open) { display: none; }
  .sn-ready .sn-menu-toggle { display: flex; }
  .sn-primary > .sn-dropdown, .sn-business { border-bottom: 1px solid #344454; }
  .sn-primary > .sn-dropdown > summary { min-height: 62px; justify-content: space-between; font-size: 20px; }
  .sn-primary .sn-dropdown-panel { position: static; width: 100%; max-height: none; margin-bottom: 14px; border: 0; padding: 4px; box-shadow: none; }
  .sn-primary .sn-dropdown-panel a { min-height: 44px; font-size: 15px; }
  .sn-business { display: block; }
  .sn-business-link { position: relative; z-index: 1; width: calc(100% - 44px); min-height: 62px; font-size: 20px; }
  .sn-business-dropdown { position: static; display: block; margin-top: -62px; }
  .sn-business-dropdown > summary { width: 44px; min-height: 62px; margin-left: auto; }
  .sn-product-links { width: 100%; padding-inline: 16px; justify-content: space-between; gap: 24px; }
  .sn-product-links a { min-height: 44px; font-size: 12px; }
  body[data-page="home"] .cin-hero-content { padding-top: calc(var(--header-height) + 32px); }
}
@media (max-width: 420px) {
  .sn-main-row { gap: 10px; }
  .sn-actions { gap: 8px; }
  .sn-header a.sn-contact { padding-inline: 10px; gap: 7px; }
  .sn-header a.sn-contact svg { display: none; }
  .sn-header .language-trigger > span:last-child, .sn-alternate { display: none; }
  .sn-languages { min-width: 32px; }
  .sn-header .language-trigger, .sn-languages > summary { justify-content: center; }
  .sn-product-links { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sn-header *, .sn-header *::after { transition: none; }
}
