/* MB Studio demo guide — scoped additions to the host's existing visual grammar. */
.mb-demo-guide .mb-page-hero{padding:70px 0 55px}.mb-demo-guide .mb-page-hero h1{font-size:clamp(42px,5.2vw,76px);max-width:19ch}.mb-demo-guide .mb-page-hero__grid{grid-template-columns:minmax(0,1.3fr) minmax(260px,.8fr)}
.mb-demo-guide .mb-lead{max-width:66ch}.mb-demo-guide .mb-section-head{max-width:950px}.mb-demo-guide .mb-section-head h2{max-width:28ch}.mb-demo-guide .mb-section-head p{font-size:17px;max-width:85ch}.mb-demo-guide .mb-card{border-radius:8px}.mb-demo-guide .mb-card p{font-size:16px}.mb-demo-guide .mb-card p+p{margin-top:16px}.mb-demo-guide .mb-card h3{font-size:25px}.mb-demo-guide .mb-note{margin-top:28px;font-size:15px}.mb-demo-guide strong{font-weight:750}
.mb-demo-index{display:flex;gap:9px 20px;flex-wrap:wrap;padding-block:20px;border-block:1px solid var(--mb-line);font-size:14px}.mb-demo-index a{color:var(--mb-navy);text-underline-offset:4px}.mb-demo-guide section[id]{scroll-margin-top:110px}
.mb-demo-logo{height:82px;width:100%;object-fit:contain;object-position:left;margin-bottom:25px}.mb-demo-card{display:flex;flex-direction:column}.mb-demo-card .mb-actions{margin-top:24px}.mb-demo-card .mb-kicker{margin-bottom:8px}.mb-demo-secondary{font-size:14px!important;margin-top:18px!important}
.mb-demo-table-wrap{overflow-x:auto;border:1px solid var(--mb-line);background:#fff;border-radius:8px}.mb-demo-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.65}.mb-demo-table caption{text-align:left;font-weight:750;padding:18px 20px;background:rgba(37,99,235,.06)}.mb-demo-table th,.mb-demo-table td{padding:17px 20px;text-align:left;vertical-align:top;border-bottom:1px solid var(--mb-line)}.mb-demo-table th{color:var(--mb-navy)}.mb-demo-table thead th{background:rgba(37,99,235,.04)}.mb-demo-table td{min-width:240px}.mb-demo-table th[scope=row]{min-width:160px}
.mb-demo-reading{font-size:17px;line-height:1.8;max-width:90ch;margin-top:28px}.mb-demo-identity--v1{border-top:4px solid #455640}.mb-demo-identity--v2{border-top:4px solid #d51a17}.mb-demo-resource-links{display:flex;gap:12px 22px;flex-wrap:wrap;margin-top:22px}.mb-demo-checklist{padding-left:20px;color:var(--mb-muted);font-size:16px;line-height:1.8}.mb-demo-checklist li+li{margin-top:10px}
.mb-demo-technical{display:grid;gap:14px}.mb-demo-technical details{padding:21px 24px;border:1px solid var(--mb-line);border-radius:8px;background:#fff}.mb-demo-technical summary{font-size:18px;font-weight:750;cursor:pointer;color:var(--mb-navy)}.mb-demo-technical details p,.mb-demo-technical details li{font-size:16px;line-height:1.8;max-width:95ch}.mb-demo-technical code{font-size:.9em;overflow-wrap:anywhere}
.mb-demo-cta{padding:36px;border:1px solid var(--mb-line);border-radius:10px;background:linear-gradient(135deg,#fff,#e9f4ff)}.mb-demo-cta h2{font-size:clamp(32px,4vw,51px);line-height:1.05;letter-spacing:-.03em}.mb-demo-cta p{max-width:80ch;font-size:17px}.mb-demo-small{font-size:13px!important;color:var(--mb-muted)}
.mb-demo-standalone-brand{font-weight:800;text-decoration:none;font-size:22px}.mb-demo-standalone-header .mb-header__inner{flex-wrap:wrap;gap:18px}.mb-demo-standalone-header nav{display:flex;gap:16px;flex-wrap:wrap;font-size:14px}.mb-demo-standalone-footer{padding-block:28px;border-top:1px solid var(--mb-line);font-size:14px}.mb-demo-standalone-footer nav{display:flex;gap:18px;flex-wrap:wrap}
@media(max-width:850px){.mb-demo-guide .mb-page-hero__grid{grid-template-columns:1fr}.mb-demo-guide .mb-page-hero{padding-top:42px}.mb-demo-guide .mb-page-hero h1{font-size:clamp(38px,9vw,64px)}.mb-demo-guide .mb-grid--2,.mb-demo-guide .mb-grid--3{grid-template-columns:1fr}.mb-demo-cta{padding:25px}.mb-demo-table td{min-width:215px}.mb-demo-standalone-header .mb-header__inner{padding-block:17px;min-height:0}.mb-demo-index{font-size:13px}}

/* Native catalog and breadcrumb; no replacement for the host header/footer. */
.mb-demo-breadcrumb{padding-top:24px;display:flex;flex-wrap:wrap;gap:9px;font-size:14px;color:var(--mb-muted)}
.mb-demo-breadcrumb a{color:var(--mb-navy);text-underline-offset:4px}
.mb-demo-catalog .mb-page-hero h1{max-width:20ch}

.mb-json-guide .mb-json-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.mb-json-guide textarea{width:100%;min-height:360px;padding:18px;font:14px/1.65 Consolas,monospace;color:var(--mb-navy);background:#fff;border:1px solid var(--mb-line)}.mb-json-guide pre{padding:22px;background:#f4f6fa;overflow:auto;font:14px/1.6 Consolas,monospace}.mb-json-guide code{overflow-wrap:anywhere}.mb-json-guide .preview{padding:24px;border:1px solid var(--mb-line);background:#f4f6fa;min-height:300px}.mb-json-guide .servizi{display:grid;gap:12px}.mb-json-guide .cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.mb-json-guide .cols-1{grid-template-columns:1fr}.mb-json-guide .servizio{padding:14px;border:1px solid var(--mb-line);background:white;overflow-wrap:anywhere}.mb-json-guide #esito{min-height:2em}.mb-json-guide .error{color:#a42323}.mb-json-guide details{margin:22px 0}.mb-json-guide summary{cursor:pointer;font-weight:700}.mb-json-guide :focus-visible{outline:3px solid #2774ca;outline-offset:3px}@media(max-width:760px){.mb-json-guide .mb-json-grid{grid-template-columns:1fr}.mb-json-guide .cols-2{grid-template-columns:1fr}}@media print{.mb-json-guide textarea,.mb-json-guide .mb-actions{display:none}.mb-json-guide pre{white-space:pre-wrap}.mb-json-guide .mb-json-grid{display:block}}

/* Compact editorial rhythm, scoped to this article. */
.mb-json-guide>.mb-section{padding-block:36px}.mb-json-guide>.mb-section>.mb-wrap>p{margin-block:12px;max-width:88ch;line-height:1.75}.mb-json-guide>.mb-section h2{margin:0 0 18px;font-size:clamp(27px,3vw,39px);line-height:1.2;max-width:34ch}.mb-json-guide .mb-json-chapter{display:flex;align-items:center;gap:16px;border-top:1px solid var(--mb-line,#d7dfeb);padding-top:22px;margin:0 0 22px}.mb-json-chapter svg{width:48px;height:48px;flex:none;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;color:var(--mb-blue,#2563eb);padding:9px;background:#edf3fc}.mb-json-chapter span{font-size:12px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:var(--mb-blue,#2563eb)}.mb-json-chapter p{margin:3px 0 0;font-size:15px;color:var(--mb-muted,#536174)}.mb-json-guide .mb-json-roles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0 0}.mb-json-role{font:inherit;text-align:left;padding:18px;border:1px solid var(--mb-line,#d7dfeb);border-bottom:3px solid transparent;background:#fff;color:var(--mb-navy,#15283e);cursor:pointer;transition:transform .18s,border-color .18s,background .18s}.mb-json-role strong,.mb-json-role span{display:block}.mb-json-role strong{font-size:22px}.mb-json-role span{font-size:14px;margin-top:5px}.mb-json-role:hover{transform:translateY(-3px);border-color:#2563eb}.mb-json-role[aria-pressed=true]{background:#edf3fc;border-bottom-color:#2563eb}.mb-json-explanation{padding:18px 22px;border:1px solid var(--mb-line,#d7dfeb);margin-bottom:20px;background:#f4f7fc}.mb-json-explanation p{margin:0 0 8px}.mb-json-guide .mb-json-explanation code{white-space:pre-wrap}.mb-json-guide .mb-demo-table-wrap{margin-block:20px}.mb-json-guide .mb-actions{gap:12px;margin-block:16px}.mb-json-guide .mb-note{margin-top:22px;padding:20px}.mb-json-guide .preview{transition:box-shadow .2s}.mb-json-guide .preview.mb-json-updated{animation:json-update .6s ease-out}@keyframes json-update{from{box-shadow:0 0 0 4px #bad3f6}to{box-shadow:0 0 0 0 transparent}}@media(max-width:650px){.mb-json-guide>.mb-section{padding-block:25px}.mb-json-guide .mb-json-roles{grid-template-columns:repeat(2,minmax(0,1fr))}.mb-json-guide .mb-json-chapter{gap:12px}.mb-json-chapter svg{width:42px;height:42px}.mb-json-guide .mb-json-role{padding:14px}}@media(prefers-reduced-motion:reduce){.mb-json-guide .mb-json-role,.mb-json-guide .preview{transition:none}.mb-json-guide .mb-json-role:hover{transform:none}.mb-json-guide .preview.mb-json-updated{animation:none}}@media print{.mb-json-guide>.mb-section{padding-block:14px}.mb-json-guide .mb-json-chapter{break-after:avoid}.mb-json-guide .mb-json-roles{display:none}.mb-json-guide .mb-json-explanation{display:none}}

/* Selective emphasis follows the host palette. */
.mb-json-guide .mb-section p strong,.mb-json-guide .mb-section td strong,.mb-json-guide .mb-note>strong{color:var(--mb-navy,#15283e);font-weight:750}.mb-json-guide .mb-section p strong{background:linear-gradient(transparent 76%,rgba(37,99,235,.10) 76%);box-decoration-break:clone;-webkit-box-decoration-break:clone}.mb-json-guide .mb-section .preview p strong{background:none}@media print{.mb-json-guide .mb-section p strong{background:none;color:#111}}

/* Broader reading area: only this article, not host-wide containers. */
.mb-json-guide>.mb-section>.mb-wrap>p{max-width:min(100%,1160px);width:auto}.mb-json-guide>.mb-section>.mb-wrap>h2{max-width:min(100%,1120px)}.mb-json-guide .mb-section>.mb-wrap>.mb-section-head{max-width:min(100%,1160px)}.mb-json-guide .mb-section>.mb-wrap>.mb-section-head p{max-width:100%}

/* In-page navigation uses the same visual grammar as the Casa Valdora guide. */
.mb-json-guide .mb-json-index{margin-bottom:12px;row-gap:12px;column-gap:22px;line-height:1.6}.mb-json-guide .mb-json-index a{white-space:nowrap;text-decoration:underline;text-underline-offset:4px;padding-block:3px}.mb-json-guide .mb-json-index a:hover{color:var(--mb-blue,#2563eb)}.mb-json-guide section[id]{scroll-margin-top:120px}@media(max-width:650px){.mb-json-guide .mb-json-index{gap:10px 18px;font-size:13px}}@media print{.mb-json-guide .mb-json-index{display:none}}
