/*
Theme Name: Nova Media
Description: The English Nova Media agency website, adapted from Sites release 28.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: nova-media
*/
.nova-wp-content { box-sizing: border-box; background: var(--nova-dark-background, #0f0f0f); color: #e2e2e0; padding: 48px 8%; font: 16px/1.7 Arial, sans-serif; }
.nova-wp-content a { color: var(--nova-soft-accent, #f5a7c7); }
.nova-wp-content img, .nova-wp-content video { max-width: 100%; height: auto; }
.nova-wp-content > :first-child { margin-top: 0; }

.sitebar .sitebrand .nova-custom-logo { inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* Keep editable WordPress content and the original layouts within the viewport. */
.nova-wp-content, .nova-wp-content .wp-block-column { min-inline-size: 0; overflow-wrap: anywhere; }
.nova-wp-content iframe { max-inline-size: 100%; }
.nova-wp-content .wp-block-table { max-inline-size: 100%; overflow-x: auto; }
.sitebar .links { min-inline-size: 0; }
.sitefoot { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .nova-wp-content { padding: 32px 6%; }
  html[lang=en] .sitebar .links a { display: flex; align-items: center; min-block-size: 44px; box-sizing: border-box; overflow-wrap: anywhere; }
  .sitefoot > div { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .sitefoot a { display: inline-flex; align-items: center; min-block-size: 44px; margin-inline-end: 0; }

  .nova-layout-home .hero-copy, .nova-layout-home .world,
  .nova-layout-brain .insight, .nova-layout-services .extras article {
    min-inline-size: 0;
    overflow-wrap: anywhere;
  }

  .nova-layout-home .actions { flex-wrap: wrap; }
  .nova-layout-home .hero-copy h1 { font-size: clamp(34px, 8.5vw, 56px); }
  .nova-layout-home .hero-bottom { flex-wrap: wrap; gap: 8px 12px; }
  .nova-layout-home .exp-copy { padding: 28px clamp(16px, 6vw, 45px); }
  .nova-layout-home :is(.motion, .pill), .nova-layout-contact #contactForm button { min-block-size: 44px; }
  .nova-layout-home :is(input, textarea), .nova-layout-contact :is(input, select, textarea),
  .nova-layout-clients .tools :is(input, select) { font-size: 16px; }
  .nova-layout-contact #contactForm :is(button, select) { max-inline-size: 100%; }

  .nova-layout-brain .tabs { flex-wrap: wrap; }
  .nova-layout-brain .tabs button { min-block-size: 44px; }
  .nova-layout-brain .experiment button { white-space: normal; }
  .nova-layout-services .service-panel .service { min-block-size: 44px; }

  .nova-layout-clients .tools { flex-wrap: wrap; }
  .nova-layout-clients .tools :is(input, select) { max-inline-size: 100%; min-block-size: 44px; box-sizing: border-box; }
  .nova-layout-clients .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nova-layout-clients .grid :is(.film, .folderbutton) { min-inline-size: 0; overflow-wrap: anywhere; }
  .nova-layout-clients .folder { max-inline-size: 100%; }
  .nova-layout-clients .under { flex-wrap: wrap; }
  .nova-layout-clients #player { box-sizing: border-box; max-inline-size: calc(100% - 24px); }
  .nova-layout-clients .dialoghead h2 { min-inline-size: 0; overflow-wrap: anywhere; }
}

@media (max-width: 400px) {
  .nova-layout-home .hero-copy h1, .nova-layout-home .heading h2,
  .nova-layout-home .cta h2, .nova-layout-contact .draftpage h1 {
    overflow-wrap: anywhere;
  }
  .nova-layout-home #enterPortal { max-inline-size: 100%; }
  .nova-layout-home .portal-label { min-inline-size: 0; }
  .nova-layout-clients .grid.videos { grid-template-columns: minmax(0, 1fr); }
  .nova-layout-clients .titlebar, .nova-layout-clients .statusbar { flex-wrap: wrap; }
  .nova-layout-how-we-work #nova-process .message { padding: 20px; }
}
