/* Larger copy needs natural height and useful line lengths, rather than fixed boxes. */
main p,main li,main dd,main label,main button,main input,main select,main textarea,main a{max-width:100%;box-sizing:border-box;overflow-wrap:break-word}
main p,main li{height:auto;max-height:none}
main .rev04-content{max-width:1120px!important}
/* Owner rule 2026-11-30: every Beyond AI section (Pain Point, Founder Story, Personal Concierge, Use Cases, ...) is centred. */
main .rev04-section h2,main .rev04-content,main .rev04-content p,main .rev04-content li{text-align:center!important;text-wrap:pretty}
main .rev04-content>img,main .rev04-content>svg,main .rev04-content>figure,main .rev04-content>span:first-child{margin-inline:auto!important;display:block}
main .package-inclusions,main .journey-steps{grid-template-columns:1fr!important}
main .pill,main .rev04-cta{white-space:normal;max-width:100%;height:auto;min-height:64px;text-align:center}
main .library-start ol{grid-template-columns:1fr!important}
main .library-item,main .destination-card{min-width:0;height:auto!important}
main .library-item h3{overflow-wrap:normal;word-break:normal}
main .board-row{height:auto;min-height:100px}
main .board-row>*{min-width:0}
main .video-caption,main figcaption{height:auto!important;min-height:0!important}
body:has(.coming-soon-zone) .card-grid{display:grid!important;grid-template-columns:1fr!important;width:calc(100% - 48px)!important;max-width:1440px!important;gap:48px!important}
body:has(.coming-soon-zone) .coming-soon-zone{width:calc(100% - 48px)!important;max-width:1440px!important;margin-block:48px!important}
body:has(.coming-soon-zone) .destination-card{width:100%!important;max-width:none!important;text-align:center;padding:24px 0!important}
body:has(.coming-soon-zone) .illustration-frame{width:92%!important;max-width:1280px!important;margin:0 auto 28px!important}
body:has(.coming-soon-zone) .illustration-frame img{width:100%!important;max-width:none!important;height:auto!important}
body:has(.coming-soon-zone) .destination-card h2{font-size:clamp(42px,5vw,76px)!important;line-height:1.15}
@media(max-width:900px){main .board-row{display:flex!important;flex-wrap:wrap;gap:16px;padding:20px!important}main .board-row>*{flex:1 1 100%}main .board-row .split-flap{font-size:18px!important}main .board-row a,main .board-row button{width:100%}main .library-toolbar{display:flex;flex-direction:column;align-items:stretch}main .library-filters{flex-wrap:wrap}main .library-filters button{flex:1 1 auto}main .rev04-content{width:100%}}
@media(max-width:650px){body:has(.coming-soon-zone) .card-grid,body:has(.coming-soon-zone) .coming-soon-zone{width:calc(100% - 24px)!important}body:has(.coming-soon-zone) .illustration-frame{width:100%!important}main .library-start li{display:block!important}main .library-start li img{display:block;margin-bottom:12px}main .pill,main .rev04-cta{padding:16px!important}main .library-item img{max-width:100%}}

/* Dialog copy is content too; the legacy fixed caption size must not clip larger type. */
#detail-dialog p,#detail-dialog .pill{font-size:40px;line-height:1.5;white-space:normal}#detail-dialog{max-height:90dvh;overflow:auto}main .phrase{white-space:normal!important}main .district-list a>span{white-space:normal!important;overflow-wrap:normal;word-break:normal;text-wrap:balance}main .district-list a{min-width:0}main .rev04-cta{overflow-wrap:anywhere}

.library-back,main .crumb{display:inline-flex!important;align-items:center;gap:12px;background:#641420!important;color:#fff8f9!important;border:2px solid #641420!important;border-radius:999px!important;padding:14px 24px!important;min-height:64px!important;text-decoration:none!important;white-space:normal!important}.library-back:before,main .crumb:before{content:'←';flex-shrink:0}.library-back:hover,main .crumb:hover{background:#af0e28!important;color:white!important}.library-back:focus-visible,main .crumb:focus-visible{outline:3px solid #af0e28;outline-offset:4px}
.library-results{grid-template-columns:1fr!important}.library-item{max-width:1280px;width:100%;margin-inline:auto}.library-item h2{font-size:clamp(32px,3.8vw,56px)!important;line-height:1.35}.library-item img{height:auto!important;max-height:620px;min-height:200px;width:100%;object-fit:contain!important}.library-start strong{white-space:normal!important}.library-start ol li{grid-template-columns:100px 1fr!important}.library-start li img{width:90px;height:90px}.library-start li p{margin:8px 0}.library-start{height:auto!important}

.library-entry-actions{padding-block:24px;text-align:center}.library-entry-actions>p{margin:0 0 16px}.library-entry-actions>div{display:flex;justify-content:center;gap:18px;flex-wrap:wrap}.library-entry-actions .pill{min-height:68px}.library-entry-actions [role=status]:empty{display:none}@media(max-width:650px){.library-entry-actions>div{display:grid;grid-template-columns:1fr}.library-entry-actions .pill{width:100%}}
.pass-start-note{min-width:0;grid-template-columns:64px minmax(0,1fr)!important}.pass-start-note a{white-space:normal!important;min-width:0;line-height:1.4;max-width:100%;overflow-wrap:break-word}.ebook-entry-label{font-family:Kanit,sans-serif!important;font-size:20px!important;line-height:1.4!important;background:#641420!important;color:#fff8f9!important;white-space:nowrap;border-radius:999px;padding:12px 20px;justify-self:center;margin-top:12px;max-width:100%;box-sizing:border-box}
input,select,textarea{height:auto!important;min-height:72px}
.library-start h2{font-size:clamp(42px,4vw,64px)!important;line-height:1.3!important}.library-item h2{font-size:clamp(42px,4vw,64px)!important;line-height:1.35!important}

/* Bookshop: original full-width still and repeatable book slots on a real shelf. */
.ebook-static-banner{display:block;width:100%!important;height:auto!important;max-width:none!important;aspect-ratio:1050/700;object-fit:contain}.coquette-ebook .store-shell{width:calc(100% - 48px);max-width:1440px;padding-top:24px}.coquette-ebook .store-intro{display:flex;flex-direction:column;text-align:center;gap:18px;padding:28px 0}.coquette-ebook .store-intro h1{margin:0}.coquette-ebook .store-intro p{margin:0}.coquette-ebook .store-button{color:#fff8f9;white-space:normal;text-align:center;max-width:100%;height:auto;box-sizing:border-box}.coquette-ebook .shelf-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:36px;padding:24px 0}.coquette-ebook .shelf-book{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;width:100%;min-width:0;margin:0;padding:24px 18px;box-sizing:border-box;border:1px solid #ebc0c5;border-radius:24px;background:#fff8f9;position:relative}.coquette-ebook .cover-button{width:100%;padding:12px 24px 0;box-sizing:border-box}.coquette-ebook .physical-book{width:100%;box-sizing:border-box;transform:rotate(-3deg)}.coquette-ebook .shelf-ledge{display:block;width:100%;height:16px;margin-top:14px;background:linear-gradient(#ebc0c5 0 35%,#641420 35%);border-radius:4px;box-shadow:0 8px 12px #64142022}.coquette-ebook .book-info{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px;margin-top:24px}.coquette-ebook .book-info h3{font-size:48px;line-height:1.2;margin:0}.coquette-ebook .book-info p{margin:0}.coquette-ebook .edition-status{width:auto!important;max-width:100%;box-sizing:border-box}.coquette-ebook .store-links{margin-block:28px}.coquette-ebook #book-details{width:min(1100px,calc(100% - 32px));max-width:calc(100% - 32px);max-height:90dvh;overflow:auto}.coquette-ebook #book-details h2{font-size:54px}.coquette-ebook .dialog-close{position:static;float:right;margin:0 0 16px 16px;max-width:100%;height:auto!important}@media(max-width:650px){.coquette-ebook .store-shell{width:calc(100% - 24px)}.coquette-ebook .shelf-book{padding:20px 12px}.coquette-ebook .shelf-row{grid-template-columns:1fr}.coquette-ebook .physical-book{padding:20px}.coquette-ebook .store-links{display:grid;gap:18px}}

.book-ready-word{white-space:nowrap}

.banner-nameplate .banner-thai-title{display:block;font:400 clamp(24px,2.5vw,38px)/1.45 Kanit,sans-serif;color:#641420;margin-top:12px;text-wrap:balance;word-break:normal;overflow-wrap:normal}.banner-nameplate-right{left:auto!important;right:4%!important;max-width:48%!important}@media(max-width:650px){.banner-nameplate .banner-thai-title{font-size:24px;line-height:1.4;margin-top:8px}.banner-nameplate-right{left:auto!important;right:auto!important;max-width:calc(100% - 70px)!important}}

/* Beyond AI: one alignment system, centred (owner rule 2026-11-30); semantic Thai groups keep their meaning. */
.coquette-sales .rev04-section h1,.coquette-sales .rev04-section h2,.coquette-sales .rev04-content,.coquette-sales .rev04-content p,.coquette-sales .rev04-content li,.coquette-sales .package-price{text-align:center!important}.coquette-sales .illustrated-copy{display:flex!important;flex-direction:column!important;align-items:center!important;gap:20px!important}.coquette-sales .service-symbol,.coquette-sales .process-symbol{display:block!important;position:static!important;margin:0 auto 16px!important;width:96px!important;height:96px!important;object-fit:contain!important}.coquette-sales .rev04-content{word-break:normal!important;overflow-wrap:normal!important;line-break:auto}.coquette-sales .journey-steps li{text-align:center!important}.coquette-sales .thai-keep{white-space:nowrap!important;display:inline!important}.coquette-sales .rev04-cta{justify-content:center;text-align:center}.coquette-sales .rev04-content p{text-wrap:pretty;orphans:2;widows:2}.coquette-sales .section-08 .rev04-content{margin-left:auto;margin-right:auto}

.coquette-sales .story-symbol{display:block!important;align-self:center!important;margin:0 auto 16px!important;width:96px!important;height:96px!important;object-fit:contain!important}

.coquette-sales .rev04-cta{flex-wrap:wrap;gap:4px 8px}.coquette-sales .contact-handle{white-space:nowrap!important;overflow-wrap:normal!important;font-size:21px}@media(max-width:650px){.coquette-sales .contact-handle{font-size:14px}}

/* Beyond AI Service Journey: number, icon and text stacked on one centre line. */
.coquette-sales .journey-steps li:before{float:none!important;display:block!important;text-align:center!important;margin:0 auto 8px!important}
.coquette-sales .journey-steps .journey-symbol{display:block!important;margin:0 auto 12px!important}

/* Destination cards: image, name, line and button share one centre line. */
main .destination-card{text-align:center}
main .destination-card>.pill{display:inline-flex!important;margin-inline:auto!important;justify-self:center;align-self:center}
@media(min-width:1024px){main .card-grid.equal-libraries{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
/* Buttons stay readable (min 18px desktop / 16px phone) without growing past their pill. */
main a[class*="pill"],main a[class*="btn"],main a[class*="button"],main a[class*="cta"],main a[class*="back"],main .crumb,main button{font-size:max(1em,16px)!important}
@media(min-width:768px){main a[class*="pill"],main a[class*="btn"],main a[class*="button"],main a[class*="cta"],main a[class*="back"],main .crumb,main button{font-size:max(1em,18px)!important}}
