/* ============================================================
   泰國旅行指南 — 設計系統
   底色純白；暖砂僅作次表面。卡片以邊框＋圓角界定，不用陰影。
   ============================================================ */

:root {
  /* 色彩 token */
  --th-teak:     #123A33;  /* 主文字／深叢林墨綠 */
  --th-teak-sub: #3D4F48;  /* 正文（白底上需加深） */
  --th-bamboo:   #8C8370;  /* 次要文字／竹灰 */
  --th-shell:    #F3E9D6;  /* 次表面／貝殼米 */
  --th-rattan:   #E2D4BC;  /* 邊框／藤編 */
  --th-marigold: #E8902A;  /* 行動色／萬壽菊橙 */
  --th-andaman:  #0E7C86;  /* 強調／安達曼海藍綠 */
  --th-orchid:   #F7D9E3;  /* 柔性 accent／蘭花粉 */
  --th-chili:    #C8432C;  /* 警示／旺季標記 */

  --background: #FFFFFF;
  --foreground: var(--th-teak);
  --border:     var(--th-rattan);

  /* 字體：比照原站不載 webfont */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC",
               "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-heading: var(--font-sans);

  --radius-card: 14px;
  --radius-ctl: 8px;
  --measure: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--th-teak-sub);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  max-width: 100vw;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--th-teak);
  line-height: 1.4;
  letter-spacing: .02em;
  font-weight: 700;
}

a { color: var(--th-andaman); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 1rem; }
.measure   { max-width: var(--measure); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--th-teak); color: #fff; padding: .5rem 1rem;
}
.skip-link:focus { left: 0; }

/* ---------- 棕葉 motif ---------- */
.th-leaf { flex: none; color: var(--th-marigold); }

/* ---------- Header ---------- */
.site-header { border-bottom: .5px solid var(--border); }
.site-header__bar { background: var(--th-teak); }

.site-logo {
  display: flex; align-items: baseline; gap: .6rem;
  padding: .85rem 0; color: #fff; text-decoration: none;
}
.site-logo:hover { text-decoration: none; }
.site-logo__name { font-size: 1.125rem; font-weight: 700; letter-spacing: .04em; }
.site-logo__en   { font-size: .75rem; color: #8FB3A8; letter-spacing: .06em; }

/* 地區列（暖砂色帶 — 熱帶暖度來源） */
.site-nav { background: var(--th-shell); }
.site-nav__row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .25rem 1.1rem; padding: .4rem 0;
}
.site-nav__link {
  color: var(--th-teak); font-size: .875rem; padding: .25rem 0;
  text-decoration: none;
}
.site-nav__link[aria-current="page"] { font-weight: 700; }

.site-nav__region > summary {
  list-style: none; cursor: pointer; color: var(--th-teak);
  font-size: .875rem; padding: .25rem 0; display: inline-flex;
  align-items: center; gap: .25rem;
}
.site-nav__region > summary::-webkit-details-marker { display: none; }
.site-nav__region > summary::after {
  content: "\2304"; font-size: .8em; color: var(--th-bamboo);
}
.site-nav__region[open] > summary::after { content: "\2303"; }
.site-nav__region > summary:hover { color: var(--th-andaman); }

.site-nav__panel {
  display: flex; flex-wrap: wrap; gap: .4rem .9rem;
  background: #fff; border: .5px solid var(--border);
  border-radius: var(--radius-ctl); padding: .6rem .75rem;
  margin: .1rem 0 .5rem;
}
.site-nav__sublink { font-size: .8125rem; color: var(--th-andaman); }

/* ---------- 首頁最新文章輪播 ---------- */
/* 軌道本身就是 scroll-snap 捲動帶：沒有 JS 也能滑。箭頭與頁碼列預設隱藏，
   JS 掛上 .is-live 才出現，避免出現按了沒反應的控制項。 */
.hero-carousel { position: relative; background: var(--th-teak); overflow: hidden; }

.hero-carousel__track {
  display: flex; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.hero-carousel__track::-webkit-scrollbar { display: none; }
.hero-carousel__track:focus-visible { outline: 2px solid var(--th-marigold); outline-offset: -2px; }

.hero-carousel__slide { flex: 0 0 100%; scroll-snap-align: start; }
.hero-carousel__link {
  position: relative; display: block; color: #fff; text-decoration: none;
  height: clamp(320px, 52svh, 460px);
}
.hero-carousel__link:hover { text-decoration: none; }
.hero-carousel__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 與文章 hero 同一套暖墨綠 scrim，維持站內一致 */
.hero-carousel__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(18,58,51,.40), rgba(18,58,51,0) 30%),
    linear-gradient(rgba(18,58,51,0) 18%, rgba(18,58,51,.42) 48%, rgba(18,58,51,.84));
}

.hero-carousel__inner {
  position: absolute; inset-inline: 0; bottom: 0; display: block;
  padding-bottom: 3rem;  /* 讓出底部頁碼列的高度 */
}
.hero-carousel__inner .container { display: block; }
.hero-carousel__tag {
  display: inline-block; background: #fff; color: var(--th-teak);
  font-size: .6875rem; padding: .15rem .6rem; border-radius: 999px;
}
.hero-carousel__title {
  display: block; max-width: 28ch; margin: .6rem 0 .45rem;
  font-family: var(--font-heading); font-weight: 700; line-height: 1.3;
  font-size: clamp(1.25rem, 3.4vw, 2rem);
  text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 16px rgba(0,0,0,.35);
}
.hero-carousel__date {
  display: block; font-size: .75rem; color: rgba(255,255,255,.85);
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

.hero-carousel__arrow,
.hero-carousel__bar { display: none; }
.hero-carousel.is-live .hero-carousel__arrow { display: grid; }
.hero-carousel.is-live .hero-carousel__bar { display: flex; }

.hero-carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 2.5rem; height: 2.5rem; padding: 0; place-items: center; cursor: pointer;
  border: .5px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,.88); color: var(--th-teak);
}
.hero-carousel__arrow:hover { background: #fff; color: var(--th-marigold); }
.hero-carousel__arrow:focus-visible { outline: 2px solid var(--th-marigold); outline-offset: 2px; }
.hero-carousel__arrow--prev { left: .75rem; }
.hero-carousel__arrow--next { right: .75rem; }

.hero-carousel__bar {
  position: absolute; inset-inline: 0; bottom: .85rem; z-index: 2;
  align-items: center; justify-content: center; gap: .7rem;
}
.hero-carousel__counter {
  font-size: .75rem; letter-spacing: .08em; color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.hero-carousel__dots { display: flex; align-items: center; gap: .35rem; }
.hero-carousel__dot {
  width: .5rem; height: .5rem; padding: 0; border: none; cursor: pointer;
  border-radius: 999px; background: rgba(255,255,255,.45);
  transition: width .15s ease, background-color .15s ease;
}
.hero-carousel__dot:hover { background: rgba(255,255,255,.8); }
.hero-carousel__dot[aria-current="true"] { width: 1.25rem; background: var(--th-marigold); }
.hero-carousel__dot:focus-visible { outline: 2px solid var(--th-marigold); outline-offset: 2px; }

@media (max-width: 40rem) {
  .hero-carousel__arrow { width: 2rem; height: 2rem; }
  .hero-carousel__arrow--prev { left: .4rem; }
  .hero-carousel__arrow--next { right: .4rem; }
  .hero-carousel__title { max-width: none; }
}

/* ---------- 首頁 hero ---------- */
.home-hero { padding: 2.25rem 0 .5rem; }
.home-hero__title {
  display: flex; align-items: center; gap: .5rem;
  margin: 0 0 .5rem; font-size: 1.75rem;
}
.home-hero__lede { margin: 0; color: var(--th-teak-sub); max-width: var(--measure); }

.section-title {
  display: flex; align-items: center; gap: .45rem;
  font-size: 1.125rem; margin: 2rem 0 .75rem;
}

/* ---------- 文章卡片牆 ---------- */
.card-grid {
  display: grid; gap: 1rem; padding: 1rem 0 2.5rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: .5px solid var(--border);
  border-radius: var(--radius-card); overflow: hidden;
  color: inherit; text-decoration: none;
  transition: border-color .15s ease;
}
.post-card:hover { border-color: var(--th-marigold); text-decoration: none; }
.post-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--th-shell); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__tag {
  position: absolute; left: .5rem; bottom: .5rem;
  background: #fff; color: var(--th-teak);
  font-size: .6875rem; padding: .15rem .5rem; border-radius: 999px;
  border: .5px solid var(--border);
}
.post-card__body { padding: .7rem .85rem 1rem; }
.post-card__title { margin: 0 0 .35rem; font-size: .9375rem; line-height: 1.5; }
.post-card__excerpt {
  margin: 0; font-size: .8125rem; color: var(--th-bamboo); line-height: 1.65;
}
.post-card__stub {
  margin-left: .4rem; font-size: .6875rem;
  color: var(--th-bamboo); font-weight: 400;
}

/* ---------- 文章 hero ---------- */
.post-hero { position: relative; background: var(--th-teak); }
.post-hero__media {
  position: relative; width: 100%;
  height: clamp(300px, 44svh, 360px); overflow: hidden;
}
.post-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* 暖墨綠漸層 scrim（原站為冷墨藍） */
.post-hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(18,58,51,.45), rgba(18,58,51,0) 26%),
    linear-gradient(rgba(18,58,51,0) 10%, rgba(18,58,51,.42) 42%, rgba(18,58,51,.82));
}
.post-hero__leaves {
  position: absolute; inset: 0; pointer-events: none; opacity: .03;
  background-repeat: repeat; background-size: 180px 180px;
}
.post-hero__inner {
  position: absolute; inset-inline: 0; bottom: 0; padding-bottom: 1.1rem;
}
.post-hero__crumbs { font-size: .75rem; color: #C7DCD4; margin-bottom: .4rem; }
.post-hero__crumbs a { color: #C7DCD4; }
.post-hero__title {
  margin: 0 0 .5rem; color: #fff; font-size: 1.375rem; line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 16px rgba(0,0,0,.35);
}
.post-hero__byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  font-size: .75rem; color: rgba(255,255,255,.88);
}
.post-hero__sep { color: rgba(255,255,255,.5); }
.post-hero__credit { color: rgba(255,255,255,.72); font-size: .6875rem; }

/* ---------- 文章內容 ---------- */
.post-body { padding: 1.75rem 0 3rem; }
.post-body h2 {
  display: flex; align-items: flex-start; gap: .45rem;
  font-size: 1.1875rem; margin: 2.25rem 0 .75rem;
}
.post-body h3 { font-size: 1rem; margin: 1.75rem 0 .5rem; }
.post-body p  { margin: 0 0 1rem; }
.post-body ul, .post-body ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.post-body li { margin-bottom: .35rem; }

.th-block-section { margin-bottom: .5rem; }

/* tips 段落給暖砂次表面，提升熱帶暖度與層級 */
.th-block-section--tips {
  background: var(--th-shell); border-radius: 12px;
  padding: 1rem 1.1rem .25rem; margin: 1.75rem 0;
}
.th-block-section--tips h2 { margin-top: .25rem; }

figure.th-figure { margin: 1.25rem 0; }
figure.th-figure img { border-radius: 12px; width: 100%; }
figure.th-figure figcaption {
  margin-top: .45rem; font-size: .75rem; color: var(--th-bamboo); line-height: 1.6;
}

.th-note { font-size: .75rem; color: var(--th-bamboo); margin: .5rem 0 1.25rem; }

/* ---------- 品牌卡（飯店／行程） ---------- */
.th-product-links { margin: 1rem 0 1.25rem; display: grid; gap: .75rem; }

.th-product-card {
  --card-accent: var(--th-bamboo);
  border: .5px solid var(--border); border-radius: var(--radius-card);
  background: #fff; overflow: hidden;
  transition: border-color .15s ease;
}
.th-product-card:hover { border-color: var(--card-accent); }
.th-product-card__link {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .7rem; color: inherit; text-decoration: none;
}
.th-product-card__link:hover { text-decoration: none; }
.th-product-card__image {
  position: relative; flex: none;
  width: 7.5rem; aspect-ratio: 4 / 3;
  border-radius: 10px; overflow: hidden; background: var(--th-shell);
}
.th-product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.th-product-card__badge {
  position: absolute; right: .25rem; bottom: .25rem;
  width: 1.25rem; height: 1.25rem; border-radius: 5px;
  background: #fff; display: grid; place-items: center;
  border: .5px solid var(--border);
}
.th-product-card__badge img { width: .9rem; height: .9rem; }
.th-product-card__content { flex: 1; min-width: 0; }
.th-product-card__title { margin: 0 0 .3rem; font-size: .9375rem; }
.th-product-card__meta {
  display: flex; align-items: center; gap: .4rem;
  margin-bottom: .35rem; font-size: .8125rem; color: var(--th-bamboo);
}
.th-product-card__rating {
  background: var(--card-accent); color: #fff;
  border-radius: 999px; padding: .05rem .45rem;
  font-size: .8125rem; font-weight: 700;
}
.th-product-card__dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--th-bamboo); opacity: .6;
}
.th-product-card__desc {
  margin: 0 0 .45rem; font-size: .8125rem;
  color: var(--th-teak-sub); line-height: 1.65;
}
.th-product-card__cta { font-size: .8125rem; font-weight: 700; color: var(--th-marigold); }
.th-product-card__arrow { margin-left: .15rem; }

/* ---------- Google Maps 卡 ---------- */
.th-place-card {
  display: flex; align-items: center; gap: .5rem;
  border: .5px solid var(--border); border-radius: var(--radius-ctl);
  padding: .5rem .7rem; margin: 0 0 1.25rem;
  color: var(--th-teak); text-decoration: none; font-size: .8125rem;
}
.th-place-card:hover { border-color: var(--th-andaman); text-decoration: none; }
.th-place-card img { width: 1.1rem; height: 1.1rem; }

/* ---------- 季節膠囊 ---------- */
.th-pill {
  display: inline-block; font-size: .75rem; font-weight: 700;
  padding: .1rem .5rem; border-radius: 999px; color: #fff;
}
.th-pill--peak { background: var(--th-chili); }
.th-pill--rain { background: var(--th-andaman); }

/* ---------- FAQ ---------- */
.th-faq {
  background: var(--th-shell); border-radius: 12px;
  padding: 1.1rem 1.15rem; margin: 2rem 0;
}
.th-faq h2 { margin: 0 0 .75rem; font-size: 1.0625rem; }
.th-faq__q {
  margin: 0 0 .25rem; font-weight: 700;
  color: var(--th-teak); font-size: .9375rem;
}
.th-faq__a { margin: 0 0 1rem; font-size: .875rem; }
.th-faq__a:last-child { margin-bottom: 0; }

/* ---------- 相關文章 ---------- */
.th-related { margin: 2rem 0 0; }
.th-related h2 { font-size: 1.0625rem; margin: 0 0 .6rem; }
.th-related ul { list-style: none; padding: 0; margin: 0; }
.th-related li { margin-bottom: .4rem; }

/* ---------- 分類頁 ---------- */
.cat-head { padding: 2rem 0 .25rem; }
.cat-head h1 { margin: 0 0 .4rem; font-size: 1.5rem; }
.cat-head p  { margin: 0; color: var(--th-bamboo); font-size: .875rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--th-teak); color: #C7DCD4;
  margin-top: 3rem; padding: 0 0 2rem; font-size: .8125rem;
}
.site-footer a { color: #fff; }

/* 白底與 teak 之間的波浪分界：白色波形畫在深底上，不另加圖檔 */
.site-footer__wave {
  display: block; width: 100%; height: 2.5rem;
  fill: var(--background);
}

/* 品牌欄（左）＋ 地區連結矩陣（右） */
.site-footer__cols {
  display: grid; gap: 1.5rem 2.5rem;
  grid-template-columns: minmax(13rem, 17rem) 1fr;
  padding-top: 1.25rem; margin-bottom: 1.5rem;
}
.site-footer__links {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(7.25rem, 1fr));
}
.site-footer__links h2 { color: #fff; font-size: .875rem; margin: 0 0 .4rem; }
.site-footer__links ul { list-style: none; padding: 0; margin: 0; }
.site-footer__links li { margin-bottom: .25rem; }

.site-footer__logo {
  display: inline-flex; align-items: center; gap: .65rem;
  color: #fff; text-decoration: none;
}
.site-footer__logo:hover { text-decoration: none; }
.site-footer__logo-text { display: flex; flex-direction: column; }
.site-footer__name { font-size: 1.0625rem; font-weight: 700; letter-spacing: .04em; }
.site-footer__name-sub {
  font-size: .6875rem; color: #8FB3A8; letter-spacing: .14em; text-transform: uppercase;
}
.site-footer__tagline { margin: .8rem 0 0; line-height: 1.8; color: #A9C4BC; }

/* 佔位 logo：白色方磚上以 clip-path 疊出佛塔剪影。換成圖檔時整塊刪掉即可 */
.brand-mark {
  position: relative; flex: none; width: 2.5rem; height: 2.5rem;
  border-radius: 10px; background: #fff; border: 1px solid var(--th-rattan);
  overflow: hidden;
}
.brand-mark::before {
  content: ""; position: absolute; left: 50%; bottom: .5rem;
  width: 1.4rem; height: 1.3rem; transform: translateX(-50%);
  background: var(--th-marigold);
  clip-path: polygon(50% 0, 58% 30%, 72% 70%, 80% 100%, 20% 100%, 28% 70%, 42% 30%);
}
.brand-mark::after {
  content: ""; position: absolute; left: 50%; bottom: .32rem;
  width: 1.7rem; height: .22rem; transform: translateX(-50%);
  border-radius: 1px; background: var(--th-andaman);
}

.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 1rem;
}
.site-footer__legal p { margin: 0 0 .35rem; line-height: 1.7; color: #A9C4BC; }

/* 底部列：左 copyright、右標語。右側留白避開回頁首鈕 */
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: .25rem 1.5rem; margin-top: 1rem; padding-right: 3.5rem;
}
.site-footer__copy  { margin: 0; color: #A9C4BC; }
.site-footer__motto { margin: 0; color: rgba(255,255,255,.34); letter-spacing: .06em; }

/* 回頁首：純錨點，捲到頁尾才出現，不需 JS、不長駐畫面 */
.site-footer__top {
  position: absolute; bottom: 1.5rem; right: max(1rem, calc(50% - 34rem));
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  background: var(--th-marigold); color: #fff;
  border: 1px solid rgba(255,255,255,.22);
}
.site-footer__top:hover { background: #D07F1D; text-decoration: none; }

/* ---------- 行動版 ---------- */
@media (max-width: 40rem) {
  .home-hero__title { font-size: 1.4rem; }
  .post-hero__title { font-size: 1.125rem; }
  .post-body h2 { font-size: 1.0625rem; }
  .th-product-card__link { flex-direction: column; }
  .th-product-card__image { width: 100%; aspect-ratio: 16 / 9; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
  .site-footer__wave { height: 1.75rem; }
  .site-footer__cols { grid-template-columns: 1fr; }
  .site-footer__bottom { padding-right: 0; }
  .site-footer__top { position: static; margin: 1.25rem auto 0; display: flex; }
}

/* ---------- 搜尋 ---------- */
.site-header__row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-header__search {
  display: inline-flex; align-items: center; gap: .3rem; flex: none;
  color: #fff; font-size: .8125rem; text-decoration: none;
  padding: .3rem .7rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
}
.site-header__search:hover {
  text-decoration: none; background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.6);
}
.site-header__search[aria-current="page"] { background: rgba(255,255,255,.18); }

.search-title {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.5rem; margin: 0 0 1rem;
}
.search-form { display: flex; gap: .5rem; margin: 0 0 .75rem; }
.search-form input[type="search"] {
  flex: 1; min-width: 0;
  font: inherit; font-size: .9375rem; color: var(--th-teak);
  padding: .55rem .8rem;
  border: .5px solid var(--th-rattan); border-radius: var(--radius-ctl);
  background: #fff;
}
.search-form input[type="search"]:focus {
  outline: 2px solid var(--th-andaman); outline-offset: 1px; border-color: var(--th-andaman);
}
.search-form button {
  font: inherit; font-size: .875rem; font-weight: 700; color: #fff;
  padding: .55rem 1.1rem; border: none; border-radius: var(--radius-ctl);
  background: var(--th-marigold); cursor: pointer;
}
.search-form button:hover { background: #d4821f; }

@media (max-width: 40rem) {
  .site-header__search span { display: none; }
  .search-title { font-size: 1.25rem; }
}

/* ---------- 語言切換 ---------- */
.site-header__tools { display: flex; align-items: center; gap: .5rem; flex: none; }

.lang-switch { position: relative; }
.lang-switch > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35rem;
  color: #fff; font-size: .8125rem;
  padding: .3rem .7rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::after { content: "⌄"; font-size: .85em; opacity: .8; }
.lang-switch[open] > summary::after { content: "⌃"; }
.lang-switch > summary:hover {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6);
}

.lang-switch__badge {
  font-size: .625rem; font-weight: 700; letter-spacing: .06em;
  padding: .05rem .25rem; border-radius: 3px;
  background: rgba(255,255,255,.22);
}

.lang-switch__menu {
  position: absolute; right: 0; top: calc(100% + .35rem); z-index: 30;
  min-width: 11rem; padding: .3rem;
  background: #fff; border: .5px solid var(--th-rattan);
  border-radius: 12px; box-shadow: 0 6px 20px rgba(18,58,51,.14);
}
.lang-switch__item {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .6rem; border-radius: var(--radius-ctl);
  color: var(--th-teak); font-size: .875rem; text-decoration: none;
}
.lang-switch__item:hover { background: var(--th-shell); text-decoration: none; }
.lang-switch__item.is-current { font-weight: 700; background: var(--th-shell); }
.lang-switch__item .lang-switch__badge {
  background: var(--th-teak); color: #fff; flex: none;
}

@media (max-width: 40rem) {
  .lang-switch__label { display: none; }
  .site-header__search span { display: none; }
}
