/* Isolated draft presentation. Font families and palette inherit the CMS brand. */
.menu-preview-page {--mp-surface:var(--brand-dark-surface-elevated);--mp-text:var(--brand-dark-text);--mp-muted:var(--brand-dark-text-muted);--mp-line:var(--brand-dark-border);--mp-soft:var(--brand-dark-surface);--mp-icon:var(--brand-dark-text);--mp-selected:color-mix(in srgb,var(--brand-accent) 13%,var(--mp-surface));--mp-banner:var(--brand-primary);}
[data-public-theme="light"] .menu-preview-page {--mp-surface:var(--brand-background);--mp-text:var(--brand-heading);--mp-muted:var(--brand-text-secondary);--mp-line:color-mix(in srgb,var(--brand-primary) 14%,var(--brand-background));--mp-soft:var(--brand-background-secondary);--mp-icon:var(--brand-primary);--mp-banner:var(--brand-primary);}
.menu-preview-page .mp-panel {padding:12px 20px 0;animation:none;}
.menu-preview-page .mp-shell {display:grid;grid-template-columns:220px minmax(0,1fr);width:100%;max-width:1280px;height:min(490px,var(--mp-space,calc(100dvh - 100px)));margin:auto;overflow:hidden;border:1px solid var(--mp-line);border-radius:16px;background:var(--mp-surface);color:var(--mp-text);box-shadow:0 20px 40px #0002;}
.menu-preview-page .mp-has-banner {grid-template-columns:220px minmax(0,1fr) 300px;}
.menu-preview-page .mp-directory-layout {grid-template-columns:190px minmax(0,1fr);}
.menu-preview-page .mp-directory-layout.mp-has-banner {grid-template-columns:190px minmax(0,1fr) 300px;}
.menu-preview-page .mp-grouped-layout {grid-template-columns:minmax(0,1fr);}
.menu-preview-page .mp-grouped-layout.mp-has-banner {grid-template-columns:minmax(0,1fr) 285px;}
.mp-categories,.mp-context,.mp-directory,.mp-contact {min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--mp-line) transparent;}
.mp-categories {padding:24px 12px;border-right:1px solid var(--mp-line);background:var(--mp-soft);}
.mp-category + .mp-category {margin-top:8px;}
.mp-category button {display:flex;align-items:center;gap:12px;width:100%;min-height:72px;padding:12px 10px;border:1px solid transparent;border-radius:10px;color:var(--mp-text);text-align:left;cursor:pointer;font:inherit;font-size:14px;font-weight:600;line-height:1.5;}
.mp-category button>span:not(.public-nav-icon) {min-width:0;}
.mp-category[data-active="true"] button {background:var(--mp-selected);border-color:var(--mp-line);box-shadow:inset 3px 0 var(--brand-accent);}
.mp-category button:hover {background:var(--mp-selected);}
.mp-chevron {margin-left:auto;opacity:.65;}
.menu-preview-page .public-nav-icon {display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;border:1px solid var(--mp-line);border-radius:10px;background:var(--mp-soft);color:var(--mp-icon);box-shadow:none;}
.menu-preview-page .public-nav-icon svg {width:22px;height:22px;color:inherit;}
.menu-preview-page .public-nav-icon svg [stroke]:not([stroke="none"]) {stroke:currentColor;}
.menu-preview-page .public-nav-icon svg [fill]:not([fill="none"]) {fill:currentColor;}
.mp-context {display:flex;flex-direction:column;align-items:flex-start;gap:18px;padding:30px 24px;border-right:1px solid var(--mp-line);background:var(--mp-soft);}
.mp-eyebrow {font-size:12px;color:var(--mp-muted);}
.mp-shell h2,.mp-shell h3 {color:var(--mp-text);font-family:var(--brand-font-heading);font-weight:var(--brand-font-heading-weight);text-wrap:balance;margin:0;}
.mp-shell h2 {font-size:24px;line-height:1.35;}
.mp-shell h3 {font-size:16px;line-height:1.5;}
.mp-context-action {display:flex;align-items:center;gap:14px;margin-top:auto;padding:12px 0;font-size:13px;color:var(--mp-text);}
.mp-directory {padding:30px 24px;scrollbar-gutter:stable;}
.mp-section-head {display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px;}
.mp-section-head>a {font-size:12px;line-height:1.5;color:var(--mp-muted);white-space:nowrap;}
.mp-link-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;align-items:start;}
.mp-group-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.mp-group-grid>.mp-group + .mp-group {border-left:1px solid var(--mp-line);padding-left:18px;}
.mp-group-links {display:grid;gap:8px;margin-top:18px;}
.mp-group-links .mp-group {margin-top:16px;}
.mp-link {display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 10px;min-width:0;min-height:74px;border:1px solid transparent;border-radius:10px;color:var(--mp-text);}
.mp-link-copy {flex:1;min-width:0;}
.mp-link strong {display:block;font-size:14px;font-weight:600;line-height:1.5;text-wrap:balance;color:var(--mp-text);}
.mp-arrow {color:var(--mp-muted);font-size:17px;transition:transform 160ms ease-out;}
.mp-link:not(.mp-note):hover,.mp-link:focus-visible {background:var(--mp-selected);border-color:var(--mp-line);}
.mp-link:hover .mp-arrow {transform:translateX(3px);}
.mp-logo {display:flex;align-items:center;justify-content:center;flex:0 0 64px;width:64px;height:40px;padding:5px;border:1px solid var(--mp-line);border-radius:9px;background:var(--mp-soft);}
.mp-logo img {width:100%;height:100%;object-fit:contain;}
.mp-logo-light {display:none;}
[data-public-theme="light"] .mp-logo-light {display:block;}
[data-public-theme="light"] .mp-logo-dark {display:none;}
.mp-link-featured {background:var(--mp-soft);border-color:var(--mp-line);}
.mp-project-image {width:100%;height:96px;object-fit:cover;object-position:top;border-radius:7px;border:1px solid var(--mp-line);}
.mp-contact {margin:12px 12px 12px 0;border-radius:12px;background:var(--mp-banner);display:flex;flex-direction:column;}
.mp-banner-art {flex:1;min-height:140px;overflow:hidden;background:var(--mp-soft);}
.mp-contact-image {display:block;width:100%;height:100%;max-height:300px;object-fit:cover;object-position:center;}
.mp-banner-copy {padding:24px;display:grid;gap:22px;}
.mp-banner-copy h2 {color:var(--brand-dark-text);font-size:25px;}
.mp-contact-action {display:inline-flex;justify-content:space-between;align-items:center;gap:12px;justify-self:start;color:var(--brand-button-text);background:var(--brand-button-bg);border:1px solid color-mix(in srgb,var(--brand-dark-text) 30%,transparent);border-radius:var(--brand-button-radius);padding:12px 16px;font-size:13px;line-height:1.4;font-weight:600;}
.mp-contact-action:hover {background:var(--brand-button-hover);}
.mp-resources {border-top:1px solid var(--mp-line);padding-top:20px;margin-top:24px;}
.mp-resources h3 {margin-bottom:12px;}
.menu-preview-page .mp-shell :focus-visible,.menu-preview-page .public-mobile-menu :focus-visible {outline:2px solid var(--mp-icon);outline-offset:-3px;}
.menu-preview-page .mp-directory:focus-visible {outline-offset:-3px;}
.menu-preview-notice {max-width:720px;margin:90px auto;padding:32px 24px;color:var(--public-page-text);}
.menu-preview-notice h1 {font-size:32px;margin:8px 0 16px;}
.menu-preview-notice p {line-height:1.7;}
.menu-preview-controls {display:flex;gap:12px;margin:24px 0;}
.menu-preview-controls button {padding:10px 16px;border:1px solid var(--public-menu-border);border-radius:8px;cursor:pointer;}
.menu-preview-controls button[aria-pressed="true"] {background:var(--brand-button-bg);color:var(--brand-button-text);}
.menu-preview-caption {font-size:12px;color:var(--public-menu-muted);}
.menu-preview-page .public-mobile-menu {color:var(--mp-text);background:var(--mp-surface);max-height:100dvh;overflow-y:auto;overscroll-behavior:contain;}
.mp-mobile-group {border-bottom:1px solid var(--mp-line);}
.mp-mobile-group>summary {display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;padding:18px 8px;font-weight:600;}
.mp-mobile-group>summary::-webkit-details-marker {display:none;}
.mp-mobile-group>div {padding:0 8px 16px;}
.mp-mobile-group[open]>summary>span:last-child {transform:rotate(180deg);}
@media (max-width:1200px) {.menu-preview-page .mp-has-banner{grid-template-columns:190px minmax(0,1fr) 250px;}.menu-preview-page .mp-directory-layout.mp-has-banner{grid-template-columns:160px minmax(0,1fr) 250px;}.menu-preview-page .mp-grouped-layout.mp-has-banner{grid-template-columns:minmax(0,1fr) 250px;}.mp-directory{padding:24px 18px;}.mp-category button{font-size:13px;gap:8px;}.mp-banner-copy{padding:20px;}.mp-banner-copy h2{font-size:22px;}.mp-group-grid{gap:12px;}.mp-group-grid>.mp-group + .mp-group{padding-left:12px;}.mp-group-grid .mp-link{padding:12px 6px;gap:8px;}.mp-group-grid .mp-logo{flex-basis:48px;width:48px;}}
@media (max-height:560px) and (min-width:1024px) {.mp-banner-art{min-height:100px;}.mp-banner-copy{padding:18px;gap:14px;}.mp-banner-copy h2{font-size:20px;}.mp-categories{padding-top:12px;padding-bottom:12px;}.mp-category button{min-height:64px;}}
@media (prefers-reduced-motion:no-preference) {.menu-preview-page [data-mega-menu][open] .mp-shell{animation:mp-open 180ms ease-out;}.mp-directory section.mp-enter{animation:mp-content 160ms ease-out;}@keyframes mp-open{from{opacity:0;transform:translateY(-6px);}to{opacity:1;transform:none;}}@keyframes mp-content{from{opacity:0;transform:translateY(4px);}to{opacity:1;transform:none;}}}
@media (prefers-reduced-motion:reduce) {.menu-preview-page .mp-panel,.menu-preview-page .mp-shell,.mp-arrow,.mp-directory section{animation:none!important;transition:none!important;}}
/* Frame original artwork/screenshots without cutting through interface text. */
.mp-banner-art {display:flex;align-items:center;justify-content:center;padding:14px;}
.mp-contact-image {object-fit:contain;object-position:center;border-radius:8px;}
/* Restrained circuit-grid atmosphere; typography/content remains still. */
.menu-preview-page .mp-shell {position:relative;isolation:isolate;}
.mp-shell::before,.mp-shell::after {content:"";position:absolute;pointer-events:none;z-index:0;}
.mp-shell::before {inset:0 24px 20px 0;background-image:linear-gradient(var(--mp-line) 1px,transparent 1px),linear-gradient(90deg,var(--mp-line) 1px,transparent 1px);background-size:84px 84px;opacity:.12;}
.mp-shell::after {width:25%;height:2px;top:0;left:0;background:var(--brand-accent);opacity:.3;}
.mp-shell>div,.mp-shell>aside {position:relative;z-index:1;}
.mp-link {position:relative;overflow:hidden;}
.mp-link::after {content:"";position:absolute;left:12px;right:12px;bottom:0;height:2px;background:var(--brand-accent);transform:scaleX(0);transform-origin:left;transition:transform 180ms ease-out;}
.mp-link:not(.mp-note):hover::after,.mp-link:focus-visible::after {transform:scaleX(1);}
.menu-preview-page .mp-link .public-nav-icon,.menu-preview-page .mp-link .mp-logo {transition:transform 180ms ease-out;}
.menu-preview-page .mp-link:hover .public-nav-icon,.menu-preview-page .mp-link:hover .mp-logo {transform:translateY(-2px);}
.mp-logo {width:100px;flex-basis:100px;height:46px;padding:4px;}
@media (max-width:1200px) {.mp-group-grid .mp-logo{width:90px;flex-basis:90px;}}
@media (prefers-reduced-motion:no-preference) {
 [data-mega-menu][open][data-mp-motion="true"] .mp-shell::before {animation:mp-grid-drift 18s ease-in-out infinite alternate;}
 [data-mega-menu][open][data-mp-motion="true"] .mp-shell::after {animation:mp-route-trace 12s ease-in-out infinite alternate;}
 .mp-motion-paused .mp-shell::before,.mp-motion-paused .mp-shell::after {animation-play-state:paused!important;}
 @keyframes mp-grid-drift {from{transform:translate(0,0);opacity:.08;}to{transform:translate(22px,16px);opacity:.14;}}
 @keyframes mp-route-trace {from{transform:translateX(0);opacity:.15;}to{transform:translateX(300%);opacity:.35;}}
}
@media (prefers-reduced-motion:reduce) {.mp-shell::before,.mp-shell::after{animation:none!important;}.mp-link::after{transition:none;}.menu-preview-page .mp-link .public-nav-icon,.menu-preview-page .mp-link .mp-logo{transition:none;transform:none;}}
/* Project cards: actual copy/logo in HTML, simplified artwork independent of theme. */
.mp-contact.mp-project-card {padding:20px;gap:16px;background:var(--mp-soft);display:flex;align-items:stretch;}
.mp-project-heading {flex:none;display:grid;gap:10px;}
.mp-feature-logo {display:block;height:28px;}
.mp-feature-logo img {width:auto;height:100%;max-width:180px;object-fit:contain;object-position:left;}
.mp-feature-wordmark {font-family:var(--brand-font-heading);font-size:17px;font-weight:700;line-height:1.4;text-wrap:balance;color:var(--mp-text);}
.mp-project-heading h2 {font-size:22px;line-height:1.35;color:var(--mp-text);}
.mp-project-art {display:flex;align-items:center;justify-content:center;flex:1 0 auto;min-height:0;}
.mp-project-art .mp-contact-image {display:block;flex:none;width:calc(100% + 20px);max-width:none;height:auto;max-height:230px;object-fit:contain;border:0;border-radius:0;}
.mp-project-card .mp-contact-action {flex:none;width:100%;justify-content:center;background:var(--mp-feature-accent);color:var(--mp-feature-ink);border:0;min-height:44px;}
.mp-project-card .mp-contact-action:hover {background:var(--mp-feature-accent);}
.mp-project-card .mp-contact-action span {transition:transform 160ms ease-out;}
.mp-project-card .mp-contact-action:hover span {transform:translate(2px,-2px);}
@media (max-width:1200px) {.mp-contact.mp-project-card{padding:16px;gap:14px;}.mp-project-heading h2{font-size:20px;}.mp-feature-wordmark{font-size:15px;}}
@media (prefers-reduced-motion:reduce) {.mp-project-card .mp-contact-action span{transition:none;transform:none;}}
/* Compact CMS-controlled selector rails for agency and case directories. */
.mp-rail-heading {display:block;margin:4px 12px 16px;}
.mp-selector-layout .mp-logo {width:80px;flex-basis:80px;height:48px;padding:3px;}
.mp-category button:focus-visible {outline:2px solid var(--mp-icon);outline-offset:-3px;}
/* Flat directories place their CMS links together, without a redundant rail. */
.menu-preview-page .mp-directory-layout {grid-template-columns:minmax(0,1fr);}
.menu-preview-page .mp-directory-layout.mp-has-banner {grid-template-columns:minmax(0,1fr) 300px;}
@media (max-width:1200px) {.menu-preview-page .mp-directory-layout.mp-has-banner{grid-template-columns:minmax(0,1fr) 250px;}}
