/* IndoWaris — Material 3 inspired design system. Colours derived from the logo. */
:root {
  --primary: #243447;
  --primary-2: #2F4560;
  --on-primary: #ffffff;
  --gold: #F6B92B;
  --gold-soft: #FFF3D1;
  --gold-ink: #6B4A00;
  --green: #7DB548;
  --green-soft: #EAF5DE;
  --green-ink: #2F5A12;
  --blue: #8EC9F5;
  --blue-soft: #E6F3FD;
  --blue-ink: #154C75;
  --red: #C0392B;
  --red-soft: #FBEAE8;
  --ink: #1F2D3D;
  --muted: #5B6B7B;
  --outline: #DCE3EA;
  --outline-strong: #C3CDD6;
  --surface: #FFFFFF;
  --surface-2: #F5F7FA;
  --surface-3: #EDF1F5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(20, 35, 55, .06), 0 1px 3px rgba(20, 35, 55, .08);
  --shadow-2: 0 4px 10px rgba(20, 35, 55, .07), 0 12px 28px rgba(20, 35, 55, .08);
  --shadow-3: 0 20px 50px -14px rgba(20, 35, 55, .28);
  --glow-gold: 0 0 0 1px rgba(246, 185, 43, .35), 0 14px 36px -8px rgba(246, 185, 43, .55);
  --radius-lg: 22px;
  --dark-1: #0B1220;
  --dark-2: #16213A;
  --glass: rgba(255, 255, 255, .06);
  --glass-2: rgba(255, 255, 255, .11);
  --glass-line: rgba(255, 255, 255, .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --container: 1180px;
}
html[lang="ar"] { --font: 'Noto Sans Arabic', 'Plus Jakarta Sans', 'Segoe UI', Tahoma, sans-serif; }
html[lang="zh"] { --font: 'Noto Sans SC', 'Plus Jakarta Sans', 'Microsoft YaHei', 'PingFang SC', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: clip; margin: 0; font-family: var(--font); color: var(--ink); background: var(--surface); line-height: 1.6; font-size: 16px; }
img, svg { max-width: 100%; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.material-symbols-rounded { font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24; vertical-align: middle; line-height: 1; font-size: 22px; user-select: none; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; background: var(--gold); color: var(--primary); padding: 8px 14px; border-radius: 8px; z-index: 100; transform: translateY(-200%); }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 600 .95rem/1 var(--font); cursor: pointer; text-decoration: none !important; transition: background .2s, box-shadow .25s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary-2), var(--primary) 70%); color: var(--on-primary); box-shadow: var(--shadow-1); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(36, 52, 71, .25), var(--shadow-3); transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, #FFD66B, var(--gold) 60%, #E8A40F); color: #2B1E00; box-shadow: var(--shadow-1); }
.btn-gold:hover { box-shadow: var(--glow-gold); transform: translateY(-2px); }
.btn-glow { background: linear-gradient(135deg, #FFD66B, var(--gold) 55%, #E8A40F); color: #221700; box-shadow: var(--glow-gold); }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(246, 185, 43, .7), 0 16px 44px -8px rgba(246, 185, 43, .8); }
.btn-glass { background: var(--glass); color: #fff; border-color: var(--glass-line); backdrop-filter: blur(12px); }
.btn-glass:hover { background: var(--glass-2); transform: translateY(-2px); }
.btn-tonal { background: var(--surface-3); color: var(--primary); }
.btn-tonal:hover { background: #E2E8EF; }
.btn-outline { background: transparent; border-color: var(--outline-strong); color: var(--primary); }
.btn-outline:hover { background: var(--surface-2); }
.btn-text { background: transparent; color: var(--primary); padding: 0 12px; }
.btn-text:hover { background: var(--surface-2); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: #F6D6D2; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .875rem; }
.btn-xs { height: 30px; padding: 0 10px; font-size: .8rem; gap: 4px; }
.btn-xs .material-symbols-rounded { font-size: 18px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: var(--primary); }
.icon-btn:hover { background: var(--surface-3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- top app bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--outline); }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--primary); text-decoration: none !important; }
.brand img { width: 36px; height: 36px; }
.brand span b { color: #D99A00; font-weight: 800; }
.nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--surface-3); }
.nav a.active { background: linear-gradient(135deg, var(--gold-soft), var(--green-soft)); color: var(--primary); }
.topbar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 210px; background: var(--surface); border: 1px solid var(--outline); border-radius: 14px; box-shadow: var(--shadow-2); padding: 6px; z-index: 60; }
.menu-panel a:not(.btn), .menu-panel button:not(.btn) { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font: 500 .95rem var(--font); background: none; border: 0; cursor: pointer; text-align: start; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); }
.menu-panel a.active { background: var(--gold-soft); font-weight: 700; }
.lang-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--outline); font-weight: 700; font-size: .85rem; color: var(--primary); background: var(--surface); }
.nav-toggle { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: inline-grid; }
  .topbar-actions .hide-sm { display: none; }
}
.mobile-nav { display: none; border-top: 1px solid var(--outline); padding: 8px 0 14px; }
.mobile-nav a:not(.btn) { display: block; padding: 12px 20px; color: var(--ink); font-weight: 600; }
.mobile-nav.open { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; background: radial-gradient(1100px 500px at 85% -10%, #FFF3D1 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #E6F3FD 0%, transparent 55%), var(--surface); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-weight: 700; font-size: .85rem; margin-bottom: 18px; }
.hero h1 span { background: linear-gradient(90deg, #D99A00, #F6B92B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats div b { display: block; font-size: 1.6rem; color: var(--primary); }
.hero-stats div span { color: var(--muted); font-size: .9rem; }
.hero-visual { position: relative; background: var(--surface); border: 1px solid var(--outline); border-radius: 24px; box-shadow: var(--shadow-2); padding: 26px; }
.hero-visual .hv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hv-dots { display: flex; gap: 6px; } .hv-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--outline-strong); display: block; }
.mini-tree { display: grid; gap: 22px; }
.mt-row { display: flex; justify-content: center; gap: 12px; position: relative; }
.mt-node { border-radius: 12px; padding: 10px 12px; font-size: .78rem; min-width: 104px; text-align: center; border: 1.5px solid var(--outline-strong); background: #fff; }
.mt-node b { display: block; font-size: .86rem; }
.mt-node.pw { background: var(--primary); color: #fff; border-color: var(--primary); }
.mt-node.hr { background: var(--green-soft); border-color: var(--green); }
.mt-node.tr { background: var(--gold-soft); border-color: var(--gold); }
.mt-node.dc { background: var(--surface-3); color: var(--muted); }
.mt-node em { font-style: normal; font-weight: 700; color: var(--green-ink); }
.mt-node.tr em { color: var(--gold-ink); }
.hv-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.fmt { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: .8rem; color: var(--primary); }
.floating { position: absolute; inset-inline-end: -14px; bottom: -18px; background: var(--primary); color: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-2); font-size: .85rem; }
.floating b { color: var(--gold); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 48px 0 64px; } .floating { position: static; margin-top: 16px; } }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 60px 0; } }

.card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-1); }
.card.flat { box-shadow: none; }
.card.hover { transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s; }
.card.hover:hover { box-shadow: var(--shadow-3); transform: translateY(-4px); border-color: rgba(246, 185, 43, .35); }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.feature-icon .material-symbols-rounded { font-size: 28px; }
.fi-gold { background: var(--gold-soft); color: var(--gold-ink); }
.fi-green { background: var(--green-soft); color: var(--green-ink); }
.fi-blue { background: var(--blue-soft); color: var(--blue-ink); }
.fi-navy { background: #E3E8EF; color: var(--primary); }
.card p { color: var(--muted); margin: 0; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; inset-inline-start: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: var(--gold); font-weight: 800; display: grid; place-items: center; }

.lang-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lang-tile { border-radius: var(--radius); padding: 22px; background: var(--surface); border: 1px solid var(--outline); text-align: center; }
.lang-tile b { display: block; font-size: 1.35rem; color: var(--primary); }
@media (max-width: 640px) { .lang-tiles { grid-template-columns: repeat(2, 1fr); } }

.cta-band { background: radial-gradient(700px 340px at 88% -10%, rgba(246, 185, 43, .22), transparent 60%), radial-gradient(600px 320px at 4% 120%, rgba(125, 181, 72, .18), transparent 55%), linear-gradient(160deg, var(--dark-1), var(--dark-2)); color: #fff; border-radius: var(--radius-lg); padding: 52px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; box-shadow: var(--shadow-3); }
.cta-band::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 80%); mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 80%); }
.cta-band::after { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(246, 185, 43, .16); inset-inline-end: -120px; top: -160px; filter: blur(10px); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; } .cta-band p { color: #D5DEE8; margin: 0; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 32px; } }

details.faq { border: 1px solid var(--outline); border-radius: 14px; padding: 0 20px; background: var(--surface); margin-bottom: 12px; }
details.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: 'expand_more'; font-family: 'Material Symbols Rounded'; font-size: 24px; transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(180deg); }
details.faq p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- page / prose ---------- */
.page-hero { padding: 56px 0 36px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-bottom: 1px solid var(--outline); }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.page-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; padding: 48px 0 80px; }
@media (max-width: 900px) { .page-layout { grid-template-columns: 1fr; } }
.prose { font-size: 1.03rem; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; } .prose li { margin-bottom: .4em; }
.side-nav { position: sticky; top: 90px; align-self: start; }
.side-nav a:not(.btn) { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-weight: 600; }
.side-nav a:not(.btn).active, .side-nav a:not(.btn):hover { background: var(--surface-3); text-decoration: none; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 11px 14px; border: 1.5px solid var(--outline-strong); border-radius: 12px; font: 400 .98rem var(--font); color: var(--ink); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(36, 52, 71, .12); outline: none; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; cursor: pointer; margin-bottom: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); margin-top: 2px; flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.seg { display: inline-flex; border: 1.5px solid var(--outline-strong); border-radius: 999px; overflow: hidden; }
.seg label { padding: 9px 16px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.seg input { display: none; }
.seg input:checked + span { color: var(--primary); }
.seg label:has(input:checked) { background: var(--gold-soft); }

.auth-wrap { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: radial-gradient(900px 460px at 90% -10%, rgba(246, 185, 43, .16), transparent 55%), radial-gradient(700px 420px at -10% 110%, rgba(125, 181, 72, .14), transparent 55%), linear-gradient(165deg, var(--dark-1), var(--dark-2)); color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 75% 65% at 30% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 75% 65% at 30% 40%, #000 30%, transparent 75%); }
.auth-side::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(246, 185, 43, .14); inset-inline-end: -140px; bottom: -140px; filter: blur(6px); }
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; } .auth-side p, .auth-side li { color: #B9C6D6; }
.auth-side ul { list-style: none; padding: 0; } .auth-side li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.auth-side li .material-symbols-rounded { color: var(--gold); background: var(--glass); border: 1px solid var(--glass-line); border-radius: 12px; padding: 8px; font-size: 20px; backdrop-filter: blur(8px); }
.auth-main { display: grid; place-items: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 440px; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-size: .95rem; }
.alert-error { background: var(--red-soft); color: #8A2318; }
.alert-success { background: var(--green-soft); color: var(--green-ink); }
.alert-info { background: var(--blue-soft); color: var(--blue-ink); }
.alert-warn { background: var(--gold-soft); color: var(--gold-ink); }
.toast { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 90; max-width: 420px; box-shadow: var(--shadow-2); animation: toast-in .25s ease; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

/* ---------- footer ---------- */
.footer { background: #1B2838; color: #C7D2DE; padding: 64px 0 28px; margin-top: 0; }
.footer a:not(.btn) { color: #E8EEF4; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; } .footer li { margin-bottom: 10px; }
.footer .brand { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 68px); }
.sidebar { border-inline-end: 1px solid var(--outline); background: var(--surface-2); padding: 20px 12px; }
.sidebar a:not(.btn) { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; margin-bottom: 2px; text-decoration: none; }
.sidebar a { transition: background .2s, transform .15s; }
.sidebar a:hover { background: var(--surface-3); }
.sidebar a.active { background: linear-gradient(135deg, var(--gold-soft), var(--green-soft)); color: var(--primary); box-shadow: inset 0 0 0 1px rgba(246, 185, 43, .3); }
.sidebar .sec { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 16px 14px 6px; font-weight: 700; }
.main { padding: 28px 32px 60px; min-width: 0; }
@media (max-width: 900px) { .shell { grid-template-columns: 1fr; } .sidebar { display: flex; overflow-x: auto; gap: 4px; padding: 10px; border-inline-end: 0; border-bottom: 1px solid var(--outline); } .sidebar .sec { display: none; } .sidebar a { white-space: nowrap; } .main { padding: 20px 16px 48px; } }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-title h1 { font-size: 1.7rem; margin: 0; }

.stat { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--outline); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.stat:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.stat .k { color: var(--muted); font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .v { font-size: 1.9rem; font-weight: 800; color: var(--primary); margin-top: 6px; }
.stat .d { font-size: .8rem; color: var(--green-ink); }

.case-card { display: flex; flex-direction: column; gap: 10px; }
.case-card h3 { margin: 0; }
.case-card .meta { display: flex; gap: 14px; color: var(--muted); font-size: .85rem; flex-wrap: wrap; }
.empty { text-align: center; padding: 56px 20px; border: 2px dashed var(--outline-strong); border-radius: 20px; background: var(--surface-2); }
.empty .material-symbols-rounded { font-size: 52px; color: var(--gold); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--outline); margin-bottom: 24px; overflow-x: auto; }
.tabs a:not(.btn) { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; text-decoration: none; }
.tabs a:hover { color: var(--primary); }
.tabs a.active { color: var(--primary); border-bottom-color: var(--gold); }

.table-wrap { overflow-x: auto; border: 1px solid var(--outline); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: start; background: var(--surface-2); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 12px 14px; border-bottom: 1px solid var(--outline); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--outline); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.stage-row td { background: var(--blue-soft); font-weight: 700; color: var(--blue-ink); }
.table tr.transmit td { background: var(--gold-soft); }
.table .actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.chip-green { background: var(--green-soft); color: var(--green-ink); }
.chip-gold { background: var(--gold-soft); color: var(--gold-ink); }
.chip-blue { background: var(--blue-soft); color: var(--blue-ink); }
.chip-navy { background: var(--primary); color: #fff; }
.chip-red { background: var(--red-soft); color: var(--red); }
.share { font-weight: 800; color: var(--green-ink); font-variant-numeric: tabular-nums; }

.chart-box { position: relative; border: 1px solid var(--outline); border-radius: var(--radius); background: #fff; overflow: hidden; height: min(72vh, 720px); cursor: grab; touch-action: none; }
.chart-box.dragging { cursor: grabbing; }
.chart-box img { position: absolute; top: 0; left: 0; transform-origin: 0 0; max-width: none; user-select: none; -webkit-user-drag: none; }
.chart-tools { position: absolute; top: 12px; inset-inline-end: 12px; display: flex; gap: 6px; background: rgba(255, 255, 255, .92); border: 1px solid var(--outline); border-radius: 999px; padding: 4px; z-index: 2; }

.export-card { display: flex; flex-direction: column; gap: 12px; }
.export-card .ext { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; }

dialog.modal { border: 0; border-radius: 24px; padding: 0; width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); color: var(--ink); }
dialog.modal::backdrop { background: rgba(20, 30, 45, .45); backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 8px; }
.modal-head h3 { margin: 0; font-size: 1.25rem; }
.modal-body { padding: 8px 24px 8px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 24px 22px; }
.rel-box { background: var(--surface-2); border-radius: 14px; padding: 14px 16px 2px; margin-bottom: 14px; }

.pagination { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--outline); font-weight: 600; padding: 0 10px; }
.pagination .cur { background: var(--primary); color: #fff; border-color: var(--primary); }

.map { height: 320px; border-radius: var(--radius); border: 1px solid var(--outline); overflow: hidden; z-index: 0; }
.kv { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.kv .material-symbols-rounded { color: var(--gold-ink); background: var(--gold-soft); border-radius: 12px; padding: 10px; }

.price-card { position: relative; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.price-card:hover { box-shadow: var(--glow-gold); transform: translateY(-4px); }
.price-card .price { font-size: 2.4rem; font-weight: 800; color: var(--primary); }
.price-card ul { list-style: none; padding: 0; } .price-card li { display: flex; gap: 10px; margin-bottom: 10px; }
.price-card li .material-symbols-rounded { color: var(--green); }
.ribbon { position: absolute; top: 18px; inset-inline-end: 18px; }

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.error-page .code { font-size: 5rem; font-weight: 800; color: var(--gold); line-height: 1; }

.cookie { position: fixed; bottom: 16px; inset-inline-start: 16px; max-width: 420px; z-index: 80; background: var(--primary); color: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-2); display: none; gap: 12px; align-items: center; font-size: .9rem; }
.cookie.show { display: flex; }
.cookie a:not(.btn) { color: var(--gold); }

@media print { .topbar, .footer, .sidebar, .tabs, .chart-tools, .btn { display: none !important; } .shell { display: block; } .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- reveal-on-scroll + cursor spotlight (site-wide, see main.js) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.spot { position: relative; overflow: hidden; }
.spot::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(246, 185, 43, .12), transparent 70%); }
.spot:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } .va-fab::before { animation: none; } }

/* ---------- utilities (no inline styles: CSP forbids them) ---------- */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap-2 { gap: 16px; } .w-100 { width: 100%; } .nowrap { white-space: nowrap; } .right { text-align: end; }
.flex { display: flex; } .items-center { align-items: center; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.maxw-640 { max-width: 640px; } .maxw-820 { max-width: 820px; }
.lvl-1 { padding-inline-start: 28px !important; } .lvl-2 { padding-inline-start: 48px !important; } .lvl-3 { padding-inline-start: 68px !important; } .lvl-4 { padding-inline-start: 88px !important; }
.small-v { font-size: 1.15rem; line-height: 1.3; }
.h-auth { font-size: 2rem; }
.prewrap { white-space: pre-wrap; }
hr { border: 0; border-top: 1px solid var(--outline); }
code { font-family: ui-monospace, Consolas, monospace; font-size: .85em; background: var(--surface-3); padding: 1px 6px; border-radius: 6px; }
.meta .material-symbols-rounded { font-size: 18px; }

/* ---------- small-screen hardening ---------- */
.hero-grid > *, .grid > *, .page-layout > *, .shell > * { min-width: 0; }
.mt-row { flex-wrap: wrap; }
@media (max-width: 640px) {
  .hero-stats { gap: 18px; }
  .hero-stats div b { font-size: 1.15rem; }
  .hero .lead { font-size: 1.02rem; }
  .topbar-inner { gap: 10px; }
  .brand span { font-size: 1.05rem; }
  .lang-chip { padding: 0 10px; }
  .btn-lg { height: 48px; padding: 0 20px; }
  .mt-node { min-width: 84px; padding: 8px; }
  .cookie { inset-inline-end: 16px; }
}
.lang-chip { white-space: nowrap; }
@media (max-width: 480px) {
  .topbar .brand span { display: none; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .btn-sm { padding: 0 12px; }
}
.stat .v.small-v { font-size: 1.15rem; line-height: 1.3; overflow-wrap: anywhere; }
.chart-tools { top: auto; bottom: 12px; }
/* Person table becomes stacked cards on phones so the actions stay reachable. */
@media (max-width: 760px) {
  .table.cards thead { display: none; }
  .table.cards, .table.cards tbody, .table.cards tr, .table.cards td { display: block; width: 100%; }
  .table.cards tr { border-bottom: 1px solid var(--outline); padding: 10px 4px; }
  .table.cards td { border: 0; padding: 4px 12px; }
  .table.cards td[data-label]::before { content: attr(data-label) ': '; color: var(--muted); font-size: .8rem; font-weight: 600; }
  .table.cards td[data-label]:empty { display: none; }
  .table.cards .actions { justify-content: flex-start; margin-top: 6px; }
}

/* ================= IndoWarisVA (AI assistant) ================= */
.va { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 85; }
.va-fab { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 8px; border: 0; border-radius: 999px; cursor: pointer; background: linear-gradient(135deg, #243447, #34507a); color: #fff; font: 700 .95rem var(--font); box-shadow: 0 10px 28px rgba(36, 52, 71, .35), 0 0 0 4px rgba(246, 185, 43, .12); transition: transform .2s var(--ease), box-shadow .2s; position: relative; }
.va-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(36, 52, 71, .4), 0 0 0 6px rgba(246, 185, 43, .18); }
.va-fab::before { content: ''; position: absolute; inset: -4px; border-radius: 999px; border: 1.5px solid rgba(246, 185, 43, .5); animation: va-pulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes va-pulse { 0% { opacity: .7; transform: scale(.96); } 70%, 100% { opacity: 0; transform: scale(1.12); } }
.va-fab-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--primary); display: grid; place-items: center; }
.va.open .va-fab { display: none; }
.va-panel { position: fixed; inset-inline-end: 20px; bottom: 20px; width: min(410px, calc(100vw - 24px)); height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--outline); border-radius: 22px; box-shadow: 0 24px 60px rgba(20, 30, 45, .28); overflow: hidden; }
.va-panel[hidden] { display: none; }
.va-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; background: linear-gradient(135deg, #243447, #34507a); color: #fff; }
.va-head .icon-btn { color: #fff; }
.va-head .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.va-avatar { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; }
.va-avatar img { width: 30px; height: 30px; }
.va-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.va-head-text span { font-size: .78rem; color: #D5DEE8; display: flex; align-items: center; gap: 6px; }
.va-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(125, 181, 72, .3); }
.va-log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.va-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.55; overflow-wrap: anywhere; }
.va-msg p { margin: 0 0 .45em; }
.va-msg p:last-child { margin-bottom: 0; }
.va-msg ul, .va-msg ol { margin: .2em 0 .5em; padding-inline-start: 1.25em; }
.va-assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--outline); border-start-start-radius: 4px; }
.va-user { align-self: flex-end; background: var(--primary); color: #fff; border-start-end-radius: 4px; }
.va-error { border-color: #F2C3BD; background: var(--red-soft); color: #8A2318; }
.va-thinking { color: var(--muted); display: flex; align-items: center; gap: 4px; }
.va-thinking span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: va-dot 1s infinite ease-in-out; }
.va-thinking span:nth-child(2) { animation-delay: .15s; }
.va-thinking span:nth-child(3) { animation-delay: .3s; margin-inline-end: 6px; }
@keyframes va-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.va-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: var(--surface); }
.va-suggest:empty { display: none; }
.va-chip { border: 1px solid var(--outline-strong); background: var(--surface); color: var(--primary); border-radius: 999px; padding: 6px 12px; font: 600 .8rem var(--font); cursor: pointer; text-align: start; }
.va-chip:hover { background: var(--gold-soft); border-color: var(--gold); text-decoration: none; }
.va-chip-cta { background: var(--gold); border-color: var(--gold); color: #2B1E00; }
.va-cta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.va-cta-row .va-chip { text-decoration: none; display: inline-block; }
.va-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: var(--surface); }
.va-form textarea { flex: 1; resize: none; border: 1.5px solid var(--outline-strong); border-radius: 14px; padding: 10px 12px; font: 400 .95rem var(--font); max-height: 140px; }
.va-form textarea:focus { outline: none; border-color: var(--primary); }
.va-send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.va-form.busy .va-send { opacity: .5; pointer-events: none; }
.va-note { margin: 0; padding: 0 14px 10px; font-size: .72rem; color: var(--muted); background: var(--surface); display: flex; gap: 6px; align-items: center; }
.va-note .material-symbols-rounded { font-size: 15px; color: var(--gold-ink); }
@media (max-width: 560px) {
  .va { inset-inline-end: 12px; bottom: 12px; }
  .va-fab-label { display: none; }
  .va-fab { padding: 0 7px; }
  .va-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; }
}

/* AI badge used across the site */
.ai-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: linear-gradient(90deg, #FFF3D1, #EAF5DE); color: var(--gold-ink); font-weight: 800; font-size: .72rem; letter-spacing: .02em; white-space: nowrap; }
.ai-pill .material-symbols-rounded { font-size: 15px; }

/* ================= Guide card (step by step) ================= */
.guide-card { border: 1px solid #E8D9A6; background: linear-gradient(135deg, #FFFBEF, #F4FAEE); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; }
.guide-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.guide-head .va-avatar { width: 44px; height: 44px; box-shadow: var(--shadow-1); }
.guide-head h3 { margin: 0; }
.guide-progress { height: 8px; border-radius: 99px; background: #E9EEF3; overflow: hidden; margin: 12px 0 10px; }
.guide-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--green)); border-radius: 99px; box-shadow: 0 0 12px rgba(246, 185, 43, .5); transition: width .4s var(--ease); }
.guide-next { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.guide-next p { margin: 0; }
.guide-steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.guide-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.guide-steps .st { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 16px; }
.st-done { background: var(--green-soft); color: var(--green-ink); }
.st-todo { background: var(--gold-soft); color: var(--gold-ink); }
.st-check { background: var(--blue-soft); color: var(--blue-ink); }
.guide-card details summary { cursor: pointer; font-weight: 700; color: var(--primary); margin-top: 8px; }
.w-0 { width: 0%; } .w-12 { width: 12.5%; } .w-25 { width: 25%; } .w-37 { width: 37.5%; } .w-50 { width: 50%; } .w-62 { width: 62.5%; } .w-75 { width: 75%; } .w-87 { width: 87.5%; } .w-100 { width: 100%; }

/* ================= AI documents ================= */
.dropzone { display: block; border: 2px dashed var(--outline-strong); border-radius: 18px; padding: 28px; text-align: center; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone { transition: border-color .2s, background .2s, box-shadow .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: var(--gold-soft); box-shadow: var(--glow-gold); }
.dropzone .material-symbols-rounded { font-size: 44px; color: var(--gold-ink); }
.dropzone input[type=file] { display: none; }
.dropzone .file-name { font-weight: 700; margin-top: 6px; }
.doc-processing { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(21, 76, 117, .25); border-top-color: var(--blue-ink); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.review-row td { vertical-align: top; }
.review-row select { min-width: 190px; }
.kv-mini { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.kv-mini b { color: var(--ink); font-weight: 600; }

/* ================= Landing AI section ================= */
.ai-section { background: radial-gradient(800px 400px at 90% 10%, rgba(246, 185, 43, .16), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(142, 201, 245, .2), transparent 60%), #1B2838; color: #fff; }
.ai-section h2 { color: #fff; }
.ai-section .section-head p { color: #C7D2DE; }
.ai-section .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.ai-section .card h3 { color: #fff; }
.ai-section .card p { color: #C7D2DE; }
.ai-section .eyebrow { background: rgba(246, 185, 43, .18); color: var(--gold); }
.ai-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } }
.chat-demo { background: #fff; color: var(--ink); border-radius: 22px; padding: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.chat-demo .va-msg { max-width: 92%; }
.chat-demo .va-log { background: transparent; padding: 10px 0 0; }
.chat-demo .va-head { border-radius: 14px; }
.big-num { font-size: 1.5rem; color: var(--primary); }
.greet { font-size: 1.05rem; color: var(--muted); }
.greet b { color: var(--primary); }
.grow { flex: 1; min-width: 0; }

@media (max-width: 960px) { .ai-pill.hide-sm { display: none; } }
.lead-ai { color: #C7D2DE; font-size: 1.1rem; }
.hero-ai { margin-inline-start: 6px; vertical-align: top; margin-top: 6px; }

.review-row td:last-child { width: 46%; }
.review-row select { min-width: 0; width: 100%; }

/* ================= Articles ================= */
.maxw-880 { max-width: 880px; }
.pt-sm { padding-top: 36px; }
.center-flex { justify-content: center; }
.art-hero { background: radial-gradient(700px 300px at 90% -20%, rgba(246, 185, 43, .18), transparent 60%), radial-gradient(600px 300px at 0% 120%, rgba(125, 181, 72, .14), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--outline); background: var(--surface); color: var(--primary); font-weight: 600; font-size: .85rem; text-decoration: none !important; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.tag:hover { border-color: var(--gold); background: var(--gold-soft); transform: translateY(-1px); }
.tag.active { background: linear-gradient(135deg, var(--gold-soft), var(--green-soft)); border-color: rgba(246, 185, 43, .5); }

.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.art-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--outline); overflow: hidden; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: rgba(246, 185, 43, .4); }
.art-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--dark-1), var(--dark-2)); overflow: hidden; }
.art-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.art-card:hover .art-cover img { transform: scale(1.04); }
.art-badge { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(11, 18, 32, .72); color: #fff; font-size: .75rem; font-weight: 700; backdrop-filter: blur(6px); }
.art-badge .material-symbols-rounded { font-size: 16px; color: var(--gold); }
.art-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.art-meta { font-size: .78rem; color: var(--muted); font-weight: 600; }
.art-title { font-size: 1.08rem; line-height: 1.35; color: var(--primary); }
.art-excerpt { color: var(--muted); font-size: .92rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .88rem; color: var(--blue-ink); }
.art-more .material-symbols-rounded { font-size: 18px; transition: transform .2s; }
.art-card:hover .art-more .material-symbols-rounded { transform: translateX(3px); }
[dir="rtl"] .art-more .material-symbols-rounded { transform: scaleX(-1); }
.art-lead { grid-column: 1 / -1; flex-direction: row; }
.art-lead .art-cover { flex: 1.25; aspect-ratio: auto; min-height: 340px; }
.art-lead .art-body { flex: 1; padding: 30px 32px; justify-content: center; }
.art-lead .art-title { font-size: 1.6rem; }
.art-lead .art-excerpt { -webkit-line-clamp: 4; line-clamp: 4; font-size: 1rem; }
@media (max-width: 960px) { .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .art-lead { flex-direction: column; } .art-lead .art-cover { min-height: 0; aspect-ratio: 16 / 9; } .art-lead .art-body { padding: 20px; } .art-lead .art-title { font-size: 1.25rem; } }
@media (max-width: 640px) { .art-grid { grid-template-columns: 1fr; } }

.art-head { padding: 48px 0 26px; background: radial-gradient(700px 300px at 90% -20%, rgba(246, 185, 43, .16), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.art-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.18; }
.art-lede { font-size: 1.12rem; color: var(--muted); margin-bottom: 16px; }
.art-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.art-byline > span { display: inline-flex; align-items: center; gap: 6px; }
.art-byline .material-symbols-rounded { font-size: 18px; }
.art-figure { margin: 8px 0 28px; }
.art-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-3); display: block; }
.art-figure figcaption { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.art-prose { font-size: 1.07rem; line-height: 1.8; }
.art-prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.art-prose h3 { font-size: 1.18rem; margin-top: 1.4em; }
.art-prose blockquote { margin: 1.2em 0; padding: 14px 18px; border-radius: 14px; background: linear-gradient(135deg, var(--gold-soft), var(--green-soft)); color: var(--ink); }
.art-prose blockquote p:last-child { margin-bottom: 0; }
.art-prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
.art-prose th, .art-prose td { padding: 10px 12px; border: 1px solid var(--outline); text-align: start; }
.art-prose th { background: var(--surface-2); }
.art-video { margin: 34px 0 10px; }
.art-video h2 { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; }
.art-video h2 .material-symbols-rounded { color: var(--gold-ink); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-3); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.art-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 16px 18px; border-radius: 16px; background: var(--blue-soft); color: var(--blue-ink); font-size: .9rem; }
.art-note p { margin: 0; }
.art-grid-3 .art-card:first-child { grid-column: auto; }

/* latest articles on the landing page */
.hx-arts .art-grid { margin-top: 8px; }
.art-admin { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 1100px) { .art-admin { grid-template-columns: 1fr; } }
.art-side h3 { font-size: 1rem; }
.radius { border-radius: 12px; display: block; height: auto; }
img.thumb { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; display: block; }
