/* Heritage (old-town shop, the default). Why: the shop's own photographs are green velvet, brass and walnut, and an old-town shophouse sign is green lacquer with gilt letters.
   Trirong is a traditional Thai book face with loops (old printed ledgers and signboards); Sarabun is the plain reading face of forms. Gilt is decoration and large text only. */
body.th-heritage{
  --bg:#F4EEE1;--surface:#FFFCF5;--alt:#EAE1CC;--ink:#24190F;--muted:#574634;--line:#D9CCB0;--strong:#0F3B2E;--link:#0F3B2E;--link-h:#06261C;
  --acc:#0F3B2E;--on-acc:#FFF8E8;--acc-h:#06261C;--chrome:#0F3B2E;--on-chrome:#F4EEE1;--chrome-mute:#CFD8C9;--chrome-link:#E6C77E;--focus-ch:#F7D774;--chrome-rule:rgba(230,199,126,.4);
  --gilt:#B8893A;--gilt-t:#7A5716;
  --f-head:'Trirong','Sarabun',Georgia,serif;--f-body:'Sarabun',system-ui,sans-serif;--fw-head:700;--r:6px;--r-btn:4px;--r-field:4px
}
/* sign */
.th-heritage .sign{background:var(--chrome);color:var(--on-chrome);padding:18px 0 16px;border-bottom:3px solid var(--gilt)}
.th-heritage .sign-in{display:flex;flex-direction:column;align-items:center;gap:10px}
.th-heritage .plate{display:flex;align-items:center;gap:14px;padding:10px 28px 12px;border:2px solid var(--gilt);outline:1px solid var(--gilt);outline-offset:5px;color:#E6C77E;text-decoration:none}
.th-heritage .plate:hover{color:#F4E2B0}
.th-heritage .plate .mark{width:42px;height:42px}
.th-heritage .plate b{font:700 clamp(1.5rem,3vw,2rem)/1.15 var(--f-head);color:#E6C77E;letter-spacing:.01em}
.th-heritage .plate small{color:var(--chrome-mute);font-size:.82rem;letter-spacing:.02em}
.th-heritage .sign-meta{display:flex;align-items:center;gap:8px;margin:4px 0 0;font-size:.92rem;color:var(--chrome-mute)}
.th-heritage .sign :focus-visible{outline-color:var(--focus-ch)}
.th-heritage .hd-nav{background:var(--bg);border-bottom:3px double var(--gilt)}
.th-heritage .hd-nav .nav{justify-content:center;gap:0}
.th-heritage .hd-nav .nav a{position:relative;padding:0 18px;font-weight:600;color:var(--ink);min-height:50px}
.th-heritage .hd-nav .nav a+a::before{content:"";position:absolute;left:-3px;top:50%;width:6px;height:6px;background:var(--gilt);transform:translateY(-50%) rotate(45deg)}
.th-heritage .hd-nav .nav a:hover{color:var(--strong);text-decoration:underline}
.th-heritage .hd-nav .nav a[aria-current=page]{color:var(--strong);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:7px}
@media (max-width:720px){
  .th-heritage .plate{padding:8px 16px;outline-offset:3px}.th-heritage .plate small{display:none}
  .th-heritage .hd-nav .nav{display:grid;grid-template-columns:repeat(3,1fr)}
  .th-heritage .hd-nav .nav a{justify-content:center;padding:0 4px;font-size:.95rem;border-bottom:1px solid var(--line)}
  .th-heritage .hd-nav .nav a+a::before{display:none}
}
/* hero */
.th-heritage .hero{padding:clamp(36px,6vw,80px) 0 clamp(48px,7vw,96px)}
.th-heritage .hero-g{display:grid;gap:40px 64px;grid-template-columns:minmax(0,1fr);align-items:center}
@media (min-width:900px){.th-heritage .hero-g{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}}
.th-heritage .hero h1{font-size:clamp(2.1rem,4.4vw,3.4rem);line-height:1.28;margin-bottom:.45em}
.th-heritage .plaque{margin-top:30px;padding:20px 24px;background:var(--surface);border-radius:8px;box-shadow:inset 0 0 0 5px var(--bg),inset 0 0 0 6px var(--gilt),0 8px 22px rgba(36,25,15,.08)}
.th-heritage .plaque .cdl{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:14px 24px}
.th-heritage .plaque-since{margin:14px 0 0;padding-top:12px;border-top:1px dotted var(--gilt);font-size:.9rem;color:var(--muted)}
.th-heritage .arch{border-radius:999px 999px 6px 6px;overflow:hidden;border:7px solid var(--chrome);outline:1px solid var(--gilt);outline-offset:5px;aspect-ratio:4/5;max-height:620px;margin:6px}
.th-heritage .arch img{height:100%;object-fit:cover;object-position:52% 50%}
@media (max-width:899px){.th-heritage .arch{aspect-ratio:5/4;border-radius:240px 240px 6px 6px;max-width:560px}}
/* sections */
.th-heritage .sec h2{font-size:clamp(1.6rem,3vw,2.2rem)}
.th-heritage .sec-rates{background:var(--chrome);color:var(--on-chrome)}
.th-heritage .sec-rates h2{color:#E6C77E}
.th-heritage .sec-rates .rb-board{border:2px solid var(--gilt);outline:1px solid var(--gilt);outline-offset:4px;padding:6px 18px;margin:6px}
.th-heritage .sec-rates th{color:var(--chrome-mute);border-bottom:1px solid rgba(230,199,126,.45)}
.th-heritage .sec-rates td{border-bottom:1px dotted rgba(230,199,126,.55);color:var(--on-chrome);padding:14px 10px;font-size:1.05rem}
.th-heritage .sec-rates tr:last-child td{border-bottom:0}
.th-heritage .sec-rates .rt td b{font:700 clamp(1.6rem,3vw,2.1rem)/1 var(--f-head);color:#E6C77E}
.th-heritage .sec-rates .rb-kv dt{color:var(--chrome-mute)}.th-heritage .sec-rates .rb-kv dd{color:var(--on-chrome)}
.th-heritage .sec-rates a{color:#E6C77E}.th-heritage .sec-rates a:hover{color:#FFF3CF}
.th-heritage .sec-rates .ic{color:#E6C77E}.th-heritage .sec-rates :focus-visible{outline-color:var(--focus-ch)}
.th-heritage .steps-l{counter-reset:none;gap:0;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));border-top:2px solid var(--strong)}
.th-heritage .st{padding:22px 22px 8px 0}
.th-heritage .st+.st{border-left:1px dotted var(--gilt);padding-left:22px}
@media (max-width:1019px){.th-heritage .st+.st{border-left:0;padding-left:0;border-top:1px dotted var(--gilt)}}
.th-heritage .st-n{background:none;color:var(--gilt-t);font:700 2.4rem/1 var(--f-head);border-radius:0;min-width:0;height:auto;margin:0 0 6px;display:block}
.th-heritage .st-ic{display:none}
.th-heritage .cat-l li{border-radius:4px;border-color:var(--gilt);background:var(--surface)}
.th-heritage .sec-cats,.th-heritage .sec-gold{background:var(--alt)}
.th-heritage .gold-b{border:2px solid var(--gilt);padding:22px 26px;background:var(--surface);border-radius:6px}
.th-heritage .ex-l{grid-template-columns:1fr;gap:0}
.th-heritage .ex{grid-template-columns:1fr auto;align-items:baseline;background:none;border:0;border-bottom:1px dotted var(--gilt);border-radius:0;padding:14px 0}
.th-heritage .ex-v b{font-family:var(--f-head);font-size:1.6rem}
.th-heritage .visit-fig img{border:6px solid var(--surface);outline:1px solid var(--gilt);border-radius:2px}
/* inner pages */
.th-heritage .pg-top{text-align:center;border-bottom:3px double var(--gilt);margin-bottom:clamp(24px,4vw,40px)}
.th-heritage .pg-top .lead{margin:0 auto}
.th-heritage .card,.th-heritage .aside-card,.th-heritage .how-i{border-color:var(--line);box-shadow:inset 0 3px 0 var(--strong)}
.th-heritage .board{background:var(--chrome);color:var(--on-chrome);box-shadow:none;border:2px solid var(--gilt)}
.th-heritage .board h2{color:#E6C77E}.th-heritage .board th{color:var(--chrome-mute)}.th-heritage .board td{color:var(--on-chrome);border-bottom-color:rgba(230,199,126,.45)}
.th-heritage .board .rt td b{color:#E6C77E;font-family:var(--f-head);font-size:1.5rem}.th-heritage .board .hint{color:var(--chrome-mute)}
.th-heritage .how-i .big-ic{color:var(--gilt-t)}
.th-heritage .tk{border:3px double var(--strong)}
/* footer */
.th-heritage .ft{border-top:3px double var(--gilt)}
.th-heritage .ft-crest{justify-content:center;flex-direction:column;text-align:center;gap:6px;padding-bottom:22px;border-bottom:1px solid rgba(230,199,126,.4)}
.th-heritage .ft-crest b{color:#E6C77E;font-size:1.4rem}
