@charset "UTF-8";

/* =========================================================
   GLOBAL BASE VERSION L
   ========================================================= */
*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  background-color: #f6f3ee;
}

html{ scroll-behavior: smooth; }

img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* Optional: override fixed-width wrappers from older themes */
#pagewrap, .pagewrap, .container, .wrapper{
  width: 100% !important;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================================
   ANCHOR OFFSETS (hash jumps)
   ========================================================= */
/* controls where the browser stops when jumping to #schedule */
#schedule{ scroll-margin-top: 120px; }

/* About section anchor target */
#magicbox2{ scroll-margin-top: 160px; }

@media (max-width: 700px){
  #magicbox2{ scroll-margin-top: 210px; }
}

/* =========================================================
   TOP NAVIGATION + CENTER LOGO
   ========================================================= */
.topnav{
  background-color: #f4f1ec;
  position: relative;
  z-index: 1000;
  min-height: 64px;
  overflow: visible;
  box-shadow: none;
}

.topnav #myLinks{ display: none; }

.topnav a{
  color: #ac7730;
  padding: 14px 16px;
  text-decoration: none;
  font-family: 'Teko', sans-serif;
  font-size: 165%;
  display: block;
}

.topnav a.active{
  background-color: #3b2a12;
  color: #fff;
}

.topnav a.icon{
  background: #3b2a12;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1200;
}

.topnav a:hover:not(.nav-center-logo){
  background-color: #ac7730;
  color: #fff;
}

.topnav .nav-center-logo{
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 14px;
  z-index: 1100;
  background: transparent !important;
  padding: 0 !important;
  line-height: 0;
}

.topnav .nav-center-logo:hover,
.topnav .nav-center-logo:active,
.topnav .nav-center-logo:focus{
  background: transparent !important;
}

.topnav .nav-center-logo img{
  width: clamp(140px, 18vw, 230px);
  transition: transform 220ms ease, filter 220ms ease;
}

.topnav .nav-center-logo:hover img{
  transform: translateY(-4px);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.18));
}

/* =========================================================
   HERO
   ========================================================= */
.pf-hero{
  --nav-h: 86px;
  --logo-clear: 160px;

  background: #f6f3ee;
  color: #1f1f1f;
  position: relative;

  padding: clamp(42px, 7vw, 86px) 16px clamp(28px, 5vw, 60px);
  padding-top: calc(var(--nav-h) + var(--logo-clear));
}

.pf-hero__inner{
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.pf-hero__title{
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-size: clamp(44px, 7.4vw, 112px);
}

.pf-hero__line{
  display: block;
  white-space: nowrap;
}

.pf-hero__line--dark{ color: #1f1f1f; }

.pf-hero__line--gold{
  color: #b6812b;
  font-size: 0.62em;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 0.2em;
}

.pf-hero__line--with-pill{
  display: flex;
  align-items: center;
  gap: 18px;
}

.pf-hero__pill{
  flex: 0 0 auto;
  width: clamp(110px, 12vw, 150px);
  height: clamp(40px, 4.8vw, 54px);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.pf-hero__pill img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   VIDEO SECTION (matches Topstories width)
   ========================================================= */
.pf-video{
  background: #f6f3ee;
  padding: 20px 14px 24px;
}

.pf-video__inner{
  max-width: 1200px;
  margin: 0 auto;
}

.pf-video__frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}

.pf-video__frame iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   MAGICBOX (shared style)
   ========================================================= */
#magicbox,
#magicbox2{
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 72px;
  text-align: center;
}

#magicbox .pf-hero__blurb,
#magicbox2 .pf-hero__blurb{
  margin: 0;
  max-width: 820px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.65;
  color: rgba(0,0,0,0.70);
}

#magicbox .pf-hero__blurb strong,
#magicbox2 .pf-hero__blurb strong{
  font-weight: 700;
  color: rgba(0,0,0,0.88);
}

/* =========================================================
   FLYER
   ========================================================= */
.pf-flyer{
  background-color: #f6f3ee;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 14px 16px;
}

.pf-flyer img{ width: 100%; }

/* =========================================================
   TOPSTORIES (desktop grid)
   ========================================================= */
.topstories{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 14px;
}

.topstories__grid{
  --ts-h: clamp(300px, 28vw, 430px);

  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: stretch;
}

/* Feature left */
.featurehero.featurehero--left{
  grid-column: 1 / span 3;
  min-width: 0;
}

/* Feature right + shared feature styling */
.featurehero{
  grid-column: 4 / span 3;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
  text-decoration: none;
  color: #fff;
  height: var(--ts-h);
  display: block;
}

.featurehero picture{
  display: block;
  width: 100%;
  height: 100%;
}

.featurehero img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featurehero__overlay{ display: none !important; }

.featurehero__caption{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
}

.featurehero__title{
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.1;
  text-shadow: 0 3px 18px rgba(0,0,0,0.55);
}

/* Minis */
.featuremini{
  grid-column: span 2;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}

.featuremini picture{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10.35;
  overflow: hidden;
  background: #111;
}

.featuremini img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.featuremini__body{ padding: 14px 14px 16px; }

.featuremini__title{
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  font-size: clamp(20px, 2.2vw, 32px);
  color: #3b2a12;
  text-align: center;
}

.featuremini__text{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(0,0,0,0.72);
}

/* Desktop: bigger gutters */
@media (min-width: 701px){
  .topstories__grid > .featurehero:not(.featurehero--left){
    margin-left: 12px; /* grid gap 12 + margin 12 = 24 */
  }
  .featuremini{ margin-top: 12px; }
}

/* Per-card image framing tweaks (minis only) */
.featuremini[aria-label="Raffle"] img{ object-position: center 20%; }
.featuremini[aria-label="Live Music"] img{ object-position: center 45%; }
.featuremini[aria-label="Egg Month"] img{ object-position: center 48%; }

/* =========================================================
   TOPSTORIES (mobile stack)
   ========================================================= */
@media (max-width: 700px){
  .topstories__grid{
    grid-template-columns: 1fr;
  }

  .featurehero.featurehero--left,
  .featurehero{
    grid-column: auto;
    height: auto;
    aspect-ratio: auto;
    background: transparent;
  }

  .featurehero picture{
    height: auto;
  }

  /* show full image on phones (no cropping) */
  .featurehero img{
    height: auto;
    object-fit: contain;
  }

  .featuremini{
    grid-column: auto;
    margin-top: 0;
  }

  .featuremini__title{
    font-size: clamp(30px, 6vw, 40px);
    line-height: 1.2;
  }
}

/* =========================================================
   SPONSOR INTRO
   ========================================================= */
.sponsor-intro{
  background: #ffffff;
  padding: 48px 0 40px;
}

.sponsor-intro__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
  text-align: center;
}

.sponsor-intro__title{
  margin: 0 0 18px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 34px);
  color: #3b2a12;
}



.sponsor-intro__text{
  margin: 0 auto 16px;
  max-width: 900px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
  color: rgba(0,0,0,0.72);
}

.sponsor-intro__text strong{
  font-weight: 800;
  color: rgba(0,0,0,0.9);
}

.sponsor–text3 strong{
  font-weight: 800; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
 color: #3b2a12; max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
  text-align: center;
}




.sponsor-intro__emphasis{
  margin-top: 10px;
  font-weight: 600;
  color: #b6812b;
}

/* =========================================================
   SPONSOR LOGO IMAGE
   ========================================================= */
.sponsor-logos{
  background-color: #f6f3ee;
  padding: 28px 0 36px;
}

.sponsor-logos__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
}

.sponsor-logos picture,
.sponsor-logos img{
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   SPONSOR LIST
   ========================================================= */
.sponsorlist{
  background: #f6f3ee;
  padding: 26px 0 34px;
}

.sponsorlist__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
}

.sponsorlist__title{
  margin: 0 0 14px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(20px, 2.2vw, 30px);
  color: #3b2a12;
}

.sponsorlist__items{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  line-height: 1.55;
}

.sponsorlist__items li{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.78);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  white-space: normal;
  max-width: 100%;
}

/* =========================================================
   SOCIAL MEDIA FOOTER
   ========================================================= */
.social-footer{
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 32px 0 40px;
  background-color: #f6f3ee;
}

.social-footer a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-footer img{
  width: 45px;
  height: 45px;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-footer a:hover img{
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

/* =========================================================
   STICKY CTA
   ========================================================= */
.sticky-cta-wrap{
  position: sticky;
  top: 14px;
  z-index: 2147483647;
  isolation: isolate;
  display: flex;
  justify-content: center;
  padding: 10px 16px;
  pointer-events: none;
}

.sticky-cta-btn{
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #eef0f2;
  color: #1a1a1a;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.sticky-cta-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  background: #f6f7f8;
}

.sticky-cta-arrow{
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.08);
  font-size: 22px;
  line-height: 1;
}

/* =========================================================
   PRESIDENT LETTER PANEL
   ========================================================= */
.pf-letter{
  background-color: #f6f3ee;
  padding: 40px 14px 60px;
}

.pf-letter__title{
  text-align: center;
  margin: 0 0 28px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: #3b2a12;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: 0.02em;
}

.pf-letter__box{
  max-width: 1050px;
  margin: 0 auto;
  background: #f6f3ee;
  border: 1px solid rgba(0,0,0,0.18);
  padding: 28px 26px 32px;
  line-height: 1.65;
}

.pf-letter__box p{
  margin: 0 0 20px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 17px;
  color: rgba(0,0,0,0.68);
}

.pf-letter__box p:first-child{ color: rgba(0,0,0,0.78); }

.pf-letter__signature{
  margin-top: 26px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 20px;
  color: #3b2a12;
}

@media (max-width: 600px){
  .pf-letter{ padding: 28px 12px 40px; }
  .pf-letter__box{ padding: 22px 18px 26px; }
  .pf-letter__box p{ font-size: 16px; }
}

/* =========================================================
   FAIR SCHEDULE
   ========================================================= */
.pf-schedule{
  background: #f6f3ee;
  padding: 34px 14px 60px;
}

.pf-schedule__title{
  text-align: center;
  margin: 0 0 22px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: #3b2a12;
  letter-spacing: 0.02em;
  font-size: clamp(30px, 4vw, 54px);
}

.pf-schedule__box{
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid rgba(0,0,0,0.16);
  background: #f6f3ee;
  padding: 22px 22px 26px;
}

.pf-schedule__intro,
.pf-schedule__note{
  margin: 0 0 14px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(0,0,0,0.72);
}

.pf-schedule__note{
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pf-day{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.10);
}

.pf-day__header{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pf-day__title{
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: #3b2a12;
  font-size: clamp(20px, 2.2vw, 28px);
}

.pf-day__sub{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(0,0,0,0.70);
  font-size: 15px;
}

.pf-day__callout{
  margin: 10px 0 14px;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.55);
  border-radius: 10px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(0,0,0,0.72);
  line-height: 1.6;
}

.pf-table{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.45);
}

.pf-row{
  display: grid;
  grid-template-columns: 1.6fr 0.55fr 1.2fr;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.pf-row:first-child{ border-top: 0; }

.pf-row--head{
  background: rgba(255,255,255,0.70);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pf-cell{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(0,0,0,0.78);
  font-size: 15px;
  line-height: 1.35;
}

.pf-cell--time{
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: rgba(0,0,0,0.82);
}

.pf-muted{ opacity: 0.75; }

.pf-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-right: 8px;
  border: 1px solid rgba(0,0,0,0.10);
  color: #3b2a12;
  background: rgba(255,255,255,0.65);
}

.pf-badge--note      { background: rgba(182,129,43,0.18); }
.pf-badge--stage     { background: rgba(59,42,18,0.10); }
.pf-badge--rides     { background: rgba(182,129,43,0.20); }
.pf-badge--animals   { background: rgba(70,110,85,0.18); }
.pf-badge--heritage  { background: rgba(90,80,140,0.14); }
.pf-badge--show      { background: rgba(140,80,60,0.16); }
.pf-badge--sports    { background: rgba(40,90,120,0.16); }
.pf-badge--haunt     { background: rgba(90,90,90,0.14); }
.pf-badge--community { background: rgba(182,129,43,0.18); }

@media (max-width: 700px){
  .pf-schedule__box{ padding: 18px 14px 22px; }

  .pf-row{
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pf-row--head{ display: none; }

  .pf-cell--time{ font-weight: 700; }
}

/* =========================================================
   FLOATING MENU BUTTON + POPUP MENU
   ========================================================= */
:root{
  --pf-menu-top: 52%;
}

.pf-fab{
  position: fixed;
  right: 18px;
  top: var(--pf-menu-top);
  transform: translateY(-50%);
  width: 78px;
  height: 78px;
  border-radius: 999px;

  border: 0;
  background: #0f141a;
  color: #fff;
  cursor: pointer;

  display: grid;
  place-items: center;
  gap: 6px;

  box-shadow: 0 12px 26px rgba(0,0,0,0.20);
  z-index: 2147483646;
  isolation: isolate;

  animation: pfFloat 2.8s ease-in-out infinite;
}

@keyframes pfFloat{
  0%, 100% { transform: translateY(-50%) translateY(0); }
  50%      { transform: translateY(-50%) translateY(-5px); }
}

.pf-fab:hover{
  box-shadow: 0 16px 34px rgba(0,0,0,0.26);
}

.pf-fab__icon{
  display: grid;
  gap: 6px;
  width: 30px;
}

.pf-fab__bar{
  height: 3px;
  width: 100%;
  border-radius: 999px;
  background: #fff;
  opacity: 0.92;
}

.pf-fab__label{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 10px;
  opacity: 0.92;
  margin-top: 2px;
}

@media (max-width: 600px){
  :root{ --pf-menu-top: 170px; }
  .pf-fab{ right: 14px; }
}

/* Popup Menu */
.pf-menu{
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.pf-menu.is-open{
  opacity: 1;
  pointer-events: auto;
}

.pf-menu__backdrop{
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.pf-menu__panel{
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;

  width: min(420px, calc(100vw - 28px));
  background: rgba(246,243,238,0.98);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;

  box-shadow: 0 24px 70px rgba(0,0,0,0.28);

  display: grid;
  grid-template-rows: auto 1fr auto;

  transform: translateX(18px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
  outline: none;
}

.pf-menu.is-open .pf-menu__panel{
  transform: translateX(0);
  opacity: 1;
}

.pf-menu__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
}

.pf-menu__brand img{
  width: 190px;
  height: auto;
  display: block;
}

.pf-menu__close{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: #3b2a12;
}

.pf-menu__links{
  padding: 10px 16px 14px;
  display: grid;
  gap: 10px;
}

.pf-menu__links a{
  display: flex;
  align-items: center;
  justify-content: space-between;

  text-decoration: none;
  color: #3b2a12;

  padding: 14px 14px;
  border-radius: 14px;

  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.08);

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;

  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.pf-menu__links a:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.72);
}

.pf-menu__footer{
  padding: 12px 16px 16px;
  color: rgba(0,0,0,0.65);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* =========================================================
   MOBILE: HARD REMOVE TOP LINE (kept)
   ========================================================= */
@media (max-width: 768px){
  .topnav,
  .topnav::before,
  .topnav::after,
  header,
  header::before,
  header::after,
  body > header,
  body > header::before,
  body > header::after{
    box-shadow: none !important;
    border: 0 !important;
    outline: 0 !important;
    background-image: none !important;
  }

  .topnav{ transform: translateZ(0); }
}

/* =========================================================
   SMALL SCREEN TUNING
   ========================================================= */
@media (max-width: 600px){
  .topnav{ min-height: 58px; }

  .topnav .nav-center-logo{
    position: static;
    transform: none;
    margin: 10px auto 0;
    width: fit-content;
    display: block;
  }

  .topnav .nav-center-logo img{
    width: clamp(120px, 46vw, 175px);
  }

  .pf-hero{
    --nav-h: 18px;
    --logo-clear: 0px;
    padding-top: 26px;
  }

  .pf-hero__line{ white-space: normal; }

  .pf-hero__line--with-pill{
    flex-wrap: wrap;
    gap: 12px;
  }

  .pf-hero__pill{
    width: 140px;
    height: 48px;
  }

  #magicbox,
  #magicbox2{
    padding: 40px 14px 52px;
  }

  .sponsor-intro{ padding: 36px 0 32px; }
  .sponsor-intro__title{ letter-spacing: 0.06em; }

  .sponsorlist{ padding: 20px 0 28px; }
  .sponsorlist__items{ gap: 10px 12px; }
  .sponsorlist__items li{ font-size: 15px; padding: 7px 10px; }
}

@media (max-width: 420px){
  .pf-hero__title{
    font-size: clamp(38px, 8.5vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.015em;
  }

  .pf-hero__line{ font-size: 0.92em; }
}


#magicbox2{
  display: flex;       /* keep your design */
  flex-direction: column;
}


/* Anchor offset (controls scroll position) */
#about-anchor {
  scroll-margin-top: 180px; /* adjust 160–220 */
}

/* Visual spacing inside section */
#magicbox2 {
  padding-top: 80px; /* adds breathing room */
}



/* offset hash-jumps so sticky CTA doesn’t cover headings */
.anchor{
  scroll-margin-top: 130px; /* adjust until perfect */
}

/* if your sticky takes more room on mobile */
@media (max-width: 700px){
  .anchor{
    scroll-margin-top: 170px;
  }
}


/* Sponsor appreciation text block */

.sponsor-note {
  max-width: 1080px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.sponsor-note-text {
  font-family: inherit;
  font-size: 18px;
  line-height: 1.6;
  color: #6a4a1f;   /* brown tone used in other fair text */
  margin: 0;
}


/* =========================================================
   PRESIDENT LETTER PANEL
   ========================================================= */
.pf-letter{
  background-color: #f6f3ee;
  padding: 40px 14px 60px;
}

.pf-letter__title{
  text-align: center;
  margin: 0 0 28px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: #3b2a12;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: 0.02em;
}

.pf-letter__box{
  max-width: 1050px;
  margin: 0 auto;
  padding: 34px 30px 38px;
  line-height: 1.7;
  border: 1px solid rgba(92, 67, 31, 0.22);
  border-radius: 6px;

  /* parchment-style light textured background */
  background-color: #f4ead8;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.32) 0, rgba(255,255,255,0) 22%),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.18) 0, rgba(255,255,255,0) 18%),
    radial-gradient(circle at 24% 78%, rgba(120, 88, 42, 0.05) 0, rgba(120, 88, 42, 0) 24%),
    radial-gradient(circle at 76% 74%, rgba(120, 88, 42, 0.045) 0, rgba(120, 88, 42, 0) 22%),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.015) 0px,
      rgba(255,255,255,0.015) 2px,
      rgba(120,88,42,0.012) 2px,
      rgba(120,88,42,0.012) 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.012) 0px,
      rgba(255,255,255,0.012) 3px,
      rgba(120,88,42,0.01) 3px,
      rgba(120,88,42,0.01) 6px
    ),
    linear-gradient(180deg, #f8efdf 0%, #f1e3cc 52%, #ead9bc 100%);

  box-shadow:
    0 10px 28px rgba(0,0,0,0.07),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.pf-letter__box p{
  margin: 0 0 20px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 17px;
  color: rgba(44, 33, 18, 0.82);
}

.pf-letter__box p:first-child{
  color: rgba(44, 33, 18, 0.92);
  font-weight: 600;
}

.pf-letter__signature{
  margin-top: 26px;
}

.pf-letter__signature img{
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 600px){
  .pf-letter{
    padding: 28px 12px 40px;
  }

  .pf-letter__box{
    padding: 24px 18px 28px;
  }

  .pf-letter__box p{
    font-size: 16px;
  }
}


.pf-letter__signature picture{
  display: inline-block;
  max-width: 100%;
}

.pf-letter__signature img{
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 600px){
  .pf-letter__signature img{
    width: 160px; /* optional fallback sizing */
  }
}

#magicbox2{
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: transparent;
}

.magicbox2-panel{
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 44px 16px;
}

.magicbox2-panel--tan{
  background-color: #b6812b;
}

.magicbox2-panel--white{
  background-color: #ffffff;
}

.magicbox2-text{
  width: 100%;
  max-width: 820px;
  margin: 0;
  text-align: center;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.65;
  color: rgba(0,0,0,0.74);
}

.magicbox2-panel--tan .magicbox2-text{
  color: rgba(255,255,255,0.96);
}

.magicbox2-panel--tan .magicbox2-text strong{
  color: #ffffff;
}

.magicbox2-panel--white .magicbox2-text strong{
  color: rgba(0,0,0,0.88);
}

@media (max-width: 700px){
  .magicbox2-panel{
    padding: 34px 14px;
  }

  .magicbox2-text{
    font-size: clamp(19px, 5vw, 23px);
    line-height: 1.6;
  }
}

.sponsor-intro--plain{
background:transparent;
}

.sponsor-pair{
  width:100%;
  padding:24px 0 10px;
}

.sponsor-pair__grid{
  width:min(1100px, 92%);
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  align-items:stretch;
}

.sponsor-box{
  margin:0;
  height:100%;
  border-radius:18px;
  overflow:hidden;
  box-sizing:border-box;
}

.sponsor-box .sponsor-intro__inner{
  height:100%;
  padding:34px 28px;
  box-sizing:border-box;
}

.sponsor-intro--plain{
  background:transparent;
}

.sponsor-pair .sponsor-intro--plain{
  background:#f7f2ea; /* adjust if needed to match your page */
}

.sponsor-pair .sponsor-intro:not(.sponsor-intro--plain){
  background:#ffffff;
}

@media (max-width: 768px){
  .sponsor-pair__grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .sponsor-box .sponsor-intro__inner{
    padding:24px 20px;
  }
}


.sponsor-pair .sponsor-intro--plain{
  background:#b6812b;
  color:#fff;
}

.sponsor-pair .sponsor-intro--plain{
  background:#b6812b;
  color:#ffffff;
}

.sponsor-pair .sponsor-intro--plain h2,
.sponsor-pair .sponsor-intro--plain p{
  color:#ffffff;
}


.sponsor-pair{
  background:#b6812b;
  padding:40px 0;
}


.sponsor-pair .sponsor-intro--plain{
  background:#b6812b;
  color:#ffffff;
}

.sponsor-pair .sponsor-intro--plain h2,
.sponsor-pair .sponsor-intro--plain p{
  color:#ffffff;
}


.sponsor-pair .sponsor-box:not(.sponsor-intro--plain){
  background:#ffffff;
  border-radius:12px;
}


.sponsor-pair__grid{
  padding:10px;
}


.sponsor-buttons{
  margin-top:18px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.sponsor-btn{
  display:inline-block;
  padding:10px 20px;
  border-radius:999px;
  font-weight:600;
  text-decoration:none;
  font-size:14px;
  transition:.25s ease;
}

.sponsor-btn-email{
  background:#ffffff;
  color:#b6812b;
}

.sponsor-btn-email:hover{
  background:#f4f4f4;
}

.sponsor-btn-pdf{
  background:#ffffff;
  color:#b6812b;
}

.sponsor-btn-pdf:hover{
  background:#f4f4f4;
}


.sponsor-btn-call{
  background:#ffffff;
  color:#b6812b;
}

.sponsor-btn-call:hover{
  background:#f4f4f4;
}

.sponsor-buttons{
  display:flex;
  gap:12px;
 
  justify-content:center;
}


.sponsor-buttons{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
}

.sponsor-btn{
  display:inline-block;
  text-align:center;
  min-width:220px;
}


.sponsor-intro__inner img{
  display:block;
  margin:16px auto 0 auto;
}

#sponsors + .sponsor-intro .sponsor-intro__title{
  color:#b7412c; /* rust red */
}

/* make container positionable */
.featurehero--split {
  position: relative;
  display: block;
}

/* ensure image fills container */
.featurehero--split img {
  width: 100%;
  height: auto;
  display: block;
}

/* shared link overlay styles */
.split-link {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  z-index: 5;
  display: block;
}

/* top half */
.split-link--top {
  top: 0;height: 62%;
}

/* bottom half */
.split-link--bottom {
  bottom: 0; height: 38%;
}

/* OPTIONAL: debugging (remove after testing) */
/*
.split-link--top { background: rgba(255,0,0,0.2); }
.split-link--bottom { background: rgba(0,0,255,0.2); }
*/


/* =========================================================
   POWHATAN FAIRGROUNDS STYLE FOOTER
   ========================================================= */

.pfg-footer{
  background:#4a2e00;
  color:#f2eee8;
  font-family: Arial, Helvetica, sans-serif;
  width:100%;
  margin:0;
  padding:0;
}

.pfg-footer a{
  color:#d4a13a;
  text-decoration:none;
  transition:opacity .2s ease, color .2s ease;
}

.pfg-footer a:hover{
  color:#f0c561;
  opacity:1;
}

.pf-footer__upper{
  border-top:0;
  border-bottom:1px solid rgba(212,161,58,.65);
  padding:56px 0 52px;
}

.pf-footer__lower{
  padding:18px 0 16px;
}

.pf-footer__inner{
  width:min(1200px, calc(100% - 60px));
  margin:0 auto;
  display:grid;
  grid-template-columns: 1.55fr .85fr 1fr;
  gap:70px;
  align-items:start;
}

.pf-footer__inner--bottom{
  grid-template-columns: 1fr 1fr auto;
  gap:30px;
  align-items:end;
}

.pf-footer__logo{
  display:block;
  width:220px;
  max-width:100%;
  height:auto;
  margin:0 0 24px;
}

.pf-footer__tagline,
.pf-footer__about,
.pf-footer__email,
.pf-footer__mailing,
.pf-footer__address,
.pf-footer__bottom-col p{
  margin:0 0 14px;
  line-height:1.45;
}

.pf-footer__tagline{
  max-width:420px;
  font-size:14px;
  color:#f3eee8;
}

.pf-footer__about{
  max-width:460px;
  font-size:16px;
  color:#f3eee8;
}

.pf-footer__heading,
.pf-footer__subheading{
  margin:0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:#e0b24c;
  font-weight:400;
}

.pf-footer__heading{
  font-size:15px;
}

.pf-footer__subheading{
  font-size:14px;
  margin-top:22px;
  margin-bottom:14px;
}

.pf-footer__nav{
  list-style:none;
  margin:0;
  padding:0;
}

.pf-footer__nav li{
  margin:0 0 18px;
}

.pf-footer__nav a{
  font-size:20px;
  line-height:1.2;
  color:#f5f1eb;
}

.pf-footer__nav a:hover{
  color:#e0b24c;
}

.pf-footer__phone{
  margin:0 0 14px;
}

.pf-footer__phone a{
  font-size:30px;
  line-height:1.1;
  color:#f5f1eb;
  font-weight:400;
}

.pf-footer__email a,
.pf-footer__mailing{
  font-size:14px;
  color:#e0b24c;
}

.pf-footer__address{
  font-size:16px;
  color:rgba(242,238,232,.72);
  line-height:1.35;
}

.pf-footer__bottom-col{
  font-size:14px;
  color:rgba(242,238,232,.72);
}

.pf-footer__bottom-col--center{
  text-align:center;
}

.pf-footer__bottom-col--right{
  text-align:right;
}

.pf-footer__socials{
  display:flex;
  justify-content:flex-end;
  gap:24px;
  align-items:center;
}

.pf-footer__socials a{
  color:#d4a13a;
  font-size:28px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.pf-footer__socials a:hover{
  color:#f0c561;
}

@media (max-width: 980px){
  .pf-footer__inner{
    grid-template-columns:1fr;
    gap:38px;
  }

  .pf-footer__inner--bottom{
    grid-template-columns:1fr;
    gap:18px;
  }

  .pf-footer__bottom-col--center,
  .pf-footer__bottom-col--right{
    text-align:left;
  }

  .pf-footer__socials{
    justify-content:flex-start;
  }

  .pf-footer__nav a{
    font-size:18px;
  }

  .pf-footer__phone a{
    font-size:28px;
  }
}

@media (max-width: 640px){
  .pf-footer__upper{
    padding:42px 0 36px;
  }

  .pf-footer__lower{
    padding:16px 0 18px;
  }

  .pf-footer__inner{
    width:min(1200px, calc(100% - 32px));
    gap:30px;
  }

  .pf-footer__logo{
    width:190px;
    margin-bottom:20px;
  }

  .pf-footer__about{
    font-size:15px;
  }

  .pf-footer__nav li{
    margin-bottom:14px;
  }

  .pf-footer__nav a{
    font-size:17px;
  }

  .pf-footer__phone a{
    font-size:24px;
  }

  .pf-footer__socials a{
    font-size:24px;
  }
}



/* =========================================================
   TOP STORIES - show full image height for BOX 1 + BOX 2
   on tablet and desktop
   ========================================================= */
@media screen and (min-width: 701px) {

  /* let the grid items size naturally instead of forcing crop behavior */
  .topstories__grid {
    align-items: start;
  }

  /* BOX 1 and BOX 2 */
  .topstories__grid > .featurehero {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    overflow: visible;
    display: block;
    position: relative;
    align-self: start;
  }

  /* remove any forced height from the picture wrapper */
  .topstories__grid > .featurehero picture {
    display: block;
    height: auto !important;
    min-height: 0 !important;
  }

  /* show full image proportion instead of cropping */
  .topstories__grid > .featurehero img {
    display: block;
    width: 100%;
    height: auto !important;
    max-width: 100%;
    object-fit: contain !important;
  }

  /* if you have an empty caption overlay, keep it from adding height issues */
  .featurehero__caption {
    position: absolute;
    inset: auto 0 0 0;
    pointer-events: none;
  }

  /* keep split clickable halves working on BOX 1 */
  .featurehero--split .split-link {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 5;
  }

  .featurehero--split .split-link--top {
    top: 0;
    height: 60%;
  }

  .featurehero--split .split-link--bottom {
    bottom: 0;
    height: 40%;
  }
}

/* =========================================
   POWHATAN FAIR COUNTDOWN
========================================= */
.pf-countdown{
  width:100%;
  background:#f6f3ee;
  padding:60px 20px;
}

.pf-countdown__inner{
  max-width:1080px;
  margin:0 auto;
  text-align:center;
}

.pf-countdown__eyebrow{
  margin:0 0 12px;
  font-family:'Teko', sans-serif;
  font-size:clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing:.08em;
  color:#8a6a17;
}

.pf-countdown__title{
  margin:0 0 28px;
  font-family:'Playfair Display', Georgia, serif;
  font-size:clamp(2rem, 4vw, 3.5rem);
  line-height:1.05;
  color:#1c1c1c;
}

.pf-countdown__grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
  max-width:900px;
  margin:0 auto 24px;
}

.pf-countdown__box{
  background:#ffffff;
  border:2px solid #d8c79b;
  border-radius:18px;
  padding:28px 12px 22px;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.pf-countdown__box span{
  display:block;
  font-family:'Teko', sans-serif;
  font-size:clamp(2.5rem, 7vw, 4.75rem);
  line-height:1;
  color:#022b6b;
}

.pf-countdown__box small{
  display:block;
  margin-top:10px;
  font-size:.95rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#5f5f5f;
}

.pf-countdown__note{
  margin:0;
  font-family:'Teko', sans-serif;
  font-size:clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing:.04em;
  color:#8a6a17;
}

/* Mobile */
@media (max-width: 768px){
  .pf-countdown{
    padding:42px 16px;
  }

  .pf-countdown__grid{
    grid-template-columns:repeat(2, 1fr);
    gap:14px;
  }

  .pf-countdown__box{
    padding:22px 10px 18px;
    border-radius:14px;
  }
}

@media (max-width: 420px){
  .pf-countdown__grid{
    gap:12px;
  }

  .pf-countdown__box span{
    font-size:2.7rem;
  }

  .pf-countdown__box small{
    font-size:.82rem;
  }
}



/* =========================================================
   COUNTDOWN
   ========================================================= */
.pf-countdown{
  width:100%;
  background:#ffffff;
  padding:60px 20px;
}

.pf-countdown__inner{
  max-width:1080px;
  margin:0 auto;
  text-align:center;
}

.pf-countdown__eyebrow{
  margin:0 0 12px;
  font-family:'Teko', sans-serif;
  font-size:clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing:.08em;
  color:#8f6720;
}

.pf-countdown__title{
  margin:0 0 28px;
  font-family:'Playfair Display', Georgia, serif;
  font-size:clamp(2rem, 4vw, 3.5rem);
  line-height:1.05;
  color:#1c1c1c;
}

.pf-countdown__grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
  max-width:900px;
  margin:0 auto 24px;
}

.pf-countdown__box{
  background:#b8842b;
  border:0;
  border-radius:18px;
  padding:28px 12px 22px;
  box-shadow:0 10px 25px rgba(0,0,0,.10);
}

.pf-countdown__box span{
  display:block;
  font-family:'Teko', sans-serif;
  font-size:clamp(2.5rem, 7vw, 4.75rem);
  line-height:1;
  color:#ffffff;
}

.pf-countdown__box small{
  display:block;
  margin-top:10px;
  font-size:.95rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#ffffff;
  opacity:.95;
}

.pf-countdown__note{
  margin:0;
  font-family:'Teko', sans-serif;
  font-size:clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing:.04em;
  color:#8f6720;
}