:root {
  /* Editorial red / black / cream theme (desainangkatan). Token names kept from the base theme:
     "navy" = ink/black scale, "gold" = red accent. */
  --navy-950: #0D0D0D; --navy-900: #141414; --navy-800: #1E1E1E; --navy-700: #2C2C2C; --navy-600: #4A4744;
  --navy-100: #E2DACF; --navy-50: #EFE9E1;
  --gold: #C8191E; --gold-600: #A3121A; --gold-300: #F0575B; --gold-50: #F9E9E7;
  --ink: #141414; --muted: #5E5952; --faint: #8E887F;
  --line: #DED6CB; --bg: #F2EDE6; --surface: #FBF8F4;
  --ok: #1F7A4D; --ok-bg: #E4F1E8; --warn: #9A5B00; --warn-bg: #F8ECD6;
  --info: #2B4C8C; --info-bg: #E6ECF6; --bad: #C8191E; --bad-bg: #F9E3E1; --mute-bg: #E9E3DA;
  --r: 4px; --r-sm: 3px;
  --shadow: 0 1px 0 rgba(20,20,20,.04);
  --shadow-lg: 0 18px 40px rgba(20,20,20,.14);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --display: 'Antonio', 'Oswald', Impact, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: .85rem; }
.small { font-size: .85rem; }
.serif { font-family: var(--serif); font-weight: 500; font-style: italic; }
.gold { color: var(--gold-600); }
[data-lucide], .lucide { width: 18px; height: 18px; stroke-width: 1.9; flex-shrink: 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.section { padding: 64px 0; }
.section-sm { padding: 36px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 12px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
@media (max-width: 960px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); } .span-2 { grid-column: auto; } .section { padding: 44px 0; } .container { padding: 0 16px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--navy-900); background: var(--navy-900); color: #fff; font: 600 .92rem var(--font); cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11,31,58,.18); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-300); color: var(--navy-950); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn-ghost:hover { background: var(--navy-50); color: var(--navy-900); box-shadow: none; }
.btn-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.16); }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: #8f2622; }
.btn-sm { padding: 7px 14px; font-size: .84rem; }
.btn-block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .9rem; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--navy-900); position: relative; border: 0; background: none; cursor: pointer; }
.icon-btn:hover { background: var(--navy-50); color: var(--navy-900); }
.dot { position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--gold); color: var(--navy-950); font-size: .65rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }

/* cards & badges */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.card-hover { transition: transform .2s, box-shadow .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .01em; background: var(--mute-bg); color: var(--muted); white-space: nowrap; }
.badge .lucide, .badge [data-lucide] { width: 13px; height: 13px; }
.b-ok { background: var(--ok-bg); color: var(--ok); } .b-warn { background: var(--warn-bg); color: var(--warn); }
.b-info { background: var(--info-bg); color: var(--info); } .b-bad { background: var(--bad-bg); color: var(--bad); }
.b-navy { background: var(--navy-50); color: var(--navy-700); } .b-gold { background: var(--gold-50); color: var(--gold-600); }
.b-important { background: var(--bad); color: #fff; letter-spacing: .08em; }
.chip { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--navy-50); color: var(--navy-700); font-size: .78rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* avatar */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; font-weight: 700; color: #fff; flex-shrink: 0; font-size: .95rem; letter-spacing: .02em; }
.avatar.lg { width: 84px; height: 84px; font-size: 1.6rem; }
.avatar.xl { width: 120px; height: 120px; font-size: 2.3rem; border: 4px solid #fff; box-shadow: var(--shadow); }
.avatar.sm { width: 34px; height: 34px; font-size: .8rem; }
.av-0 { background: #1B3765; } .av-1 { background: #2A4A7F; } .av-2 { background: #A8842F; } .av-3 { background: #3D5A80; } .av-4 { background: #0B1F3A; } .av-5 { background: #7A6230; }

/* header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy-900); }
.brand:hover { color: var(--navy-900); }
.brand-mark { width: 42px; height: 42px; border-radius: 11px; background: var(--navy-900); display: grid; place-items: center; flex-shrink: 0; }
.brand-mark svg { width: 22px; height: 22px; }
/* logo image replaces the old badge: no box behind it */
.brand-mark:has(img) { background: none !important; border: 0 !important; border-radius: 50%; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(7,20,39,.25)); }
.brand b { display: block; font-size: .98rem; font-weight: 800; letter-spacing: .01em; line-height: 1.1; }
.brand small { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 11px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .86rem; }
.nav a:hover, .nav a.active { background: var(--navy-50); color: var(--navy-900); }
.nav a.active { color: var(--navy-700); }
.top-actions { display: flex; align-items: center; gap: 6px; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; min-width: 230px; z-index: 60; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--ink); font: 500 .9rem var(--font); width: 100%; background: none; border: 0; cursor: pointer; text-align: left; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--navy-50); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu-head { padding: 8px 12px 10px; }
.menu-head b { display: block; font-size: .92rem; }
.mobile-only { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .mobile-only { display: inline-grid; }
  .top-actions { margin-left: auto; }
  .hide-md { display: none; }
}
.mnav-panel { position: fixed; inset: 68px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 20px; box-shadow: var(--shadow-lg); display: grid; gap: 2px; max-height: calc(100vh - 68px); overflow: auto; }
.mnav-panel a { padding: 12px; border-radius: 10px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.mnav-panel a:hover { background: var(--navy-50); }

/* flashes */
.flashes { position: fixed; top: 80px; right: 20px; z-index: 90; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.flash { display: flex; gap: 10px; align-items: start; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 500; animation: slidein .3s ease; }
.flash.ok { border-left: 4px solid var(--ok); } .flash.bad { border-left: 4px solid var(--bad); }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } }

/* hero */
.hero { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(201,162,74,.16) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; color: #fff; }
.hero h1 em { font-family: var(--serif); font-weight: 500; color: var(--gold-300); }
.hero .lead { font-size: 1.08rem; color: #C5D0E2; max-width: 540px; margin-bottom: 28px; }
.hero .eyebrow { color: var(--gold-300); }
.hero-visual { position: relative; min-height: 440px; }
.hv { position: absolute; background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.hv-card { width: 360px; max-width: 92%; top: 10px; right: 0; transform: rotate(2.5deg); }
.hv-profile { width: 260px; left: 0; top: 170px; padding: 18px; }
.hv-timeline { width: 250px; right: 20px; bottom: 0; padding: 18px; }
.hv-stat { left: 40px; top: 20px; padding: 12px 16px; display: flex; gap: 10px; align-items: center; }
.hv-stat b { font-size: 1.3rem; display: block; line-height: 1; }
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .hero-visual { min-height: 0; display: grid; gap: 14px; }
  .hv { position: static; transform: none; width: 100%; max-width: 100%; }
  .hv-stat, .hv-timeline { display: none; }
}

/* member card */
.mcard { position: relative; aspect-ratio: 1.586; width: 100%; border-radius: 18px; overflow: hidden; color: #fff; background: var(--navy-900); padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.mcard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 110% -10%, rgba(201,162,74,.35), transparent 45%), radial-gradient(circle at -10% 120%, rgba(42,74,127,.9), transparent 55%); }
.mcard::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(201,162,74,.35); border-radius: 12px; z-index: -1; }
.mcard-wm { position: absolute; z-index: -1; right: 18%; top: 50%; width: 46%; transform: translateY(-50%); opacity: .07; filter: grayscale(1) brightness(2.4); pointer-events: none; }
.mcard-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.mcard-org { display: flex; gap: 10px; align-items: center; }
.mcard-org .brand-mark { width: 46px; height: 46px; background: rgba(255,255,255,.08); border: 1px solid rgba(201,162,74,.5); }
.mcard-org b { display: block; font-size: .78rem; letter-spacing: .14em; color: var(--gold-300); }
.mcard-org small { display: block; font-size: .68rem; opacity: .75; }
.mcard-body { display: flex; gap: 16px; align-items: end; }
.mcard-body .avatar { border: 2px solid var(--gold); }
.mcard-name { font-size: 1.12rem; font-weight: 800; line-height: 1.2; }
.mcard-meta { font-size: .74rem; opacity: .85; line-height: 1.5; }
.mcard-no { font-family: ui-monospace, 'Cascadia Mono', monospace; letter-spacing: .12em; font-size: .82rem; color: var(--gold-300); }
.mcard-qr { background: #fff; padding: 6px; border-radius: 8px; width: 92px; height: 92px; flex-shrink: 0; }
.mcard-qr img, .mcard-qr canvas { width: 100% !important; height: 100% !important; }
.verified-pill { display: inline-flex; align-items: center; gap: 5px; background: rgba(201,162,74,.18); border: 1px solid rgba(201,162,74,.5); color: var(--gold-300); padding: 3px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; }
.verified-pill svg { width: 12px; height: 12px; }
@media (max-width: 480px) { .mcard { padding: 16px; } .mcard-qr { width: 70px; height: 70px; } .mcard-name { font-size: .98rem; } .mcard-body .avatar.lg { width: 60px; height: 60px; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-top: -44px; position: relative; z-index: 2; }
.stat { padding: 26px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 2.1rem; font-weight: 800; color: var(--navy-900); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .88rem; font-weight: 500; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } .stat b { font-size: 1.6rem; } }

/* features, flow */
.feature { padding: 26px; }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-700); margin-bottom: 16px; }
.feature .ic.gold { background: var(--gold-50); color: var(--gold-600); }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }
.flow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; counter-reset: flow; }
.flow-step { text-align: center; position: relative; padding: 0 4px; }
.flow-step .n { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--gold); color: var(--navy-900); position: relative; z-index: 1; }
.flow-step:not(:last-child)::after { content: ''; position: absolute; top: 26px; left: 50%; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold-300) 0 6px, transparent 6px 12px); }
.flow-step b { font-size: .86rem; display: block; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; gap: 0; } .flow-step { display: flex; align-items: center; gap: 14px; text-align: left; padding: 6px 0; } .flow-step .n { margin: 0; width: 44px; height: 44px; } .flow-step:not(:last-child)::after { top: 50px; left: 21px; width: 2px; height: calc(100% - 44px); background: var(--gold-300); } }

/* content cards */
.thumb { aspect-ratio: 16/9; width: 100%; object-fit: cover; border-radius: var(--r) var(--r) 0 0; background: var(--navy-800); }
.news-card { overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.news-card:hover { color: var(--ink); }
.news-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card h3 { margin: 0; font-size: 1.04rem; }
.news-card p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.meta { display: flex; gap: 12px; align-items: center; color: var(--faint); font-size: .8rem; flex-wrap: wrap; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta [data-lucide], .meta .lucide { width: 14px; height: 14px; }
.event-row { display: flex; gap: 16px; padding: 16px; align-items: center; color: var(--ink); }
.event-row:hover { color: var(--ink); }
.date-tile { width: 62px; flex-shrink: 0; text-align: center; border-radius: 12px; background: var(--navy-900); color: #fff; padding: 8px 0; }
.date-tile b { display: block; font-size: 1.45rem; line-height: 1; }
.date-tile small { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-300); font-weight: 700; }
.ann { padding: 18px 20px; display: block; color: var(--ink); }
.ann.important { box-shadow: inset 4px 0 0 var(--bad), var(--shadow); }
.ann summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.ann summary::-webkit-details-marker { display: none; }
.ann summary h3 { margin: 0; font-size: 1rem; }
.ann[open] summary .chev { transform: rotate(180deg); }
.ann .content { max-width: 920px; margin-top: 12px; color: var(--muted); font-size: .93rem; }
.ach { padding: 0; overflow: hidden; }
.ach img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.ach .body { padding: 18px 20px; }
.ach .trophy { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-50); color: var(--gold-600); display: grid; place-items: center; margin-top: -40px; border: 3px solid #fff; position: relative; margin-bottom: 10px; }

/* page header */
.page-head { background: var(--navy-900); color: #fff; padding: 44px 0 52px; position: relative; overflow: hidden; }
.page-head::before { content: ''; position: absolute; inset: 0; background: #8FA6C9; opacity: .09; -webkit-mask: url(img/waves.svg) 0 0 / 220px repeat; mask: url(img/waves.svg) 0 0 / 220px repeat; }
.disp-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em; line-height: .95; }
.page-head .container { position: relative; }
.page-head h1 { color: #F7F0DF; margin: 0 0 10px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: .95; letter-spacing: .005em; }
.page-head p { color: #C5D0E2; margin: 0; max-width: 640px; }
.page-head .eyebrow { color: var(--gold-300); }
.page-body { margin-top: -24px; position: relative; padding-bottom: 64px; }
.crumbs { font-size: .82rem; color: #9FB0CB; margin-bottom: 10px; display: flex; gap: 6px; align-items: center; }
.crumbs a { color: #C5D0E2; }

/* filters / tabs */
.filterbar { padding: 16px; display: grid; gap: 12px; grid-template-columns: 2fr repeat(5, 1fr) auto; align-items: end; }
@media (max-width: 1000px) { .filterbar { grid-template-columns: 1fr 1fr; } .filterbar .search { grid-column: 1 / -1; } }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .85rem; display: inline-flex; gap: 6px; align-items: center; }
.tab:hover { border-color: var(--navy-100); color: var(--ink); }
.tab.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.tab .count { font-size: .72rem; background: rgba(127,140,160,.18); padding: 0 7px; border-radius: 999px; }

/* forms */
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 600; font-size: .86rem; }
.field .req { color: var(--bad); }
.field .hint { font-size: .78rem; color: var(--faint); }
.field .err { font-size: .8rem; color: var(--bad); font-weight: 500; }
.input, input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font: 400 .93rem var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(42,74,127,.14); }
.has-err input, .has-err select, .has-err textarea { border-color: var(--bad); }
input[type=file] { font: .88rem var(--font); padding: 10px; border: 1px dashed var(--navy-100); border-radius: var(--r-sm); width: 100%; background: var(--navy-50); }
.check { display: flex; gap: 10px; align-items: start; font-size: .9rem; cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--navy-900); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.search-input { position: relative; }
.search-input [data-lucide], .search-input .lucide { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search-input input { padding-left: 42px; }

/* stepper */
.stepper { display: flex; gap: 8px; margin-bottom: 28px; }
.stepper .s { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: .78rem; font-weight: 600; color: var(--faint); cursor: pointer; }
.stepper .s::before { content: ''; height: 4px; border-radius: 4px; background: var(--line); }
.stepper .s.done::before, .stepper .s.on::before { background: var(--gold); }
.stepper .s.on { color: var(--navy-900); }
@media (max-width: 620px) { .stepper .s span { display: none; } .stepper .s.on span { display: inline; } }
.step { display: none; }
.step.on { display: block; animation: slidein .25s ease; }

/* auth */
.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--navy-900); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(201,162,74,.16) 1px, transparent 1px); background-size: 26px 26px; }
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; font-size: 2rem; }
.auth-side p { color: #C5D0E2; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-box { width: 100%; max-width: 420px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }
.demo-accounts { font-size: .82rem; background: var(--gold-50); border: 1px solid #F0E3BF; border-radius: 12px; padding: 12px 14px; }
.demo-accounts button { background: none; border: 0; padding: 0; font: 600 .82rem var(--font); color: var(--navy-700); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* dashboard */
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.welcome h1 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.dash { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .dash { grid-template-columns: 1fr; } }
.profile-card { text-align: center; padding: 28px 24px; position: relative; overflow: hidden; }
.profile-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 84px; background: var(--navy-900); }
.profile-card > * { position: relative; }
.profile-card .avatar { margin: 18px auto 12px; }
.progress { height: 10px; background: var(--navy-50); border-radius: 10px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-600), var(--gold)); border-radius: 10px; transition: width 1s ease; }
.qa { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.qa a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px; text-align: center; font-weight: 600; font-size: .84rem; color: var(--ink); }
.qa a .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-700); transition: background .2s, color .2s; }
.qa a:hover .ic { background: var(--navy-900); color: var(--gold-300); }
@media (max-width: 760px) { .qa { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
.alert { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; align-items: start; border: 1px solid; }
.alert.warn { background: var(--warn-bg); border-color: #F2DDB0; color: #6B4600; }
.alert.info { background: var(--info-bg); border-color: #C9DAF5; color: #1C3F7A; }
.alert.bad { background: var(--bad-bg); border-color: #F2C6C3; color: #7E211D; }
.alert.ok { background: var(--ok-bg); border-color: #BFE3CF; color: #165E3F; }
.alert p { margin: 4px 0 0; font-size: .9rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; padding-top: 0; }
.notif { display: flex; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--line); color: var(--ink); align-items: start; }
.notif:first-child { border-top: 0; }
.notif.unread { background: var(--gold-50); }
.notif .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-700); flex-shrink: 0; }

/* directory */
.person { padding: 22px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); }
.person:hover { color: var(--ink); }
.person .avatar { margin-bottom: 10px; }
.person h3 { margin: 0; font-size: 1rem; }
.person .role { font-size: .86rem; font-weight: 600; margin-top: 6px; }
.person .inst { font-size: .82rem; color: var(--muted); }
.person .chips { justify-content: center; margin: 12px 0; }
.person .link { margin-top: auto; }

/* profile page */
.profile-hero { background: #fff; border-bottom: 1px solid var(--line); }
.cover { height: 170px; background: var(--navy-900); position: relative; overflow: hidden; }
.cover::before { content: ''; position: absolute; inset: 0; background: #8FA6C9; opacity: .09; -webkit-mask: url(img/waves.svg) 0 0 / 220px repeat; mask: url(img/waves.svg) 0 0 / 220px repeat; }
.profile-head { display: flex; gap: 24px; align-items: flex-start; padding-bottom: 24px; flex-wrap: wrap; position: relative; }
.profile-head > .avatar { margin-top: -44px; }
.profile-head .info { flex: 1; min-width: 240px; padding-top: 16px; display: grid; gap: 8px; }
.profile-head h1 { margin: 0; font-size: 1.75rem; line-height: 1.15; }
.profile-head .info p { margin: 0; }
.profile-head > .row { align-self: center; padding-top: 16px; }
@media (max-width: 620px) {
  .profile-head { gap: 12px; }
  .profile-head > .avatar { margin-top: -60px; }
  .profile-head .info { flex-basis: 100%; padding-top: 0; }
  .profile-head > .row { padding-top: 0; }
}
.profile-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; padding: 28px 0 64px; }
@media (max-width: 960px) { .profile-layout { grid-template-columns: 1fr; } }
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; margin: 0; font-size: .92rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 10px; } }
.locked { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 12px; background: var(--bg); color: var(--muted); font-size: .88rem; }

/* timeline */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), var(--navy-100)); }
.tl-item { position: relative; padding-bottom: 24px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: -29px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--navy-700); }
.tl-item.current::before { background: var(--gold); border-color: var(--gold-600); box-shadow: 0 0 0 5px rgba(201,162,74,.2); }
.tl-year { font-size: .78rem; font-weight: 800; color: var(--gold-600); letter-spacing: .08em; }
.tl-item h4 { margin: 2px 0 2px; font-size: 1rem; }
.tl-item .where { font-size: .86rem; color: var(--muted); }
.tl-item .desc { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tl-mini .tl-item { padding-bottom: 12px; }
.tl-mini h4 { font-size: .86rem; }

/* calendar */
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 10px 4px; font-weight: 700; }
.cal td { height: 104px; vertical-align: top; border: 1px solid var(--line); padding: 6px; font-size: .8rem; }
.cal td.other { background: var(--bg); color: var(--faint); }
.cal td.today .d { background: var(--gold); color: var(--navy-950); }
.cal .d { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 700; }
.cal .ev { display: block; margin-top: 4px; padding: 3px 6px; border-radius: 6px; background: var(--navy-900); color: #fff; font-size: .72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .ev:hover { background: var(--navy-700); color: #fff; }
@media (max-width: 620px) { .cal td { height: 64px; padding: 3px; } .cal .ev { font-size: 0; padding: 0; height: 6px; width: 6px; border-radius: 50%; display: inline-block; background: var(--gold); margin: 2px 1px 0; } }

/* gallery */
.masonry { columns: 3 280px; column-gap: 18px; }
.masonry figure { break-inside: avoid; margin: 0 0 18px; border-radius: var(--r); overflow: hidden; position: relative; background: var(--navy-800); }
.masonry figure img { width: 100%; height: auto; transition: transform .5s; }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; color: #fff; background: linear-gradient(transparent, rgba(7,20,39,.85)); font-weight: 600; font-size: .92rem; }
.masonry figcaption small { display: block; color: var(--gold-300); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

/* org chart */
.org { display: grid; gap: 28px; justify-items: center; }
.org-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; position: relative; }
.org-node { width: 210px; padding: 20px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.org-node .pos { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); }
.org-node b { font-size: .95rem; }
.org-node.lead { border-top: 4px solid var(--gold); width: 250px; }
.org-connector { width: 2px; height: 28px; background: var(--gold-300); margin: -28px auto; }

/* tables (admin) */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FAFBFC; white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #FAFBFC; }
.table .name { display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--ink); }
.table .row-ok td { background: #fff; } .table .row-error td { background: #FFF7F6; } .table .row-duplicate td { background: #FFFBF0; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .86rem; color: var(--ink); }
.pager .on { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* admin shell */
.admin { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy-950); color: #C5D0E2; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.sidebar .brand { color: #fff; padding: 4px 8px 20px; }
.sidebar .brand small { color: #8FA0BC; }
.sidebar .brand-mark { background: rgba(255,255,255,.06); border: 1px solid rgba(201,162,74,.4); }
.side-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #6F81A0; font-weight: 700; padding: 16px 12px 6px; }
.sidebar a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: #C5D0E2; font-weight: 500; font-size: .89rem; }
.sidebar a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar a.active { background: rgba(201,162,74,.14); color: var(--gold-300); }
.sidebar a .count { margin-left: auto; background: var(--gold); color: var(--navy-950); font-size: .7rem; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.admin-main { min-width: 0; }
.admin-top { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 28px; gap: 12px; position: sticky; top: 0; z-index: 30; }
.admin-content { padding: 28px; }
.admin-content > h1 { font-size: 1.6rem; }
.kpi { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.kpi .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; }
.kpi b { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.chart-box { position: relative; height: 280px; }
.side-toggle { display: none; }
@media (max-width: 960px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 80; width: 270px; transform: translateX(-100%); transition: transform .25s; }
  .admin.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .side-toggle { display: inline-grid; }
  .admin-content { padding: 20px 16px 90px; }
  .admin-top { padding: 0 16px; }
}
.steps-bar { display: flex; gap: 0; margin-bottom: 24px; overflow-x: auto; }
.steps-bar div { flex: 1; min-width: 120px; padding: 12px 14px; font-size: .82rem; font-weight: 600; color: var(--faint); border-bottom: 3px solid var(--line); display: flex; gap: 8px; align-items: center; }
.steps-bar div.on { color: var(--navy-900); border-color: var(--gold); }
.steps-bar div.done { color: var(--ok); border-color: var(--ok); }

/* bottom nav (mobile) */
.bottomnav { display: none; }
@media (max-width: 760px) {
  body.has-bottomnav { padding-bottom: 72px; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(11,31,58,.06); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .68rem; font-weight: 600; color: var(--faint); padding: 6px 0; position: relative; }
  .bottomnav a.active { color: var(--navy-900); }
  .bottomnav a.active [data-lucide], .bottomnav a.active .lucide { color: var(--gold-600); }
  .bottomnav .dot { top: 0; right: calc(50% - 20px); }
}

/* footer */
.footer { background: var(--navy-950); color: #9FB0CB; padding: 56px 0 28px; font-size: .9rem; }
.footer h4 { color: #fff; font-size: .9rem; margin-bottom: 14px; }
.footer a { color: #C5D0E2; display: block; padding: 3px 0; }
.footer a:hover { color: var(--gold-300); }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand small { color: #8FA0BC; }
.footer .brand-mark { background: rgba(255,255,255,.06); border: 1px solid rgba(201,162,74,.4); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

.cta-band { background: var(--navy-900); border-radius: 24px; padding: 48px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(201,162,74,.12); }
.cta-band h2 { color: #fff; margin: 0 0 6px; position: relative; }
.cta-band p { color: #C5D0E2; margin: 0; position: relative; }
@media (max-width: 620px) { .cta-band { padding: 32px 24px; } }
.quote { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); font-style: italic; line-height: 1.35; color: var(--navy-900); text-align: center; max-width: 820px; margin: 0 auto; }
.quote::before, .quote::after { content: '"'; color: var(--gold); }
.prose { font-size: 1.02rem; line-height: 1.8; }
.prose p { margin-bottom: 1.2em; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.article { overflow: hidden; }
.article > img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }
.article-body { padding: 36px 44px 40px; }
.article-body .lead { font-size: 1.15rem; font-weight: 600; color: var(--navy-800); line-height: 1.65; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.article-side { position: sticky; top: 88px; }
.side-news { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.side-news img { width: 72px; height: 54px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.side-news b { display: block; font-size: .88rem; line-height: 1.35; margin-bottom: 2px; }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr; } .article-side { position: static; } }
@media (max-width: 620px) { .article-body { padding: 20px 18px 24px; } .article-body .lead { font-size: 1.02rem; } .article > img { aspect-ratio: 16/9; } .prose { font-size: .96rem; line-height: 1.75; } }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty [data-lucide], .empty .lucide { width: 40px; height: 40px; color: var(--navy-100); margin: 0 auto 12px; }
.hidden { display: none !important; }
.fade-up { animation: fadeup .5s ease both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  .topbar, .footer, .bottomnav, .no-print, .flashes { display: none !important; }
  body { background: #fff; }
  .mcard { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 480px) { .topbar .brand small { display: none; } .topbar .brand b { white-space: nowrap; font-size: .92rem; } .topbar .container { gap: 10px; } }

/* share buttons */
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-label { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.sh { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy-800); cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; position: relative; }
.sh svg, .sh [data-lucide], .sh .lucide { width: 18px; height: 18px; }
.sh:hover { transform: translateY(-2px); background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.sh-wa { width: auto; display: inline-flex; gap: 8px; padding: 0 16px 0 12px; border-radius: 999px; background: #25D366; border-color: #25D366; color: #fff; font: 700 .86rem var(--font); }
.sh-wa svg { width: 20px; height: 20px; }
.sh-wa:hover { background: #1DA851; border-color: #1DA851; color: #fff; }
.share.compact .sh { width: 34px; height: 34px; }
.share.compact .sh-wa { width: 34px; padding: 0; border-radius: 50%; display: inline-grid; }
.share.compact .sh svg { width: 16px; height: 16px; }
.sh.copied::after { content: 'Tautan disalin'; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--navy-900); color: #fff; font: 600 .74rem var(--font); padding: 5px 10px; border-radius: 8px; white-space: nowrap; }
.share-block { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; }

/* Digital member card — every size is relative to card width (cqw) so it scales as one piece */
.idc { container-type: inline-size; }
.idcard { padding: 3.6cqw 4.2cqw 3cqw; border-radius: 3cqw; justify-content: flex-start; }
.idcard::after { inset: 1.6cqw; border-radius: 2cqw; }
.idcard .mcard-wm { width: 40%; right: 30%; opacity: .06; }
.idc-top { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; }
.idc-org { display: flex; align-items: center; gap: 2cqw; }
.idc-logo { width: 8.4cqw; height: 8.4cqw; display: block; flex-shrink: 0; }
.idc-logo img { width: 100%; height: 100%; object-fit: contain; }
.idc-org b { display: block; font-size: 2.5cqw; letter-spacing: .16em; color: var(--gold-300); line-height: 1.2; }
.idc-org small { display: block; font-size: 1.85cqw; opacity: .8; margin-top: .3cqw; }
.idc-verified { display: inline-flex; align-items: center; gap: .8cqw; padding: .9cqw 2cqw; border-radius: 99px; font-size: 1.8cqw; font-weight: 800; letter-spacing: .12em; color: var(--gold-300); background: rgba(201,162,74,.16); border: 1px solid rgba(201,162,74,.5); }
.idc-verified svg { width: 2.2cqw; height: 2.2cqw; }
.idc-body { flex: 1; display: grid; grid-template-columns: 25% minmax(0, 1fr) 19%; gap: 3.6cqw; align-items: center; margin: 2.6cqw 0 1.6cqw; }
.idc-photo { aspect-ratio: 3/4; border-radius: 2cqw; overflow: hidden; border: .6cqw solid var(--gold); background: var(--navy-700); display: grid; place-items: center; font-size: 8cqw; font-weight: 800; color: var(--cream, #F7F0DF); box-shadow: 0 1.5cqw 3cqw rgba(0,0,0,.35); }
.idc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idc-name { font-size: 4.3cqw; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.idc-gen { font-size: 2.2cqw; font-weight: 700; color: var(--gold-300); margin-top: .8cqw; }
.idc-fields { display: grid; gap: 1.5cqw; margin-top: 2.2cqw; padding-top: 2.2cqw; border-top: 1px solid rgba(201,162,74,.35); }
.idc-fields span { display: block; font-size: 1.55cqw; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8FA6C9; }
.idc-fields b { display: block; font-size: 2.25cqw; font-weight: 600; line-height: 1.3; margin-top: .2cqw; }
.idc-fields .idc-no { font-family: ui-monospace, 'Cascadia Mono', monospace; letter-spacing: .12em; color: var(--gold-300); font-weight: 700; }
.idc-qr { display: grid; gap: 1.2cqw; justify-items: center; align-self: end; }
.idc-qr .mcard-qr { width: 100%; height: auto; aspect-ratio: 1; padding: 1.2cqw; border-radius: 1.6cqw; }
.idc-qr small { font-size: 1.45cqw; color: #8FA6C9; text-align: center; line-height: 1.3; }
.idc-foot { display: flex; justify-content: space-between; gap: 2cqw; padding-top: 1.6cqw; border-top: 1px solid rgba(201,162,74,.25); font-size: 1.6cqw; color: #8FA6C9; letter-spacing: .04em; }
@media (max-width: 520px) {
  .idc { margin: -8px; }
  .idc-name { font-size: max(4.3cqw, 14px); }
  .idc-gen, .idc-fields b { font-size: max(2.25cqw, 8.5px); }
  .idc-fields span, .idc-qr small { font-size: max(1.6cqw, 6.5px); }
  .idc-foot { display: none; }
  .idc-fields { gap: 1.1cqw; margin-top: 1.6cqw; padding-top: 1.6cqw; }
}

/* demo site banner + one-click logins */
.demo-banner { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; background: var(--gold); color: var(--navy-950); font-size: .84rem; text-align: center; position: relative; z-index: 60; }
.demo-banner [data-lucide], .demo-banner .lucide { width: 16px; height: 16px; }
.demo-banner a { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--navy-950); background: rgba(255,255,255,.35); padding: 3px 12px; border-radius: 999px; }
.demo-banner a:hover { background: #fff; color: var(--navy-950); }
.try-box { border: 1px solid #F0E3BF; background: var(--gold-50); border-radius: 16px; padding: 18px; margin-bottom: 22px; }
.try-box h3 { margin: 0 0 4px; font-size: 1rem; }
.try-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.try-grid form button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: 700 .84rem var(--font); color: var(--navy-900); cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.try-grid form button:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow); }
.try-grid form button small { font-weight: 500; color: var(--muted); font-size: .72rem; }
.try-more { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: .78rem; }
.try-more button { background: none; border: 0; padding: 0; font: 600 .78rem var(--font); color: var(--navy-700); text-decoration: underline; cursor: pointer; }


/* ================= editorial theme overrides ================= */
h1, h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .005em; line-height: 1; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.eyebrow { color: var(--gold); letter-spacing: .14em; }
.eyebrow::before { background: var(--gold); width: 28px; }
.btn { border-radius: 2px; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; padding: 12px 20px; }
.btn-sm { padding: 8px 14px; font-size: .72rem; }
.btn:hover { background: var(--gold); border-color: var(--gold); box-shadow: none; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.btn-ghost { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-ghost:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.card { border-radius: var(--r); box-shadow: none; background: var(--surface); }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 10px 0 -6px var(--gold); }
.badge { border-radius: 2px; letter-spacing: .04em; }
.chip { border-radius: 2px; background: var(--navy-50); color: var(--ink); }
.tab { border-radius: 2px; text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; }
.tab.active { background: var(--navy-900); border-color: var(--navy-900); }
input, select, textarea, .input { border-radius: 2px !important; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(200,25,30,.12); }
.av-0 { background: #141414; } .av-1 { background: #C8191E; } .av-2 { background: #6B4F3A; } .av-3 { background: #3B3B3B; } .av-4 { background: #8E1A1D; } .av-5 { background: #5E5952; }

/* header: cream, hairline, small uppercase links */
.topbar { background: rgba(242,237,230,.94); border-bottom: 1px solid var(--line); }
.nav a { border-radius: 0; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 600; padding: 8px 10px; position: relative; }
.nav a:hover, .nav a.active { background: none; color: var(--gold); }
.nav a.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--gold); }
.brand b { font-family: var(--display); font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; }
.icon-btn:hover { background: var(--navy-50); }
.dot { background: var(--gold); color: #fff; border-color: var(--bg); }

/* page head: editorial title on cream with hairline */
.page-head { background: var(--bg); color: var(--ink); padding: 52px 0 30px; border-bottom: 1px solid var(--line); }
.page-head::before { display: none; }
.page-head h1 { color: var(--ink); font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: .92; }
.page-head p { color: var(--muted); }
.page-head .eyebrow { color: var(--gold); }
.page-head .crumbs, .page-head .crumbs a { color: var(--muted); }
.page-head [style*="9FB0CB"] { color: var(--muted) !important; }
.page-body { margin-top: 0; padding-top: 28px; }
.cover { background: var(--navy-900); }
.cover::before { background: linear-gradient(90deg, transparent 62%, var(--gold) 62%, var(--gold) 70%, transparent 70%); opacity: 1; -webkit-mask: none; mask: none; }

/* dark panels: black with red accents */
.profile-card::before { background: var(--navy-900); }
.mcard::before { background: radial-gradient(circle at 110% -10%, rgba(200,25,30,.55), transparent 48%), radial-gradient(circle at -10% 120%, rgba(200,25,30,.25), transparent 55%); }
.mcard::after { border-color: rgba(240,87,91,.35); }
.date-tile { border-radius: 2px; background: var(--navy-900); }
.date-tile small { color: var(--gold-300); }
.footer { background: var(--navy-950); }
.footer h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; }
.sidebar { background: var(--navy-950); }
.sidebar a.active { background: rgba(200,25,30,.18); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.sidebar a .count { background: var(--gold); color: #fff; }
.demo-banner { background: var(--navy-900); color: #fff; }
.demo-banner a { background: var(--gold); color: #fff; }
.demo-banner a:hover { background: #fff; color: var(--ink); }
.try-box { background: var(--surface); border-color: var(--line); }
.try-grid form button { border-radius: 2px; }
.try-grid form button:hover { border-color: var(--gold); }
.progress > i { background: var(--gold); }
.timeline::before { background: linear-gradient(var(--gold), var(--line)); }
.tl-item::before { border-color: var(--navy-900); }
.tl-item.current::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(200,25,30,.15); }
.tl-year { color: var(--gold); }
.flash, .sh, .sh-wa, .alert, .pager a, .pager span, .masonry figure { border-radius: 2px; }
.qa a .ic { border-radius: 2px; background: var(--navy-50); color: var(--ink); }
.qa a:hover .ic { background: var(--gold); color: #fff; }
.kpi .ic, .feature .ic, .notif .ic { border-radius: 2px; }
.cal .ev { background: var(--navy-900); border-radius: 2px; }
.cal td.today .d { background: var(--gold); color: #fff; }
.pager .on { background: var(--gold); border-color: var(--gold); }
.masonry figcaption small { color: var(--gold-300); }
.ann.important { box-shadow: inset 4px 0 0 var(--gold); }
.b-important { background: var(--gold); }

/* ================= forum ================= */
.forum-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .forum-layout { grid-template-columns: 1fr; } }
.forum-cats { display: grid; gap: 2px; position: sticky; top: 88px; }
.forum-cats a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; color: var(--ink); font-weight: 600; font-size: .88rem; border-left: 2px solid transparent; }
.forum-cats a:hover { background: var(--navy-50); color: var(--ink); }
.forum-cats a.on { border-left-color: var(--gold); background: var(--surface); color: var(--gold); }
.forum-cats a span { color: var(--faint); font-weight: 500; }
@media (max-width: 900px) { .forum-cats { position: static; grid-auto-flow: column; overflow-x: auto; } .forum-cats a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; } .forum-cats a.on { border-bottom-color: var(--gold); } }
.thread-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); color: var(--ink); }
.thread-row:first-child { border-top: 0; }
.thread-row:hover { background: #fff; color: var(--ink); }
.thread-row h3 { margin: 0 0 4px; font-size: 1rem; }
.thread-row .stat { text-align: center; min-width: 56px; }
.thread-row .stat b { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--gold); }
.thread-row .stat span { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.post { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 22px 24px; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; }
.post .who { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.post .who b { font-size: .95rem; }
.post .body { white-space: pre-line; line-height: 1.7; }
.post.op { background: #fff; }
.post-actions { display: flex; gap: 12px; margin-top: 10px; }
.post-actions button { background: none; border: 0; padding: 0; font: 600 .76rem var(--font); color: var(--faint); cursor: pointer; text-decoration: underline; }
.post-actions button:hover { color: var(--gold); }

/* ================= chat ================= */
.chat { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: calc(100vh - 150px); min-height: 520px; border: 1px solid var(--line); background: var(--surface); }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list h2 { font-size: 1.6rem; padding: 18px 18px 10px; margin: 0; }
.chat-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; color: var(--ink); border-left: 3px solid transparent; }
.chat-item:hover { background: #fff; color: var(--ink); }
.chat-item.on { background: #fff; border-left-color: var(--gold); }
.chat-item b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .last { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.chat-item .meta-r { text-align: right; font-size: .7rem; color: var(--faint); display: grid; gap: 4px; justify-items: end; }
.chat-item .unread { background: var(--gold); color: #fff; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; font-size: .68rem; padding: 0 6px; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.chat-head b { display: block; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.bubble { max-width: min(72%, 520px); padding: 9px 12px 6px; background: #fff; border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .92rem; line-height: 1.5; border-radius: 2px 12px 12px 12px; }
.bubble.mine { align-self: flex-end; background: var(--navy-900); color: #fff; border-color: var(--navy-900); border-radius: 12px 2px 12px 12px; }
.bubble time { display: block; text-align: right; font-size: .66rem; opacity: .6; margin-top: 2px; }
.day-sep { align-self: center; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 10px 0 4px; }
.chat-form { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
.chat-form textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; padding: 11px 14px; }
.chat-empty { flex: 1; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--muted); }
.chat-empty .big { font-family: var(--display); font-size: 3rem; text-transform: uppercase; color: var(--ink); line-height: 1; font-weight: 700; }
@media (max-width: 860px) {
  .chat { grid-template-columns: 1fr; height: calc(100vh - 140px); }
  .chat.has-partner .chat-list { display: none; }
  .chat:not(.has-partner) .chat-main { display: none; }
  .bubble { max-width: 85%; }
}

.brand b, .brand small { white-space: nowrap; }
@media (max-width: 1240px) { .topbar .brand small { display: none; } .topbar .nav a { padding: 8px 7px; letter-spacing: .06em; } }
