﻿/* DNN edit mode uses the same home header within the page area beside Persona Bar. */
.fansa-home.is-home.fansa-editing:not(.fansa-control-view) > .fc-header {
  position: absolute;
  z-index: 90;
  inset: clamp(8px, 1.4vw, 24px) 0 auto;
  width: min(1400px, 93.4%);
  max-width: none;
  margin: 0 auto;
  background: rgba(30, 30, 29, .73);
}
.fansa-home.is-home.fansa-editing:not(.fansa-control-view) > .fc-header.fc-scrolled {
  position: fixed;
  inset: 0 auto auto var(--fr-edit-left, 0px);
  width: var(--fr-edit-width, 100%);
  border-radius: 0;
  background: #242626;
}
.fansa-home.is-home.fansa-editing:not(.fansa-control-view) .fc-bar {
  flex-wrap: nowrap;
}
.fansa-home.is-home.fansa-editing:not(.fansa-control-view) .fc-scrolled .fc-bar {
  max-width: 1400px;
  margin-inline: auto;
}

@media (min-width: 1101px) {
  .fansa-home .fc-nav .fc-menu-list .fc-submenu {
    padding: 0 3px;
    background-color: #252628;
    grid-auto-columns: minmax(0, 1fr);
    row-gap: 0;
  }
  .fansa-home .fc-nav .fc-submenu .fc-node > .fc-submenu {
    /* The two-pixel upper rule sits above the parent's first row. */
    top: -2px;
    right: 100%;
    left: auto;
    margin: 0;
    transform: none;
  }
  .fansa-home .fc-nav .fc-submenu .fc-node > .fc-link {
    padding-inline: 13px;
    transition: color .18s ease, padding .18s ease;
  }
  .fansa-home .fc-nav .fc-submenu .fc-node {
    transition: background-color .18s ease;
  }
  .fansa-home .fc-nav .fc-submenu .fc-node:is(:hover, :focus-within, .fc-open) {
    background-color: #ffffff0e;
  }
  .fansa-home .fc-nav .fc-submenu .fc-node:is(:hover, :focus-within, .fc-open) > .fc-link {
    padding-inline: 17px 9px;
    color: #ffda64;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fansa-home .fc-nav .fc-submenu .fc-node,
  .fansa-home .fc-nav .fc-submenu .fc-node > .fc-link {
    transition: none;
  }
}

/* SuperLinks supplies the icon classes or image for each network. */
.fansa-home .fr-network-art {
  display: inline-grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  color: inherit;
}
.fansa-home .fr-network-art :is(img, svg) {
  display: block;
  width: 1em;
  height: 1em;
  object-fit: contain;
}
@media (max-width: 700px) {
  .fansa-home .fc-tools .fr-network-art { font-size: 18px; }
}

.fansa-home .fc-footer .fc-footer-useful .DNNModuleContent ul li > a {
  font-size: 13px;
  color: #ffffffc2;
}
.fansa-home .fc-footer .fc-footer-useful .DNNModuleContent ul li > a:is(:hover, :focus-visible) {
  color: #ffc40c;
}
.fansa-home .fc-footer .fr-letter-form button {
  background-color: #ffc40c;
}
.fansa-home .fc-footer .fr-letter-form button:is(:hover, :focus-visible) {
  background-color: #ffda64;
}

/* Keep the active slide's teaser and navigation on a shared baseline. */
.fansa-home.is-home .r7-slider {
  --fr-slider-bottom: 53px;
  --fr-slider-side: var(--fansa-cover-inset);
}

@media (max-width: 900px) {
  .fansa-home.is-home .r7-slider {
    --fr-slider-bottom: 43px;
  }
}

@media (max-width: 640px) {
  .fansa-home.is-home .r7-slider {
    --fr-slider-bottom: 70px;
    --fr-slider-side: 21px;
  }
}

.fansa-home.is-home .r7-slider .fansa-teaser-wrap {
  right: var(--fr-slider-side);
  bottom: var(--fr-slider-bottom);
}

.fansa-home.is-home .r7-slider .fansa-teaser-card {
  transform-origin: right bottom;
}

.fansa-home.is-home .r7-slider .r7-slider-controls {
  inset: auto auto var(--fr-slider-bottom) var(--fr-slider-side);
  width: max-content;
}

.fansa-home.is-home .r7-slider .r7-slider-controls button {
  color: #ffda64;
  background: #252628;
  border-color: #ffc40c;
}

.fansa-home.is-home .r7-slider .r7-slider-controls button:is(:hover, :focus-visible, :active) {
  color: #252628;
  background: #ffc40c;
}

/* The poster and its caption stay centered; the dismiss button belongs to the viewport. */
.fansa-home .fr-about .fr-caption-text small[lang="en"] {
  letter-spacing: 2px;
}

.fansa-home .fansa-poster-dialog[open] {
  position: fixed;
  max-width: min(1200px, calc(100% - 40px));
  max-height: 94svh;
  overflow-x: hidden;
  overflow-y: auto;
}

.fansa-home .fansa-poster-dialog img {
  max-height: 80vh;
  max-height: 80svh;
  max-width: min(90vw, 100%);
}

.fansa-home .fansa-poster-dialog .fr-poster-title {
  margin-top: 15px;
  overflow-wrap: anywhere;
}

.fansa-home .fansa-poster-dialog .fansa-poster-close {
  position: fixed;
  --fr-close-offset: 22px;
  inset: max(var(--fr-close-offset), env(safe-area-inset-top)) auto auto max(var(--fr-close-offset), env(safe-area-inset-left));
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff55;
  border-radius: 4px;
}

.fansa-home .fansa-poster-dialog::backdrop {
  background: #0c141fd9;
  backdrop-filter: blur(8px);
}

@media (max-width: 640px) {
  .fansa-home .fansa-poster-dialog[open] {
    max-width: calc(100% - 24px);
  }

  .fansa-home .fansa-poster-dialog .fansa-poster-close {
    --fr-close-offset: 13px;
  }
}

/* The upper edge needs the same stroke and clearance as the other three edges. */
.fansa-home .fansa-services-native .fansa-services__card:is(:hover, :focus-within) {
  border: 1px solid var(--gold, #ffc40c);
}

.fansa-home .fansa-news-native .fr-news-heading {
  --fr-title-size: clamp(25px, 3.1vw, 40px);
}

/* Present the two weights without rewriting the native editable DNN label. */
.fansa-home .fr-news-heading h2 [data-fr-title-lead]:not([contenteditable]:focus-within) {
  font-size: 0;
}
.fansa-home .fr-news-heading h2 [data-fr-title-lead]:not([contenteditable]:focus-within)::before,
.fansa-home .fr-news-heading h2 [data-fr-title-lead]:not([contenteditable]:focus-within)::after {
  font-family: inherit;
  font-size: var(--fr-title-size);
  line-height: 1.45;
  white-space: pre-wrap;
}
.fansa-home .fr-news-heading h2 [data-fr-title-lead]:not([contenteditable]:focus-within)::before {
  content: attr(data-fr-title-lead) / "";
  font-weight: 800;
}
.fansa-home .fr-news-heading h2 [data-fr-title-tail]:not([contenteditable]:focus-within)::after {
  content: attr(data-fr-title-tail) / "";
  font-weight: 400;
}

/* The approved news track uses three 386.7px columns in its 1200px wrap. */
.fansa-home .fansa-news-native .fr-rail {
  --fr-count: 3;
  --fr-gap: 20px;
  padding-inline: 0;
}
.fansa-home .fansa-news-native .fr-rail > .fr-prev {
  right: calc(-1 * (var(--fr-control-size) + var(--fr-control-gap)));
}
.fansa-home .fansa-news-native .fr-rail > .fr-next {
  left: calc(-1 * (var(--fr-control-size) + var(--fr-control-gap)));
}

.fansa-home .fansa-news-native .fansa-hm-latest__item {
  display: flex;
  box-sizing: border-box;
  border: 1px solid #e7e6e0;
  border-radius: 11px;
}
.fansa-home .fansa-news-native .fansa-hm-latest__image {
  box-sizing: border-box;
  aspect-ratio: 1.7;
  border: 1px solid #e7e6e0;
  flex: none;
}
.fansa-home .fansa-news-native .fr-article-copy {
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 1.5vw, 20px);
}
.fansa-home .fansa-news-native .fr-article-copy h3 {
  margin: 4px 0 8px;
}
.fansa-home .fansa-news-native .fr-article-copy h3 a {
  line-height: 1.68;
}
.fansa-home .fansa-news-native .fansa-hm-latest__summary {
  margin: 0 0 12px;
}
.fansa-home .fansa-news-native .fr-article-more {
  margin: auto 0 0;
  padding: 10px 0 0;
}

@media (max-width: 1050px) {
  .fansa-home .fansa-news-native .fr-rail {
    --fr-count: 2;
    --fr-gap: 16px;
    --fr-control-size: 36px;
    padding-inline: 46px;
  }
  .fansa-home .fansa-news-native .fr-rail > .fr-prev { right: 0; }
  .fansa-home .fansa-news-native .fr-rail > .fr-next { left: 0; }
}

@media (max-width: 650px) {
  .fansa-home .fansa-news-native .fr-rail {
    --fr-count: 1;
    --fr-gap: 20px;
    --fr-control-size: 30px;
    padding-inline: 36px;
  }
  .fansa-home .fansa-news-native .fr-article-copy { padding: 14px 16px; }
}

/* InnerFeature uses the same RTL content edge for its resting header and native panes. */
.fansa-home.fansa-feature {
  --fe-side-space: 28px;
  --fe-content-width: min(1320px, calc(100% - 2 * var(--fe-side-space)));
  --fe-banner-top: 175px;
  --fe-banner-bottom: 65px;
  --fe-section-gap: 100px;
}

.fansa-home.fansa-feature .fe-width,
.fansa-home.fansa-feature .fc-header:not(.fc-scrolled) {
  box-sizing: border-box;
  width: var(--fe-content-width);
  max-width: var(--fe-content-width);
  margin-inline: auto;
}

.fansa-home.fansa-feature:not(.fansa-editing) .fc-header:not(.fc-scrolled) {
  inset-inline: 0;
  top: 26px;
}

.fansa-home.fansa-feature .fe-hero {
  height: auto;
  min-height: 488px;
  padding-block: var(--fe-banner-top) var(--fe-banner-bottom);
}

.fansa-home.fansa-feature .fe-heading .fe-trail {
  margin-block: 0 29px;
  line-height: 1.9;
}

.fansa-home.fansa-feature .fe-heading .fr-feature-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 7px;
  color: #ffda64;
  font: 700 .83rem/1.8 var(--font);
}

.fansa-home.fansa-feature .fe-heading .fr-feature-kicker:empty {
  display: none;
}

.fansa-home.fansa-feature .fr-feature-kicker::before {
  content: "";
  flex: 0 0 27px;
  width: 27px;
  height: 2px;
  background: #ffc40c;
}

.fansa-home.fansa-feature .fe-heading h1 {
  margin: 0;
  line-height: 1.7;
}

.fansa-home.fansa-feature .fe-heading p {
  margin: 9px 0 0;
  line-height: 2.1;
}

.fansa-home.fansa-feature .fe-lead:not(.DNNEmptyPane):has(.DnnModule) {
  margin-block-start: var(--fe-section-gap);
}

.fansa-home.fansa-feature .fe-lead:not(:has(.DnnModule)) + .fe-story {
  padding-block-start: var(--fe-section-gap);
}

@media (max-width: 1050px) {
  .fansa-home.fansa-feature {
    --fe-side-space: 22px;
  }
}

@media (max-width: 900px) {
  .fansa-home.fansa-feature {
    --fe-side-space: 16px;
    --fe-banner-top: 155px;
    --fe-section-gap: 75px;
  }

  .fansa-home.fansa-feature:not(.fansa-editing) .fc-header:not(.fc-scrolled) {
    top: 16px;
  }
}

@media (max-width: 640px) {
  .fansa-home.fansa-feature {
    --fe-side-space: 12px;
    --fe-banner-top: 126px;
    --fe-banner-bottom: 43px;
    --fe-section-gap: 60px;
  }

  .fansa-home.fansa-feature:not(.fansa-editing) .fc-header:not(.fc-scrolled) {
    top: 12px;
  }

  .fansa-home.fansa-feature .fe-heading .fe-trail {
    margin-bottom: 24px;
  }

  .fansa-home.fansa-feature .fe-heading .fr-feature-kicker {
    font-size: .8rem;
    margin-bottom: 9px;
  }

  .fansa-home.fansa-feature .fe-heading p {
    margin-top: 13px;
    line-height: 2;
  }
}
