/* =====================================================================
   Database-driven pages and public forms. Loaded after site.css and pages.css.
   ===================================================================== */

/* ----- Shared bits ----- */
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.chips a.chip { display: inline-flex; align-items: center; gap: .4rem; }
.chip small { opacity: .6; font-weight: 600; }
.tag--soft { background: var(--blue-soft); color: var(--blue); }
.tag--ok { background: rgba(24,160,106,.15); color: var(--green); }
.empty { padding: 2.5rem; text-align: center; color: var(--muted); background: var(--bg-tint); border-radius: var(--radius); }
.empty-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; max-width: 560px; }
.pre-line { white-space: pre-line; }
.past-head { margin-top: 3.5rem; }
.narrow { max-width: 720px; }
.back-link { margin-top: 2.5rem; }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 2.5rem; }
.pager a, .pager span { min-width: 42px; padding: .55rem .9rem; border-radius: 12px; border: 1px solid var(--line); text-align: center; font-weight: 600; font-size: .9rem; background: var(--surface); }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager span[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
:root[data-theme="dark"] .pager span[aria-current] { background: var(--saffron); color: #1A0E00; border-color: var(--saffron); }

/* ----- Cards (news, blog) ----- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 16/10; background: var(--bg-tint); overflow: hidden; display: grid; place-items: center; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__ph { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--muted); opacity: .4; }
.card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__meta { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--muted); }
.card h3 { font-size: 1.08rem; margin: 0; line-height: 1.3; }
.card p { color: var(--muted); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ----- Article layout (news, blog, event, startup details) ----- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.article-layout--wide { grid-template-columns: minmax(0, 1fr) 380px; }
.article { min-width: 0; }
.article__img { margin: 0 0 1.8rem; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--bg-tint); }
.article__img img { width: 100%; max-height: 560px; object-fit: contain; }
.article__img--logo img { max-height: 240px; padding: 1.5rem; }
.prose--article { font-size: 1.05rem; line-height: 1.8; overflow-wrap: anywhere; }
.prose--article img { max-width: 100%; height: auto; border-radius: 12px; }
.prose--article table { width: 100%; border-collapse: collapse; }
.prose--article td, .prose--article th { border: 1px solid var(--line); padding: .5rem; }
.prose--article iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; }
.prose--article span[style] { font-family: inherit !important; }
.side-list { position: sticky; top: 110px; background: var(--bg-tint); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .2rem; }
.side-list h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-family: var(--font-body); margin: 0 0 .6rem; }
.side-list a { display: flex; flex-direction: column; padding: .7rem 0; border-top: 1px solid var(--line); font-weight: 600; font-size: .92rem; line-height: 1.4; }
.side-list a:hover span { color: var(--blue); }
.side-list time { font-size: .75rem; color: var(--muted); font-weight: 500; }
.tag-pills a { color: var(--blue); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .9rem; }
.share span { color: var(--muted); }
.share a { color: var(--blue); font-weight: 600; }

/* ----- Events ----- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.event-grid--past .event-card { opacity: .85; }
.event-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-card__img { position: relative; aspect-ratio: 16/9; background: var(--bg-tint); }
.event-card__img img { width: 100%; height: 100%; object-fit: cover; }
.date-badge { position: absolute; left: 14px; top: 14px; background: var(--surface); border-radius: 14px; padding: .4rem .7rem; display: flex; flex-direction: column; align-items: center; line-height: 1.1; box-shadow: var(--shadow); }
.date-badge b { font-family: var(--font-display); font-size: 1.5rem; color: var(--saffron); }
.date-badge span { font-size: .7rem; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.event-card__body { padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.event-card__body .tag { align-self: flex-start; }
.event-card h3 { margin: 0; font-size: 1.15rem; }
.event-card__when { font-weight: 600; font-size: .9rem; margin: 0; }
.event-card .muted { font-size: .88rem; margin: 0; }
.event-card .text-link { margin-top: auto; }
.event-facts { display: grid; gap: .1rem; margin: 0 0 2rem; background: var(--bg-tint); border-radius: var(--radius); padding: .6rem 1.3rem; }
.event-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.event-facts > div:last-child { border: 0; }
.event-facts dt { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-top: .15rem; }
.event-facts dd { margin: 0; }
.event-facts a { color: var(--blue); }
.activity-list { display: grid; gap: 1.2rem; }
.activity { border-left: 3px solid var(--saffron); padding-left: 1.2rem; }
.activity time { font-size: .8rem; color: var(--muted); font-weight: 600; }
.activity .shot { max-width: 420px; margin: .6rem 0; border-radius: 14px; }
.apply-box { position: sticky; top: 110px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 1.6rem; box-shadow: var(--shadow); scroll-margin-top: 110px; }

/* ----- Media coverage & letters ----- */
.clip-grid { columns: 4 240px; column-gap: 18px; }
.clip { break-inside: avoid; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.clip .shot { margin: 0; border-radius: 0; }
.clip__pdf { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; aspect-ratio: 4/3; background: var(--bg-tint); color: var(--blue); font-weight: 600; }
.clip__pdf span { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--saffron); }
.clip__body { padding: .9rem 1rem 1rem; }
.clip__body time { font-size: .76rem; color: var(--muted); font-weight: 600; }
.clip__body h3 { font-size: .95rem; margin: .2rem 0 0; }
.letter-list { display: grid; gap: 12px; max-width: 900px; }
.letter { display: grid; grid-template-columns: 44px 1fr auto; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; }
.letter__num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 800; font-family: var(--font-display); }
.letter h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.letter time { font-size: .82rem; color: var(--muted); }
.letter details summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .85rem; margin-top: .3rem; }
.letter__thumb { width: 84px; height: 84px; margin: 0; border-radius: 12px; overflow: hidden; }
.letter__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ----- Gallery ----- */
.gallery-tabs { margin-bottom: 2rem; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.album { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-tint); aspect-ratio: 4/3.2; display: block; }
.album__img, .album__img img { width: 100%; height: 100%; }
.album__img img { object-fit: cover; transition: transform .6s; }
.album:hover .album__img img { transform: scale(1.06); }
.album::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,27,63,.9)); }
.album__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1rem 1.1rem; color: #fff; }
.album__body h3 { font-size: 1rem; margin: 0 0 .2rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.album__body span { font-size: .78rem; opacity: .8; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.short .lite--wide { aspect-ratio: 16/9; border-radius: 18px; }

/* ----- Startups ----- */
.startup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 2.5rem; }
.startup { display: grid; grid-template-columns: 76px 1fr; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; transition: transform .3s, box-shadow .3s; }
.startup:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.startup__logo { width: 76px; height: 76px; border-radius: 18px; background: var(--bg-tint); display: grid; place-items: center; overflow: hidden; }
.startup__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.startup__logo span { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--blue); }
.startup h3 { font-size: 1.02rem; margin: 0 0 .5rem; }
.startup dl { margin: 0; display: grid; gap: .25rem; font-size: .84rem; }
.startup dl div { display: grid; grid-template-columns: 58px 1fr; gap: .4rem; }
.startup dt { color: var(--muted); font-weight: 600; }
.startup dd { margin: 0; }
.fact-box { position: sticky; top: 110px; background: var(--bg-tint); border-radius: var(--radius); padding: 1.4rem; }
.fact-box dl, .fact-list { margin: 0 0 1rem; display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.2rem; }
.fact-box dt, .fact-list dt { font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-top: .2rem; }
.fact-box dd, .fact-list dd { margin: 0; font-weight: 500; }
.link-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ----- Awards ----- */
.award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.award-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: .5rem; transition: .3s; }
.award-card:hover { border-color: var(--saffron); transform: translateY(-4px); box-shadow: var(--shadow); }
.award-card__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--saffron-soft); color: var(--saffron); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: .6rem; }
.award-card h3 { margin: 0; font-size: 1.15rem; }
.award-card .muted { font-size: .88rem; }
.chips + .people, .chips + .empty-card { margin-top: 1.8rem; }
.person--link { display: block; color: inherit; }
.person__meta { font-size: .8rem; color: var(--muted); margin: .4rem 0 0; }
.winner { display: grid; grid-template-columns: 320px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.winner__photo { width: 100%; border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow); }

/* ----- Membership status ----- */
.lookup { display: flex; gap: .8rem; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 1.4rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.lookup .field { flex: 1; }
.result { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 18px; padding: 1.5rem; margin-bottom: 1.5rem; }
.result--none { border-left-color: var(--saffron); }
.result .h-sm { margin: .6rem 0 1rem; }

/* ----- Forms ----- */
.form-page { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.form-info { position: sticky; top: 110px; color: var(--muted); }
.form-info > p { font-size: 1.02rem; }
.help-card { margin-top: 1.5rem; background: var(--bg-tint); border-radius: 16px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem; font-size: .88rem; }
.help-card b { color: var(--text); }
.help-card a { color: var(--blue); }
.form-card { scroll-margin-top: 110px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
.form fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.form legend { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; padding: 0; }
.form legend span { width: 28px; height: 28px; border-radius: 50%; background: var(--saffron-soft); color: var(--saffron); display: grid; place-items: center; font-size: .85rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.form--stack { gap: .9rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: .85rem; font-weight: 600; }
.field__label i { color: var(--saffron); font-style: normal; margin-left: .15rem; }
.field__hint { font-size: .76rem; color: var(--muted); }
.form select { font: 400 1rem var(--font-body); color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: .78em 1em; width: 100%; }
.form select:focus { outline: none; border-color: var(--blue); }
.form input[type="file"] { padding: .6em; background: var(--bg-tint); border-style: dashed !important; }
.choices { display: flex; flex-wrap: wrap; gap: .45rem; }
.choice { display: inline-flex !important; flex-direction: row !important; font-weight: 500 !important; position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { padding: .5em 1em; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; font-size: .9rem; transition: .2s; background: var(--surface); }
.choice input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.field--check { margin: .2rem 0 1rem; }
.check { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: .6rem; font-weight: 500 !important; font-size: .92rem !important; cursor: pointer; }
.check input[type="checkbox"] { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--blue); flex-shrink: 0; }
.form .btn--lg { margin-top: .4rem; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .article-layout, .article-layout--wide, .form-page, .winner { grid-template-columns: 1fr; }
  .side-list, .apply-box, .fact-box, .form-info { position: static; }
  .winner__photo { max-width: 320px; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .lookup { flex-direction: column; align-items: stretch; }
  .letter { grid-template-columns: 36px 1fr; }
  .letter > :last-child { grid-column: 1 / -1; justify-self: start; }
  .event-facts > div { grid-template-columns: 1fr; gap: .1rem; }
  .startup { grid-template-columns: 60px 1fr; }
  .startup__logo { width: 60px; height: 60px; }
}

/* ----- Photos that no longer exist on the old server ----- */
.img-missing > img, img.img-missing { visibility: hidden; }
.album__img.img-missing, .card__img.img-missing, .event-card__img.img-missing, .person__photo.img-missing, .startup__logo.img-missing {
  background: linear-gradient(135deg, var(--blue-soft), var(--saffron-soft));
}
.album__img.img-missing::before, .card__img.img-missing::before, .person__photo.img-missing::before {
  content: "BEA"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--muted); opacity: .35;
}
.album__img, .card__img, .person__photo { position: relative; }
.article__img.img-missing, .winner__photo.img-missing { display: none; }

/* The older ".form label" rule stacks label contents; field labels are plain text + asterisk. */
.form .field__label { display: block; }

/* ----- Testimonials page ----- */
.testimonial-grid { columns: 3 320px; column-gap: 20px; }
.testimonial { break-inside: avoid; margin: 0 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.testimonial .quote__mark { color: var(--saffron); margin-bottom: .4rem; }
.testimonial blockquote { margin: 0 0 1.2rem; font-size: .98rem; line-height: 1.7; color: var(--text); }
.testimonial figcaption { display: flex; gap: .8rem; align-items: center; }
.testimonial figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonial figcaption span { display: flex; flex-direction: column; line-height: 1.35; }
.testimonial figcaption small { color: var(--muted); font-size: .8rem; }

/* ----- Initiatives ----- */
.editions { display: grid; gap: 2.5rem; margin-top: 1rem; }
.edition { scroll-margin-top: 110px; border-top: 1px solid var(--line); padding-top: 2rem; }
.edition__head { margin-bottom: 1rem; }
.edition__date { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--saffron); }
.edition__head h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: .3rem 0 0; }
.edition__img { margin: 0 0 1.2rem; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--bg-tint); }
.edition__img img { width: 100%; max-height: 460px; object-fit: cover; }

/* ----- Highlights (centres) ----- */
.centre-detail { scroll-margin-top: 110px; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.centre-detail:first-of-type { border-top: 0; }
.ticks--light li { color: rgba(234,240,255,.82); }
.pills--dark li { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: #EAF0FF; }

/* ----- Tabs with an active page ----- */
.tabs-nav a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
:root[data-theme="dark"] .tabs-nav a.is-active { background: var(--saffron); color: #1A0E00; border-color: var(--saffron); }
.tabs-nav--pills { margin-bottom: 2rem; }

/* ----- Mentors ----- */
.mentor-list { display: grid; gap: 16px; margin-bottom: 2.5rem; }
.mentor { display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; scroll-margin-top: 110px; }
.mentor__photo { width: 140px; height: 140px; border-radius: 18px; object-fit: cover; object-position: top; background: var(--bg-tint); }
.mentor h2 { font-size: 1.25rem; margin: 0 0 .2rem; }
.mentor__body > p:not(.person__role) { color: var(--muted); margin: .6rem 0 0; }
.mentor__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mentor__cols ul { margin: 0; padding-left: 1.1rem; color: var(--muted); display: grid; gap: .3rem; }
.mentor__cols .small-head { margin: 1rem 0 .5rem; }

/* ----- Home: news cards are links now ----- */
a.news-card { text-decoration: none; }
.news-card .card__meta { margin-bottom: .2rem; }
.news-card__img:empty { background: linear-gradient(135deg, var(--blue-soft), var(--saffron-soft)); }
.blog__excerpt { color: var(--muted); font-size: .9rem; margin: .5rem 0 0; }

@media (max-width: 560px) {
  .mentor { grid-template-columns: 1fr; }
  .mentor__photo { width: 100px; height: 100px; }
  .mentor__cols { grid-template-columns: 1fr; }
}

/* ===== Pinned application tabs (left edge) + form pop-up ===== */
/* Horizontal buttons on the left edge: icon only, the label slides out on hover / keyboard focus. */
.side-tabs { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 45; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.side-tab { display: flex; align-items: center; gap: 0; height: 46px; padding: 0 14px 0 13px; border-radius: 0 12px 12px 0; color: #fff; font-weight: 700; font-size: .86rem; letter-spacing: .01em; text-decoration: none; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(11,27,63,.55); transition: gap .25s ease, padding .25s ease, filter .2s ease; }
.side-tab svg { flex: none; width: 20px; height: 20px; }
.side-tab span { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .3s ease, opacity .2s ease; }
.side-tab:hover, .side-tab:focus-visible { gap: .6rem; padding-right: 18px; filter: brightness(1.08); color: #fff; }
.side-tab:hover span, .side-tab:focus-visible span { max-width: 220px; opacity: 1; }
.side-tab:focus-visible { outline: 3px solid var(--saffron-2); outline-offset: 2px; }
.side-tab--saffron { background: #E8700A; }
.side-tab--blue { background: var(--blue); }
.side-tab--green { background: #11845A; }
body.menu-open .side-tabs { display: none; }

.modal--form { max-width: min(980px, 100% - 24px); height: min(90vh, 1000px); max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.modal--form:not([open]) { display: none; }
.form-modal__bar { display: flex; align-items: center; gap: 1rem; padding: .8rem .8rem .8rem 1.4rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.form-modal__bar b { font-family: var(--font-display); font-size: 1.15rem; margin-right: auto; }
.form-modal__open { font-size: .88rem; font-weight: 600; }
.form-modal__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-tint); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.form-modal__body { position: relative; flex: 1; min-height: 0; background: var(--bg); }
.form-modal__body iframe { position: relative; display: block; width: 100%; height: 100%; border: 0; background: transparent; }
.form-modal__loading { position: absolute; left: 50%; top: 40%; width: 36px; height: 36px; margin: -18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--saffron); animation: spin .8s linear infinite; }
.modal--form.is-loaded .form-modal__loading { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Page shown inside the pop-up */
.is-embed { background: var(--bg); }
.is-embed .page-head, .is-embed .form-info { display: none; }
.is-embed .section--tight { padding: 1.2rem 0 2rem; }
.is-embed .form-page { grid-template-columns: 1fr; }
.is-embed .container { width: min(100% - 24px, 900px); }

@media (max-width: 720px) {
  .side-tabs { top: auto; bottom: 90px; transform: none; gap: 5px; }
  .side-tab { height: 40px; padding: 0 10px 0 9px; }
  .side-tab svg { width: 18px; height: 18px; }
  .modal--form { max-width: 100%; width: 100%; height: 100%; max-height: 100%; border-radius: 0; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .side-tab, .side-tab span { transition: none; } .form-modal__loading { animation: none; } }
/* ===== Membership, payments, member area ===== */
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; }
.notice { background: rgba(24,160,106,.12); color: var(--text); border-left: 4px solid var(--green); border-radius: 12px; padding: .9rem 1.1rem; margin: 0 0 1.5rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.inline-form { display: inline; }

.member-intro { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-bottom: 2rem; }
.member-benefits { grid-template-columns: 1fr 1fr; gap: .6rem 1.4rem; }
.member-help { margin-top: 0; }
.member-form { max-width: 980px; }
.member-form__pay { margin: .4rem 0 1rem; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.plan { position: relative; display: block; cursor: pointer; }
.plan input { position: absolute; opacity: 0; inset: 0; }
.plan__body { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.2rem 1.2rem 1.3rem; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .2s, box-shadow .2s, transform .2s; }
.plan:hover .plan__body { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.plan input:checked + .plan__body { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.plan input:focus-visible + .plan__body { outline: 3px solid var(--saffron); outline-offset: 3px; }
.plan__name { font-weight: 700; }
.plan__fee { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -.02em; color: var(--ink); }
[data-theme="dark"] .plan__fee { color: #fff; }
.plan__fee small { font: 500 .85rem var(--font-body); color: var(--muted); }
.plan__for { font-size: .88rem; color: var(--muted); }

.pay { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.pay__card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.pay__label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pay__amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.4rem); letter-spacing: -.03em; line-height: 1.1; }
.pay__btn { width: 100%; justify-content: center; margin-top: .5rem; }
.pay__note { font-size: .86rem; margin-top: .8rem; }
.pay__test { background: var(--saffron-soft); color: var(--text); border-radius: 10px; padding: .6rem .9rem; font-size: .9rem; font-weight: 600; }
.pay__offline { border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: .4rem; }
.bank-list { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1rem 0; }
.bank-list .bank { margin: 0; }

.amounts { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }

.member-login { display: grid; grid-template-columns: minmax(0, 460px) 300px; gap: clamp(1.5rem, 4vw, 3rem); justify-content: center; align-items: start; }
.member-login .help-card { margin-top: 0; }
.member-login .help-card b:not(:first-child) { margin-top: .8rem; }
.member-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.member-card-summary, .member-profile { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem; }
.member-card-summary { border-top: 4px solid var(--saffron); }
.member-actions { display: flex; gap: 1.5rem; align-items: center; margin-top: 1.5rem; font-weight: 500; }

/* Membership certificate (printable) */
.member-cert-wrap { max-width: 900px; }
.member-cert-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.member-cert { position: relative; background: #fffdf8; color: #0F1A33; border: 10px double #C9A24A; border-radius: 6px; padding: clamp(1.5rem, 5vw, 3.2rem); text-align: center; box-shadow: var(--shadow); }
.member-cert__head { display: flex; align-items: center; justify-content: center; gap: 1rem; text-align: left; }
.member-cert__head b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: #0B1B3F; }
.member-cert__head small { color: #5B6680; }
.member-cert__eyebrow { margin: 1.6rem 0 .4rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.2rem); color: #B07A12; letter-spacing: .02em; }
.member-cert__lead { color: #3B4660; margin: .4rem 0; }
.member-cert__name { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.8rem); margin: .4rem 0 .2rem; color: #0B1B3F; }
.member-cert__org { margin: 0 0 .6rem; font-weight: 600; color: #3B4660; }
.member-cert__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2.2rem; margin: 1.6rem 0 0; }
.member-cert__facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #5B6680; }
.member-cert__facts dd { margin: .15rem 0 0; font-weight: 700; }
.member-cert__expired { margin-top: 1.2rem; color: #B42318; font-weight: 600; }
.member-cert__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #E5DCC5; font-size: .8rem; color: #5B6680; }

@media (max-width: 900px) {
  .member-intro, .pay, .member-login, .member-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .member-benefits, .bank-list { grid-template-columns: 1fr; }
}
@media print {
  .utility, .nav, body > footer, .side-tabs, .no-print, .page-head, .modal { display: none !important; }
  body { background: #fff !important; }
  .section { padding: 0 !important; }
  .member-cert { box-shadow: none; }
}
/* ===== Membership apply page ===== */
.mem-head { max-width: 720px; margin-bottom: 1.6rem; }
.mem-h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .4rem; }
.mem-head p { margin: 0; }

.mem-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.mem-plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem 1.6rem 1.5rem; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.mem-plan:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
.mem-plan__name { font-size: 1.15rem; font-weight: 700; margin: 0 0 .35rem; }
.mem-plan__for { color: var(--muted); font-size: .92rem; margin: 0 0 1.2rem; min-height: 2.8em; }
.mem-plan__fee { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; letter-spacing: -.03em; line-height: 1; margin: auto 0 1.2rem; }
.mem-plan__fee small { font: 500 .9rem var(--font-body); color: var(--muted); letter-spacing: 0; }
.mem-plan__cta { justify-content: center; }
.mem-plan:nth-child(1) { border-top: 4px solid var(--saffron); }
.mem-plan:nth-child(2) { border-top: 4px solid var(--blue); }
.mem-plan:nth-child(3) { border-top: 4px solid var(--green); }

.mem-benefits-band { background: var(--bg-tint); border-block: 1px solid var(--line); }
.mem-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.mem-benefit { background: var(--surface); border-radius: 18px; padding: 1.3rem 1.3rem 1.1rem; border: 1px solid var(--line); }
.mem-benefit__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: .8rem; }
.mem-benefit h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 .6rem; }
.mem-benefit ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.mem-benefit li { position: relative; padding-left: 1.2rem; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.mem-benefit li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); }

.mem-aside { position: sticky; top: 110px; }
.mem-summary { display: flex; flex-direction: column; gap: .15rem; background: var(--ink); color: #fff; border-radius: 20px; padding: 1.3rem 1.4rem; }
.mem-summary__label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.65); }
.mem-summary b { font-size: 1.1rem; }
.mem-summary__fee { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; letter-spacing: -.02em; color: var(--saffron-2); line-height: 1.15; }
.mem-summary small { color: rgba(255,255,255,.65); }
.mem-steps { list-style: none; counter-reset: step; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .9rem; }
.mem-steps li { counter-increment: step; position: relative; padding-left: 2.6rem; display: flex; flex-direction: column; }
.mem-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--saffron-soft); color: #B4560A; font-weight: 700; font-size: .85rem; }
.mem-steps b { font-size: .95rem; }
.mem-steps span { font-size: .85rem; color: var(--muted); }

.mem-form-title { font-size: 1.4rem; font-weight: 800; margin: 0 0 1.2rem; }
.mem-options { display: grid; gap: .6rem; }
.mem-option { position: relative; display: block; cursor: pointer; }
.mem-option input { position: absolute; opacity: 0; inset: 0; }
.mem-option__body { display: flex; align-items: center; gap: .8rem; padding: .85rem 1.1rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s, background .2s; }
.mem-option__dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: .2s; }
.mem-option__name { font-weight: 600; flex: 1; }
.mem-option__fee { font-weight: 700; }
.mem-option:hover .mem-option__body { border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
.mem-option input:checked + .mem-option__body { border-color: var(--blue); background: var(--blue-soft); }
.mem-option input:checked + .mem-option__body .mem-option__dot { border-color: var(--blue); box-shadow: inset 0 0 0 4px var(--surface); background: var(--blue); }
.mem-option input:focus-visible + .mem-option__body { outline: 3px solid var(--saffron); outline-offset: 2px; }
.mem-submit { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-top: .4rem; }
.mem-submit .muted { font-size: .88rem; }

@media (max-width: 1100px) { .mem-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .mem-plans { grid-template-columns: 1fr; }
  .mem-plan__for { min-height: 0; }
  .mem-aside { position: static; }
}
@media (max-width: 600px) { .mem-benefits { grid-template-columns: 1fr; } }

/* ===== Funded startups ===== */
.su-stats { display: grid; grid-template-columns: repeat(3, auto) 1fr; align-items: stretch; gap: 1rem; margin-bottom: 1.6rem; }
.su-stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.su-stats > div b { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.su-stats span { font-size: .85rem; color: var(--muted); }
.su-stats__cta { display: flex; flex-direction: column; justify-content: center; gap: .15rem; border-radius: 18px; padding: 1rem 1.5rem; background: var(--ink); color: #fff; text-decoration: none; transition: background .2s; }
.su-stats__cta span { color: rgba(255,255,255,.7); }
.su-stats__cta b { font: 700 1.05rem var(--font-body); color: var(--saffron-2); letter-spacing: 0; }
.su-stats__cta:hover { background: var(--ink-2); color: #fff; }
.su-filter { margin-bottom: 1.4rem; }

.su-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; }
.su-card { position: relative; display: flex; flex-direction: column; gap: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.su-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--blue) 30%, var(--line)); }
.su-card__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.su-card__link:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.su-card__top { display: flex; gap: .9rem; align-items: center; }
.su-card__logo { position: relative; flex: none; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--ink)); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.su-card__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.su-card__logo.has-img { border: 1px solid var(--line); }
.su-card__logo.has-img span { visibility: hidden; }
.su-card__logo.img-missing span { visibility: visible; }
.su-card__logo.img-missing img { display: none; }
.su-card__title { min-width: 0; }
.su-card__title h3 { font-size: 1.08rem; font-weight: 700; margin: 0; line-height: 1.3; }
.su-card__title p { margin: .15rem 0 0; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.su-card__fund { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding: .75rem .95rem; background: var(--bg-tint); border-radius: 12px; }
.su-card__amount { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--green); }
.su-card__when { font-size: .8rem; color: var(--muted); text-align: right; }
.su-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.su-tag { font-size: .74rem; font-weight: 600; padding: .25em .7em; border-radius: 999px; background: var(--bg-tint); color: var(--text); }
.su-tag--seed { background: var(--saffron-soft); color: #A04D06; }
.su-tag--meity { background: var(--blue-soft); color: var(--blue); }
.su-tag--hdfc { background: rgba(24,160,106,.13); color: #0E7A50; }
[data-theme="dark"] .su-tag--seed { color: var(--saffron-2); }
[data-theme="dark"] .su-tag--hdfc { color: #4CD4A0; }
.su-card__text { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.su-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .84rem; }
.su-card__site { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su-card__more { font-weight: 600; color: var(--blue); white-space: nowrap; }
.su-empty { margin-top: 1rem; }
.su-detail-amount { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--green); margin: 0 0 .6rem; }
.fact-box .su-card__tags { margin-bottom: 1rem; }

@media (max-width: 900px) {
  .su-stats { grid-template-columns: repeat(3, 1fr); }
  .su-stats__cta { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .su-stats { gap: .6rem; }
  .su-stats > div { padding: .8rem .75rem; border-radius: 14px; }
  .su-stats > div b { font-size: 1.15rem; }
  .su-stats > div span { font-size: .74rem; }
  .su-stats__cta { padding: .9rem 1.1rem; }
  .su-grid { grid-template-columns: 1fr; }
}

/* Home videos: tag / description are optional (they come from the admin Videos screen) */
.theatre__meta .tag:empty, #playerDesc:empty, .playlist small:empty { display: none; }

/* ===== Gallery ===== */
.gallery-tabs { margin-bottom: 1.6rem; }
.gal-empty { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.4rem, 4vw, 2.2rem); margin-bottom: 2.5rem; box-shadow: var(--shadow); }
.gal-empty[hidden] { display: none; }
.gal-empty__icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.gal-empty h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 800; margin: 0 0 .4rem; }
.gal-empty p { color: var(--muted); margin: 0; max-width: 60ch; }
.gal-empty__ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.gal-empty--small { box-shadow: none; background: var(--bg-tint); border: 0; }
.gal-videos { margin-top: 1rem; scroll-margin-top: 110px; }
.gal-videos__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.gal-videos__head h2 { margin: 0; }
.gal-videos__head small { font: 600 .9rem var(--font-body); color: var(--muted); margin-left: .3rem; }
.gal-video p { font-weight: 600; margin: .7rem 0 .15rem; }
.gal-video small { display: block; color: var(--muted); font-size: .84rem; }
@media (max-width: 600px) { .gal-empty { flex-direction: column; } }
