/* =====================================================================
   HIPMI Tabanan — hipmi.css (FOUNDATION)
   "Kertas beras, hijau subak, kuning HIPMI."
   Token → base → layout → komponen. Dokumentasi kelas: assets/README-dev.md
   Agen halaman: JANGAN ubah file ini; tambahkan gaya di page-<nama>.css.
   ===================================================================== */

/* ---------- Registrasi properti (warna sektor bisa dianimasikan) ---------- */
@property --sector { syntax: '<color>'; inherits: true; initial-value: #4E5D52; }
@property --pc { syntax: '<color>'; inherits: true; initial-value: #1D4A2C; }

/* =============================== TOKENS =============================== */
:root {
  color-scheme: light;
  /* warna — terang (SPEC §1) */
  --bg: #F4EFE3;
  --surface: #FFFCF4;
  --surface-2: #EAE2CF;
  --ink: #14180F;
  --ink-2: #2B3025;
  --muted: #5F6455;
  --primary: #1D4A2C;
  --primary-hover: #255E38;
  --on-primary: #FFFCF4;
  --accent: #E8B820;
  --accent-ink: #6E5200;
  --border: #D6CCB4;
  --live: #C2412D;
  --ok: #2F7A45;
  --focus: 0 0 0 3px rgba(232,184,32,.55);

  /* turunan */
  --forest: #1D4A2C;            /* blok hijau gelap (footer, section gelap) — tetap hijau di dua tema */
  --forest-2: #163A22;
  --on-forest: #FFFCF4;
  --on-forest-muted: rgba(255,252,244,.72);
  --gold: #E8B820;              /* kuning HIPMI absolut (tidak berubah per tema) */
  --gold-soft: #F0CC55;
  --paper-line: rgba(20,24,15,.07);    /* kontur di atas kertas */
  --forest-line: rgba(232,184,32,.25); /* kontur di atas hijau/gelap */
  --overlay: rgba(13,17,12,.52);
  --header-bg: rgba(255,252,244,.78);
  --seg-ind: #FFFCF4;
  --chip-strength: 82%;
  --mc-paper: #FFFCF4;
  --mc-ink: #14180F;
  --mc-ink-2: #3A4033;
  --mc-muted: #6E7363;
  --mc-rule: rgba(43,74,115,.10);
  --mc-redline: rgba(194,65,45,.55);
  --mc-edge: rgba(20,24,15,.10);
  --grain-alpha: .07;

  /* warna sektor */
  --s-agri: #3D6B3F; --s-kuliner: #A64B2A; --s-wisata: #2C6A80; --s-kreatif: #7A3D5E;
  --s-properti: #6A5843; --s-digital: #2B4A73; --s-dagang: #7E5E10; --s-jasa: #4E5D52;

  /* tipografi */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --fs-display: clamp(2.6rem, 6vw, 5.25rem);
  --fs-h1: clamp(2.2rem, 4.5vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.75rem);
  --fs-h3: 1.5rem;
  --fs-lead: clamp(1.06rem, 1.4vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-label: .75rem;

  /* bentuk & ruang */
  --r-card: 18px; --r-event: 16px; --r-img: 16px; --r-input: 12px; --r-pill: 999px; --r-sheet: 24px;
  --sh-sm: 0 1px 2px rgba(20,24,15,.06);
  --sh-md: 0 8px 24px -8px rgba(20,24,15,.18);
  --sh-lg: 0 24px 60px -20px rgba(20,24,15,.38), 0 2px 6px rgba(20,24,15,.08);
  --gutter: clamp(16px, 5vw, 48px);
  --container: 1200px;
  --section-y: clamp(72px, 10vw, 140px);
  --header-h: 88px;

  /* gerak */
  --ease-out: cubic-bezier(.22,1,.36,1);       /* ≈ power3.out */
  --ease-inout: cubic-bezier(.45,.05,.25,1);   /* ≈ power2.inOut */
  --ease-expo: cubic-bezier(.87,0,.13,1);      /* ≈ expo.inOut */
  --t-hover: .2s; --t-in: .45s; --t-flip: .7s;

  /* aset inline (mask; aman dari file://) */
  --kontur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120' viewBox='0 0 240 120'%3E%3Cg fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M0.00 -10.30C3.33 -9.60 6.67 -8.70 10.00 -7.95C13.33 -7.19 16.67 -6.35 20.00 -5.76C23.33 -5.17 26.67 -4.65 30.00 -4.39C33.33 -4.13 36.67 -4.09 40.00 -4.18C43.33 -4.28 46.67 -4.64 50.00 -4.96C53.33 -5.29 56.67 -5.81 60.00 -6.14C63.33 -6.47 66.67 -6.83 70.00 -6.95C73.33 -7.07 76.67 -7.05 80.00 -6.86C83.33 -6.67 86.67 -6.24 90.00 -5.80C93.33 -5.37 96.67 -4.72 100.00 -4.23C103.33 -3.74 106.67 -3.18 110.00 -2.86C113.33 -2.55 116.67 -2.33 120.00 -2.34C123.33 -2.34 126.67 -2.57 130.00 -2.92C133.33 -3.27 136.67 -3.86 140.00 -4.44C143.33 -5.03 146.67 -5.77 150.00 -6.43C153.33 -7.09 156.67 -7.79 160.00 -8.38C163.33 -8.98 166.67 -9.52 170.00 -9.99C173.33 -10.47 176.67 -10.86 180.00 -11.22C183.33 -11.59 186.67 -11.90 190.00 -12.19C193.33 -12.47 196.67 -12.75 200.00 -12.94C203.33 -13.14 206.67 -13.33 210.00 -13.38C213.33 -13.42 216.67 -13.40 220.00 -13.20C223.33 -13.00 226.67 -12.66 230.00 -12.18C233.33 -11.69 236.67 -11.01 240.00 -10.30'/%3E%3Cpath d='M0.00 10.24C3.33 10.95 6.67 11.58 10.00 11.93C13.33 12.28 16.67 12.39 20.00 12.33C23.33 12.26 26.67 11.89 30.00 11.53C33.33 11.16 36.67 10.55 40.00 10.11C43.33 9.66 46.67 9.14 50.00 8.86C53.33 8.57 56.67 8.38 60.00 8.37C63.33 8.37 66.67 8.57 70.00 8.82C73.33 9.07 76.67 9.52 80.00 9.85C83.33 10.19 86.67 10.62 90.00 10.85C93.33 11.07 96.67 11.24 100.00 11.21C103.33 11.19 106.67 10.99 110.00 10.68C113.33 10.38 116.67 9.88 120.00 9.38C123.33 8.89 126.67 8.26 130.00 7.72C133.33 7.17 136.67 6.59 140.00 6.10C143.33 5.61 146.67 5.16 150.00 4.76C153.33 4.36 156.67 4.02 160.00 3.69C163.33 3.36 166.67 3.06 170.00 2.78C173.33 2.50 176.67 2.21 180.00 2.00C183.33 1.79 186.67 1.58 190.00 1.53C193.33 1.49 196.67 1.50 200.00 1.72C203.33 1.94 206.67 2.32 210.00 2.87C213.33 3.41 216.67 4.19 220.00 4.99C223.33 5.79 226.67 6.81 230.00 7.68C233.33 8.56 236.67 9.53 240.00 10.24'/%3E%3Cpath d='M0.00 28.57C3.33 28.53 6.67 28.17 10.00 27.77C13.33 27.37 16.67 26.70 20.00 26.15C23.33 25.61 26.67 24.95 30.00 24.50C33.33 24.05 36.67 23.67 40.00 23.48C43.33 23.28 46.67 23.27 50.00 23.32C53.33 23.38 56.67 23.63 60.00 23.81C63.33 23.99 66.67 24.27 70.00 24.40C73.33 24.53 76.67 24.63 80.00 24.58C83.33 24.53 86.67 24.35 90.00 24.09C93.33 23.84 96.67 23.44 100.00 23.05C103.33 22.67 106.67 22.19 110.00 21.78C113.33 21.37 116.67 20.96 120.00 20.61C123.33 20.25 126.67 19.95 130.00 19.67C133.33 19.38 136.67 19.15 140.00 18.89C143.33 18.64 146.67 18.39 150.00 18.14C153.33 17.89 156.67 17.60 160.00 17.39C163.33 17.18 166.67 16.94 170.00 16.88C173.33 16.81 176.67 16.80 180.00 17.01C183.33 17.23 186.67 17.60 190.00 18.16C193.33 18.72 196.67 19.53 200.00 20.38C203.33 21.23 206.67 22.32 210.00 23.27C213.33 24.22 216.67 25.29 220.00 26.08C223.33 26.87 226.67 27.60 230.00 28.02C233.33 28.43 236.67 28.61 240.00 28.57'/%3E%3Cpath d='M0.00 41.91C3.33 41.29 6.67 40.52 10.00 39.94C13.33 39.36 16.67 38.81 20.00 38.44C23.33 38.08 26.67 37.87 30.00 37.74C33.33 37.62 36.67 37.68 40.00 37.70C43.33 37.73 46.67 37.87 50.00 37.89C53.33 37.92 56.67 37.95 60.00 37.87C63.33 37.79 66.67 37.63 70.00 37.43C73.33 37.22 76.67 36.92 80.00 36.65C83.33 36.39 86.67 36.07 90.00 35.82C93.33 35.58 96.67 35.35 100.00 35.17C103.33 34.99 106.67 34.88 110.00 34.74C113.33 34.61 116.67 34.52 120.00 34.37C123.33 34.22 126.67 34.06 130.00 33.86C133.33 33.67 136.67 33.40 140.00 33.19C143.33 32.99 146.67 32.72 150.00 32.63C153.33 32.54 156.67 32.47 160.00 32.65C163.33 32.82 166.67 33.15 170.00 33.68C173.33 34.21 176.67 35.00 180.00 35.84C183.33 36.69 186.67 37.80 190.00 38.77C193.33 39.75 196.67 40.87 200.00 41.71C203.33 42.55 206.67 43.34 210.00 43.80C213.33 44.26 216.67 44.49 220.00 44.47C223.33 44.45 226.67 44.11 230.00 43.68C233.33 43.26 236.67 42.54 240.00 41.91'/%3E%3Cpath d='M0.00 53.28C3.33 52.77 6.67 52.40 10.00 52.12C13.33 51.84 16.67 51.73 20.00 51.62C23.33 51.50 26.67 51.50 30.00 51.43C33.33 51.36 36.67 51.31 40.00 51.21C43.33 51.10 46.67 50.95 50.00 50.79C53.33 50.64 56.67 50.43 60.00 50.28C63.33 50.14 66.67 49.99 70.00 49.91C73.33 49.84 76.67 49.82 80.00 49.83C83.33 49.84 86.67 49.93 90.00 49.98C93.33 50.02 96.67 50.10 100.00 50.09C103.33 50.08 106.67 50.02 110.00 49.90C113.33 49.78 116.67 49.56 120.00 49.36C123.33 49.17 126.67 48.88 130.00 48.75C133.33 48.62 136.67 48.48 140.00 48.58C143.33 48.69 146.67 48.93 150.00 49.39C153.33 49.85 156.67 50.56 160.00 51.36C163.33 52.15 166.67 53.21 170.00 54.16C173.33 55.12 176.67 56.24 180.00 57.08C183.33 57.92 186.67 58.74 190.00 59.22C193.33 59.71 196.67 59.97 200.00 59.97C203.33 59.97 206.67 59.64 210.00 59.20C213.33 58.77 216.67 58.02 220.00 57.35C223.33 56.67 226.67 55.82 230.00 55.14C233.33 54.46 236.67 53.78 240.00 53.28'/%3E%3Cpath d='M0.00 65.62C3.33 65.39 6.67 65.26 10.00 65.11C13.33 64.96 16.67 64.84 20.00 64.70C23.33 64.57 26.67 64.41 30.00 64.30C33.33 64.19 36.67 64.07 40.00 64.03C43.33 64.00 46.67 64.01 50.00 64.11C53.33 64.20 56.67 64.39 60.00 64.60C63.33 64.81 66.67 65.12 70.00 65.35C73.33 65.59 76.67 65.86 80.00 66.00C83.33 66.14 86.67 66.22 90.00 66.19C93.33 66.16 96.67 65.99 100.00 65.81C103.33 65.64 106.67 65.32 110.00 65.14C113.33 64.97 116.67 64.74 120.00 64.76C123.33 64.78 126.67 64.89 130.00 65.24C133.33 65.60 136.67 66.18 140.00 66.87C143.33 67.57 146.67 68.53 150.00 69.41C153.33 70.30 156.67 71.36 160.00 72.17C163.33 72.97 166.67 73.78 170.00 74.26C173.33 74.73 176.67 75.02 180.00 75.03C183.33 75.03 186.67 74.73 190.00 74.29C193.33 73.86 196.67 73.12 200.00 72.42C203.33 71.72 206.67 70.83 210.00 70.09C213.33 69.35 216.67 68.59 220.00 67.99C223.33 67.39 226.67 66.89 230.00 66.49C233.33 66.10 236.67 65.85 240.00 65.62'/%3E%3Cpath d='M0.00 78.45C3.33 78.29 6.67 78.13 10.00 78.06C13.33 77.98 16.67 77.93 20.00 77.99C23.33 78.06 26.67 78.21 30.00 78.46C33.33 78.71 36.67 79.10 40.00 79.50C43.33 79.90 46.67 80.42 50.00 80.85C53.33 81.27 56.67 81.75 60.00 82.05C63.33 82.35 66.67 82.57 70.00 82.64C73.33 82.70 76.67 82.60 80.00 82.45C83.33 82.30 86.67 81.96 90.00 81.73C93.33 81.51 96.67 81.18 100.00 81.09C103.33 81.00 106.67 80.97 110.00 81.18C113.33 81.39 116.67 81.81 120.00 82.37C123.33 82.92 126.67 83.74 130.00 84.51C133.33 85.27 136.67 86.23 140.00 86.96C143.33 87.70 146.67 88.45 150.00 88.90C153.33 89.35 156.67 89.63 160.00 89.64C163.33 89.65 166.67 89.37 170.00 88.95C173.33 88.53 176.67 87.82 180.00 87.13C183.33 86.44 186.67 85.56 190.00 84.80C193.33 84.04 196.67 83.24 200.00 82.60C203.33 81.95 206.67 81.38 210.00 80.91C213.33 80.43 216.67 80.09 220.00 79.77C223.33 79.46 226.67 79.24 230.00 79.02C233.33 78.80 236.67 78.61 240.00 78.45'/%3E%3Cpath d='M0.00 92.23C3.33 92.38 6.67 92.64 10.00 93.02C13.33 93.41 16.67 93.96 20.00 94.53C23.33 95.10 26.67 95.83 30.00 96.43C33.33 97.03 36.67 97.70 40.00 98.15C43.33 98.60 46.67 98.98 50.00 99.14C53.33 99.31 56.67 99.28 60.00 99.16C63.33 99.03 66.67 98.68 70.00 98.40C73.33 98.12 76.67 97.70 80.00 97.49C83.33 97.28 86.67 97.09 90.00 97.14C93.33 97.19 96.67 97.42 100.00 97.80C103.33 98.18 106.67 98.82 110.00 99.43C113.33 100.05 116.67 100.86 120.00 101.49C123.33 102.11 126.67 102.79 130.00 103.18C133.33 103.57 136.67 103.83 140.00 103.83C143.33 103.84 146.67 103.59 150.00 103.20C153.33 102.81 156.67 102.15 160.00 101.50C163.33 100.84 166.67 100.01 170.00 99.28C173.33 98.55 176.67 97.78 180.00 97.13C183.33 96.48 186.67 95.90 190.00 95.40C193.33 94.90 196.67 94.51 200.00 94.15C203.33 93.79 206.67 93.50 210.00 93.24C213.33 92.97 216.67 92.73 220.00 92.55C223.33 92.37 226.67 92.20 230.00 92.14C233.33 92.09 236.67 92.08 240.00 92.23'/%3E%3Cpath d='M0.00 109.70C3.33 110.40 6.67 111.30 10.00 112.05C13.33 112.81 16.67 113.65 20.00 114.24C23.33 114.83 26.67 115.35 30.00 115.61C33.33 115.87 36.67 115.91 40.00 115.82C43.33 115.72 46.67 115.36 50.00 115.04C53.33 114.71 56.67 114.19 60.00 113.86C63.33 113.53 66.67 113.17 70.00 113.05C73.33 112.93 76.67 112.95 80.00 113.14C83.33 113.33 86.67 113.76 90.00 114.20C93.33 114.63 96.67 115.28 100.00 115.77C103.33 116.26 106.67 116.82 110.00 117.14C113.33 117.45 116.67 117.67 120.00 117.66C123.33 117.66 126.67 117.43 130.00 117.08C133.33 116.73 136.67 116.14 140.00 115.56C143.33 114.97 146.67 114.23 150.00 113.57C153.33 112.91 156.67 112.21 160.00 111.62C163.33 111.02 166.67 110.48 170.00 110.01C173.33 109.53 176.67 109.14 180.00 108.78C183.33 108.41 186.67 108.10 190.00 107.81C193.33 107.53 196.67 107.25 200.00 107.06C203.33 106.86 206.67 106.67 210.00 106.62C213.33 106.58 216.67 106.60 220.00 106.80C223.33 107.00 226.67 107.34 230.00 107.82C233.33 108.31 236.67 108.99 240.00 109.70'/%3E%3Cpath d='M0.00 130.24C3.33 130.95 6.67 131.58 10.00 131.93C13.33 132.28 16.67 132.39 20.00 132.33C23.33 132.26 26.67 131.89 30.00 131.53C33.33 131.16 36.67 130.55 40.00 130.11C43.33 129.66 46.67 129.14 50.00 128.86C53.33 128.57 56.67 128.38 60.00 128.37C63.33 128.37 66.67 128.57 70.00 128.82C73.33 129.07 76.67 129.52 80.00 129.85C83.33 130.19 86.67 130.62 90.00 130.85C93.33 131.07 96.67 131.24 100.00 131.21C103.33 131.19 106.67 130.99 110.00 130.68C113.33 130.38 116.67 129.88 120.00 129.38C123.33 128.89 126.67 128.26 130.00 127.72C133.33 127.17 136.67 126.59 140.00 126.10C143.33 125.61 146.67 125.16 150.00 124.76C153.33 124.36 156.67 124.02 160.00 123.69C163.33 123.36 166.67 123.06 170.00 122.78C173.33 122.50 176.67 122.21 180.00 122.00C183.33 121.79 186.67 121.58 190.00 121.53C193.33 121.49 196.67 121.50 200.00 121.72C203.33 121.94 206.67 122.32 210.00 122.87C213.33 123.41 216.67 124.19 220.00 124.99C223.33 125.79 226.67 126.81 230.00 127.68C233.33 128.56 236.67 129.53 240.00 130.24'/%3E%3C/g%3E%3C/svg%3E");
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V41C0 25 22 12 50 0c28 12 50 25 50 41v59z'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .09 0 0 0 0 .06 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .26 0 0 0 0 .15 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235F6455' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* Gelap (SPEC §1) — via preferensi sistem kecuali dipaksa terang */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0D110C; --surface: #141A12; --surface-2: #1C2419; --ink: #F2ECDD; --ink-2: #D8D1C0; --muted: #A2A895;
    --primary: #E8B820; --primary-hover: #F0C843; --on-primary: #14180F; --accent: #E8B820; --accent-ink: #F0CC55;
    --border: #2C3628; --live: #E06A50; --ok: #6FB585;
    --forest: #132317; --forest-2: #0F1C12; --on-forest: #F2ECDD; --on-forest-muted: rgba(242,236,221,.7);
    --paper-line: rgba(242,236,221,.07); --forest-line: rgba(232,184,32,.22);
    --overlay: rgba(4,6,4,.66); --header-bg: rgba(20,26,18,.78); --seg-ind: #2A3426; --chip-strength: 42%;
    --mc-paper: #1A2017; --mc-ink: #F2ECDD; --mc-ink-2: #CFC8B6; --mc-muted: #9EA391; --mc-rule: rgba(242,236,221,.065); --mc-redline: rgba(224,106,80,.55); --mc-edge: rgba(242,236,221,.08);
    --grain-alpha: .05;
    --sh-sm: 0 1px 2px rgba(0,0,0,.4); --sh-md: 0 10px 28px -10px rgba(0,0,0,.6); --sh-lg: 0 28px 64px -22px rgba(0,0,0,.75), 0 2px 6px rgba(0,0,0,.35);
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23A2A895' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"], .theme-dark {
  color-scheme: dark;
  --bg: #0D110C; --surface: #141A12; --surface-2: #1C2419; --ink: #F2ECDD; --ink-2: #D8D1C0; --muted: #A2A895;
  --primary: #E8B820; --primary-hover: #F0C843; --on-primary: #14180F; --accent: #E8B820; --accent-ink: #F0CC55;
  --border: #2C3628; --live: #E06A50; --ok: #6FB585;
  --forest: #132317; --forest-2: #0F1C12; --on-forest: #F2ECDD; --on-forest-muted: rgba(242,236,221,.7);
  --paper-line: rgba(242,236,221,.07); --forest-line: rgba(232,184,32,.22);
  --overlay: rgba(4,6,4,.66); --header-bg: rgba(20,26,18,.78); --seg-ind: #2A3426; --chip-strength: 42%;
  --mc-paper: #1A2017; --mc-ink: #F2ECDD; --mc-ink-2: #CFC8B6; --mc-muted: #9EA391; --mc-rule: rgba(242,236,221,.065); --mc-redline: rgba(224,106,80,.55); --mc-edge: rgba(242,236,221,.08);
  --grain-alpha: .05;
  --sh-sm: 0 1px 2px rgba(0,0,0,.4); --sh-md: 0 10px 28px -10px rgba(0,0,0,.6); --sh-lg: 0 28px 64px -22px rgba(0,0,0,.75), 0 2px 6px rgba(0,0,0,.35);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23A2A895' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
/* Paksa terang di dalam elemen (mis. potongan kertas di section gelap) */
.theme-light {
  color-scheme: light;
  --bg: #F4EFE3; --surface: #FFFCF4; --surface-2: #EAE2CF; --ink: #14180F; --ink-2: #2B3025; --muted: #5F6455;
  --primary: #1D4A2C; --primary-hover: #255E38; --on-primary: #FFFCF4; --accent: #E8B820; --accent-ink: #6E5200;
  --border: #D6CCB4; --live: #C2412D; --ok: #2F7A45;
  --paper-line: rgba(20,24,15,.07); --header-bg: rgba(255,252,244,.78); --seg-ind: #FFFCF4; --chip-strength: 82%;
  --mc-paper: #FFFCF4; --mc-ink: #14180F; --mc-ink-2: #3A4033; --mc-muted: #6E7363; --mc-rule: rgba(43,74,115,.10); --mc-redline: rgba(194,65,45,.55); --mc-edge: rgba(20,24,15,.10);
  --sh-sm: 0 1px 2px rgba(20,24,15,.06); --sh-md: 0 8px 24px -8px rgba(20,24,15,.18); --sh-lg: 0 24px 60px -20px rgba(20,24,15,.38), 0 2px 6px rgba(20,24,15,.08);
}

/* =============================== RESET & BASE =============================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background-color: var(--bg); color: var(--ink-2);
  font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01' 0;
}
body::before { /* butir kertas yang sangat halus */
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); background-size: 180px; opacity: calc(var(--grain-alpha) * 7);
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
svg { overflow: visible; }
input, button, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p, h1, h2, h3, h4, h5, h6, figure, blockquote, dl, dd { margin: 0; }
:where(ul[class], ol[class]) { margin: 0; padding: 0; list-style: none; } /* spesifisitas 0: kelas halaman selalu menang */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 500; color: var(--ink); line-height: 1.1; letter-spacing: -.012em; text-wrap: balance; font-optical-sizing: auto; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
strong, b { font-weight: 700; color: var(--ink); }
small { font-size: var(--fs-small); }
hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
::selection { background: rgba(232,184,32,.4); color: var(--ink); }
[hidden] { display: none !important; }
[inert] { pointer-events: none; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.mcard:focus-visible { box-shadow: none; } /* kartu acara: cincin fokus dipasang di .ecard lewat :has (lihat komponen eventCard) */
html.is-locked { overflow: hidden; }
html.is-locked body { padding-right: var(--sbw, 0px); }

/* =============================== TIPOGRAFI =============================== */
.display { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.025em; color: var(--ink); font-variation-settings: 'opsz' 144; }
.h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -.02em; color: var(--ink); }
.h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.015em; color: var(--ink); }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.2; color: var(--ink); }
.h4 { font-family: var(--font-sans); font-weight: 700; font-size: 1.125rem; line-height: 1.3; color: var(--ink); letter-spacing: 0; }
.display em, .h1 em, .h2 em, .h3 em, .serif em, h1 em, h2 em { font-style: italic; font-weight: 400; }
.em-accent em, em.em-accent { color: var(--accent-ink); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.small { font-size: var(--fs-small); }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.serif { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }
.label, .dateline {
  font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-label); line-height: 1.3;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
}
.dateline { display: inline-flex; align-items: center; gap: 12px; color: var(--accent-ink); }
.dateline::before { content: ''; width: 28px; height: 1px; background: currentColor; flex: none; }
.dateline--plain::before { display: none; }
.rule-gold { display: block; width: 56px; height: 3px; border-radius: 3px; background: var(--accent); border: 0; }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose a, .link { color: var(--accent-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); }
.prose a:hover, .link:hover { text-decoration-color: currentColor; }
.prose ul { padding-left: 1.2em; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
kbd, .kbd { font-family: var(--font-mono); font-size: .75em; padding: .1em .45em; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 1px 0 var(--border); }

/* =============================== LAYOUT =============================== */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.container--wide { max-width: calc(1440px + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--flush-top { padding-top: 0; }
.section--surface { background: var(--surface); }
.section--paper { background: var(--surface-2); }
.section--forest { position: relative; background: var(--forest); color: var(--on-forest); isolation: isolate; overflow: hidden; }
.section--forest h1, .section--forest h2, .section--forest h3, .section--forest .h1, .section--forest .h2, .section--forest .h3, .section--forest strong, .section--forest b { color: var(--on-forest); }
/* kartu anggota di blok hijau tetap memakai tinta kertasnya sendiri */
.section--forest .mcard__biz { color: var(--mc-ink); }
.section--forest .mcard__front :is(strong, b) { color: inherit; }
.section--forest .muted, .section--forest .label { color: var(--on-forest-muted); }
.section--forest .dateline { color: var(--gold-soft); }
.section--forest::before { content: ''; position: absolute; inset: 0; z-index: -1; background-color: var(--forest-line); -webkit-mask: var(--kontur) 0 0 / 360px auto repeat; mask: var(--kontur) 0 0 / 360px auto repeat; opacity: .9; }
.bg-contour { position: relative; isolation: isolate; }
.bg-contour::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-color: var(--contour-color, var(--paper-line)); -webkit-mask: var(--kontur) 0 0 / var(--contour-size, 360px) auto repeat; mask: var(--kontur) 0 0 / var(--contour-size, 360px) auto repeat; }
.grid { display: grid; gap: var(--gap, 24px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid-members { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); justify-items: center; }
.grid-members > .mcard { --mc-w: 100%; max-width: 360px; }
.grid-members--compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 14px; }
@media (max-width: 559px) { .grid-members--compact-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }
.grid-events { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .grid-events { grid-template-columns: 1fr; } }
.split { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--40 { grid-template-columns: 2fr 3fr; } .split--60 { grid-template-columns: 3fr 2fr; } }
.stack { display: flex; flex-direction: column; gap: var(--stack, 16px); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster, 8px); }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.center { text-align: center; margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 400; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: top .2s; pointer-events: auto; }
.skip-link:focus { top: 12px; }
.divider-contour { width: 100%; height: 24px; color: var(--border); }
.section-divider { color: var(--border); padding-inline: var(--gutter); max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; }

/* =============================== SECTION HEADING =============================== */
.shead { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.shead__title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.015em; color: var(--ink); }
.shead__title em { font-style: italic; font-weight: 400; }
.shead__lead { color: var(--ink-2); font-size: var(--fs-lead); max-width: 60ch; }
.shead--center { text-align: center; margin-inline: auto; justify-items: center; }
.shead--center .dateline::after { content: ''; width: 28px; height: 1px; background: currentColor; }
.shead--row { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 96px); align-items: end; }
.shead--row .shead__lead { justify-self: end; }
@media (max-width: 719px) { .shead--row { grid-template-columns: 1fr; } .shead--row .shead__lead { justify-self: start; } }

/* =============================== HEADER =============================== */
.site-header-host { position: sticky; top: 0; z-index: 60; pointer-events: none; height: var(--header-h); }
.site-header-host[data-overlay] { position: fixed; inset: 0 0 auto 0; }
.site-header { padding: 12px max(12px, calc(var(--gutter) - 12px)) 0; pointer-events: none; }
.site-header__bar {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(var(--container) + 24px); height: 64px; margin: 0 auto; padding: 0 10px 0 16px;
  border-radius: var(--r-pill); background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  box-shadow: var(--sh-sm);
  transition: height .35s var(--ease-out), max-width .45s var(--ease-out), box-shadow .3s, background-color .3s;
}
.site-header[data-state="scrolled"] .site-header__bar { height: 56px; max-width: 1080px; box-shadow: var(--sh-md); }
.site-header__brand { text-decoration: none; border-radius: 12px; flex: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__word { display: grid; line-height: 1; gap: 3px; }
.logo__word b { font-family: var(--font-sans); font-weight: 800; font-size: 1.06rem; letter-spacing: .06em; color: inherit; }
.logo__word span { font-family: var(--font-mono); font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav__link { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--r-pill); font-weight: 600; font-size: .95rem; color: var(--ink-2); text-decoration: none; transition: background-color var(--t-hover), color var(--t-hover); }
.nav__link:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); color: var(--ink); }
.nav__link.is-active { background: var(--surface-2); color: var(--ink); }
.nav__link.is-active::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.nav__live { position: absolute; top: 8px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.8s infinite; }
.site-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.site-header .menu-btn { display: none; } /* spesifisitas > .icon-btn agar tidak tampil di desktop */
@media (max-width: 860px) {
  .nav { display: none; }
  .site-header .menu-btn { display: inline-grid; }
  .site-header__actions { margin-left: auto; }
}
@media (max-width: 480px) {
  .site-header__bar .theme-toggle { display: none; }
  .site-header__bar { padding: 0 6px 0 12px; height: 60px; }
  .site-header__cta { padding: 0 14px; }
  .logo__mark { width: 32px; height: 32px; }
}
/* menu mobile */
.mnav { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; padding: 16px var(--gutter) max(24px, env(safe-area-inset-bottom)); background: var(--forest); color: var(--on-forest); opacity: 0; transform: translateY(-12px); transition: opacity .3s var(--ease-out), transform .4s var(--ease-out); overflow-y: auto; }
.mnav.is-open { opacity: 1; transform: none; }
.mnav__bg { position: absolute; inset: 0; color: var(--gold); opacity: .22; pointer-events: none; }
.mnav__bg svg { width: 100%; height: 100%; }
.mnav__head { position: relative; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.mnav .logo, .mnav .logo__word span { color: var(--on-forest); }
.mnav .logo__word span { opacity: .7; }
.mnav .icon-btn { color: var(--on-forest); border-color: rgba(255,252,244,.25); }
.mnav__nav { position: relative; display: grid; margin-top: 4vh; }
.mnav__link { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,252,244,.14); text-decoration: none; font-family: var(--font-display); font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.1; letter-spacing: -.01em; opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); transition-delay: calc(var(--i) * 45ms + 80ms); }
.mnav.is-open .mnav__link { opacity: 1; transform: none; }
.mnav__link.is-active { color: var(--gold-soft); }
.mnav__link.is-active span:not(.mnav__no) { font-style: italic; }
.mnav__no { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; color: var(--gold-soft); opacity: .8; width: 22px; }
.mnav__arrow { margin-left: auto; opacity: .5; }
.mnav__link .pill { margin-left: 4px; }
.mnav__foot { position: relative; margin-top: auto; padding-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mnav__foot .label { color: var(--on-forest-muted); }
.mnav__foot .btn--outline { color: var(--on-forest); border-color: rgba(255,252,244,.35); }

/* =============================== FOOTER =============================== */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--forest); color: var(--on-forest); padding: clamp(64px, 9vw, 112px) 0 32px; margin-top: 0; }
.site-footer__contour { position: absolute; inset: 0; z-index: -1; background-color: var(--forest-line); -webkit-mask: var(--kontur) 0 0 / 420px auto repeat; mask: var(--kontur) 0 0 / 420px auto repeat; }
.site-footer__contour::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 85% 0%, transparent 30%, var(--forest) 85%); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer__top { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid rgba(255,252,244,.14); }
@media (min-width: 900px) { .site-footer__top { grid-template-columns: 1.5fr 1fr; align-items: end; } }
.site-footer__motto { font-family: var(--font-display); font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.02em; color: var(--on-forest); }
.site-footer__motto .label { display: block; margin-bottom: 18px; color: var(--gold-soft); }
.site-footer__motto em { font-style: italic; font-weight: 400; }
.site-footer__motto em + em { color: var(--gold-soft); }
.site-footer__brand { display: grid; gap: 16px; justify-items: start; max-width: 380px; }
.site-footer__brand .logo, .site-footer__brand .logo__word span { color: var(--on-forest); }
.site-footer__brand .logo__word span { opacity: .7; }
.site-footer__brand p { color: var(--on-forest-muted); font-size: .95rem; }
.site-footer__cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding: 40px 0; }
.site-footer__h { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; }
.site-footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__cols li { font-size: .95rem; color: var(--on-forest); }
.site-footer__cols a { display: inline-flex; align-items: center; gap: 6px; }
.site-footer__cols small { color: var(--on-forest-muted); font-size: .8rem; }
.site-footer__contact li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: var(--on-forest-muted); }
.site-footer__contact .icon { margin-top: 3px; color: var(--gold-soft); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(255,252,244,.14); font-size: .82rem; color: var(--on-forest-muted); }
.site-footer__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer__meta a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--on-forest); }

/* =============================== TOMBOL =============================== */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 22px; border-radius: var(--r-pill);
  border: 1px solid transparent; background: transparent; color: var(--ink);
  font-family: var(--font-sans); font-weight: 600; font-size: .98rem; line-height: 1; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none;
  transition: background-color var(--t-hover), color var(--t-hover), border-color var(--t-hover), transform var(--t-hover) var(--ease-out), box-shadow var(--t-hover);
}
.btn .icon { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease-out); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn:hover .icon--arrow-down:last-child:not(:first-child), .btn:hover .icon--chevron-down:last-child:not(:first-child) { transform: translateY(2px); }
.btn:hover .icon--arrow-up-right:last-child:not(:first-child) { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--accent { background: var(--gold); color: #14180F; }
.btn--accent:hover { background: var(--gold-soft); }
.btn--outline { border-color: color-mix(in srgb, var(--ink) 22%, transparent); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: color-mix(in srgb, var(--surface-2) 80%, transparent); }
.btn--light { background: #FFFCF4; color: #14180F; }
.btn--light:hover { background: #fff; }
.btn--on-dark { border-color: rgba(255,252,244,.35); color: var(--on-forest); }
.btn--on-dark:hover { border-color: var(--on-forest); background: rgba(255,252,244,.08); }
.btn--xs { --btn-h: 32px; padding: 0 12px; font-size: .8rem; gap: 6px; }
.btn--xs .icon { width: 14px; height: 14px; }
.btn--sm { --btn-h: 40px; padding: 0 16px; font-size: .9rem; }
.btn--sm .icon { width: 16px; height: 16px; }
.btn--lg { --btn-h: 58px; padding: 0 30px; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn--icon { width: var(--btn-h); padding: 0; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
@media (pointer: coarse) { .btn--sm { --btn-h: 44px; } }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--border) 85%, transparent); background: transparent; color: var(--ink); transition: background-color var(--t-hover), border-color var(--t-hover), transform var(--t-hover); }
.icon-btn:hover { background: var(--surface-2); border-color: var(--border); }
.icon-btn--sm { width: 36px; height: 36px; }
.icon-btn--filled { background: var(--surface); box-shadow: var(--sh-sm); }
.icon { flex: none; }

/* =============================== CHIP, PILL, BADGE =============================== */
.chip {
  --chip: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; max-width: 100%;
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-family: var(--font-sans); font-size: .84rem; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: background-color var(--t-hover), color var(--t-hover), border-color var(--t-hover);
}
.chip > span:not(.chip__dot):not(.chip__count) { overflow: hidden; text-overflow: ellipsis; line-height: 1.3; padding-block: 1px; } /* line-height 1.3: huruf turun (g, y) tidak terpotong */
.chip--soft { background: color-mix(in srgb, var(--chip) 12%, transparent); color: color-mix(in srgb, var(--chip) var(--chip-strength), var(--ink)); }
.chip--solid { background: var(--chip); color: #FFFCF4; }
.chip--outline { border-color: var(--border); color: var(--ink-2); background: transparent; }
.chip--accent { --chip: var(--accent-ink); }
.chip--sm { height: 26px; padding: 0 10px; font-size: .76rem; gap: 5px; }
.chip--lg { height: 40px; padding: 0 16px; font-size: .92rem; }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--chip); flex: none; }
.chip__count { font-family: var(--font-mono); font-size: .72em; font-weight: 500; opacity: .7; }
a.chip, button.chip { cursor: pointer; }
a.chip:hover, button.chip:hover { border-color: color-mix(in srgb, var(--chip) 45%, transparent); }
button.chip[aria-pressed="true"], a.chip[aria-current="true"], .chip.is-active { background: var(--chip); color: #FFFCF4; border-color: var(--chip); }
.chip.chip--outline[aria-pressed="true"], .chip.chip--outline.is-active { --chip: var(--ink); background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (pointer: coarse) { button.chip, a.chip { min-height: 40px; } }

.pill { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-family: var(--font-mono); font-weight: 500; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1; white-space: nowrap; border: 1px solid transparent; }
.pill--live { color: var(--live); background: color-mix(in srgb, var(--live) 11%, transparent); border-color: color-mix(in srgb, var(--live) 28%, transparent); }
.pill--upcoming { color: var(--ok); background: color-mix(in srgb, var(--ok) 11%, transparent); border-color: color-mix(in srgb, var(--ok) 26%, transparent); }
.pill--past { color: var(--muted); background: color-mix(in srgb, var(--muted) 10%, transparent); border-color: color-mix(in srgb, var(--muted) 20%, transparent); }
.pill--tba { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.pill--xs { height: 20px; padding: 0 8px; font-size: .6rem; }
.pill--solid.pill--live { background: var(--live); color: #fff; border-color: var(--live); }
.pill__dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); } 70% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--live) 0%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }

.data-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); border: 1px dashed color-mix(in srgb, var(--accent-ink) 55%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-ink); font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; cursor: help; }
.data-badge .icon { width: 13px; height: 13px; }
.data-badge--on-dark { color: var(--gold-soft); border-color: rgba(232,184,32,.5); background: rgba(232,184,32,.08); }
.tag-real { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: .64rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); }
.tag-real .icon { width: 12px; height: 12px; }
.badge-new { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; background: var(--accent); color: #14180F; font-family: var(--font-mono); font-size: .62rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

/* =============================== TABS & SEGMENTED =============================== */
.seg { position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.seg::-webkit-scrollbar { display: none; }
.seg__btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r-pill); font-weight: 600; font-size: .92rem; color: var(--muted); white-space: nowrap; transition: color var(--t-hover); flex: none; }
.seg__btn:hover { color: var(--ink); }
.seg__btn[aria-selected="true"] { color: var(--ink); }
.seg__btn .icon { width: 17px; height: 17px; }
.seg__count { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; color: var(--muted); }
.seg__ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--r-pill); background: var(--seg-ind); box-shadow: var(--sh-sm), 0 0 0 1px color-mix(in srgb, var(--border) 60%, transparent); transition: transform .4s var(--ease-out), width .4s var(--ease-out); }
.seg:not(:has(.seg__ind)) .seg__btn[aria-selected="true"] { background: var(--seg-ind); box-shadow: var(--sh-sm); }
.seg--sm .seg__btn { height: 34px; padding: 0 14px; font-size: .85rem; }
.seg--block { display: flex; width: 100%; }
.seg--block .seg__btn { flex: 1; justify-content: center; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__btn { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; color: var(--muted); transition: color var(--t-hover), border-color var(--t-hover); }
.tabs__btn:hover { color: var(--ink); }
.tabs__btn[aria-selected="true"] { color: var(--ink); border-color: var(--accent); }

/* =============================== KARTU ANGGOTA (.mcard) ===============================
   Struktur: article.mcard > .mcard__inner > .mcard__face.mcard__front + .mcard__face.mcard__back
   Ukuran: --mc-w (sm 220 · md 300 · lg 360 · fluid 100%), rasio 5:7. Semua ukuran internal
   memakai em yang diskalakan lewat container query → kartu tetap proporsional di ukuran apa pun. */
.mcard {
  --mc-w: 300px; --tab-h: 1.55em; --tab-i: 3;
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%; --flip: 0deg;
  position: relative; display: block; flex: none;
  width: var(--mc-w); max-width: 100%; aspect-ratio: 5 / 7;
  container-type: inline-size; perspective: 1200px;
  border-radius: var(--r-card); color: var(--mc-ink); text-align: left;
  -webkit-tap-highlight-color: transparent; outline: none;
  transition: --sector .6s var(--ease-out);
}
.mcard--sm { --mc-w: 220px; }
.mcard--md { --mc-w: 300px; }
.mcard--lg { --mc-w: 360px; }
.mcard--fluid { --mc-w: 100%; }
.mcard[data-flip="on"], .mcard[data-href] { cursor: pointer; }
.mcard.is-flipped { --flip: 180deg; }
.mcard:focus-visible { outline: 3px solid rgba(232,184,32,.75); outline-offset: 5px; }
.mcard__inner {
  position: absolute; inset: 0; font-size: calc(100cqw / 18.75);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--flip)));
  transition: transform var(--t-flip) var(--ease-inout);
}
.mcard.is-tilting:not(.is-turning) .mcard__inner { transition: transform .14s linear; }
.mcard.is-turning { animation: mcardLift var(--t-flip) var(--ease-inout); }
@keyframes mcardLift { 0%, 100% { transform: none; } 50% { transform: translateY(-3%) scale(1.035); } }
.mcard__face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.mcard__back { transform: rotateY(180deg); }
/* bayangan kertas (terpisah dari kertas agar lubang punch tidak memotong bayangan) */
.mcard__face::before { content: ''; position: absolute; inset: var(--tab-h) 0 0 0; border-radius: 1.12em; box-shadow: 0 1.2em 2.4em -1em rgba(20,24,15,.42), 0 .15em .4em rgba(20,24,15,.12); transition: box-shadow .3s; }
.mcard:hover .mcard__face::before, .mcard.is-tilting .mcard__face::before { box-shadow: 0 1.8em 3.4em -1.2em rgba(20,24,15,.5), 0 .2em .5em rgba(20,24,15,.14); }
:root[data-theme="dark"] .mcard__face::before { box-shadow: 0 1.4em 2.6em -1em rgba(0,0,0,.8), 0 .15em .4em rgba(0,0,0,.5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mcard__face::before { box-shadow: 0 1.4em 2.6em -1em rgba(0,0,0,.8), 0 .15em .4em rgba(0,0,0,.5); } }
/* tab indeks */
.mcard__tab {
  position: absolute; z-index: 0; top: 0; left: calc(6% + var(--tab-i) * 7.9%); width: 32.5%;
  height: calc(var(--tab-h) + .9em); border-radius: .55em .55em 0 0;
  background: var(--sector); color: #FFFCF4;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  transition: background-color .6s, left .55s var(--ease-out), right .55s var(--ease-out);
}
.mcard__tab span { display: block; height: var(--tab-h); line-height: calc(var(--tab-h) + .05em); text-align: center; font-family: var(--font-mono); font-weight: 500; font-size: .58em; letter-spacing: .16em; white-space: nowrap; }
.mcard__tab span { font-size: .58em; height: calc(var(--tab-h) / .58); line-height: calc(var(--tab-h) / .58 + .1em); }
.mcard__back .mcard__tab { left: auto; right: calc(6% + var(--tab-i) * 7.9%); }
.mcard--pengurus .mcard__tab { box-shadow: inset 0 .2em 0 var(--gold), inset 0 1px 0 rgba(255,255,255,.18); }
/* kertas */
.mcard__paper {
  position: absolute; z-index: 1; inset: var(--tab-h) 0 0 0; overflow: hidden;
  border-radius: 1.12em; background-color: var(--mc-paper);
  background-image: var(--grain-paper); background-size: 12em;
  box-shadow: inset 0 0 0 1px var(--mc-edge);
  -webkit-mask: radial-gradient(circle at 50% calc(100% - 1.05em), transparent .31em, #000 calc(.31em + .6px));
  mask: radial-gradient(circle at 50% calc(100% - 1.05em), transparent .31em, #000 calc(.31em + .6px));
}
.mcard__punch { position: absolute; z-index: 3; left: 50%; bottom: 1.05em; width: .66em; height: .66em; margin: 0 0 -.33em -.33em; border-radius: 50%; box-shadow: inset 0 .08em .14em rgba(20,24,15,.45), 0 .04em 0 rgba(255,255,255,.55); pointer-events: none; }
/* kartu bertumpuk (kipas, Rolodex, dek): lubang punch tidak tembus agar teks kartu di belakang tidak terlihat */
.mcard.is-instant .mcard__inner, .mcard.is-instant .mcard__face { transition: none !important; } /* flipCard(el, b, { instant:true }) */
.mcard--stacked .mcard__paper { -webkit-mask: none; mask: none; }
.mcard--stacked .mcard__punch { background: color-mix(in srgb, var(--mc-ink) 14%, var(--mc-paper)); }
.mcard--stacked .mcard__back .mcard__punch { background: rgba(0,0,0,.35); }
/* potret di dalam kartu ikut animasi warna sektor */
.mcard .portrait { transition: --sector .6s var(--ease-out); }
/* foto / potret */
.mcard__photo { position: relative; margin: .62em .62em 0; height: 13.5em; border-radius: .72em; overflow: hidden; background: #14180F; }
.mcard__photo .portrait { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; height: 100%; }
.mcard--pengurus .mcard__photo { box-shadow: 0 0 0 .14em var(--mc-paper), 0 0 0 .26em var(--gold); }
.mcard--senior .mcard__photo { box-shadow: 0 0 0 .14em var(--mc-paper), 0 0 0 .22em color-mix(in srgb, var(--gold) 55%, var(--mc-ink)); }
.mcard__badge { position: absolute; z-index: 2; top: .55em; left: .55em; display: inline-flex; align-items: center; gap: .45em; height: 2.6em; padding: 0 .9em; border-radius: 99em; font-family: var(--font-mono); font-weight: 500; font-size: .52em; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.mcard__badge .icon { width: 1.5em; height: 1.5em; }
.mcard__badge--pengurus { background: var(--gold); color: #14180F; box-shadow: 0 .3em .9em -.2em rgba(0,0,0,.45); }
.mcard__badge--senior { background: rgba(20,24,15,.55); color: var(--gold-soft); border: 1px solid rgba(232,184,32,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mcard__open { position: absolute; z-index: 2; left: .55em; bottom: .55em; display: inline-flex; align-items: center; gap: .5em; height: 2.4em; padding: 0 .95em 0 .8em; border-radius: 99em; background: rgba(255,252,244,.92); color: #1D4A2C; font-size: .56em; font-weight: 700; letter-spacing: .01em; white-space: nowrap; box-shadow: 0 .3em .8em -.3em rgba(0,0,0,.4); }
.mcard__hint { position: absolute; z-index: 2; top: .55em; right: .55em; display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: rgba(255,252,244,.9); color: #14180F; opacity: 0; transform: scale(.8) rotate(-30deg); transition: opacity .25s, transform .35s var(--ease-out); box-shadow: 0 .3em .8em -.3em rgba(0,0,0,.45); }
.mcard__hint .icon { width: 1.05em; height: 1.05em; }
.mcard[data-flip="on"]:focus-visible .mcard__hint { opacity: 1; transform: none; }
@media (hover: hover) { .mcard[data-flip="on"]:hover .mcard__hint { opacity: 1; transform: none; } }
.mcard__open-dot { width: .7em; height: .7em; border-radius: 50%; background: #2F7A45; box-shadow: 0 0 0 .22em rgba(47,122,69,.18); }
/* info + garis kartu indeks */
.mcard__info {
  position: absolute; left: 0; right: 0; top: 14.12em; bottom: 0; padding: .74em .95em 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.32em - 1px), var(--mc-rule) calc(1.32em - 1px), var(--mc-rule) 1.32em);
  background-position: 0 .55em;
}
.mcard__info::before { content: ''; position: absolute; left: 0; right: 0; top: .5em; height: 1.5px; background: var(--mc-redline); }
.mcard__biz { position: relative; margin: .2em 0 0; font-family: var(--font-display); font-weight: 500; font-size: 1.38em; line-height: 1.04; letter-spacing: -.015em; color: var(--mc-ink); font-variation-settings: 'opsz' 72; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
.mcard__person { display: flex; align-items: baseline; gap: .5em; margin-top: .42em; font-size: .7em; line-height: 1.3; white-space: nowrap; min-width: 0; }
.mcard__name { font-weight: 700; color: var(--mc-ink); flex: none; max-width: 62%; overflow: hidden; text-overflow: ellipsis; }
.mcard__role { color: var(--mc-muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.mcard__role::before { content: '·'; margin-right: .5em; color: var(--mc-muted); }
.mcard__role:empty { display: none; }
.mcard__chips { display: flex; gap: .32em; margin-top: .66em; flex-wrap: nowrap; min-width: 0; }
.mchip { display: inline-flex; align-items: center; gap: .45em; height: 2.15em; padding: 0 .8em; border-radius: 99em; font-size: .61em; font-weight: 700; line-height: 1; white-space: nowrap; min-width: 0; overflow: hidden; }
.mchip--sector { flex: none; background: color-mix(in srgb, var(--sector) 13%, transparent); color: color-mix(in srgb, var(--sector) var(--chip-strength), var(--mc-ink)); }
.mchip__dot { width: .72em; height: .72em; border-radius: 50%; background: var(--sector); flex: none; }
.mchip--kec { border: 1px solid color-mix(in srgb, var(--mc-ink) 16%, transparent); color: var(--mc-ink-2); font-weight: 600; text-overflow: ellipsis; }
.mchip--kec .icon { width: 1.25em; height: 1.25em; flex: none; }
.mcard__note { display: flex; gap: .7em; align-items: baseline; margin-top: .62em; font-family: var(--font-mono); font-size: .58em; line-height: 1.4; color: var(--mc-ink-2); white-space: nowrap; min-width: 0; }
.mcard__note b { flex: none; font-weight: 500; font-size: .86em; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.mcard__note span { overflow: hidden; text-overflow: ellipsis; }
.mcard__foot { position: absolute; left: .95em; right: .95em; bottom: .74em; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-weight: 500; font-size: .53em; letter-spacing: .12em; text-transform: uppercase; color: var(--mc-muted); line-height: 1.2; }
.mcard__foot span:first-child { max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* kilau (tilt) */
.mcard__glare { position: absolute; z-index: 4; inset: var(--tab-h) 0 0 0; border-radius: 1.12em; pointer-events: none; opacity: 0; transition: opacity .35s;
  background:
    radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.42), rgba(255,255,255,0) 48%),
    linear-gradient(115deg, transparent 32%, rgba(232,184,32,.16) 44%, rgba(255,250,230,.22) 50%, rgba(44,106,128,.08) 56%, transparent 68%);
  background-size: 100% 100%, 260% 260%; background-position: 0 0, var(--gx) var(--gy);
  mix-blend-mode: soft-light; }
.mcard.is-tilting .mcard__glare { opacity: 1; }
/* sisi belakang */
.mcard__back .mcard__paper {
  display: flex; flex-direction: column; gap: .78em; padding: .95em 1em 1.75em;
  background-color: #14180F;
  background-image: radial-gradient(120% 70% at 100% 0%, color-mix(in oklab, var(--sector) 85%, white 6%) 0%, transparent 60%), linear-gradient(165deg, color-mix(in oklab, var(--sector) 78%, #14180F) 0%, color-mix(in oklab, var(--sector) 30%, #0F130D) 58%, #0E120C 100%);
  background-size: auto; color: #F2ECDD; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.mcard__bk-contour { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-color: rgba(232,184,32,.26); -webkit-mask: var(--kontur) 0 0 / 15em auto repeat; mask: var(--kontur) 0 0 / 15em auto repeat; -webkit-mask-position: var(--mx, 0) 0; }
.mcard__back .mcard__paper > *:not(.mcard__bk-contour):not(.mcard__punch) { position: relative; z-index: 1; }
.mcard__bk-head { display: flex; align-items: center; justify-content: space-between; gap: .8em; }
.mcard__bk-biz { font-family: var(--font-mono); font-weight: 500; font-size: .54em; letter-spacing: .16em; text-transform: uppercase; color: rgba(242,236,221,.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard__bk-mark { width: 1.15em; height: 1.15em; color: var(--gold); flex: none; }
.mcard__tagline { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.04em; line-height: 1.22; color: #FFFCF4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mcard__bk-label { display: block; margin-bottom: .55em; font-family: var(--font-mono); font-weight: 500; font-size: .5em; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.mcard__bk-chips { display: flex; flex-wrap: wrap; gap: .3em; max-height: 4.6em; overflow: hidden; }
.bchip { display: inline-flex; align-items: center; height: 2.1em; padding: 0 .85em; border-radius: 99em; font-size: .6em; font-weight: 600; line-height: 1; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.bchip--give { background: rgba(255,252,244,.13); border: 1px solid rgba(255,252,244,.16); color: #FFFCF4; }
.bchip--seek { border: 1px dashed rgba(240,204,85,.65); color: var(--gold-soft); }
.mcard__bk-foot { margin-top: auto; display: flex; align-items: flex-end; gap: .75em; }
.mcard__qr { flex: none; display: grid; justify-items: center; gap: .3em; }
.mcard__qr .qr { width: 4.4em; height: 4.4em; padding: .22em; border-radius: .45em; background: #FFFCF4; }
.mcard__qr-ph { display: grid; place-items: center; width: 4.4em; height: 4.4em; border-radius: .45em; border: 1px dashed rgba(255,252,244,.4); font-family: var(--font-mono); font-size: .8em; color: rgba(255,252,244,.6); }
.mcard__qr-cap { font-family: var(--font-mono); font-size: .42em; letter-spacing: .14em; text-transform: uppercase; color: rgba(242,236,221,.6); }
.mcard__actions { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: .32em; }
.mcard__actions [data-action="profil"] { grid-column: 1; grid-row: 1; }
.mcard__actions .mcard__wa { grid-column: 2; grid-row: 1; }
.mcard__actions [data-action="kenalkan"] { grid-column: 1 / -1; grid-row: 2; }
.mcard__actions:not(:has(.mcard__wa)) [data-action="profil"] { grid-column: 1 / -1; }
.mbtn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; height: 4.25em; padding: 0 1.1em; border-radius: 99em; font-size: .62em; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; border: 1px solid transparent; transition: background-color .2s, border-color .2s, color .2s; min-width: 0; }
.mbtn .icon { width: 1.4em; height: 1.4em; flex: none; }
.mbtn--primary { background: var(--gold); color: #14180F; }
.mbtn--primary:hover { background: var(--gold-soft); }
.mbtn--ghost { border-color: rgba(255,252,244,.32); color: #FFFCF4; }
.mbtn--ghost:hover { border-color: #FFFCF4; background: rgba(255,252,244,.08); }
.mbtn--icon { width: 4.25em; padding: 0; border-color: rgba(255,252,244,.25); color: #FFFCF4; }
.mbtn[disabled] { opacity: .5; cursor: not-allowed; }
.mbtn:focus-visible { box-shadow: 0 0 0 .3em rgba(232,184,32,.6); border-radius: 99em; }
.mcard__wa { position: relative; display: block; }
.mcard__wa[data-tip]::after { right: 0; left: auto; transform: translateY(.3em); width: 13em; white-space: normal; text-align: left; font-size: .56em; }
.mcard__wa[data-tip]:hover::after { transform: none; }
.mcard__back .mcard__punch { box-shadow: inset 0 .08em .14em rgba(0,0,0,.6), 0 .04em 0 rgba(255,255,255,.12); }
/* placeholder (pratinjau gabung.html) */
.mcard .is-ph { color: var(--mc-muted); font-style: italic; font-weight: 400; opacity: .8; }
.mcard__back .is-ph { color: rgba(242,236,221,.55); }
.mcard .bchip.is-ph { font-style: italic; border-style: dashed; }
.mcard--preview .mcard__biz .is-ph { font-weight: 400; }
/* kartu kecil: sederhanakan & perbesar teks mikro */
@container (max-width: 250px) {
  .mcard__role { display: none; }
  .mcard__name { max-width: 100%; }
  .mcard__person { font-size: .78em; }
  .mchip { font-size: .64em; }
  .mchip--kec { display: none; }
  .mcard__foot { font-size: .56em; letter-spacing: .1em; }
  .mcard__tab span { font-size: .66em; height: calc(var(--tab-h) / .66); line-height: calc(var(--tab-h) / .66 + .1em); }
  .mcard__badge, .mcard__open { font-size: .6em; }
  .mcard__tagline { -webkit-line-clamp: 2; }
  .bchip { font-size: .66em; }
  .mcard__bk-chips { max-height: 1.42em; }
  .mcard__bk-label, .mcard__bk-biz { font-size: .58em; }
  .mbtn { font-size: .68em; }
}
/* reduced motion: crossfade, bukan rotasi */
@media (prefers-reduced-motion: reduce) {
  .mcard__inner { transition: none; transform: none !important; }
  .mcard__back { transform: none; }
  .mcard__face { transition: opacity .2s linear, visibility .2s; }
  .mcard__back { opacity: 0; visibility: hidden; }
  .mcard.is-flipped .mcard__back { opacity: 1; visibility: visible; }
  .mcard.is-flipped .mcard__front { opacity: 0; visibility: hidden; }
  .mcard.is-turning { animation: none; }
}

/* =============================== POTRET (placeholder duotone) =============================== */
.portrait {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate;
  container-type: inline-size; border-radius: var(--r-img);
  background-color: #14180F;
  background-image:
    radial-gradient(90% 70% at var(--sun-x, 40%) var(--sun-y, 25%), color-mix(in oklab, var(--sector) 70%, #F0CC55 30%) 0%, transparent 62%),
    linear-gradient(172deg, color-mix(in oklab, var(--sector) 92%, white 8%) 0%, var(--sector) 30%, color-mix(in oklab, var(--sector) 42%, #14180F) 68%, #14180F 100%);
}
.portrait__sun { position: absolute; z-index: 0; left: var(--sun-x, 40%); top: var(--sun-y, 25%); width: 34cqw; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(240,204,85,.55) 0%, rgba(232,184,32,.22) 42%, transparent 70%); }
.portrait__contour { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; color: var(--gold); opacity: .34; }
.portrait__mono { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; padding-bottom: 4%; font-family: var(--font-display); font-weight: 600; font-size: 34cqw; line-height: 1; letter-spacing: -.04em; color: var(--gold); font-variation-settings: 'opsz' 144; text-shadow: 0 .04em .2em rgba(10,12,8,.35); }
.portrait__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); mix-blend-mode: luminosity; opacity: .92; }
.portrait--photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20,24,15,.55)); }

/* =============================== AVATAR =============================== */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: linear-gradient(155deg, var(--sector) 10%, color-mix(in oklab, var(--sector) 40%, #14180F) 75%); color: var(--gold); font-family: var(--font-display); font-weight: 600; line-height: 1; letter-spacing: -.02em; box-shadow: 0 0 0 2px var(--surface); }
.avatar--xs { width: 26px; height: 26px; font-size: .66rem; }
.avatar--sm { width: 34px; height: 34px; font-size: .8rem; }
.avatar--md { width: 44px; height: 44px; font-size: 1rem; }
.avatar--lg { width: 64px; height: 64px; font-size: 1.45rem; }
.avatar--more { background: var(--surface-2); color: var(--ink-2); font-family: var(--font-mono); font-weight: 500; font-size: .62rem; letter-spacing: 0; }
.avatar-stack { display: inline-flex; align-items: center; }
.avatar-stack > .avatar + .avatar { margin-left: -7px; }
.avatar-stack > .avatar:not(:last-child) { padding-right: 7px; } /* inisial tidak tertutup avatar berikutnya */
.avatar-stack .avatar--xs { width: 28px; height: 28px; font-size: .6rem; letter-spacing: -.04em; }

/* =============================== POSTER ACARA =============================== */
.poster {
  --pc-line: rgba(240,204,85,.62);
  position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; isolation: isolate;
  container-type: inline-size; border-radius: var(--r-img); color: #FFFCF4;
  background-color: var(--pc);
  background-image: radial-gradient(110% 80% at 15% 0%, rgba(255,252,244,.16), transparent 55%), linear-gradient(180deg, transparent 45%, rgba(10,12,8,.38));
}
.poster--wide { aspect-ratio: 16 / 10; }
.poster--tall { aspect-ratio: 4 / 5; }
.poster--banner { aspect-ratio: 16 / 9; }
.poster--banner .poster__date b { font-size: 12cqw; }
.poster--banner .poster__title { top: 14cqw; right: 26cqw; font-size: max(16px, 6.4cqw); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.poster--banner .poster__top, .poster--banner .poster__date span { font-size: max(9px, 2.6cqw); }
.poster--banner .poster__top { right: 18cqw; }
.poster__art { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; }
.poster__top { position: absolute; z-index: 1; top: 6cqw; left: 6.5cqw; right: 6.5cqw; display: flex; justify-content: space-between; gap: 4cqw; white-space: nowrap; font-family: var(--font-mono); font-weight: 500; font-size: max(9px, 3.5cqw); letter-spacing: .16em; text-transform: uppercase; opacity: .88; }
.poster__kind { text-align: right; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.poster__brand { flex: none; }
.poster__title { position: absolute; z-index: 1; top: 16cqw; left: 6.5cqw; right: 14cqw; font-family: var(--font-display); font-weight: 500; font-size: max(14px, 8.4cqw); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 1px 12px rgba(0,0,0,.18); }
.poster__date { position: absolute; z-index: 1; left: 6.5cqw; bottom: 5.5cqw; display: grid; gap: 1.4cqw; }
.poster__date b { font-family: var(--font-mono); font-weight: 500; font-size: 17cqw; line-height: .86; letter-spacing: -.05em; color: #FFFCF4; }
.poster__date b i { font-style: normal; opacity: .6; margin: 0 .04em; }
.poster__date span { font-family: var(--font-mono); font-size: max(9px, 3.6cqw); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }
.poster--wide .poster__date b { font-size: 13cqw; }
.poster--wide .poster__title { font-size: max(16px, 6.4cqw); right: 30cqw; }
.poster--wide .poster__top, .poster--wide .poster__date span { font-size: max(9px, 2.6cqw); }
.poster--notitle .poster__title { display: none; }
.poster--arch { -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; border-radius: 0 0 var(--r-img) var(--r-img); }
.poster--arch .poster__top { top: 30cqw; justify-content: center; text-align: center; }
.poster--arch .poster__kind { display: none; }
@container (max-width: 260px) {
  .poster__kind { display: none; }
  .poster__top { font-size: max(8px, 4.4cqw); }
  .poster__title { top: 18cqw; right: 8cqw; font-size: max(13px, 9.6cqw); }
}
@container (max-width: 180px) {
  .poster__top, .poster__title { display: none; }
  .poster__date { left: 9cqw; right: 8cqw; bottom: 8cqw; }
  .poster__date b { font-size: 30cqw; white-space: nowrap; }
  .poster__date span { font-size: max(9px, 7cqw); letter-spacing: .06em; line-height: 1.25; } /* rentang "OKT – 11 NOV 2026" tetap di dalam thumbnail */
}

/* =============================== KARTU KEGIATAN (.ecard) =============================== */
.ecard { position: relative; color: var(--ink-2); }
.ecard__link { color: inherit; text-decoration: none; }
.ecard__link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ecard__link:focus-visible { box-shadow: none; }
.ecard:has(.ecard__link:focus-visible) { box-shadow: var(--focus); }
.ecard a:not(.ecard__link), .ecard button, .ecard .avatar-stack { position: relative; z-index: 2; }
.ecard__title { font-family: var(--font-display); font-weight: 500; color: var(--ink); line-height: 1.12; letter-spacing: -.012em; }
.ecard__sub { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.ecard__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ecard__meta { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; color: var(--muted); }
.ecard__meta li { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.ecard__meta .icon { width: 16px; height: 16px; color: var(--accent-ink); opacity: .9; }
.ecard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.ecard__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.quota { margin-top: 14px; display: grid; gap: 7px; max-width: 420px; }
.quota__row { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--muted); }
.quota__row b { color: var(--ink); font-weight: 700; }
.quota__full { color: var(--live); font-weight: 600; }
.progress { height: 5px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width .8s var(--ease-out); }
.progress--accent > span { background: var(--accent); }
/* row */
.ecard--row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 128px; gap: 22px; padding: 20px; border-radius: var(--r-event); background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 80%, transparent); transition: border-color var(--t-hover), box-shadow .3s, transform .3s var(--ease-out); }
.ecard--row:hover { border-color: var(--border); box-shadow: var(--sh-md); transform: translateY(-2px); }
.ecard__date { display: grid; align-content: start; justify-items: center; gap: 2px; padding: 4px 18px 0 0; border-right: 1px dashed var(--border); text-align: center; }
.ecard__mon { font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.ecard__day { font-family: var(--font-mono); font-weight: 500; font-size: 2.3rem; line-height: 1; letter-spacing: -.05em; color: var(--ink); }
.ecard__dow { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ecard__date--tba .ecard__day { color: var(--muted); }
.ecard--row .ecard__title { font-size: 1.32rem; margin-top: 10px; }
.ecard__thumb { align-self: start; }
.ecard__thumb .poster { border-radius: 12px; transition: transform .5s var(--ease-out); }
.ecard--row:hover .ecard__thumb .poster { transform: rotate(-1.5deg) scale(1.02); }
@media (max-width: 719px) {
  .ecard--row { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .ecard__date { padding-right: 12px; }
  .ecard__day { font-size: 1.8rem; }
  .ecard__thumb { display: none; }
  .ecard--row .ecard__title { font-size: 1.18rem; }
  .ecard--row .ecard__meta { flex-direction: column; gap: 6px; }
}
/* feature */
.ecard--feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border-radius: calc(var(--r-event) + 4px); overflow: hidden; background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 80%, transparent); box-shadow: var(--sh-md); }
.ecard--feature .ecard__media { position: relative; min-height: 100%; }
.ecard--feature .ecard__media .poster { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; }
.ecard--feature .ecard__body { padding: clamp(22px, 3.2vw, 40px); display: flex; flex-direction: column; }
.ecard--feature .ecard__title { font-size: clamp(1.7rem, 2.6vw, 2.35rem); margin-top: 16px; }
.ecard__desc { margin-top: 12px; color: var(--ink-2); }
.ecard--feature .ecard__foot { margin-top: auto; padding-top: 22px; }
.ecard--feature .quota { max-width: none; }
@media (max-width: 819px) {
  .ecard--feature { grid-template-columns: 1fr; }
  .ecard--feature .ecard__media { min-height: 0; }
  .ecard--feature .ecard__media .poster { position: relative; aspect-ratio: 16 / 10; }
}
/* poster (arsip) */
.ecard--poster { display: grid; gap: 14px; align-content: start; }
.ecard--poster .poster__date { bottom: 15cqw; }
.ecard--poster .ecard__media { position: relative; border-radius: 0 0 var(--r-img) var(--r-img); overflow: hidden; }
.ecard--poster .poster { transition: transform .6s var(--ease-out); }
.ecard--poster:hover .poster { transform: scale(1.035); }
.ecard__overlay { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 32px 14px 12px; background: linear-gradient(180deg, transparent, rgba(10,12,8,.72)); color: #FFFCF4; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; }
.ecard__overlay--status { background: none; padding: 12px; }
.ecard__date-line { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ecard--poster .ecard__title { font-size: 1.22rem; margin-top: 4px; }
.ecard__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }

/* =============================== FORM =============================== */
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field__label { font-weight: 600; font-size: .9rem; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.field__label .opt { font-weight: 500; font-size: .78rem; color: var(--muted); }
.field__label .req { color: var(--live); margin-left: 2px; }
.field__help { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.field__count { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); font-weight: 500; }
.field__count.is-over { color: var(--live); }
.field__error { display: flex; align-items: flex-start; gap: 6px; font-size: .8rem; font-weight: 500; color: var(--live); line-height: 1.4; }
.field__error:empty { display: none; }
.field__error .icon { width: 15px; height: 15px; margin-top: 1px; }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r-input);
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  font-size: 1rem; line-height: 1.4; transition: border-color var(--t-hover), box-shadow var(--t-hover), background-color var(--t-hover);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--ink) 28%, var(--border)); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: var(--focus); }
.textarea { height: auto; min-height: 112px; padding: 12px 14px; resize: vertical; }
.select { padding-right: 42px; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.input[type="date"] { min-height: 48px; }
.input[type="file"] { padding: 10px 14px; height: auto; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea, .field.is-invalid .tag-input { border-color: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 16%, transparent); }
.field.is-valid .input { border-color: color-mix(in srgb, var(--ok) 60%, var(--border)); }
.input-affix { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: var(--r-input); background: var(--surface); transition: border-color var(--t-hover), box-shadow var(--t-hover); }
.input-affix:focus-within { border-color: var(--accent-ink); box-shadow: var(--focus); }
.input-affix .input { border: 0; box-shadow: none !important; background: transparent; }
.input-affix__pre { display: grid; place-items: center; padding: 0 0 0 14px; font-family: var(--font-mono); font-size: .9rem; color: var(--muted); }
.field.is-invalid .input-affix { border-color: var(--live); }
/* radio card */
.rcards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.rcard { position: relative; display: block; cursor: pointer; }
.rcard__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rcard__box { --rc: var(--primary); position: relative; display: grid; gap: 3px; min-height: 58px; height: 100%; padding: 14px 16px 14px 48px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); transition: border-color var(--t-hover), background-color var(--t-hover), box-shadow var(--t-hover); }
.rcard__box::before { content: ''; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ink) 30%, transparent); background: var(--surface); transition: border-color var(--t-hover), box-shadow var(--t-hover); }
.rcard__title { font-weight: 700; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.rcard__desc { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.rcard:hover .rcard__box { border-color: color-mix(in srgb, var(--ink) 28%, var(--border)); }
.rcard__input:checked + .rcard__box { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 7%, var(--surface)); box-shadow: inset 0 0 0 1px var(--rc); }
.rcard__input:checked + .rcard__box::before { border-color: var(--rc); box-shadow: inset 0 0 0 5px var(--rc); }
.rcard__input:focus-visible + .rcard__box { box-shadow: var(--focus), inset 0 0 0 1px var(--rc); }
.rcard__input[type="checkbox"] + .rcard__box::before { border-radius: 6px; }
.rcard__input[type="checkbox"]:checked + .rcard__box::before { box-shadow: none; background: var(--rc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFCF4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.rcard--sector .rcard__box { --rc: var(--sector); padding-left: 16px; padding-top: 44px; }
.rcard--sector .rcard__box::before { left: auto; right: 14px; top: 14px; }
.rcard__swatch { position: absolute; left: 16px; top: 14px; width: 22px; height: 22px; border-radius: 7px; background: var(--sector); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.rcard__swatch::after { content: attr(data-kode); position: absolute; left: 30px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; color: var(--muted); }
.rcards--compact .rcard__box { min-height: 48px; padding-top: 12px; padding-bottom: 12px; }
/* checkbox */
.check { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: .92rem; line-height: 1.45; color: var(--ink-2); padding: 4px 0; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid color-mix(in srgb, var(--ink) 32%, transparent); background: var(--surface); display: grid; place-items: center; transition: background-color var(--t-hover), border-color var(--t-hover), box-shadow var(--t-hover); }
.check__box::after { content: ''; width: 11px; height: 6px; border-left: 2.2px solid var(--on-primary); border-bottom: 2.2px solid var(--on-primary); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .2s var(--ease-out); }
.check input:checked + .check__box { background: var(--primary); border-color: var(--primary); }
.check input:checked + .check__box::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { box-shadow: var(--focus); }
.check__text b { color: var(--ink); }
.check__text small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.field.is-invalid .check__box { border-color: var(--live); }
/* toggle switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 44px; height: 26px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 18%, transparent); transition: background-color .2s; }
.switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); transition: transform .25s var(--ease-out); }
.switch input:checked + .switch__track { background: var(--primary); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { box-shadow: var(--focus); }
/* tag input */
.tag-input { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 48px; padding: 6px 8px; border-radius: var(--r-input); border: 1px solid var(--border); background: var(--surface); cursor: text; transition: border-color var(--t-hover), box-shadow var(--t-hover); }
.tag-input:focus-within { border-color: var(--accent-ink); box-shadow: var(--focus); }
.tag-input__list { display: contents; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 4px 0 12px; border-radius: 99px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--ink); font-size: .85rem; font-weight: 600; max-width: 100%; }
.tag__x { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--muted); }
.tag__x:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
.tag-input__field { flex: 1 1 140px; min-width: 120px; height: 34px; border: 0; outline: 0; background: transparent; padding: 0 6px; color: var(--ink); }
.tag-input__field:focus { box-shadow: none; }
.tag-input__sugg { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 2px 2px; margin-top: 2px; border-top: 1px dashed var(--border); }
.tag-input__sugg:empty { display: none; }
.tag-sugg { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--border); font-size: .8rem; font-weight: 600; color: var(--ink-2); background: transparent; }
.tag-sugg:hover { border-color: var(--ink-2); color: var(--ink); }
.tag-input.is-full .tag-input__sugg { display: none; }
/* stepper sederhana */
.steps { display: flex; gap: 6px; }
.steps__bar { flex: 1; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.steps__bar.is-done, .steps__bar.is-current { background: var(--primary); }
.steps__bar.is-current { background: linear-gradient(90deg, var(--primary) 50%, color-mix(in srgb, var(--ink) 10%, transparent) 50%); }

/* =============================== ACCORDION & TOOLTIP =============================== */
.acc { border-bottom: 1px solid var(--border); }
.acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 1.06rem; color: var(--ink); }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary .icon { transition: transform .3s var(--ease-out); color: var(--muted); }
.acc[open] > summary .icon { transform: rotate(45deg); color: var(--ink); }
.acc__body { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); padding: 7px 10px; border-radius: 8px; background: #14180F; color: #FFFCF4; font-family: var(--font-sans); font-size: .74rem; font-weight: 500; line-height: 1.35; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .18s, transform .18s; box-shadow: var(--sh-md); }
[data-tip]:hover::after, [data-tip]:focus-within::after { opacity: 1; transform: translate(-50%, 0); }

/* =============================== SHEET / DIALOG =============================== */
.sheet { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.sheet__backdrop { position: absolute; inset: 0; background: var(--overlay); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s var(--ease-out); }
.sheet__panel { position: relative; display: flex; flex-direction: column; width: min(560px, 100%); max-height: calc(100svh - 48px); border-radius: var(--r-sheet); background: var(--surface); color: var(--ink-2); box-shadow: var(--sh-lg); overflow: hidden; outline: none; opacity: 0; transform: translateY(18px) scale(.985); transition: transform .45s var(--ease-out), opacity .3s var(--ease-out); }
.sheet--lg .sheet__panel { width: min(1000px, 100%); }
.sheet--full .sheet__panel { width: min(1320px, 100%); height: calc(100svh - 48px); }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { opacity: 1; transform: none; }
.sheet.is-closing .sheet__panel { transition-duration: .28s; }
/* openSheet({ enter:'fade' }): panel tanpa transform masuk — posisi akhir bisa diukur langsung (mis. kartu terbang ke dalam sheet) */
.sheet--fade .sheet__panel, .sheet--fade.is-open .sheet__panel { transform: none !important; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 18px 16px 26px; border-bottom: 1px solid var(--border); flex: none; }
.sheet__heading { min-width: 0; display: grid; gap: 4px; }
.sheet__eyebrow { display: block; }
.sheet__title { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.15; color: var(--ink); }
.sheet__body { flex: 1; overflow: auto; overscroll-behavior: contain; overflow-anchor: none; padding: 26px; -webkit-overflow-scrolling: touch; }
.sheet__close--float { position: absolute; z-index: 5; top: 14px; right: 14px; background: var(--surface); box-shadow: var(--sh-sm); }
.sheet__grab { display: none; }
.sheet__foot { position: sticky; bottom: -26px; margin: 26px -26px -26px; padding: 14px 26px; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 639px) {
  .sheet { padding: 0; align-items: end; justify-items: stretch; }
  .sheet__panel, .sheet--lg .sheet__panel { width: 100%; max-height: 92svh; border-radius: var(--r-sheet) var(--r-sheet) 0 0; opacity: 1; transform: translateY(100%); transition: transform .45s var(--ease-out); padding-bottom: env(safe-area-inset-bottom); }
  .sheet--full .sheet__panel { width: 100%; height: 96svh; max-height: 96svh; }
  .sheet.is-open .sheet__panel { transform: none; }
  .sheet__grab { display: flex; justify-content: center; padding: 10px 0 2px; flex: none; touch-action: none; cursor: grab; }
  .sheet__grab span { width: 42px; height: 5px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 20%, transparent); }
  .sheet__head { padding: 8px 14px 14px 20px; }
  .sheet__title { font-size: 1.3rem; }
  .sheet__body { padding: 20px; }
  .sheet__foot { bottom: -20px; margin: 20px -20px -20px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .sheet__close--float { top: 18px; }
}

/* =============================== TOAST =============================== */
.toast-region { position: fixed; z-index: 300; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 14px; background: #14180F; color: #F4EFE3; box-shadow: var(--sh-lg); font-size: .92rem; font-weight: 500; line-height: 1.4; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .3s var(--ease-out), transform .35s var(--ease-out); }
:root[data-theme="dark"] .toast { background: #F2ECDD; color: #14180F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: #F2ECDD; color: #14180F; } }
.toast.is-in { opacity: 1; transform: none; }
.toast.is-out { opacity: 0; transform: translateY(6px); }
.toast__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; background: #2F7A45; color: #fff; }
.toast--error .toast__icon { background: #C2412D; }
.toast--info .toast__icon { background: var(--gold); color: #14180F; }
.toast__msg { flex: 1; }
.toast__action { font-weight: 700; color: var(--gold-soft); padding: 6px 8px; border-radius: 8px; }
:root[data-theme="dark"] .toast__action { color: #6E5200; }

/* =============================== MARQUEE =============================== */
.marquee { --marquee-gap: 48px; position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; align-items: center; width: max-content; }
.marquee__track > * { flex: none; margin-right: var(--marquee-gap); }
.marquee.is-ready .marquee__track { animation: marquee var(--marquee-dur, 40s) linear infinite; }
.marquee--reverse.is-ready .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: var(--ink); white-space: nowrap; text-decoration: none; }
.marquee__item .jineng, .marquee__sep { color: var(--accent); }
.marquee__sep { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .marquee.is-ready .marquee__track { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { flex-wrap: wrap; width: auto; row-gap: 12px; }
  .marquee__track > [aria-hidden="true"] { display: none; }
}

/* =============================== EMPTY, SKELETON, MISC =============================== */
.empty { display: grid; justify-items: center; gap: 10px; padding: clamp(40px, 6vw, 72px) 20px; text-align: center; border: 1px dashed var(--border); border-radius: var(--r-event); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.empty__mark { color: var(--accent-ink); opacity: .75; margin-bottom: 6px; }
.empty__title { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); line-height: 1.2; max-width: 26ch; }
.empty__text { color: var(--muted); max-width: 44ch; }
.empty .btn { margin-top: 10px; }
.skeleton { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 45%, var(--surface)) 50%, var(--surface-2) 100%); background-size: 220% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.skeleton--text { height: .9em; margin: .45em 0; }
.skeleton--title { height: 1.6em; width: 70%; margin-bottom: .6em; }
.skeleton--card { aspect-ratio: 5 / 7; border-radius: var(--r-card); }
.skeleton--circle { border-radius: 50%; aspect-ratio: 1; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.card { background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 80%, transparent); border-radius: var(--r-event); padding: clamp(20px, 3vw, 28px); }
.card--flat { box-shadow: none; }
.card--raised { box-shadow: var(--sh-md); }
.qr { display: block; image-rendering: pixelated; }
.contour { display: block; width: 100%; height: 100%; }
.contour--draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .contour--draw path { animation: none; stroke-dashoffset: 0; } }
.jineng { flex: none; }
.mark-bullet { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-ink); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--ink); font-weight: 600; }
.stat__num { font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 7vw, 5.5rem); line-height: .95; letter-spacing: -.005em; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }

/* =============================== REVEAL =============================== */
html.js:not(.no-anim):not(.is-reduced-motion) [data-reveal]:not(.is-in):not(.is-gsap) { opacity: 0; transform: translateY(18px); }
html.js:not(.no-anim):not(.is-reduced-motion) [data-reveal="fade"]:not(.is-in):not(.is-gsap) { transform: none; }
html.js:not(.no-anim):not(.is-reduced-motion) [data-reveal="scale"]:not(.is-in):not(.is-gsap) { transform: scale(.96); }
html.js:not(.no-anim):not(.is-reduced-motion) [data-reveal-stagger]:not(.is-in):not(.is-gsap) > * { opacity: 0; transform: translateY(18px); }
[data-reveal].is-in, [data-reveal-stagger].is-in > * { opacity: 1; transform: none; transition: opacity var(--t-in) var(--ease-out) var(--d, 0s), transform .6s var(--ease-out) var(--d, 0s); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
  .pill__dot, .nav__live { animation: none; }
}

/* =============================== PRINT =============================== */
@media print {
  .site-header-host, .site-footer, .toast-region, .sheet__backdrop, .sheet__close, .no-print { display: none !important; }
  body { background: #fff; }
  body::before { display: none; }
  .sheet { position: static; padding: 0; }
  .sheet__panel { box-shadow: none; max-height: none; opacity: 1; transform: none; }
  /* cetak selalu terang, juga bila halaman sedang dalam mode gelap */
  :root, :root[data-theme], :root:not([data-theme="light"]), .theme-dark {
    color-scheme: light;
    --bg: #fff; --surface: #fff; --surface-2: #F4EFE3; --ink: #14180F; --ink-2: #2B3025; --muted: #50554A;
    --primary: #1D4A2C; --primary-hover: #255E38; --on-primary: #FFFCF4; --accent: #E8B820; --accent-ink: #6E5200;
    --border: #CFC6B0; --live: #C2412D; --ok: #2F7A45;
    --forest: #fff; --forest-2: #fff; --on-forest: #14180F; --on-forest-muted: #50554A;
    --paper-line: rgba(20,24,15,.07); --forest-line: rgba(20,24,15,.12); --header-bg: #fff; --seg-ind: #fff; --chip-strength: 82%;
    --mc-paper: #FFFCF4; --mc-ink: #14180F; --mc-ink-2: #3A4033; --mc-muted: #6E7363; --mc-rule: rgba(43,74,115,.10); --mc-redline: rgba(194,65,45,.55); --mc-edge: rgba(20,24,15,.10);
    --sh-sm: none; --sh-md: none; --sh-lg: none;
  }
}
