@font-face {
  font-family: KineksSymbol;
  font-weight: 700;
  font-style: normal;
  src: url("../assets/fonts/Kineks-Symbol.woff2") format("woff2");
  font-display: swap;
}
.glyph-preview-char, .glyph { font-family: KineksSymbol, sans-serif; font-weight: 700; }
.glyph-overview-title { margin: 0; }
.system-count { font-size: 11px; color: #777; }
.symbol-group h3 { margin: 0; font-size: inherit; }
.symbol-group .glyph-title { min-height: 44px; }
.symbol-group .glyph-title small { flex-shrink: 0; }
.symbol-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid #bbb;
  border-left: 1px solid #bbb;
  margin-bottom: 12px;
}
.symbol-grid[hidden] { display: none; }
.symbol-grid .glyph { width: 100%; height: 64px; font-size: 32px; color: #111; }
.symbol-grid .glyph[aria-pressed="true"] { background: #111; color: white; }
.glyph-preview-meta { gap: 12px; white-space: normal; }
.glyph-preview-meta span:first-child { max-width: none; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.glyph-preview-meta span:last-child { flex-shrink: 0; }
.links button:disabled { padding: 0; border: 0; background: none; font: inherit; color: #666; }
@media (max-width: 800px) {
  .symbol-grid .glyph { height: 48px; font-size: 24px; }
}

.product-title { font-family: KineksHeading, Arial, sans-serif; font-weight: 700; }
.glyph svg, .glyph-preview-char svg { display: block; width: 1.2em; height: 1.2em; fill: currentColor; }
.symbol-grid { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); }
.glyph-preview-meta span:first-child { white-space: normal; }
@media (max-width: 800px) {
  .glyph-overview-title { font-size: 26px; }
  .glyph-preview { position: static; height: 240px; max-width: none; }
  .glyph-preview-char { font-size: clamp(100px, 25vw, 150px); }
}

.character-set-note{font-size:12px;line-height:1.45;color:#555;margin:0 0 24px}

.symbols-in-use { border-top: 1px solid #aaa; padding-top: 24px; margin: 48px 0; }
.symbols-gallery-track { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 16px; }
.symbols-gallery-track figure { min-width:0; margin:0; }
.symbols-gallery-track img { display:block; width:100%; height:auto; aspect-ratio:2/1; object-fit:contain; }
.symbols-gallery-track figcaption { margin:10px 0 0; font-size:12px; line-height:1.5; color:#555; }
.symbols-context-open { display:block; width:100%; padding:0; border:0; background:transparent; cursor:zoom-in; }
.symbols-context-open:focus-visible,.symbols-context-close:focus-visible { outline:2px solid #111; outline-offset:4px; }
.symbols-context-lightbox { position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none; margin:0; padding:64px 24px 24px; box-sizing:border-box; border:0; background:transparent; color:#fff; }
.symbols-context-lightbox[open] { display:flex; align-items:center; justify-content:center; }
.symbols-context-lightbox::backdrop { background:rgba(0,0,0,.88); }
.symbols-context-lightbox figure { width:fit-content; max-width:1400px; margin:0; pointer-events:none; }
.symbols-context-lightbox img { display:block; width:auto; height:auto; max-width:100%; max-height:calc(100dvh - 200px); margin:0 auto; object-fit:contain; pointer-events:auto; }
.symbols-context-lightbox figcaption { max-width:850px; max-height:100px; overflow:auto; margin:16px auto 0; font-size:13px; line-height:1.5; pointer-events:auto; }
.symbols-context-close { position:absolute; top:12px; right:16px; width:44px; height:44px; padding:0; border:0; background:transparent; color:#fff; font:inherit; font-size:32px; cursor:pointer; }
.symbols-context-close:focus-visible { outline-color:#fff; }
@media(max-width:540px) { .symbols-gallery-track { grid-template-columns:1fr; gap:24px; } .symbols-context-lightbox { padding:60px 12px 20px; } }

.theme-toggle { font-family: KineksCompactUI, Arial, sans-serif; }

html[data-theme="dark"] body { color: var(--black); }

html[data-theme="dark"] :is(.top-grid, .about-meta-item, .glyph-overview-head, .glyph-preview, .availability, .footer) {
  border-color: var(--black);
}

html[data-theme="dark"] :is(.symbols-in-use, .glyph-preview-meta, .glyph-groups, .glyph-group, .symbol-grid, .symbol-grid .glyph) {
  border-color: #555550;
}

html[data-theme="dark"] :is(.font-info-label, .system-count, .glyph-preview-meta span:last-child, .glyph-title small, .links button:disabled) {
  color: var(--gray);
}

html[data-theme="dark"] :is(.character-set-note, .symbols-gallery-track figcaption) { color: #b8b7b1; }

html[data-theme="dark"] :is(.glyph-preview, .glyph-title, .symbol-grid .glyph) {
  background: #151515;
  color: var(--black);
}

html[data-theme="dark"] :is(.glyph-title:hover, .symbol-grid .glyph:hover, .symbol-grid .glyph:focus-visible) {
  background: #292929;
}

html[data-theme="dark"] .symbol-grid .glyph[aria-pressed="true"] {
  background: var(--black);
  color: #151515;
}

html[data-theme="dark"] :is(.glyph-title, .symbols-context-open):focus-visible { outline-color: var(--black); }
html[data-theme="dark"] .symbol-grid .glyph:focus-visible { box-shadow: inset 0 0 0 2px currentColor; }

.product { padding-top:0; }
.symbols-opening {
  position:relative;
  min-height:max(300px,100svh);
  display:grid;
  place-items:center;
  padding:44px 0;
}
.symbols-opening-specimen { width:min(100%,780px); }
.symbols-opening .product-title {
  margin:0;
  font-size:clamp(34px,8vw,112px);
  line-height:1;
}
.symbols-opening-glyphs {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin:0 auto clamp(10px,3vh,28px);
}
.symbols-opening-glyphs svg {
  display:block;
  width:100%;
  height:auto;
  max-height:34svh;
  fill:currentColor;
}
.symbols-section-nav {
  position:sticky;
  top:0;
  z-index:10;
  background:var(--symbols-paper,#fff);
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:0 24px;
  border-block:1px solid var(--symbols-rule);
}
.symbols-section-nav a { padding:13px 0; font-size:12px; }
.symbols-section-nav a:hover { text-decoration:underline; }
#symbols-about { scroll-margin-top:24px; }
#glyphs,#symbols-in-use,#availability { scroll-margin-top:64px; }
:root { --symbols-rule:#bbb; --symbols-action:#f3f3f3; }
html[data-theme="dark"] { --symbols-paper:#151515; --symbols-rule:#555550; --symbols-action:#292929; }
.availability .symbols-resource-links { gap:6px; font-family:KineksSymbolUI,Arial,sans-serif; font-weight:600; }
.symbols-resource-links :is(a,button:disabled) {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 11px;
  min-height:44px;
  background:var(--symbols-action);
  text-decoration:none;
  border-radius:0;
}
.symbols-resource-links a { transition:border-radius 200ms ease; }
.symbols-resource-links a:is(:hover,:focus-visible) { border-radius:7px; }
.symbols-link-window { overflow:hidden; display:block; }
.symbols-link-label { display:block; line-height:1.3; }
@media(prefers-reduced-motion:no-preference) {
  .symbols-resource-links a:is(:hover,:focus-visible) .symbols-link-label { animation:symbols-link-roll 320ms ease both; }
}
@keyframes symbols-link-roll {
  0%,100% { transform:translateY(0); }
  44% { transform:translateY(-110%); }
  45% { transform:translateY(110%); }
}

@font-face { font-family:KineksSymbolUI; src:url("../assets/fonts/KineksCompact-SemiBold.woff2") format("woff2"); font-weight:600; font-display:swap; }
