/*
Theme Name: Fun Center HPC
Theme URI: https://funcenterhpc.com/
Author: Fun Center HPC
Description: Initial Fun Center HPC theme with a three-zone header, sitewide search, sky-blue gradient, Home/Current navigation, and shared footer navigation.
Version: 1.0.1
Text Domain: fun-center-hpc
*/

:root {
  --fchpc-navy: #071b46;
  --fchpc-navy-deep: #03102b;
  --fchpc-sky: #4eb4f6;
  --fchpc-sky-soft: #dff4ff;
  --fchpc-ink: #152033;
  --fchpc-page: #fbfcfe;
  --fchpc-gold: #efad20;
  --fchpc-content: 880px;
  --fchpc-wide: 1240px;
  --fchpc-edge: clamp(20px, 3.2vw, 52px);
  --fchpc-visible-media-max-height: 68vh;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-y: scroll; scrollbar-gutter: stable; }
body {
  margin: 0;
  color: var(--fchpc-ink);
  background: var(--fchpc-page);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.65;
}
a { color: #086aa8; }
a:hover, a:focus-visible { color: #064c79; }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid rgba(7,27,70,.18);
  box-shadow: 0 5px 18px rgba(7,27,70,.12);
}
body.admin-bar .site-header { top: 32px; }
.header-inner {
  width: 100%;
  min-height: 106px;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(245px, 320px) minmax(280px, 1fr) auto;
  align-items: stretch;
}
.site-branding {
  min-width: 0;
  display: flex;
  align-items: center;
  padding-left: var(--fchpc-edge);
  padding-right: clamp(14px, 2vw, 28px);
  background: #fff;
}
.site-branding a {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  color: var(--fchpc-navy);
  line-height: 1;
  text-decoration: none;
}
.custom-logo-link { line-height: 0; }
.custom-logo,
.fchpc-wordmark-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 78px;
  object-fit: contain;
  object-position: left center;
}
.fchpc-wordmark-link { line-height: 0; }
.fchpc-text-wordmark {
  display: inline-block;
  font-family: "Russo One", "Tauri", Arial, Helvetica, sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  font-weight: 400;
  white-space: nowrap;
}

.fchpc-search-zone {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(18px, 2.4vw, 36px);
  background: linear-gradient(90deg, #ffffff 0%, var(--fchpc-sky) 100%);
}
.fchpc-header-search {
  width: min(520px, 100%);
  margin: 0;
}
.fchpc-header-search-control {
  display: grid;
  grid-template-columns: 1fr 48px;
  overflow: hidden;
  border: 1px solid rgba(7,27,70,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 5px 16px rgba(7,27,70,.12), inset 0 1px 2px rgba(7,27,70,.04);
}
.fchpc-header-search input {
  width: 100%;
  min-width: 0;
  padding: 11px 5px 11px 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fchpc-ink);
  font: inherit;
}
.fchpc-header-search button {
  border: 0;
  background: transparent;
  color: var(--fchpc-navy);
  font-size: 1.35rem;
  cursor: pointer;
}
.fchpc-header-search-control:focus-within {
  border-color: var(--fchpc-navy);
  box-shadow: 0 0 0 3px rgba(255,255,255,.75), 0 6px 18px rgba(7,27,70,.16);
}

.primary-navigation {
  min-width: max-content;
  display: flex;
  align-items: center;
  padding: 0 var(--fchpc-edge) 0 clamp(16px, 2vw, 28px);
  background: var(--fchpc-sky);
}
.primary-navigation ul,
.primary-navigation .menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-navigation li { margin: 0; padding: 0; }
.primary-navigation a {
  position: relative;
  display: inline-block;
  padding: 18px 0;
  color: var(--fchpc-navy);
  font-family: "Tauri", Arial, Helvetica, sans-serif;
  font-size: .98rem;
  font-weight: 400;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: color .18s ease, text-shadow .18s ease;
}
.primary-navigation a:hover,
.primary-navigation a:focus-visible {
  color: #fff;
  text-shadow:
    0 0 3px rgba(255,255,255,1),
    0 0 8px rgba(255,255,255,.98),
    0 0 16px rgba(255,255,255,.86),
    0 0 26px rgba(255,255,255,.68);
  outline: none;
}
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
  color: var(--fchpc-navy);
}
.primary-navigation .current-menu-item > a::after,
.primary-navigation .current_page_item > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
}

.site-main { min-height: 58vh; }
.content-shell,
.fchpc-home {
  width: min(var(--fchpc-content), calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 80px;
}
.content-shell.wide { width: min(var(--fchpc-wide), calc(100% - 40px)); }
.fchpc-kicker {
  margin: 0 0 8px;
  color: #a06b00;
  font-family: "Bungee", Arial, Helvetica, sans-serif;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.page-title,
.blog-title,
.entry-title,
.fchpc-home h1,
.fchpc-home h2 {
  color: var(--fchpc-navy);
  font-family: "Russo One", "Tauri", Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.08;
}
.page-title,
.blog-title,
.fchpc-home h1 { margin: 0 0 28px; font-size: clamp(2.2rem, 5vw, 4rem); }
.fchpc-home h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2.15rem); }
.entry-title { margin: 0 0 12px; font-size: clamp(1.55rem, 3vw, 2.25rem); }
.entry-title a { color: inherit; text-decoration: none; }
.fchpc-home-lede { margin: 0; font-size: clamp(1.15rem,2vw,1.38rem); color: #34445a; }
.fchpc-home-panel {
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid rgba(7,27,70,.14);
}
.fchpc-home-panel p:last-child { margin-bottom: 0; }
.fchpc-current-link {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 16px;
  border: 1px solid var(--fchpc-navy);
  border-radius: 8px;
  color: var(--fchpc-navy);
  font-family: "Tauri", Arial, Helvetica, sans-serif;
  text-decoration: none;
}
.fchpc-current-link:hover,
.fchpc-current-link:focus-visible { background: var(--fchpc-sky-soft); color: var(--fchpc-navy); }

.blog-grid { display: grid; gap: 28px; }
.post-card {
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(7,27,70,.11);
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(7,27,70,.06);
}
.entry-meta { margin: -3px 0 16px; color: #667386; font-size: .92rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.read-more { display: inline-block; margin-top: 12px; font-weight: 700; text-decoration: none; }

.fchpc-gallery-placeholder {
  width: min(620px, 100%);
  margin-top: 10px;
  padding: clamp(44px,8vw,90px) 28px;
  border: 2px dashed rgba(7,27,70,.2);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #eef9ff 100%);
  text-align: center;
}
.fchpc-gallery-placeholder strong {
  display: block;
  color: var(--fchpc-gold);
  font-family: "Bungee", Arial, Helvetica, sans-serif;
  font-size: clamp(2rem,6vw,4.5rem);
  line-height: 1.05;
}
.fchpc-gallery-featured img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: var(--fchpc-visible-media-max-height);
  margin: 0;
  border-radius: 12px;
  object-fit: contain;
}

.fchpc-sitemap-list { columns: 2; column-gap: 44px; padding-left: 1.2em; }
.fchpc-sitemap-list li { break-inside: avoid; margin: 5px 0; }

.site-footer {
  color: #dce6f3;
  background: var(--fchpc-navy-deep);
  border-top: 4px solid var(--fchpc-sky);
}
.footer-inner { width: 100%; margin: 0; padding: 38px 0 26px; }
.fchpc-footer-main {
  width: calc(100% - (2 * var(--fchpc-edge)));
  margin: 0 auto;
}
.footer-brand {
  margin: 0 0 14px;
  color: #fff;
  font-family: "Russo One", "Tauri", Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
}
.footer-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-navigation a { color: #dff4ff; font-size: 1.03rem; text-decoration: none; }
.footer-navigation a:hover,
.footer-navigation a:focus-visible { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,.7); }
.site-info {
  width: min(var(--fchpc-content),calc(100% - 40px));
  margin: 28px auto 0;
  padding-top: 17px;
  color: rgba(255,255,255,.66);
  border-top: 1px solid rgba(255,255,255,.16);
  text-align: center;
  font-size: .85rem;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 940px) {
  .header-inner {
    width: 100%;
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .site-branding {
    min-height: 84px;
    padding: 12px 20px;
    justify-content: center;
  }
  .site-branding a { justify-content: center; }
  .custom-logo, .fchpc-wordmark-image { max-height: 68px; object-position: center; }
  .fchpc-search-zone {
    padding: 14px 20px;
    background: linear-gradient(90deg, #fff 0%, var(--fchpc-sky) 100%);
  }
  .primary-navigation {
    justify-content: center;
    padding: 0 20px;
  }
}
@media (max-width: 640px) {
  .primary-navigation ul,
  .primary-navigation .menu { gap: 28px; }
  .primary-navigation a { padding: 13px 0; }
  .primary-navigation .current-menu-item > a::after,
  .primary-navigation .current_page_item > a::after { bottom: 7px; }
  .fchpc-sitemap-list { columns: 1; }
  .footer-navigation ul { display: block; }
  .footer-navigation li + li { margin-top: 7px; }
}
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Homepage hero + shared 85% visible-viewport media rule. */
.fchpc-home-hero-stage {
  width: min(85vw, 1500px);
  margin: 0 auto;
  padding: 24px 0 0;
}
.fchpc-home-hero {
  margin: 0;
  text-align: center;
}
.fchpc-home-hero-button,
.fchpc-gallery-featured-button {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.fchpc-home-hero-button img,
.fchpc-gallery-featured-button img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--fchpc-visible-media-max-height);
  margin: 0 auto;
  object-fit: contain;
}
.fchpc-home-hero-button img {
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(7,27,70,.13);
}
.fchpc-home-hero-button:focus-visible,
.fchpc-gallery-featured-button:focus-visible {
  outline: 3px solid var(--fchpc-sky);
  outline-offset: 4px;
  border-radius: 14px;
}
.fchpc-gallery-featured {
  width: min(85vw, var(--fchpc-wide));
  max-width: 100%;
}

/* Shared media lightbox, carried forward from the mature prior-site system. */
.fchpc-media-lightbox[hidden] { display: none !important; }
html.fchpc-media-lightbox-opened,
body.fchpc-media-lightbox-opened { overflow: hidden; }
.fchpc-media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.fchpc-media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
}
.fchpc-media-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) 52px;
  grid-template-rows: minmax(0,1fr) auto auto;
  align-items: center;
  width: min(96vw,1500px);
  height: min(94vh,1000px);
  height: min(94svh,1000px);
  padding: 52px 8px 12px;
  color: #fff;
  background: #05070a;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
}
.fchpc-media-lightbox-display {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.fchpc-media-lightbox-host {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fchpc-media-lightbox-host img,
.fchpc-media-lightbox-host video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;
}
.fchpc-media-lightbox-host video { background: #000; }
.fchpc-media-lightbox-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,.82);
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
}
.fchpc-media-lightbox-loading[hidden] { display: none !important; }
.fchpc-media-lightbox-close,
.fchpc-media-lightbox-fullscreen,
.fchpc-media-lightbox-nav {
  appearance: none;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(0,0,0,.68);
  color: #fff;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
}
.fchpc-media-lightbox-close:hover,
.fchpc-media-lightbox-close:focus-visible,
.fchpc-media-lightbox-fullscreen:hover,
.fchpc-media-lightbox-fullscreen:focus-visible,
.fchpc-media-lightbox-nav:hover,
.fchpc-media-lightbox-nav:focus-visible {
  color: #ffd37a;
  border-color: #ffd37a;
  outline: none;
}
.fchpc-media-lightbox-fullscreen {
  position: absolute;
  top: 10px;
  right: 62px;
  z-index: 6;
  min-width: 128px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  font-family: "Tauri", Arial, Helvetica, sans-serif;
  font-size: .88rem;
  font-weight: 400;
  white-space: nowrap;
}
.fchpc-media-lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 6;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 31px;
  font-weight: 400;
}
.fchpc-media-lightbox-nav {
  width: 42px;
  height: 54px;
  border-radius: 9px;
  font-size: 28px;
  justify-self: center;
  position: relative;
  z-index: 2;
}
.fchpc-media-lightbox-prev { grid-column: 1; grid-row: 1; }
.fchpc-media-lightbox-next { grid-column: 3; grid-row: 1; }
.fchpc-media-lightbox-nav[hidden] { display: none !important; }
.fchpc-media-lightbox-copy {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 1.25em;
  padding-top: 9px;
  text-align: center;
}
.fchpc-media-lightbox-copy h2 {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: .88rem;
  font-weight: 400;
  line-height: 1.25;
}
.fchpc-media-lightbox-page-navigator {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: center;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffd37a;
  font-family: "Tauri", Arial, Helvetica, sans-serif;
  font-size: .9rem;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.fchpc-media-lightbox-page-navigator:hover,
.fchpc-media-lightbox-page-navigator:focus-visible {
  color: #fff;
  outline: none;
}
.fchpc-media-lightbox-page-navigator[hidden] { display: none !important; }
.fchpc-media-lightbox:fullscreen,
.fchpc-media-lightbox:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  padding: 0;
  background: #000;
}
.fchpc-media-lightbox:fullscreen .fchpc-media-lightbox-backdrop,
.fchpc-media-lightbox:-webkit-full-screen .fchpc-media-lightbox-backdrop,
.fchpc-media-lightbox.is-native-fullscreen .fchpc-media-lightbox-backdrop { background: #000; }
.fchpc-media-lightbox:fullscreen .fchpc-media-lightbox-dialog,
.fchpc-media-lightbox:-webkit-full-screen .fchpc-media-lightbox-dialog,
.fchpc-media-lightbox.is-native-fullscreen .fchpc-media-lightbox-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100svh;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Exact-media Page Navigator. Hidden unless media has another genuine placement. */
.fchpc-page-navigator-lightbox[hidden] { display: none !important; }
.fchpc-page-navigator-lightbox {
  position: fixed;
  z-index: 2147483100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px,4vw,42px);
}
.fchpc-page-navigator-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,16,33,.86);
}
.fchpc-page-navigator-dialog {
  position: relative;
  z-index: 1;
  width: min(720px,100%);
  max-height: min(85vh,820px);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.34);
  overflow: hidden;
}
.fchpc-page-navigator-scroll {
  max-height: min(85vh,820px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(28px,5vw,52px);
}
.fchpc-page-navigator-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--fchpc-navy);
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.fchpc-page-navigator-close:hover,
.fchpc-page-navigator-close:focus-visible {
  background: #eef3f8;
  outline: 2px solid rgba(18,95,170,.4);
}
.fchpc-page-navigator-dialog h2 {
  margin: 0 42px 4px 0;
  color: var(--fchpc-navy);
  font-family: "Tauri", Arial, Helvetica, sans-serif;
  font-size: clamp(1.65rem,4vw,2.35rem);
  line-height: 1.15;
}
.fchpc-page-navigator-intro {
  margin: 0 0 22px;
  color: #667381;
}
.fchpc-media-navigator-group h3 {
  margin: 22px 0 10px;
  color: var(--fchpc-navy);
  font-family: "Tauri", Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
}
.fchpc-page-navigator-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.fchpc-page-navigator-links li {
  padding: 13px 14px;
  border: 1px solid rgba(7,27,70,.14);
  border-radius: 8px;
  background: #fff;
}
.fchpc-page-navigator-links li + li { margin-top: 10px; }
.fchpc-page-navigator-links a {
  color: var(--fchpc-navy);
  font-family: "Tauri", Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fchpc-page-navigator-note {
  margin: 5px 0 0;
  color: #667381;
  font-size: .92rem;
}
body.fchpc-page-navigator-opened { overflow: hidden; }

@media (max-width: 820px) {
  .fchpc-home-hero-stage { width: 85vw; padding-top: 16px; }
  .fchpc-media-lightbox { padding: 8px; }
  .fchpc-media-lightbox-dialog {
    width: 100%;
    height: 96vh;
    height: 96svh;
    grid-template-columns: 44px minmax(0,1fr) 44px;
    padding: 48px 2px 8px;
    border-radius: 10px;
  }
  .fchpc-media-lightbox-fullscreen {
    right: 54px;
    min-width: 0;
    max-width: calc(100% - 110px);
    padding: 0 9px;
    font-size: 12px;
  }
  .fchpc-media-lightbox-nav {
    width: 38px;
    height: 50px;
    font-size: 25px;
  }
}
@media (max-width: 640px) {
  .fchpc-page-navigator-lightbox { padding: 10px; }
  .fchpc-page-navigator-dialog,
  .fchpc-page-navigator-scroll { max-height: 90vh; }
  .fchpc-page-navigator-scroll { padding: 26px 18px 30px; }
}

