/**
 * Global site shell — shared header bar, desktop nav, footer editorial (Batch 2.5).
 * Loads late in layout.tsx so closed-header #111 beats legacy transparent rules.
 */

@import url("https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:ital,wght@0,400..900;1,400..900&display=swap");

:root {
  --n92-shell-ink: #111111;
  --n92-shell-cream: #efece8;
  --n92-shell-navy: #0b1638;
  --n92-shell-gold: #f2c500;
  /* Canonical design system: Schibsted on every page, predictable viewport gutters. */
  --n92-site-font: "Schibsted Grotesk", "schibsted-grotesk", system-ui, sans-serif;
  --n92-shell-font: var(--n92-site-font);
  --n92-container: 100%;
  --n92-readable: 62rem;
  --n92-display-1: clamp(3rem, 8vw, 7.5rem);
  --n92-display-2: clamp(2rem, 4.5vw, 4rem);
  --n92-eyebrow: 0.875rem;
  --n92-section-y: clamp(3rem, 7vw, 6rem);
  --n92-section-y-loose: clamp(4rem, 9vw, 8rem);
  --n92-hairline: rgba(239, 236, 232, 0.16);

  --n92-on-dark: #efece8;
  --n92-on-light: #0b1638;
  --n92-surface-dark: #111111;
  --n92-surface-navy: #0b1638;
  --n92-accent-pink: #ff3377;
  --n92-cta-gold: #f2c500;
  --n92-page-gutter: clamp(18px, 4vw, 56px);
}

/* Shared type foundation; preserve icon-specific font families. */
body.ninety-two-site,
body.ninety-two-site #content {
  font-family: var(--n92-site-font);
}
#pagewrap #content :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--n92-site-font) !important;
}

/* ── Header bar (menu closed) ── */
body.ninety-two-site.header-overlay.transparent-header:not(.mobile-menu-visible) #headerwrap,
body.ninety-two-site.transparent-header:not(.mobile-menu-visible) #headerwrap,
body.ninety-two-site:not(.mobile-menu-visible) #headerwrap.fixed-header {
  background: var(--n92-shell-ink) !important;
  background-color: var(--n92-shell-ink) !important;
  border-bottom: 1px solid rgba(239, 236, 232, 0.08) !important;
  box-shadow: none !important;
  min-height: clamp(58px, 7vw, 70px) !important;
}

body.ninety-two-site:not(.mobile-menu-visible) #headerwrap #header,
body.ninety-two-site:not(.mobile-menu-visible) #headerwrap .header-bar,
body.ninety-two-site:not(.mobile-menu-visible) #headerwrap .header-icons {
  background: transparent !important;
  background-color: transparent !important;
}

body.ninety-two-site:not(.mobile-menu-visible) #headerwrap #header,
body.ninety-two-site:not(.mobile-menu-visible) #headerwrap #header.pagewidth {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  width: 100% !important;
  max-width: none !important;
  min-height: clamp(58px, 7vw, 70px) !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

body.ninety-two-site:not(.mobile-menu-visible) #headerwrap .header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  min-height: clamp(58px, 7vw, 70px);
  padding-left: max(var(--n92-page-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--n92-page-gutter), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

body.ninety-two-site:not(.mobile-menu-visible) #headerwrap .header-icons {
  position: absolute;
  top: 50%;
  right: max(var(--n92-page-gutter, 1.25rem), env(safe-area-inset-right, 0px));
  transform: translateY(-50%);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
}

body.ninety-two-site:not(.mobile-menu-visible) #site-logo {
  margin: 0 !important;
  line-height: 0 !important;
}

body.ninety-two-site:not(.mobile-menu-visible) #site-logo a {
  display: inline-flex !important;
  align-items: center;
}

body.ninety-two-site:not(.mobile-menu-visible) #site-logo img.site-logo-image {
  display: block;
  width: clamp(118px, 16vw, 130px) !important;
  max-width: clamp(118px, 16vw, 130px) !important;
  height: auto !important;
}

body.ninety-two-site:not(.mobile-menu-visible) #menu-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

body.ninety-two-site:not(.mobile-menu-visible) #menu-icon .menu-icon-inner {
  filter: none;
}

/* Desktop primary nav */
.n92-desktop-nav {
  display: none;
  font-family: var(--n92-shell-font);
}

.n92-desktop-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

.n92-desktop-nav__list a {
  color: var(--n92-shell-cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.n92-desktop-nav__list a:hover {
  color: #fff;
}

.n92-desktop-nav__list a:focus-visible {
  outline: 2px solid var(--n92-shell-gold);
  outline-offset: 3px;
}

.n92-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55em 1.15em;
  border-radius: 999px;
  background: var(--n92-cta-gold) !important;
  color: #000000 !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.02em;
  text-transform: none;
  border: none;
  box-shadow: none;
}

.n92-header-cta:hover {
  color: #000000 !important;
  filter: brightness(1.05);
}

.n92-header-cta:focus-visible {
  outline: 2px solid var(--n92-shell-cream);
  outline-offset: 3px;
}

@media (min-width: 760px) {
  .n92-desktop-nav {
    display: block;
  }

  body.ninety-two-site:not(.mobile-menu-visible) #headerwrap .header-icons {
    display: none !important;
  }
}

@media (max-width: 759px) {
  .n92-desktop-nav {
    display: none !important;
  }
}

#menu-icon:focus-visible {
  outline: 2px solid var(--n92-shell-gold) !important;
  outline-offset: 4px !important;
}

/* ── Footer shell (editorial) ── */
#tbp_footer,
#tbp_footer .themify_builder_content-811 .tb_in6m751 {
  background-color: var(--n92-surface-dark) !important;
  color: var(--n92-on-dark);
  font-family: var(--n92-shell-font);
  margin: 0;
  padding: 0;
  border: none;
}

#tbp_footer .themify_builder_content-811 .tb_in6m751 {
  padding-top: clamp(4.5rem, 9vh, 7rem) !important;
  padding-bottom: clamp(3.5rem, 7vh, 5.5rem) !important;
}

#tbp_footer .themify_builder_content-811 .tb_in6m751 > .row_inner {
  width: min(var(--n92-container, 1280px), calc(100% - (var(--n92-page-gutter, 1.25rem) * 2))) !important;
  max-width: var(--n92-container, 1280px) !important;
  margin-inline: auto;
}

#tbp_footer .n92-footer-module {
  margin: 0 !important;
  padding: 0 !important;
}

#tbp_footer .n92-site-footer {
  display: grid;
  gap: clamp(2.25rem, 4.5vw, 4rem);
}

/* Guard against stale exported footer rows rendering duplicate copy blocks. */
#tbp_footer .themify_builder_content-811 > .module_row:not(.n92-footer-shell-row) {
  display: none !important;
}

/* Invite block (interior pages) */
#tbp_footer .n92-footer-invite {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.9rem, 2vw, 1.2rem);
  max-width: 48rem;
}

#tbp_footer .n92-footer-invite + .n92-footer-invite {
  display: none !important;
}

#tbp_footer .n92-footer-invite__headline {
  margin: 0;
  font-family: var(--n92-shell-font);
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: var(--n92-on-dark) !important;
  text-transform: lowercase;
}

#tbp_footer .n92-footer-invite__support {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.45;
  color: rgba(239, 236, 232, 0.78) !important;
  max-width: 38ch;
}

#tbp_footer .n92-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.7em 1.35em;
  border-radius: 999px;
  background: var(--n92-cta-gold) !important;
  color: #000000 !important;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: lowercase;
  transition: filter 0.2s ease, transform 0.2s ease;
}

#tbp_footer .n92-footer-cta:hover {
  color: #000000 !important;
  filter: brightness(1.06);
  text-decoration: none;
}

#tbp_footer .n92-footer-cta:focus-visible {
  outline: 2px solid var(--n92-on-dark);
  outline-offset: 3px;
}

/* Homepage: quiet footer — hide invite + gold CTA only */
#pagewrap:has(.scale) #tbp_footer .n92-footer-invite {
  display: none !important;
}

#pagewrap:has(.scale) #tbp_footer .themify_builder_content-811 .tb_in6m751 {
  padding-top: clamp(3rem, 6vh, 4.25rem) !important;
}

#tbp_footer .n92-footer-divider {
  width: 100%;
  height: 0;
  margin: 0;
  border: none;
  border-top: 1px solid rgba(239, 236, 232, 0.14);
}

#tbp_footer .n92-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

#tbp_footer .n92-footer-wordmark {
  display: inline-block;
  line-height: 0;
}

#tbp_footer .n92-footer-wordmark img {
  width: auto;
  max-width: min(220px, 52vw);
  height: auto;
}

#tbp_footer .n92-footer-studio-line {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.45;
  color: rgba(239, 236, 232, 0.72) !important;
  max-width: 28ch;
  text-transform: lowercase;
}

#tbp_footer .n92-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
}

#tbp_footer .n92-footer-col {
  min-width: 0;
}

@media (min-width: 960px) {
  #tbp_footer .n92-footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #tbp_footer .n92-footer-newsletter {
    grid-column: span 2;
  }
}

@media (min-width: 900px) {
  #tbp_footer .n92-footer-brand {
    display: grid;
    grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
    align-items: end;
    column-gap: clamp(2rem, 6vw, 6rem);
  }

  #tbp_footer .n92-footer-studio-line {
    max-width: 34ch;
  }
}

#tbp_footer .n92-footer-col__label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(239, 236, 232, 0.45) !important;
}

#tbp_footer .n92-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

#tbp_footer .n92-footer-links a {
  color: var(--n92-on-dark);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.35;
  text-transform: lowercase;
  transition: color 0.2s ease;
}

#tbp_footer .n92-site-footer a:hover {
  color: var(--n92-accent-pink);
  text-decoration: none;
}

#tbp_footer .n92-site-footer a:focus-visible {
  outline: 2px solid var(--n92-cta-gold);
  outline-offset: 2px;
}

#tbp_footer .n92-footer-cta:hover {
  color: #000000 !important;
}

/* Newsletter — subdued */
#tbp_footer .n92-footer-newsletter {
  opacity: 0.92;
}

#tbp_footer .n92-footer-newsletter__lede {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: rgba(239, 236, 232, 0.55) !important;
  text-transform: lowercase;
}

#tbp_footer .mc4wp-form {
  margin: 0;
}

#tbp_footer .mc4wp-form-fields p {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  min-width: 0;
}

#tbp_footer .mc4wp-form-fields label {
  min-width: 0;
}

#tbp_footer .mc4wp-form input[type="email"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.55em 0.75em;
  border-radius: 4px;
  border: 1px solid rgba(239, 236, 232, 0.2);
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--n92-on-dark) !important;
  caret-color: var(--n92-on-dark);
  font-family: var(--n92-shell-font);
  font-size: 0.9rem;
}

#tbp_footer .mc4wp-form input[type="email"]::placeholder {
  color: rgba(239, 236, 232, 0.4) !important;
  opacity: 1;
}

#tbp_footer .mc4wp-form input[type="submit"] {
  align-self: flex-start;
  padding: 0.5em 1em;
  border-radius: 4px;
  border: 1px solid rgba(239, 236, 232, 0.22) !important;
  background: transparent !important;
  color: var(--n92-on-dark) !important;
  font-family: var(--n92-shell-font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

#tbp_footer .mc4wp-form input[type="submit"]:hover {
  border-color: var(--n92-accent-pink) !important;
  color: var(--n92-accent-pink) !important;
}

#tbp_footer .n92-footer-bottom {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(239, 236, 232, 0.08);
}

#tbp_footer .n92-footer-copyright {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(239, 236, 232, 0.42) !important;
  text-transform: lowercase;
  overflow-wrap: anywhere;
}

/* Hide any legacy Themify footer modules if present in cached HTML */
#tbp_footer .n92-footer-editorial,
#tbp_footer .n92-footer-contact,
#tbp_footer .tb_etgs627.module-buttons,
#tbp_footer .themify_builder_content-811 .tb_fdpr397,
#tbp_footer .themify_builder_content-811 .tb_c6ne753:not(:has(.n92-site-footer)),
#tbp_footer .themify_builder_content-811 .tb_25s0148:not(:has(.n92-site-footer)) {
  display: none !important;
}

@media (max-width: 680px) {
  #tbp_footer .themify_builder_content-811 .tb_in6m751 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  #tbp_footer .themify_builder_content-811 .tb_in6m751 > .row_inner {
    width: calc(100% - 2.5rem) !important;
  }
}
