html{background:#0b0b0b;color-scheme:only dark;scrollbar-gutter:stable}
body{background:#0b0b0b}
html.mr-page-pending body{opacity:0;pointer-events:none}
html.mr-page-ready body{animation:mr-page-enter .32s ease-out both}
@keyframes mr-page-enter{from{opacity:0}to{opacity:1}}
/* Legacy detail transitions must never expose the browser's white canvas. */
[id^="marirui-"] .transition{background:#0b0b0b!important;transform:none!important;opacity:0;transition:opacity .2s ease!important;pointer-events:none}
[id^="marirui-"] .transition.cover{opacity:1}
@media(prefers-reduced-motion:reduce){html.mr-page-ready body{animation:none}}

/* Preserve brand proportions when its isolated SVG is used as an image. */
.brand .brand-logo{display:block;width:100%;height:100%;object-fit:contain}
/* The artwork includes breathing room; size its box for a legible wordmark. */
html :is(#marirui-works-demo,#marirui-about-demo,#marirui-news-demo,#marirui-contact-demo,.hero) .header .brand{width:176px;height:70px;flex:0 0 176px}
@media(max-width:600px){html :is(#marirui-works-demo,#marirui-about-demo,#marirui-news-demo,#marirui-contact-demo,.hero) .header .brand{width:144px;height:56px;flex-basis:144px}}
/* Copyright stays at the page center, independent of the left-hand item count. */
html :is(#marirui-works-demo,#marirui-about-demo,#marirui-news-demo,#marirui-contact-demo) .footer{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px}
html :is(#marirui-works-demo,#marirui-about-demo,#marirui-news-demo,#marirui-contact-demo) .footer>.site-copyright{grid-column:2;grid-row:1;justify-self:center;text-align:center;max-width:100%;overflow-wrap:anywhere}
html :is(#marirui-works-demo,#marirui-news-demo) .footer>.result-count{grid-column:1;grid-row:1;min-width:0}
@media(max-width:600px){html :is(#marirui-works-demo,#marirui-about-demo,#marirui-news-demo,#marirui-contact-demo) .footer{grid-template-columns:minmax(0,1fr);gap:12px}html :is(#marirui-works-demo,#marirui-about-demo,#marirui-news-demo,#marirui-contact-demo) .footer>.site-copyright{grid-column:1;grid-row:auto;width:100%}}
