.json-page {
    --json-ink: #202b30;
    --json-muted: #647276;
    --json-line: #d7dfdc;
    --json-green: #17684f;
    --json-green-dark: #124e3c;
    --json-paper: #f3f6f2;
    color: var(--json-ink);
    background: #fff;
    padding-top: var(--header-height);
}

.json-intro {
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 3.75rem;
    background:
        linear-gradient(118deg, rgba(233, 241, 232, .94), rgba(250, 246, 232, .8) 68%, rgba(255, 255, 255, .9)),
        repeating-linear-gradient(135deg, transparent 0 24px, rgba(23, 104, 79, .035) 24px 25px);
    border-bottom: 1px solid #e6ebe7;
}

.json-intro__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; }
.json-intro__copy { max-width: 760px; }
.json-eyebrow { margin: 0 0 .85rem; color: var(--json-green); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.json-eyebrow span { margin-right: .55rem; color: #a76b2c; }
.json-intro h1 { max-width: 700px; margin: 0; color: #24352f; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.05; }
.json-intro h1 span { color: var(--json-green); }
.json-intro__description { max-width: 590px; margin: 1.25rem 0 1.15rem; color: #4b5c57; font-size: 1.1rem; }
.json-text-link { color: var(--json-green-dark); font-size: .92rem; font-weight: 700; }
.json-text-link span { padding-left: .25rem; }
.json-intro__note { display: flex; align-items: flex-start; gap: .8rem; width: 250px; flex: 0 0 250px; padding: 1rem 0 0 1rem; border-left: 1px solid #b9c9bf; }
.json-intro__note-mark { color: #a76b2c; font-size: 1.2rem; font-weight: 700; }
.json-intro__note p { margin: 0; color: #53625d; font-size: .82rem; line-height: 1.55; }
.json-intro__note strong { color: #263b32; }

.json-workspace { padding: 3.5rem 0 4.5rem; }
.json-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.json-section-heading .json-eyebrow { margin-bottom: .35rem; }
.json-section-heading h2 { margin: 0; color: #223b31; font-size: 1.75rem; }
.json-section-heading > p { margin: 0 0 .2rem; color: var(--json-muted); font-size: .9rem; }
.json-controls { display: flex; align-items: flex-end; gap: .8rem; padding: 1rem; background: #f5f7f5; border: 1px solid var(--json-line); border-bottom: 0; }
.json-select { display: grid; gap: .35rem; min-width: 150px; color: #586762; font-size: .72rem; font-weight: 700; }
.json-select select { width: 100%; min-height: 40px; padding: .5rem 2rem .5rem .7rem; color: #25352f; background: #fff; border: 1px solid #ccd6d1; border-radius: 3px; font-size: .82rem; }
.json-controls__actions { display: flex; gap: .55rem; margin-left: auto; }
.json-button, .json-copy, .json-clear { min-height: 40px; padding: .55rem .9rem; border-radius: 3px; font-size: .82rem; font-weight: 700; }
.json-button--quiet { color: #38564a; border: 1px solid #bdcbc3; background: #fff; }
.json-button--primary { color: #fff; background: var(--json-green); }
.json-button--primary:hover { background: var(--json-green-dark); }
.json-button:focus-visible, .json-copy:focus-visible, .json-clear:focus-visible, .json-select select:focus-visible { outline: 3px solid #dfa653; outline-offset: 2px; }

.json-editors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--json-line); }
.json-editor { min-width: 0; background: #fff; }
.json-editor + .json-editor { border-left: 1px solid var(--json-line); }
.json-editor__topline, .json-editor__foot { display: flex; align-items: center; justify-content: space-between; min-height: 45px; padding: .6rem .9rem; color: #5f6e68; background: #fbfcfb; font-size: .75rem; }
.json-editor__topline { border-bottom: 1px solid #e5eae7; }
.json-editor__topline label { color: #263b32; font-size: .82rem; font-weight: 700; }
.json-editor textarea { display: block; width: 100%; min-height: 330px; padding: 1.1rem; resize: vertical; border: 0; border-radius: 0; outline: none; color: #283b36; background: #fff; font-family: var(--ff-mono); font-size: .84rem; line-height: 1.75; tab-size: 4; }
.json-editor textarea:focus { box-shadow: inset 0 0 0 2px #8eae9c; }
.json-editor textarea::placeholder { color: #a0aaa5; }
.json-editor--output textarea { background: #fbfcfb; }
.json-editor__foot { justify-content: flex-start; min-height: 38px; border-top: 1px solid #e5eae7; }
.json-copy { min-height: 30px; padding: .3rem .6rem; color: var(--json-green-dark); background: #e8f1eb; font-size: .72rem; }
.json-copy:disabled { color: #89938e; cursor: not-allowed; background: #eef0ee; }
.json-workspace__bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: .75rem; color: var(--json-muted); font-size: .76rem; }
.json-clear { min-height: auto; padding: 0; color: #52635b; font-size: .76rem; text-decoration: underline; text-underline-offset: 3px; }

.json-guide { padding: 4rem 0 5.5rem; background: var(--json-paper); border-top: 1px solid #e1e8e2; }
.json-guide__layout { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 7vw, 6rem); }
.json-guide__heading { align-self: start; position: sticky; top: calc(var(--header-height) + 2rem); }
.json-guide__heading h2 { max-width: 360px; margin: 0 0 1rem; color: #24382f; font-size: 2rem; }
.json-guide__heading > p:last-child { max-width: 380px; margin: 0; color: #5c6963; font-size: .95rem; }
.json-guide__content { max-width: 720px; }
.json-guide__content h3 { margin: 2rem 0 .55rem; color: #273c32; font-size: 1.12rem; }
.json-guide__content h3:first-child { margin-top: 0; }
.json-guide__content p { margin: 0 0 1rem; color: #53615b; font-size: .91rem; line-height: 1.75; }
.json-example { margin: 1.5rem 0; padding: 1rem 1.1rem; background: #fff; border: 1px solid #dce4dd; border-left: 3px solid #b07a39; }
.json-example__label { margin: .25rem 0 .45rem !important; color: #7a6343 !important; font-size: .68rem !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.json-example pre { overflow-x: auto; margin: 0 0 1rem; color: #273d34; font-family: var(--ff-mono); font-size: .78rem; line-height: 1.7; white-space: pre; }
.json-example pre:last-child { margin-bottom: .1rem; }
.json-faq { padding: .95rem 0; border-top: 1px solid #d8e0d9; }
.json-faq:last-child { border-bottom: 1px solid #d8e0d9; }
.json-faq summary { color: #2e4539; cursor: pointer; font-size: .88rem; font-weight: 700; }
.json-faq p { margin: .6rem 0 0; }

@media (max-width: 760px) {
    .json-intro { padding-top: 3.5rem; }
    .json-intro__inner { align-items: flex-start; flex-direction: column; gap: 1.75rem; }
    .json-intro__note { width: auto; flex-basis: auto; }
    .json-controls { align-items: stretch; flex-wrap: wrap; }
    .json-select { flex: 1 1 135px; }
    .json-controls__actions { width: 100%; margin: .25rem 0 0; }
    .json-controls__actions button { flex: 1; }
    .json-editors { grid-template-columns: 1fr; }
    .json-editor + .json-editor { border-top: 1px solid var(--json-line); border-left: 0; }
    .json-editor textarea { min-height: 260px; }
    .json-guide__layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .json-guide__heading { position: static; }
}

@media (max-width: 440px) {
    .json-section-heading { align-items: flex-start; flex-direction: column; }
    .json-workspace__bottom { align-items: flex-start; flex-direction: column; gap: .35rem; }
    .json-editor textarea { min-height: 225px; padding: .85rem; font-size: .77rem; }
}

@media (prefers-reduced-motion: reduce) {
    .json-page *, .json-page *::before, .json-page *::after { scroll-behavior: auto !important; }
}
