/* FIX-NV1: isolated compact menu; no blur, image or movie changes. */
:root{--return-nav-height:64px}
html{scroll-padding-top:0}
:is(#s1,#pellets,#products,#purchase,#cooperation,#contact){scroll-margin-top:var(--return-nav-height)}
.return-nav{position:fixed;inset:0 0 auto;z-index:19;color:var(--teal);background:#FAFBEFFA;border-bottom:1px solid #1f4c5426;box-shadow:0 2px 8px #1f4c5414;transform:translateY(-110%);pointer-events:none;transition:transform .18s ease}
.return-nav[data-visible=true]{transform:translateY(0);pointer-events:auto}
.return-nav-inner{height:calc(var(--return-nav-height) - 1px);max-width:2160px;margin:auto;padding:0 clamp(16px,4vw,80px);display:flex;align-items:center;gap:clamp(12px,1.4vw,28px)}
.return-nav-inner>img{width:136px;height:auto;max-height:calc(var(--return-nav-height) - 14px);object-fit:contain;flex:none}
.return-nav .nav-menu{display:flex;align-items:center;margin-left:auto;gap:clamp(10px,1.2vw,24px);font-size:clamp(14px,1.1vw,18px);white-space:nowrap}
.return-nav a{text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.return-nav .languages{font-size:14px;white-space:nowrap}
.return-nav .mobile-menu{display:none}
.return-nav .mobile-menu summary{width:44px;height:44px;display:grid;place-items:center;cursor:pointer;list-style:none;border:0;border-radius:3px}
.return-nav .mobile-menu summary:focus-visible{outline:3px solid var(--teal);outline-offset:4px}
.return-nav .mobile-menu summary::-webkit-details-marker{display:none}
.return-nav .mobile-menu summary span,.return-nav .mobile-menu summary span:before,.return-nav .mobile-menu summary span:after{width:22px;height:2px;background:currentColor;display:block}
.return-nav .mobile-menu summary span{position:relative}
.return-nav .mobile-menu summary span:before,.return-nav .mobile-menu summary span:after{content:'';position:absolute;left:0;top:-7px}
.return-nav .mobile-menu summary span:after{top:7px}
.return-nav .mobile-menu nav{position:absolute;left:0;right:0;top:100%;padding:12px 24px;background:#FAFBEF;box-shadow:0 8px 16px #1f4c5420;display:grid;grid-template-columns:1fr 1fr;gap:4px 20px;max-height:calc(100svh - var(--return-nav-height));overflow-y:auto}
.return-nav .mobile-menu nav a{font-size:18px}
@media(max-width:1000px){:root{--return-nav-height:52px}.return-nav-inner>img{width:112px}.return-nav .nav-menu{display:none}.return-nav .languages{margin-left:auto}.return-nav .mobile-menu{display:block}}
@media(max-width:500px){.return-nav .mobile-menu nav{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.return-nav{transition:none}}
/* FIX-NV2: bare handwriting; intact Thai words follow a very shallow arc.
   Rotate the complete line -5deg; each end bends only 1deg so marks stay
   in the same shaped word. No textPath/per-character positioning or JS. */
.purchase-photo{container-type:inline-size}
.purchase-photo .purchase-note{position:absolute;left:8%;top:40%;margin:0;padding:0;max-width:90%;font-size:clamp(24px,2.4vw,40px);line-height:1.35;color:var(--teal);background:none;border:0;border-radius:0;box-shadow:none;text-shadow:none;filter:none;display:flex;align-items:baseline;gap:0;text-align:left;white-space:nowrap;transform:rotate(-5deg);transform-origin:left center}
.purchase-photo .purchase-note span{display:inline-block;white-space:nowrap;transform-origin:center center}
.purchase-photo .purchase-note span:first-child{transform:translateY(.04em) rotate(-1deg)}
.purchase-photo .purchase-note span:last-child{transform:translateY(.04em) rotate(1deg)}
@media(max-width:1000px){.purchase-photo .purchase-note{left:8%;font-size:clamp(21px,5.4vw,27px)}}

/* FIX-EN1: text wrapping only, isolated to English; shared geometry/media/motion stay intact. */
html[lang=en] .title-line{white-space:normal}
html[lang=en] .button,html[lang=en] .button-label{max-width:100%;min-width:0;white-space:normal;text-wrap:wrap;overflow-wrap:anywhere}
html[lang=en] .cooperation-section .rest-heading-row>.rest-note{width:auto;max-width:100%;white-space:normal}
html[lang=en] .footer-wordmark{font-size:clamp(32px,10vw,220px);white-space:normal}
html[lang=en] .product-leaders{font-size:clamp(13px,1.5vw,25px)}
html[lang=en] .product-scene-garden .product-leaders span{width:27%;max-width:27%;white-space:normal;text-wrap:balance}
html[lang=en] .cycle-orbit .cycle-label{max-width:140px;white-space:normal;text-wrap:balance}
html[lang=en] .cycle-orbit .cycle-label>span{white-space:normal}
html[lang=en] .top-opening[lang] .overview.fix24 #s1.fullscreen-track[data-layout][data-scrub] h1 .hero-line{white-space:nowrap!important;text-wrap:nowrap}
html[lang=en] .top-opening[lang] .overview.fix24 #s1.fullscreen-track[data-layout][data-scrub] .hero-intro p{white-space:normal;text-wrap:wrap}
html[lang=en] .top-opening[lang] .overview.fix24 #s1.fullscreen-track[data-layout][data-scrub][data-ctas] .hero-intro .btn,html[lang=en] .top-opening .overview.fix24 #s1.fullscreen-track[data-layout][data-scrub] .hero-intro .btn>.button-label{max-width:100%;white-space:normal;text-wrap:wrap;overflow-wrap:anywhere}
html[lang=en] .top-opening .mobile-menu nav a,html[lang=en] .return-nav .mobile-menu nav a{min-width:0;white-space:normal;overflow-wrap:anywhere}
html[lang=en] .product-scene-garden .label-fertilizer span,html[lang=en] .product-scene-garden .label-sprayer span{width:21%;max-width:21%}

/* FIX-EN2: English text only; keep media, motion and Thai typography intact. */
html[lang=en] .phone-number{display:inline-block;white-space:nowrap;overflow-wrap:normal;word-break:normal;text-wrap:nowrap}
html[lang=en] .years-number{font-size:min(clamp(72px,16.5vw,280px),calc((100vw - 48px)/4.8))}
html[lang=en] .cycle-orbit .cycle-label>.cycle-word,html[lang=en] .cycle-orbit .cycle-label>.cycle-dot{display:block;white-space:nowrap}
html[lang=en] .purchase-photo .purchase-note span+span{margin-left:.28em}
@media(min-width:700px){
html[lang=en] .cycle-copy .rest-note{max-width:none;white-space:nowrap}
}
@media(min-width:768px){
html[lang=en] h2#pellet-heading{font-size:clamp(30px,4.2vw,88px)}
html[lang=en] h2#pellet-heading .title-line{white-space:nowrap}
}
@media(min-width:1024px){
html[lang=en] .purchase-section .purchase-heading{font-size:clamp(30px,3.4vw,62px)!important}
html[lang=en] .purchase-section .purchase-heading .title-line{white-space:nowrap}
}

/* FIX-VM9: let only the English return label wrap on the narrowest phones. */
@media(max-width:340px){
html[lang=en] .cycle-orbit .step-return .cycle-label>.cycle-word{white-space:normal}
}
