@font-face {
  font-family: NeelaDisplay;
  src: url("../assets/fonts/neela/Neela-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: NeelaRegular;
  src: url("../assets/fonts/neela/Neela-Regular.woff2") format("woff2");
  font-display: swap;
}
.product-title { font-family: NeelaDisplay, sans-serif; font-weight: 900; }
.type-preview { font-family: NeelaRegular, sans-serif; }
.family-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.glyph-source { position: absolute; width: 0; height: 0; overflow: hidden; }
.glyph-overview-title { margin: 0; }
.glyph-group summary { padding: 12px 0; cursor: pointer; font-size: 13px; }
.glyph-group small { float: right; }
.glyph-group[open] .glyph-grid { display: grid; }
.glyph svg { width: 80%; height: 80%; fill: currentColor; }
.glyph-preview-char svg { width: 85%; height: 100%; min-height: 0; }
.glyph-preview-meta span:first-child { max-width: 74%; white-space: normal; }
@media (max-width: 800px) {
  .glyph-preview { position: sticky; top: 0; z-index: 1; height: 145px; max-width: none; }
}

.neela-in-use { border-top: 1px solid #aaa; padding-top: 24px; margin: 48px 0; }
.neela-gallery-track { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px 16px; }
.neela-gallery-track figure { min-width:0; margin:0; }
.neela-gallery-track img { display:block; width:100%; height:auto; aspect-ratio:2/1; object-fit:contain; }
.neela-gallery-track figcaption { margin:10px 0 0; font-size:12px; line-height:1.5; color:#555; }
.neela-context-open { display:block; width:100%; padding:0; border:0; background:transparent; cursor:zoom-in; }
.neela-context-open:focus-visible,.neela-context-close:focus-visible { outline:2px solid #111; outline-offset:4px; }
.neela-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; }
.neela-context-lightbox[open] { display:flex; align-items:center; justify-content:center; }
.neela-context-lightbox::backdrop { background:rgba(0,0,0,.88); }
.neela-context-lightbox figure { width:fit-content; max-width:1400px; margin:0; pointer-events:none; }
.neela-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; }
.neela-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; }
.neela-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; }
.neela-context-close:focus-visible { outline-color:#fff; }
@media(max-width:1000px) { .neela-gallery-track { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { .neela-gallery-track { grid-template-columns:1fr; gap:24px; } .neela-context-lightbox { padding:60px 12px 20px; } }


.type-preview { overflow-wrap: anywhere; }
@media(max-width: 480px) { .family-controls { grid-template-columns: 1fr; } }

.theme-toggle { font-family: KineksCompactUI, Arial, sans-serif; }
.glyph-preview-char svg { fill: currentColor; }

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

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

html[data-theme="dark"] :is(.family-controls, .specimen-controls, .glyph-preview-meta, .glyph-groups, .glyph-group, .glyph-grid, .glyph, .reset-button, .neela-in-use) {
  border-color: #555550;
}

html[data-theme="dark"] :is(.font-info-label, .system-count, .type-system-count, .control-heading span, .specimen-note, .glyph-preview-meta span:last-child, .glyph-group small, .neela-gallery-track figcaption) {
  color: var(--gray);
}

html[data-theme="dark"] :is(.family-controls select, .control-heading input, .reset-button, .glyph-preview, .glyph) {
  background: #151515;
  color: var(--black);
}

html[data-theme="dark"] :is(.glyph:hover, .glyph:focus-visible, .reset-button:hover) { background: #292929; }
html[data-theme="dark"] input[type=range] { accent-color: var(--black); }
html[data-theme="dark"] :is(.type-preview, .family-controls select, .control-heading input, .reset-button, .glyph-group summary, .neela-context-open):focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}
html[data-theme="dark"] .glyph:focus-visible { box-shadow: inset 0 0 0 2px currentColor; }

.neela-hero {
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  min-height: 100svh;
  padding-block: 24px;
  text-align: center;
}

.neela-hero .product-title {
  margin: 0;
  font-size: clamp(64px, 21vw, 320px);
  line-height: 1.12;
}

.neela-hero a,
.neela-section-nav a {
  padding: 12px 4px;
}

.neela-section-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--neela-paper, #fff);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 24px;
  border-block: 1px solid color-mix(in srgb, currentColor 25%, transparent);
}

.neela-tools {
  margin-top: 16px;
  padding-inline: 16px;
  background: color-mix(in srgb, currentColor 6%, transparent);
  border-radius: 6px;
}



#system .type-preview {
  display: grid;
  align-content: center;
  min-height: clamp(240px, 36vw, 460px);
  margin-inline: auto;
  text-align: center;
}

html[data-theme="dark"] { --neela-paper:#151515; --neela-action:#292929; }
#system,#neela-in-use,#glyphs,#availability { scroll-margin-top:64px; }
@font-face { font-family:NeelaActionUI; src:url("../assets/fonts/KineksCompact-SemiBold.woff2") format("woff2"); font-weight:600; font-display:swap; }
#availability .links { gap:6px; }
#availability .links a { display:inline-flex; align-items:center; min-height:44px; padding:8px 11px; background:var(--neela-action,#f3f3f3); font-family:NeelaActionUI,Arial,sans-serif; font-weight:600; text-decoration:none; }
#availability .links a:is(:hover,:focus-visible) { border-radius:7px; }

.neela-playground { display:grid; grid-template-columns:minmax(0,1fr); }
.neela-playground > * { grid-column:1; min-width:0; }
.neela-tools {
  grid-row:1;
  visibility:hidden;
  margin:0;
  padding:8px 12px;
}
.neela-toggle { grid-row:1; justify-self:start; z-index:1; }
.neela-toggle[aria-expanded="true"] { grid-row:2; }
.neela-toggle[aria-expanded="true"] + .neela-tools,
.neela-tools:focus-within,
#typePreview:focus-visible ~ .neela-tools { visibility:visible; }
#system .type-preview { grid-row:3; width:100%; }
@media (hover:hover) and (pointer:fine) {
  .neela-playground:hover .neela-tools { visibility:visible; }
  .neela-toggle:not(:focus):not([aria-expanded="true"]) { clip-path:inset(50%); }
}
@media (max-width:800px), (hover:none), (pointer:coarse) {
  .neela-tools { visibility:visible; }
  .neela-toggle { display:none; }
}
#availability .links a { gap:7px; transition:border-radius 200ms ease, background-color 200ms ease, color 200ms ease; }
#availability .links a:is(:hover,:focus-visible) {
  background:var(--black,#111);
  color:var(--neela-paper,#fff);
}
.neela-link-window { overflow:hidden; }
.neela-link-label,.neela-link-arrow { display:inline-block; }
@media (prefers-reduced-motion:no-preference) {
  #availability .links a:is(:hover,:focus-visible) .neela-link-label { animation:neela-link-roll 320ms ease both; }
  .neela-link-arrow { transition:transform 200ms ease; }
  #availability .links a:is(:hover,:focus-visible) .neela-link-arrow { transform:translateX(3px); }
}
@keyframes neela-link-roll {
  0% { transform:translateY(0); }
  49% { transform:translateY(-105%); }
  50% { transform:translateY(105%); }
  100% { transform:translateY(0); }
}

.neela-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; }
.neela-tools :is(.family-controls,.specimen-controls) { flex:1 1 280px; min-width:0; margin:0; padding:0; border:0; gap:8px 12px; }
.neela-tools .control-heading { flex-wrap:wrap; gap:4px; }
.neela-tools .control-heading label { font-size:10px; text-transform:uppercase; }

.neela-tools {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:stretch;
  gap:0;
  padding:0;
  overflow:hidden;
}
.neela-tools [hidden] { display:none; }
.neela-modes { display:flex; border-inline-end:1px solid var(--neela-paper,#fff); }
.neela-modes button {
  width:40px;
  min-height:44px;
  border:0;
  background:transparent;
  color:inherit;
  cursor:pointer;
}
.neela-modes button[aria-pressed="true"] {
  background:var(--black,#111);
  color:var(--neela-paper,#fff);
}
.neela-modes button:focus-visible { outline:2px solid currentColor; outline-offset:-4px; }
.neela-tools :is(.family-controls,.specimen-controls) { padding:6px 10px; align-items:center; }
.neela-tools select { background:transparent; color:inherit; border:0; }
@media (max-width:600px) {
  .neela-tools { grid-template-columns:minmax(0,1fr); }
  .neela-tools .specimen-controls { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
