/* gs-bkk.css — GUI template 2 ของ genseal (themes/bkk, components/TemplateSwitch) ; โหลดหลัง static/bkk/*.css
   dropdown <details> ใน pill-nav (เหมือน tracking1/frontend/web/css/t1-bkk.css) + ปุ่ม TH|EN ให้เข้ากับ .app-header */

.app-header { z-index: 1030; }
.app-header .brand { text-decoration: none; }
.app-header .pill-nav a { text-decoration: none; }

/* dropdown ใน pill-nav — เมนูใช้ position: fixed ไม่ให้ถูกตัดโดย overflow ของ pill-nav */
.app-header .pill-dd { position: relative; flex: none; margin: 0; }
.app-header .pill-dd > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  color: var(--n700); font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.app-header .pill-dd > summary::-webkit-details-marker { display: none; }
.app-header .pill-dd > summary:hover, .app-header .pill-dd[open] > summary { background: var(--n100); color: var(--n900); }
.app-header .pill-dd > summary.on { background: var(--p50); color: var(--p700); }
.app-header .pill-dd > summary i { font-size: 18px; }
.app-header .pill-dd > summary .pill-caret { font-size: 12px; transition: transform .2s; }
.app-header .pill-dd[open] > summary .pill-caret { transform: rotate(180deg); }
.app-header .pill-dd-menu { position: fixed; top: calc(var(--header-h) - 6px); z-index: 1040; min-width: 260px; max-width: min(440px, calc(100vw - 24px));
  max-height: calc(100vh - var(--header-h) - 16px); overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--n100);
  border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .12); }
.app-header .pill-dd-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--n800, #23302a); font-size: 14px; font-weight: 500;
  white-space: normal; line-height: 1.4; text-decoration: none; }
.app-header .pill-dd-menu a:hover { background: var(--n100); }
.app-header .pill-dd-menu .dd-label { padding: 10px 12px 4px; font-size: 12px; font-weight: 700; color: var(--n500); text-transform: uppercase; letter-spacing: .03em; }

/* TH | EN */
.app-header .gs-langsw { border-radius: 999px; overflow: hidden; border-color: var(--n200, #d9dee3); margin-left: 0; }
.app-header .gs-langsw button { font-family: inherit; padding: 7px 10px; }
.app-header .gs-langsw button[aria-pressed="true"] { background: var(--p500); }

/* footer */
.app-footer .home-wrap { max-width: 1440px; margin: 0 auto; padding: 0 28px; }

@media (max-width: 767px) {
  .app-header .pill-dd-menu { position: static; box-shadow: none; border: 0; margin: 0 0 6px 18px; max-height: none; padding: 0; }
  .app-header .brand-text { display: none !important; }
  .app-footer .home-wrap { padding: 0 16px; }
}
