/* =========================================================
   YOUNG INDIA CABINET — main stylesheet
   Colours taken from the YIC logo (red / black / white)
   ========================================================= */
:root {
  --red: #ff3436;
  --red-dark: #d61f22;
  --black: #0b0b0c;
  --ink: #161618;
  --ink-2: #1f1f22;
  --white: #ffffff;
  --paper: #f6f4f1;
  --muted: #6b6b70;
  --line: #e6e2dc;
  --radius: 14px;
  --max: 1200px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.placeholder { background: #fff3b0; color: #6b5300; padding: 0 4px; border-radius: 3px; font-style: normal; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-family: var(--font); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; transition: .25s; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost { border: 2px solid rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--red); }

/* ---------- Section heads ---------- */
section { padding: 96px 0; }
.eyebrow { font-family: var(--font); font-size: .78rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.section-title { font-family: var(--font); font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; margin: 14px 0 18px; letter-spacing: -.01em; }
.section-lead { color: var(--muted); max-width: 680px; font-size: 1.05rem; }
.head-center { text-align: center; }
.head-center .section-lead { margin: 0 auto; }
.dark { background: var(--black); color: var(--white); }
.dark .section-lead { color: #b5b5ba; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: .3s; background: linear-gradient(to bottom, rgba(0,0,0,.65), transparent); }
.site-header.scrolled { background: rgba(11,11,12,.96); backdrop-filter: blur(8px); box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand-text { font-family: var(--font); font-weight: 800; letter-spacing: .18em; font-size: .82rem; line-height: 1.25; }
.brand-text span { color: var(--red); display: block; }
.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; }
.nav-links a { color: #e9e9ea; font-family: var(--font); font-weight: 600; font-size: .82rem; letter-spacing: .06em; padding: 10px 12px; border-radius: 8px; transition: .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-links .nav-cta { background: var(--red); color: var(--white); padding: 10px 18px; border-radius: 999px; margin-left: 6px; }
.nav-links .nav-cta:hover { background: var(--white); color: var(--black); }
.menu-toggle { display: none; width: 44px; height: 44px; color: var(--white); }
.menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px auto; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: var(--white); overflow: hidden; padding: 120px 0 80px; background: var(--black); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s ease; }
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 45%, rgba(120,0,0,.35) 100%); }
.hero-radar { position: absolute; right: -180px; top: 50%; width: 760px; height: 760px; transform: translateY(-50%); z-index: 1; opacity: .35; animation: spin 80s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { font-family: var(--font); font-weight: 900; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; letter-spacing: -.02em; margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { font-size: 1.15rem; color: #d7d7da; max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; z-index: 2; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button { width: 34px; height: 4px; background: rgba(255,255,255,.35); border-radius: 4px; transition: .3s; }
.hero-dots button.active { background: var(--red); width: 54px; }
.scroll-hint { position: absolute; z-index: 2; bottom: 30px; right: 30px; font-family: var(--font); font-size: .7rem; letter-spacing: .3em; color: #aaa; writing-mode: vertical-rl; }

/* ---------- Stats ---------- */
.stats { background: var(--red); color: var(--white); padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 42px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.25); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font); font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.stat-label { font-family: var(--font); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-top: 10px; opacity: .92; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media .main { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 85%; }
.about-media .float { position: absolute; right: 0; bottom: -30px; width: 55%; border-radius: var(--radius); border: 8px solid var(--white); box-shadow: 0 20px 50px rgba(0,0,0,.18); aspect-ratio: 4/3; object-fit: cover; }
.about-media .badge { position: absolute; left: -14px; top: 30px; background: var(--black); color: var(--white); padding: 18px 22px; border-radius: 12px; font-family: var(--font); font-weight: 800; font-size: .8rem; letter-spacing: .14em; border-left: 4px solid var(--red); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0 34px; }
.pillar { padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.pillar h4 { font-family: var(--font); font-size: .95rem; margin-bottom: 4px; display: flex; gap: 10px; align-items: center; }
.pillar h4 i { width: 10px; height: 10px; background: var(--red); border-radius: 50%; display: inline-block; }
.pillar p { color: var(--muted); font-size: .9rem; }

/* ---------- Flagship cards ---------- */
.flagship { background: var(--paper); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.f-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 30px rgba(0,0,0,.06); transition: .3s; display: flex; flex-direction: column; }
.f-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,.14); }
.f-card .img { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.f-card .img img { width: 100%; height: 100%; object-fit: cover; transition: .6s; }
.f-card:hover .img img { transform: scale(1.07); }
.f-card .tag { position: absolute; top: 16px; left: 16px; background: var(--red); color: var(--white); font-family: var(--font); font-weight: 700; font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.f-card .body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.f-card h3 { font-family: var(--font); font-size: 1.25rem; margin-bottom: 8px; }
.f-card .meta { font-size: .82rem; color: var(--red); font-weight: 600; margin-bottom: 12px; }
.f-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.f-card .more { margin-top: 18px; font-family: var(--font); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.f-card .more:hover { color: var(--red); }

/* ---------- Programs (alternating) ---------- */
.program { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 80px; }
.program:first-of-type { margin-top: 56px; }
.program.reverse .program-media { order: 2; }
.program-media { position: relative; }
.program-media img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.program-media .num { position: absolute; top: -26px; left: -10px; font-family: var(--font); font-weight: 900; font-size: 5.5rem; color: var(--red); line-height: 1; opacity: .9; text-shadow: 0 4px 20px rgba(0,0,0,.25); }
.program h3 { font-family: var(--font); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; margin: 10px 0 16px; }
.program p { color: var(--muted); margin-bottom: 18px; }
.program ul { list-style: none; margin-bottom: 26px; }
.program li { padding: 7px 0 7px 28px; position: relative; }
.program li::before { content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 2px; background: var(--red); }

/* ---------- Mission banner ---------- */
.mission { position: relative; background: var(--black) center/cover no-repeat; color: var(--white); text-align: center; padding: 130px 0; overflow: hidden; }
.mission::before { content: ""; position: absolute; inset: 0; background: rgba(8,8,9,.82); }
.mission .container { position: relative; }
.mission blockquote { font-family: var(--font); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.7rem); line-height: 1.25; max-width: 900px; margin: 18px auto 30px; }
.mission blockquote em { font-style: normal; color: var(--red); }
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; text-align: left; }
.mv { padding: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.mv h4 { font-family: var(--font); color: var(--red); letter-spacing: .2em; font-size: .8rem; text-transform: uppercase; margin-bottom: 10px; }
.mv p { color: #cfcfd3; font-size: .95rem; }

/* ---------- Cabinet / Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; }
.member { text-align: center; }
.member .avatar { aspect-ratio: 1; border-radius: var(--radius); background: var(--ink-2); display: grid; place-items: center; overflow: hidden; position: relative; }
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member .avatar .initials { font-family: var(--font); font-weight: 800; font-size: 2.4rem; color: var(--red); }
.member h4 { font-family: var(--font); margin-top: 14px; font-size: 1rem; }
.member p { font-size: .85rem; color: var(--muted); }
.dark .member p { color: #a9a9ae; }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.video { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 16/9; background: var(--ink-2); }
.video iframe { width: 100%; height: 100%; border: 0; }
.video-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; background-size: cover; background-position: center; }
.video-ph::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.video-ph > * { position: relative; }
.play { width: 64px; height: 64px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255,52,54,.25); }
.play::after { content: ""; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.video-ph span { font-family: var(--font); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-align: center; padding: 0 14px; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 36px 0 34px; }
.gallery-filters button { padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); font-family: var(--font); font-weight: 600; font-size: .82rem; transition: .2s; }
.gallery-filters button:hover { border-color: var(--red); color: var(--red); }
.gallery-filters button.active { background: var(--red); border-color: var(--red); color: #fff; }
.gallery-grid { columns: 4 240px; column-gap: 14px; }
.g-item { break-inside: avoid; margin-bottom: 14px; border-radius: 10px; overflow: hidden; cursor: zoom-in; position: relative; }
.g-item img { width: 100%; height: auto; transition: .5s; }
.g-item:hover img { transform: scale(1.05); }
.g-item::after { content: attr(data-label); position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-family: var(--font); font-weight: 600; font-size: .78rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); opacity: 0; transition: .3s; }
.g-item:hover::after { opacity: 1; }
.g-item.hidden { display: none; }
.gallery-more { text-align: center; margin-top: 30px; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.94); z-index: 300; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 6px; }
.lb-btn { position: absolute; color: #fff; font-size: 2rem; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.lb-btn:hover { background: var(--red); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 22px; color: #ccc; font-size: .9rem; font-family: var(--font); }

/* ---------- Testimonials ---------- */
.voices { background: var(--paper); }
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.voice { background: var(--white); border-radius: var(--radius); padding: 34px 30px; position: relative; box-shadow: 0 6px 30px rgba(0,0,0,.05); }
.voice::before { content: "\201C"; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: var(--red); position: absolute; top: 12px; left: 22px; opacity: .9; }
.voice p { margin-top: 38px; font-size: 1rem; color: #333; }
.voice .who { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--font); }
.voice .who strong { display: block; font-size: .95rem; }
.voice .who span { color: var(--muted); font-size: .82rem; }

/* ---------- Partners ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 44px; }
.partner { aspect-ratio: 3/2; border: 1px dashed #cfcac2; border-radius: 12px; display: grid; place-items: center; color: #a19b92; font-family: var(--font); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-align: center; padding: 10px; filter: grayscale(1); transition: .3s; }
.partner:hover { filter: none; border-color: var(--red); color: var(--red); }
.partner img { max-height: 60%; max-width: 80%; object-fit: contain; }

/* ---------- Constitution teaser ---------- */
.const-teaser { background: var(--black); color: #fff; position: relative; overflow: hidden; }
.const-teaser .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.const-teaser .radar-bg { position: absolute; left: -200px; top: -200px; width: 700px; opacity: .14; }
.const-parts { display: grid; gap: 10px; }
.const-parts a { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; font-family: var(--font); font-weight: 600; font-size: .92rem; transition: .2s; }
.const-parts a:hover { border-color: var(--red); background: rgba(255,52,54,.1); }
.const-parts a small { color: var(--red); font-weight: 700; letter-spacing: .12em; }

/* ---------- Join / Contact ---------- */
.join-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.contact-list { list-style: none; margin-top: 30px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ic { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--paper); display: grid; place-items: center; color: var(--red); }
.contact-list strong { font-family: var(--font); display: block; font-size: .9rem; }
.contact-list span { color: var(--muted); font-size: .93rem; }
.form { background: var(--paper); padding: 36px; border-radius: var(--radius); display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-family: var(--font); font-weight: 600; font-size: .78rem; letter-spacing: .06em; display: grid; gap: 6px; }
.form input, .form select, .form textarea { font: inherit; font-size: .95rem; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #b5b5ba; padding: 70px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h5 { font-family: var(--font); color: #fff; letter-spacing: .2em; font-size: .78rem; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; font-size: .92rem; }
.site-footer a:hover { color: var(--red); }
.footer-brand img { width: 84px; border-radius: 50%; margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #333; display: grid; place-items: center; transition: .2s; }
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-bottom { border-top: 1px solid #222; margin-top: 50px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.back-top { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; z-index: 90; opacity: 0; pointer-events: none; transition: .3s; box-shadow: 0 8px 20px rgba(255,52,54,.4); }
.back-top.show { opacity: 1; pointer-events: auto; }

/* =========================================================
   CONSTITUTION PAGE
   ========================================================= */
.c-hero { background: var(--black); color: #fff; padding: 150px 0 70px; position: relative; overflow: hidden; }
.c-hero h1 { font-family: var(--font); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; margin: 14px 0 16px; }
.c-hero h1 em { font-style: normal; color: var(--red); }
.c-hero p { color: #c7c7cb; max-width: 640px; }
.c-hero .radar-bg { position: absolute; right: -160px; top: -120px; width: 620px; opacity: .2; }
.c-notice { margin-top: 26px; display: inline-block; background: rgba(255,52,54,.12); border: 1px solid rgba(255,52,54,.5); color: #ffb3b4; padding: 10px 16px; border-radius: 10px; font-size: .88rem; }
.c-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; position: relative; }
.c-search { flex: 1; min-width: 240px; max-width: 460px; position: relative; }
.c-search input { width: 100%; padding: 14px 18px 14px 46px; border-radius: 999px; border: 1px solid #333; background: #161618; color: #fff; font: inherit; }
.c-search input:focus { outline: none; border-color: var(--red); }
.c-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #888; }
.c-tools .btn { padding: 12px 20px; }

.c-layout { display: grid; grid-template-columns: 300px 1fr; gap: 44px; padding: 56px 20px 100px; align-items: start; }
.c-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--white); }
.c-toc h6 { font-family: var(--font); font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin: 4px 6px 12px; }
.c-toc ul { list-style: none; }
.c-toc > ul > li > a { display: block; padding: 10px 10px; border-radius: 8px; font-family: var(--font); font-weight: 700; font-size: .85rem; }
.c-toc > ul > li > a small { display: block; color: var(--red); font-size: .66rem; letter-spacing: .18em; }
.c-toc > ul > li > a:hover, .c-toc a.active { background: var(--paper); color: var(--red); }
.c-toc ul ul { margin: 2px 0 8px 12px; border-left: 2px solid var(--line); }
.c-toc ul ul a { display: block; padding: 5px 12px; font-size: .82rem; color: var(--muted); }
.c-toc ul ul a:hover { color: var(--red); }

.c-part { margin-bottom: 26px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.c-part-head { width: 100%; display: flex; align-items: center; gap: 18px; padding: 22px 26px; text-align: left; background: var(--white); transition: .2s; }
.c-part-head:hover { background: var(--paper); }
.c-part-num { flex: none; width: 58px; height: 58px; border-radius: 12px; background: var(--black); color: var(--red); display: grid; place-items: center; font-family: var(--font); font-weight: 900; font-size: 1.05rem; }
.c-part-head h2 { font-family: var(--font); font-size: 1.2rem; line-height: 1.25; }
.c-part-head h2 small { display: block; font-size: .68rem; letter-spacing: .22em; color: var(--red); text-transform: uppercase; margin-bottom: 4px; }
.c-part-head .count { margin-left: auto; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.chev { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .3s; }
.open > .c-part-head .chev, .open > .c-art-head .chev { transform: rotate(180deg); background: var(--red); border-color: var(--red); color: #fff; }
.c-part-body { display: none; padding: 0 26px 22px; }
.c-part.open > .c-part-body { display: block; }
.c-part-intro { color: var(--muted); padding: 4px 0 14px 76px; font-size: .95rem; }

.c-art { border-top: 1px solid var(--line); }
.c-art-head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 16px 4px; text-align: left; }
.c-art-head .anum { flex: none; font-family: var(--font); font-weight: 800; font-size: .78rem; letter-spacing: .1em; color: var(--red); min-width: 92px; }
.c-art-head .chev { width: 28px; height: 28px; }
.c-art-body { display: none; padding: 4px 4px 22px 112px; }
.c-art.open > .c-art-body { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.c-art-body ol { padding-left: 22px; display: grid; gap: 8px; }
.c-art-body li::marker { color: var(--red); font-weight: 700; }
.c-art-body p { margin-bottom: 10px; }
.c-art-actions { margin-top: 12px; display: flex; gap: 12px; }
.c-art-actions button { font-size: .78rem; color: var(--muted); font-family: var(--font); font-weight: 600; }
.c-art-actions button:hover { color: var(--red); }
mark { background: #ffe066; padding: 0 2px; border-radius: 2px; }
.c-preamble { background: var(--paper); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 34px 36px; margin-bottom: 30px; }
.c-preamble h2 { font-family: var(--font); letter-spacing: .3em; font-size: .85rem; color: var(--red); margin-bottom: 14px; }
.c-preamble p { font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; line-height: 1.8; color: #222; }
.c-empty { padding: 40px; text-align: center; color: var(--muted); }
[hidden] { display: none !important; }
.c-part { padding: 0; }
.c-motto { margin-top: 18px; font-family: var(--font); font-weight: 700; letter-spacing: .08em; color: var(--red); }
.c-result { font-family: var(--font); font-weight: 600; font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.c-preamble p + p { margin-top: 14px; }
.c-chapter { padding-top: 6px; }
.c-chapter-title { font-family: var(--font); font-size: .95rem; font-weight: 800; margin: 22px 0 6px; padding: 10px 14px; background: var(--paper); border-radius: 8px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.c-chapter-title span { color: var(--red); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.c-art-head .atitle { font-family: var(--font); font-weight: 700; font-size: 1rem; flex: 1; min-width: 0; }
.c-art-body ul { padding-left: 22px; display: grid; gap: 6px; margin-bottom: 10px; }
.c-art-body ul li::marker { color: var(--red); }
.c-art-body ol { margin-bottom: 10px; }
.c-sub { font-family: var(--font); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 14px 0 8px; }
.c-oath { margin: 8px 0 12px; padding: 16px 20px; border-left: 3px solid var(--red); background: var(--paper); border-radius: 8px; font-family: Georgia, "Times New Roman", serif; font-style: italic; line-height: 1.7; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); opacity: 0; background: var(--black); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: .88rem; transition: .3s; z-index: 400; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 10px 8px; font-size: .78rem; }
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  section { padding: 72px 0; }
  .menu-toggle { display: block; }
  .nav-links { position: fixed; inset: 78px 0 auto 0; background: rgba(11,11,12,.98); flex-direction: column; align-items: stretch; padding: 14px 20px 26px; gap: 2px; transform: translateY(-120%); visibility: hidden; transition: transform .35s, visibility .35s; max-height: calc(100vh - 78px); overflow-y: auto; }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links a { display: block; padding: 14px 8px; font-size: .95rem; border-bottom: 1px solid #222; }
  .nav-links .nav-cta { margin: 14px 0 0; text-align: center; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .about-grid, .program, .join-grid, .const-teaser .wrap { grid-template-columns: 1fr; gap: 40px; }
  .program.reverse .program-media { order: 0; }
  .cards-3, .voice-grid, .video-grid, .mv-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.25); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .c-layout { grid-template-columns: 1fr; }
  .c-toc { position: static; max-height: none; }
  .c-toc ul ul { display: none; }
  .c-toc > ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .hero-radar { width: 520px; height: 520px; right: -220px; }
  .scroll-hint { display: none; }
}
@media (max-width: 620px) {
  .cards-3, .voice-grid, .video-grid, .mv-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars, .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .brand-text { display: none; }
  .about-media .badge { left: 0; }
  .c-part-head { padding: 18px; gap: 12px; }
  .c-part-num { width: 46px; height: 46px; font-size: .9rem; }
  .c-part-head .count { display: none; }
  .c-part-body { padding: 0 16px 16px; }
  .c-part-intro { padding-left: 0; }
  .c-art-head { flex-wrap: wrap; gap: 4px 12px; }
  .c-art-head .anum { min-width: 0; width: 100%; }
  .c-art-body { padding: 4px 0 18px; }
  .c-preamble { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   CABINET PAGE
   ========================================================= */
a.member { display: block; transition: .25s; }
a.member:hover { transform: translateY(-6px); }
a.member:hover h4 { color: var(--red); }
.cab-main { padding: 50px 20px 100px; }
.cab-loading { color: var(--muted); padding: 30px 0; }
.cab-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.cab-filters button { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-family: var(--font); font-weight: 600; font-size: .82rem; }
.cab-filters button.active { background: var(--red); border-color: var(--red); color: #fff; }
.cab-group + .cab-group { margin-top: 56px; }
.cab-group-title { font-family: var(--font); font-weight: 800; font-size: 1.5rem; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--black); margin-bottom: 26px; }
.cab-group-title small { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.m-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: .25s; }
.m-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.12); border-color: transparent; }
.m-photo { aspect-ratio: 1; background: var(--ink-2); display: grid; place-items: center; overflow: hidden; position: relative; }
.m-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: .35s; }
.m-card:hover .m-photo::after { transform: scaleX(1); }
.m-photo img { width: 100%; height: 100%; object-fit: cover; }
.m-photo .initials, .p-photo .initials, .adm-photo .initials, .adm-av .initials { font-family: var(--font); font-weight: 800; color: var(--red); }
.m-photo .initials { font-size: 3rem; }
.m-info { padding: 18px 18px 6px; flex: 1; }
.m-info h3 { font-family: var(--font); font-size: 1.05rem; line-height: 1.25; }
.m-info p { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.m-more { padding: 10px 18px 18px; font-family: var(--font); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }

/* =========================================================
   MEMBER PROFILE PAGE
   ========================================================= */
.p-hero { background: var(--black); color: #fff; padding: 120px 0 56px; position: relative; overflow: hidden; }
.p-hero .radar-bg { position: absolute; right: -160px; top: -120px; width: 620px; opacity: .2; }
.p-hero-inner { position: relative; }
.p-back { display: inline-block; color: #bdbdc2; font-family: var(--font); font-weight: 600; font-size: .85rem; margin-bottom: 26px; }
.p-back:hover { color: var(--red); }
.p-head { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; }
.p-photo { width: 200px; height: 200px; flex: none; border-radius: 20px; overflow: hidden; background: var(--ink-2); display: grid; place-items: center; border: 3px solid var(--red); max-width: 100%; }
.p-photo img { width: 100%; height: 100%; object-fit: cover; }
.p-photo .initials { font-size: 4rem; }
.p-id { flex: 1; min-width: 0; }
.p-name { font-family: var(--font); font-weight: 900; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: 10px 0 10px; text-wrap: balance; }
.p-role { color: var(--red); font-family: var(--font); font-weight: 700; font-size: 1.1rem; }
.p-tagline { color: #cfcfd3; margin-top: 10px; max-width: 620px; }
.p-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.p-badges span { padding: 6px 12px; border: 1px solid rgba(255,52,54,.6); border-radius: 999px; font-size: .78rem; font-family: var(--font); font-weight: 600; color: #ffb3b4; }
.p-main { padding: 50px 20px 100px; }
.p-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
.p-col, .p-side { display: grid; gap: 22px; min-width: 0; }
.p-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; background: #fff; }
.p-card h2 { font-family: var(--font); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.p-card p + p { margin-top: 12px; }
.p-list { padding-left: 20px; display: grid; gap: 8px; }
.p-list li::marker { color: var(--red); }
.p-papers { list-style: none; display: grid; gap: 10px; }
.p-papers a { font-weight: 600; border-bottom: 1px solid var(--line); }
.p-papers a:hover { color: var(--red); border-color: var(--red); }
.p-facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: .93rem; }
.p-facts dt { color: var(--muted); }
.p-facts dd { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.p-socials { list-style: none; display: grid; gap: 12px; }
.p-socials a { font-family: var(--font); font-weight: 700; font-size: .9rem; }
.p-socials a:hover { color: var(--red); }
.p-socials span { display: block; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.p-soon { background: var(--paper); border-style: dashed; color: var(--muted); }
@media (max-width: 860px) { .p-layout { grid-template-columns: 1fr; } .p-photo { width: 150px; height: 150px; } }

/* =========================================================
   ADMIN PAGE
   ========================================================= */
.adm-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.adm-user { color: #bdbdc2; font-size: .85rem; }
.btn.adm-sm { padding: 9px 16px; font-size: .74rem; }
.adm-wrap { padding: 100px 20px 60px; max-width: 1280px; margin: 0 auto; }
.adm-banner { background: #fff3b0; color: #5c4700; border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; font-size: .92rem; }
.adm-login { max-width: 420px; margin: 40px auto; }
.adm-h1 { font-family: var(--font); font-weight: 800; font-size: 1.6rem; }
.adm-msg { font-size: .88rem; color: var(--muted); min-height: 1.2em; }
.adm-msg.bad { color: var(--red-dark); font-weight: 600; }
.adm-dash { display: grid; grid-template-columns: 330px 1fr; gap: 26px; align-items: start; }
.adm-list { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 96px; max-height: calc(100vh - 116px); display: flex; flex-direction: column; gap: 12px; background: #fff; }
.adm-list-head { display: flex; justify-content: space-between; align-items: center; }
.adm-list-head h2 { font-family: var(--font); font-size: 1.1rem; }
.adm-list-head small { color: var(--muted); font-weight: 600; }
.adm-filter { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; width: 100%; }
#memberList { list-style: none; overflow-y: auto; display: grid; gap: 4px; flex: 1; min-height: 0; }
#memberList li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; }
#memberList li:hover { background: var(--paper); }
#memberList li.active { background: var(--black); color: #fff; }
#memberList li.active small { color: #bdbdc2; }
#memberList li.is-hidden .adm-li-text { opacity: .55; }
.adm-av { width: 40px; height: 40px; flex: none; border-radius: 10px; overflow: hidden; background: var(--ink-2); display: grid; place-items: center; font-size: .85rem; }
.adm-av img { width: 100%; height: 100%; object-fit: cover; }
.adm-li-text { flex: 1; min-width: 0; line-height: 1.3; }
.adm-li-text strong { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-li-text small { display: block; font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-move { display: flex; flex-direction: column; }
.adm-move button { width: 24px; height: 20px; font-size: .75rem; border-radius: 4px; opacity: .55; }
.adm-move button:hover { opacity: 1; background: var(--red); color: #fff; }
.adm-list-tools { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.adm-link { text-align: left; font-size: .82rem; color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.adm-link:hover { color: var(--red); }
.adm-form { display: grid; gap: 18px; }
.adm-form-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.adm-form-head h2 { font-family: var(--font); font-weight: 800; font-size: 1.5rem; min-width: 0; }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-actions .btn-ghost, .adm-top .btn-ghost { border-color: var(--line); color: var(--ink); }
.adm-top .btn-ghost { border-color: #444; color: #e9e9ea; }
.adm-danger:hover { background: var(--red-dark) !important; color: #fff !important; border-color: var(--red-dark) !important; }
.adm-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 22px; display: grid; gap: 14px; }
.adm-form legend { font-family: var(--font); font-weight: 800; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); padding: 0 8px; }
.adm-form label { font-family: var(--font); font-weight: 600; font-size: .78rem; letter-spacing: .04em; display: grid; gap: 6px; }
.adm-form input:not([type=checkbox]):not([type=file]), .adm-form textarea { font: inherit; font-size: .95rem; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; width: 100%; background: #fff; }
.adm-form input:focus, .adm-form textarea:focus { outline: none; border-color: var(--red); }
.adm-form textarea { resize: vertical; }
.adm-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adm-form .adm-check { display: flex; align-items: center; gap: 10px; font-size: .9rem; align-self: end; padding-bottom: 12px; }
.adm-check input { width: 18px; height: 18px; accent-color: var(--red); }
.adm-photo-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.adm-photo { width: 120px; height: 120px; border-radius: 16px; overflow: hidden; background: var(--ink-2); display: grid; place-items: center; flex: none; }
.adm-photo img { width: 100%; height: 100%; object-fit: cover; }
.adm-photo .initials { font-size: 2.2rem; }
.adm-photo-ctl { flex: 1; min-width: 220px; display: grid; gap: 10px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (max-width: 900px) {
  .adm-dash { grid-template-columns: 1fr; }
  .adm-list { position: static; max-height: 360px; }
  .adm-form .row { grid-template-columns: 1fr; }
  .adm-top .adm-user { display: none; }
}

.cab-group, .adm-dash, .adm-login, .adm-editor, .p-card { padding-block: 0; }
.p-card { padding: 26px 28px; }
.adm-list, .adm-editor { min-width: 0; }
#memberList { grid-template-columns: minmax(0, 1fr); }

.voice .who { display: flex; align-items: center; gap: 12px; }
.voice .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
a.partner { text-decoration: none; }
.partner img { max-height: 70%; }

/* ---------- Admin: tabs + content panels ---------- */
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 24px; }
.adm-tabs button { padding: 12px 18px; font-family: var(--font); font-weight: 700; font-size: .88rem; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.adm-tabs button:hover { color: var(--ink); }
.adm-tabs button.active { color: var(--red); border-bottom-color: var(--red); }
.adm-panel { padding-block: 0; }
.adm-hint { color: var(--muted); font-size: .88rem; margin: 6px 0 16px; }
.adm-items { list-style: none; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; flex: 1; min-height: 0; }
.adm-items li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; }
.adm-items li:hover { background: var(--paper); }
.adm-items li.active { background: var(--black); color: #fff; }
.adm-items li.active small { color: #bdbdc2; }
.adm-items li.is-hidden .adm-li-text { opacity: .55; }
.adm-items li.adm-empty { color: var(--muted); cursor: default; font-size: .88rem; }
.adm-photo.wide { width: 200px; height: 110px; background: var(--paper); }
.adm-photo.wide img { object-fit: contain; padding: 8px; }
.adm-photo.wide .initials { font-size: .9rem; color: var(--muted); }
.adm-gal-tools { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-bottom: 8px; }
.adm-upload, .adm-gal-filter { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 12px; align-content: start; }
.adm-upload h2 { font-family: var(--font); font-size: 1.05rem; }
.adm-gal-tools label { font-family: var(--font); font-weight: 600; font-size: .78rem; display: grid; gap: 6px; }
.adm-gal-tools input:not([type=file]), .adm-gal-tools select { font: inherit; font-size: .92rem; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; width: 100%; background: #fff; }
.adm-gal-tools .row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.adm-gal-tools .adm-actions { align-items: center; }
.adm-gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.adm-tile { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.adm-tile.is-hidden .adm-tile-img { opacity: .4; }
.adm-tile-img { aspect-ratio: 4/3; background: var(--paper); }
.adm-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.adm-tile-body { padding: 10px; display: grid; gap: 8px; }
.adm-tile-body input:not([type=checkbox]) { font: inherit; font-size: .85rem; padding: 7px 9px; border: 1.5px solid var(--line); border-radius: 8px; width: 100%; min-width: 0; }
.adm-tile-body input:focus { outline: none; border-color: var(--red); }
.adm-tile-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.adm-check-sm { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; }
.adm-check-sm input { accent-color: var(--red); }
.adm-move-h { display: flex; gap: 2px; }
.adm-move-h button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); font-size: .8rem; }
.adm-move-h button:hover { background: var(--red); color: #fff; border-color: var(--red); }
.adm-del { font-size: .78rem; font-weight: 700; color: var(--red-dark); }
.adm-stats { display: grid; gap: 12px; }
.adm-stat-row { display: grid; grid-template-columns: 1fr 110px 2fr; gap: 12px; }
@media (max-width: 900px) {
  .adm-gal-tools, .adm-gal-tools .row3, .adm-stat-row { grid-template-columns: 1fr; }
}

/* ---------- Admin lock screen ---------- */
.adm-lock { text-align: center; justify-items: center; gap: 14px; padding: 40px 32px; }
.adm-lock-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--black); color: var(--red); display: grid; place-items: center; }
.adm-lock form, .adm-lock #lockSignIn, .adm-lock #lockDenied { width: 100%; display: grid; gap: 14px; text-align: left; }
.adm-google { width: 100%; justify-content: center; }
.adm-alt summary { cursor: pointer; font-size: .85rem; color: var(--muted); font-weight: 600; text-align: center; padding: 6px 0; }
.adm-alt form { margin-top: 10px; }
.adm-uid { display: flex; gap: 8px; align-items: center; background: #fff; border: 1.5px dashed var(--line); border-radius: 10px; padding: 8px 10px; }
.adm-uid code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .85rem; }
.adm-lock .btn-ghost { border-color: var(--line); color: var(--ink); }

/* ---------- Research papers ---------- */
.r-list { display: grid; gap: 18px; }
.r-card { border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 24px 28px; background: #fff; display: grid; gap: 10px; transition: .25s; }
.r-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.r-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--font); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.r-meta .r-topic { color: var(--red); }
.r-card h3 { font-family: var(--font); font-weight: 800; font-size: 1.25rem; line-height: 1.35; }
.r-authors { font-weight: 600; color: var(--ink); }
.r-authors a { color: var(--red); border-bottom: 1px solid transparent; }
.r-authors a:hover { border-color: var(--red); }
.r-abstract { color: #444; line-height: 1.7; }
.r-abstract.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.r-more { font-weight: 700; font-size: .85rem; color: var(--red); justify-self: start; }
.r-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.r-actions .btn { padding: 10px 18px; font-size: .85rem; }
.r-actions small { color: var(--muted); font-size: .8rem; }
.r-btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.r-btn-ghost:hover { border-color: var(--red); color: var(--red); }
.p-papers button { font: inherit; font-weight: 600; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.p-papers button:hover { color: var(--red); border-color: var(--red); }
.p-papers small { color: var(--muted); font-size: .8rem; margin-left: 6px; }
@media (max-width: 620px) { .r-card { padding: 20px; } .r-card h3 { font-size: 1.1rem; } }

/* Admin: research papers */
.adm-file-now { background: var(--paper); border-radius: 10px; padding: 12px 14px; font-size: .9rem; overflow-wrap: anywhere; }
.adm-member-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; }

/* =========================================================
   INITIATIVES PLATFORM — public pages
   ========================================================= */
.il-main { padding: 46px 20px 100px; }
.il-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.il-filters label { font-family: var(--font); font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: grid; gap: 6px; }
.il-filters select, .ia-select { font: inherit; font-size: .9rem; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; max-width: 100%; }
.il-filters select { min-width: 170px; }
.il-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 26px; }
.il-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: .25s; }
.il-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0,0,0,.12); border-color: transparent; }
.il-img { position: relative; aspect-ratio: 16/9; background: var(--black); overflow: hidden; }
.il-img > img { width: 100%; height: 100%; object-fit: cover; transition: .6s; }
.il-card:hover .il-img > img { transform: scale(1.05); }
.il-ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 70% 30%, #3a0b0c, var(--black) 70%); }
.il-ph img { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; }
.il-ph span { font-family: var(--font); font-weight: 900; letter-spacing: .3em; color: var(--red); font-size: 1.4rem; }
.il-type { max-width: calc(50% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: absolute; left: 14px; top: 14px; background: rgba(11,11,12,.82); color: #fff; font-family: var(--font); font-weight: 700; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; backdrop-filter: blur(4px); }
.il-state { max-width: calc(50% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: absolute; right: 14px; top: 14px; font-family: var(--font); font-weight: 700; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: #fff; color: var(--ink); }
.il-state.s-open { background: var(--red); color: #fff; }
.il-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.il-body h3 { font-family: var(--font); font-weight: 800; font-size: 1.18rem; line-height: 1.3; }
.il-body p { color: var(--muted); font-size: .93rem; }
.il-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.il-meta span { font-size: .76rem; font-weight: 600; background: var(--paper); border-radius: 999px; padding: 4px 10px; }
.il-cta { font-family: var(--font); font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.il-none { text-align: center; padding: 50px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); display: grid; gap: 12px; justify-items: center; }
.il-none h2 { font-family: var(--font); font-weight: 800; }
.il-none p { color: var(--muted); }
.fi-sec { background: var(--white); }
.fi-grid { margin-top: 46px; }

/* Initiative page */
.ip-hero { padding: 140px 0 60px; background: linear-gradient(100deg, rgba(0,0,0,.94), rgba(0,0,0,.78) 55%, rgba(110,0,0,.55)), var(--cover, none) center/cover, var(--black); }
.ip-hero-in { position: relative; }
.ip-crumb { color: #bbb; font-size: .85rem; font-weight: 600; display: inline-block; margin-bottom: 18px; }
.ip-crumb:hover { color: var(--red); }
.ip-hero-row { display: flex; gap: 26px; align-items: flex-start; }
.ip-logo { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; border: 3px solid rgba(255,255,255,.15); flex: none; }
.ip-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.ip-hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.ip-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ip-tags span { font-size: .78rem; color: #c7c7cb; }
.ip-pill, .ia-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font); font-weight: 700; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: #e9e7e3; color: var(--ink); white-space: nowrap; }
.ip-pill::before, .ia-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.s-open { background: #e5f6ea; color: #136c35; }
.s-upcoming, .s-published { background: #e8eefc; color: #1f3f99; }
.s-full, .s-closed { background: #fff1d6; color: #7a4c00; }
.s-cancelled { background: #fde4e4; color: #9b1416; }
.s-completed, .s-archived, .s-draft { background: #ecebe8; color: #55555a; }
.ip-hero .ip-pill { background: rgba(255,255,255,.12); color: #fff; }
.ip-hero .ip-pill.s-open { background: var(--red); }
.ip-factbar { background: var(--red); color: #fff; }
.ip-factbar .container { display: flex; flex-wrap: wrap; }
.ip-factbar .container > div { padding: 18px 26px 18px 0; margin-right: 26px; border-right: 1px solid rgba(255,255,255,.25); }
.ip-factbar .container > div:last-child { border-right: 0; }
.ip-factbar small { display: block; font-family: var(--font); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.ip-factbar strong { font-family: var(--font); font-size: .98rem; }
.ip-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-top: 54px; padding-bottom: 100px; align-items: start; }
.ip-main { display: grid; gap: 40px; min-width: 0; }
section.ip-sec, section.ip-apply { padding: 0; }
.ip-sec h2 { font-family: var(--font); font-weight: 800; font-size: 1.45rem; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.ip-sec h2::before { content: ""; width: 22px; height: 3px; background: var(--red); }
.ip-rich p + p, .ip-rich ul + p, .ip-rich p + ul { margin-top: 12px; }
.ip-rich ul { padding-left: 20px; }
.ip-rich li { margin: 4px 0; }
.ip-rich a, .ip-link { color: var(--red-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ip-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; }
.ip-dl dt { font-family: var(--font); font-weight: 700; font-size: .8rem; letter-spacing: .06em; color: var(--muted); }
.ip-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.ip-chips span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .85rem; font-weight: 600; }
.ip-fee { font-family: var(--font); font-weight: 900; font-size: 1.8rem; }
.ip-fee small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.ip-sched { list-style: none; border-left: 2px solid var(--line); padding-left: 22px; display: grid; gap: 18px; }
.ip-sched li { position: relative; }
.ip-sched li::before { content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.ip-when { display: block; font-size: .78rem; font-weight: 700; color: var(--red-dark); letter-spacing: .04em; }
.ip-sched p { color: var(--muted); font-size: .92rem; }
.ip-faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.ip-faq summary { font-weight: 700; cursor: pointer; }
.ip-faq .ip-rich { margin-top: 8px; color: #444; }
.ip-side { position: sticky; top: 100px; }
.ip-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.ip-card .ip-pill { justify-self: start; }
.ip-note { color: var(--muted); font-size: .88rem; }
.ip-facts { display: grid; gap: 10px; }
.ip-facts dt { font-family: var(--font); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ip-facts dd { font-weight: 600; margin-top: -6px; }
.ip-cta { justify-content: center; }
.btn-ghost-dark { border: 2px solid var(--line); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--ink); }

/* Application form */
.ip-apply { border-top: 3px solid var(--black); padding-top: 34px !important; scroll-margin-top: 90px; }
.ip-apply-head h2 { font-family: var(--font); font-weight: 900; font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 10px 0 16px; }
.ip-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: s; margin-bottom: 24px; }
.ip-steps li { counter-increment: s; font-family: var(--font); font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; padding-right: 8px; }
.ip-steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--line); font-size: .74rem; }
.ip-steps li.on { color: var(--ink); }
.ip-steps li.on::before { background: var(--red); border-color: var(--red); color: #fff; }
.ip-form { display: grid; gap: 20px; background: var(--paper); padding: 30px; border-radius: var(--radius); }
.i-field { display: grid; gap: 7px; border: 0; min-width: 0; }
.i-field[hidden] { display: none; }
.i-field > label, .i-field > legend { font-family: var(--font); font-weight: 700; font-size: .84rem; letter-spacing: .02em; }
.i-field > legend { margin-bottom: 7px; padding: 0; }
.i-req { color: var(--red); }
.i-desc { color: var(--muted); font-size: .84rem; }
.ip-form input:not([type=checkbox]):not([type=radio]), .ip-form select, .ip-form textarea, .ip-pay input { font: inherit; font-size: .96rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; width: 100%; min-width: 0; }
.ip-form input:focus, .ip-form select:focus, .ip-form textarea:focus, .ip-pay input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,52,54,.15); }
.ip-form textarea { resize: vertical; min-height: 110px; }
.i-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.i-opt { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-size: .93rem; }
.i-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: none; }
.i-opt:has(input:checked) { border-color: var(--ink); }
.i-consent .i-opt { background: transparent; border: 0; padding: 0; font-weight: 600; }
.i-heading { padding-top: 10px; border-top: 1px solid var(--line); }
.i-heading h3 { font-family: var(--font); font-weight: 800; font-size: 1.12rem; }
.i-heading[hidden] { display: none; }
.i-count { justify-self: end; font-size: .75rem; color: var(--muted); }
.i-count.over { color: var(--red-dark); font-weight: 700; }
.i-err { color: var(--red-dark); font-size: .84rem; font-weight: 600; min-height: 0; }
.i-err:empty { display: none; }
.i-invalid input:not([type=checkbox]):not([type=radio]), .i-invalid select, .i-invalid textarea, .i-invalid .i-opt { border-color: var(--red); }
.i-file { display: grid; gap: 6px; }
.i-file input { background: #fff; }
.ip-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ip-fee-note { color: var(--muted); font-size: .9rem; }
.ip-form-err { font-size: .9rem; }
.ip-preview-note { background: #fff3b0; color: #5c4700; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: .88rem; }
.ip-pay, .ip-done, .ip-progress { background: var(--paper); padding: 30px; border-radius: var(--radius); display: grid; gap: 14px; }
.ip-pay h3, .ip-done h3 { font-family: var(--font); font-weight: 800; font-size: 1.3rem; }
.ip-amount { font-family: var(--font); font-weight: 900; font-size: 2.2rem; }
.ip-pay-steps { padding-left: 20px; display: grid; gap: 8px; }
.ip-progress { justify-items: center; text-align: center; }
.ip-spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--red); animation: ipspin .8s linear infinite; }
@keyframes ipspin { to { transform: rotate(360deg); } }
.ip-done { text-align: center; justify-items: center; background: #fff; border: 1px solid var(--line); }
.ip-done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; font-size: 2rem; display: grid; place-items: center; }
.ip-ref { font-family: var(--font); font-weight: 900; font-size: 1.8rem; letter-spacing: .08em; }
.ip-small { font-size: .84rem; color: var(--muted); }
.ip-closed { background: var(--paper); border-radius: var(--radius); padding: 28px !important; border-top: 0; }
.ip-closed h2 { font-family: var(--font); font-weight: 800; }
@media (max-width: 960px) { .ip-layout { grid-template-columns: 1fr; } .ip-side { position: static; order: -1; } .ip-hero-row { flex-direction: column; } }
@media (max-width: 620px) { .ip-form, .ip-pay, .ip-done { padding: 20px; } .ip-factbar .container > div { border-right: 0; padding: 12px 18px 12px 0; } .ip-dl { grid-template-columns: 1fr; gap: 2px; } .ip-dl dd { margin-bottom: 8px; } }

/* Status page */
.st-main { padding: 46px 20px 100px; }
.st-card { max-width: 620px; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.st-status { font-family: var(--font); font-weight: 900; font-size: 2rem; line-height: 1.15; }
.st-status.k-positive { color: #136c35; } .st-status.k-negative { color: #9b1416; } .st-status.k-waitlist, .st-status.k-shortlist { color: #7a4c00; }
.st-upd { color: var(--muted); font-size: .85rem; }

/* =========================================================
   INITIATIVES PLATFORM — admin
   ========================================================= */
.ia-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.ia-nav { display: flex; flex-wrap: wrap; gap: 6px; background: var(--paper); padding: 5px; border-radius: 999px; }
.ia-nav button { padding: 9px 16px; border-radius: 999px; font-family: var(--font); font-weight: 700; font-size: .8rem; color: var(--muted); }
.ia-nav button.active { background: var(--black); color: #fff; }
.ia-h2 { font-family: var(--font); font-weight: 800; font-size: 1.45rem; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ia-sub { color: var(--muted); font-weight: 500; font-size: .76rem; }
.ia-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 22px; }
.ia-tile { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; gap: 4px; background: #fff; }
.ia-tile strong { font-family: var(--font); font-weight: 900; font-size: 1.7rem; line-height: 1; }
.ia-tile span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.ia-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ia-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ia-table th { text-align: left; font-family: var(--font); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--paper); }
.ia-table th button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.ia-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ia-table td small { display: block; color: var(--muted); font-size: .76rem; }
.ia-table tbody tr:last-child td { border-bottom: 0; }
.ia-row, .sb-row { cursor: pointer; }
.ia-row:hover, .sb-row:hover { background: #faf9f7; }
.ia-types input { font: inherit; font-size: .88rem; padding: 7px 9px; border: 1.5px solid var(--line); border-radius: 8px; width: 100%; min-width: 90px; }
.ia-empty { text-align: center; padding: 50px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); display: grid; gap: 10px; justify-items: center; }
.ia-empty h3 { font-family: var(--font); font-weight: 800; }
.ia-empty p { color: var(--muted); max-width: 520px; }
.ia-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.ia-toolbar .adm-filter { flex: 1; min-width: 200px; width: auto; }
.ia-pick { font-family: var(--font); font-weight: 700; font-size: .74rem; display: grid; gap: 6px; flex: 1; max-width: 520px; }
.ia-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.ia-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.ia-card-img { aspect-ratio: 16/6; background: var(--black); display: grid; place-items: center; color: var(--red); font-family: var(--font); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; }
.ia-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ia-card-body { padding: 16px 18px; display: grid; gap: 8px; }
.ia-card-body h3 { font-family: var(--font); font-weight: 800; font-size: 1.05rem; }
.ia-card-body p { font-size: .85rem; color: var(--muted); }
.ia-card-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .74rem; color: var(--muted); font-weight: 600; }
.ia-card-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.k-pending, .k-review { background: #e8eefc; color: #1f3f99; }
.k-shortlist { background: #f0e8fc; color: #5b2a99; }
.k-positive, .k-done { background: #e5f6ea; color: #136c35; }
.k-negative { background: #fde4e4; color: #9b1416; }
.k-waitlist { background: #fff1d6; color: #7a4c00; }
.k-withdrawn { background: #ecebe8; color: #55555a; }
.ia-ed-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ia-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin: 6px 0 22px; }
.ia-tabs button { padding: 10px 14px; font-family: var(--font); font-weight: 700; font-size: .82rem; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.ia-tabs button.active { color: var(--ink); border-bottom-color: var(--red); }
.ia-slug { display: flex; align-items: center; gap: 4px; font-weight: 500; color: var(--muted); font-size: .9rem; }
.ia-slug input { flex: 1; }
.adm-form select.ia-select { width: 100%; }
.adm-form .row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ia-imgs { display: flex; gap: 24px; flex-wrap: wrap; }
.ia-img-pick { display: grid; gap: 8px; }
.ia-img-prev { width: 120px; height: 120px; border-radius: 14px; background: var(--paper); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: .8rem; border: 1px solid var(--line); }
.ia-img-prev.wide { width: 320px; max-width: 100%; height: 150px; }
.ia-img-prev img { width: 100%; height: 100%; object-fit: cover; }
.ia-mod { opacity: .9; }
.ia-mod.on { opacity: 1; border-color: #d3cdc4; }
.ia-toggle { display: inline-flex !important; align-items: center; gap: 8px; font-size: .8rem !important; letter-spacing: .14em !important; }
.ia-toggle input { width: 18px; height: 18px; accent-color: var(--red); }
.ia-radios { display: flex; gap: 18px; flex-wrap: wrap; }
.ia-radios .adm-check { padding: 0; }
.ia-rowed { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; background: #fcfbfa; }
.ia-rowed input, .ia-rowed textarea { font: inherit; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 8px; width: 100%; }
.ia-rowed-act { display: flex; gap: 12px; }
.ia-strow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) auto auto auto auto; gap: 8px; align-items: center; }
.ia-strow input { font: inherit; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 8px; width: 100%; }
.ia-key { font-size: .72rem; color: var(--muted); font-family: ui-monospace, monospace; }
.ia-modal { position: fixed; inset: 0; background: rgba(11,11,12,.6); z-index: 300; display: grid; place-items: start center; padding: 40px 16px; overflow-y: auto; }
.ia-modal[hidden] { display: none; }
.ia-modal-box { background: #fff; border-radius: var(--radius); width: 100%; max-width: 620px; padding: 28px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.ia-modal.wide .ia-modal-box { max-width: 1180px; }
.ia-modal-x { position: absolute; right: 14px; top: 10px; font-size: 1.7rem; line-height: 1; width: 40px; height: 40px; border-radius: 50%; }
.ia-modal-x:hover { background: var(--paper); }
.ia-preview-bar { background: #fff3b0; color: #5c4700; border-radius: 10px; padding: 10px 14px; font-size: .88rem; margin: 0 40px 16px 0; }
.ia-preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ia-preview .ip-hero { padding-top: 50px; }
.ia-preview .ip-side { position: static; }

/* Form builder */
.fb-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.fb-state { font-size: .88rem; color: var(--muted); }
.fb-unsaved { color: #7a4c00; font-weight: 700; }
.fb-problems { background: #fff1d6; color: #5c3a00; border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-size: .88rem; }
.fb-problems ul { padding-left: 18px; margin-top: 4px; }
.fb-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.fb-palette, .fb-settings { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff; }
.fb-group + .fb-group { margin-top: 14px; }
.fb-group h4 { font-family: var(--font); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fb-pal { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 8px; font-size: .84rem; font-weight: 600; border: 1px dashed transparent; cursor: grab; }
.fb-pal:hover { background: var(--paper); border-color: var(--line); }
.fb-pal::before { content: "+ "; color: var(--red); }
.fb-canvas { display: grid; gap: 10px; min-height: 300px; background: var(--paper); border-radius: var(--radius); padding: 14px; }
.fb-empty { border: 2px dashed #d3cdc4; border-radius: 12px; padding: 60px 20px; text-align: center; color: var(--muted); }
.fb-item { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px 14px; cursor: pointer; transition: border-color .15s; }
.fb-item:hover { border-color: #cfc8bd; }
.fb-item.sel { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,52,54,.12); }
.fb-item.dragging { opacity: .4; }
.fb-item.drop-before { box-shadow: 0 -4px 0 var(--red); }
.fb-end { min-height: 20px; border-radius: 8px; }
.fb-end.drop-end, .fb-empty.drop-end { box-shadow: 0 -4px 0 var(--red); }
.fb-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .74rem; }
.fb-handle { cursor: grab; color: var(--muted); font-size: 1rem; }
.fb-type { font-family: var(--font); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fb-badge { background: var(--paper); border-radius: 999px; padding: 2px 8px; font-weight: 700; }
.fb-badge.cond { background: #e8eefc; color: #1f3f99; }
.fb-tools { margin-left: auto; display: flex; gap: 2px; }
.fb-tools button { width: 28px; height: 28px; border-radius: 6px; color: var(--muted); }
.fb-tools button:hover { background: var(--paper); color: var(--ink); }
.fb-preview { background: transparent; padding: 0; pointer-events: none; }
.fb-settings .adm-form { gap: 12px; }
.fb-h3 { font-family: var(--font); font-weight: 800; font-size: 1rem; }
.fb-sub { padding: 12px 14px 14px !important; gap: 10px !important; }
@media (max-width: 1100px) { .fb-grid { grid-template-columns: 180px minmax(0, 1fr); } .fb-settings { grid-column: 1 / -1; position: static; max-height: none; } }
@media (max-width: 760px) { .fb-grid { grid-template-columns: 1fr; } .fb-palette { position: static; max-height: 240px; } .ia-strow { grid-template-columns: 1fr 1fr; } .adm-form .row3 { grid-template-columns: 1fr; } }

/* Submissions */
.sb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sb-chips button { padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .8rem; font-weight: 600; background: #fff; }
.sb-chips button b { margin-left: 4px; }
.sb-chips button.on { border-color: var(--ink); background: var(--black); color: #fff; }
.sb-cols { position: relative; }
.sb-cols summary { cursor: pointer; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: .88rem; font-weight: 600; list-style: none; }
.sb-cols > div { position: absolute; z-index: 20; right: 0; top: 46px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; width: 280px; max-height: 320px; overflow-y: auto; box-shadow: 0 16px 40px rgba(0,0,0,.14); display: grid; gap: 6px; }
.sb-cols .adm-check { padding: 0; font-size: .84rem; align-self: auto; }
.sb-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--black); color: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.sb-bulk .ia-select { min-width: 180px; }
.sb-ref { font-family: ui-monospace, monospace; font-size: .82rem; white-space: nowrap; }
.sb-pay { font-size: .78rem; font-weight: 700; white-space: nowrap; }
.sb-pay.p-PENDING_VERIFICATION { color: #7a4c00; } .sb-pay.p-PAID { color: #136c35; } .sb-pay.p-FAILED { color: #9b1416; } .sb-pay.p-NOT_APPLICABLE { color: var(--muted); font-weight: 500; }
.sb-clip { font-size: .8rem; opacity: .7; }
.sd-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-right: 36px; }
.sd-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 16px 0 10px; }
.sd-st { padding: 7px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; border: 1.5px solid transparent; }
.sd-st.cur { border-color: var(--ink); }
.sd-pay { background: var(--paper); border-radius: 10px; padding: 10px 14px; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sd-pay-act { display: flex; gap: 12px; margin-left: auto; }
.sd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; margin-top: 18px; }
.sd-dl { display: grid; gap: 4px; }
.sd-dl dt { font-family: var(--font); font-weight: 700; font-size: .74rem; letter-spacing: .06em; color: var(--muted); margin-top: 10px; }
.sd-dl dd { white-space: normal; overflow-wrap: anywhere; }
.sd-side { display: grid; gap: 8px; align-content: start; }
.sd-side h4 { font-family: var(--font); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.sd-side textarea { font: inherit; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; width: 100%; }
.sd-files, .sd-notes, .sd-hist { list-style: none; display: grid; gap: 8px; padding: 0; }
.sd-files li { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 2px; font-size: .84rem; overflow-wrap: anywhere; }
.sd-files li > span:first-child { font-size: .72rem; color: var(--muted); font-weight: 700; }
.sd-notes li { background: #fffaf0; border-radius: 10px; padding: 10px; font-size: .86rem; }
.sd-notes small, .sd-hist small { display: block; color: var(--muted); font-size: .74rem; }
.sd-hist { padding-left: 14px; border-left: 2px solid var(--line); font-size: .86rem; }
.sd-danger { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.sd-editform { padding: 18px; }
@media (max-width: 860px) { .sd-grid { grid-template-columns: 1fr; } }

/* Analytics (single-series bars: one hue, labels in text ink) */
.an-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.an-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.an-card h4 { font-family: var(--font); font-weight: 800; font-size: .92rem; margin-bottom: 12px; }
.an-wide { grid-column: 1 / -1; }
.an-bars { list-style: none; display: grid; gap: 8px; }
.an-bars li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 10px; align-items: center; font-size: .84rem; }
.an-k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-track { height: 10px; background: var(--paper); border-radius: 4px; overflow: hidden; }
.an-bar { display: block; height: 100%; background: var(--red); border-radius: 0 4px 4px 0; }
.an-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.an-n small { color: var(--muted); font-weight: 500; }
.an-cols { display: flex; align-items: flex-end; gap: 2px; height: 160px; border-bottom: 1px solid var(--line); }
.an-col { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; min-width: 3px; }
.an-col span { display: block; width: 100%; background: var(--red); border-radius: 4px 4px 0 0; min-height: 0; }
.an-col em { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--black); color: #fff; font-style: normal; font-size: .74rem; padding: 4px 8px; border-radius: 6px; white-space: nowrap; z-index: 2; }
.an-col:hover em, .an-col:focus em { display: block; }
.an-col:hover span, .an-col:focus span { background: var(--red-dark); }
.an-axis { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); margin-top: 6px; }
