/* WordPress Chennai theme: blue & yellow
   Plus Jakarta Sans + Instrument Serif + JetBrains Mono. Dark by default, light on toggle. */
:root {
  --blue: #2f5bff;
  --blue-2: #5b8cff;
  --blue-3: #a8c0ff;
  --navy: #0a1a5c;
  --sun: #ffd60a;
  --sun-2: #ffb800;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 28px;
  --r-sm: 16px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --bg: #050a1f;
  --bg-2: #0a1336;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .1);
  --text: #eef2ff;
  --muted: #93a0c9;
  --glass: rgba(10, 19, 54, .62);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f7ff;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef2ff;
  --line: rgba(10, 26, 92, .1);
  --text: #0a1233;
  --muted: #59648a;
  --glass: rgba(255, 255, 255, .72);
  --shadow: 0 30px 70px -34px rgba(10, 26, 92, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.03rem/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .4s, color .4s; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.04; letter-spacing: -.045em; font-weight: 800; }
h2 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
h3 { font-size: 1.35rem; letter-spacing: -.025em; line-height: 1.2; }
p { margin: 0 0 1em; }
em.s, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--sun); color: var(--navy); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 200; background: var(--sun); color: var(--navy); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 10px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.03em; font-size: 1.05rem; white-space: nowrap; }
.logo svg { width: 38px; height: 38px; flex: none; transition: transform .6s var(--ease); }
.logo:hover svg { transform: rotate(-20deg); }
.logo b { color: var(--sun); font-weight: 800; }
:root[data-theme="light"] .logo b { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn { --mx: 0px; --my: 0px; position: relative; display: inline-flex; align-items: center; gap: .55em; padding: .95em 1.5em; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: .98rem; letter-spacing: -.01em; text-decoration: none; cursor: pointer; transform: translate(var(--mx), var(--my)); transition: transform .25s var(--ease), background .2s, box-shadow .25s, color .2s; white-space: nowrap; }
.btn-sun { background: var(--sun); color: var(--navy); box-shadow: 0 14px 34px -14px rgba(255, 214, 10, .8); }
.btn-sun:hover { background: #ffe24d; box-shadow: 0 18px 44px -14px rgba(255, 214, 10, .95); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 14px 34px -14px rgba(47, 91, 255, .9); }
.btn-blue:hover { background: #2448e0; }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--blue-2); }
.btn-sm { padding: .6em 1.05em; font-size: .88rem; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.kbd { font: 600 .72rem var(--mono); padding: 3px 7px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }

/* ---------- Floating nav ---------- */
.nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 90; width: min(1100px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: var(--shadow); transition: top .35s var(--ease), background .3s; }
.nav.is-hidden { top: -90px; }
.nav-links { display: flex; gap: 2px; margin: 0 auto; list-style: none; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: var(--surface-2); }
.nav-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s, transform .2s; }
.icon-btn:hover { border-color: var(--blue-2); transform: rotate(-12deg); }
.icon-btn svg { width: 18px; height: 18px; }
.search-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; font-size: .88rem; }
.search-btn:hover { border-color: var(--blue-2); color: var(--text); }
.theme-dark-only { display: block; } .theme-light-only { display: none; }
:root[data-theme="light"] .theme-dark-only { display: none; }
:root[data-theme="light"] .theme-light-only { display: block; }
.menu-btn { display: none; }
@media (max-width: 1020px) { .nav-links, .search-btn .label { display: none; } .menu-btn { display: grid; } }
@media (max-width: 520px) { .nav .btn-sun { display: none; } .search-btn { display: none; } }

/* ---------- Hero ---------- */
.hero { --cx: 70%; --cy: 30%; position: relative; min-height: min(100svh, 1000px); padding: 140px 0 0; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px circle at var(--cx) var(--cy), rgba(47, 91, 255, .28), transparent 65%); transition: background .1s; pointer-events: none; }
.aurora { position: absolute; z-index: -3; inset: -20% -10% auto; height: 120%; filter: blur(70px); opacity: .75; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: 48%; top: 0; background: #2f5bff; }
.aurora i:nth-child(2) { width: 30vw; height: 30vw; left: 72%; top: 18%; background: #ffd60a; opacity: .55; animation-duration: 22s; }
.aurora i:nth-child(3) { width: 38vw; height: 38vw; left: -6%; top: 30%; background: #1b2fa8; animation-duration: 26s; }
:root[data-theme="light"] .aurora { opacity: .35; }
:root[data-theme="light"] .aurora i { mix-blend-mode: multiply; }
@keyframes drift { to { transform: translate(-8%, 10%) scale(1.12); } }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: 26px; transition: border-color .2s; }
.badge:hover { border-color: var(--sun); color: var(--text); }
.badge span { background: var(--sun); color: var(--navy); padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; }
.hero h1 { font-size: clamp(3.1rem, 8.4vw, 7.6rem); line-height: .94; letter-spacing: -.06em; margin-bottom: 28px; }
.hero h1 .s { color: var(--sun); font-size: 1.06em; letter-spacing: -.02em; }
:root[data-theme="light"] .hero h1 .s { color: var(--blue); }
.roll { display: inline-grid; vertical-align: top; overflow: hidden; height: 1.08em; line-height: 1.08; padding-right: .04em; }
.roll span { grid-area: 1 / 1; transition: transform .7s var(--ease), opacity .7s; white-space: nowrap; }
.roll span.out { transform: translateY(-105%); opacity: 0; }
.roll span.in { transform: translateY(105%); opacity: 0; }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta div { border-left: 2px solid var(--sun); padding-left: 14px; }
.hero-meta b { display: block; font-size: 1.6rem; letter-spacing: -.04em; line-height: 1.1; }
.hero-meta span { color: var(--muted); font-size: .85rem; }

/* Terminal */
.term { border-radius: 22px; background: rgba(4, 9, 30, .82); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 100px -40px rgba(47, 91, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .08); backdrop-filter: blur(10px); overflow: hidden; color: #dfe6ff; transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); transition: transform .6s var(--ease); }
.term:hover, .term:focus-within { transform: none; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 500 .78rem var(--mono); color: #7f8bb8; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: var(--sun); } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: auto; margin-right: auto; }
.term-body { height: 330px; overflow-y: auto; padding: 16px 18px 6px; font: 400 .86rem/1.7 var(--mono); scrollbar-width: thin; }
.term-body p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.term-body .c { color: #7f8bb8; } .term-body .y { color: var(--sun); } .term-body .b { color: var(--blue-3); } .term-body .g { color: #6ee7a8; }
.term-body a { color: var(--sun); }
.term-input { display: flex; gap: 10px; align-items: center; padding: 10px 18px 16px; font: .86rem var(--mono); }
.term-input label { color: var(--sun); }
.term-input input { flex: 1; background: none; border: 0; outline: 0; color: #fff; font: inherit; caret-color: var(--sun); }
.term-hint { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 16px; }
.term-hint button { font: 500 .74rem var(--mono); padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #b9c4ea; cursor: pointer; }
.term-hint button:hover { border-color: var(--sun); color: var(--sun); }

.skyline { position: relative; margin-top: auto; padding-top: 60px; }
.skyline img { width: 100%; aspect-ratio: 2200 / 540; min-height: 220px; object-fit: cover; object-position: 50% 100%; mask-image: linear-gradient(to bottom, transparent, #000 22%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .term { transform: none; } .hero { padding-top: 120px; } }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 18px; padding: 18px 18px; font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; white-space: nowrap; }
.ticker span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 14px var(--sun); }
.ticker span:nth-child(3n) { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.3rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.sec { padding: clamp(90px, 12vw, 150px) 0; position: relative; }
.sec-head { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 32px; align-items: end; margin-bottom: 56px; }
.sec-head p { color: var(--muted); margin: 0; font-size: 1.08rem; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 .78rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sun); margin-bottom: 18px; }
:root[data-theme="light"] .kicker { color: var(--blue); }
.kicker::before { content: attr(data-n); color: var(--muted); }
.accent { color: var(--sun); }
:root[data-theme="light"] .accent { color: var(--blue); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; position: relative; grid-column: span 2; min-height: 280px; padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s var(--ease), border-color .3s; }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(91, 140, 255, .22), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile:hover { border-color: rgba(91, 140, 255, .45); }
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.tile p { color: var(--muted); margin: 0; }
.tile h3 { font-size: 1.6rem; }
.tile.wide { grid-column: span 4; }
.tile.blue { background: linear-gradient(145deg, var(--blue), #1630b8); border: 0; color: #fff; }
.tile.blue p { color: rgba(255, 255, 255, .8); }
.tile.sun { background: var(--sun); border: 0; color: var(--navy); }
.tile.sun p { color: rgba(10, 26, 92, .78); }
.tile .ico { position: absolute; top: 26px; left: 28px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); }
.tile.blue .ico, .tile.sun .ico { background: rgba(255, 255, 255, .18); }
.tile .ico svg { width: 24px; height: 24px; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile, .tile.wide { grid-column: span 2; } }
@media (min-width: 620px) and (max-width: 960px) { .tile { grid-column: span 1; } }

/* code tile */
.code-mini { position: absolute !important; top: 24px; right: 24px; left: 24px; font: .82rem/1.75 var(--mono); color: var(--muted); background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
:root[data-theme="light"] .code-mini { background: #0a1336; color: #9fb0e6; }
.code-mini .k { color: var(--blue-3); } .code-mini .f { color: var(--sun); } .code-mini .str { color: #6ee7a8; }
.tile.wide { min-height: 360px; }
.blocks { position: absolute !important; top: 26px; right: 26px; display: grid; grid-template-columns: repeat(3, 34px); gap: 6px; }
.blocks i { height: 34px; border-radius: 9px; background: rgba(255, 255, 255, .22); transition: transform .5s var(--ease), background .3s; }
.blocks i:nth-child(2), .blocks i:nth-child(6) { background: var(--sun); }
.tile:hover .blocks i:nth-child(odd) { transform: translateY(-8px) rotate(8deg); }
.tile:hover .blocks i:nth-child(even) { transform: translateY(6px) rotate(-6deg); }
.steam { position: absolute !important; top: 26px; right: 30px; width: 60px; }
.steam path { stroke-dasharray: 30; animation: steam 2.6s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: .4s; } .steam path:nth-child(3) { animation-delay: .8s; }
@keyframes steam { 0% { stroke-dashoffset: 30; opacity: 0; } 40% { opacity: 1; } 100% { stroke-dashoffset: -30; opacity: 0; } }

/* Roadmap: horizontal drag track */
.track-wrap { position: relative; }
.track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(16px, calc((100vw - var(--wrap)) / 2)) 30px; scrollbar-width: none; cursor: grab; }
.track::-webkit-scrollbar { display: none; }
.track.dragging { cursor: grabbing; scroll-snap-type: none; }
.track.dragging * { user-select: none; pointer-events: none; }
.step { flex: 0 0 min(360px, 82vw); scroll-snap-align: start; border-radius: var(--r); padding: 28px; background: var(--surface); border: 1px solid var(--line); min-height: 300px; display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-6px); border-color: var(--blue-2); }
.step .num { font: 800 4.4rem/1 var(--font); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--muted); margin-bottom: auto; }
.step.done .num { -webkit-text-stroke: 0; color: var(--sun); }
.step.now .num { -webkit-text-stroke: 1.5px var(--sun); }
.step h3 { margin-top: 30px; }
.step p { color: var(--muted); margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 4px 11px; border-radius: 999px; font: 600 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); margin-bottom: 12px; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.step.done .pill { color: #6ee7a8; border-color: rgba(110, 231, 168, .35); }
.step.now .pill { color: var(--sun); border-color: rgba(255, 214, 10, .4); }
.step.now .pill::before { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(255, 214, 10, .2); } }
.track-ctrl { display: flex; align-items: center; gap: 14px; }
.track-progress { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.track-progress i { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--blue), var(--sun)); border-radius: 3px; transition: width .2s; }

/* Meet: vote map */
.meet { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; }
@media (max-width: 960px) { .meet { grid-template-columns: 1fr; } }
.panel { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); padding: 28px; position: relative; overflow: hidden; }
.panel h3 { font-size: 1.5rem; }
.panel > p { color: var(--muted); }
.map { width: 100%; height: auto; margin-top: 8px; }
.map .sea { fill: url(#seaGrad); }
.map .land { fill: var(--surface-2); stroke: var(--line); }
.zone { cursor: pointer; }
.zone circle.dot { fill: var(--blue); transition: r .35s var(--ease), fill .25s; }
.zone circle.halo { fill: var(--blue); opacity: .18; transition: r .35s var(--ease), opacity .25s; }
.zone text { font: 700 13px var(--font); fill: var(--text); pointer-events: none; }
.zone text.sub { font: 500 10.5px var(--mono); fill: var(--muted); }
.zone:hover circle.dot, .zone:focus circle.dot { fill: var(--blue-2); }
.zone:hover circle.halo, .zone:focus circle.halo { opacity: .3; }
.zone.voted circle.dot { fill: var(--sun); }
.zone.voted circle.halo { fill: var(--sun); opacity: .3; }
.zone:focus { outline: none; }
.zone:focus-visible circle.halo { stroke: var(--sun); stroke-width: 2; }
.bars { display: grid; gap: 12px; margin: 18px 0 8px; }
.bar { display: grid; grid-template-columns: 110px 1fr 44px; gap: 12px; align-items: center; font-weight: 600; font-size: .92rem; }
.bar-track { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transition: width .8s var(--ease); }
.bar.mine .bar-track i { background: linear-gradient(90deg, var(--sun-2), var(--sun)); }
.bar output { text-align: right; font: 600 .85rem var(--mono); color: var(--muted); }
.note { font: 500 .78rem var(--mono); color: var(--muted); margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font: 600 .86rem var(--font); cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s; }
.chip:hover { transform: translateY(-2px); border-color: var(--blue-2); }
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.picked { margin-top: 18px; font-weight: 600; min-height: 1.6em; }
.picked .accent { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.25em; }

/* Organize: role explorer */
.roles { display: grid; grid-template-columns: 360px 1fr; gap: 24px; }
@media (max-width: 900px) { .roles { grid-template-columns: 1fr; } }
.role-tabs { display: grid; gap: 8px; align-content: start; }
.role-tab { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; font-weight: 700; font-size: 1rem; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.role-tab span { font: 600 .74rem var(--mono); color: var(--muted); margin-left: auto; }
.role-tab:hover { transform: translateX(4px); border-color: var(--blue-2); }
.role-tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.role-tab[aria-selected="true"] span { color: rgba(255, 255, 255, .75); }
.role-tab i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); font-style: normal; }
.role-tab[aria-selected="true"] i { background: rgba(255, 255, 255, .2); }
.role-panel { border-radius: var(--r); padding: clamp(28px, 4vw, 48px); background: radial-gradient(600px 300px at 100% 0%, rgba(255, 214, 10, .16), transparent 60%), var(--surface); border: 1px solid var(--line); min-height: 420px; display: flex; flex-direction: column; }
.role-panel.swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(12px); } }
.role-panel h3 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; }
.role-panel .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.role-panel ul { list-style: none; padding: 0; margin: 10px 0 28px; display: grid; gap: 10px; }
.role-panel li { display: flex; gap: 12px; align-items: baseline; }
.role-panel li::before { content: "→"; color: var(--sun); font-weight: 800; }
:root[data-theme="light"] .role-panel li::before { color: var(--blue); }
.role-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); }
.role-foot .time { font: 600 .85rem var(--mono); color: var(--muted); }

/* Sponsors */
.support { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .support { grid-template-columns: 1fr; } }
.offer { position: relative; border-radius: var(--r); padding: clamp(28px, 4vw, 44px); min-height: 420px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.offer.venue { background: linear-gradient(150deg, var(--blue), #1630b8); color: #fff; }
.offer.snacks { background: var(--sun); color: var(--navy); }
.offer .big { position: absolute; right: -20px; bottom: -40px; font: 800 13rem/1 var(--font); letter-spacing: -.08em; opacity: .12; z-index: -1; transition: transform .8s var(--ease); }
.offer:hover .big { transform: translate(-20px, -14px) rotate(-6deg); }
.offer h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -.045em; }
.offer ul { list-style: none; padding: 0; margin: 8px 0 30px; display: grid; gap: 10px; }
.offer li { display: flex; gap: 10px; }
.offer li::before { content: "✓"; font-weight: 800; }
.offer .btn { margin-top: auto; align-self: flex-start; }
.offer.venue .btn { background: #fff; color: var(--navy); }
.offer.snacks .btn { background: var(--navy); color: #fff; }
.zero { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; border-radius: var(--r); border: 1px dashed var(--line); padding: 22px 28px; }
.zero strong { font-size: 1.25rem; letter-spacing: -.03em; }
.zero span { color: var(--muted); }

/* Journal */
.posts { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr; } }
.post { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .3s; }
.post:hover { transform: translateY(-6px); border-color: var(--blue-2); }
.post-art { height: 200px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--blue), var(--navy)); }
.post:first-child .post-art { height: 260px; }
.post-art svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease); }
.post:hover .post-art svg { transform: scale(1.08) rotate(-2deg); }
.post-art.y { background: linear-gradient(135deg, var(--sun), var(--sun-2)); }
.post-art.n { background: linear-gradient(135deg, #1b2fa8, #050a1f); }
.post-body { padding: 24px; }
.post-meta { font: 500 .76rem var(--mono); color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em; }
.post h3 { font-size: 1.3rem; margin-bottom: 8px; }
.post p { color: var(--muted); margin: 0; font-size: .95rem; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 400; font-size: 1.4rem; transition: transform .35s var(--ease), background .2s, color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--sun); color: var(--navy); border-color: var(--sun); }
.faq details p { color: var(--muted); padding: 0 60px 26px 0; margin: 0; font-size: 1.05rem; }

/* Join CTA */
.join { position: relative; border-radius: 40px; overflow: hidden; padding: clamp(40px, 7vw, 90px); background: radial-gradient(800px 400px at 90% 10%, rgba(255, 255, 255, .25), transparent 60%), linear-gradient(130deg, var(--blue) 0%, #1630b8 55%, #0a1a5c 100%); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; isolation: isolate; }
.join h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.join p { color: rgba(255, 255, 255, .8); font-size: 1.1rem; max-width: 460px; }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; } }
.mini-card { position: relative; aspect-ratio: 1200 / 627; border-radius: 18px; background: linear-gradient(135deg, #06103d, #1638d8); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); padding: 6%; overflow: hidden; transform: rotate(3deg); transition: transform .6s var(--ease); }
.join:hover .mini-card { transform: rotate(0) scale(1.03); }
.mini-card::after { content: ""; position: absolute; right: 9%; top: 18%; width: 34%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--sun); background: linear-gradient(135deg, var(--blue), var(--navy)); box-shadow: 0 0 0 18px rgba(255, 255, 255, .05), 0 0 0 40px rgba(255, 255, 255, .03); }
.mini-card b { display: block; font-size: clamp(1.1rem, 2.4vw, 1.9rem); letter-spacing: -.04em; margin-top: 18%; }
.mini-card em { font-family: var(--serif); color: var(--sun); font-size: clamp(.8rem, 1.5vw, 1.15rem); }
.mini-card small { display: inline-block; margin-top: 10px; font: 600 clamp(.55rem, 1vw, .72rem) var(--mono); padding: 4px 10px; border-radius: 999px; background: var(--sun); color: var(--navy); }

/* Footer */
.foot { padding: 80px 0 30px; border-top: 1px solid var(--line); margin-top: 120px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 60px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot h4 { font: 600 .76rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: var(--text); opacity: .85; }
.foot a:hover { opacity: 1; color: var(--sun); }
.foot p { color: var(--muted); max-width: 320px; margin-top: 16px; }
.wordmark { display: flex; justify-content: space-between; font-weight: 800; font-size: clamp(3.4rem, 15.5vw, 15rem); line-height: .8; letter-spacing: -.07em; user-select: none; margin: 0 0 30px; overflow: hidden; }
.wordmark span { display: inline-block; transition: transform .5s var(--ease), color .3s; background: linear-gradient(180deg, var(--text), transparent 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark span:hover, .wordmark span.lift { transform: translateY(-14%); color: var(--sun); -webkit-text-fill-color: var(--sun); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.foot-bottom code { font-family: var(--mono); color: var(--sun); }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); opacity: 1; }
.socials a:hover { border-color: var(--sun); }
.socials svg { width: 17px; height: 17px; }

/* ---------- Command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 150; display: grid; place-items: start center; padding-top: 14vh; background: rgba(2, 6, 22, .55); backdrop-filter: blur(6px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.palette-box { width: min(620px, calc(100% - 24px)); border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .7); overflow: hidden; animation: pop .25s var(--ease); }
@keyframes pop { from { transform: translateY(-10px) scale(.98); opacity: 0; } }
.palette-box input { width: 100%; padding: 20px 22px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: 500 1.05rem var(--font); outline: 0; }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.palette-list li button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 0; border-radius: 12px; background: none; cursor: pointer; text-align: left; font-weight: 600; }
.palette-list li button span { margin-left: auto; font: .74rem var(--mono); color: var(--muted); }
.palette-list li button i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); font-style: normal; font-size: .9rem; }
.palette-list li.active button { background: var(--surface-2); }
.palette-list li.active button i { background: var(--sun); color: var(--navy); }
.palette-foot { display: flex; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--line); font: .74rem var(--mono); color: var(--muted); }

/* ---------- Drawer (apply form) ---------- */
.drawer { position: fixed; inset: 0; z-index: 140; display: flex; justify-content: flex-end; background: rgba(2, 6, 22, .5); backdrop-filter: blur(4px); animation: fade .25s; }
.drawer-box { width: min(520px, 100%); height: 100%; overflow-y: auto; background: var(--bg-2); border-left: 1px solid var(--line); padding: 32px; animation: slide .4s var(--ease); }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 24px; }
.drawer-head h3 { font-size: 2rem; letter-spacing: -.045em; }

/* Forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.field label small { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(47, 91, 255, .2); }
.field select option { background: var(--bg-2); color: var(--text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; margin: 8px 0 22px; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.check a { color: var(--sun); }
:root[data-theme="light"] .check a { color: var(--blue); }
.form-note { margin-top: 14px; font-weight: 600; color: var(--sun); min-height: 1.4em; }
:root[data-theme="light"] .form-note { color: var(--blue); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; visibility: hidden; transform: translate(-50%, calc(100% + 40px)); z-index: 160; padding: 12px 18px; border-radius: 999px; background: var(--sun); color: var(--navy); font-weight: 700; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); transition: transform .4s var(--ease); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* Reveal */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; background: linear-gradient(90deg, var(--blue), var(--sun)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Inner pages ---------- */
.page-top { padding: 150px 0 60px; position: relative; overflow: hidden; isolation: isolate; }
.page-top h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); letter-spacing: -.06em; line-height: .95; }
.page-top p { color: var(--muted); font-size: 1.15rem; max-width: 620px; }
.crumb { font: 500 .8rem var(--mono); color: var(--muted); margin-bottom: 22px; }
.crumb a { color: var(--sun); text-decoration: none; }
.article { max-width: 720px; font-size: 1.12rem; }
.article h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-top: 1.6em; }
.article p, .article li { color: color-mix(in srgb, var(--text) 82%, transparent); }
.article ol { padding-left: 1.2em; } .article li { margin-bottom: .6em; }
.article blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--sun); font: italic 400 1.7rem/1.3 var(--serif); color: var(--text); }

/* Register page */
.reg { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 32px; align-items: start; }
@media (max-width: 1000px) { .reg { grid-template-columns: 1fr; } .stage { order: -1; } }
.form-card { border-radius: var(--r); padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); }
.form-card h2 { font-size: 2rem; }
.hint { color: var(--muted); margin-top: -6px; margin-bottom: 24px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-grid label { cursor: pointer; margin: 0; font-weight: 500; }
.chip-grid input { position: absolute; opacity: 0; pointer-events: none; }
.chip-grid span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font: 600 .82rem var(--mono); transition: .2s; }
.chip-grid input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-grid input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 2px; }
.stage { position: sticky; top: 100px; }
.stage-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .85rem; cursor: pointer; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.seg button i { width: 12px; height: 12px; border-radius: 50%; }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
#member-card { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 627; border-radius: 18px; background: var(--navy); box-shadow: 0 40px 90px -36px rgba(47, 91, 255, .7); transition: transform .5s var(--ease); }
.stage:hover #member-card { transform: perspective(1200px) rotateX(2deg) rotateY(-3deg); }
.kural-note { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.kural-note p { margin: 0; color: var(--muted); font-size: .92rem; }
.link-button { background: none; border: 0; padding: 0; color: var(--sun); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
:root[data-theme="light"] .link-button { color: var(--blue); }
.card-facts { list-style: none; padding: 0; margin: 14px 0 0; color: var(--muted); font-size: .88rem; display: grid; gap: 4px; }
.card-facts li::before { content: "✓ "; color: var(--sun); font-weight: 700; }
.reg-done code { font-family: var(--mono); background: var(--surface-2); padding: 2px 8px; border-radius: 8px; color: var(--sun); }
.reg-done h3 { margin-top: 24px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-linkedin { background: #0a66c2; color: #fff; }
.btn-linkedin:hover { background: #0958a8; }
.btn-linkedin svg { width: 18px; height: 18px; }
#share-note code { font-family: var(--mono); font-size: .8rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* Thirukkural (Tamil) */
.kural { margin: 16px 0 0; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: end; padding: clamp(28px, 4vw, 48px); border-radius: var(--r); border: 1px solid var(--line); background: radial-gradient(500px 260px at 0% 0%, rgba(255, 214, 10, .14), transparent 60%), var(--surface); }
.kural blockquote { margin: 0; font: 600 clamp(1.05rem, 1.9vw, 1.7rem)/1.7 "Noto Serif Tamil", serif; letter-spacing: 0; }
.kural { grid-template-columns: 1fr; gap: 22px; }
.kural figcaption { max-width: 680px; }
.kural figcaption { color: var(--muted); font-size: 1rem; }
.kural figcaption span { display: block; font: 600 .76rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sun); margin-bottom: 10px; }
:root[data-theme="light"] .kural figcaption span { color: var(--blue); }
@media (max-width: 860px) { .kural { grid-template-columns: 1fr; gap: 20px; } }
.term-body .ta { font-family: "Noto Serif Tamil", serif; color: #fff; }

/* Registration: Members page consent */
.consent-box { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 6px; margin: 4px 0 18px; background: var(--surface-2); }
.consent-box legend { font: 600 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sun); padding: 0 8px; }
:root[data-theme="light"] .consent-box legend { color: var(--blue); }
.consent-box .check { margin: 6px 0 12px; }
.consent-box .check.sub { margin-left: 30px; color: var(--muted); }
.consent-box .check input:disabled + span { opacity: .5; }
.consent-hint { font-size: .85rem; color: var(--muted); margin: 0 0 12px; }
.listing-note { padding: 12px 16px; border-radius: 14px; background: var(--surface-2); font-weight: 600; font-size: .95rem; }
.listing-note:empty { display: none; }
.listing-note a { color: var(--sun); }
:root[data-theme="light"] .listing-note a { color: var(--blue); }

/* Members page */
.members-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.count { display: flex; align-items: baseline; gap: 12px; }
.count b { font-size: clamp(3rem, 7vw, 5rem); letter-spacing: -.06em; line-height: 1; color: var(--sun); }
:root[data-theme="light"] .count b { color: var(--blue); }
.count span { color: var(--muted); font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.search { flex: 1 1 280px; position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search input { width: 100%; padding: 14px 16px 14px 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.search input:focus { outline: 0; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(47, 91, 255, .2); }
.toolbar select { padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.toolbar select option { background: var(--bg-2); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.member { min-height: 0; justify-content: flex-start; gap: 0; padding: 26px; grid-column: auto; animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.member .avatar { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; letter-spacing: -.04em; color: var(--sun); background: linear-gradient(135deg, var(--blue), var(--navy)); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--sun); margin-bottom: 18px; overflow: hidden; flex: none; }
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.3rem; margin-bottom: 4px; }
.member .role { color: var(--muted); font-weight: 600; font-size: .92rem; margin: 0; }
.member .co { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--text); margin: 2px 0 0; }
.member .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 18px; }
.member .tags span { font: 600 .72rem var(--mono); padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.member .meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 500 .74rem var(--mono); color: var(--muted); }
.member .meta a { color: var(--sun); text-decoration: none; }
:root[data-theme="light"] .member .meta a { color: var(--blue); }
.member .flag { position: absolute; top: 22px; right: 22px; font: 700 .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.member.me { border-color: var(--sun); background: radial-gradient(400px 200px at 100% 0%, rgba(255, 214, 10, .14), transparent 60%), var(--surface); }
.member.me .flag { background: var(--sun); color: var(--navy); border-color: var(--sun); }
.member .remove { margin-top: 14px; align-self: flex-start; background: none; border: 0; padding: 0; color: var(--muted); font-weight: 600; font-size: .85rem; text-decoration: underline; cursor: pointer; }
.member .remove:hover { color: #ff7a7a; }
.member.invite { border-style: dashed; justify-content: center; align-items: center; text-align: center; text-decoration: none; min-height: 300px; }
.member.invite .avatar { color: var(--navy); background: var(--sun); font-size: 2rem; }
.member.invite p { color: var(--muted); margin: 0 0 18px; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
.filter-chips .chip[data-tag=""][aria-pressed="true"]::before { content: ""; }

/* ======================================================================
   WordPress block markup
   ====================================================================== */
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > *, main.wp-block-group, .nav > * { margin-block: 0; }
.kicker .n { color: var(--muted); }
.sec-head > .wp-block-group > * + * { margin-top: 0; }
.sec-head h2, .page-top h1 { margin-bottom: .5em; }
.wp-block-buttons.hero-actions { gap: 12px; }

/* Header navigation block */
.nav .wp-block-navigation { margin: 0 auto; font-size: .92rem; }
.nav .wp-block-navigation__container { gap: 2px; }
.nav .wp-block-navigation-item__content { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .2s, background .2s; }
.nav .wp-block-navigation-item__content:hover, .nav .wp-block-navigation-item__content.is-active, .nav .current-menu-item > .wp-block-navigation-item__content { color: var(--text); background: var(--surface-2); }
@media (max-width: 1020px) { .nav .wp-block-navigation { display: none; } }
.nav .logo { margin-right: 6px; }

/* Journal (query loop) */
.posts { list-style: none; margin: 0; padding: 0; display: grid !important; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.posts.is-archive { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr; } }
.posts > li { margin: 0; }
.post { position: relative; height: 100%; }
.post .wp-block-post-title { font-size: 1.3rem; margin: 0 0 8px; }
.post .wp-block-post-title a { text-decoration: none; color: inherit; }
.post .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.post .wp-block-post-excerpt p { color: var(--muted); margin: 0; font-size: .95rem; }
.post .wp-block-post-excerpt__more-text { display: none; }
.post .post-img { margin: 0; height: 200px; overflow: hidden; }
.post .post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post-img img { transform: scale(1.06); }
.post:has(.post-img) .post-art { display: none; }
.posts > li:nth-child(3n+2) .post-art { background: linear-gradient(135deg, var(--sun), var(--sun-2)); }
.posts > li:nth-child(3n+2) .post-art circle, .posts > li:nth-child(3n+2) .post-art path { stroke: var(--navy); }
.posts > li:nth-child(3n) .post-art { background: linear-gradient(135deg, #1b2fa8, #050a1f); }
.posts:not(.is-archive) > li:first-child .post-art { height: 260px; }
.wp-block-query-pagination { margin-top: 40px; gap: 10px; font-weight: 700; }
.wp-block-query-pagination a { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); }

/* Article content */
.article { margin-inline: 0; }
.article > * { max-width: 720px; }
.article a { color: var(--sun); }
:root[data-theme="light"] .article a { color: var(--blue); }
.article img { border-radius: 18px; height: auto; }
.article .wp-block-image { margin: 2em 0; }
.article .wp-block-quote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--sun); }
.article .wp-block-quote p { font: italic 400 1.7rem/1.3 var(--serif); color: var(--text); }
.article pre, .article code { font-family: var(--mono); }
.article pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px; overflow-x: auto; }
.page-top .wp-block-post-date, .page-top .meta-line { font: 500 .8rem var(--mono); color: var(--muted); margin-bottom: 22px; text-transform: uppercase; letter-spacing: .06em; }
.page-top .wp-block-post-excerpt p, .page-top .wp-block-term-description p { color: var(--muted); font-size: 1.15rem; max-width: 620px; }
.page-top .wp-block-post-excerpt__more-text { display: none; }
.search-form-wrap .wp-block-search__inside-wrapper { max-width: 560px; }
.search-form-wrap input { padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.search-form-wrap .wp-block-search__button { border-radius: 999px; background: var(--sun); color: var(--navy); border: 0; font-weight: 700; padding: 0 20px; margin-left: 8px; }
.honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sec.sec-tight { padding-bottom: 60px; }
.sec.no-top { padding-top: 0; }
.sec.sec-flush { padding-top: 20px; }

/* Kural shuffle */
.kural blockquote, .kural [data-kural-no], .kural [data-kural-meaning] { transition: opacity .28s var(--ease), transform .28s var(--ease); }
.kural.swap blockquote, .kural.swap [data-kural-no], .kural.swap [data-kural-meaning] { opacity: 0; transform: translateY(8px); }
.kural [data-kural-meaning] { display: block; }
.kural .kural-next { display: inline-block; margin-top: 14px; font-size: .95rem; }
.kural figcaption [data-kural-meaning] { font: 400 1rem/1.6 var(--font); letter-spacing: 0; text-transform: none; color: var(--muted); margin: 0; }
.foot-bottom { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.toolbar { margin-bottom: 20px; }
.member-grid { margin-top: 8px; }

/* ======================================================================
   Core blocks used by the editable layout
   ====================================================================== */
.entry-content > *, .wp-block-post-content > * { margin-block: 0; }
h1 em, h2 em, h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--sun); }
:root[data-theme="light"] h1 em, :root[data-theme="light"] h2 em, :root[data-theme="light"] h3 em { color: var(--blue); }
.offer h3 em, .join h2 em { color: inherit; }
.join h2 em { color: var(--sun); }

/* Buttons (core/button styles) */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wp-block-button .wp-block-button__link { --mx: 0px; --my: 0px; display: inline-flex; align-items: center; gap: .55em; padding: .95em 1.5em; border-radius: 999px; border: 1px solid transparent; font: 700 .98rem var(--font); letter-spacing: -.01em; text-decoration: none; transform: translate(var(--mx), var(--my)); transition: transform .25s var(--ease), background .2s, box-shadow .25s, color .2s; background: var(--sun); color: var(--navy); }
.wp-block-button.is-style-sun .wp-block-button__link { background: var(--sun); color: var(--navy); box-shadow: 0 14px 34px -14px rgba(255, 214, 10, .8); }
.wp-block-button.is-style-sun .wp-block-button__link:hover { background: #ffe24d; }
.wp-block-button.is-style-blue .wp-block-button__link { background: var(--blue); color: #fff; box-shadow: 0 14px 34px -14px rgba(47, 91, 255, .9); }
.wp-block-button.is-style-ghost .wp-block-button__link { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: none; }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { border-color: var(--blue-2); }
.hero-actions { margin-bottom: 0; }

/* Offers (core group + list + buttons) */
.offer .kicker { margin-bottom: 18px; }
.offer.venue .kicker { color: #fff; }
.offer.snacks .kicker { color: var(--navy); }
.offer::after { position: absolute; right: -20px; bottom: -40px; font: 800 13rem/1 var(--font); letter-spacing: -.08em; opacity: .12; z-index: -1; transition: transform .8s var(--ease); pointer-events: none; }
.offer.venue::after { content: "Host"; }
.offer.snacks::after { content: "Kaapi"; }
.offer:hover::after { transform: translate(-20px, -14px) rotate(-6deg); }
.offer .wp-block-buttons { margin-top: auto; }
.offer.venue .wp-block-button__link { background: #fff; color: var(--navy); }
.offer.snacks .wp-block-button__link { background: var(--navy); color: #fff; }
.zero p { margin: 0; }

/* Bento tiles built from groups */
.tile > .code-mini, .tile > .blocks, .tile > .steam, .tile > .ico { position: absolute; }
.tile h3 { margin-bottom: .4em; }

/* Join banner */
.join > .wp-block-group > * + * { margin-top: 0; }
.join .wp-block-buttons { margin-top: 10px; }

/* Roles (several panels, one visible) */
.role-panels { display: grid; }
.role-panel[hidden] { display: none !important; }

/* Members count row */
.members-count { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; color: var(--muted); font-weight: 600; }
.members-count b { font-size: 2.4rem; letter-spacing: -.05em; color: var(--sun); line-height: 1; }
:root[data-theme="light"] .members-count b { color: var(--blue); }
.sec.sec-members { padding-top: 40px; }

/* Page top built from blocks */
.page-top .kicker { margin-bottom: 18px; }
.page-top h1 { margin-bottom: .35em; }

/* Footer built from blocks */
.foot { padding: 80px 0 30px; border-top: 1px solid var(--line); margin-top: 120px; }
.foot-grid > .wp-block-group > * + * { margin-top: 0; }
.foot .wp-block-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-bottom p { margin: 0; }
.foot-bottom code { font-family: var(--mono); color: var(--sun); }
/* Footer wordmark: full glyphs visible, room for the hashtag */
.wordmark { font-size: clamp(2.8rem, 12.4vw, 12.5rem); line-height: 1; padding: .08em 0 .04em; overflow: visible; letter-spacing: -.06em; }
.wordmark span { padding-bottom: .02em; }
.wordmark span:first-child { color: transparent; background: linear-gradient(180deg, var(--sun), transparent 130%); -webkit-background-clip: text; background-clip: text; }
.foot .foot-bottom p { max-width: none; }
/* Each letter is painted with background-clip:text, which only fills the letter's own box.
   Pad every box so wide glyphs (W, P, C) never spill outside it, then pull them back together. */
.wordmark { letter-spacing: 0; }
.wordmark span { padding: 0 .07em .04em; margin: 0 -.045em; }
/* Chenn-AI: the last "i" wears an AI sparkle instead of a dot */
.wordmark .ai-i { position: relative; }
.wordmark .ai-i .spark { position: absolute; left: 50%; top: .02em; width: .3em; height: .3em; margin-left: -.15em; fill: var(--sun); filter: drop-shadow(0 0 .08em rgba(255, 214, 10, .7)); animation: twinkle 3.2s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(.78) rotate(45deg); opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .wordmark .ai-i .spark { animation: none; } }
.wordmark .ai-i .spark { top: .07em; }
/* #WPChennAI: "AI" in sunshine, with a sparkle on the I */
.wordmark span.ai { color: transparent; background: linear-gradient(180deg, var(--sun), var(--sun-2) 60%, rgba(255, 184, 0, .35) 130%); -webkit-background-clip: text; background-clip: text; }
.wordmark .ai-end { position: relative; }
.wordmark .ai-end .spark { position: absolute; left: auto; right: -.2em; top: -.02em; width: .26em; height: .26em; margin: 0; fill: var(--sun); filter: drop-shadow(0 0 .08em rgba(255, 214, 10, .75)); animation: twinkle 3.2s ease-in-out infinite; }
.wordmark { font-size: clamp(2.4rem, 10.6vw, 10rem); padding-right: .22em; }

/* Rolling area name: its own fixed-height line; long names scale down instead of reflowing the hero */
.hero h1 .roll { display: block; position: relative; height: 1.04em; overflow: hidden; padding-right: 0; line-height: 1.04; }
.hero h1 .roll span { position: absolute; left: 0; bottom: 0; white-space: nowrap; transform-origin: 0 85%; transform: translateY(0) scale(var(--fit, 1)); transition: transform .7s var(--ease), opacity .7s; }
.hero h1 .roll span::after { content: "."; color: var(--sun); }
:root[data-theme="light"] .hero h1 .roll span::after { color: var(--blue); }
.hero h1 .roll span.out { transform: translateY(-105%) scale(var(--fit, 1)); opacity: 0; }
.hero h1 .roll span.in { transform: translateY(105%) scale(var(--fit, 1)); opacity: 0; }
/* Skyline: evening in dark mode, morning in light mode, crossfading on switch */
.skyline { display: grid; }
.skyline img { grid-area: 1 / 1; transition: opacity .9s var(--ease); }
.skyline .sky-morning { opacity: 0; }
.skyline .sky-evening { opacity: 1; }
:root[data-theme="light"] .skyline .sky-morning { opacity: 1; }
:root[data-theme="light"] .skyline .sky-evening { opacity: 0; }
/* Register page on phones/tablets: the card preview scrolls with the page (no sticky overlap) */
@media (max-width: 1000px) {
  .stage { position: static; top: auto; }
  .kural-note { flex-direction: column; align-items: flex-start; gap: 8px; }
  .share-actions .btn { flex: 1 1 auto; justify-content: center; }
}
.page-top .wp-block-buttons { margin-top: 28px; }
