/* ===================================================================
   site-nav.css — shared site navigation (utility bar + sticky nav +
   account dropdown), identical to the home page. Self-contained:
   literal colors, nav-scoped selectors, its own button classes — so it
   drops onto any page. Link it AFTER the page's own stylesheet.
   =================================================================== */

.ubar { background: #0e1c46; color: rgba(255, 255, 255, .82); font-size: 13px }
.ubar .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 16px }
.ubar a { color: inherit; text-decoration: none }
.ubar a:hover { color: #fff }
.ubar .u-r { display: flex; gap: 20px; align-items: center }
@media (max-width:720px) { .ubar .est { display: none } .ubar .wrap { justify-content: center } }

.nav { position: sticky; top: 0; z-index: 200; margin: 0; background: #fff; border-bottom: 1px solid #dde3ef }
.nav::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, #b8912f, #caa445 60%, #b8912f) }
.nav .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 18px; height: 76px }

.nav .brand { display: flex; align-items: center; gap: 13px; text-decoration: none }
.nav .brand img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid #e7d9b0; flex-shrink: 0; object-fit: cover }
.nav .brand .bt { font-family: 'Bai Jamjuree', 'Sarabun', serif; font-weight: 700; font-size: 17.5px; color: #0e1c46; line-height: 1.15; white-space: nowrap }
.nav .brand .bs { font-size: 11px; font-weight: 500; color: #5c6472; letter-spacing: 1.4px; text-transform: uppercase }

.nav .links { display: flex; gap: 2px; margin-left: auto }
.nav .links a { padding: 9px 10px; font-size: 15px; font-weight: 500; color: #3a4353; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap }
.nav .links a:hover, .nav .links a.active { color: #1d2f6e; border-bottom-color: #b8912f }

.nav .actions { display: flex; gap: 10px; align-items: center }
.nav .burger { display: none; margin-left: auto; background: none; border: 1px solid #dde3ef; border-radius: 6px; width: 42px; height: 40px; cursor: pointer; color: #1d2f6e; align-items: center; justify-content: center }
.nav .burger svg { width: 22px; height: 22px }
@media (max-width:1160px) { .nav .links { display: none } .nav .actions { display: none } .nav .burger { display: flex } }

/* login button + account dropdown (self-contained classes — no dependency on .btn) */
.acct-login { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 8px; background: #1d2f6e; color: #fff; border: 1.5px solid #1d2f6e; font: 600 14px/1 'Sarabun', system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: .15s }
.acct-login:hover { background: #0e1c46; border-color: #0e1c46 }

.acct { position: relative }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 9px; border: 1.5px solid #dde3ef; background: #fff; color: #1d2f6e; cursor: pointer; font: 600 14px/1 'Sarabun', system-ui, sans-serif; transition: .15s }
.acct-btn:hover { border-color: #b8912f }
.acct-btn .cx { width: 15px; height: 15px }
.acct-av { width: 26px; height: 26px; border-radius: 50%; background: #1d2f6e; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none }
.acct-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 214px; background: #fff; border: 1px solid #dde3ef; border-radius: 11px; box-shadow: 0 14px 34px rgba(16, 32, 80, .17); padding: 6px; display: none; z-index: 120 }
.acct-menu.open { display: block }
.acct-menu a, .acct-menu button { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 8px; border: none; background: none; text-align: left; cursor: pointer; font: 400 14px 'Sarabun', system-ui, sans-serif; color: #2a3446; text-decoration: none; transition: .12s }
.acct-menu a:hover, .acct-menu button:hover { background: #eceff6 }
.acct-menu a.active { color: #1d2f6e; font-weight: 700 }
.acct-menu .ai { width: 18px; text-align: center; flex: none }
.acct-menu #acctLogout { color: #b42318; border-top: 1px solid #e9edf5; margin-top: 4px }

/* mobile drawer */
.mmenu { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(8, 16, 44, .6) }
.mmenu.open { display: block }
.mmenu .panel { position: absolute; top: 0; right: 0; width: 280px; max-width: 85%; height: 100%; background: #fff; padding: 22px; display: flex; flex-direction: column; gap: 4px; box-shadow: -10px 0 40px rgba(6, 12, 40, .3); overflow-y: auto }
.mmenu .panel a { padding: 13px 10px; border-bottom: 1px solid #e9edf5; font: 500 15px 'Sarabun', system-ui, sans-serif; color: #2a3446; text-decoration: none }
.mmenu .mm-acct { font-weight: 700; color: #0e1c46; padding: 9px 10px; border-bottom: 1px solid #e9edf5; margin-bottom: 4px }
.mmenu .acct-login { margin-top: 14px; justify-content: center }
.acct-logout-m { margin-top: 8px; width: 100%; justify-content: center; display: inline-flex; align-items: center; padding: 11px 16px; border-radius: 8px; background: transparent; color: #1d2f6e; border: 1.5px solid #1d2f6e; font: 700 14px 'Sarabun', system-ui, sans-serif; cursor: pointer }
.acct-logout-m:hover { background: #1d2f6e; color: #fff }
