/* FortWayneMusic.com v0.8.5: forum-only desktop frame alignment.
   Public-site width remains controlled by the existing v0.8.3 rules below.
   Forum inner content uses 1136px to match the public site's 1180px
   outer frame with its 22px left/right padding. No carousel rules. */
:root { --fwm-canonical-width: 1136px; }
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter:stable) { html { overflow-y: scroll; } }
@media (min-width: 901px) {
  /* All public pages including the standalone feedback page and Shows. */
  html body .shell,
  html body.fwm-home-layout .shell,
  html body.fwm-events-layout .shell,
  html body .site-header .shell,
  html body .site-footer .shell,
  html body main.shell,
  /* Forum global chrome and actual phpBB body share identical frame. */
  html body:has(.fwm-global-header) #wrap,
  html body:has(.fwm-global-header) .fwm-global-shell,
  html body:has(.fwm-global-header) .fwm-global-devbar .fwm-global-shell,
  html body:has(.fwm-global-header) .fwm-global-header .fwm-global-shell {
    box-sizing: border-box !important;
    width: min(var(--fwm-canonical-width), calc(100% - 28px)) !important;
    max-width: var(--fwm-canonical-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* Dev strip matches the 1180px public-site frame, with its 22px gutters.
     Forum header and board content below use the 1136px inner frame. */
  html body:has(.fwm-global-header) .fwm-global-devbar .fwm-global-shell {
    width: min(1180px, calc(100% - 28px)) !important;
    max-width: 1180px !important;
    padding-inline: 22px !important;
  }
  /* Do not add forum-specific side padding beyond the frame. */
  html body:has(.fwm-global-header) .fwm-global-shell {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* The public development strip stays governed by its existing desktop layout. */
  html body .dev-strip {
    box-sizing: border-box !important;
    padding-inline: max(14px, calc((100% - var(--fwm-canonical-width))/2)) !important;
  }
  /* Keep the forum content naturally as wide as its 1136px inner frame. */
  html body:has(.fwm-global-header) #wrap { padding-left: 0 !important; padding-right: 0 !important; }
  /* Shared forum masthead dimensions match the homepage. */
  html body:has(.fwm-global-header) .fwm-global-top {
    min-height: 91px !important;
    padding-block: 10px !important;
  }
  html body:has(.fwm-global-header) .fwm-global-nav {
    min-height: 42px !important;
    padding-bottom: 8px !important;
  }
}
/* Small screens intentionally use the existing v0.7.9 drawer behavior.
   No rules for spotlight, scene-slide, heights, photos or carousel controls. */

/* v0.8.3 DESKTOP PUBLIC-SITE WIDTH ONLY.
   Source audit: fwm-unified.css originally allows 1180px, while v0.7.7,
   v0.7.8 and v0.8.2 reduce the public shell to 980px. At the same browser
   zoom, 980px vs 1180px presents as roughly 806px vs 976px in screenshots.
   Preserve PUBLIC shells at 1180px. Forum sizing is handled above,
   without altering carousel dimensions, mobile menu, or application behavior. */
@media (min-width: 901px) {
  html body:not(:has(.fwm-global-header)) .shell,
  html body:not(:has(.fwm-global-header)) main.shell,
  html body:not(:has(.fwm-global-header)) .site-header .shell,
  html body:not(:has(.fwm-global-header)) .site-footer .shell,
  html body.fwm-home-layout .shell,
  html body.fwm-events-layout .shell {
    box-sizing: border-box !important;
    width: min(1180px, calc(100% - 28px)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  html body:not(:has(.fwm-global-header)) .dev-strip {
    padding-left: max(14px, calc((100% - 1180px) / 2)) !important;
    padding-right: max(14px, calc((100% - 1180px) / 2)) !important;
  }
}

/* v0.8.6: remove phpBB-only blank space above the development bar.
   Scoped to the forum brand header: no public page, forum content width,
   masthead height, carousel, or mobile navigation changes. */
html:has(body .fwm-global-header),
html body:has(.fwm-global-header) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
html body:has(.fwm-global-header) .fwm-global-devbar {
  margin-top: 0 !important;
}


/* v0.8.8: visual polish ONLY for phpBB branded header. No page width,
   forum layout, nav geometry, or homepage rotator changes. */
html body:has(.fwm-global-header) .fwm-global-header .fwm-global-wordmark {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: clamp(22px, 2.3vw, 31px) !important;
  font-weight: 900 !important;
  font-style: italic !important;
  letter-spacing: -.045em !important;
  line-height: 1.08 !important;
  color: #fffefb !important;
}
html body:has(.fwm-global-header) .fwm-global-header .fwm-global-wordmark > span {
  color: #e8a19a !important;
}
html body:has(.fwm-global-header) .fwm-global-header .fwm-global-wordmark small {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  font-style: normal !important;
  letter-spacing: .1em !important;
  line-height: 1.15 !important;
  color: #efeaec !important;
}
html body:has(.fwm-global-header) .fwm-global-header .fwm-global-tools a.global-account-link,
html body:has(.fwm-global-header) .fwm-global-header .fwm-global-tools a.admin-link {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  color: #f4f1ee !important;
  text-shadow: none !important;
}
/* On the public site the top-strip copy extends 20px beyond the inner
   header frame on each side; reproduce that without changing header width. */
@media (min-width: 1250px) {
  html body:has(.fwm-global-header) .fwm-global-devbar .fwm-global-shell {
    position: relative !important;
    left: -20px !important;
    width: calc(100% + 40px) !important;
    max-width: 1176px !important;
    padding-inline: 0 !important;
  }
}

/* v0.8.9: remove visual development strip sitewide, including phpBB.
   No changes to access restrictions, page widths, or masthead dimensions. */
html body .dev-strip,
html body .fwm-global-devbar { display: none !important; }

/* v0.9.2: Sign-in button parity on Feedback and The Boards ONLY.
   The homepage's approved coral sign-in button is the reference.
   No changes to widths, header geometry, carousel, or authentication. */
html body:has(.review-form) .site-header .global-account-nav a.global-account-link.primary,
html body:has(.fwm-global-header) .fwm-global-header .fwm-global-tools a.global-account-link.primary {
  background: #cf807a !important;
  border-color: #cf807a !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}
html body:has(.review-form) .site-header .global-account-nav a.global-account-link.primary:hover,
html body:has(.fwm-global-header) .fwm-global-header .fwm-global-tools a.global-account-link.primary:hover {
  background: #b96661 !important;
  border-color: #b96661 !important;
  color: #ffffff !important;
}

/* v1.0.4: Homepage spotlight only. The inherited 160px forced slide height
   leaves a blank 25px footer inside the 185px spotlight container.
   Fill that existing frame so the radio dots overlay the image, as on Shows.
   Does not change container width, heading, inner-page spotlights or mobile. */
@media (min-width: 751px) {
  html body.fwm-home-layout .scene-hero-compact .scene-spotlight,
  html body.fwm-home-layout .scene-hero-compact .scene-slides .scene-slide {
    height: 185px !important;
    min-height: 185px !important;
    max-height: 185px !important;
  }
  html body.fwm-home-layout .scene-hero-compact .scene-dots {
    
    z-index: 2;
  }
}

/* FWM-HOME-GAP-PARITY-V14 */
/* Home only. Match Shows controls at the inside bottom of the filled image.
   Explicitly size the slide wrapper and slide to stop any exposed backdrop. */
@media (min-width:751px) {
  html body.fwm-home-layout .scene-hero-compact .scene-spotlight {
    height:185px!important; min-height:185px!important; max-height:185px!important;
  }
  html body.fwm-home-layout .scene-hero-compact .scene-spotlight > .scene-slides {
    height:100%!important; min-height:185px!important;
  }
  html body.fwm-home-layout .scene-hero-compact .scene-slides > .scene-slide {
    box-sizing:border-box!important; height:185px!important; min-height:185px!important; max-height:185px!important;
  }
  html body.fwm-home-layout .scene-hero-compact .scene-spotlight > .scene-dots {
    bottom:3px!important; z-index:6!important;
 }
}
