/* ==========================================================================
   Luminous Insights — LI theme for CMS /pages/ HERO only
   LOCAL ONLY (not deployed).

   Refined navy→teal mist band: calm, forward-looking, uncluttered.
   Literata / Nunito Sans / Source Sans 3; --wrap / --gutter alignment.

   Needs: li-tokens.css loaded first.
   Scope: hero / banner / breadcrumb only — do NOT restyle CMS body yet.
   ========================================================================== */

/* ---- Page shell (preview + eventual body.li-pages) ---- */
body.li-pages {
  margin: 0;
  font-family: var(--li-font-ui);
  color: var(--li-ink-800);
  background: var(--li-page-50);
  -webkit-font-smoothing: antialiased;
}

body.li-pages a:not(.foot a, footer.foot a, .drawer a) {
  font-family: var(--li-font-ui);
  color: var(--li-teal-700);
  text-decoration: none;
}
body.li-pages a:not(.foot a, footer.foot a, .drawer a):hover {
  color: var(--li-navy-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Shield: page theme must not override dark-footer link contrast */
body.li-pages footer.foot a,
body.li-pages .foot a,
body.li-pages .foot__col a {
  font-family: var(--li-font-ui);
  color: #F6F8FA;
  text-decoration: none;
}
body.li-pages footer.foot a:hover,
body.li-pages .foot a:hover,
body.li-pages .foot__col a:hover {
  color: var(--li-teal-200);
  text-decoration: none;
}


/* Shared inner column — matches header / journal masthead edges */
.li-pages-hero__inner,
body.li-pages .other-banner > .container-fluid > .row > [class*="col-"],
body.li-pages .custom-bradcrumb > .container-fluid > .row > [class*="col-"] {
  width: 100%;
  max-width: var(--wrap, 1440px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter, 1.3rem);
  padding-right: var(--gutter, 1.3rem);
  box-sizing: border-box;
}

/* ==========================================================================
   HERO — full-bleed navy mist band (marketing / about, not journal cover)
   Standalone BEM: .li-pages-hero
   Live drop-in:   .other-banner.banner-img (+ .other-title, .custom-bradcrumb)
   ========================================================================== */

.li-pages-hero,
body.li-pages section.other-banner {
  --li-pages-hero-pad-y: clamp(2.75rem, 5vw, 4rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: 0;
  min-height: 0;
  color: #fff;
  background:
    linear-gradient(
      168deg,
      var(--li-navy-900) 0%,
      var(--li-navy-800) 46%,
      var(--li-navy-700) 78%,
      #1a5f6e 100%
    );
  border-bottom: 1px solid rgba(55, 143, 155, 0.55);
  box-shadow: none;
}

/* Soft mist wash — calm depth, no neon */
.li-pages-hero::before,
body.li-pages section.other-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 78% at 6% 16%, rgba(55, 143, 155, 0.36) 0%, transparent 58%),
    radial-gradient(ellipse 50% 64% at 94% 90%, rgba(10, 42, 54, 0.5) 0%, transparent 62%),
    radial-gradient(ellipse 42% 38% at 58% -4%, rgba(255, 255, 255, 0.07) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, transparent 40%);
}

/* Quiet geometric mesh — futuristic, barely there */
.li-pages-hero::after,
body.li-pages section.other-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 45.5%,
      rgba(185, 212, 219, 0.14) 46.2%,
      transparent 47.2%,
      transparent 100%
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 52px,
      rgba(255, 255, 255, 0.04) 52px,
      rgba(255, 255, 255, 0.04) 53px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 52px,
      rgba(255, 255, 255, 0.032) 52px,
      rgba(255, 255, 255, 0.032) 53px
    );
  mask-image: linear-gradient(105deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.18) 52%, transparent 78%);
  -webkit-mask-image: linear-gradient(105deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.18) 52%, transparent 78%);
}

/* Kill live photo banner when LI pages theme is on (hero = brand band) */
body.li-pages section.other-banner.banner-img {
  background-image: none !important;
  background:
    linear-gradient(
      168deg,
      var(--li-navy-900) 0%,
      var(--li-navy-800) 46%,
      var(--li-navy-700) 78%,
      #1a5f6e 100%
    ) !important;
}

.li-pages-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: var(--li-pages-hero-pad-y);
  padding-bottom: clamp(1.75rem, 3.2vw, 2.5rem);
  text-align: left;
}

/* Live layout: unwrap Bootstrap row/col so the band uses --wrap gutters */
body.li-pages section.other-banner > .container-fluid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}
body.li-pages section.other-banner > .container-fluid > .row {
  display: block;
  margin: 0;
}
body.li-pages section.other-banner > .container-fluid > .row > [class*="col-"] {
  float: none;
  width: 100%;
  max-width: var(--wrap, 1440px);
  padding-top: var(--li-pages-hero-pad-y, clamp(2.75rem, 5vw, 4rem));
  padding-bottom: 0.5rem;
}

body.li-pages .other-title {
  padding-top: 0 !important;
  margin: 0;
}

/* Eyebrow / kicker — Nunito Sans (nav role), quieter tracking */
.li-pages-hero__kicker,
body.li-pages .other-title .li-pages-hero__kicker {
  margin: 0 0 0.85rem;
  font-family: var(--li-font-nav);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--li-teal-300);
}

/* Title — Nunito display for marketing pages (not Literata journal title) */
.li-pages-hero__title,
body.li-pages .other-title h1,
body.li-pages .other-title h1.text-white {
  margin: 0;
  max-width: 18ch;
  font-family: var(--li-font-head);
  font-size: clamp(2.15rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: #fff !important;
}

/* Optional one-line subtitle under the title */
.li-pages-hero__subtitle {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-family: var(--li-font-ui);
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(213, 227, 230, 0.88);
}

/* Accent hairline — soft mist fade, restrained */
.li-pages-hero__accent {
  display: block;
  width: 4.5rem;
  height: 2px;
  margin-top: 1.35rem;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    var(--li-teal-500) 0%,
    var(--li-teal-300) 55%,
    transparent 100%
  );
}

/* ==========================================================================
   Breadcrumb — integrated into the hero composition (not a separate bar)
   ========================================================================== */

.li-pages-hero__crumb,
body.li-pages section.custom-bradcrumb {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
}

body.li-pages section.custom-bradcrumb > .container-fluid {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}
body.li-pages section.custom-bradcrumb > .container-fluid > .row {
  display: block;
  margin: 0;
}
body.li-pages section.custom-bradcrumb > .container-fluid > .row > [class*="col-"] {
  float: none;
  width: 100%;
  max-width: var(--wrap, 1440px);
  padding-top: 1.1rem;
  padding-bottom: clamp(1.5rem, 2.8vw, 2.1rem);
}

.li-pages-hero__crumb-list,
body.li-pages .custom-bradcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
  margin: 0;
  padding: 1.1rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(185, 212, 219, 0.24);
  font-family: var(--li-font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(185, 212, 219, 0.78);
}

.li-pages-hero__crumb-list a,
body.li-pages .custom-bradcrumb ol a {
  font-family: var(--li-font-ui);
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 3px;
}
.li-pages-hero__crumb-list a:hover,
body.li-pages .custom-bradcrumb ol a:hover {
  color: var(--li-teal-200) !important;
  text-decoration: underline;
  text-decoration-color: rgba(185, 212, 219, 0.65);
}

/* Kill legacy Font Awesome chevron separators from custom.css (live) */
body.li-pages .custom-bradcrumb ol li::after,
body.li-pages .custom-bradcrumb ol li:after {
  content: none !important;
  display: none !important;
}

.li-pages-hero__crumb-list li + li::before,
body.li-pages .custom-bradcrumb ol li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 400;
  pointer-events: none;
}

.li-pages-hero__crumb-list li[aria-current="page"],
body.li-pages .custom-bradcrumb ol li:last-child a {
  color: rgba(213, 227, 230, 0.72) !important;
  font-weight: 500;
  pointer-events: none;
  text-decoration: none;
}

/* Standalone preview: breadcrumb lives inside .li-pages-hero */
.li-pages-hero .li-pages-hero__crumb {
  width: 100%;
  max-width: var(--wrap, 1440px);
  margin: 0 auto;
  padding: 0 var(--gutter, 1.3rem) clamp(1.5rem, 2.8vw, 2.1rem);
  box-sizing: border-box;
}
.li-pages-hero .li-pages-hero__crumb-list {
  padding-top: 1.15rem;
}

/* ==========================================================================
   CMS body placeholder — intentionally unstyled beyond a quiet shell
   ========================================================================== */

.li-pages-cms {
  width: 100%;
  max-width: var(--wrap, 1440px);
  margin: 0 auto;
  padding: 2rem var(--gutter, 1.3rem) 4rem;
  box-sizing: border-box;
}

.li-pages-cms__note {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--li-teal-300);
  background: var(--li-teal-50);
  font-family: var(--li-font-ui);
  font-size: 0.9375rem;
  color: var(--li-ink-700);
}

.li-pages-cms__slot {
  min-height: 12rem;
  padding: 1.5rem;
  border: 1px dashed var(--li-teal-200);
  background: #fff;
  color: var(--li-ink-500);
  font-family: var(--li-font-ui);
  font-size: 1rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
  .li-pages-hero,
  body.li-pages section.other-banner {
    --li-pages-hero-pad-y: 2.15rem;
  }

  .li-pages-hero__title,
  body.li-pages .other-title h1 {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
    max-width: none;
  }

  .li-pages-hero__inner {
    padding-bottom: 1.35rem;
  }

  .li-pages-hero__subtitle {
    max-width: none;
  }

  .li-pages-hero::after,
  body.li-pages section.other-banner::after {
    opacity: 0.14;
  }
}
