
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Patrick+Hand&display=swap');

:root{
  --navy:#0b2f5b;
  --navy2:#143f72;
  --gold:#efbd3d;
  --cream:#fff9ef;
  --paper:#fffdf8;
  --ink:#23384b;
  --muted:#67788a;
  --sage:#98ae7e;
  --sky:#bdd9e7;
  --coral:#dfa39c;
  --line:#dfd3bc;
  --shadow:0 10px 24px rgba(41,55,72,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  font-family:'Nunito',sans-serif;
  background:
    repeating-linear-gradient(0deg,rgba(90,65,40,.018) 0 1px,transparent 1px 5px),
    #fbf6ea;
}
a{color:inherit}
.topbar{
  background:var(--navy);
  color:#fff;
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
}
.topbar-inner{
  width:min(1180px,calc(100% - 32px));
  display:flex;
  justify-content:space-between;
  gap:20px;
}
.topbar a{text-decoration:none;font-weight:700}

.hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 18% 28%,rgba(130,170,104,.18) 0 110px,transparent 111px),
    radial-gradient(circle at 84% 18%,rgba(187,217,231,.26) 0 125px,transparent 126px),
    linear-gradient(180deg,#fffdf7,#f6efdf);
  border-bottom:1px solid #e6dbc8;
}
.hero:before{
  content:"";
  position:absolute;
  left:-70px; top:-20px;
  width:420px; height:220px;
  background:
    radial-gradient(ellipse at 30% 50%,rgba(95,135,73,.55) 0 32%,transparent 33%),
    radial-gradient(ellipse at 62% 38%,rgba(122,158,91,.46) 0 28%,transparent 29%);
  transform:rotate(-8deg);
}
.hero-inner{
  width:min(1180px,calc(100% - 48px));
  margin:auto;
  min-height:470px;
  display:grid;
  grid-template-columns:260px 1fr 330px;
  align-items:center;
  gap:30px;
  position:relative;
  z-index:2;
  padding:36px 0 34px;
}
.falcon-wrap{text-align:center}
.falcon-wrap img{
  width:230px;
  max-width:100%;
  filter:drop-shadow(0 10px 12px rgba(0,0,0,.14));
}
.wood-sign{
  margin-top:3px;
  display:inline-block;
  background:#c89b5d;
  color:#4f3821;
  border:2px solid #9a6f39;
  border-radius:4px;
  padding:9px 15px;
  font-family:'Patrick Hand',cursive;
  font-size:19px;
  box-shadow:0 5px 0 rgba(115,79,36,.16);
  transform:rotate(-2deg);
}
.hero-title{text-align:center}
.welcome{
  font-family:'Patrick Hand',cursive;
  font-size:44px;
  color:var(--navy);
  line-height:.95;
}
.hero-title h1{
  font-family:Georgia,serif;
  font-size:clamp(92px,11vw,150px);
  line-height:.76;
  color:var(--navy);
  margin:8px 0 22px;
  letter-spacing:-6px;
  text-shadow:3px 4px 0 #d5c19d;
}
.school-ribbon{
  display:inline-block;
  background:var(--gold);
  color:var(--navy);
  font-family:'Patrick Hand',cursive;
  font-size:28px;
  padding:7px 30px;
  border-radius:6px;
  transform:rotate(-1deg);
  box-shadow:0 5px 0 #c99a22;
}
.home-falcons{
  font-family:'Patrick Hand',cursive;
  font-size:25px;
  color:var(--navy);
  margin-top:17px;
}
.teacher-polaroid{
  background:#fff;
  padding:12px 12px 49px;
  box-shadow:0 12px 30px rgba(48,55,58,.2);
  transform:rotate(2deg);
  position:relative;
}
.teacher-polaroid:before{
  content:"";
  position:absolute;
  width:88px; height:25px;
  top:-13px; left:calc(50% - 44px);
  background:rgba(232,210,158,.72);
  transform:rotate(-3deg);
}
.teacher-polaroid img{
  width:100%;
  height:345px;
  object-fit:cover;
  object-position:center top;
  display:block;
}
.teacher-polaroid span{
  position:absolute;
  left:10px; right:10px; bottom:10px;
  text-align:center;
  font-family:'Patrick Hand',cursive;
  font-size:22px;
  color:var(--navy);
}

.navbar{
  background:var(--navy);
  border-top:2px dashed rgba(255,255,255,.35);
  border-bottom:2px dashed rgba(255,255,255,.35);
  box-shadow:0 4px 13px rgba(0,0,0,.10);
}
.nav-inner{
  width:min(1180px,100%);
  margin:auto;
  display:grid;
  grid-template-columns:repeat(8,1fr);
}
.nav-link{
  min-height:100px;
  color:#fff;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  border-right:1px dashed rgba(255,255,255,.28);
  font-family:'Patrick Hand',cursive;
  font-size:17px;
  line-height:1.08;
  padding:8px;
}
.nav-link .icon{font-size:31px;margin-bottom:7px}
.nav-link:hover,.nav-link.active{
  background:var(--gold);
  color:var(--navy);
}

.content{
  width:min(1180px,calc(100% - 48px));
  margin:0 auto;
  padding:34px 0 60px;
}
.home-grid-top{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.home-grid-bottom{
  margin-top:20px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.paper-card{
  background:rgba(255,253,248,.96);
  border:1px solid var(--line);
  border-radius:16px;
  padding:24px;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}
.paper-card:after{
  content:"";
  position:absolute;
  inset:8px;
  border:1px dashed rgba(120,95,63,.18);
  border-radius:10px;
  pointer-events:none;
}
.paper-card > *{position:relative;z-index:1}
.paper-card h2,.paper-card h3{
  font-family:'Patrick Hand',cursive;
  color:var(--navy);
  margin:0 0 12px;
}
.paper-card h2{font-size:37px}
.paper-card h3{font-size:29px}
.paper-card p,.paper-card li{line-height:1.65}
.at-glance{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  text-align:center;
}
.glance-item{
  padding:12px 8px;
  border-right:1px solid #e0d7c7;
}
.glance-item:last-child{border-right:0}
.glance-icon{font-size:34px}
.glance-label{
  color:var(--navy);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  margin-top:6px;
}
.glance-value{
  font-size:20px;
  font-weight:800;
  margin-top:3px;
}
.welcome-card{
  display:grid;
  grid-template-columns:1fr 160px;
  gap:20px;
  align-items:center;
}
.welcome-card .mini-photo{
  width:150px;
  height:150px;
  border-radius:14px;
  object-fit:cover;
  object-position:center top;
}
.ribbon-label{
  display:inline-block;
  color:var(--navy);
  font-family:'Patrick Hand',cursive;
  font-size:26px;
  background:#dcebf4;
  padding:4px 18px;
  border-radius:6px;
  transform:rotate(-1deg);
}
.ribbon-label.green{background:#dfe9d1}
.ribbon-label.coral{background:#f5d8d4}
.card-illustration{
  font-size:58px;
  text-align:right;
  margin-top:10px;
}
.cta{
  display:inline-block;
  background:var(--gold);
  color:var(--navy);
  text-decoration:none;
  border-radius:8px;
  padding:10px 15px;
  font-weight:800;
  box-shadow:0 3px 0 #c99a22;
}
.page-head{
  text-align:center;
  margin-bottom:26px;
}
.page-head h1{
  margin:0;
  font-family:'Patrick Hand',cursive;
  color:var(--navy);
  font-size:48px;
}
.page-head p{
  color:var(--muted);
  max-width:760px;
  margin:6px auto 0;
}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.details-list details{
  background:#fff;
  border:1px solid var(--line);
  border-radius:13px;
  margin:10px 0;
  box-shadow:0 4px 11px rgba(40,55,70,.06);
}
.details-list summary{
  cursor:pointer;
  padding:16px 18px;
  font-family:'Patrick Hand',cursive;
  font-size:21px;
  color:var(--navy);
  font-weight:700;
}
.details-list p{
  margin:0;
  padding:0 18px 18px;
  line-height:1.65;
  color:#516579;
}
.wish-box{
  background:#fffaf1;
  border:1px solid #e4d5ba;
  border-radius:15px;
  padding:21px;
}
.wish-box h2{font-family:'Patrick Hand',cursive;color:var(--navy)}
.gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.gallery-empty{
  grid-column:1/-1;
  padding:55px 22px;
  text-align:center;
  border:2px dashed #c8d7df;
  background:linear-gradient(135deg,#f6fbfd,#fffaf2);
  border-radius:18px;
}
.gallery-empty .camera{font-size:64px}
.gallery-item{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:8px;
  box-shadow:var(--shadow);
  cursor:pointer;
}
.gallery-item img{
  display:block;
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:10px;
}
.gallery-caption{padding:8px 4px 2px;font-size:14px;color:var(--muted)}
.about-grid{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:30px;
  align-items:start;
}
.about-grid img{
  width:100%;
  border-radius:18px;
  box-shadow:var(--shadow);
}
.about-grid p{line-height:1.7}
.code{
  color:var(--navy);
  font-family:Georgia,serif;
  font-size:48px;
  font-weight:800;
  letter-spacing:5px;
  margin:10px 0 20px;
}
.footer{
  background:var(--navy);
  color:#fff;
  padding:28px 20px;
}
.footer-inner{
  width:min(1180px,100%);
  margin:auto;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:20px;
  align-items:center;
}
.footer-brand{
  font-family:'Patrick Hand',cursive;
  font-size:24px;
}
.footer-center{text-align:center;font-size:14px;line-height:1.6}
.footer-message{
  text-align:right;
  font-family:'Patrick Hand',cursive;
  font-size:22px;
}
.lightbox{
  display:none;
  position:fixed;
  inset:0;
  z-index:100;
  background:rgba(7,22,40,.93);
  align-items:center;
  justify-content:center;
  padding:25px;
}
.lightbox.open{display:flex}
.lightbox-inner{position:relative;max-width:1100px;width:100%;text-align:center}
.lightbox img{max-width:100%;max-height:82vh;border-radius:12px}
.lbbtn{
  position:absolute;
  border:0;
  background:#fff;
  color:var(--navy);
  width:44px;height:44px;border-radius:50%;
  font-size:25px;cursor:pointer;
}
#lbClose{right:0;top:-52px}
#lbPrev{left:5px;top:50%}
#lbNext{right:5px;top:50%}
.lbcap{color:#fff;margin-top:10px}

@media(max-width:980px){
  .hero-inner{grid-template-columns:190px 1fr 260px}
  .falcon-wrap img{width:180px}
  .teacher-polaroid img{height:285px}
  .nav-inner{grid-template-columns:repeat(4,1fr)}
  .nav-link{min-height:88px}
}
@media(max-width:760px){
  .topbar-inner{display:block;text-align:center}
  .topbar-inner span{display:block;margin:2px 0}
  .hero-inner{grid-template-columns:1fr;padding-top:24px}
  .falcon-wrap{order:2}
  .hero-title{order:1}
  .teacher-polaroid{order:3;max-width:310px;margin:auto}
  .home-grid-top,.home-grid-bottom,.two-col,.about-grid{grid-template-columns:1fr}
  .at-glance{grid-template-columns:1fr 1fr}
  .welcome-card{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr;text-align:center}
  .footer-message{text-align:center}
  .gallery{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:500px){
  .nav-inner{grid-template-columns:repeat(2,1fr)}
  .gallery{grid-template-columns:1fr}
  .content,.hero-inner{width:min(100% - 28px,1180px)}
  .welcome{font-size:36px}
  .hero-title h1{font-size:96px}
  .school-ribbon{font-size:23px;padding:6px 18px}
}


/* === OPTION 3 PRODUCTION HERO ===
   The full approved Option 2 illustration is a real responsive image.
   This avoids the cropping caused by background-size: cover. */
.hero-image-wrap{
  width:100%;
  background:#fffaf1;
  overflow:hidden;
  line-height:0;
}
.hero-image{
  display:block;
  width:100%;
  height:auto;
}
.navbar{margin-top:0}

/* Better page transitions / polish */
.nav-link, .cta, .paper-card, .gallery-item{
  transition:transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.paper-card:hover{box-shadow:0 14px 30px rgba(41,55,72,.12)}
.cta:hover{transform:translateY(1px)}
.nav-link:hover{transform:translateY(-1px)}

/* Production photo gallery */
.gallery-note{
  text-align:center;
  color:var(--muted);
  font-size:13px;
  margin-top:16px;
}

/* Mobile: retain entire hero rather than crop it */
@media(max-width:760px){
  .hero-image{width:100%;height:auto}
}


/* === HEADER CONTACT LINKS === */
.topbar-contact{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.topbar-sep{opacity:.55}
@media(max-width:760px){.topbar-contact{justify-content:center}}

/* === FINAL WEEKLY NEWS DESIGN === */
.weekly-loading,.weekly-error{
  max-width:760px;
  margin:18px auto;
  padding:30px;
  text-align:center;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow);
}
.weekly-loading-icon{font-size:42px;margin-bottom:8px}

.weekly-layout{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(300px,.8fr);
  gap:24px;
  align-items:start;
}
.current-card,.archive-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.current-card{border-top:7px solid var(--sky)}
.archive-card{border-top:7px solid #e2c866}

.card-head{
  padding:22px 25px 15px;
  background:linear-gradient(180deg,#fffdf9,#fffaf2);
  border-bottom:1px solid #eee6d8;
}
.chip{
  display:inline-block;
  padding:6px 11px;
  border-radius:999px;
  background:#edf3f7;
  color:var(--navy);
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.archive-chip{background:#fff5ce}
.card-head h2{
  font-family:'Patrick Hand',cursive;
  color:var(--navy);
  font-size:35px;
  margin:8px 0 2px;
}
.card-head p{margin:0;color:var(--muted)}

.current-body{padding:22px 26px 28px}
.news-section{
  padding-bottom:20px;
  margin-bottom:20px;
  border-bottom:1px dashed #dfd6c7;
}
.news-section:last-child{
  border:0;
  padding-bottom:0;
  margin-bottom:0;
}
.news-section h3{
  font-family:'Patrick Hand',cursive;
  color:var(--navy);
  font-size:27px;
  margin:0 0 9px;
}
.news-section-content{
  line-height:1.72;
  color:#3d5264;
}
.news-section-content p:first-child{margin-top:0}
.news-section-content p:last-child{margin-bottom:0}
.news-section-content ul,.news-section-content ol{
  padding-left:22px;
  line-height:1.72;
}
.news-section-content a{
  color:var(--navy);
  font-weight:700;
}
.news-section.look-ahead{
  background:#f4f8ef;
  border:1px solid #d9e5cb;
  border-radius:14px;
  padding:17px 18px;
  margin-bottom:0;
}

.archive-body{padding:18px}
.archive-month{margin-bottom:20px}
.archive-month:last-child{margin-bottom:0}
.archive-month h3{
  font-family:'Patrick Hand',cursive;
  color:var(--navy);
  font-size:24px;
  margin:0 0 9px;
}
.archive-link{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:12px 13px;
  margin:8px 0;
  border:1px solid #e5dccd;
  border-radius:12px;
  background:#fffdf8;
  color:var(--navy);
  font:inherit;
  font-weight:800;
  text-align:left;
  cursor:pointer;
  box-sizing:border-box;
}
.archive-link:hover{
  background:#fff7df;
  border-color:#dfc775;
}
.archive-link span{
  font-size:12px;
  color:var(--muted);
  font-weight:600;
}
.archive-note{
  padding:13px 14px;
  border-radius:12px;
  background:#eef4f8;
  color:#526779;
  font-size:13px;
  line-height:1.5;
}

.archive-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:200;
  background:rgba(7,22,40,.82);
  padding:28px;
  overflow:auto;
}
.archive-modal.open{display:block}
.archive-modal-card{
  position:relative;
  max-width:900px;
  margin:25px auto;
  background:#fffdf8;
  border-radius:20px;
  padding:30px;
  box-shadow:0 24px 70px rgba(0,0,0,.35);
}
.archive-modal-card h2{
  font-family:'Patrick Hand',cursive;
  color:var(--navy);
  font-size:38px;
  margin:9px 0 18px;
}
.archive-modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  border-radius:50%;
  border:0;
  background:var(--navy);
  color:#fff;
  font-size:26px;
  cursor:pointer;
}
.archive-modal-body{
  line-height:1.7;
  color:#3d5264;
}
.archive-modal-body a{color:var(--navy);font-weight:700}

@media(max-width:820px){
  .weekly-layout{grid-template-columns:1fr}
}
@media(max-width:540px){
  .archive-modal{padding:12px}
  .archive-modal-card{padding:22px;margin:10px auto}
}


/* === LIVE TWO-TILE GOOGLE DOC WISH LIST === */
.wish-intro{
  max-width:900px;
  margin:0 auto 18px;
  line-height:1.65;
  color:#53677a;
}
.wish-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  align-items:start;
}
.wish-tile{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.wish-tile.daily{border-top:7px solid var(--sky)}
.wish-tile.fun{border-top:7px solid #e2c866}
.wish-head{
  padding:22px 25px 15px;
  background:linear-gradient(180deg,#fffdf9,#fffaf2);
  border-bottom:1px solid #eee6d8;
}
.wish-head h2{
  font-family:'Patrick Hand',cursive;
  color:var(--navy);
  font-size:34px;
  margin:7px 0 2px;
}
.wish-body{
  padding:20px 25px 25px;
  line-height:1.72;
  color:#3d5264;
}
.wish-body ul,.wish-body ol{
  padding-left:22px;
  margin-top:0;
}
.wish-body li{margin:9px 0}
.wish-body a{
  color:var(--navy);
  font-weight:800;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.wish-body a::after{
  content:" ↗";
  font-size:.85em;
}
@media(max-width:760px){
  .wish-grid{grid-template-columns:1fr}
}


/* === FINAL DYNAMIC HOMEPAGE === */
.home-grid-top{
  display:block !important;
}
.home-grid-top > .paper-card{
  width:100%;
  box-sizing:border-box;
}
.at-glance{
  grid-template-columns:repeat(7,1fr) !important;
  gap:7px !important;
}
.glance-item{
  min-width:0;
  padding:11px 5px !important;
}
.glance-icon{
  margin-bottom:2px !important;
}
.glance-label{
  min-height:30px !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:center !important;
  margin-top:0 !important;
  margin-bottom:14px !important;
  font-size:10.5px !important;
  line-height:1.15 !important;
}
.glance-value{
  font-size:14px !important;
  line-height:1.22 !important;
}
.home-grid-bottom{
  grid-template-columns:repeat(4,1fr) !important;
}
.about-mini{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.about-mini img{
  width:86px;
  height:86px;
  object-fit:cover;
  object-position:center top;
  border-radius:50%;
  border:4px solid #fff;
  box-shadow:0 5px 14px rgba(0,0,0,.12);
  margin:4px auto 10px;
}
.about-mini p{
  margin:0 0 12px;
  color:#53677a;
  line-height:1.45;
  font-size:14px;
}
.about-mini .cta{
  align-self:flex-start;
}
.quick-link{
  display:inline-block;
  margin-top:12px;
  color:var(--navy);
  font-weight:800;
  text-decoration:none;
}
.home-instagram{
  margin:14px 0 0;
}
.home-instagram a{
  color:var(--navy);
  font-weight:800;
  text-decoration:none;
}
.home-dynamic-body{
  color:#53677a;
  line-height:1.6;
}
.home-dynamic-body p:first-child{margin-top:0}
.home-dynamic-body p:last-child{margin-bottom:0}
.home-dynamic-body ul,.home-dynamic-body ol{
  padding-left:22px;
  line-height:1.65;
}
.home-week-loading,.home-week-error{
  padding:16px 0 8px;
  color:var(--muted);
}
@media(max-width:1000px){
  .at-glance{grid-template-columns:repeat(4,1fr) !important}
}
@media(max-width:900px){
  .home-grid-bottom{grid-template-columns:1fr 1fr !important}
}
@media(max-width:650px){
  .at-glance{grid-template-columns:1fr 1fr !important}
}
@media(max-width:600px){
  .home-grid-bottom{grid-template-columns:1fr !important}
}


/* Dynamic Donor's Choose + Gift Card callouts inside FUN EXTRAS */
.wish-callout{
  margin:0 25px 18px;
  padding:15px 16px;
  border-radius:13px;
  line-height:1.55;
}
.wish-callout:last-child{margin-bottom:25px}
.wish-callout-title{
  color:var(--navy);
  font-weight:800;
  margin-bottom:7px;
}
.wish-callout-body{color:#3d5264}
.wish-callout-body p:first-child{margin-top:0}
.wish-callout-body p:last-child{margin-bottom:0}
.wish-callout-body a{
  color:var(--navy);
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:3px;
}
.wish-callout-body a::after{content:" ↗";font-size:.85em}
.donors-callout{background:#eef4f8;border:1px solid #d6e3eb}
.gift-callout{background:#fff8df;border:1px solid #ecd995}


/* === LUNCH MENU PAGE + HOMEPAGE TILE === */
.lunch-menu-card{
  max-width:760px;
  margin:0 auto;
  text-align:center;
}
.lunch-menu-card h2{
  font-family:'Patrick Hand',cursive;
  color:var(--navy);
  font-size:34px;
  margin:8px 0 10px;
}
.lunch-menu-card p{line-height:1.6}
.lunch-menu-icon{
  font-size:62px;
  line-height:1;
  margin-bottom:8px;
}
.lunch-menu-button{margin-top:10px}
.lunch-menu-note{
  margin:16px 0 0;
  color:var(--muted);
  font-size:13px;
}
.lunch-home-card{
  display:flex;
  flex-direction:column;
}
.lunch-home-card p{
  color:#53677a;
  line-height:1.5;
}
.lunch-home-icon{
  font-size:44px;
  line-height:1;
  margin:6px 0 6px;
}
.lunch-home-card .cta{
  align-self:flex-start;
  margin-top:auto;
}
.home-grid-bottom{
  grid-template-columns:repeat(5,1fr) !important;
}
@media(max-width:1150px){
  .home-grid-bottom{grid-template-columns:repeat(3,1fr) !important}
}
@media(max-width:800px){
  .home-grid-bottom{grid-template-columns:1fr 1fr !important}
}
@media(max-width:600px){
  .home-grid-bottom{grid-template-columns:1fr !important}
}


/* === NAV + HOMEPAGE GRID REFINEMENTS === */

/* Keep the full desktop navigation on one row by tightening spacing slightly. */
.nav-inner{
  gap:4px !important;
  flex-wrap:nowrap !important;
}
.nav-link{
  padding:10px 9px !important;
  font-size:13px !important;
  white-space:nowrap !important;
}
.nav-link .icon{
  margin-right:4px !important;
  font-size:14px !important;
}

/* Let the lower homepage cards expand evenly to fill the available width. */
.home-grid-bottom{
  display:grid !important;
  width:100% !important;
  grid-template-columns:repeat(5, minmax(0, 1fr)) !important;
  gap:16px !important;
  align-items:stretch !important;
}
.home-grid-bottom > .paper-card{
  min-width:0 !important;
  width:auto !important;
  max-width:none !important;
  height:100% !important;
}

/* More adaptive breakpoints so the row always uses the full content width. */
@media(max-width:1100px){
  .home-grid-bottom{
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  }
}
@media(max-width:760px){
  .home-grid-bottom{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
}
@media(max-width:520px){
  .home-grid-bottom{
    grid-template-columns:1fr !important;
  }
}

/* Only wrap the nav when the screen is truly tablet/mobile sized. */
@media(max-width:900px){
  .nav-inner{
    flex-wrap:wrap !important;
    justify-content:center !important;
  }
  .nav-link{
    padding:9px 8px !important;
    font-size:12.5px !important;
  }
}


/* === FINAL NAV + HOMEPAGE WIDTH FIX === */

/* Desktop: nine equal tabs, full visual font/icon size, but shorter/tighter buttons. */
.nav-inner{
  width:min(1400px,100%) !important;
  margin:auto !important;
  display:grid !important;
  grid-template-columns:repeat(9,minmax(0,1fr)) !important;
  gap:0 !important;
}
.nav-link{
  min-height:88px !important;
  padding:5px 4px !important;
  font-size:17px !important;
  line-height:1.05 !important;
  white-space:normal !important;
}
.nav-link .icon{
  font-size:29px !important;
  margin:0 0 5px 0 !important;
}

/* Four permanent homepage tiles should always consume the full row. */
.home-grid-bottom{
  width:100% !important;
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:20px !important;
  align-items:stretch !important;
}
.home-grid-bottom > .paper-card{
  min-width:0 !important;
  width:100% !important;
  max-width:none !important;
  height:100% !important;
  box-sizing:border-box !important;
}

/* Tablet/mobile behavior. */
@media(max-width:980px){
  .nav-inner{
    grid-template-columns:repeat(4,1fr) !important;
  }
  .nav-link{
    min-height:82px !important;
    font-size:16px !important;
  }
  .nav-link .icon{
    font-size:27px !important;
  }
  .home-grid-bottom{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:560px){
  .nav-inner{
    grid-template-columns:repeat(2,1fr) !important;
  }
  .home-grid-bottom{
    grid-template-columns:1fr !important;
  }
}


/* === HOMEPAGE LAYOUT REFRESH === */

/* Storybook nav: 9 equal tabs, original-ish font/icon size, no second row on desktop */
.navbar{
  background:var(--navy);
  border-top:2px dashed rgba(255,255,255,.35);
  border-bottom:2px dashed rgba(255,255,255,.35);
}
.nav-inner{
  width:min(1480px,100%) !important;
  margin:auto !important;
  display:grid !important;
  grid-template-columns:repeat(9,minmax(0,1fr)) !important;
  gap:0 !important;
}
.nav-link{
  min-height:84px !important;
  color:#fff;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  border-right:1px dashed rgba(255,255,255,.28);
  font-family:'Patrick Hand',cursive;
  font-size:17px !important;
  line-height:1.08 !important;
  padding:6px 4px !important;
  white-space:normal !important;
}
.nav-link:last-child{border-right:0}
.nav-link .icon{
  font-size:28px !important;
  margin:0 0 5px 0 !important;
  line-height:1;
}
.nav-label{display:block}
.icon-image{display:flex;align-items:center;justify-content:center}
.nav-icon-img{
  width:28px;
  height:28px;
  object-fit:contain;
  display:block;
}
.nav-link:hover,.nav-link.active{
  background:var(--gold);
  color:var(--navy);
}

.home-feature{
  padding:18px 26px 22px;
}
.home-feature-title{
  font-size:34px !important;
  margin:8px 0 16px !important;
}
.at-glance-home{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:0;
  text-align:center;
  margin-top:4px;
}
.at-glance-home .glance-item{
  padding:14px 16px 16px;
  border-right:1px solid #e0d7c7;
}
.at-glance-home .glance-item:last-child{border-right:0}
.at-glance-home .glance-icon{
  font-size:46px;
  line-height:1;
  margin-bottom:10px;
}
.at-glance-home .glance-label{
  display:inline-block;
  font-size:13px;
  padding:5px 16px;
  border-radius:12px;
  font-weight:800;
  margin:0 0 10px;
}
.at-glance-home .glance-value{
  font-size:20px;
  line-height:1.35;
  font-weight:800;
}
.at-glance-home .glance-item:nth-child(1) .glance-label{background:#f9dbe2}
.at-glance-home .glance-item:nth-child(2) .glance-label{background:#deedd9}
.at-glance-home .glance-item:nth-child(3) .glance-label{background:#e7dcfa}
.at-glance-home .glance-item:nth-child(4) .glance-label{background:#f8e3a6}
.at-glance-home .glance-item:nth-child(5) .glance-label{background:#cfe6fb}
.at-glance-home .glance-item:nth-child(6) .glance-label{background:#dff0d9}
.at-glance-home .glance-item:nth-child(7) .glance-label{background:#fde2a6}

.home-grid-four{
  margin-top:20px;
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:20px;
  align-items:stretch;
}
.home-tile{
  display:flex;
  flex-direction:column;
  min-width:0;
  height:100%;
}
.home-tile-header{
  display:inline-block;
  align-self:flex-start;
  font-family:'Patrick Hand',cursive;
  font-size:26px;
  color:var(--navy);
  padding:5px 18px;
  border-radius:8px;
  margin-bottom:12px;
}
.home-tile-header.pink{background:#f5d8e1}
.home-tile-header.green{background:#dbeccc}
.home-tile-header.yellow{background:#f7edc8}
.home-tile-header.blue{background:#d8eaf8}

.about-home-card{
  background:rgba(255,243,247,.96);
}
.about-home-body{
  display:flex;
  gap:16px;
  align-items:flex-start;
  margin:2px 0 12px;
}
.about-home-body img{
  width:90px;
  height:90px;
  border-radius:50%;
  object-fit:cover;
  object-position:center top;
  border:4px solid #fff;
  box-shadow:0 4px 10px rgba(0,0,0,.10);
  flex:0 0 90px;
}
.about-home-copy p{
  margin:0;
  font-size:14px;
  line-height:1.55;
}

.lookahead-home-card{
  background:rgba(244,252,241,.96);
}
.lookahead-home-card .home-dynamic-body{
  font-size:14px;
  line-height:1.45;
}
.lookahead-home-card .home-dynamic-body p,
.lookahead-home-card .home-dynamic-body li{
  margin:0 0 8px;
}
.lookahead-home-card .home-dynamic-body ul{
  padding-left:18px;
  margin:0 0 8px;
}

.story-lunch-card{
  background:rgba(255,250,235,.96);
}
.lunch-card-body{
  display:flex;
  gap:16px;
  align-items:center;
  margin:2px 0 12px;
}
.lunch-home-illustration{
  width:110px;
  height:110px;
  object-fit:contain;
  flex:0 0 110px;
}
.story-lunch-card p{
  margin:0;
  font-size:14px;
  line-height:1.6;
}

.connect-home-card{
  background:rgba(242,249,255,.96);
}
.connect-home-card p{
  margin:0 0 12px;
}
.go-falcons{
  font-family:'Patrick Hand',cursive;
  color:var(--navy);
  font-size:34px;
  line-height:1.1;
}
.home-instagram{
  margin-top:14px;
  font-weight:800;
}
.home-instagram a{
  color:var(--navy);
  text-decoration:none;
}
.ig-camera{font-size:20px;vertical-align:-2px}

.cta.blue{background:#1673c7;color:#fff;box-shadow:0 3px 0 #0f5b9c}
.cta.green{background:#1f9b34;color:#fff;box-shadow:0 3px 0 #17752a}
.cta.orange{background:#ff8a15;color:#fff;box-shadow:0 3px 0 #d46b06}

.story-lunch-menu-card{
  max-width:760px;
  margin:0 auto;
  text-align:center;
}
.lunch-menu-story-icon{
  width:140px;
  height:140px;
  object-fit:contain;
  margin:0 auto 10px;
  display:block;
}

/* Desktop width for the full site */
.content{
  width:min(1480px,calc(100% - 32px));
}
.hero-image-wrap{
  max-width:1540px;
  margin:0 auto;
}

/* Responsive behavior */
@media(max-width:1150px){
  .home-grid-four{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .about-home-body, .lunch-card-body{
    flex-direction:column;
    align-items:flex-start;
  }
  .at-glance-home .glance-item{
    border-right:0;
    border-bottom:1px solid #e0d7c7;
  }
}
@media(max-width:980px){
  .nav-inner{
    grid-template-columns:repeat(3,1fr) !important;
  }
}
@media(max-width:680px){
  .home-grid-four{
    grid-template-columns:1fr !important;
  }
  .nav-inner{
    grid-template-columns:repeat(2,1fr) !important;
  }
}


/* === HOMEPAGE + LUNCH ICON TUNING V2 === */

/* Slightly narrower content so the 4 bottom tiles sit at a comfortable standard width */
.content{
  width:min(1260px,calc(100% - 32px)) !important;
}

/* Bottom homepage tiles: smaller and tighter */
.home-grid-four{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:16px !important;
}

.home-tile{
  padding:18px !important;
}

.home-tile-header{
  font-size:22px !important;
  padding:5px 14px !important;
  margin-bottom:10px !important;
}

.about-home-body{
  gap:12px !important;
  margin:2px 0 10px !important;
}
.about-home-body img{
  width:76px !important;
  height:76px !important;
  flex:0 0 76px !important;
}
.about-home-copy p,
.story-lunch-card p,
.lookahead-home-card .home-dynamic-body,
.connect-home-card p{
  font-size:13px !important;
  line-height:1.5 !important;
}

.lunch-card-body{
  gap:12px !important;
  margin:2px 0 10px !important;
}
.lunch-home-illustration{
  width:88px !important;
  height:88px !important;
  flex:0 0 88px !important;
}

.go-falcons{
  font-size:30px !important;
}
.home-instagram{
  font-size:13px !important;
  margin-top:10px !important;
}

.home-tile .cta{
  padding:9px 14px !important;
  font-size:15px !important;
}

/* Lunch Menu page icon: clean crop only, no extra text */
.story-lunch-menu-card{
  max-width:720px !important;
}
.lunch-menu-story-icon{
  width:120px !important;
  height:120px !important;
  object-fit:contain !important;
  margin:0 auto 12px !important;
  display:block !important;
}

/* Keep 4 across on normal desktop; switch only when genuinely narrower */
@media(max-width:1120px){
  .home-grid-four{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:680px){
  .home-grid-four{
    grid-template-columns:1fr !important;
  }
}


/* === THIS WEEK AT A GLANCE REFINEMENT === */

/* Spread the current-week columns evenly across the full width of the card */
.at-glance-home{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(0,1fr)) !important;
  width:100% !important;
  gap:0 !important;
  align-items:start !important;
}

/* Center the content within each subject column */
.at-glance-home .glance-item{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  text-align:center !important;
  padding:18px 10px 18px !important;
  min-width:0 !important;
  border-right:1px solid #e0d7c7 !important;
}
.at-glance-home .glance-item:last-child{
  border-right:0 !important;
}

.at-glance-home .glance-icon{
  margin:0 0 12px 0 !important;
}

.at-glance-home .glance-label{
  margin:0 0 14px 0 !important;
  text-align:center !important;
}

.at-glance-home .glance-value{
  text-align:center !important;
  margin:0 auto !important;
  max-width:95% !important;
}

/* On smaller screens, remove the vertical separators so it stacks more cleanly */
@media(max-width:1150px){
  .at-glance-home .glance-item{
    border-right:0 !important;
    border-bottom:1px solid #e0d7c7 !important;
  }
  .at-glance-home .glance-item:last-child{
    border-bottom:0 !important;
  }
}


/* === TRANSPARENT LUNCHBOX ICON TUNE === */
.nav-icon-img{
  width:26px !important;
  height:26px !important;
  object-fit:contain !important;
  display:block !important;
}
.lunch-home-illustration{
  background:transparent !important;
}
.lunch-menu-story-icon{
  background:transparent !important;
}
