/* Slim public handbook stylesheet — replaces ~330KB Nuxt UI entry.css on handbook routes. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: #0b1f1a;
  background: #f3f7f4;
  font-family: "DM Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

code {
  font-family: "DM Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

/* —— Shell —— */
.jev-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(158, 240, 26, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(18, 53, 44, 0.5), transparent 50%),
    #f3f7f4;
  color: #0b1f1a;
}

.jev-shell__header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 247, 244, 0.94);
  border-bottom: 1px solid rgba(11, 31, 26, 0.08);
}

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

.jev-shell__header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.jev-shell__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.jev-shell__logo {
  border-radius: 0.55rem;
}

.jev-shell__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.85rem;
}

.jev-shell__nav-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: #2a4a40;
  text-decoration: none;
}

.jev-shell__nav-link.router-link-active {
  color: #0b1f1a;
  text-decoration: underline;
  text-decoration-color: #9ef01a;
  text-underline-offset: 0.28em;
}

.jev-shell__main {
  flex: 1;
  padding: 2rem 0 3.5rem;
}

.jev-shell__footer {
  border-top: 1px solid rgba(11, 31, 26, 0.1);
  background: #0b1f1a;
  color: #d7ebe3;
  padding: 2rem 0 2.4rem;
}

.jev-shell__disclaimer {
  margin: 0 0 1rem;
  font-weight: 700;
  color: #9ef01a;
}

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

.jev-shell__footer-nav a {
  color: #d7ebe3;
  font-size: 0.88rem;
  text-decoration: none;
}

.jev-shell__footer-nav a:hover {
  color: #9ef01a;
}

.jev-shell__copy {
  margin: 0;
  font-size: 0.82rem;
  color: #8fb5a8;
}

.jev-shell__copy a {
  color: #c8eadc;
}

@media (max-width: 860px) {
  .jev-shell__header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

/* —— Doc —— */
.jev-doc__hero {
  margin-bottom: 2rem;
}

.jev-doc__eyebrow {
  margin: 0 0 0.55rem;
  font-family: "DM Mono", Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d6b5a;
}

.jev-doc__h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.jev-doc__lead {
  margin: 0;
  max-width: 62ch;
  font-size: 1.08rem;
  line-height: 1.6;
  color: #2f4f44;
}

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

.jev-doc__body h2 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.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 a {
  color: #0f5c42;
  font-weight: 600;
}

.jev-doc__body pre,
.jev-doc__body .jev-code {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  background: #0b1f1a;
  color: #e8f5e9;
  font-family: "DM Mono", Menlo, monospace;
  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 rgba(11, 31, 26, 0.12);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.jev-doc__body th {
  background: rgba(158, 240, 26, 0.18);
}

.jev-doc__body .jev-callout {
  padding: 0.9rem 1rem;
  border-left: 3px solid #9ef01a;
  background: rgba(158, 240, 26, 0.12);
  border-radius: 0 0.75rem 0.75rem 0;
}

.jev-doc__related {
  margin-top: 2.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(11, 31, 26, 0.1);
}

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

.jev-doc__related ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.jev-doc__related a {
  color: #0f5c42;
  font-weight: 600;
  text-decoration: none;
}

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

/* —— 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: #3d6b5a;
}

.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: #fff;
  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: #0b1f1a;
  color: #9ef01a;
  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: #fff;
  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: #3d6b5a;
}

.calc__results dd {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: "DM Mono", Menlo, monospace;
}

.jev-doc__body:has(.jev-catalog) {
  max-width: none;
}

.jev-catalog__jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.jev-catalog__jumps a {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(11, 31, 26, 0.06);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0b1f1a;
}

.jev-catalog__jumps span {
  color: #3d6b5a;
  font-family: "DM Mono", Menlo, monospace;
}

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

.jev-catalog__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.jev-card {
  display: grid;
  gap: 0.28rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid rgba(11, 31, 26, 0.1);
  text-decoration: none;
  color: inherit;
}

.jev-card:hover {
  border-color: #0f5c42;
}

.jev-card__mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
  background: #0b1f1a;
  color: #9ef01a;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: "DM Mono", Menlo, monospace;
}

.jev-card__name {
  font-weight: 700;
}

.jev-card__repo {
  font-size: 0.78rem;
  color: #3d6b5a;
  font-family: "DM Mono", Menlo, monospace;
}

.jev-card__summary {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #1d3b31;
}

