/* A complete open flyer in the hero. All page dimensions scale together;
   expanded/list and print views retain their full service descriptions. */
@media screen {
  .idea-magazine { container-type:inline-size; --spread-ratio:1.72; }
  .idea-magazine .flyer-toolbar { padding:7px 0; gap:12px; font-size:9px; }
  .idea-magazine .flyer-toolbar span:last-child { max-width:none; font-size:9px; }
  .idea-magazine .flyer-binding.is-spread {
    width:100%; margin:0 0 9px; border:0; perspective:2200px;
    perspective-origin:50% 45%; transform-style:preserve-3d; overflow:visible;
    box-shadow:0 8px 18px #41320e21;
  }
  .idea-magazine .flyer-binding.is-spread:before,
  .idea-magazine .flyer-binding.is-spread:after {
    display:block; content:""; position:absolute; inset:2px -1px -3px;
    z-index:-1; background:var(--flyer-paper); border:1px solid #b5ac97;
    box-shadow:0 2px 0 #f2e7cd,0 3px 0 #bfb59b; pointer-events:none;
    transform:rotate(.12deg);
  }
  .idea-magazine .flyer-binding.is-spread:after { inset:4px 1px -5px; z-index:-2; transform:rotate(-.12deg); }
  .idea-magazine .flyer-binding.is-spread .flyer-spread {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%; height:calc(100cqw / var(--spread-ratio)); min-height:0;
    gap:0; border:1px solid #8b836e; box-shadow:none; overflow:visible;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-spread:after {
    display:block; content:""; left:50%; top:0; bottom:0;
    width:2.6cqw; transform:translateX(-50%); z-index:3;
    background:linear-gradient(90deg,transparent,#392c1716 40%,#34250d35 49%,#fff9e899 51%,transparent);
    pointer-events:none;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-paper {
    box-sizing:border-box; height:100%; min-height:0; min-width:0;
    padding:1.05cqw 1.15cqw 1.1cqw; display:flex; flex-direction:column;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-paper-heading {
    flex:0 0 auto; gap:.7cqw; padding:0 0 .7cqw; border-bottom:2px solid #2143c6;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-paper-heading b { font-size:4.4cqw; line-height:.98; }
  .idea-magazine .flyer-binding.is-spread .flyer-paper-heading b span { font-size:1.2cqw; padding:.25cqw .15cqw; }
  .idea-magazine .flyer-binding.is-spread .flyer-paper-heading small { font-size:.63cqw; line-height:1.15; margin-top:.3cqw; letter-spacing:.12em; }
  .idea-magazine .flyer-binding.is-spread .flyer-edition {
    font-size:.7cqw; line-height:1.06; padding:.65cqw .5cqw;
    border-width:1px; box-shadow:1px 1px 0 var(--flyer-red);
  }
  .idea-magazine .flyer-binding.is-spread .flyer-issue-line {
    flex:0 0 auto; gap:.5cqw; font-size:.57cqw; line-height:1.2; padding:.45cqw 0;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-paper-banner {
    flex:0 0 auto; gap:.7cqw; padding:.6cqw .7cqw; margin-top:.4cqw; border-bottom-width:1px;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-paper-banner h3 { font-size:1.7cqw; line-height:.98; max-width:none; margin:0; }
  .idea-magazine .flyer-binding.is-spread .flyer-paper-banner>span { font-size:.64cqw; max-width:5.5cqw; }
  .idea-magazine .flyer-binding.is-spread .flyer-items {
    flex:1 1 0; min-height:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:repeat(3,minmax(0,1fr)); grid-auto-rows:minmax(0,1fr);
    align-items:stretch; margin-top:.5cqw;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-items .flyer-item:nth-child(n) {
    display:flex; flex-direction:column; min-width:0; min-height:0; height:auto;
    padding:.5cqw .65cqw .55cqw; align-self:stretch; gap:0;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-item-top {
    flex:0 0 auto; gap:.4cqw; min-height:0; font-size:.59cqw; line-height:1.1;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-item-number,
  .idea-magazine .flyer-binding.is-spread .flyer-item-category { font-size:.59cqw; line-height:1.1; max-width:none; }
  /* Artwork takes the space above one compact title/quote/action group.
     It can yield to a longer title without pushing content out of the card. */
  .idea-magazine .flyer-binding.is-spread .flyer-product-art {
    flex:1 1 7.8cqw; height:7.8cqw; min-height:0; max-height:9cqw;
    margin:.15cqw 0 .15cqw; padding:0;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-product-art .product-packshot {
    display:block; width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-food-label,
  .idea-magazine .flyer-binding.is-spread .flyer-pickup,
  .idea-magazine .flyer-binding.is-spread .flyer-item-copy>ul { display:none; }
  .idea-magazine .flyer-binding.is-spread .flyer-item-copy {
    flex:0 0 auto; min-height:0; padding:0; display:flex; flex-direction:column;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-item h3 {
    flex:0 0 auto; font-size:1.4cqw; line-height:1.03; letter-spacing:-.045em;
    margin:0 0 .1cqw; overflow-wrap:anywhere; hyphens:auto;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-item-bottom {
    display:flex; flex-wrap:nowrap; align-items:flex-end; justify-content:space-between;
    gap:.5cqw; padding-top:.12cqw; margin-top:0; min-width:0;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-price {
    padding:.15cqw 0; min-width:0; max-width:70%; margin:0; line-height:1.1;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-price-prefix { font-size:.57cqw; line-height:1.1; }
  .idea-magazine .flyer-binding.is-spread .flyer-price strong { font-size:2.35cqw; line-height:.95; margin-top:.15cqw; }
  .idea-magazine .flyer-binding.is-spread .flyer-price strong.flyer-quote { font-size:1.55cqw; line-height:1; }
  .idea-magazine .flyer-binding.is-spread .flyer-price small { font-size:.57cqw; line-height:1.15; margin-top:.2cqw; }
  .idea-magazine .flyer-binding.is-spread .flyer-price-featured {
    padding:.35cqw .45cqw; min-width:0; max-width:72%; transform:rotate(-2deg);
    box-shadow:1px 1px 0 #cfac0844;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-item-actions {
    width:auto; display:flex; flex-direction:column; flex-wrap:nowrap;
    align-items:flex-end; justify-content:flex-end; gap:.15cqw; flex-shrink:0;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-details,
  .idea-magazine .flyer-binding.is-spread .flyer-add {
    min-height:1.7cqw; font-size:.76cqw; line-height:1.05;
    padding:.28cqw .35cqw; margin:0; white-space:nowrap;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-details { padding-left:0; padding-right:0; }
  .idea-magazine .flyer-binding.is-spread .flyer-paper-footer {
    flex:0 0 auto; gap:.7cqw; margin-top:auto; padding:.55cqw 1.4cqw 0 0;
    font-size:.53cqw; line-height:1.15; letter-spacing:.015em;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-paper-footer b { font-size:.78cqw; white-space:nowrap; }
  .idea-magazine .flyer-binding.is-spread .flyer-paper-corner { width:2cqw; height:2cqw; }

  /* The left cover is editorial artwork only. The image is never cropped. */
  .idea-magazine .flyer-binding.is-spread .flyer-cover-headline { flex:0 0 auto; padding:1.6cqw .1cqw 1.2cqw; gap:1cqw; }
  .idea-magazine .flyer-binding.is-spread .flyer-cover-headline h3 { font-size:4.5cqw; line-height:.91; }
  .idea-magazine .flyer-binding.is-spread .flyer-cover-headline>span {
    width:7cqw; height:7cqw; flex:0 0 7cqw; font-size:.83cqw; line-height:1.1;
    border-width:1px; box-shadow:1px 1px 0 #2143c6;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-cover-art {
    display:flex; flex-direction:column; flex:1 1 auto; min-height:0;
    margin:0; background:#f4ecd8; overflow:visible;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-cover-art>img {
    display:block; width:100%; height:0; min-height:0; flex:1 1 0;
    aspect-ratio:auto; object-fit:contain; object-position:center;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-cover-art figcaption {
    flex:0 0 auto; padding:.8cqw .65cqw; font-size:.85cqw; line-height:1.15;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-paper-cover .flyer-paper-footer { padding-top:.8cqw; }

  /* Short result pages and the final two monthly services stay compact. */
  .idea-magazine .flyer-binding.is-spread .flyer-paper-partial .flyer-items {
    flex:0 0 auto; grid-template-rows:none; grid-auto-rows:14cqw; align-content:start;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-paper-partial .flyer-items-one { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .idea-magazine .flyer-binding.is-spread .flyer-paper-blank { gap:2cqw; }
  .idea-magazine .flyer-binding.is-spread .flyer-paper-blank>b { font-size:6.5cqw; }
  .idea-magazine .flyer-binding.is-spread .flyer-paper-blank>p { font-size:4.1cqw; line-height:.98; }
  .idea-magazine .flyer-binding.is-spread .flyer-paper-blank>span { font-size:1cqw; }

  /* Front/back leaf faces share the center fold. */
  .idea-magazine .flyer-binding.is-spread .flyer-leaf {
    left:50%; width:50%; bottom:0; transform-origin:left center;
  }
  .idea-magazine .flyer-binding.is-spread .flyer-leaf.is-backward { left:0; transform-origin:right center; }
  .idea-magazine .flyer-binding.is-spread .flyer-leaf-face>.flyer-paper { height:100%; min-height:0; }
  .idea-magazine .flyer-binding.is-spread .flyer-leaf.is-backward .flyer-leaf-edge { left:0; right:auto; transform:translateZ(.6px) scaleX(-1); }
  .idea-magazine .flyer-binding.is-spread .flyer-turn-shadow { left:5%; width:90%; filter:blur(8px); }
  .idea-magazine .flyer-corner-handle { width:30px; height:30px; }
  .idea-magazine .flyer-corner-handle span { font-size:14px; }
  .idea-magazine .flyer-controls { gap:10px; padding:5px 0 3px; }
  .idea-magazine .flyer-turn { min-height:34px; min-width:82px; padding:5px 8px; font-size:10px; gap:6px; }
  .idea-magazine .flyer-turn span { font-size:16px; }
  .idea-magazine .flyer-pagination { gap:4px; }
  .idea-magazine .flyer-page-status { font-size:9px; }
  .idea-magazine .flyer-dot { width:23px; min-width:23px; height:23px; min-height:23px; font-size:9px; }
  .idea-magazine .flyer-help { margin:4px 0 0; font-size:9px; }
  .idea-magazine .flyer-help span { display:none; }
  @container (max-width:520px) {
    .idea-magazine .flyer-toolbar { font-size:8px; padding:5px 0; }
    .idea-magazine .flyer-toolbar span:last-child { max-width:150px; font-size:8px; }
    .idea-magazine .flyer-controls { gap:5px; }
    .idea-magazine .flyer-turn { min-width:66px; min-height:36px; font-size:9px; padding:5px 6px; }
    .idea-magazine .flyer-dots { gap:3px; max-width:none; }
    .idea-magazine .flyer-dot { width:21px; min-width:21px; height:23px; min-height:23px; font-size:8px; }
    .idea-magazine .flyer-page-status { font-size:8px; }
    .idea-magazine .flyer-corner-handle { width:23px; height:23px; }
    .idea-magazine .flyer-corner-handle span { font-size:11px; }
    .idea-magazine .flyer-help { font-size:8px; }
  }
}
