:root {
  color-scheme: light;
  --ink: #14342f;
  --muted: #516661;
  --green: #075747;
  --deep: #093c34;
  --mint: #dbece1;
  --shell: #f5f7f2;
  --paper: #fff;
  --line: #dce4dc;
  --body: "DM Sans", "Noto Sans Thai", sans-serif;
  --display: "Instrument Serif", Georgia, "Noto Sans Thai", serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--shell); color: var(--ink); font: 400 1rem/1.55 var(--body); }
a { color: inherit; text-decoration: none; }
button, select, input { color: inherit; font: inherit; }
button, select { cursor: pointer; }
input, select { min-width: 0; }
button { background: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: .98; text-wrap: balance; }
h3 { line-height: 1.2; }
section[id] { scroll-margin-top: 1rem; }
:focus-visible { outline: 3px solid #b5742a; outline-offset: 4px; }
main:focus { outline: none; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; z-index: 5; top: 10px; left: 10px; background: white; padding: 10px; }
.wrap { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }

.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.1rem; font-weight: 600; letter-spacing: -.045em; white-space: nowrap; }
.brand b { color: var(--green); font-weight: 700; }
.brand-zh, html:lang(zh) .brand-en { display: none; }
html:lang(zh) .brand-zh { display: inline; letter-spacing: 0; }
.mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; background: var(--green); color: #e4f3d2; }
.mark::before { content: ""; grid-area: 1/1; width: 16px; height: 16px; border: 1px solid currentColor; transform: rotate(45deg); }
.mark::after { content: ""; grid-area: 1/1; width: 4px; height: 4px; background: currentColor; transform: rotate(45deg); }
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 43px); }
.nav a { font-size: .92rem; font-weight: 600; }
.nav a:hover, .footer a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.language { position: relative; display: flex; align-items: center; gap: 8px; padding-left: 12px; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; }
.language select { border: 0; background: none; padding: 7px 10px 7px 0; max-width: 10rem; font-size: .87rem; font-weight: 600; }
.globe { width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%; position: relative; flex: 0 0 auto; }
.globe::before { content: ""; position: absolute; inset: -1px 3px; border: 1px solid currentColor; border-radius: 50%; }
.globe::after { content: ""; position: absolute; inset: 6px 0 auto; border-top: 1px solid currentColor; }

.hero { position: relative; isolation: isolate; color: white; background: var(--deep); min-height: 457px; overflow: hidden; }
.hero-visual { position: absolute; z-index: -2; inset: 0 0 0 34%; mask-image: linear-gradient(90deg, transparent, #000 20%); }
.hero-visual img { object-position: center 58%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #093c34 29%, #093c34eb 40%, #093c3466 63%, #093c3405 100%); }
.hero-inner { position: relative; padding-block: 64px 108px; }
.hero-copy { max-width: min(650px, 66%); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-weight: 700; font-size: .88rem; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 16px; border-top: 1px solid currentColor; }
.hero .eyebrow { color: #d1e9d7; }
.hero h1 { font-size: clamp(3.5rem, 6.35vw, 6.15rem); margin: 18px 0 20px; text-wrap: initial; letter-spacing: -.034em; }
.hero h1 em { color: #d8ebbe; font-weight: inherit; }
.hero p { color: #e4eee8; max-width: 410px; font-size: 1.08rem; }
.hero-caption { position: absolute; bottom: 55px; right: 0; color: white; background: #132b26d9; border-radius: 5px; padding: 3px 10px; font-size: .84rem; }
:lang(th) h1, :lang(th) h2 { font-family: var(--body); line-height: 1.22; font-weight: 600; letter-spacing: -.025em; }
:lang(th) .hero h1 { font-size: clamp(2.5rem, 5.1vw, 4.6rem); }
:lang(th) .hero h1 em { font-style: normal; }
html:lang(zh) { --body: "DM Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
html:lang(zh) h1, html:lang(zh) h2 { font-family: var(--body); font-weight: 600; line-height: 1.2; }
html:lang(zh) .hero h1 { font-size: clamp(2.65rem, 5.4vw, 5.15rem); letter-spacing: .012em; }
html:lang(zh) .hero h1 em { font-style: normal; }

.search { position: relative; z-index: 1; margin: -44px 0 0; display: grid; grid-template-columns: .82fr 1fr 1.12fr auto; gap: 16px; align-items: end; background: var(--paper); padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 32px #16342b0d; }
.field { display: grid; gap: 4px; min-width: 0; }
.field > span { padding-left: 1px; font-size: .875rem; font-weight: 700; }
.field select, .field input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; background: #fbfcfa; }
.field select { padding-right: 22px; }
.field input::placeholder { color: var(--muted); opacity: 1; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 17px; border: 1px solid transparent; border-radius: 7px; background: var(--green); color: white; font-weight: 700; min-height: 46px; line-height: 1.3; text-align: center; }
.btn:hover { background: var(--deep); }
.btn.light { color: var(--green); background: white; border-color: #a9c0b5; }
.btn.light:hover { background: #eaf2eb; }
.search .btn { min-width: 132px; }
.glass { display: inline-block; position: relative; height: 13px; width: 13px; border: 1.5px solid currentColor; border-radius: 50%; margin-right: 3px; }
.glass::after { content: ""; position: absolute; width: 6px; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); bottom: -2px; right: -5px; }

.directory { padding-block: 52px 70px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.section-title h2, .guide h2 { font-size: clamp(2.65rem, 4.1vw, 4.18rem); margin-top: 10px; }
.section-title p { color: var(--muted); margin-top: 11px; max-width: 560px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.pill { border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; background: white; min-height: 41px; font-size: .9rem; font-weight: 600; }
.pill:hover { border-color: var(--green); }
.pill[aria-pressed=true] { background: var(--mint); border-color: #a8c7b5; color: var(--deep); }
.results-meta { display: flex; align-items: center; justify-content: space-between; min-height: 31px; margin-bottom: 10px; color: var(--muted); }
.text-btn { padding: 2px; border: 0; color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 13px; }
.card-photo { height: 165px; position: relative; background: var(--mint); }
.card-city { min-height: 48px; display: flex; align-items: center; padding: 10px 20px; background: var(--mint); }
.card-photo img { object-position: center 54%; }
.card-photo figcaption { position: absolute; bottom: 10px; left: 12px; padding: 3px 9px; border-radius: 5px; background: white; font-size: .82rem; font-weight: 700; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.card h3 { font-size: 1.25rem; letter-spacing: -.022em; }
.subname { color: var(--muted); margin-top: 4px; font-size: .92rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 18px; }
.tag { padding: 4px 8px; color: var(--green); background: #eaf2e9; font-size: .875rem; border-radius: 4px; }
.card .btn { width: 100%; margin-top: auto; }
.empty { background: white; border: 1px solid var(--line); padding: 25px; border-radius: 10px; }
.empty p { margin: 8px 0 14px; color: var(--muted); }

.guide { color: white; background: var(--deep); padding: 60px 0 65px; }
.guide .eyebrow { color: #cfe6d3; }
.guide .section-title p { color: #dbe9e0; }
.steps { padding: 0; margin: 25px 0 0; list-style: none; counter-reset: steps; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { counter-increment: steps; display: grid; grid-template-columns: 32px 1fr; align-content: start; gap: 8px 12px; padding: 19px; border: 1px solid #739086; border-radius: 9px; }
.step::before { content: counter(steps); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--deep); background: #d9ebc7; font-weight: 700; }
.step h3 { padding-top: 4px; }
.step p { color: #e0ebe4; }
.faq { padding-block: 60px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { padding: 7px 0; color: var(--muted); }

.detail { padding-block: 32px 70px; }
.back { display: inline-flex; font-weight: 700; color: var(--green); text-decoration: underline; text-underline-offset: 4px; margin-bottom: 22px; }
.detail-head { display: grid; gap: 12px; padding: 34px; border-radius: 13px; background: var(--mint); }
.detail-head h1 { font-size: clamp(2.85rem, 5.5vw, 5.15rem); text-wrap: pretty; }
.detail-head .subname { font-size: 1.08rem; }
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: white; padding: clamp(18px, 3vw, 32px); min-width: 0; }
.panel h2 { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 14px; text-wrap: pretty; }
.panel h3 { margin-top: 17px; }
.panel p, .panel dd, .panel li { color: var(--muted); }
.panel dt { font-weight: 700; margin-top: 16px; }
.address-copy { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.address-copy button { padding: 4px 0; min-height: 36px; }
.panel ul, .panel ol { padding-left: 1.4rem; }
.panel .tags { margin-bottom: 0; }
.panel a:not(.btn) { color: var(--green); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.actions { display: grid; gap: 8px; margin-top: 18px; }
.panel .fineprint { margin-top: 18px; font-size: .88rem; }
.detail-sources { grid-column: 1 / -1; }
.detail-sources ul { margin: 0; }
.footer { border-top: 1px solid var(--line); background: #eaf0e9; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 25px; align-items: center; padding-block: 25px; }
.footer p, .footer a:not(.brand) { font-size: .875rem; color: var(--muted); }
.footer a:not(.brand) { text-decoration: underline; text-underline-offset: 3px; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.footer-nav a { padding-block: 6px; }
.site-page { max-width: 900px; padding-block: 38px 70px; }
.site-page-heading { margin-bottom: 24px; }
.site-page-heading h1 { font-size: clamp(2.65rem, 5vw, 4.4rem); margin-bottom: 14px; text-wrap: pretty; }
.site-page-heading p { color: var(--muted); }
.site-page-heading .policy-date { margin-top: 8px; font-size: .875rem; }
.site-page-body section + section { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 25px; }
.site-page-body h2 { font: 700 1.25rem/1.35 var(--body); margin-bottom: 8px; }
.site-page-body ul { margin-block: 9px 0; }
.site-page-body li + li { margin-top: 5px; }
.sources { padding-block: 38px 70px; }
.sources h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin-bottom: 24px; }
.sources li { margin-bottom: 8px; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 56px); }
  .search { grid-template-columns: 1fr 1fr; }
  .search .btn { width: 100%; }
  .grid { gap: 12px; }
  .card-body { padding: 15px; }
  .steps { gap: 8px; }
  .step { padding: 12px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: auto; padding-top: 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 9px; }
  .header .brand { font-size: .97rem; gap: 7px; }
  .header .mark { width: 28px; height: 28px; }
  .nav { grid-column: 1 / -1; grid-row: 2; padding: 8px 0 11px; }
  .language { min-height: 40px; padding-left: 8px; gap: 5px; }
  .language select { max-width: 8rem; }
  .hero { min-height: 368px; }
  .hero-visual { inset: 0; mask-image: none; }
  .hero-visual img { object-position: 64% 65%; }
  .hero::after { background: linear-gradient(90deg, #093c34f7 1%, #093c34e0 48%, #093c346b 100%); }
  .hero-inner { padding-block: 44px 85px; }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: clamp(3.35rem, 10.8vw, 4.55rem); }
  .hero p { font-size: 1rem; max-width: 335px; }
  .hero-caption { bottom: 48px; }
  .search { margin-top: -38px; gap: 10px; padding: 13px; }
  .field-key, .search .btn { grid-column: 1 / -1; }
  .directory, .guide, .faq { padding-block: 38px; }
  .grid, .steps, .detail-grid { grid-template-columns: 1fr; }
  .card-photo { height: 170px; }
  .card-body { padding: 18px; }
  .detail { padding-bottom: 40px; }
  .detail-head { padding: 22px; }
  .site-page { padding-block: 29px 45px; }
}
@media (max-width: 370px) {
  .header .brand { font-size: .88rem; }
  .language select { max-width: 7rem; }
}
