@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-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;
  }
}
