:root {
    --nd-color-bg: #ffffff;
    --nd-color-surface: #f7f8fc;
    --nd-color-text: #10183a;
    --nd-color-muted: #667085;
    --nd-color-border: #e6e8ef;
    --nd-color-primary: #4b4fe8;
    --nd-color-accent: #8b5cf6;
    --nd-radius-sm: 8px;
    --nd-radius-md: 14px;
    --nd-radius-lg: 22px;
    --nd-shadow: 0 12px 32px rgba(16, 24, 58, .08);
    --nd-button-radius: 10px;
    --nd-button-weight: 700;
    --nd-card-padding: 24px;
    --nd-form-radius: 10px;
    --nd-section-space: 72px;
    --nd-link-color: var(--nd-color-primary);
    --nd-link-hover-color: var(--nd-color-accent);
    --nd-button-bg: var(--nd-color-primary);
    --nd-button-text: #fff;
    --nd-button-hover-bg: var(--nd-color-secondary);
    --nd-button-border: transparent;
    --nd-button-pad-y: 12px;
    --nd-button-pad-x: 18px;
    --nd-card-radius: 22px;
    --nd-card-border: var(--nd-color-border);
    --nd-card-bg: var(--nd-color-surface);
    --nd-form-bg: #fff;
    --nd-form-text: var(--nd-color-text);
    --nd-form-border: var(--nd-color-border);
    --nd-form-pad-y: 11px;
    --nd-form-pad-x: 13px;
    --nd-container-pad: 16px;
    --nd-container-pad-laptop: 16px;
    --nd-container-pad-tablet: 14px;
    --nd-container-pad-mobile: 12px;
    --nd-section-space-laptop: 64px;
    --nd-section-space-tablet: 52px;
    --nd-section-space-mobile: 40px;
    --nd-content-width: 760px;
    --nd-wide-width: 1200px;
    --nd-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --nd-space-1: .5rem;
    --nd-space-2: 1rem;
    --nd-space-3: 1.5rem;
    --nd-space-4: 2rem;
    --nd-space-5: 3rem;
}

/* NovaDream's general content design is deliberately scoped so plugin-owned surfaces can opt out. */
.nd-theme-surface,
.nd-theme-surface * ,
.nd-theme-surface *::before,
.nd-theme-surface *::after { box-sizing: border-box; }

.nd-theme-surface { margin: 0; background: var(--nd-color-bg); color: var(--nd-color-text); font-family: var(--nd-font-family); line-height: 1.6; }
.nd-theme-surface a { color: var(--nd-link-color); text-decoration-thickness: .08em; text-underline-offset: .18em; }
.nd-theme-surface a:hover { color: var(--nd-link-hover-color); }
.nd-theme-surface img { max-width: 100%; height: auto; }
.nd-theme-surface button,
.nd-theme-surface input,
.nd-theme-surface select,
.nd-theme-surface textarea { font: inherit; }
.nd-theme-surface :focus-visible { outline: 3px solid var(--nd-color-accent); outline-offset: 3px; }

/* Theme shell selectors remain namespaced and safe for hybrid/plugin-controlled pages. */
.nd-container { width: min(calc(100% - (var(--nd-container-pad) * 2)), var(--nd-wide-width)); margin-inline: auto; }
.nd-main { min-height: 60vh; padding-block: clamp(2rem, 5vw, 5rem); }
.nd-site-header { border-bottom: 1px solid var(--nd-color-border); background: rgba(255,255,255,.96); color: var(--nd-color-text); font-family: var(--nd-font-family); }
.nd-site-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nd-site-title { color: var(--nd-color-text); font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.nd-menu { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nd-menu a { color: var(--nd-color-text); text-decoration: none; }
.nd-menu-toggle { display: none; min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--nd-color-border); border-radius: var(--nd-radius-sm); background: #fff; color: var(--nd-color-text); font: inherit; }
.nd-menu-toggle:focus-visible,
.nd-site-header a:focus-visible,
.nd-site-footer a:focus-visible { outline: 3px solid var(--nd-color-accent); outline-offset: 3px; }
.nd-card { margin-bottom: 1.5rem; padding: var(--nd-card-padding); border: 1px solid var(--nd-card-border); border-radius: var(--nd-card-radius); background: var(--nd-card-bg); box-shadow: var(--nd-shadow); }
.nd-entry__header h1,
.nd-entry__header h2,
.nd-page-header h1 { line-height: 1.15; }
.nd-entry__media { margin-block: 1.25rem; overflow: hidden; border-radius: var(--nd-radius-md); }
.nd-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: var(--nd-button-pad-y) var(--nd-button-pad-x); border: 1px solid var(--nd-button-border); border-radius: var(--nd-button-radius); background: var(--nd-button-bg); color: var(--nd-button-text); font-weight: var(--nd-button-weight); text-decoration: none; }
.nd-button:hover { background: var(--nd-button-hover-bg); color: var(--nd-button-text); }
.nd-site-footer { margin-top: 3rem; border-top: 1px solid var(--nd-color-border); background: var(--nd-color-surface); color: var(--nd-color-text); font-family: var(--nd-font-family); }
.nd-site-footer__inner { padding-block: 2.5rem; }
.nd-footer-menu { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; }
.nd-copyright { color: var(--nd-color-muted); font-size: .925rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; z-index: 99999; top: 1rem; left: 1rem; width: auto; height: auto; padding: .75rem 1rem; clip: auto; background: #fff; color: #000; }

@media (max-width: 782px) {
    .nd-menu-toggle { display: inline-flex; }
    .nd-primary-nav { display: none; position: absolute; z-index: 50; top: 76px; left: 0; right: 0; padding: 1rem; background: #fff; border-bottom: 1px solid var(--nd-color-border); }
    .nd-primary-nav.is-open { display: block; }
    .nd-menu { flex-direction: column; align-items: stretch; }
    .nd-menu a { display: block; min-height: 44px; padding: .7rem; }
}

/* Navigation Studio: a true inline mobile menu is never hidden behind a drawer toggle. */
@media (max-width: 782px) {
    .nd-primary-nav--mobile.nd-primary-nav--inline { display: block; position: static; z-index: auto; padding: .4rem 0; border: 0; background: transparent; }
    .nd-primary-nav--mobile.nd-primary-nav--inline .nd-menu { display: flex; }
    .nd-header-row--main.nd-header-row--mobile:has(.nd-primary-nav--inline) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
    .nd-header-row--mobile:has(.nd-primary-nav--inline) .nd-header-region--left { grid-column: 1; grid-row: 1; }
    .nd-header-row--mobile:has(.nd-primary-nav--inline) .nd-header-region--right { grid-column: 2; grid-row: 1; }
    .nd-header-row--mobile:has(.nd-primary-nav--inline) .nd-header-region--center { grid-column: 1 / -1; grid-row: 2; justify-content: center; width: 100%; }
}
@media (min-width: 783px) {
    .nd-primary-nav--mobile, .nd-header-row--mobile .nd-menu-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .nd-theme-surface { scroll-behavior: auto; }
    .nd-theme-surface *,
    .nd-theme-surface *::before,
    .nd-theme-surface *::after,
    .nd-site-header *,
    .nd-site-footer * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* NovaDream v1.00.03 layout engine. Layout classes are isolated from plugin-owned application markup. */
.nd-shell { margin-inline: auto; }
.nd-shell--contained { width: min(calc(100% - 2rem), var(--nd-content-width)); }
.nd-shell--wide { width: min(calc(100% - 2rem), var(--nd-wide-width)); }
.nd-shell--full { width: 100%; padding-inline: clamp(1rem, 3vw, 3rem); }
.nd-shell--canvas { width: 100%; padding: 0; }
.nd-shell--app { width: 100%; max-width: none; padding-inline: clamp(.75rem, 2vw, 1.5rem); }
.nd-layout-canvas .nd-main { min-height: 100vh; padding-block: 0; }
.nd-layout-app .nd-main { min-height: 70vh; padding-block: 1rem 5rem; }

@media (max-width: 782px) {
    .nd-shell--contained,
    .nd-shell--wide { width: min(calc(100% - 1.25rem), var(--nd-wide-width)); }
    .nd-shell--full { padding-inline: .75rem; }
    .nd-shell--app { padding-inline: .625rem; }
}

/* NovaDream v1.00.04 header system. */
.nd-site-header { position: relative; z-index: 40; }
.nd-site-header--sticky { position: sticky; top: 0; }
.admin-bar .nd-site-header--sticky { top: 32px; }
.nd-site-header--transparent { background: rgba(255,255,255,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.nd-branding { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.nd-branding .custom-logo-link { display: inline-flex; align-items: center; }
.nd-branding .custom-logo { width: auto; max-height: 54px; }
.nd-site-tagline { margin: .2rem 0 0; color: var(--nd-color-muted); font-size: .82rem; line-height: 1.2; }
.nd-header-actions { display: flex; align-items: center; gap: .75rem; }
.nd-header-action { color: var(--nd-color-text); text-decoration: none; white-space: nowrap; }
.nd-header-cta { white-space: nowrap; }
.nd-site-header--centered-logo .nd-site-header__inner { flex-wrap: wrap; justify-content: center; padding-block: .8rem; }
.nd-site-header--centered-logo .nd-branding { width: 100%; align-items: center; text-align: center; }
.nd-site-header--centered-logo .nd-primary-nav { order: 3; width: 100%; }
.nd-site-header--centered-logo .nd-menu { justify-content: center; }
.nd-site-header--centered-logo .nd-header-actions { position: absolute; right: max(1rem, calc((100vw - var(--nd-wide-width))/2)); top: 1rem; }
.nd-site-header--split .nd-branding { flex: 0 0 auto; }
.nd-site-header--split .nd-primary-nav { flex: 1 1 auto; }
.nd-site-header--split .nd-menu { justify-content: center; }

@media (max-width: 782px) {
    .admin-bar .nd-site-header--sticky { top: 46px; }
    .nd-site-header__inner { position: relative; min-height: 68px; }
    .nd-branding .custom-logo { max-height: 46px; }
    .nd-header-actions { margin-left: auto; }
    .nd-header-actions .nd-header-action { display: none; }
    .nd-header-actions .nd-header-cta { min-height: 40px; padding: .6rem .8rem; font-size: .9rem; }
    .nd-site-header--centered-logo .nd-site-header__inner { justify-content: space-between; flex-wrap: nowrap; }
    .nd-site-header--centered-logo .nd-branding { width: auto; align-items: flex-start; text-align: left; }
    .nd-site-header--centered-logo .nd-header-actions { position: static; }
    .nd-site-header--centered-logo .nd-primary-nav { width: auto; }
}

/* NovaDream Footer System */
.nd-site-footer {
    margin-top: clamp(3rem, 7vw, 6rem);
    border-top: 1px solid var(--nd-color-border);
    background: var(--nd-color-surface);
    color: var(--nd-color-text);
}
.nd-site-footer__inner { padding-block: clamp(2.5rem, 5vw, 4.5rem) 1.5rem; }
.nd-footer-main { display: grid; gap: clamp(2rem, 4vw, 4rem); }
.nd-footer-main--one-column { grid-template-columns: minmax(0, 1fr); }
.nd-footer-main--two-column { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.nd-footer-main--three-column { grid-template-columns: minmax(180px, .75fr) minmax(0, 1.5fr) minmax(180px, .75fr); }
.nd-footer-main--four-column { grid-template-columns: minmax(180px, .8fr) minmax(0, 1.6fr); }
.nd-footer-branding { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.nd-footer-branding .custom-logo { width: auto; max-height: 64px; }
.nd-footer-site-title { color: var(--nd-color-text); font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.nd-footer-tagline { margin: 0; color: var(--nd-color-muted); max-width: 32rem; }
.nd-footer-widgets { display: grid; gap: 1.5rem; }
.nd-footer-widgets--one-column { grid-template-columns: 1fr; }
.nd-footer-widgets--two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nd-footer-widgets--three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nd-footer-widgets--four-column { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nd-footer-widget-area > :first-child { margin-top: 0; }
.nd-footer-widget-area > :last-child { margin-bottom: 0; }
.nd-widget__title { font-size: 1rem; margin-bottom: .85rem; }
.nd-footer-navigation { align-self: start; }
.nd-footer-menu,
.nd-footer-legal-menu { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.nd-footer-menu { flex-direction: column; align-items: flex-start; }
.nd-footer-menu a,
.nd-footer-legal-menu a { color: var(--nd-color-text); text-decoration: none; }
.nd-footer-menu a:hover,
.nd-footer-legal-menu a:hover { text-decoration: underline; text-underline-offset: .2em; }
.nd-footer-legal-navigation { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--nd-color-border); }
.nd-footer-bottom { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--nd-color-border); display: flex; justify-content: space-between; gap: 1rem 2rem; color: var(--nd-color-muted); font-size: .925rem; }
.nd-footer-bottom p { margin: 0; }
.nd-site-footer--one-column .nd-footer-main { text-align: center; }
.nd-site-footer--one-column .nd-footer-branding { align-items: center; }
.nd-site-footer--one-column .nd-footer-menu { flex-direction: row; justify-content: center; align-items: center; }

@media (max-width: 960px) {
    .nd-footer-main--three-column,
    .nd-footer-main--four-column { grid-template-columns: 1fr; }
    .nd-footer-widgets--four-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .nd-footer-main--two-column { grid-template-columns: 1fr; }
    .nd-footer-widgets--two-column,
    .nd-footer-widgets--three-column,
    .nd-footer-widgets--four-column { grid-template-columns: 1fr; }
    .nd-footer-bottom { flex-direction: column; }
    .nd-footer-legal-menu { flex-direction: column; }
}

/* NovaDream v1.00.06 Navigation Studio. */
.nd-bottom-nav { display: none; }
.nd-registered-menu-item a { font-weight: 600; }
@media (max-width: 782px) {
    .nd-menu-open { overflow: hidden; }
    .nd-primary-nav.is-open { max-height: calc(100vh - 68px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 18px 45px rgba(16,24,58,.12); }
    .nd-bottom-nav { position: fixed; z-index: 80; left: 50%; bottom: max(.65rem, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 1rem), 560px); padding: .4rem; border: 1px solid var(--nd-color-border); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 14px 40px rgba(16,24,58,.16); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
    .nd-bottom-nav:has(.nd-bottom-menu) { display: block; }
    .nd-bottom-menu { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); align-items: stretch; gap: .25rem; list-style: none; padding: 0; margin: 0; }
    .nd-bottom-menu li { min-width: 0; }
    .nd-bottom-menu a { display: flex; min-height: 48px; align-items: center; justify-content: center; padding: .45rem .5rem; border-radius: 12px; color: var(--nd-color-text); font-size: .78rem; font-weight: 650; line-height: 1.1; text-align: center; text-decoration: none; }
    .nd-bottom-menu .current-menu-item > a,
    .nd-bottom-menu .current_page_item > a { background: var(--nd-color-surface); color: var(--nd-color-primary); }
    body:has(.nd-bottom-nav .nd-bottom-menu) { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
}

/* NovaDream v1.00.08 Studio native page-builder primitives. */
.nd-studio-section {
    position: relative;
    padding-block: var(--nd-section-pad-desktop, 72px);
}
.nd-studio-section__inner {
    margin-inline: auto;
    width: min(calc(100% - 2rem), var(--nd-content-width));
}
.nd-studio-section--wide .nd-studio-section__inner {
    width: min(calc(100% - 2rem), var(--nd-wide-width));
}
.nd-studio-section--full .nd-studio-section__inner {
    width: 100%;
    max-width: none;
}
.nd-studio-surface--soft { background: var(--nd-color-surface); }
.nd-studio-surface--dark { background: var(--nd-color-text); color: var(--nd-color-background); }
.nd-studio-surface--dark :where(h1,h2,h3,h4,h5,h6,a) { color: inherit; }
.nd-studio-grid {
    display: grid;
    grid-template-columns: repeat(var(--nd-grid-desktop, 3), minmax(0, 1fr));
    gap: var(--nd-grid-gap, 24px);
}
.nd-studio-grid > * { min-width: 0; }
.nd-hide-desktop { display: none !important; }
@media (max-width: 1024px) {
    .nd-studio-section { padding-block: var(--nd-section-pad-tablet, 56px); }
    .nd-studio-grid { grid-template-columns: repeat(var(--nd-grid-tablet, 2), minmax(0, 1fr)); }
    .nd-hide-desktop { display: initial !important; }
    .nd-hide-tablet { display: none !important; }
}
@media (max-width: 640px) {
    .nd-studio-section { padding-block: var(--nd-section-pad-mobile, 36px); }
    .nd-studio-grid { grid-template-columns: repeat(var(--nd-grid-mobile, 1), minmax(0, 1fr)); }
    .nd-hide-tablet { display: initial !important; }
    .nd-hide-mobile { display: none !important; }
}

/* NovaDream v1.00.09 Studio core component library. */
.nd-studio-hero,
.nd-studio-cta {
    padding: clamp(2rem, 6vw, 5rem);
    border: 1px solid var(--nd-color-border);
    border-radius: var(--nd-radius-lg);
    background: var(--nd-color-surface);
}
.nd-studio-hero { max-width: 980px; }
.nd-studio-eyebrow { margin: 0 0 .75rem; color: var(--nd-color-primary); font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.nd-studio-title { margin: 0; font-size: clamp(2rem, 5vw, 4.75rem); line-height: 1.02; letter-spacing: -.035em; }
.nd-studio-copy { max-width: 52rem; margin: 1rem 0 0; color: var(--nd-color-muted); font-size: clamp(1rem, 1.6vw, 1.22rem); line-height: 1.65; }
.nd-studio-action { display: inline-flex; margin-top: 1.5rem; }
.nd-studio-split-hero { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr); gap: clamp(2rem,5vw,5rem); align-items: center; }
.nd-studio-split-hero__media img,
.nd-studio-media img { display: block; width: 100%; height: auto; border-radius: var(--nd-radius-lg); }
.nd-studio-media { margin: 0; }
.nd-studio-media figcaption { margin-top: .65rem; color: var(--nd-color-muted); font-size: .9rem; }
.nd-studio-media__placeholder { display: grid; min-height: 240px; place-items: center; border: 1px dashed var(--nd-color-border); border-radius: var(--nd-radius-lg); color: var(--nd-color-muted); background: var(--nd-color-surface); }
.nd-studio-content { max-width: 760px; }
.nd-studio-content > :first-child { margin-top: 0; }
.nd-studio-card { height: 100%; padding: clamp(1.25rem,2.5vw,2rem); border: 1px solid var(--nd-color-border); border-radius: var(--nd-radius-lg); background: var(--nd-color-surface); box-shadow: 0 10px 30px rgba(16,24,58,.06); }
.nd-studio-card h3 { margin-top: 0; }
.nd-studio-card p { color: var(--nd-color-muted); }
.nd-studio-card a { font-weight: 700; text-underline-offset: .2em; }
.nd-studio-icon-card__icon { display: grid; width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; place-items: center; border-radius: var(--nd-radius-md); background: var(--nd-color-primary); color: #fff; font-size: 1.2rem; }
.nd-studio-stat { display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem; border-left: 4px solid var(--nd-color-primary); }
.nd-studio-stat__value { font-size: clamp(2rem,5vw,4rem); line-height: 1; letter-spacing: -.04em; }
.nd-studio-stat__label { color: var(--nd-color-muted); font-weight: 650; }
.nd-studio-cta { text-align: center; }
.nd-studio-cta .nd-studio-copy { margin-inline: auto; }
.nd-studio-faq { padding: 1rem 0; border-bottom: 1px solid var(--nd-color-border); }
.nd-studio-faq summary { cursor: pointer; font-weight: 750; }
.nd-studio-faq p { color: var(--nd-color-muted); }
.nd-studio-testimonial { margin: 0; padding: clamp(1.5rem,3vw,2.5rem); border: 1px solid var(--nd-color-border); border-radius: var(--nd-radius-lg); background: var(--nd-color-surface); }
.nd-studio-testimonial__quote { margin-top: 0; font-size: clamp(1.15rem,2vw,1.55rem); line-height: 1.55; }
.nd-studio-testimonial footer { display: flex; flex-wrap: wrap; gap: .35rem .75rem; color: var(--nd-color-muted); }
.nd-studio-testimonial footer strong { color: var(--nd-color-text); }
.nd-studio-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.nd-studio-gallery .wp-block-image { margin: 0; }
.nd-studio-gallery img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: var(--nd-radius-md); }
.nd-studio-logo-cloud { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem,4vw,3.5rem); }
.nd-studio-logo-cloud .wp-block-image { margin: 0; }
.nd-studio-logo-cloud img { width: auto; max-width: 180px; max-height: 72px; object-fit: contain; }
@media (max-width: 782px) {
    .nd-studio-split-hero { grid-template-columns: 1fr; }
    .nd-studio-split-hero__media { order: -1; }
    .nd-studio-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
    .nd-studio-gallery { grid-template-columns: 1fr; }
    .nd-studio-gallery img { min-height: 180px; }
}

/* NovaDream v1.00.10 advanced Studio layout controls. */
.nd-studio-section {
    display: flex;
    min-height: var(--nd-section-min-height, auto);
    align-items: var(--nd-section-align, start);
}
.nd-studio-section__inner {
    padding-inline: var(--nd-section-inline-desktop, 16px);
}
.nd-studio-grid {
    column-gap: var(--nd-grid-gap, 24px);
    row-gap: var(--nd-grid-row-gap, 24px);
    align-items: var(--nd-grid-align, stretch);
    justify-items: var(--nd-grid-justify, stretch);
}
.nd-studio-grid--dense { grid-auto-flow: dense; }
.nd-studio-flex {
    display: flex;
    flex-direction: var(--nd-flex-direction-desktop, row);
    flex-wrap: var(--nd-flex-wrap, wrap);
    gap: var(--nd-flex-gap-desktop, 24px);
    align-items: var(--nd-flex-align, stretch);
    justify-content: var(--nd-flex-justify, flex-start);
}
.nd-studio-flex > * { min-width: 0; }
@media (max-width: 1024px) {
    .nd-studio-section__inner { padding-inline: var(--nd-section-inline-tablet, 16px); }
    .nd-studio-flex { flex-direction: var(--nd-flex-direction-tablet, row); gap: var(--nd-flex-gap-tablet, 20px); }
}
@media (max-width: 640px) {
    .nd-studio-section__inner { padding-inline: var(--nd-section-inline-mobile, 12px); }
    .nd-studio-flex { flex-direction: var(--nd-flex-direction-mobile, column); gap: var(--nd-flex-gap-mobile, 16px); }
    .nd-studio-flex--reverse-mobile { flex-direction: column-reverse; }
}

/* Linked Global Sections — v1.00.11. */
.nd-global-section {
    display: block;
}

/* NovaDream Studio dynamic content */
.nd-dynamic-grid {
    display: grid;
    grid-template-columns: repeat(var(--nd-dynamic-columns, 3), minmax(0, 1fr));
    gap: 24px;
}
.nd-dynamic-card {
    overflow: hidden;
    background: var(--nd-color-surface, #fff);
    border: 1px solid var(--nd-color-border, #e5e7eb);
    border-radius: var(--nd-radius-lg, 18px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}
.nd-dynamic-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.nd-dynamic-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-dynamic-card__body { padding: 22px; }
.nd-dynamic-card__meta { margin-bottom: 8px; color: var(--nd-color-muted, #64748b); font-size: .82rem; }
.nd-dynamic-card__title { margin: 0; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.nd-dynamic-card__title a { color: inherit; text-decoration: none; }
.nd-dynamic-card__excerpt { margin: 10px 0 0; color: var(--nd-color-muted, #64748b); }
.nd-dynamic-empty { padding: 28px; border: 1px dashed var(--nd-color-border, #d1d5db); border-radius: var(--nd-radius-md, 12px); text-align: center; }
@media (max-width: 900px) { .nd-dynamic-grid { grid-template-columns: repeat(min(2, var(--nd-dynamic-columns, 2)), minmax(0, 1fr)); } }
@media (max-width: 640px) { .nd-dynamic-grid { grid-template-columns: 1fr; } }

/* NovaDream v1.00.14 Dynamic Cards and Loops. */
.nd-dynamic-loop {
    display: grid;
    grid-template-columns: repeat(var(--nd-loop-desktop, 3), minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: stretch;
}
.nd-loop-card {
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--nd-color-border);
    border-radius: var(--nd-radius-lg);
    background: var(--nd-color-surface);
    box-shadow: 0 10px 30px rgba(16,24,58,.06);
    display: flex;
    flex-direction: column;
}
.nd-loop-card__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: color-mix(in srgb, var(--nd-color-surface) 85%, var(--nd-color-border)); }
.nd-loop-card--member .nd-loop-card__media { aspect-ratio: 1/1; }
.nd-loop-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.nd-loop-card__media:hover img { transform: scale(1.025); }
.nd-loop-card__body { display: flex; flex: 1; flex-direction: column; padding: clamp(1rem, 2vw, 1.5rem); }
.nd-loop-card__badge { align-self: flex-start; margin-bottom: .75rem; padding: .3rem .6rem; border-radius: 999px; background: var(--nd-color-primary); color: #fff; font-size: .75rem; font-weight: 700; }
.nd-loop-card__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .65rem; color: var(--nd-color-muted); font-size: .82rem; }
.nd-loop-card__title { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.2; }
.nd-loop-card__title a { color: inherit; text-decoration: none; }
.nd-loop-card__excerpt { margin: .75rem 0 0; color: var(--nd-color-muted); line-height: 1.6; }
.nd-loop-card__action { margin-top: auto; padding-top: 1.1rem; font-weight: 700; text-decoration: none; }
.nd-loop-empty { padding: 1.25rem; border: 1px dashed var(--nd-color-border); border-radius: var(--nd-radius-md); color: var(--nd-color-muted); background: var(--nd-color-surface); }
@media (max-width: 1024px) {
    .nd-dynamic-loop { grid-template-columns: repeat(var(--nd-loop-tablet, 2), minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .nd-dynamic-loop { grid-template-columns: repeat(var(--nd-loop-mobile, 1), minmax(0, 1fr)); }
}
/* Navigation Studio: a true inline mobile menu is never hidden behind a drawer toggle. */
@media (max-width: 782px) {
    .nd-primary-nav--mobile.nd-primary-nav--inline { display: block; position: static; z-index: auto; padding: .4rem 0; border: 0; background: transparent; }
    .nd-primary-nav--mobile.nd-primary-nav--inline .nd-menu { display: flex; }
    .nd-header-row--main.nd-header-row--mobile:has(.nd-primary-nav--inline) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
    .nd-header-row--mobile:has(.nd-primary-nav--inline) .nd-header-region--left { grid-column: 1; grid-row: 1; }
    .nd-header-row--mobile:has(.nd-primary-nav--inline) .nd-header-region--right { grid-column: 2; grid-row: 1; }
    .nd-header-row--mobile:has(.nd-primary-nav--inline) .nd-header-region--center { grid-column: 1 / -1; grid-row: 2; justify-content: center; width: 100%; }
}
@media (min-width: 783px) {
    .nd-primary-nav--mobile, .nd-header-row--mobile .nd-menu-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .nd-loop-card__media img { transition: none; }
}

/* NovaDream Studio runtime templates */
.nd-studio-template {
    width: 100%;
}

.nd-studio-template > :first-child {
    margin-top: 0;
}

.nd-studio-template > :last-child {
    margin-bottom: 0;
}


.nd-preview-inspector { position: fixed; z-index: 999999; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 12px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(15,23,42,.94); color: #fff; font: 500 13px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; box-shadow: 0 12px 35px rgba(0,0,0,.25); backdrop-filter: blur(12px); }
.nd-preview-inspector strong { color: #c4b5fd; }
@media (max-width: 600px) { .nd-preview-inspector { left: 8px; right: 8px; bottom: 8px; } }

/* NovaDream v1.00.18 advanced Studio components. */
.nd-studio-tabs__nav { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1rem; border-bottom:1px solid var(--nd-color-border); }
.nd-studio-tabs__nav button, .nd-studio-tabs__nav span { padding:.75rem 1rem; border:0; border-bottom:2px solid transparent; background:transparent; color:var(--nd-color-muted); font:inherit; font-weight:700; cursor:pointer; }
.nd-studio-tabs__nav button[aria-selected="true"] { border-bottom-color:var(--nd-color-primary); color:var(--nd-color-text); }
.nd-studio-tabs__panels { padding:1rem 0; }
.nd-studio-timeline-item { position:relative; padding:1.25rem 1.25rem 1.25rem 2rem; border-left:3px solid var(--nd-color-primary); background:var(--nd-color-surface); border-radius:0 var(--nd-radius-md) var(--nd-radius-md) 0; }
.nd-studio-timeline-item::before { content:""; position:absolute; left:-8px; top:1.55rem; width:13px; height:13px; border-radius:50%; background:var(--nd-color-primary); box-shadow:0 0 0 4px var(--nd-color-surface); }
.nd-studio-pricing-card { display:flex; flex-direction:column; height:100%; padding:clamp(1.25rem,3vw,2rem); border:1px solid var(--nd-color-border); border-radius:var(--nd-radius-lg); background:var(--nd-color-surface); }
.nd-studio-pricing-card.is-featured { border-color:var(--nd-color-primary); box-shadow:0 18px 45px rgba(15,23,42,.10); }
.nd-studio-pricing-card__price { display:flex; align-items:baseline; gap:.4rem; margin:.75rem 0; }
.nd-studio-pricing-card__price strong { font-size:clamp(2rem,5vw,3.5rem); line-height:1; }
.nd-studio-pricing-card__price span { color:var(--nd-color-muted); }
.nd-studio-comparison { overflow-x:auto; border:1px solid var(--nd-color-border); border-radius:var(--nd-radius-lg); background:var(--nd-color-surface); }
.nd-studio-comparison table { width:100%; min-width:560px; border-collapse:collapse; }
.nd-studio-comparison th, .nd-studio-comparison td { padding:1rem; border-bottom:1px solid var(--nd-color-border); text-align:left; }
.nd-studio-comparison th { background:color-mix(in srgb,var(--nd-color-surface) 88%,var(--nd-color-primary)); }
.nd-studio-team-member { overflow:hidden; border:1px solid var(--nd-color-border); border-radius:var(--nd-radius-lg); background:var(--nd-color-surface); padding:1.25rem; }
.nd-studio-team-member img { width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:calc(var(--nd-radius-lg) - 6px); margin-bottom:1rem; }
.nd-studio-team-member__role { color:var(--nd-color-primary); font-weight:700; }
.nd-studio-contact-section { padding:clamp(1.5rem,4vw,3rem); border-radius:var(--nd-radius-lg); background:color-mix(in srgb,var(--nd-color-primary) 7%,var(--nd-color-surface)); border:1px solid var(--nd-color-border); }
.nd-studio-social-links { display:flex; flex-wrap:wrap; gap:.75rem; }
.nd-studio-social-links a { display:inline-flex; align-items:center; min-height:44px; padding:.65rem 1rem; border:1px solid var(--nd-color-border); border-radius:999px; color:var(--nd-color-text); text-decoration:none; font-weight:700; }
.nd-studio-social-links a:hover, .nd-studio-social-links a:focus-visible { border-color:var(--nd-color-primary); color:var(--nd-color-primary); }
.nd-studio-countdown { padding:clamp(1.25rem,3vw,2rem); border:1px solid var(--nd-color-border); border-radius:var(--nd-radius-lg); text-align:center; background:var(--nd-color-surface); }
.nd-studio-countdown__timer { margin-top:.75rem; font-size:clamp(1.5rem,5vw,3rem); font-weight:800; letter-spacing:.02em; font-variant-numeric:tabular-nums; }
@media (max-width:640px) { .nd-studio-tabs__nav { flex-direction:column; } .nd-studio-tabs__nav button { width:100%; text-align:left; } }


/* NovaDream v1.00.19 component variations and Global Style System 2.0. */
.nd-theme-surface .wp-block-button__link,
.nd-theme-surface input[type="submit"] {
    border-radius: var(--nd-button-radius);
    font-weight: var(--nd-button-weight);
}
.nd-theme-surface input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.nd-theme-surface select,
.nd-theme-surface textarea { border-radius: var(--nd-form-radius); }

.wp-block-button.is-style-soft .wp-block-button__link { background: color-mix(in srgb, var(--nd-color-primary) 12%, var(--nd-color-surface)); color: var(--nd-color-primary); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 1px solid var(--nd-color-primary); background: transparent; color: var(--nd-color-primary); }
.wp-block-button.is-style-pill .wp-block-button__link { border-radius: 999px; }

.wp-block-group.is-style-surface-card,
.wp-block-group.is-style-elevated-card,
.wp-block-group.is-style-glass-panel { padding: var(--nd-card-padding); border-radius: var(--nd-radius-lg); }
.wp-block-group.is-style-surface-card { border: 1px solid var(--nd-color-border); background: var(--nd-color-surface); }
.wp-block-group.is-style-elevated-card { border: 1px solid var(--nd-color-border); background: var(--nd-color-surface); box-shadow: var(--nd-shadow); }
.wp-block-group.is-style-glass-panel { border: 1px solid color-mix(in srgb, var(--nd-color-border) 70%, transparent); background: color-mix(in srgb, var(--nd-color-surface) 82%, transparent); box-shadow: var(--nd-shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

.wp-block-image.is-style-rounded img { border-radius: var(--nd-radius-lg); }
.wp-block-image.is-style-framed img { padding: .45rem; border: 1px solid var(--nd-color-border); border-radius: var(--nd-radius-lg); background: var(--nd-color-surface); box-shadow: var(--nd-shadow); }

.nd-studio-section.is-style-minimal { padding-block: calc(var(--nd-section-space) * .55); }
.nd-studio-section.is-style-soft-panel .nd-studio-section__inner { padding-block: var(--nd-section-space); border-radius: var(--nd-radius-lg); background: var(--nd-color-surface); }
.nd-studio-section.is-style-contrast { background: var(--nd-color-text); color: #fff; }
.nd-studio-section.is-style-contrast a { color: #fff; }

.wp-block-novadream-hero.is-style-centered,
.nd-studio-hero.is-style-centered { text-align: center; }
.wp-block-novadream-hero.is-style-soft,
.nd-studio-hero.is-style-soft { padding: clamp(2rem, 6vw, 5rem); border-radius: var(--nd-radius-lg); background: color-mix(in srgb, var(--nd-color-primary) 7%, var(--nd-color-surface)); }
.wp-block-novadream-hero.is-style-contrast,
.nd-studio-hero.is-style-contrast { padding: clamp(2rem, 6vw, 5rem); border-radius: var(--nd-radius-lg); background: var(--nd-color-text); color: #fff; }

.nd-studio-pricing-card.is-style-minimal { border-color: transparent; box-shadow: none; }
.nd-studio-pricing-card.is-style-accent { border-color: var(--nd-color-primary); background: color-mix(in srgb, var(--nd-color-primary) 7%, var(--nd-color-surface)); box-shadow: var(--nd-shadow); }
.nd-studio-team-member.is-style-compact { display: grid; grid-template-columns: 88px 1fr; gap: 1rem; align-items: start; }
.nd-studio-team-member.is-style-compact img { margin: 0; width: 88px; height: 88px; }
.nd-studio-team-member.is-style-borderless { border-color: transparent; background: transparent; box-shadow: none; }
@media (max-width: 640px) {
    .nd-studio-team-member.is-style-compact { grid-template-columns: 64px 1fr; }
    .nd-studio-team-member.is-style-compact img { width: 64px; height: 64px; }
}

/* Media Room */
.nd-media-room{min-height:60vh;background:var(--nd-color-background,#fff);color:var(--nd-color-text,#10233f)}
.nd-media-room__hero{padding:clamp(3.5rem,7vw,7rem) 0 clamp(2.5rem,5vw,4.5rem);background:linear-gradient(145deg,color-mix(in srgb,var(--nd-color-primary,#246bfd) 10%,#fff),#fff)}
.nd-media-room__hero h1{max-width:18ch;margin:.35rem 0 .75rem;font-size:clamp(2.4rem,6vw,5.25rem);line-height:.98;letter-spacing:-.045em}
.nd-media-room__hero p:not(.nd-media-room__eyebrow){max-width:62ch;margin:0;font-size:clamp(1rem,1.5vw,1.2rem);color:var(--nd-color-muted,#627084)}
.nd-media-room__eyebrow{margin:0;text-transform:uppercase;letter-spacing:.12em;font-size:.78rem;font-weight:750;color:var(--nd-color-primary,#246bfd)}
.nd-media-room__workspace{padding-top:clamp(2rem,4vw,4rem);padding-bottom:clamp(4rem,7vw,7rem)}
.nd-media-room__search{display:flex;gap:.75rem;max-width:760px;margin-bottom:1.5rem}
.nd-media-room__search input{min-width:0;flex:1;padding:.9rem 1rem;border:1px solid var(--nd-color-border,#dbe3ec);border-radius:var(--nd-form-radius,12px);background:#fff;color:inherit}
.nd-media-room__search button{padding:.9rem 1.25rem;border:0;border-radius:var(--nd-button-radius,12px);background:var(--nd-color-primary,#246bfd);color:#fff;font-weight:var(--nd-button-weight,700);cursor:pointer}
.nd-media-room__filter-group{margin:0 0 1.4rem}
.nd-media-room__filter-label{display:block;margin:0 0 .55rem;font-size:.78rem;font-weight:750;text-transform:uppercase;letter-spacing:.08em;color:var(--nd-color-muted,#627084)}
.nd-media-room__channels,.nd-media-room__types{display:flex;gap:.6rem;overflow-x:auto;padding:.15rem 0 .35rem;scrollbar-width:thin}
.nd-media-room__channels a,.nd-media-room__types a{flex:0 0 auto;padding:.65rem .9rem;border:1px solid var(--nd-color-border,#dbe3ec);border-radius:999px;text-decoration:none;color:inherit;background:#fff}
.nd-media-room__channels a.is-active,.nd-media-room__types a.is-active{border-color:var(--nd-color-primary,#246bfd);background:var(--nd-color-primary,#246bfd);color:#fff}
.nd-media-room__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1rem,2vw,1.5rem)}
.nd-media-card{overflow:hidden;border:1px solid var(--nd-color-border,#dbe3ec);border-radius:var(--nd-radius-lg,20px);background:var(--nd-color-surface,#fff);box-shadow:var(--nd-shadow-card,0 12px 34px rgba(18,38,63,.08))}
.nd-media-card__media{display:block;aspect-ratio:16/10;overflow:hidden;background:#eef3f8}
.nd-media-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .28s ease}
.nd-media-card:hover .nd-media-card__media img{transform:scale(1.025)}
.nd-media-card__body{padding:var(--nd-card-padding,1.35rem)}
.nd-media-card__meta{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-bottom:.5rem;font-size:.82rem;color:var(--nd-color-muted,#627084)}
.nd-media-card__type{display:inline-flex;align-items:center;padding:.25rem .5rem;border-radius:999px;background:color-mix(in srgb,var(--nd-color-primary,#246bfd) 10%,#fff);color:var(--nd-color-primary,#246bfd);font-size:.72rem;font-weight:750;text-transform:uppercase;letter-spacing:.04em}
.nd-media-card h2{margin:.1rem 0 .6rem;font-size:clamp(1.2rem,2vw,1.55rem);line-height:1.15}
.nd-media-card h2 a{color:inherit;text-decoration:none}
.nd-media-card__body p{color:var(--nd-color-muted,#627084)}
.nd-media-card__action{display:inline-flex;margin-top:.35rem;font-weight:700;color:var(--nd-color-primary,#246bfd);text-decoration:none}
.nd-media-room__pagination{display:flex;justify-content:center;gap:.5rem;margin-top:2.5rem}
.nd-media-room__pagination .page-numbers{display:inline-flex;min-width:2.6rem;min-height:2.6rem;align-items:center;justify-content:center;border:1px solid var(--nd-color-border,#dbe3ec);border-radius:10px;text-decoration:none}
.nd-media-room__pagination .current{background:var(--nd-color-primary,#246bfd);color:#fff;border-color:var(--nd-color-primary,#246bfd)}
.nd-media-room__empty{padding:3rem;border:1px dashed var(--nd-color-border,#dbe3ec);border-radius:var(--nd-radius-lg,20px);text-align:center}
@media(max-width:900px){.nd-media-room__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.nd-media-room__grid{grid-template-columns:1fr}.nd-media-room__search{flex-direction:column}.nd-media-room__search button{width:100%}}
@media(prefers-reduced-motion:reduce){.nd-media-card__media img{transition:none}}

/* Media Room type experiences */
.nd-media-single{min-height:60vh;background:var(--nd-color-background,#fff);color:var(--nd-color-text,#10233f)}
.nd-media-experience__hero{padding:clamp(3rem,7vw,6.5rem) 0 clamp(2rem,4vw,3.5rem);background:linear-gradient(145deg,color-mix(in srgb,var(--nd-color-primary,#246bfd) 8%,#fff),#fff)}
.nd-media-experience__breadcrumbs{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin-bottom:1.25rem;font-size:.86rem;color:var(--nd-color-muted,#627084)}
.nd-media-experience__breadcrumbs a{color:var(--nd-color-primary,#246bfd);text-decoration:none;font-weight:700}
.nd-media-experience__eyebrow{margin:0 0 .75rem;text-transform:uppercase;letter-spacing:.12em;font-size:.78rem;font-weight:800;color:var(--nd-color-primary,#246bfd)}
.nd-media-experience__hero h1{max-width:18ch;margin:0;font-size:clamp(2.5rem,7vw,5.75rem);line-height:.96;letter-spacing:-.05em}
.nd-media-experience__meta{display:flex;gap:.75rem 1.25rem;flex-wrap:wrap;margin-top:1.25rem;color:var(--nd-color-muted,#627084);font-size:.92rem}
.nd-media-experience__featured,.nd-media-experience__video{margin-top:clamp(-1rem,-2vw,-2rem);position:relative;z-index:1}
.nd-media-experience__featured img{display:block;width:100%;max-height:720px;object-fit:cover;border-radius:var(--nd-radius-lg,20px);box-shadow:var(--nd-shadow-card,0 12px 34px rgba(18,38,63,.08))}
.nd-media-experience__video{overflow:hidden;border-radius:var(--nd-radius-lg,20px);background:#071321;box-shadow:var(--nd-shadow-card,0 12px 34px rgba(18,38,63,.12))}
.nd-media-experience__video iframe,.nd-media-experience__video video{display:block;width:100%;aspect-ratio:16/9;height:auto;border:0}
.nd-media-experience__content{padding-top:clamp(2rem,5vw,4rem);padding-bottom:2rem;font-size:clamp(1rem,1.4vw,1.125rem);line-height:1.75}
.nd-media-experience__content>*{max-width:100%}
.nd-media-experience__content>p,.nd-media-experience__content>ul,.nd-media-experience__content>ol,.nd-media-experience__content>blockquote{max-width:760px;margin-left:auto;margin-right:auto}
.nd-media-experience__primary-action{max-width:760px;margin:2rem auto 0}
.nd-media-experience__footer{padding-top:1rem;padding-bottom:clamp(4rem,7vw,7rem)}
.nd-media-experience--announcement .nd-media-experience__hero{background:linear-gradient(145deg,color-mix(in srgb,var(--nd-color-accent,#7b61ff) 14%,#fff),#fff)}
.nd-media-experience--story .nd-media-experience__hero h1{max-width:15ch}
.nd-media-experience--resource .nd-media-experience__content{max-width:900px}
.nd-media-experience--gallery .wp-block-gallery{margin-top:2rem;margin-bottom:2rem}
.nd-media-experience--event .nd-media-experience__meta{font-weight:650;color:var(--nd-color-text,#10233f)}
@media(max-width:640px){.nd-media-experience__hero h1{font-size:clamp(2.25rem,13vw,4rem)}.nd-media-experience__featured,.nd-media-experience__video{margin-top:0}.nd-media-experience__meta{flex-direction:column;gap:.35rem}}

/* Media Room landing templates and featured presentation. */
.nd-media-room__section-heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin:0 0 1.35rem}
.nd-media-room__section-heading h2{margin:.2rem 0 0;font-size:clamp(1.7rem,3vw,2.65rem);line-height:1.05;letter-spacing:-.035em}
.nd-media-room__section-heading--discovery{margin-top:clamp(2.5rem,5vw,5rem)}
.nd-media-featured{margin-bottom:clamp(3rem,6vw,6rem)}
.nd-media-featured__grid{display:grid;gap:clamp(1rem,2vw,1.5rem)}
.nd-media-featured__grid--1{grid-template-columns:1fr}
.nd-media-featured__grid--2,.nd-media-featured__grid--3{grid-template-columns:minmax(0,1.65fr) minmax(260px,.85fr)}
.nd-media-featured__grid--3 .nd-media-featured__item:nth-child(3){grid-column:2}
.nd-media-featured__item{display:grid;grid-template-columns:1fr;overflow:hidden;border:1px solid var(--nd-color-border,#dbe3ec);border-radius:var(--nd-radius-lg,20px);background:var(--nd-color-surface,#fff);box-shadow:var(--nd-shadow-card,0 12px 34px rgba(18,38,63,.08))}
.nd-media-featured__item.is-primary{grid-row:span 2}
.nd-media-featured__media{display:block;min-height:220px;aspect-ratio:16/9;overflow:hidden;background:#eef3f8}
.nd-media-featured__item.is-primary .nd-media-featured__media{aspect-ratio:16/10}
.nd-media-featured__media img{width:100%;height:100%;object-fit:cover;transition:transform .28s ease}
.nd-media-featured__item:hover .nd-media-featured__media img{transform:scale(1.02)}
.nd-media-featured__body{padding:clamp(1.2rem,2.4vw,2rem)}
.nd-media-featured__body h3{margin:.2rem 0 .7rem;font-size:clamp(1.35rem,2.5vw,2.15rem);line-height:1.08;letter-spacing:-.025em}
.nd-media-featured__body h3 a{color:inherit;text-decoration:none}
.nd-media-featured__body p{margin:0;color:var(--nd-color-muted,#627084)}
.nd-media-room--magazine .nd-media-room__grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.nd-media-room--magazine .nd-media-card:first-child{grid-column:span 2;grid-row:span 2}
.nd-media-room--magazine .nd-media-card:first-child .nd-media-card__media{aspect-ratio:16/8.5}
.nd-media-room--stream .nd-media-room__grid{grid-template-columns:1fr;max-width:980px}
.nd-media-room--stream .nd-media-card{display:grid;grid-template-columns:minmax(220px,34%) 1fr}
.nd-media-room--stream .nd-media-card__media{height:100%;aspect-ratio:auto;min-height:210px}
@media(max-width:1100px){.nd-media-room--magazine .nd-media-room__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.nd-media-featured__grid--2,.nd-media-featured__grid--3{grid-template-columns:1fr 1fr}.nd-media-featured__item.is-primary{grid-column:1/-1;grid-row:auto}.nd-media-featured__grid--3 .nd-media-featured__item:nth-child(3){grid-column:auto}}
@media(max-width:700px){.nd-media-featured__grid--2,.nd-media-featured__grid--3{grid-template-columns:1fr}.nd-media-room--stream .nd-media-card{grid-template-columns:1fr}.nd-media-room--stream .nd-media-card__media{aspect-ratio:16/10;min-height:0}.nd-media-room--magazine .nd-media-card:first-child{grid-column:auto;grid-row:auto}}
@media(prefers-reduced-motion:reduce){.nd-media-featured__media img{transition:none}}

/* Design System 3.0 semantic bridge. */
.nd-theme-surface { font-size: var(--nd-type-body); }
.nd-theme-surface h1 { font-family: var(--nd-font-display); font-size: var(--nd-type-h1); line-height: 1.05; letter-spacing: -.025em; }
.nd-theme-surface h2 { font-family: var(--nd-font-display); font-size: var(--nd-type-h2); line-height: 1.1; letter-spacing: -.018em; }
.nd-theme-surface h3 { font-family: var(--nd-font-display); font-size: var(--nd-type-h3); line-height: 1.15; }
.nd-theme-surface .nd-site-header,
.nd-theme-surface .nd-site-footer,
.nd-theme-surface .nd-card,
.nd-theme-surface .nd-button,
.nd-theme-surface input,
.nd-theme-surface select,
.nd-theme-surface textarea {
    transition-duration: var(--nd-motion-base);
    transition-timing-function: var(--nd-motion-ease);
}
.nd-theme-surface input,
.nd-theme-surface select,
.nd-theme-surface textarea {
    border-color: var(--nd-color-border);
    border-radius: var(--nd-form-radius);
    background: var(--nd-color-bg);
    color: var(--nd-color-text);
}
.nd-theme-surface input:focus,
.nd-theme-surface select:focus,
.nd-theme-surface textarea:focus { border-color: var(--nd-color-primary); }
.nd-theme-surface .nd-card { background: var(--nd-color-bg); }
.nd-theme-surface .nd-button:hover { box-shadow: var(--nd-shadow-sm); }
/* Navigation Studio: a true inline mobile menu is never hidden behind a drawer toggle. */
@media (max-width: 782px) {
    .nd-primary-nav--mobile.nd-primary-nav--inline { display: block; position: static; z-index: auto; padding: .4rem 0; border: 0; background: transparent; }
    .nd-primary-nav--mobile.nd-primary-nav--inline .nd-menu { display: flex; }
    .nd-header-row--main.nd-header-row--mobile:has(.nd-primary-nav--inline) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
    .nd-header-row--mobile:has(.nd-primary-nav--inline) .nd-header-region--left { grid-column: 1; grid-row: 1; }
    .nd-header-row--mobile:has(.nd-primary-nav--inline) .nd-header-region--right { grid-column: 2; grid-row: 1; }
    .nd-header-row--mobile:has(.nd-primary-nav--inline) .nd-header-region--center { grid-column: 1 / -1; grid-row: 2; justify-content: center; width: 100%; }
}
@media (min-width: 783px) {
    .nd-primary-nav--mobile, .nd-header-row--mobile .nd-menu-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .nd-theme-surface *,
    .nd-theme-surface *::before,
    .nd-theme-surface *::after {
        scroll-behavior: auto !important;
        transition-duration: 0ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* NovaDream v1.01.05 Component System 2.0. */
.nd-entity-card {
    min-width: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--nd-color-border);
    border-radius: var(--nd-radius-lg);
    background: var(--nd-color-surface);
    box-shadow: var(--nd-shadow-sm);
}
.nd-entity-card__media { display:block; aspect-ratio:16/10; overflow:hidden; background:var(--nd-color-surface-alt); }
.nd-entity-card--person .nd-entity-card__media { aspect-ratio:1/1; }
.nd-entity-card--media .nd-entity-card__media,
.nd-entity-card--project .nd-entity-card__media,
.nd-entity-card--series .nd-entity-card__media { aspect-ratio:16/9; }
.nd-entity-card__media img { width:100%; height:100%; object-fit:cover; display:block; transition:transform var(--nd-motion-base) var(--nd-motion-ease); }
.nd-entity-card__media:hover img { transform:scale(1.025); }
.nd-entity-card__body { display:flex; flex:1; flex-direction:column; padding:var(--nd-card-padding); }
.nd-entity-card__badge { align-self:flex-start; margin-bottom:var(--nd-space-3); padding:.3rem .6rem; border-radius:var(--nd-radius-pill); background:var(--nd-color-primary); color:var(--nd-color-text-inverse); font-size:var(--nd-type-small); font-weight:700; }
.nd-entity-card__meta { display:flex; flex-wrap:wrap; gap:var(--nd-space-2) var(--nd-space-4); margin-bottom:var(--nd-space-3); color:var(--nd-color-text-muted); font-size:var(--nd-type-small); }
.nd-entity-card__title { margin:0; font-family:var(--nd-font-display); font-size:var(--nd-type-h3); line-height:1.15; }
.nd-entity-card__title a { color:inherit; text-decoration:none; }
.nd-entity-card__excerpt { margin:var(--nd-space-3) 0 0; color:var(--nd-color-text-muted); line-height:1.6; }
.nd-entity-card__action { margin-top:auto; padding-top:var(--nd-space-4); font-weight:700; text-decoration:none; }
.nd-component--commerce { border-radius:var(--nd-radius-md); }
.nd-component--cinematic { border-color:transparent; background:var(--nd-color-surface-inverse); color:var(--nd-color-text-inverse); box-shadow:var(--nd-shadow-lg); }
.nd-component--cinematic .nd-entity-card__meta,
.nd-component--cinematic .nd-entity-card__excerpt { color:color-mix(in srgb, var(--nd-color-text-inverse) 72%, transparent); }
.nd-component--editorial { border-radius:var(--nd-radius-sm); box-shadow:none; }
.nd-component--dashboard { border-radius:var(--nd-radius-sm); box-shadow:none; }
/* Navigation Studio: a true inline mobile menu is never hidden behind a drawer toggle. */
@media (max-width: 782px) {
    .nd-primary-nav--mobile.nd-primary-nav--inline { display: block; position: static; z-index: auto; padding: .4rem 0; border: 0; background: transparent; }
    .nd-primary-nav--mobile.nd-primary-nav--inline .nd-menu { display: flex; }
    .nd-header-row--main.nd-header-row--mobile:has(.nd-primary-nav--inline) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
    .nd-header-row--mobile:has(.nd-primary-nav--inline) .nd-header-region--left { grid-column: 1; grid-row: 1; }
    .nd-header-row--mobile:has(.nd-primary-nav--inline) .nd-header-region--right { grid-column: 2; grid-row: 1; }
    .nd-header-row--mobile:has(.nd-primary-nav--inline) .nd-header-region--center { grid-column: 1 / -1; grid-row: 2; justify-content: center; width: 100%; }
}
@media (min-width: 783px) {
    .nd-primary-nav--mobile, .nd-header-row--mobile .nd-menu-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nd-entity-card__media img { transition:none; } }


/* NovaDream modern footer regions */
.nd-footer-section { min-width: 0; }
.nd-footer-section > .nd-global-section { margin: 0; }
.nd-footer-section--promo { margin-bottom: clamp(1.5rem, 3vw, 3rem); }
.nd-footer-section--content { min-width: 0; }
.nd-footer-extensions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: clamp(1.5rem, 3vw, 3rem); }
.nd-footer-section--legal { margin-top: 1.5rem; }
.nd-site-footer--modern .nd-footer-widget-area,
.nd-site-footer--hybrid .nd-footer-widget-area { min-width: 0; }
@media (max-width: 760px) {
    .nd-footer-extensions { grid-template-columns: 1fr; }
}

/* NovaDream v1.01.48 Visual Header Builder */
.nd-header-row--main{min-height:76px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:1rem}.nd-header-region{display:flex;align-items:center;gap:.8rem;min-width:0}.nd-header-region--left{justify-content:flex-start}.nd-header-region--center{justify-content:center}.nd-header-region--right{justify-content:flex-end}.nd-header-row--top{border-bottom:1px solid var(--nd-color-border);font-size:.88rem}.nd-header-region--top{min-height:34px;justify-content:center}.nd-header-announcement a{color:inherit}.nd-header-social{display:flex;gap:.6rem;align-items:center}.nd-header-social a{font-size:.85rem;text-decoration:none}.nd-header-cart{display:inline-flex;gap:.35rem;align-items:center}.nd-cart-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:999px;background:var(--nd-color-primary);color:#fff;font-size:.72rem}.nd-utility-menu{display:flex;gap:.75rem;list-style:none;margin:0;padding:0}.nd-header-row--mobile{display:none}
@media(max-width:782px){.nd-header-row--desktop{display:none}.nd-header-row--mobile{display:grid}.nd-header-row--top.nd-header-row--mobile{display:block}.nd-header-row--main.nd-header-row--mobile{min-height:68px;grid-template-columns:1fr auto 1fr}.nd-header-row--mobile .nd-header-region--right{justify-content:flex-end}.nd-header-row--mobile .nd-header-region--center{justify-content:center}.nd-site-header .nd-primary-nav{top:68px}.nd-header-social,.nd-utility-nav{display:none}}

/* NovaDream v1.01.49 Visual Footer Builder */
.nd-site-footer--visual .nd-site-footer__inner{padding-block:clamp(2.5rem,5vw,4.5rem) 1.5rem}.nd-footer-composition{display:block}.nd-footer-composition--mobile{display:none}.nd-footer-row{display:grid;gap:clamp(1rem,2vw,2rem)}.nd-footer-row--top{margin-bottom:clamp(1.5rem,3vw,2.5rem)}.nd-footer-row--main{grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr) minmax(0,.8fr);align-items:start}.nd-footer-row--bottom{margin-top:clamp(1.5rem,3vw,2.5rem);padding-top:1.25rem;border-top:1px solid var(--nd-color-border)}.nd-footer-region{display:flex;flex-direction:column;gap:1rem;min-width:0}.nd-footer-region--center{align-items:stretch}.nd-footer-region--right{align-items:flex-start}.nd-footer-region--bottom{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem 1.5rem}.nd-footer-region--bottom .nd-footer-legal-navigation{margin-top:0;padding-top:0;border-top:0}.nd-footer-region--bottom .nd-copyright,.nd-footer-region--bottom .nd-footer-bottom__text{margin:0}.nd-footer-widgets--visual{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1.5rem;width:100%}@media(max-width:782px){.nd-footer-composition--desktop{display:none}.nd-footer-composition--mobile{display:block}.nd-footer-row--main{grid-template-columns:1fr}.nd-footer-region--bottom{flex-direction:column;align-items:flex-start}.nd-footer-menu,.nd-footer-legal-menu{flex-direction:column;align-items:flex-start}.nd-footer-widgets--visual{grid-template-columns:1fr 1fr}}@media(max-width:520px){.nd-footer-widgets--visual{grid-template-columns:1fr}}

/* v1.01.51 Global Style System (retained in v1.01.53) */
.nd-theme-surface .wp-block-button__link,.nd-theme-surface input[type=submit],.nd-theme-surface button.nd-button{padding:var(--nd-button-pad-y) var(--nd-button-pad-x);background:var(--nd-button-bg);color:var(--nd-button-text);border:1px solid var(--nd-button-border);border-radius:var(--nd-button-radius);font-weight:var(--nd-button-weight)}
.nd-theme-surface .wp-block-button__link:hover,.nd-theme-surface input[type=submit]:hover{background:var(--nd-button-hover-bg);color:var(--nd-button-text)}
.nd-theme-surface input:not([type=checkbox]):not([type=radio]):not([type=submit]),.nd-theme-surface select,.nd-theme-surface textarea{padding:var(--nd-form-pad-y) var(--nd-form-pad-x);border:1px solid var(--nd-form-border);border-radius:var(--nd-form-radius);background:var(--nd-form-bg);color:var(--nd-form-text)}
.nd-theme-surface .wp-block-group.is-style-surface-card,.nd-theme-surface .wp-block-group.is-style-elevated-card,.nd-theme-surface .wp-block-group.is-style-editorial-card,.nd-theme-surface .wp-block-group.is-style-cinematic-card,.nd-theme-surface .wp-block-group.is-style-commerce-card,.nd-theme-surface .wp-block-group.is-style-dashboard-card{padding:var(--nd-card-padding);border-radius:var(--nd-card-radius);border-color:var(--nd-card-border)}
@media(max-width:1280px){.nd-container{width:min(calc(100% - (var(--nd-container-pad-laptop)*2)),var(--nd-wide-width))}.nd-section{padding-block:var(--nd-section-space-laptop)}}
@media(max-width:1024px){.nd-container{width:min(calc(100% - (var(--nd-container-pad-tablet)*2)),var(--nd-wide-width))}.nd-section{padding-block:var(--nd-section-space-tablet)}}
@media(max-width:640px){.nd-container{width:min(calc(100% - (var(--nd-container-pad-mobile)*2)),var(--nd-wide-width))}.nd-section{padding-block:var(--nd-section-space-mobile)}}

/* v1.01.58 — Shared Navigation & Application Shell API */
.nd-app-nav{width:100%}.nd-app-nav ul{display:flex;align-items:center;justify-content:center;gap:var(--nd-space-sm,.75rem);margin:0;padding:0;list-style:none}.nd-app-nav a,.nd-app-nav button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.65rem .9rem;border:0;border-radius:var(--nd-radius-md,.75rem);background:transparent;color:inherit;font:inherit;text-decoration:none;cursor:pointer}.nd-app-nav a:focus-visible,.nd-app-nav button:focus-visible{outline:2px solid currentColor;outline-offset:2px}.nd-app-nav--mobile_bottom{position:fixed;z-index:50;right:0;bottom:0;left:0;padding:max(.5rem,env(safe-area-inset-bottom));background:var(--nd-color-surface,#fff);border-top:1px solid rgba(0,0,0,.12)}@media(min-width:783px){.nd-app-nav--mobile_bottom{display:none}}

/* v1.01.66 Native Forms */
.nd-native-form{display:grid;gap:1rem;max-width:760px;margin-inline:auto}.nd-native-form__field{display:grid;gap:.45rem}.nd-native-form__field label{font-weight:650}.nd-native-form input,.nd-native-form textarea,.nd-native-form select{width:100%;box-sizing:border-box;padding:.8rem .9rem;border:1px solid currentColor;border-radius:var(--wp--custom--radius--sm,8px);background:transparent;color:inherit}.nd-native-form__trap{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.nd-native-form__submit{justify-self:start}

/* v1.03.13 — public form/booking validation feedback */
.nd-form-notice{max-width:760px;margin:0 auto 1rem;padding:.9rem 1rem;border:1px solid currentColor;border-radius:var(--wp--custom--radius--sm,8px)}
.nd-form-notice--success{font-weight:650}
.nd-form-notice--error{font-weight:650}
.nd-native-form__field.has-error input,
.nd-native-form__field.has-error textarea,
.nd-native-form__field.has-error select{outline:2px solid currentColor;outline-offset:1px}
.nd-native-form__error{font-size:.92rem;font-weight:650}
.nd-native-form [aria-invalid="true"]{scroll-margin-top:6rem}

/* v1.03.63: prevent theme-owned embeds and content from overflowing narrow screens. */
.nd-theme-surface :where(img, video, iframe, canvas, svg) { max-width:100%; }
.nd-theme-surface :where(img, video) { height:auto; }
.nd-theme-surface :where(pre, .wp-block-table, .nd-studio-comparison) { max-width:100%; overflow-x:auto; }
.nd-theme-surface :where(.nd-studio-grid, .nd-dynamic-grid, .nd-loop-grid) > * { min-width:0; }
.nd-theme-surface :where(h1,h2,h3,h4,h5,h6,p) { overflow-wrap:break-word; }
@media (max-width:640px) {
  .nd-theme-surface :where(.nd-sitekit-hero__copy, .nd-public-card__body) { min-width:0; }
  .nd-theme-surface :where(input, select, textarea, button) { max-width:100%; }
}
