/* =========================================================
   SMOPOL · สโมสรนักศึกษาคณะรัฐศาสตร์ มหาวิทยาลัยอุบลราชธานี
   ธีม: ส้มสดใส · ใช้ร่วมกันทุกหน้า (รวมหน้าร้าน SMO-Shop)
   ========================================================= */
@view-transition { navigation: auto; }

:root {
  color-scheme: light;
  /* โทนส้มสดกำลังดี ไม่จัดจนแสบตา */
  --orange-50: #FFF3E8;
  --orange-100: #FFE5CF;
  --orange-200: #FDCAA0;
  --orange-300: #F8AB6E;
  --orange-400: #F29148;
  --orange-500: #EB7A2E;
  --orange-600: #D2651E;
  --orange-700: #A84E15;
  --amber: #F4B74A;
  --ink: #2E2219;
  --ink-2: #5B4636;
  --ink-3: #8B7564;
  --bg: #FFF9F4;
  --bg-alt: linear-gradient(180deg, #FFEFE1 0%, #FFF9F4 100%);
  --card: #FFFFFF;
  --card-2: #FFFAF5;
  --field: #FFFFFF;
  --line: #F1E0D0;
  --ok: #2F8A5B;
  --danger: #C94A3C;
  --ok-bg: #E7F3EC; --ok-text: #226B45; --ok-line: #C4E2D0;
  --bad-bg: #F9EAE6; --bad-text: #A33D30; --bad-line: #EFCBC3;
  --warn-bg: #F8EEDC; --warn-text: #7D5A22;
  --switch-off: #EDD9C7;

  --grad-hot: linear-gradient(135deg, #F7A159 0%, #EE8134 55%, #E06C24 100%);
  --hero-grad: linear-gradient(140deg, #F6A058 0%, #EC7E33 48%, #DA6423 100%);
  --grad-soft: linear-gradient(135deg, #FFF1E4 0%, #FDE3CD 100%);
  --card-hover: linear-gradient(to top, rgba(200,90,22,.84), rgba(250,175,100,.18));
  --hero-hl: #FFE6C4;
  --blob-1: #FFCB8C; --blob-2: #E2602A; --blob-3: #F8A860;
  --blob-opacity: .38;
  --band: #3A281C;
  --on-band: #FFE3CA;
  --footer-bg: #2F2118;
  --header-bg: rgba(255, 249, 244, .82);
  --header-bg-scrolled: rgba(255, 255, 255, .92);
  --glass: rgba(255, 255, 255, .92);
  --overlay: rgba(38, 28, 20, .45);
  --focus-ring: rgba(235, 122, 46, .2);
  --sk-a: #F7E7D8;
  --sk-b: #FFF6EE;
  --shadow-sm: 0 2px 8px -2px rgba(120, 60, 20, .10);
  --shadow: 0 14px 34px -16px rgba(120, 60, 20, .25);
  --shadow-lg: 0 28px 56px -26px rgba(120, 60, 20, .32);
  --shadow-deep: rgba(50, 30, 15, .35);
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --font-head: 'Prompt', 'Noto Sans Thai', system-ui, sans-serif;
  --font-body: 'Noto Sans Thai', 'Sarabun', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 76px;
}

/* ---------------- ธีมมืด (ผู้ใช้เลือกได้จากปุ่มบนแถบเมนู) ---------------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --orange-50: #2A221C;
  --orange-100: #332820;
  --orange-200: #4A3829;
  --orange-300: #7C5A40;
  --orange-400: #E38846;
  --orange-500: #F09452;
  --orange-600: #F5A66A;
  --orange-700: #F9BC88;
  --amber: #D6AE6C;
  --ink: #EEE6DE;
  --ink-2: #CBBDB0;
  --ink-3: #9E8F82;
  --bg: #161310;
  --bg-alt: linear-gradient(180deg, #1C1814 0%, #161310 100%);
  --card: #211C18;
  --card-2: #28221D;
  --field: #1B1713;
  --line: #3A3129;
  --ok: #5DBB88;
  --danger: #E07A6C;
  --ok-bg: #1E2E25; --ok-text: #8FD5AE; --ok-line: #2F4A3A;
  --bad-bg: #36221E; --bad-text: #F0A596; --bad-line: #57342D;
  --warn-bg: #332A1C; --warn-text: #E6C58B;
  --switch-off: #463B32;

  --grad-hot: linear-gradient(135deg, #EE944F 0%, #DD7630 55%, #C45F20 100%);
  --hero-grad: linear-gradient(140deg, #7A4322 0%, #55301C 50%, #372218 100%);
  --grad-soft: linear-gradient(135deg, #2A231D 0%, #231D18 100%);
  --card-hover: linear-gradient(to top, rgba(40,26,17,.88), rgba(90,60,40,.25));
  --hero-hl: #FFC994;
  --blob-1: #9A5A2C; --blob-2: #6E3318; --blob-3: #85502A;
  --blob-opacity: .45;
  --band: #0F0D0B;
  --on-band: #E7D2BE;
  --footer-bg: #0F0D0B;
  --header-bg: rgba(22, 19, 16, .72);
  --header-bg-scrolled: rgba(26, 22, 19, .92);
  --glass: rgba(33, 28, 24, .92);
  --overlay: rgba(0, 0, 0, .6);
  --focus-ring: rgba(240, 148, 82, .28);
  --sk-a: #28221D;
  --sk-b: #332B24;
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, .35);
  --shadow: 0 14px 34px -16px rgba(0, 0, 0, .55);
  --shadow-lg: 0 28px 56px -26px rgba(0, 0, 0, .7);
  --shadow-deep: rgba(0, 0, 0, .6);
}

/* ปุ่มสลับธีม */
.theme-toggle { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--orange-50); color: var(--orange-700); cursor: pointer; display: grid; place-items: center; overflow: hidden; transition: background .3s, transform .4s var(--spring); }
.theme-toggle:hover { transform: rotate(-12deg) scale(1.06); }
.theme-toggle .ic { position: absolute; width: 21px; height: 21px; transition: transform .6s var(--spring), opacity .35s; }
.theme-toggle .ic-moon { transform: translateY(0) rotate(0); }
.theme-toggle .ic-sun { transform: translateY(140%) rotate(-90deg); opacity: 0; }
:root[data-theme="dark"] .theme-toggle .ic-moon { transform: translateY(-140%) rotate(90deg); opacity: 0; }
:root[data-theme="dark"] .theme-toggle .ic-sun { transform: none; opacity: 1; }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .theme-toggle { background: rgba(255,255,255,.2); color: #fff; }
html.theme-switching, html.theme-switching * { transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), fill .45s var(--ease) !important; }


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; margin: 0; }
p { margin: 0; }
::selection { background: var(--orange-200); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange-400); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 40px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--band); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.18em; }
.muted { color: var(--ink-3); }

/* ---------------- ปุ่ม ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; line-height: 1.2;
  background: var(--grad-hot); color: #fff; box-shadow: var(--shadow); cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--spring), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
  position: relative; overflow: hidden; isolation: isolate; text-decoration: none;
}
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.4) 50%, transparent 80%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn .ic { transition: transform .35s var(--spring); }
.btn:hover .ic:last-child:not(:first-child) { transform: translateX(3px); }
.btn-white { background: var(--card); color: var(--orange-700); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); box-shadow: none; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.26); box-shadow: none; }
.btn-outline { background: transparent; color: var(--orange-700); border-color: var(--orange-200); box-shadow: none; }
.btn-outline:hover { background: var(--orange-50); border-color: var(--orange-300); box-shadow: none; }
.btn-soft { background: var(--orange-50); color: var(--orange-700); box-shadow: none; }
.btn-soft:hover { background: var(--orange-100); box-shadow: none; }
.btn-dark { background: var(--band); color: var(--on-band); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: none; }
.btn-sm { padding: .5em 1em; font-size: .9rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::before { content: ''; position: absolute; width: 20px; height: 20px; left: calc(50% - 10px); top: calc(50% - 10px); border: 2.5px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-outline.is-loading::before, .btn-soft.is-loading::before, .btn-white.is-loading::before { border-color: var(--orange-200); border-top-color: var(--orange-600); }

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); background: var(--header-bg); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
/* ฟิลเตอร์กระจกอยู่บนชั้นซ้อนของตัวเอง ห้ามใส่ไว้บน .site-header ตรง ๆ
   เพราะ backdrop-filter ทำให้ element กลายเป็นกรอบอ้างอิงของลูกที่เป็น position: fixed
   แล้วเมนูมือถือ (.main-nav) จะยุบเหลือความสูงเท่าแถบหัวทันทีที่เลื่อนหน้าจอ */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.site-header.is-scrolled { background: var(--header-bg-scrolled); border-color: var(--line); box-shadow: 0 8px 30px -18px var(--shadow-deep); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.scroll-progress span { display: block; height: 100%; background: var(--grad-hot); transform-origin: left; transform: scaleX(0); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 46px; height: 46px; flex: none; display: block; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
/* โลโก้สโมสร: พื้นหลังสีขาวเสมอ ทั้งธีมสว่างและธีมมืด */
.brand-mark { background: #fff; border-radius: 50%; padding: 3px; box-shadow: 0 2px 10px -3px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.04); overflow: hidden; transition: transform .5s var(--spring); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand-text strong { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: .72rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand--light .brand-text small { color: rgba(255,255,255,.7); }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 11px; border-radius: 999px; border: 0; background: none; font-family: var(--font-head); font-size: .92rem; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background .25s, color .25s; }
.nav-link:hover, .has-sub.open > .nav-link { background: var(--orange-50); color: var(--orange-700); }
.nav-link.is-current { background: var(--grad-hot); color: #fff; box-shadow: var(--shadow-sm); }
.nav-link .chev { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.has-sub.open > .nav-link .chev { transform: rotate(180deg); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 10px); left: 50%; min-width: 260px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translate(-50%, 8px) scale(.97); transform-origin: top center; transition: opacity .25s var(--ease), transform .35s var(--ease), visibility .25s; }
.sub::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.sub a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-radius: 10px; font-size: .92rem; color: var(--ink-2); transition: background .2s, color .2s, padding .25s var(--ease); }
.sub a .ic { width: .9em; height: .9em; opacity: .5; }
.sub a:hover, .sub a.is-current { background: var(--orange-50); color: var(--orange-700); padding-left: 20px; }
.sub a.is-current { font-weight: 600; }
.has-sub.open > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
@media (hover: hover) and (min-width: 1241px) {
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
  .has-sub:hover > .nav-link { background: var(--orange-50); color: var(--orange-700); }
  .has-sub:hover > .nav-link .chev { transform: rotate(180deg); }
}
.has-hero .site-header:not(.is-scrolled) { background: transparent; }
.has-hero .site-header:not(.is-scrolled)::before { display: none; }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .brand-text,
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .brand-text small { color: #fff; }
@media (min-width: 1241px) {
  .has-hero .site-header:not(.is-scrolled) .main-nav > ul > li > .nav-link { color: #fff; }
  .has-hero .site-header:not(.is-scrolled) .main-nav > ul > li > .nav-link:hover,
  .has-hero .site-header:not(.is-scrolled) .has-sub.open > .nav-link { background: rgba(255,255,255,.2); color: #fff; }
  .has-hero .site-header:not(.is-scrolled) .main-nav > ul > li > .nav-link.is-current { background: var(--card); color: var(--orange-700); }
}
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--orange-50); cursor: pointer; position: relative; flex: none; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2.5px; border-radius: 2px; background: var(--orange-700); transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .nav-toggle { background: rgba(255,255,255,.22); }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .nav-toggle span { background: var(--card); }
.header-cart { display: none; }
.header-inner > .theme-toggle { margin-left: 6px; }
.eyebrow-pill .dot.dot-logo { width: 32px; height: 32px; padding: 2px; background: #fff; box-shadow: 0 2px 8px -2px rgba(0,0,0,.3); }
.eyebrow-pill .dot.dot-logo img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 1240px) {
  .nav-toggle { display: block; margin-left: 8px; }
  .header-inner > .theme-toggle { margin-left: auto; }
  .main-nav { position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(380px, 100%); background: var(--card); box-shadow: var(--shadow-lg); padding: 16px; overflow-y: auto; transform: translateX(105%); transition: transform .45s var(--ease); }
  .nav-open .main-nav { transform: none; }
  .nav-open::after { content: ''; position: fixed; inset: var(--header-h) 0 0 0; background: var(--overlay); z-index: 40; animation: fade-in .3s; touch-action: none; }
  .nav-open .site-header { background: var(--card); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav > ul > li { opacity: 0; transform: translateX(20px); transition: opacity .3s, transform .4s var(--ease); }
  .nav-open .main-nav > ul > li { opacity: 1; transform: none; }
  .nav-open .main-nav > ul > li:nth-child(2) { transition-delay: .03s; } .nav-open .main-nav > ul > li:nth-child(3) { transition-delay: .06s; }
  .nav-open .main-nav > ul > li:nth-child(4) { transition-delay: .09s; } .nav-open .main-nav > ul > li:nth-child(5) { transition-delay: .12s; }
  .nav-open .main-nav > ul > li:nth-child(6) { transition-delay: .15s; } .nav-open .main-nav > ul > li:nth-child(7) { transition-delay: .18s; }
  .nav-open .main-nav > ul > li:nth-child(8) { transition-delay: .21s; } .nav-open .main-nav > ul > li:nth-child(n+9) { transition-delay: .24s; }
  .nav-link { width: 100%; justify-content: space-between; padding: 12px 16px; font-size: 1rem; border-radius: 14px; }
  .sub { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; display: none; }
  .has-sub.open > .sub { display: block; transform: none; animation: drop-in .35s var(--ease); }
}
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-text strong { font-size: .92rem; }
  .brand-text small { display: none; }
}

/* ---------------- Hero หน้าแรก ---------------- */
.home-hero, .page-hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; background: var(--hero-grad); margin-top: calc(var(--header-h) * -1); }
.home-hero { padding: calc(var(--header-h) + clamp(40px, 6vw, 84px)) 0 clamp(130px, 13vw, 190px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: var(--blob-opacity); animation: blob-float 18s ease-in-out infinite; }
.blob-1 { width: 520px; height: 520px; background: var(--blob-1); top: -180px; left: -120px; }
.blob-2 { width: 460px; height: 460px; background: var(--blob-2); bottom: -200px; right: -80px; animation-delay: -6s; }
.blob-3 { width: 340px; height: 340px; background: var(--blob-3); top: 30%; left: 45%; animation-delay: -11s; }
.dots-pattern { position: absolute; inset: 0; opacity: .1; background-image: radial-gradient(rgba(255,255,255,.9) 1.2px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); }
.floaty { position: absolute; color: rgba(255,255,255,.55); animation: floaty 7s ease-in-out infinite; }
.floaty .ic { width: 100%; height: 100%; stroke-width: 1.6; }
.floaty-1 { width: 34px; height: 34px; top: 22%; left: 6%; }
.floaty-2 { width: 22px; height: 22px; top: 68%; left: 40%; animation-delay: -2s; }
.floaty-3 { width: 28px; height: 28px; top: 16%; right: 8%; animation-delay: -4s; }
.ring { position: absolute; border: 2px dashed rgba(255,255,255,.35); border-radius: 50%; animation: spin 40s linear infinite; }
.ring-1 { width: 380px; height: 380px; right: -120px; top: 40px; }
.ring-2 { width: 180px; height: 180px; left: 30%; bottom: -60px; animation-direction: reverse; animation-duration: 30s; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); font-family: var(--font-head); font-size: .88rem; font-weight: 500; }
.eyebrow-pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--card); color: var(--orange-600); display: grid; place-items: center; flex: none; }
.eyebrow-pill .dot .ic { width: 14px; height: 14px; animation: pulse-rot 3s ease-in-out infinite; }
.hero-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.eyebrow-pill--party .dot { width: 26px; height: 26px; padding: 3px; background: #fff; }
.eyebrow-pill--party .dot img { width: 100%; height: 100%; object-fit: contain; }
.eyebrow-pill--party b { font-weight: 600; }
.home-hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 700; margin: 18px 0 16px; letter-spacing: -.5px; line-height: 1.12; }
.home-hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.home-hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.home-hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hl { background: linear-gradient(90deg, #FBEBD8, #fff 40%, var(--hero-hl) 70%, #fff); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hero h1 .hl { animation: rise 1s var(--ease) .12s forwards, shine 6s linear 1.2s infinite; }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 560px; opacity: 0; animation: fade-up .9s var(--ease) .35s forwards; color: rgba(255,255,255,.95); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; opacity: 0; animation: fade-up .9s var(--ease) .5s forwards; }
.notice-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.notice-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-radius: 999px; background: var(--band); color: var(--on-band); font-family: var(--font-head); font-size: .92rem; box-shadow: var(--shadow); opacity: 0; animation: fade-up .9s var(--ease) .6s forwards; transition: transform .35s var(--spring); }
.notice-pill:hover { transform: translateY(-2px); }
.notice-pill .badge-new { padding: 2px 10px; border-radius: 999px; background: var(--grad-hot); color: #fff; font-size: .78rem; animation: pulse-soft 2s ease-in-out infinite; }
.notice-pill .ic { transition: transform .35s var(--spring); }
.notice-pill:hover .ic { transform: translateX(3px); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 34px; max-width: 560px; opacity: 0; animation: fade-up .9s var(--ease) .7s forwards; }
.stat { padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); transition: transform .4s var(--spring), background .3s; }
.stat:hover { transform: translateY(-4px); background: rgba(255,255,255,.24); }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; line-height: 1.1; }
.stat span { font-size: .85rem; opacity: .92; }
.hero-credit { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: .84rem; color: rgba(255,255,255,.88); opacity: 0; animation: fade-up .9s var(--ease) .8s forwards; }
.hero-credit .ic { width: 15px; height: 15px; flex: none; opacity: .9; }
.hero-credit b { font-family: var(--font-head); font-weight: 600; color: #fff; }
.collage { position: relative; height: clamp(340px, 40vw, 500px); opacity: 0; animation: fade-in 1s var(--ease) .3s forwards; }
.polaroid { position: absolute; background: var(--card); padding: 9px 9px 34px; border-radius: 16px; box-shadow: 0 30px 60px -20px var(--shadow-deep); width: 46%; transition: box-shadow .4s; will-change: transform; }
.polaroid .ph { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--grad-soft); }
.polaroid img { width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption { position: absolute; left: 12px; right: 12px; bottom: 7px; font-family: var(--font-head); font-size: .8rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.polaroid:nth-child(1) { top: 4%; left: 2%; --r: -8deg; z-index: 1; animation: bob 7s ease-in-out infinite; }
.polaroid:nth-child(2) { top: 0; right: 4%; --r: 6deg; z-index: 2; animation: bob 8s ease-in-out -2s infinite; }
.polaroid:nth-child(3) { bottom: -4%; left: 28%; --r: -2deg; z-index: 3; animation: bob 9s ease-in-out -4s infinite; }
.polaroid:hover { z-index: 5; box-shadow: 0 40px 80px -24px var(--shadow-deep); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(60px, 8vw, 110px); fill: var(--bg); }
.hero-wave .w2 { fill: var(--bg); opacity: .45; animation: wave-shift 9s ease-in-out infinite alternate; }
@media (max-width: 920px) { .hero-inner { grid-template-columns: 1fr; } .collage { height: 330px; max-width: 520px; width: 100%; margin: 10px auto 0; } }
@media (max-width: 520px) { .stats { gap: 8px; } .stat { padding: 10px 12px; } .stat span { font-size: .75rem; } .collage { height: 270px; } .polaroid { padding: 6px 6px 26px; } .polaroid figcaption { font-size: .7rem; bottom: 5px; } }

/* Hero หน้าย่อย */
.page-hero { padding: calc(var(--header-h) + clamp(34px, 5vw, 64px)) 0 clamp(90px, 9vw, 130px); }
.page-hero .container { position: relative; }
.page-hero .anim-in > * { opacity: 0; animation: fade-up .8s var(--ease) forwards; }
.page-hero .anim-in > *:nth-child(2) { animation-delay: .08s; } .page-hero .anim-in > *:nth-child(3) { animation-delay: .16s; } .page-hero .anim-in > *:nth-child(4) { animation-delay: .24s; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; max-width: 920px; text-shadow: 0 4px 30px rgba(0,0,0,.12); }
.page-hero .subtitle { font-size: clamp(1rem, 2vw, 1.2rem); margin-top: 10px; color: rgba(255,255,255,.92); max-width: 760px; }
.page-hero .hero-icon { width: 64px; height: 64px; border-radius: 20px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; margin-bottom: 16px; backdrop-filter: blur(6px); animation: bob 6s ease-in-out infinite; --r: -4deg; }
.page-hero .hero-icon .ic { width: 32px; height: 32px; }
.page-hero--image { min-height: clamp(420px, 60vh, 600px); display: flex; align-items: flex-end; padding-bottom: 60px; }
.page-hero-img { position: absolute; inset: -40px 0 0; z-index: -2; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; animation: ken-burns 22s ease-in-out infinite alternate; }
.page-hero--image::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(42,22,6,.92) 0%, rgba(140,80,45,.5) 45%, rgba(190,120,70,.12) 100%); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; color: rgba(255,255,255,.85); margin-bottom: 16px; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); transition: background .25s; }
.breadcrumb a:hover { background: rgba(255,255,255,.3); }
.meta-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.meta-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); font-size: .9rem; }
.pull-up { margin-top: -64px; position: relative; z-index: 2; }

/* ---------------- สไลด์แบนเนอร์ ---------------- */
.slider { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--grad-soft); aspect-ratio: 33 / 10; isolation: isolate; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 6s linear; }
.slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide a { display: block; height: 100%; }
.slider-ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: linear-gradient(to top, rgba(0,0,0,.28), transparent); }
.slider-dot { width: 34px; height: 5px; border-radius: 5px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; overflow: hidden; position: relative; }
.slider-dot span { position: absolute; inset: 0; background: var(--card); transform-origin: left; transform: scaleX(0); }
.slider-dot.is-active span { animation: progress var(--slide-ms, 6000ms) linear forwards; }
.slider.is-paused .slider-dot.is-active span { animation-play-state: paused; }
.slider-arrow { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 0; background: var(--glass); color: var(--orange-700); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .3s, transform .35s var(--spring); }
.slider:hover .slider-arrow, .slider-arrow:focus-visible { opacity: 1; }
.slider-arrow:hover { transform: scale(1.08); }
.slider-prev { left: 14px; } .slider-next { right: 14px; }
@media (hover: none) { .slider-arrow { display: none; } }
@media (max-width: 640px) { .slider { border-radius: 18px; aspect-ratio: 33 / 12; } .slider-dot { width: 22px; } }

/* ---------------- Marquee ---------------- */
.marquee { background: var(--band); color: var(--on-band); overflow: hidden; padding: 14px 0; transform: rotate(-1.2deg); margin: 0 -10px; position: relative; z-index: 2; box-shadow: var(--shadow); }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; font-family: var(--font-head); font-size: 1.02rem; white-space: nowrap; }
.marquee-item .ic { color: var(--orange-400); }

/* ---------------- Section ---------------- */
.section { padding: clamp(52px, 7vw, 90px) 0; position: relative; }
.section-tight { padding-top: 24px; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--orange-600); font-family: var(--font-head); font-weight: 600; font-size: .9rem; letter-spacing: .3px; }
.kicker::before { content: ''; width: 26px; height: 3px; border-radius: 3px; background: var(--grad-hot); }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; margin-top: 6px; }
.grad { background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-sub { color: var(--ink-3); margin-top: 6px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 500; color: var(--orange-700); padding: 8px 14px; border-radius: 999px; transition: background .25s; }
.link-more:hover { background: var(--orange-50); }
.link-more .ic { transition: transform .35s var(--spring); }
.link-more:hover .ic { transform: translateX(4px); }

/* ---------------- Toolbar ---------------- */
.toolbar { position: sticky; top: calc(var(--header-h) + 10px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); margin-bottom: 26px; }
.search { position: relative; flex: 1 1 260px; display: block; }
.search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--orange-500); pointer-events: none; }
.search input { width: 100%; height: 46px; padding: 0 44px 0 46px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); transition: border-color .25s, box-shadow .25s, background .25s; }
.search input:focus { outline: none; border-color: var(--orange-400); box-shadow: 0 0 0 4px var(--focus-ring); background: var(--card); }
.search kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: .75rem; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-3); background: var(--card); font-family: inherit; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; flex: 10 1 auto; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-family: var(--font-head); font-size: .9rem; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background .25s, color .25s, border-color .25s, transform .3s var(--spring); }
.chip:hover { border-color: var(--orange-300); transform: translateY(-1px); }
.chip .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--orange-50); color: var(--orange-700); font-size: .75rem; display: grid; place-items: center; }
.chip[aria-pressed="true"], .chip[aria-current="page"], .chip.active { background: var(--grad-hot); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.chip[aria-pressed="true"] .count { background: rgba(255,255,255,.25); color: #fff; }
.select { height: 46px; padding: 0 38px 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B06537' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; appearance: none; cursor: pointer; font-family: var(--font-head); font-size: .92rem; }
.view-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--orange-50); position: relative; }
.view-toggle button { position: relative; z-index: 1; width: 40px; height: 38px; border: 0; background: none; border-radius: 999px; color: var(--orange-700); cursor: pointer; display: grid; place-items: center; transition: color .3s; }
.view-toggle button[aria-pressed="true"] { color: #fff; }
.view-toggle .pill { position: absolute; top: 4px; left: 4px; width: 40px; height: 38px; border-radius: 999px; background: var(--grad-hot); transition: transform .45s var(--spring); box-shadow: var(--shadow-sm); }
.view-toggle[data-view="timeline"] .pill { transform: translateX(40px); }
.result-info { font-size: .9rem; color: var(--ink-3); margin: -12px 4px 18px; min-height: 1.5em; }
@media (max-width: 720px) { .toolbar { position: static; } .chips { order: 3; flex-basis: 100%; } }

/* ---------------- Cards ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--orange-200); }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--grad-soft); }
.card-media--portrait { aspect-ratio: 4 / 5; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .6s; }
.card:hover .card-media img { transform: scale(1.08); }
.media-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--orange-300); }
.media-fallback .ic { width: 42px; height: 42px; stroke-width: 1.5; }
img.lazy-img:not(.loaded) { opacity: 0; }
img.failed { visibility: hidden; }
.card-badge, .card-draft { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; font-family: var(--font-head); font-size: .8rem; font-weight: 500; background: var(--glass); color: var(--orange-700); box-shadow: var(--shadow-sm); backdrop-filter: blur(6px); z-index: 1; }
.card-draft { left: auto; right: 14px; background: var(--band); color: var(--on-band); }
.date-chip { position: absolute; left: 14px; bottom: 14px; z-index: 1; display: grid; place-items: center; min-width: 58px; padding: 6px 8px; border-radius: 14px; background: var(--card); color: var(--ink); font-family: var(--font-head); line-height: 1.1; box-shadow: var(--shadow); }
.date-chip b { font-size: 1.35rem; color: var(--orange-600); }
.date-chip small { font-size: .72rem; color: var(--ink-3); }
.card-hover { position: absolute; inset: 0; display: grid; place-items: center; background: var(--card-hover); opacity: 0; transition: opacity .45s var(--ease); }
.card-hover > span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: var(--card); color: var(--orange-700); font-family: var(--font-head); font-weight: 500; transform: translateY(16px) scale(.9); transition: transform .5s var(--spring); }
.card:hover .card-hover { opacity: 1; }
.card:hover .card-hover > span { transform: none; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--ink-3); }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta .ic { color: var(--orange-500); }
.card-title { font-size: 1.12rem; font-weight: 600; line-height: 1.4; transition: color .3s; }
.card:hover .card-title { color: var(--orange-700); }
.card-summary { color: var(--ink-2); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--orange-600); }
.card-more .ic { transition: transform .4s var(--spring); }
.card:hover .card-more .ic { transform: translateX(6px); }
.pin-badge { position: absolute; top: 14px; right: 14px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: var(--band); color: var(--on-band); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
@media (min-width: 900px) {
  .card--featured { grid-column: span 2; }
  .card--featured .card-link { flex-direction: row; }
  .card--featured .card-media { aspect-ratio: auto; flex: 1.25; min-height: 330px; }
  .card--featured .card-body { flex: 1; padding: 30px; justify-content: center; gap: 12px; }
  .card--featured .card-title { font-size: 1.6rem; }
  .card--featured .card-summary { -webkit-line-clamp: 4; font-size: 1rem; }
}

.sk { display: block; border-radius: 10px; background: linear-gradient(90deg, var(--sk-a) 0%, var(--sk-b) 50%, var(--sk-a) 100%); background-size: 200% 100%; animation: shimmer-bg 1.4s linear infinite; }
.skeleton { pointer-events: none; }
.skeleton .card-media .sk { position: absolute; inset: 0; border-radius: 0; }

[data-reveal] { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.card[data-reveal].is-visible { transition: opacity .8s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms), box-shadow .5s var(--ease), border-color .3s; }
.card[data-reveal].is-visible:hover { transform: translateY(-8px); transition-delay: 0ms; }

/* ---------------- Quick links / services ---------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; isolation: isolate; transition: transform .45s var(--spring), box-shadow .4s, border-color .3s, color .3s; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grad-hot); opacity: 0; transition: opacity .4s var(--ease); }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; color: #fff; }
.tile:hover::before { opacity: 1; }
.tile-ic { width: 50px; height: 50px; border-radius: 16px; flex: none; display: grid; place-items: center; background: var(--orange-50); color: var(--orange-600); transition: background .4s, color .4s, transform .5s var(--spring); }
.tile-ic .ic { width: 24px; height: 24px; }
.tile:hover .tile-ic { background: rgba(255,255,255,.22); color: #fff; transform: rotate(-8deg) scale(1.06); }
.tile b { display: block; font-family: var(--font-head); font-size: 1.05rem; line-height: 1.3; }
.tile small { display: block; font-size: .8rem; color: var(--ink-3); line-height: 1.4; transition: color .4s; }
.tile:hover small { color: rgba(255,255,255,.88); }
.tile .ext { position: absolute; top: 10px; right: 12px; width: 14px; height: 14px; opacity: .35; }

.svc-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s, border-color .3s; }
.svc-card::after { content: ''; position: absolute; width: 160px; height: 160px; right: -60px; top: -60px; border-radius: 50%; background: var(--orange-50); z-index: -1; transition: transform .7s var(--ease), background .4s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--orange-200); }
.svc-card:hover::after { transform: scale(2.6); background: var(--orange-100); }
.svc-card .tile-ic { width: 56px; height: 56px; background: var(--grad-hot); color: #fff; box-shadow: var(--shadow); }
.svc-card:hover .tile-ic { transform: rotate(-8deg) scale(1.08); }
.svc-card h3 { font-size: 1.12rem; }
.svc-card p { font-size: .92rem; color: var(--ink-2); }
.svc-card .card-more { margin-top: auto; }

/* ---------------- Shop teaser ---------------- */
.shop-band { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(28px, 4vw, 48px); background: var(--band); color: #fff; isolation: isolate; }
.shop-band::before { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(235,122,46,.55), transparent 65%); z-index: -1; animation: blob-float 14s ease-in-out infinite; }
.shop-band::after { content: ''; position: absolute; width: 320px; height: 320px; left: -100px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(221,178,107,.35), transparent 65%); z-index: -1; animation: blob-float 16s ease-in-out -5s infinite; }
.shop-band .section-sub { color: rgba(255,255,255,.75); }
.shop-status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: .88rem; }
.shop-status i { width: 9px; height: 9px; border-radius: 50%; background: #9CA3AF; }
.shop-status.open i { background: #6BCB95; box-shadow: 0 0 0 0 rgba(107,203,149,.6); animation: ping-green 1.8s infinite; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 24px; }
.product { display: block; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 10px; transition: transform .45s var(--spring), background .3s; }
.product:hover { transform: translateY(-6px) rotate(-.6deg); background: rgba(255,255,255,.12); }
.product-img { aspect-ratio: 1; border-radius: 14px; background: var(--orange-50); overflow: hidden; display: grid; place-items: center; color: var(--orange-300); }
.product-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.product:hover .product-img img { transform: scale(1.07); }
.product b { display: block; font-family: var(--font-head); font-weight: 500; margin: 10px 4px 0; line-height: 1.35; }
.product small { display: block; margin: 0 4px 4px; color: var(--orange-300); font-family: var(--font-head); }

/* ---------------- Timeline (ผลการดำเนินงาน) ---------------- */
.tl { position: relative; max-width: 980px; margin: 0 auto; padding: 10px 0; }
.tl::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; border-radius: 4px; background: linear-gradient(to bottom, var(--orange-200), var(--orange-500), var(--orange-200)); }
.tl-group { position: relative; text-align: center; margin: 10px 0 26px; }
.tl-group span { position: relative; display: inline-block; padding: 8px 20px; border-radius: 999px; background: var(--band); color: var(--on-band); font-family: var(--font-head); font-weight: 500; box-shadow: var(--shadow); }
.tl-item { position: relative; width: 50%; padding: 0 44px 34px 0; }
.tl-item.right { margin-left: 50%; padding: 0 0 34px 44px; }
.tl-item::before { content: ''; position: absolute; top: 30px; right: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 5px solid var(--orange-500); box-shadow: 0 0 0 6px var(--focus-ring); z-index: 1; }
.tl-item.right::before { right: auto; left: -11px; }
.tl-card { display: flex; gap: 16px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s; }
.tl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tl-thumb { width: 130px; flex: none; aspect-ratio: 1; border-radius: 14px; overflow: hidden; position: relative; background: var(--grad-soft); }
.tl-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .6s; }
.tl-card:hover .tl-thumb img { transform: scale(1.1); }
.tl-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tl-text .card-badge { position: static; align-self: flex-start; box-shadow: none; background: var(--orange-50); padding: 2px 10px; font-size: .75rem; }
.tl-text h3 { font-size: 1.05rem; font-weight: 600; }
.tl-text p { font-size: .88rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) {
  .tl::before { left: 14px; } .tl-group { text-align: left; padding-left: 36px; }
  .tl-item, .tl-item.right { width: auto; margin-left: 0; padding: 0 0 22px 44px; }
  .tl-item::before, .tl-item.right::before { left: 3px; right: auto; top: 22px; }
  .tl-thumb { width: 92px; }
}

/* ---------------- People ---------------- */
.people-section { margin-bottom: 44px; }
.people-section > h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 22px; }
.people-section > h2::after { content: ''; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--orange-200), transparent); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.person { position: relative; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 14px 14px 20px; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s, border-color .3s; }
.person:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--orange-200); }
.person-photo { position: relative; aspect-ratio: 5 / 6; border-radius: 20px; overflow: hidden; background: var(--grad-soft); }
.person-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .6s; }
.person-photo::after { z-index: 2; pointer-events: none; }
.person:hover .person-photo img { transform: scale(1.07); }
.person-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(240,100,0,.55), transparent 55%); opacity: 0; transition: opacity .45s; }
.person:hover .person-photo::after { opacity: 1; }
.person-socials { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; pointer-events: none; display: flex; justify-content: center; gap: 8px; transform: translateY(20px); opacity: 0; transition: transform .5s var(--spring), opacity .35s; }
.person:hover .person-socials, .person:focus-within .person-socials { transform: none; opacity: 1; pointer-events: auto; }
.person-socials a { width: 38px; height: 38px; border-radius: 50%; background: var(--card); color: var(--orange-700); display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .35s var(--spring), background .25s, color .25s; }
.person-socials a:hover { transform: translateY(-3px); background: var(--orange-600); color: #fff; }
@media (hover: none) { .person-socials { transform: none; opacity: 1; pointer-events: auto; } .person-photo::after { opacity: .6; } }
.person .role { display: inline-block; margin: -14px auto 0; position: relative; z-index: 2; padding: 4px 14px; border-radius: 999px; background: var(--grad-hot); color: #fff; font-family: var(--font-head); font-size: .78rem; box-shadow: var(--shadow-sm); }
.person .position { margin-top: 10px; font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink-2); line-height: 1.4; }
.person .name { margin-top: 4px; font-size: 1.02rem; font-weight: 600; font-family: var(--font-head); }

/* ---------------- Documents ---------------- */
.doc-list { display: grid; gap: 12px; }
.doc { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .4s, border-color .3s; }
.doc:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: var(--orange-200); }
.doc-badge { width: 64px; height: 64px; flex: none; border-radius: 16px; display: grid; place-items: center; text-align: center; padding: 4px; background: var(--grad-hot); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .78rem; line-height: 1.1; word-break: break-word; box-shadow: var(--shadow-sm); transition: transform .5s var(--spring); }
.doc:hover .doc-badge { transform: rotate(-6deg) scale(1.05); }
.doc-badge.form { background: linear-gradient(135deg, #6BB48C, #3F8A63); }
.doc-badge.alt { background: linear-gradient(135deg, #E3C07C, #CF9A4C); }
.doc-badge.dark { background: var(--band); color: var(--on-band); }
.doc-info { flex: 1; min-width: 0; }
.doc-info h3 { font-size: 1.02rem; font-weight: 500; line-height: 1.45; }
.doc-info small { color: var(--ink-3); }
@media (max-width: 600px) { .doc { flex-wrap: wrap; } .doc .btn { width: 100%; } .doc-badge { width: 52px; height: 52px; font-size: .7rem; } }

/* ---------------- Embed (ระบบภายนอก) ---------------- */
.embed { position: relative; border-radius: 26px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.embed-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: linear-gradient(to bottom, var(--card-2), #fff); border-bottom: 1px solid var(--line); }
.embed-bar .dots { display: flex; gap: 6px; }
.embed-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--orange-200); }
.embed-bar .dots i:nth-child(2) { background: var(--amber); } .embed-bar .dots i:nth-child(3) { background: var(--orange-500); }
.embed-bar .actions { display: flex; gap: 6px; }
.embed-frame { position: relative; }
.embed iframe { display: block; width: 100%; border: 0; background: #fff; }
.embed-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--card); text-align: center; padding: 20px; transition: opacity .5s var(--ease); z-index: 1; }
.embed-loading.done { opacity: 0; pointer-events: none; }
.embed-loading p { color: var(--ink-3); max-width: 420px; font-size: .92rem; }
.loader { width: 64px; height: 64px; position: relative; }
.loader::before, .loader::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 5px solid transparent; border-top-color: var(--orange-500); animation: spin 1s linear infinite; }
.loader::after { inset: 10px; border-top-color: var(--amber); animation-duration: .7s; animation-direction: reverse; }

/* ---------------- Prose (เนื้อหาบทความ) ---------------- */
.prose { color: var(--ink-2); font-size: 1.04rem; line-height: 1.95; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.4rem; color: var(--ink); margin-top: 1.6em; display: flex; align-items: center; gap: 10px; }
.prose h2::before { content: ''; width: 6px; height: 1.1em; border-radius: 6px; background: var(--grad-hot); flex: none; }
.prose h3 { font-size: 1.15rem; color: var(--ink); margin-top: 1.3em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--orange-700); text-decoration: underline; text-decoration-color: var(--orange-200); text-underline-offset: 3px; text-decoration-thickness: 2px; transition: text-decoration-color .25s; }
.prose a:hover { text-decoration-color: var(--orange-600); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose ul li::marker { color: var(--orange-500); }
.prose ol li::marker { color: var(--orange-600); font-family: var(--font-head); font-weight: 600; }
.prose blockquote { margin: 1.2em 0; padding: 16px 20px; border-radius: 18px; background: var(--orange-50); border-left: 5px solid var(--orange-500); color: var(--ink); font-family: var(--font-head); }
.prose img { border-radius: 18px; margin: 1em auto; box-shadow: var(--shadow-sm); }
.prose hr { border: 0; height: 2px; background: var(--line); margin: 2em 0; }
.prose > p:first-child { font-size: 1.1rem; color: var(--ink); }

.article { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 48px); box-shadow: var(--shadow); }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.aside { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 980px) { .layout-aside { grid-template-columns: 1fr; } .aside { position: static; } }
.cover-btn { display: block; width: 100%; border: 0; padding: 0; margin: 0 0 28px; border-radius: 20px; overflow: hidden; cursor: zoom-in; position: relative; background: var(--grad-soft); }
.cover-btn img { width: 100%; max-height: 720px; object-fit: contain; background: var(--orange-50); transition: transform .8s var(--ease), opacity .6s; }
.cover-btn:hover img { transform: scale(1.03); }
.cover-btn .zoom-hint { position: absolute; right: 14px; bottom: 14px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--glass); color: var(--orange-700); font-size: .85rem; font-family: var(--font-head); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--spring); }
.cover-btn:hover .zoom-hint { opacity: 1; transform: none; }
.highlights { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.highlights li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--orange-50); border: 1px solid var(--orange-100); font-size: .95rem; transition: transform .4s var(--spring), background .3s; }
.highlights li:hover { transform: translateY(-3px) rotate(-.5deg); background: var(--orange-100); }
.tick { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad-hot); color: #fff; }
.tick .ic { width: 16px; height: 16px; stroke-width: 3; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery button { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--grad-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .6s; }
.gallery button:hover img { transform: scale(1.1); }
.block-title { font-size: 1.3rem; margin: 34px 0 16px; display: flex; align-items: center; gap: 10px; }
.block-title .ic { color: var(--orange-500); }
.accent-card { position: relative; overflow: hidden; border-radius: 26px; padding: 26px; color: #fff; background: var(--hero-grad); box-shadow: var(--shadow-lg); isolation: isolate; }
.accent-card::before { content: ''; position: absolute; width: 220px; height: 220px; right: -70px; top: -70px; border-radius: 50%; background: rgba(255,255,255,.18); z-index: -1; animation: blob-float 10s ease-in-out infinite; }
.accent-card .big-ic { width: 54px; height: 54px; border-radius: 18px; background: rgba(255,255,255,.22); display: grid; place-items: center; margin-bottom: 14px; animation: bob 5s ease-in-out infinite; --r: -6deg; }
.accent-card .big-ic .ic { width: 28px; height: 28px; }
.accent-card h3 { font-size: 1.25rem; }
.accent-card p { font-size: .92rem; color: rgba(255,255,255,.92); margin: 6px 0 18px; }
.accent-card .btn { width: 100%; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-sm); }
.info-card h4 { font-size: 1rem; margin-bottom: 12px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; }
.ib { width: 38px; height: 38px; border-radius: 12px; background: var(--orange-50); color: var(--orange-600); display: grid; place-items: center; flex: none; }
.info-list small { display: block; color: var(--ink-3); font-size: .78rem; }
.share-row { display: flex; gap: 8px; margin-top: 16px; }
.share-row .btn { flex: 1; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.draft-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--band); color: var(--on-band); margin-bottom: 20px; font-size: .92rem; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.pn a { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s, border-color .3s; min-width: 0; }
.pn a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--orange-200); }
.pn .pn-next { justify-content: flex-end; text-align: right; }
.pn .arrow { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--orange-50); color: var(--orange-600); transition: background .3s, color .3s, transform .4s var(--spring); }
.pn a:hover .arrow { background: var(--grad-hot); color: #fff; }
.pn small { display: block; color: var(--ink-3); font-size: .8rem; }
.pn strong { display: block; font-family: var(--font-head); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn div { min-width: 0; }
@media (max-width: 600px) { .pn { grid-template-columns: 1fr; } }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .45s var(--spring), box-shadow .4s; }
a.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.contact-card .tile-ic { background: var(--grad-hot); color: #fff; }
.contact-card h3 { font-size: 1rem; }
.contact-card p { font-size: .92rem; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }

/* ---------------- FAQ ---------------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .35s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--orange-200); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 20px; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { width: 34px; height: 34px; flex: none; border-radius: 12px; background: var(--grad-hot); color: #fff; display: grid; place-items: center; font-weight: 700; }
.faq summary .chev { margin-left: auto; color: var(--orange-600); transition: transform .4s var(--spring); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 20px 68px; animation: drop-in .45s var(--ease); }

/* ---------------- Empty / error ---------------- */
.empty-state { text-align: center; padding: 60px 20px; grid-column: 1 / -1; }
.empty-art { width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 50%; background: var(--grad-soft); display: grid; place-items: center; color: var(--orange-500); animation: bob 5s ease-in-out infinite; --r: 0deg; }
.empty-art .ic { width: 48px; height: 48px; stroke-width: 1.6; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 6px; }
.empty-state p { color: var(--ink-3); margin-bottom: 18px; }

/* ---------------- CTA ---------------- */
.cta { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(32px, 5vw, 56px); color: #fff; background: var(--hero-grad); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; isolation: isolate; box-shadow: var(--shadow-lg); }
.cta::before { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -200px; border-radius: 50%; background: rgba(255,255,255,.18); z-index: -1; animation: blob-float 14s ease-in-out infinite; }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta p { color: rgba(255,255,255,.9); margin-top: 8px; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---------------- Footer ---------------- */
.site-footer { position: relative; margin-top: 90px; background: var(--footer-bg); color: rgba(255,255,255,.82); padding: 30px 0 0; }
.footer-wave { position: absolute; left: 0; bottom: 100%; width: 100%; height: 60px; fill: var(--footer-bg); margin-bottom: -1px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.2fr .9fr; gap: 40px; padding: 30px 0 40px; }
.footer-brand p { margin: 16px 0 18px; font-size: .92rem; max-width: 380px; }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 14px; position: relative; padding-bottom: 10px; }
.site-footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--grad-hot); }
.footer-line { display: flex; gap: 10px; font-size: .92rem; margin-bottom: 10px; white-space: pre-line; }
.footer-line .ic { color: var(--orange-400); margin-top: 4px; }
.footer-line a:hover { color: var(--orange-300); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.footer-links a { transition: color .25s, padding .3s var(--ease); }
.footer-links a:hover { color: var(--orange-300); padding-left: 6px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .3s, transform .4s var(--spring); }
.socials a:hover { background: var(--orange-500); transform: translateY(-4px) rotate(-6deg); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 0 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: rgba(255,255,255,.6); }
.party-credit { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: rgba(255,255,255,.72); }
.party-credit img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.party-credit b { font-family: var(--font-head); font-weight: 600; color: #fff; }
.admin-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; transition: background .25s, color .25s; }
.admin-link:hover { background: rgba(255,255,255,.08); color: #fff; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------------- To top / toast / lightbox ---------------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: var(--card); color: var(--orange-600); box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .35s, transform .45s var(--spring); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke: var(--orange-500); stroke-width: 3; stroke-linecap: round; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: grid; gap: 10px; width: min(440px, calc(100% - 32px)); }
.toast-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--band); color: #fff; box-shadow: var(--shadow-lg); animation: toast-in .5s var(--spring); }
.toast-item.leaving { animation: toast-out .35s var(--ease) forwards; }
.toast-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--orange-500); }
.toast-item.success .toast-ic { background: var(--ok); }
.toast-item.error .toast-ic { background: var(--danger); }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(20,10,2,.92); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 60px 16px; animation: fade-in .3s; }
.lightbox.closing { animation: fade-out .25s forwards; }
.lb-figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: grid; gap: 10px; justify-items: center; }
.lb-figure img { max-height: calc(100vh - 140px); width: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: zoom-in .45s var(--ease); }
.lb-figure figcaption { color: rgba(255,255,255,.75); font-size: .9rem; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .25s, transform .3s var(--spring); }
.lb-btn:hover { background: var(--orange-500); transform: scale(1.08); }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; margin-top: -24px; } .lb-next { right: 16px; top: 50%; margin-top: -24px; }

/* ---------------- Keyframes ---------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes shine { to { background-position: -200% center; } }
@keyframes blob-float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 30px) scale(.94); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(12deg); } }
@keyframes bob { 0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); } 50% { transform: rotate(var(--r, 0deg)) translateY(-12px); } }
@keyframes pulse-rot { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.2) rotate(20deg); } }
@keyframes pulse-soft { 0%, 100% { box-shadow: 0 0 0 0 rgba(235,122,46,.5); } 50% { box-shadow: 0 0 0 6px rgba(235,122,46,0); } }
@keyframes ping-green { 0% { box-shadow: 0 0 0 0 rgba(107,203,149,.6); } 100% { box-shadow: 0 0 0 10px rgba(107,203,149,0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shimmer-bg { to { background-position: -200% 0; } }
@keyframes wave-shift { from { transform: translateX(0); } to { transform: translateX(-60px); } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px) scale(.95); } }
@keyframes ken-burns { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.18) translate(-2%, -2%); } }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }

/* ---------------- ยืม-คืนพัสดุ ---------------- */
.bw-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0 0 34px; padding: 0; }
.bw-steps li { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-sm); }
.bw-steps b { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--grad-hot); color: #fff; font-family: var(--font-head); }
.bw-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: start; }
.bw-title { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-size: 1.1rem; margin: 0 0 14px; }
.bw-title .ic { width: 20px; height: 20px; color: var(--orange-600); }
.bw-assets { display: grid; gap: 10px; }
.bw-asset { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 13px 16px; transition: border-color .2s, box-shadow .2s; }
.bw-asset:hover { border-color: var(--orange-300); box-shadow: var(--shadow-sm); }
.bw-asset.is-empty { opacity: .55; }
.bw-asset-info b { display: block; font-weight: 600; }
.bw-asset-info small { color: var(--ink-3); }
.bw-qty { display: flex; align-items: center; gap: 10px; flex: none; }
.bw-step { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); font-size: 1.1rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.bw-step:hover:not(:disabled) { background: var(--orange-500); border-color: var(--orange-500); color: #fff; transform: scale(1.08); }
.bw-step:disabled { opacity: .4; cursor: not-allowed; }
.bw-num { min-width: 22px; text-align: center; font-family: var(--font-head); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.bw-form { margin: 0; }
@media (max-width: 900px) { .bw-grid { grid-template-columns: 1fr; } }

/* ---------------- ฟอร์มฝากข้อความถึงสโมสร ---------------- */
.msg-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.msg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 16px; }
.fld { display: block; margin-bottom: 16px; }
.fld > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink-2); }
.fld > span em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.fld .req { color: var(--danger); }
.fld input, .fld select, .fld textarea { width: 100%; box-sizing: border-box; font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s, opacity .2s; }
.fld textarea { resize: vertical; min-height: 130px; line-height: 1.65; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--orange-400); box-shadow: 0 0 0 4px var(--focus-ring); }
.fld input::placeholder, .fld textarea::placeholder { color: var(--ink-3); }
.fld.is-off { opacity: .45; }
.msg-count { display: block; text-align: right; margin-top: 6px; color: var(--ink-3); font-size: .8rem; }
.msg-anon { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); cursor: pointer; font-size: .9rem; color: var(--ink-2); }
.msg-anon input { width: 18px; height: 18px; accent-color: var(--orange-500); flex: none; margin-top: 1px; }
.msg-trap { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.form-msg { margin: 14px 0 0; min-height: 1.2em; font-size: .9rem; color: var(--ink-3); }
.form-msg.is-bad { color: var(--bad-text); font-weight: 500; }
.msg-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.msg-done { text-align: center; background: var(--card); border: 1px solid var(--ok-line); border-radius: var(--radius); padding: 44px 28px; box-shadow: var(--shadow-sm); }
.msg-done-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-text); }
.msg-done-ic .ic { width: 30px; height: 30px; }
/* ---------------- แบบสำรวจตัดสูท ---------------- */
.suit-form .fld select { font-size: 1rem; }
.suit-choice { margin: 22px 0 4px; padding: 0; border: 0; }
.suit-choice legend { padding: 0 0 12px; font-family: var(--font-head); font-weight: 500; color: var(--ink-2); }
.suit-opt { display: block; cursor: pointer; }
.suit-opt + .suit-opt { margin-top: 12px; }
.suit-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.suit-opt-in { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .25s, background .25s, transform .35s var(--spring); }
.suit-opt-in b { font-family: var(--font-head); font-size: 1.05rem; }
.suit-opt-in small { display: block; color: var(--ink-3); font-size: .86rem; margin-top: 2px; }
.suit-opt-in > span:not(.suit-opt-ic) { flex: 1; }
.suit-opt-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--orange-50); color: var(--orange-600); transition: background .25s, color .25s; }
.suit-opt-ic .ic { width: 20px; height: 20px; }
.suit-opt:hover .suit-opt-in { border-color: var(--orange-200); transform: translateY(-2px); }
.suit-opt input:focus-visible + .suit-opt-in { outline: 3px solid var(--orange-300); outline-offset: 2px; }
.suit-opt input:checked + .suit-opt-in { border-color: var(--orange-500); background: var(--orange-50); }
.suit-opt input:checked + .suit-opt-in .suit-opt-ic { background: var(--grad-hot); color: #fff; }
.suit-opt:has(input:disabled) { cursor: not-allowed; }
.suit-opt input:disabled + .suit-opt-in { opacity: .5; border-style: dashed; }
.suit-opt input:disabled + .suit-opt-in small { color: var(--bad-text, #B4322B); font-weight: 600; }
.suit-opt:has(input:disabled):hover .suit-opt-in { transform: none; border-color: var(--line); }
.suit-done .suit-join { font-size: 1.04rem; line-height: 1.7; margin: 6px 0 20px; }
.suit-qr { margin: 0 auto 18px; padding: 16px; width: fit-content; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.suit-qr img { display: block; width: 260px; height: 260px; max-width: 70vw; max-height: 70vw; }
.suit-qr figcaption { margin-top: 10px; font-size: .84rem; color: var(--ink-3); }
.btn-line { background: #06C755; border-color: #06C755; color: #fff; }
.btn-line:hover { background: #05a948; border-color: #05a948; }
.suit-done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.fld .fld-hint { display: block; margin-top: 6px; font-size: .82rem; color: var(--ink-3); font-weight: 400; }
.cheer-form .suit-choice legend { line-height: 1.6; }
.cheer-form .btn-line { margin-bottom: 4px; }
.msg-done h3 { font-family: var(--font-head); font-size: 1.35rem; margin: 0 0 8px; }
.msg-done p { max-width: 460px; margin: 0 auto 22px; }
@media (max-width: 620px) { .msg-form { padding: 20px 18px; } }

/* ---------------- เช็คออเดอร์สินค้ารอบ 1 ---------------- */
.r1-form { display: flex; gap: 12px; align-items: stretch; margin-bottom: 10px; }
.r1-form .r1-search { flex: 1; }
.r1-form .btn { flex: none; }
.r1-tip { margin: 0 0 26px; }
.r1-list { display: grid; gap: 18px; }
.r1-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.r1-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.r1-head h3 { font-family: var(--font-head); font-size: 1.22rem; margin: 2px 0 4px; letter-spacing: .2px; }
.r1-head .kicker { margin: 0; }
.r1-status { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .86rem; white-space: nowrap; border: 1px solid transparent; }
.r1-status .ic { width: 16px; height: 16px; }
.r1-status.is-done { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-line); }
.r1-status.is-part { background: var(--warn-bg); color: var(--warn-text); border-color: color-mix(in srgb, var(--warn-text) 25%, transparent); }
.r1-status.is-wait { background: var(--orange-50); color: var(--orange-700); border-color: var(--orange-200); }
.r1-status.is-pend { background: var(--card-2); color: var(--ink-2); border-color: var(--line); }
.r1-batch { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 11px; border-radius: 999px; background: var(--orange-50); color: var(--orange-700); font-size: .78rem; font-weight: 600; }
.r1-batch .ic { width: 14px; height: 14px; }
.r1-progress { height: 8px; border-radius: 999px; background: var(--orange-100); overflow: hidden; margin: 18px 0 8px; }
.r1-progress > span { display: block; height: 100%; border-radius: 999px; background: var(--grad-hot); transition: width .8s var(--ease); }
.r1-count { margin: 0 0 14px; font-size: .9rem; color: var(--ink-3); }
.r1-count b { color: var(--ink); }
.r1-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.r1-item { display: grid; grid-template-columns: 28px 1fr auto auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); }
.r1-item.is-got { background: var(--ok-bg); border-color: var(--ok-line); }
.r1-tick { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange-100); color: var(--orange-700); }
.r1-tick .ic { width: 16px; height: 16px; }
.r1-item.is-got .r1-tick { background: var(--ok); color: #fff; }
.r1-name { font-weight: 500; }
.r1-name em { display: block; font-style: normal; font-size: .82rem; color: var(--ink-3); }
.r1-qty { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.r1-state { font-size: .82rem; font-weight: 600; color: var(--orange-700); }
.r1-item.is-got .r1-state { color: var(--ok-text); }
.r1-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.r1-foot span { display: block; }
.r1-foot b { font-family: var(--font-head); font-size: 1.05rem; }
.r1-total { text-align: right; }
.r1-total b { font-size: 1.3rem; color: var(--orange-600); }
.r1-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--warn-bg); color: var(--warn-text); font-size: .9rem; }
.r1-note .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.r1-foot-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.r1-qr { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .22s var(--ease); }
.r1-qr.open { opacity: 1; }
.r1-qr-backdrop { position: absolute; inset: 0; background: var(--overlay); backdrop-filter: blur(3px); }
.r1-qr-card { position: relative; background: var(--card); border-radius: 26px; padding: 30px 28px 24px; text-align: center; box-shadow: var(--shadow-lg); max-width: 330px; width: 100%; transform: translateY(14px) scale(.96); transition: transform .3s var(--spring); }
.r1-qr.open .r1-qr-card { transform: none; }
.r1-qr-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--card-2); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.r1-qr-x:hover { background: var(--orange-50); color: var(--orange-700); }
.r1-qr-box { margin: 14px auto 12px; width: 232px; height: 232px; display: grid; place-items: center; background: #fff; border-radius: 16px; padding: 8px; box-sizing: content-box; }
.r1-qr-box img, .r1-qr-box canvas, .r1-qr-box table { max-width: 100%; }
.r1-qr-no { display: block; font-family: var(--font-head); font-size: 1.12rem; letter-spacing: .4px; margin-bottom: 6px; word-break: break-all; }
@media (max-width: 400px) { .r1-qr-box { width: 200px; height: 200px; } }

@media (max-width: 620px) {
  .r1-form { flex-direction: column; }
  .r1-card { padding: 20px 18px; }
  .r1-item { grid-template-columns: 24px 1fr auto; row-gap: 4px; }
  .r1-item .r1-state { grid-column: 2 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
/* ---------- จองคิววัดตัวตัดสูท ---------- */
.book-date { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 20px; background: var(--orange-50); border: 1px solid var(--orange-200); }
.book-date .ic { width: 26px; height: 26px; color: var(--orange-600); flex: none; }
.book-date span { display: block; font-size: .82rem; color: var(--ink-3); }
.book-date b { font-family: var(--font-head); font-size: 1.12rem; }
.book-form .msg-grid { gap: 14px; }
.book-ticket { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 18px auto; padding: 18px 24px; width: fit-content; border-radius: 22px; background: var(--grad-soft); border: 1px dashed var(--orange-300); }
.book-queue { text-align: center; }
.book-queue small { display: block; font-size: .78rem; color: var(--ink-3); }
.book-queue b { font-family: var(--font-head); font-size: 2.4rem; line-height: 1.1; color: var(--orange-700); }
.book-when { text-align: left; }
.book-when b { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.book-when span { font-size: .88rem; color: var(--ink-3); }
/* ---------- หมวดหมู่พัสดุในหน้ายืม ---------- */
.bw-cats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.bw-cat { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .35s var(--spring), border-color .25s, box-shadow .3s; }
.bw-cat:hover { transform: translateY(-3px); border-color: var(--orange-200); box-shadow: var(--shadow); }
.bw-cat-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--grad-soft); color: var(--orange-700); }
.bw-cat-ic .ic { width: 22px; height: 22px; }
.bw-cat-in { flex: 1; min-width: 0; }
.bw-cat-in b { display: block; font-family: var(--font-head); font-size: 1.02rem; }
.bw-cat-in small { color: var(--ink-3); font-size: .84rem; }
.bw-cat-go { color: var(--ink-3); display: grid; place-items: center; }
.bw-cat-badge { flex: none; padding: 4px 12px; border-radius: 999px; background: var(--grad-hot); color: #fff; font-size: .78rem; font-family: var(--font-head); }
.bw-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--orange-50); border: 1px solid var(--orange-200); color: var(--orange-700); font-family: var(--font-head); font-size: .88rem; cursor: pointer; transition: background .25s; }
.bw-back:hover { background: var(--orange-100); }
.bw-back .ic { width: 16px; height: 16px; }
.bw-cat-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.bw-cat-head b { font-family: var(--font-head); font-size: 1.05rem; }
.bw-cat-head small { color: var(--ink-3); font-size: .84rem; }
.bw-picked-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.bw-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 999px; background: var(--orange-50); border: 1px solid var(--orange-200); font-size: .85rem; }
.bw-chip button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.06); color: var(--ink-2); cursor: pointer; line-height: 1; }
.bw-chip button:hover { background: var(--orange-600); color: #fff; }

/* ---------- ปฏิทินกิจกรรมหน้าแรก (FullCalendar · หน้าตาเดียวกับเว็บงานสโม) ---------- */
.cal-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; }
.cal-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-tags:not(:empty) { margin-bottom: 16px; }
.cal-tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: 500 .8rem var(--font-body); cursor: pointer; transition: border-color .2s, color .2s; }
.cal-tag:hover { border-color: var(--orange-300); }
.cal-tag i { width: 8px; height: 8px; border-radius: 50%; }
.cal-tag.off { border-style: dashed; color: var(--ink-3); background: transparent; }
.cal-tag.off i { opacity: .3; }
.cal-wait { display: grid; place-items: center; min-height: 360px; }
.cal-root.fc {
  --fc-border-color: var(--line);
  --fc-button-bg-color: var(--card);
  --fc-button-border-color: var(--line);
  --fc-button-text-color: var(--ink-2);
  --fc-button-hover-bg-color: var(--orange-50);
  --fc-button-hover-border-color: var(--orange-200);
  --fc-button-active-bg-color: var(--orange-500);
  --fc-button-active-border-color: var(--orange-500);
  --fc-today-bg-color: var(--orange-50);
  --fc-page-bg-color: var(--card);
  --fc-neutral-bg-color: var(--card-2);
  --fc-list-event-hover-bg-color: var(--orange-50);
  font-family: var(--font-body); color: var(--ink);
}
.cal-root.fc .fc-button { border-radius: 10px; font-size: .85rem; font-weight: 500; box-shadow: none; color: var(--fc-button-text-color); text-transform: none; }
.cal-root.fc .fc-button-primary:not(:disabled).fc-button-active,
.cal-root.fc .fc-button-primary:not(:disabled):active { color: #fff; }
.cal-root.fc .fc-button:focus { box-shadow: 0 0 0 3px var(--focus-ring) !important; }
.cal-root.fc .fc-toolbar-title { font: 600 1.15rem var(--font-head); color: var(--ink); }
.cal-root.fc .fc-col-header-cell-cushion { padding: 8px 4px; font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.cal-root.fc a { color: inherit; text-decoration: none; }
.cal-root.fc .fc-daygrid-day-number { font-size: .85rem; color: var(--ink-2); }
.cal-root.fc .fc-day-today .fc-daygrid-day-number { margin: 4px; display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: var(--orange-500); padding: 0; font-weight: 600; color: #fff; }
.cal-root.fc .fc-event { cursor: pointer; border-width: 0 0 0 3px; border-radius: 6px; padding: 1px 6px; font-size: .78rem; }
.cal-root.fc .fc-daygrid-dot-event:hover { background: var(--orange-50); }
.cal-root.fc .fc-event-main, .cal-root.fc .fc-daygrid-dot-event { color: var(--ink); }
.cal-root.fc .fc-list-event { border: 0; }
.cal-root.fc-theme-standard .fc-scrollgrid { border-radius: 14px; overflow: hidden; }
.cal-root.fc-theme-standard .fc-list { border-radius: 14px; overflow: hidden; }
@media (max-width: 640px) {
  .cal-card { padding: 12px; }
  .cal-root.fc .fc-toolbar { flex-wrap: wrap; gap: 8px; }
  .cal-root.fc .fc-toolbar-chunk:nth-child(2) { order: -1; width: 100%; text-align: center; }
  .cal-root.fc .fc-button { padding: 4px 9px; font-size: .78rem; }
}
.cal-dialog { border: 0; padding: 0; border-radius: var(--radius); background: var(--card); color: var(--ink); width: min(480px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
.cal-dialog::backdrop { background: var(--overlay); backdrop-filter: blur(3px); }
.cal-dialog[open] { animation: cal-pop .25s var(--ease); }
@keyframes cal-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.cal-dialog-in { padding: 22px 24px 24px; display: grid; gap: 14px; }
.cal-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cal-dialog-head h3 { margin: 0; font: 600 1.15rem var(--font-head); }
.cal-x { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 4px; border-radius: 8px; display: inline-flex; }
.cal-x:hover { background: var(--orange-50); color: var(--ink); }
.cal-x svg { width: 20px; height: 20px; }
.cal-badge { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--card)); }
.cal-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.cal-details { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--card-2); white-space: pre-wrap; font-size: .93rem; color: var(--ink-2); }
