/* Error recovery stays on the paper surface, not inside a warning card. */
.makina-error-state.makina-error-state{color:var(--ink,#e9ebef);background:transparent;border:0;border-radius:0;gap:18px;max-width:560px;padding:28px 16px;text-align:center}
.makina-error-copy{gap:10px}
.makina-error-copy h1,.makina-error-copy h2{font-family:'Space Grotesk',sans-serif;font-size:clamp(25px,3vw,34px);font-weight:600;letter-spacing:-.035em}
.makina-error-copy p{color:#b9b5b2;font-size:15px;line-height:1.65}
.makina-error-state .makina-error-detail{font-size:13px}
.makina-error-media.makina-error-media{border:0;border-radius:8px;background:transparent}
.makina-error-media.makina-error-media-page{width:min(300px,72vw);max-height:none;aspect-ratio:3/2}
.makina-error-media.makina-error-media-compact{width:min(200px,56vw);max-height:none;aspect-ratio:3/2}
.makina-error-retry{border:1px solid #e9ebef;background:#e9ebef;color:#100e0b;border-radius:6px;min-height:46px;padding:12px 22px;font:600 14px 'DM Sans',sans-serif;cursor:pointer}
.makina-error-retry:hover{background:#d9dadf;color:#100e0b}
.makina-error-retry:focus-visible,.makina-recovery-actions a:focus-visible{outline:3px solid #fb8972;outline-offset:5px}
.makina-error-state-compact{gap:14px;padding:22px 12px}
.makina-error-state-compact .makina-error-copy h2{font-size:25px}
.makina-recovery-page{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center;gap:64px;max-width:1120px;min-height:560px;margin:0 auto;padding:64px 0 80px;color:#e9ebef}
.makina-recovery-page .makina-error-media.makina-error-media{border:0;width:100%;max-height:none;aspect-ratio:3/2;border-radius:0;mix-blend-mode:multiply}
.makina-recovery-copy{min-width:0}
.makina-recovery-code{display:block;margin-bottom:20px;color:#fd8d72;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.makina-recovery-page h1{font-family:'Space Grotesk',sans-serif;font-size:clamp(36px,4vw,54px);line-height:1.1;letter-spacing:-.045em;font-weight:600;margin:0 0 20px}
.makina-recovery-page p{font-size:16px;line-height:1.65;max-width:340px;margin:0;color:#b9b5b2}
.makina-recovery-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px 24px;margin-top:30px}
.makina-recovery-actions a{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:48px;font-size:14px;font-weight:600;text-decoration:none;color:#e9ebef}
.makina-recovery-actions .makina-recovery-primary{background:#f2643d;border:1px solid #f2643d;border-radius:5px;padding:12px 22px;color:#140f0b}
.makina-recovery-actions .makina-recovery-primary:hover{background:#ec5f39}
.makina-recovery-actions .makina-recovery-secondary{text-decoration:underline;text-underline-offset:5px}
.makina-recovery-shell{max-width:1440px;margin:0 auto;padding:0 32px 48px}
.makina-error-home{display:block;width:max-content;margin:0 auto 32px;color:#b9b5b2;font-size:14px;text-underline-offset:4px}
@media(max-width:700px){.makina-recovery-shell{padding:0 16px 32px}.makina-recovery-page{grid-template-columns:1fr;gap:26px;min-height:0;padding:30px 0 48px;text-align:center}.makina-recovery-page .makina-error-media.makina-error-media{width:min(420px,100%);margin:auto}.makina-recovery-code{margin-bottom:12px}.makina-recovery-page h1{font-size:36px;margin-bottom:14px}.makina-recovery-page p{margin:auto;max-width:300px}.makina-recovery-actions{justify-content:center;margin-top:24px;gap:10px 22px}.makina-error-boundary-wrap{min-height:400px;padding:24px 0}.makina-error-media.makina-error-media-page{width:min(250px,65vw)}}

.makina-recovery-art{min-width:0;position:relative}
.makina-motion-toggle{display:flex;align-items:center;justify-content:center;margin:4px 0 0 auto;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#b9b5b2;cursor:pointer}
.makina-motion-toggle:hover{background:rgba(0,0,0,0.13);color:#e9ebef}
.makina-motion-toggle:focus-visible{outline:3px solid #fb8972;outline-offset:4px}

/* Full-page errors share the 404 composition; inline collection errors remain compact. */
.makina-error-page{width:100%;box-sizing:border-box}
.makina-error-page.makina-recovery-page :is(h1,h2){font-family:'Space Grotesk',sans-serif;font-size:clamp(36px,4vw,54px);line-height:1.1;letter-spacing:-.045em;font-weight:600;margin:0 0 20px;overflow-wrap:anywhere}
.makina-error-page.makina-recovery-page p{font-size:16px;line-height:1.65;max-width:340px;margin:0;color:#b9b5b2}
.makina-error-page.makina-recovery-page .makina-error-detail{font-size:13px;margin-top:12px}
.makina-error-page .makina-recovery-actions button{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:48px;font:600 14px 'DM Sans',sans-serif;cursor:pointer}
.makina-error-page .makina-recovery-actions .makina-recovery-primary{background:#f2643d;color:#140f0b;border:1px solid #f2643d;border-radius:5px;padding:12px 22px}
.makina-error-page .makina-recovery-actions .makina-recovery-primary:hover{background:#ec5f39}
.makina-error-page .makina-recovery-actions .makina-recovery-secondary{text-decoration:underline;text-underline-offset:5px}
.makina-error-page .makina-motion-toggle{color:#b9b5b2}
.makina-error-page .makina-motion-toggle svg{width:18px;height:18px;fill:currentColor;stroke:none}
.makina-motion-toggle[hidden]{display:none}
.makina-error-page .makina-recovery-actions :is(a,button):focus-visible,.makina-error-page .makina-motion-toggle:focus-visible{outline:3px solid #fb8972;outline-offset:4px}
@media(max-width:700px){.makina-error-page.makina-recovery-page :is(h1,h2){font-size:36px;margin-bottom:14px}.makina-error-page.makina-recovery-page p{margin:auto;max-width:300px}}

/* Feather full-page 404 and error artwork into the paper; keep the center sharp. */
.makina-recovery-page .makina-error-media{
 --makina-edge-fade:clamp(12px,1.4vw,20px);
 -webkit-mask-image:linear-gradient(to right,transparent,#f5f5f5 var(--makina-edge-fade),#f5f5f5 calc(100% - var(--makina-edge-fade)),transparent),linear-gradient(to bottom,transparent,#f5f5f5 var(--makina-edge-fade),#f5f5f5 calc(100% - var(--makina-edge-fade)),transparent);
 mask-image:linear-gradient(to right,transparent,#f5f5f5 var(--makina-edge-fade),#f5f5f5 calc(100% - var(--makina-edge-fade)),transparent),linear-gradient(to bottom,transparent,#f5f5f5 var(--makina-edge-fade),#f5f5f5 calc(100% - var(--makina-edge-fade)),transparent);
 -webkit-mask-composite:source-in;
 mask-composite:intersect;
}
