/* Slim public handbook stylesheet. Scoped Vue CSS is stripped on these routes. */
:root {
  --bg: #e7eeea;
  --surface: #f4f7f5;
  --ink: #12241c;
  --muted: #3c5348;
  --link: #0c6848;
  --line: rgba(18, 36, 28, 0.12);
  --accent: #9ef01a;
  --accent-ink: #12241c;
  --inverse: #12241c;
  --inverse-ink: #e7f6ee;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-z: 80;
  --skip-z: 90;
  color-scheme: light;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101916;
    --surface: #182420;
    --ink: #e7f2ec;
    --muted: #a9c3b6;
    --link: #8fd9a8;
    --line: rgba(231, 242, 236, 0.14);
    --accent: #c6f04a;
    --accent-ink: #12241c;
    --inverse: #0b1612;
    --inverse-ink: #e7f6ee;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "palt";
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  cursor: pointer;
}

button,
label,
summary {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.jev-skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: var(--skip-z);
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.jev-skip:focus {
  transform: none;
}

/* —— Shell —— */
.jev-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
}

.jev-shell__header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

@media (prefers-reduced-transparency: reduce) {
  .jev-shell__header,
  .jev-wall__bar,
  .jev-cases__nav {
    background: var(--bg);
    backdrop-filter: none;
  }
}

.jev-shell__header-inner,
.jev-shell__footer-inner,
.jev-shell__main {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.jev-shell__header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas:
    "brand lang menu"
    "nav nav nav";
  align-items: center;
  gap: 0.35rem 0.75rem;
  min-height: 64px;
  padding: 0.45rem 0;
}

.jev-shell__brand {
  grid-area: brand;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.02rem;
}

.jev-shell__logo {
  border-radius: 8px;
}

.jev-lang {
  grid-area: lang;
  position: relative;
}

.jev-lang__btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.jev-lang__btn::-webkit-details-marker {
  display: none;
}

.jev-lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 30;
  display: grid;
  min-width: 9.5rem;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(18, 36, 28, 0.12);
}

.jev-lang__menu button {
  min-height: 44px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
}

.jev-lang__menu button[aria-current="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.jev-nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.jev-nav-toggle:focus-visible + .jev-nav-toggle__label {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.jev-nav-toggle__label {
  grid-area: menu;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 700;
}

.jev-shell__nav {
  grid-area: nav;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.45rem;
  min-width: 0;
}

.jev-shell__header:has(.jev-nav-toggle:checked) .jev-shell__nav {
  display: flex;
}

.jev-shell__nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  touch-action: manipulation;
}

.jev-shell__nav-link:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.jev-shell__nav-link.router-link-exact-active {
  color: var(--accent-ink);
  background: var(--accent);
}

.jev-shell__main {
  flex: 1;
  padding: 1.25rem 0 4rem;
}

.jev-shell__native {
  width: min(100% - 2rem, 76rem);
  margin: 0 auto 1.5rem;
}

.jev-shell__footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  /* Clearance for the bottom-center SocialBar slot (max 4.5rem + offset). */
  padding: 2rem 0 6.5rem;
}

.jev-shell__disclaimer {
  margin: 0 0 1rem;
  max-width: 65ch;
  font-weight: 600;
  color: var(--ink);
}

.jev-shell__footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-bottom: 1rem;
}

.jev-shell__footer-nav a {
  color: var(--link);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.jev-shell__footer-nav a:hover {
  text-decoration: underline;
}

.jev-shell__copy {
  margin: 0;
  max-width: 65ch;
  font-size: 0.88rem;
  color: var(--muted);
}

.jev-shell__copy a {
  color: var(--link);
}

@media (min-width: 1180px) {
  .jev-shell__header-inner {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    grid-template-areas: "brand nav lang";
    gap: 1rem;
    min-height: 64px;
    padding: 0;
  }

  .jev-shell__brand {
    min-width: max-content;
  }

  .jev-nav-toggle,
  .jev-nav-toggle__label {
    display: none;
  }

  .jev-shell__nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.1rem;
    padding: 0;
    min-width: 0;
    overflow-x: auto;
  }

  .jev-shell__nav-link {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 0.65rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }
}

/* —— Doc —— */
.jev-doc__hero {
  margin-bottom: 1.85rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.jev-doc__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.jev-doc__h1 {
  margin: 0 0 0.7rem;
  max-width: min(22em, 100%);
  overflow-wrap: anywhere;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.jev-doc__lead {
  margin: 0;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.jev-doc__updated {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.jev-doc__updated time {
  margin-left: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.jev-doc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.jev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
}

.jev-btn--quiet {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
}

.jev-markets {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.jev-markets p {
  margin: 0;
}

.jev-markets p[lang="ja"]::before,
.jev-markets p[lang="ko"]::before {
  display: inline-block;
  margin-right: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  vertical-align: 0.1em;
}

.jev-markets p[lang="ja"]::before {
  content: "日本語";
}

.jev-markets p[lang="ko"]::before {
  content: "한국어";
}

.jev-doc__body {
  display: grid;
  gap: 1.15rem;
  max-width: 68ch;
  font-size: 1.02rem;
  line-height: 1.65;
}

.jev-doc__body h2 {
  margin: 1.45rem 0 0.3rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.jev-doc__body h3 {
  margin: 1.2rem 0 0.4rem;
  font-size: 1.08rem;
}

.jev-doc__body p,
.jev-doc__body ul,
.jev-doc__body ol {
  margin: 0;
}

.jev-doc__body ul,
.jev-doc__body ol {
  padding-left: 1.2rem;
}

.jev-doc__body:has(.jev-catalog),
.jev-doc__body:has(.jev-wall),
.jev-doc__body:has(.builder),
.jev-doc__body:has(.calc),
.jev-doc__body:has(.jev-spot) {
  max-width: none;
}

.jev-doc__body:has(.jev-spot) > :not(.jev-spot) {
  max-width: 68ch;
}

.jev-doc__body a {
  color: var(--link);
  font-weight: 600;
}

.jev-doc__body pre,
.jev-doc__body .jev-code {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--inverse);
  color: var(--inverse-ink);
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.55;
}

.jev-doc__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.jev-doc__body th,
.jev-doc__body td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.jev-doc__body th {
  background: color-mix(in srgb, var(--accent) 28%, var(--surface));
}

.jev-doc__body .jev-callout {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  border-radius: 0 12px 12px 0;
}

.jev-blog-meta {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.jev-blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.jev-blog-list__link {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.jev-blog-list__link:hover .jev-blog-list__title {
  color: var(--link);
  text-decoration: underline;
}

.jev-blog-list__meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.jev-blog-list__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.jev-blog-list__desc {
  color: var(--muted);
  font-size: 0.98rem;
}

.jev-blog-prose :deep(h1) {
  display: none;
}

.jev-blog-prose :deep(h2) {
  margin-top: 2rem;
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
  line-height: 1.35;
}

.jev-blog-prose :deep(h3) {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.jev-blog-prose :deep(p),
.jev-blog-prose :deep(ul),
.jev-blog-prose :deep(ol),
.jev-blog-prose :deep(table) {
  margin-bottom: 1rem;
}

.jev-blog-prose :deep(li) {
  margin-bottom: 0.35rem;
}

.jev-blog-prose :deep(a) {
  color: var(--link);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.jev-blog-prose :deep(code) {
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: color-mix(in srgb, var(--ink) 8%, var(--surface));
}

.jev-blog-prose :deep(pre) {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 6%, var(--surface));
}

.jev-blog-prose :deep(pre code) {
  padding: 0;
  background: none;
}

.jev-doc__related {
  margin-top: 2.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.jev-doc__related-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.jev-doc__related ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.jev-doc__related a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.jev-doc__related a:hover {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
}

.jev-doc__body a.jev-spot__card {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}

.jev-spot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.jev-spot__card {
  display: grid;
  align-content: start;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
}

.jev-spot__card:hover {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--ink) 8%, transparent);
}

.jev-spot__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: var(--inverse);
}

.jev-spot__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jev-spot__mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--inverse);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--mono);
}

.jev-spot__author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.jev-spot__author span,
.jev-spot__meta {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.jev-spot__meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
}

.jev-spot__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.jev-spot__card--repo .jev-spot__meta {
  font-size: 0.72rem;
}

@media (max-width: 900px) {
  .jev-spot {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .jev-spot {
    grid-template-columns: 1fr;
  }
}

/* —— Legal —— */
.legal-page {
  width: min(100% - 2rem, 54rem);
  margin: 0 auto;
}

.legal-page__header {
  margin-bottom: 1.2rem;
}

.legal-page__meta {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.legal-page__title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.legal-page__card {
  padding: clamp(1rem, 2.5vw, 1.45rem);
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid rgba(11, 31, 26, 0.1);
}

.legal-page__content {
  display: grid;
  gap: 0.9rem;
  line-height: 1.7;
}

.legal-page__content h2 {
  margin: 0.6rem 0 0;
  font-size: 1.15rem;
}

.legal-page__content p {
  margin: 0;
}

/* —— Tools —— */
.builder {
  display: grid;
  gap: 1rem;
}

.builder__controls {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.builder__wide {
  grid-column: 1 / -1;
}

.builder label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.builder input,
.builder select,
.builder textarea {
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(11, 31, 26, 0.18);
  font: inherit;
}

.builder__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.builder__toolbar button {
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: var(--inverse);
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.builder .jev-code {
  margin: 0;
}

@media (max-width: 700px) {
  .builder__controls {
    grid-template-columns: 1fr;
  }
}

.calc {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid rgba(11, 31, 26, 0.1);
}

.calc__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.calc label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.calc input {
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(11, 31, 26, 0.18);
  font: inherit;
}

.calc__results {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  margin: 0;
}

.calc__results div {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(158, 240, 26, 0.14);
}

.calc__results dt {
  font-size: 0.78rem;
  color: var(--muted);
}

.calc__results dd {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--mono);
}

.jev-shell:has(.jev-catalog) .jev-shell__main,
.jev-shell:has(.jev-wall) .jev-shell__main {
  width: min(100% - 2rem, 88rem);
}


.jev-doc__body .jev-catalog__jumps a,
.jev-doc__body a.jev-card {
  color: var(--ink);
  font-weight: 600;
}

.jev-catalog__jumps {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.jev-catalog__jumps a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.15rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.2;
}

.jev-catalog__jumps a:hover {
  border-color: var(--line);
  background: var(--surface);
}

.jev-catalog__jumps a span:last-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.jev-catalog {
  display: grid;
  gap: 2.25rem;
}

.jev-catalog section {
  scroll-margin-top: 5.5rem;
}

.jev-doc__body .jev-catalog h2 {
  margin: 0 0 0.35rem;
  padding: 0;
  border: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.jev-catalog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.jev-card {
  display: grid;
  grid-template-columns: 2.25rem 13rem 17rem minmax(0, 1fr);
  grid-template-areas: "mark name repo summary";
  align-items: center;
  column-gap: 1rem;
  min-height: 52px;
  padding: 0.55rem 0.45rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  text-decoration: none;
  color: var(--ink);
}

.jev-card:hover {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.jev-card:hover .jev-card__name {
  color: var(--link);
}

.jev-card__mark {
  grid-area: mark;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--inverse);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--mono);
}

.jev-card__name {
  grid-area: name;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.jev-card__repo {
  grid-area: repo;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--mono);
}

.jev-card__summary {
  grid-area: summary;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 500;
}

.jev-wall__bar {
  position: sticky;
  top: 4.5rem;
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 11rem minmax(0, auto) auto;
  gap: 0.65rem 0.85rem;
  align-items: end;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.15rem 0.7rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
}

.jev-wall__search,
.jev-wall__sort {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.jev-wall__search input,
.jev-wall__sort select {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.jev-wall__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  min-height: 44px;
}

.jev-wall__filters legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.jev-wall__filters label {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  min-height: 36px;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.jev-wall__filters label:has(input:checked) {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

.jev-wall__filters input {
  accent-color: currentColor;
}

.jev-wall__count {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.jev-wall__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  align-items: stretch;
}

.jev-wall__empty {
  margin: 0.25rem 0 0;
  padding: 1.35rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.jev-wall__empty[hidden] {
  display: none;
}

.jev-case {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.75rem;
  min-width: 0;
  height: 100%;
  padding: 0.7rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
}

.jev-case[hidden] {
  display: none;
}

.jev-case:hover,
.jev-case:focus-within {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--ink) 8%, transparent);
}

.jev-case__media {
  display: block;
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 8px;
  background: var(--inverse);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
}

.jev-case__media.is-text {
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 48%, var(--surface)) 0%, var(--surface) 62%);
  border: 1px solid var(--line);
}

.jev-case__media-fallback {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
  padding: 0.55rem 0.6rem;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
}

.jev-case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jev-case__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  min-height: 9.5rem;
  padding: 0;
}

.jev-case__body header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.1rem 0.7rem;
  align-items: baseline;
}

.jev-case__author,
.jev-case__meta {
  margin: 0;
  min-width: 0;
}

.jev-case__author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.jev-case__meta {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  white-space: nowrap;
}

.jev-case__author span,
.jev-case__meta time {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.jev-case__lang {
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.jev-case__text,
.jev-case__zh,
.jev-case__quote {
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.jev-case__text {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
  height: calc(0.92rem * 1.45 * 3);
  -webkit-line-clamp: 3;
}

.jev-case__zh,
.jev-case__quote {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 500;
  height: calc(0.82rem * 1.4 * 2);
  -webkit-line-clamp: 2;
}

.jev-case__zh span {
  display: inline;
  margin: 0 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.jev-case__links {
  display: flex;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  white-space: nowrap;
}

.jev-case__links a,
.jev-case__body footer a {
  color: var(--link);
  font-weight: 700;
  white-space: nowrap;
}

.jev-case__body footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  align-items: baseline;
  margin-top: auto;
  padding-top: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.jev-case__body footer a {
  margin-inline-start: auto;
}

@media (max-width: 1080px) {
  .jev-catalog__jumps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.15rem 1rem;
  }

  .jev-catalog__jumps a {
    min-width: 0;
    min-height: 40px;
  }

  .jev-card {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    grid-template-areas:
      "mark name"
      "mark repo"
      "summary summary";
    align-items: start;
    row-gap: 0.1rem;
    padding: 0.75rem 0;
  }

  .jev-card__summary {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-top: 0.25rem;
  }

  .jev-wall__grid {
    grid-template-columns: 1fr;
  }

  .jev-wall__bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .jev-wall__search,
  .jev-wall__sort,
  .jev-wall__filters {
    grid-column: auto;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .jev-case {
    grid-template-columns: 4.75rem minmax(0, 1fr);
    gap: 0.7rem;
  }

  .jev-case__media {
    width: 4.75rem;
    height: 4.75rem;
    aspect-ratio: auto;
  }

  .jev-case__media-fallback {
    -webkit-line-clamp: 4;
    padding: 0.35rem 0.4rem;
    font-size: 0.58rem;
    line-height: 1.25;
  }

  .jev-wall__count {
    justify-content: flex-start;
  }
}

@media (min-width: 1180px) {
  .jev-wall__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .jev-case {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 0.6rem;
  }

  .jev-case__media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .jev-case__body {
    min-height: 0;
  }

  .jev-case__body header {
    grid-template-columns: minmax(0, 1fr);
  }
}

.builder input,
.builder select,
.builder textarea,
.calc input {
  min-height: 44px;
  border-radius: 8px;
  border-color: var(--line);
  background: var(--bg);
  color: var(--ink);
}

.builder__toolbar button {
  min-height: 44px;
  touch-action: manipulation;
}

::placeholder {
  color: var(--muted);
  opacity: 1;
}

.jev-btn:active,
.jev-shell__nav-link:active,
.builder__toolbar button:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: no-preference) {
  .jev-shell__nav-link,
  .jev-btn,
  .jev-card,
  .jev-case,
  .jev-spot__card,
  .builder__toolbar button {
    transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease);
  }

  .jev-case__media img,
  .jev-spot__media img {
    transition: transform 220ms var(--ease);
  }

  .jev-case:hover .jev-case__media img,
  .jev-spot__card:hover .jev-spot__media img {
    transform: scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jev-btn:active,
  .jev-shell__nav-link:active,
  .builder__toolbar button:active {
    transform: none;
  }
}

/* Cases: category rail + cards. Query ?cat= is client-only; list index canonical is /. */
.jev-cases {
  display: grid;
  gap: 0.85rem;
  align-items: start;
}

.jev-cases__nav {
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0.15rem 0 0.35rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.jev-cases__nav a,
.jev-cases__nav button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  margin: 0;
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}

.jev-cases__nav a span:last-child,
.jev-cases__nav button span:last-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.jev-cases__nav a[aria-current="page"],
.jev-cases__nav button[aria-pressed="true"] {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
}

.jev-cases__nav a[aria-current="page"] span:last-child,
.jev-cases__nav button[aria-pressed="true"] span:last-child {
  color: var(--accent-ink);
}

.jev-case__cat {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jev-case__summary {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.jev-case__summary span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.jev-case__summary span[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .jev-cases {
    grid-template-columns: 13.75rem minmax(0, 1fr);
    gap: 1.35rem 1.5rem;
  }

  .jev-cases__nav {
    position: sticky;
    top: 5rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.15rem 0 1rem;
    overflow: visible;
  }

  .jev-cases__nav a,
  .jev-cases__nav button {
    justify-content: space-between;
    width: 100%;
    border-radius: 10px;
    text-align: start;
  }
}

@media (max-width: 899px) {
  .jev-cases__nav {
    position: sticky;
    top: 4.35rem;
    z-index: 16;
    margin-inline: -0.15rem;
    padding: 0.35rem 0.15rem;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
  }
}

/* The rail takes the left column, so keep cards at two across instead of the site-wide three. */
@media (min-width: 1080px) {
  .jev-cases .jev-wall__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.jev-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: baseline;
  width: min(100% - 2rem, 76rem);
  margin: 0.85rem auto 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.jev-crumbs a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.jev-crumbs a:hover {
  color: var(--ink);
}

.jev-crumbs > span {
  color: var(--ink);
  font-weight: 700;
}

.jev-crumbs > a + a::before,
.jev-crumbs > a + span::before,
.jev-crumbs > span + span::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--muted);
  font-weight: 400;
}

.jev-case-detail__cat {
  margin: 0 0 0.85rem;
}

.jev-case-detail__cat a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.jev-case-detail__author {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.jev-case-detail__author img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--surface);
}

.jev-case-detail__author p {
  margin: 0;
}

.jev-case-detail__author span {
  color: var(--muted);
  font-weight: 600;
}

.jev-case-detail__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.jev-case-detail__metrics li {
  font-weight: 700;
}

.jev-case-detail__media {
  display: block;
  margin: 0 0 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.jev-case-detail__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.jev-case-detail__copy p {
  max-width: 68ch;
  margin: 0 0 0.9rem;
  line-height: 1.65;
}

.jev-case-detail__copy [hidden] {
  display: none;
}

.jev-case-detail__source {
  margin: 0.4rem 0 1.4rem;
  max-width: 68ch;
  overflow-wrap: anywhere;
}

.jev-case-detail__source a {
  display: inline;
  margin-left: 0.35rem;
  font-weight: 700;
}

.jev-case-detail__related {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jev-case-detail__related a {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  color: var(--ink);
  text-decoration: none;
}

.jev-case-detail__related a:hover {
  border-color: var(--ink);
}

.jev-case-detail__related small {
  color: var(--muted);
}

.jev-crumbs [hidden],
.jev-doc__h1 [hidden],
.jev-case-detail__related [hidden] {
  display: none;
}

/* Featured repos on /projects/. ?cat= is client-only; canonical stays /projects/. */
.jev-card[hidden] {
  display: none !important;
}

.jev-catalog__jumps a[aria-current="page"] {
  border-color: var(--line);
  background: var(--surface);
}

.jev-card.jev-card--repo {
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  grid-template-areas:
    "mark name github"
    "mark meta github"
    "summary summary summary"
    "more more more";
  align-items: start;
  row-gap: 0.2rem;
  min-height: 0;
  padding: 0.75rem 0.45rem 0.9rem;
  text-decoration: none;
  color: var(--ink);
}

.jev-card.jev-card--repo .jev-card__name,
.jev-card.jev-card--repo .jev-card__github {
  color: var(--ink);
  text-decoration: none;
}

.jev-card.jev-card--repo .jev-card__name {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.jev-card.jev-card--repo:hover .jev-card__name,
.jev-card.jev-card--repo .jev-card__github {
  color: var(--link);
}

.jev-card__github {
  grid-area: github;
  align-self: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.jev-card__meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.85rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.jev-card__archived {
  color: var(--ink);
}

.jev-card.jev-card--repo .jev-card__summary {
  white-space: normal;
  display: block;
  overflow: visible;
  text-overflow: unset;
  -webkit-line-clamp: unset;
  margin-top: 0.35rem;
}

.jev-card__more {
  grid-area: more;
  margin-top: 0.15rem;
}

.jev-card__more summary {
  width: fit-content;
  color: var(--link);
  font-size: 0.82rem;
  font-weight: 700;
}

.jev-card__more p {
  margin: 0.35rem 0 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .jev-card.jev-card--repo {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    grid-template-areas:
      "mark name"
      "mark github"
      "meta meta"
      "summary summary"
      "more more";
  }

  .jev-card__github {
    justify-self: start;
  }
}

.jev-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.1rem 0 0;
}

.jev-pager a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.2rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.jev-pager span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.jev-guide-card {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.jev-guide-card p {
  margin: 0 0 0.55rem;
}

.jev-guide-card a {
  font-weight: 700;
}

.jev-judge-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.jev-judge-list li {
  margin: 0 0 0.85rem;
}

.jev-judge-list a {
  font-weight: 700;
}

[data-case-i18n] [hidden] {
  display: none;
}

