/* ===== homepage responsive rules (12.10): tablet ≤1279, mobile ≤767; shared rules are in assets/css/shell.css ===== */
@media screen and (max-width:1279px){
  .hero{height:640px}
  .slide .wrap{padding:40px 0 30px}
  .plate{width:auto;max-width:440px}
  .plate h2{font-size:40px}
  .plate p{font-size:16px}
  .plate .meta div{font-size:14px;padding:8px 12px}
  .hero .cap{right:32px;bottom:60px} /* 28.10: the filter bar overlaps the hero by 40px, keep the caption and the nav row above it */
  .st1{right:24px;top:100px;width:110px;height:110px}
  .st1 b{font-size:26px}
  .st2{right:120px;top:210px;width:96px;height:96px}
  .st2 b{font-size:26px}
  .hero-nav{bottom:60px}
  .search{width:auto;margin:-40px 32px 0;grid-template-columns:1fr 1fr 1fr;padding:8px}
    .panels{height:460px;margin:0 -32px;padding:0 32px}
  .mapgrid{grid-template-columns:1fr}
  .trips .list{flex:none;max-height:360px}
  .about{padding:64px 0 20px}
  .about .cols{grid-template-columns:1fr;gap:40px}
  .about .pic img{height:400px}
  .about h2{font-size:38px}
  .feats{grid-template-columns:1fr 1fr;padding:40px 0 20px}
  .why h2{font-size:40px}
  .gal h2{font-size:40px}
  .gal .head{flex-wrap:wrap;gap:20px}
  .mosaic{grid-template-columns:repeat(3,1fr);grid-auto-rows:200px}
  .mosaic .pol:nth-child(6){grid-column:span 1}
  .envs{gap:24px}
  .env .letter p{font-size:15px;max-width:none}
}
@media screen and (max-width:1023px){
  .hero .cap{bottom:124px} /* 20.10: above the slider nav row (bottom:60px + 52px + gap), it covered the counter at 768px */
  .plate{max-width:calc(50vw - 48px)}
  .plate .meta{gap:6px}
  .plate .meta div{font-size:13px;padding:8px 10px}
  .st1{top:130px;right:16px}
  .st2{top:240px;right:110px}
  .search label{padding:8px 14px 10px}
  .search select{font-size:14px}
  .envs{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:32px;gap:28px;margin:48px -32px 0;padding:20px 0 24px 32px;scrollbar-width:none}
  .envs::after{content:"";flex:0 0 4px} /* right gap of the last envelope (Safari ignores padding-right in a scroll container) */
  .envs::-webkit-scrollbar{display:none}
  .env{flex:0 0 340px;scroll-snap-align:start;top:0}
  .why .grid{gap:18px}
  .why .s{width:180px;height:180px;padding:18px}
  .why .s b{font-size:34px}
}
@media screen and (max-width:767px){
  .search{margin:-24px 16px 0;grid-template-columns:1fr;padding:6px} /* must live here, after the ≤1279 rule above: shell.css loads earlier and would lose (regression of 19.10, fixed 20.10) */
  /* hero: photo on top, raspberry text below, no stickers or caption */
  .hero{height:840px;background:linear-gradient(180deg,var(--orange) 360px,var(--orange-deep) 100%)} /* 03.11: client request, the raspberry part is a gradient (mobile only); it starts at the photo edge so the fade below matches */
  .slide .bg{left:0;width:100%;height:360px;transform:none;transition:none} /* 03.11: no zoom on mobile at all, the 6% scale pushed ~11px of photo below the 360px gradient and showed as a strip under the fade */
  .slide::after{left:0;height:360px;background:linear-gradient(180deg,rgba(var(--ink-rgb),.45),transparent 50%,transparent 72%,var(--orange) 100%)} /* 03.11: the photo melts into the raspberry instead of a hard edge */
  .slide::before{display:none}
  .slide .wrap{display:block;padding:384px 0 0}
  .plate{max-width:none}
  .plate .kicker{font-size:11px}
  .plate h2{font-size:32px;margin-top:10px;max-width:none}
  .plate p{font-size:15px;margin-top:10px}
  .plate .meta{gap:6px;margin-top:16px}
  .plate .meta div{font-size:13px;padding:8px 10px}
  .plate .meta small{font-size:10px}
  .plate .acts{margin-top:16px;gap:8px}
  .plate .acts .pill{flex:1;padding:0 12px;font-size:14px}
  .hero .cap,.st1,.st2{display:none}
  .hero{height:800px}
  .hero-nav{bottom:40px} /* 28.10: the filter bar overlaps the hero by 24px, the row was cut */
  .hero-nav .arr{width:44px;height:44px;flex:none} /* 20.10: nothing shrinks, the row fits 375px: 3×44 + counter + dots */
  .hero-nav .wrap{gap:8px}
  .dots{margin:0;gap:6px;flex:1 1 auto;min-width:0;justify-content:center}
  .dots button{width:20px}
  .dots button.on{width:36px}
  .hero-nav .cnt{flex:none}
  .hero-nav .cnt{white-space:nowrap;font-size:13px;padding:6px 10px}
    .search label{border-right:0;border-bottom:2px solid var(--sand);padding:8px 14px 10px}
  .search label:nth-of-type(3){border-bottom:2px solid var(--sand)}
  .marquee{font-size:16px;padding:12px 0}
  .marquee span{margin:0 16px}
  .marquee span::before{margin-right:16px}
  .panels{height:400px;margin:0 -16px;padding:0 0 0 16px;gap:12px;scroll-padding-inline:16px} /* first/last panel 16px from the screen edge */
  .panels::after{content:"";flex:0 0 4px}
  .panels.many .panel{flex:0 0 72vw}
  .panels.many .panel:hover{flex-basis:72vw} /* a mouse on a narrow window: no accordion */
  .panel{padding:20px 18px}
  .panel h3{font-size:22px}
  .pnav{display:none}
  .tabs{width:100%;justify-content:space-between}
  .tabs button{padding:9px 12px;font-size:14px;flex:1}
  .map{border-radius:18px}
  .map .hint{display:none}
  .trips{padding:20px}
  .trips h3{font-size:26px}
  .about .pic img{height:280px;border-radius:20px}
  .about h2{font-size:30px}
  .about .lead{font-size:16px}
  .stats{gap:8px}
  .stat{padding:12px 12px}
  .stat b{font-size:26px}
  .stat span{font-size:12px}
  .feats{grid-template-columns:1fr;gap:14px}
  .why{padding:40px 0 60px}
  .why h2{font-size:30px}
  .why .grid{gap:12px;margin-top:28px}
  .why .s{width:150px;height:150px;padding:12px;font-size:13px;margin-top:0!important}
  .why .s b{font-size:28px}
  .gal{padding:48px 0 10px}
  .gal h2{font-size:30px}
  .gal .head p{font-size:16px}
  .gchips{flex-wrap:wrap}
  .gchips button{padding:8px 12px;font-size:13px}
  .mosaic{grid-template-columns:1fr 1fr;grid-auto-rows:150px;gap:10px;margin-top:24px}
  .mosaic .pol{border-radius:14px}
  .mosaic .pol .cap{padding:30px 10px 10px;font-size:12px}
  .post{padding:20px 0 60px}
  .post h2{font-size:30px}
  .post .sub{font-size:16px}
  .envs{margin:32px -16px 0;padding:16px 0 20px 16px;gap:20px;scroll-padding-inline:16px}
  .envs::after{flex-basis:0}
  .env{flex:0 0 300px;height:430px}
  .env .letter{left:14px;right:14px;padding:18px 18px}
  .env .letter p{font-size:14px;line-height:28px}
}