:root{color-scheme:light}body{margin:0;background:#f8f3e9;color:#30281e;font-family:system-ui,-apple-system,'Noto Sans Thai','Noto Sans JP',sans-serif;line-height:1.65}.th-container{max-width:1080px;margin:auto;padding:0 18px}.th-header{background:#fff;border-bottom:1px solid #e5d8c6}.th-header-inner{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px}.th-brand{font-weight:800;color:#47301e;text-decoration:none;font-size:18px}.th-header nav{display:flex;gap:10px}.th-header nav a{color:#614c36;padding:6px 10px;border-radius:9px;text-decoration:none}.th-header nav .th-active{background:#f3e4c9}.th-hero{background:linear-gradient(135deg,#4d281c,#91603b);color:white;border-radius:18px;padding:34px;margin:26px 0 20px}.th-hero h1{font-size:clamp(24px,4vw,37px);line-height:1.4;margin:8px 0}.th-hero p{margin:8px 0}.th-kicker{font-size:12px;letter-spacing:.08em;color:#f7d7a5}.th-card{background:#fff;border:1px solid #e8dfd2;border-radius:15px;padding:24px;margin:18px 0;box-shadow:0 2px 12px #392c1610}.th-card h2{font-size:21px;margin:0 0 12px}.th-actions,.th-links{display:flex;gap:10px;flex-wrap:wrap}.th-links{flex-direction:column;margin-bottom:22px}.th-btn{display:inline-block;background:#8e4528;color:white!important;text-decoration:none;border:0;border-radius:9px;padding:10px 17px;font-size:15px;cursor:pointer;margin:5px 7px 5px 0}.th-secondary{background:#eee1ce;color:#523925!important}.th-hero .th-secondary{background:#fff2df}.th-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}.th-shop{display:flex;flex-direction:column;gap:3px;background:#fff9f1;border:1px solid #e8d9c6;border-radius:10px;padding:14px;text-decoration:none;color:#3b2c21}.th-shop small,.th-note{color:#796e60;font-size:13px}.th-shop[hidden]{display:none}.th-count{font-size:13px;color:#846c4e}.th-card input{display:block;width:100%;max-width:540px;border:1px solid #c7b49d;border-radius:9px;padding:12px;font:inherit;margin-top:8px}.th-breadcrumb{margin:24px 0 0;font-size:14px}.th-breadcrumb a,.th-card a{color:#894327}.th-subname{opacity:.8}.th-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:18px}.th-detail{display:grid;grid-template-columns:140px 1fr;border-bottom:1px solid #eee5d9;padding:12px 0;gap:10px;overflow-wrap:anywhere}.th-detail dt{color:#76614a}.th-detail dd{margin:0}.th-footer{margin-top:40px;padding:24px 0;background:#ece0ce}.th-footer a{color:#7d4229}@media(max-width:700px){.th-layout{grid-template-columns:1fr}.th-hero{padding:23px 20px}.th-card{padding:18px}.th-detail{grid-template-columns:1fr;gap:1px}.th-header-inner{min-height:60px}}
/* Thai V2: photo-rich directory */
.th-brand{display:flex;align-items:center;gap:9px}.th-brand img{object-fit:contain}.th-brand small{display:block;font-size:11px;font-weight:500;color:#876e56}.th-section{margin:30px 0}.th-section h1{font-size:clamp(25px,4vw,36px)}.th-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px}.th-section-head h2{margin:0;font-size:clamp(20px,3vw,27px)}.th-section-head a{color:#8e4528}.th-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}.th-photo-card{display:block;background:#fff;border:1px solid #e8dfd2;border-radius:15px;overflow:hidden;text-decoration:none;color:#30281e;box-shadow:0 4px 16px #392c1612;transition:transform .15s,box-shadow .15s}.th-photo-card:hover{transform:translateY(-3px);box-shadow:0 9px 20px #392c1620}.th-photo-card[hidden]{display:none!important}.th-thumb{aspect-ratio:16/10;background:linear-gradient(145deg,#d5b38e,#725039);display:flex;align-items:center;justify-content:center;overflow:hidden}.th-thumb img{width:100%;height:100%;object-fit:cover}.th-no-photo{font-size:40px}.th-card-copy{padding:13px 15px;display:flex;flex-direction:column;gap:7px}.th-card-copy strong{line-height:1.4}.th-card-copy small{color:#756655}.th-search{margin:0 0 17px}.th-search label{display:block;font-weight:600;margin-bottom:7px}.th-search input{display:block;width:100%;max-width:620px;padding:12px;border:1px solid #d6c4ac;border-radius:10px;background:#fff;font:inherit}.th-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}.th-gallery a{display:block;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:#eee}.th-gallery img{width:100%;height:100%;object-fit:cover}.th-owner{border-color:#ddbd85;background:#fffaf2}.th-home-hero{background:linear-gradient(110deg,#43281cdd,#7c4c2bcc),url('/assets/cover.webp') center/cover}.th-shop-hero{margin-top:12px}@media(max-width:600px){.th-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.th-card-copy{padding:10px}.th-card-copy strong{font-size:13px}.th-card-copy small{font-size:11px}.th-thumb{aspect-ratio:4/3}.th-header-inner{gap:8px}.th-brand{font-size:13px}.th-brand small{font-size:9px}.th-brand img{width:30px;height:30px}.th-header nav{gap:3px}.th-header nav a{padding:5px 7px}.th-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Thai store detail photo slider V3 */
.th-slider{max-width:850px;margin:auto;position:relative}.th-slide-frame{height:clamp(240px,42vw,480px);background:#f6f1e9;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden}.th-slide{width:100%;height:100%;object-fit:contain;display:block}.th-slide[hidden]{display:none!important}.th-slider-controls{display:flex;align-items:center;justify-content:center;gap:24px;margin-top:12px}.th-slider-controls button{border:1px solid #e2d3bf;background:#fffaf4;color:#844324;border-radius:10px;min-width:44px;min-height:40px;cursor:pointer;font-size:20px}.th-count{font-size:14px;color:#735944;font-variant-numeric:tabular-nums}@media(max-width:600px){.th-slide-frame{height:290px}}

/* V4: keep the entire event poster visible, regardless of its aspect ratio */
.th-event-card .th-thumb{height:230px;aspect-ratio:auto;display:flex;align-items:center;justify-content:center;background:#f7f0e8}
.th-event-card .th-thumb img{width:100%;height:100%;object-fit:contain;object-position:center}
@media(max-width:600px){.th-event-card .th-thumb{height:190px}}

/* V4 Thai region accordion */
.th-regions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.th-region{background:#fff;border:1px solid #ead8c4;border-radius:14px;min-width:0;overflow:hidden}
.th-region summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:18px;color:#482819}
.th-region summary::-webkit-details-marker{display:none}
.th-region summary span{font-size:12px;color:#976e55;white-space:nowrap}
.th-pref-list{padding:0 15px 15px;display:flex;gap:8px;flex-wrap:wrap}
.th-pref{padding:7px 10px;background:#faf3e9;border-radius:7px;color:#8b4128;text-decoration:none;font-size:13px}
.th-pref small{color:#8b7665}
@media(max-width:650px){.th-regions{grid-template-columns:1fr}}

/* STEP27: compact Thai home hero on phones; other Thai pages unchanged. */
@media(max-width:600px){
 .th-container>.th-home-hero{margin:16px 0 14px;padding:18px 18px 16px;border-radius:16px}
 .th-home-hero .th-kicker{font-size:10px;letter-spacing:.07em}
 .th-home-hero h1{font-size:clamp(23px,6vw,29px);line-height:1.3;margin:6px 0}
 .th-home-hero p{font-size:14px;line-height:1.5;margin:6px 0 10px}
 .th-home-hero .th-actions{gap:7px}
 .th-home-hero .th-btn{font-size:13px;padding:8px 11px;margin:2px 0}
 .th-container>.th-home-hero+.th-section{margin-top:20px}
}
