/* =====================================================================
   Season Trends â€” Allied Pinnacle
   Styles for the "Season Trends page" block pattern (core blocks only).
   Everything is scoped to .season-trends so it can't leak into the theme.
   ===================================================================== */

@font-face{font-family:'Fall in Love';src:url('../fonts/fall-in-love.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Gloock';src:url('../fonts/gloock-regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Sharp Grotesk SB20';src:url('../fonts/sharp-grotesk-semibold20.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Sharp Grotesk SB25';src:url('../fonts/sharp-grotesk-semibold25.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}

.season-trends{
  /* Offset for the sticky section nav. Set this to the live site's sticky header height, e.g.
     .season-trends{--st-sticky-top:94px} in Customizer > Additional CSS / theme.json custom CSS. */
  --st-sticky-top:0px;

  --st-deep:#231c17;
  --st-gold:#bfa66c;
  --st-gold-hi:#cdb782;
  --st-gold-ink:#7a6534;
  --st-cream:#fbf7ef;
  --st-cream-2:#f1e8d6;
  --ink:#231c17;
  --ink-2:#5a4e44;
  --ink-3:#8a7d70;
  --line:#e3d8c3;
  --st-green:#3f6750;
  --st-red:#c91c23;
  --charcoal:#36393b;
  --white:#ffffff;
  --script:'Fall in Love','Brush Script MT',cursive;
  --display:'Gloock',Georgia,'Times New Roman',serif;
  --body:'Mulish','Helvetica Neue',Arial,sans-serif;
  --gutter:clamp(16px,4vw,48px);
  --max:1280px;

  --ap-blue:#013c56;
  --ap-yellow:#ffd602;
  --ap-ink:#1b2b33;
  --ap-grey-300:#d8e1e5;
  --ap-head:'Sharp Grotesk SB20','Space Grotesk',sans-serif;
  --ap-body:'Figtree',-apple-system,BlinkMacSystemFont,sans-serif;

  background:var(--white);
  color:var(--ink);
  font-family:var(--body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

/* ---------- Neutralise block-layout spacing & theme defaults inside the page ---------- */
body .season-trends,
body .season-trends *,
body .season-trends *::before,
body .season-trends *::after{box-sizing:border-box}
body .season-trends{margin-block:0;padding:0}
.season-trends :is(.is-layout-flow,.is-layout-constrained,.is-layout-flex) > *,
.season-trends .wp-block-group > *{margin-block:0}
.season-trends .wp-block-image{margin:0}
.season-trends .wp-block-image img{display:block;max-width:100%;border-radius:0}
.season-trends :is(h1,h2,h3,p,ul){margin:0}
.season-trends a{color:inherit}
.season-trends a:focus-visible,.season-trends button:focus-visible{outline:3px solid var(--st-gold);outline-offset:2px}
.season-trends .wp-block-buttons{gap:0}
.season-trends .wp-block-button__link{border-radius:0;border:0;box-shadow:none}

.season-trends .wrap{max-width:var(--max);margin-inline:auto;padding-inline:var(--gutter)}
.season-trends .display{font-family:var(--display);font-weight:400;letter-spacing:-.005em;line-height:1.05;text-wrap:balance}

/* ---------- Buttons ---------- */
.season-trends .st-btn .wp-block-button__link{border:0;border-radius:0;display:inline-flex;align-items:center;gap:10px;font:700 15px/1.2 var(--body);text-decoration:none;padding:15px 24px;cursor:pointer;background:var(--st-red);color:#fff;text-transform:uppercase;letter-spacing:.06em;transition:transform .15s ease,background .15s ease}
.season-trends .st-btn .wp-block-button__link:hover{background:#a8161c;color:#fff;transform:translateY(-1px)}

/* ---------- Section nav ---------- */
html:has(.season-trends){scroll-behavior:smooth}
.season-trends .st-subnav{position:sticky;top:var(--st-sticky-top);z-index:30;background:#fff;border-bottom:1px solid var(--ap-grey-300);margin-bottom:clamp(20px,3vw,32px)}
body.admin-bar .season-trends .st-subnav{top:calc(var(--st-sticky-top) + 32px)}
@media (max-width:782px){body.admin-bar .season-trends .st-subnav{top:calc(var(--st-sticky-top) + 46px)}}
@media (max-width:600px){body.admin-bar .season-trends .st-subnav{top:var(--st-sticky-top)}}
.season-trends .st-subnav__in{max-width:var(--max);margin-inline:auto;padding-inline:var(--gutter);display:flex;gap:clamp(20px,4vw,44px);overflow-x:auto;scrollbar-width:none}
.season-trends .st-subnav__in::-webkit-scrollbar{display:none}
.season-trends .st-subnav a{flex-shrink:0;padding:16px 0 13px;font-family:var(--ap-body);font-weight:600;font-size:16px;color:var(--ap-blue);text-decoration:none;border-bottom:3px solid transparent;transition:border-color .18s ease,color .18s ease}
.season-trends .st-subnav a:hover{border-bottom-color:var(--ap-grey-300)}
.season-trends .st-subnav a[aria-current="true"]{border-bottom-color:var(--ap-yellow)}
.season-trends .st-subnav a:focus-visible{outline:3px solid var(--ap-yellow);outline-offset:2px}
.season-trends #current-issue,.season-trends #trends-gallery,.season-trends #previous-issues{scroll-margin-top:calc(var(--st-sticky-top) + 56px)}

/* ---------- Hero (single artwork, live text overlaid) ----------
   All hero measurements are in artwork units: 2400 x 900 artboard, 1cqw = 24 artwork px */
.season-trends .hero-frame{position:relative;container-type:inline-size;overflow:hidden;background:var(--st-cream)}
.season-trends .hero-art img{width:100%;height:auto;aspect-ratio:2400/900;object-fit:cover}
.season-trends .hero-text{position:absolute;inset:0;pointer-events:none}
.season-trends .ht-title{font-weight:400;font-size:inherit;line-height:1}
.season-trends .ht-season{position:absolute;left:3.8%;top:8.6%;font-family:var(--script);color:var(--st-red);font-size:8.9cqw;line-height:1;white-space:nowrap}
.season-trends .ht-trends{position:absolute;left:25.4%;top:7.6%;font-family:var(--display);color:var(--st-gold);font-size:8.8cqw;line-height:1;letter-spacing:-.005em;white-space:nowrap}
.season-trends .ht-row{position:absolute;left:5.75%;top:31.4%;display:flex;align-items:center;gap:.5cqw}
.season-trends .ht-edition{white-space:nowrap;font-family:var(--body);font-weight:700;color:var(--st-red);font-size:1.45cqw;line-height:1}
.season-trends .ht-strip{height:2.5cqw;padding:0 .8cqw;display:flex;align-items:center;justify-content:center;background:var(--st-green);color:#fff;font-family:var(--body);font-weight:500;font-size:1.47cqw;line-height:1;white-space:nowrap}
.season-trends .bb{position:absolute;width:13%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:.55cqw;text-align:center;color:#fff}
.season-trends .bb-t{font-family:var(--body);font-weight:600;text-transform:uppercase;font-size:1.36cqw;line-height:1.14;letter-spacing:.03em;color:#fff}
.season-trends .bb-d{font-family:var(--body);font-weight:500;font-size:1.2cqw;line-height:1.22;white-space:nowrap;color:#fff}
.season-trends .bb-1{left:62.9%;top:55.6%}
.season-trends .bb-2{left:77.5%;top:38.8%}
.season-trends .bb-3{left:91.7%;top:59.4%}
.season-trends .hero-btn{position:absolute;left:5.75%;bottom:15.33%;z-index:2}

/* ---------- Section heads ---------- */
.season-trends .section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.season-trends .section-head h2{font-size:clamp(30px,3.4vw,40px);color:var(--st-red)}
.season-trends .section-head .sub{margin:6px 0 0;color:var(--ink-2);font-size:16px}

/* ---------- In this issue ---------- */
.season-trends .issue{padding-block:56px 72px;display:flex;flex-direction:column;gap:28px}
.season-trends .issue .section-head{align-items:center}
.season-trends .brochures{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}
.season-trends .brochure{display:flex;flex-direction:column;background:var(--white);border:1px solid var(--line);overflow:hidden}
.season-trends .card-img img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.season-trends .brochure-body{padding:20px;display:flex;flex-direction:column;gap:8px;border-top:3px solid var(--st-gold)}
.season-trends .brochure h3{text-transform:unset;font-family:var(--display);font-weight:400;font-size:26px;line-height:1.15;color:var(--st-green)}
.season-trends .brochure h3 .script{font-family:var(--script);font-weight:400;font-size:1.3em;color:var(--st-gold);line-height:1}
.season-trends .brochure p{color:var(--charcoal);font-size:17px}
.season-trends .brochure .recipes-label{margin-top:8px;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--st-gold-ink)}
.season-trends .brochure .recipes{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.season-trends .brochure .recipes li{position:relative;margin:0;padding-left:16px;font-size:17px;line-height:1.4;color:var(--charcoal)}
.season-trends .brochure .recipes li::before{content:"";position:absolute;left:0;top:.5em;width:6px;height:6px;transform:rotate(45deg);background:var(--st-gold)}

/* ---------- Shared: AP-branded section heads (Previous + Gallery) ---------- */
.season-trends :is(.previous,.gallery){font-family:var(--ap-body)}
.season-trends :is(.previous,.gallery) .section-head h2{font-family:var(--ap-head);font-weight:600;font-size:28px;color:var(--ap-blue);display:inline-block;text-transform:uppercase;letter-spacing:0;line-height:1;padding:0 .45em 0 .55em;margin-left:-.1em;margin-bottom:10px;background:linear-gradient(to bottom,transparent 0 44%,var(--ap-yellow) 44% 96%,transparent 96%);background-repeat:no-repeat}
.season-trends :is(.previous,.gallery) .section-head .sub{font-family:var(--ap-body);font-size:18px;color:var(--ap-blue);margin:6px 0 0}

/* Download arrow, drawn in CSS so editors never see SVG code in the button text */
.season-trends :is(.prev-cta,.tile-cta) .wp-block-button__link::after{content:"";width:15px;height:15px;flex-shrink:0;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 2v9m0 0 4-4m-4 4L4 7M3 14h10' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 2v9m0 0 4-4m-4 4L4 7M3 14h10' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.season-trends :is(.prev-cta,.tile-cta) .wp-block-button__link{border-radius:0;display:inline-flex;align-items:center;gap:7px;font-family:var(--ap-body);font-size:15px;font-weight:600;line-height:1.2;color:var(--ap-blue);background:var(--ap-yellow);padding:10px 16px;text-decoration:none;white-space:nowrap;transition:background .18s ease,color .18s ease}
.season-trends :is(.prev-cta,.tile-cta) .wp-block-button__link:is(:hover,:focus-visible){background:var(--ap-blue);color:#fff}
.season-trends :is(.prev-cta,.tile-cta) .wp-block-button__link:focus-visible{outline:3px solid var(--ap-yellow);outline-offset:2px}

/* ---------- Previous Season Trends ---------- */
.season-trends .previous{background:#eaf2f5}
.season-trends .previous .wrap{padding-block:64px 80px;display:flex;flex-direction:column;gap:32px}
.season-trends .prev-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.season-trends .prev-card{display:flex;flex-direction:column;border:1px solid var(--ap-grey-300);background:#fff}
.season-trends .prev-card .wp-block-image img{width:100%;height:auto;aspect-ratio:739/521;object-fit:cover}
.season-trends .prev-body{padding:18px 20px 22px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:1}
.season-trends .prev-body h3{font-family:var(--ap-body);font-weight:600;font-size:24px;line-height:1.15;color:var(--ap-blue);text-transform: unset;}
.season-trends .prev-body h3 span{font-weight:500;font-size:16px;color:#4f6f80}
.season-trends .prev-body p{margin:0 0 6px;font-size:16px;line-height:1.5;color:var(--ap-blue);flex:1;font-weight: 400;}
@media (max-width:900px){.season-trends .prev-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.season-trends .prev-grid{grid-template-columns:1fr}}

/* ---------- Trends Gallery ---------- */
.season-trends .gallery{background:#fff}
.season-trends .gallery .wrap{padding-block:64px 72px;display:flex;flex-direction:column;gap:32px}
/* Without JS (and in the editor) the tiles sit in a plain grid; the script re-packs them into balanced columns */
.season-trends .masonry{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
.season-trends .m-col{display:flex;flex-direction:column;gap:24px;min-width:0}
.season-trends .tile{display:flex;flex-direction:column;background:var(--white);border:1px solid var(--ap-grey-300);overflow:hidden;color:inherit}
.season-trends .tile-body{padding:18px 20px 20px;display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.season-trends .tile-text{display:flex;flex-direction:column;gap:4px;width:100%}
.season-trends .tile h3{font-family:var(--ap-body);font-weight:600;font-size:24px;line-height:1.12;letter-spacing:0;color:var(--ap-blue);text-transform: unset;}
.season-trends .tile-desc{margin:2px 0 0;font-family:var(--ap-body);font-size:16px;color:var(--ap-blue);font-weight: 400;}

/* Carousel: slides stack until the script marks it ready (keeps every slide editable in the editor) */
.season-trends .carousel{position:relative;overflow:hidden;max-width:100%}
.season-trends .car-track{display:grid;gap:2px}
.season-trends .slide{position:relative;margin:0}
.season-trends .slide img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3}
.season-trends .slide::before{content:"";position:absolute;left:0;right:0;bottom:0;height:45%;z-index:1;background:linear-gradient(to top,rgba(10,20,26,.62) 0%,rgba(10,20,26,.28) 55%,rgba(10,20,26,0) 100%);pointer-events:none}
.season-trends .slide figcaption{position:absolute;left:18px;bottom:16px;z-index:2;margin:0;max-width:calc(100% - 70px);text-align:left;font-family:var(--ap-body);font-weight:600;font-size:16px;line-height:1.25;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35)}

.season-trends .carousel.is-ready.short{aspect-ratio:4/3}
.season-trends .carousel.is-ready.tall{aspect-ratio:4/5}
.season-trends .carousel.is-ready.tall-112{aspect-ratio:1/1.12}
.season-trends .carousel.is-ready.square{aspect-ratio:1/1}
.season-trends .carousel.is-ready .car-track{display:flex;gap:0;height:100%;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.season-trends .carousel.is-ready .slide{flex:0 0 100%;height:100%}
.season-trends .carousel.is-ready .slide img{aspect-ratio:auto;height:100%}
.season-trends .car-btn{position:absolute;top:50%;z-index:3;width:44px;height:44px;margin-top:-22px;display:grid;place-items:center;border:0;padding:0;background:none;color:#fff;cursor:pointer;filter:drop-shadow(0 1px 3px rgba(0,0,0,.55));transition:transform .15s ease}
.season-trends .car-btn svg{width:26px;height:26px}
.season-trends .car-btn:hover{transform:scale(1.15)}
.season-trends .car-btn:focus-visible{outline:3px solid var(--ap-yellow);outline-offset:2px}
.season-trends .car-prev{left:6px}
.season-trends .car-next{right:6px}

/* ---------- Responsive ---------- */
@media (max-width:900px){.season-trends .masonry{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){
  .season-trends .hero-frame{overflow:visible;display:flex;flex-direction:column;gap:16px;background:none}
  .season-trends .hero-text{bottom:auto;aspect-ratio:2400/900}
  .season-trends .hero-btn{position:static}
  .season-trends .hero-btn .wp-block-button,.season-trends .hero-btn .wp-block-button__link{width:100%;justify-content:center}
}
@media (max-width:560px){.season-trends .masonry{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){
  html:has(.season-trends){scroll-behavior:auto}
  .season-trends *{transition:none!important}
}

/* ---------- Editor: keep the absolutely-positioned hero text clickable ---------- */
.editor-styles-wrapper .season-trends .hero-text{pointer-events:auto}
.editor-styles-wrapper .season-trends .st-subnav{position:static}
