/* SIETAR India – Jaipur 2026 conference components.
 * Self-contained (no Flatsome elements); follows the site's look:
 * maroon #92191c, Raleway headings, Heebo body, uppercase bold buttons, 5px radius, 2px maroon card borders. */

.sj, .sj-strip {
	--sj-maroon: #92191c;
	--sj-maroon-dark: #74131a;
	--sj-tint: #f9f1f1;
	--sj-tint-2: #f3e4e4;
	--sj-line: #e8d6d6;
	--sj-ink: #000;
	--sj-muted: #000; /* site rule: no grey text */
	--sj-pink: #d9638f;
	--sj-yellow: #ede45f;
	font-family: "Heebo", sans-serif;
	color: var(--sj-ink);
	box-sizing: border-box;
}
.sj *, .sj *::before, .sj *::after,
.sj-strip *, .sj-strip *::before, .sj-strip *::after { box-sizing: inherit; }

.sj-wrap { max-width: 1110px; margin: 0 auto; padding: 0 16px; }

/* ---------- Buttons ---------- */
.sj-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .45em;
	min-height: 2.6em; padding: 0 1.3em; margin: 0 .6em .6em 0;
	font-family: "Heebo", sans-serif; font-size: .95rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
	line-height: 1.2; text-decoration: none; border: 2px solid var(--sj-maroon); border-radius: 5px;
	background: var(--sj-maroon); color: #fff; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.sj-btn::after { content: "›"; font-size: 1.3em; line-height: 1; margin-top: -.1em; }
.sj-btn:hover, .sj-btn:focus-visible { background: var(--sj-maroon-dark); border-color: var(--sj-maroon-dark); color: #fff; }
.sj-btn--outline { background: transparent; color: var(--sj-maroon); }
.sj-btn--outline:hover, .sj-btn--outline:focus-visible { background: var(--sj-maroon); color: #fff; }
.sj-btn--light { background: #fff; border-color: #fff; color: var(--sj-maroon); }
.sj-btn--light:hover, .sj-btn--light:focus-visible { background: var(--sj-tint-2); border-color: var(--sj-tint-2); color: var(--sj-maroon); }
.sj a:focus-visible, .sj button:focus-visible, .sj-strip a:focus-visible { outline: 3px solid var(--sj-yellow); outline-offset: 2px; }

/* ---------- Page body ---------- */
.sj-page { padding: 56px 0 72px; }
.sj h2, .sj h3, .sj h4 { font-family: "Raleway", sans-serif; color: var(--sj-ink); }
.sj-h2 { font-size: 2rem; font-weight: 400; margin: 0 0 .35em; }
.sj-rule { display: block; width: 100px; height: 4px; background: var(--sj-maroon); margin: 0 0 1.6em; }
.sj h3 { font-size: 1.3rem; font-weight: 600; color: var(--sj-maroon); margin: 1.8em 0 .5em; }
.sj h4 { font-size: 1.05rem; font-weight: 700; margin: 1.4em 0 .4em; }
.sj p, .sj li { font-size: 1rem; line-height: 1.65; }
.sj ul { margin: 0 0 1.2em 1.2em; padding: 0; }
.sj li { margin-bottom: .45em; }
.sj-prose { max-width: 820px; }

/* ---------- Tabs ---------- */
.sj-tablist { display: flex; gap: 6px; border-bottom: 2px solid var(--sj-maroon); margin: 0 0 40px; padding: 0; }
.sj-tab {
	flex: 1 1 0; display: flex; align-items: center; justify-content: center; text-align: center;
	appearance: none; -webkit-appearance: none; margin: 0 0 -2px; padding: 14px 12px; min-height: 3.6em;
	font-family: "Raleway", sans-serif; font-size: .9rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	background: var(--sj-tint); color: var(--sj-muted); border: 2px solid transparent; border-bottom: 0; border-radius: 5px 5px 0 0;
	cursor: pointer; line-height: 1.3; transition: background .15s, color .15s;
}
.sj-tab:hover { background: var(--sj-tint-2); color: var(--sj-maroon); }
.sj-tab[aria-selected="true"] { background: #fff; color: var(--sj-maroon); border-color: var(--sj-maroon); border-bottom: 2px solid #fff; }
.sj-tab .sj-tab-num { display: inline-block; margin-right: .5em; }
.sj-panel[hidden] { display: none; }
.sj-panel:focus { outline: none; }

/* ---------- At a glance ---------- */
.sj-keyfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 32px; }
.sj-fact { background: var(--sj-tint); border-left: 4px solid var(--sj-maroon); border-radius: 0 5px 5px 0; padding: 16px 18px; }
.sj-fact-label { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sj-muted); margin-bottom: 4px; }
.sj-fact-value { display: block; font-family: "Raleway", sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.35; color: var(--sj-maroon); }
.sj-fees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 20px; }
.sj-fee { border: 2px solid var(--sj-maroon); border-radius: 5px; padding: 18px; text-align: center; }
.sj-fee-amount { display: block; font-family: "Raleway", sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--sj-maroon); line-height: 1.2; }
.sj-fee-who { display: block; font-size: .92rem; color: var(--sj-muted); margin-top: 4px; }
.sj-actions { margin-top: 28px; }

/* ---------- Schedule ---------- */
.sj-intro { font-size: 1.05rem; max-width: 760px; }
.sj-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 8px; font-size: .9rem; color: var(--sj-muted); }
.sj-day-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sj-day-title small { font-family: "Heebo", sans-serif; font-size: .95rem; font-weight: 400; color: var(--sj-muted); }
.sj-sched { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 40px; font-size: .93rem; border: 1px solid var(--sj-line); border-radius: 5px; overflow: hidden; }
.sj-sched th { background: var(--sj-maroon); color: #fff; text-align: left; padding: 12px 14px; font-family: "Raleway", sans-serif; font-weight: 700; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; border: 0; }
.sj-sched td { padding: 12px 14px; vertical-align: top; line-height: 1.45; border: 0; border-top: 1px solid var(--sj-line); border-left: 1px solid var(--sj-line); background: #fff; }
.sj-sched td:first-child { border-left: 0; }
.sj-sched .sj-time { white-space: nowrap; font-weight: 700; width: 1%; color: var(--sj-maroon); }
.sj-sched .sj-name { font-family: "Raleway", sans-serif; font-weight: 700; width: 15%; }
.sj-sched tr.sj-break td { background: var(--sj-tint); color: var(--sj-maroon); font-weight: 600; padding-top: 8px; padding-bottom: 8px; }
.sj-badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; margin-bottom: 6px; }
.sj-badge--research { background: #e6ecf8; color: #23408f; }
.sj-badge--practitioner { background: #fbe9f0; color: #a3265b; }
.sj-badge--frontier { background: #fbf6cf; color: #665600; }
.sj-s-title { display: block; font-style: italic; }
.sj-s-speaker { display: block; font-weight: 700; margin-top: 3px; }
.sj-s-role { display: block; font-size: .88em; color: var(--sj-muted); }
a.sj-session { display: block; color: inherit; text-decoration: none; border-radius: 5px; margin: -6px; padding: 6px; transition: background .15s, box-shadow .15s; }
a.sj-session:hover, a.sj-session:focus-visible { background: var(--sj-tint); box-shadow: inset 0 0 0 1px var(--sj-line); color: inherit; }
.sj-more { display: inline-block; margin-top: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sj-maroon); }
.sj-more::after { content: " ›"; }

/* ---------- Session modal ---------- */
.sj-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sj-modal[hidden] { display: none; }
.sj-modal-backdrop { position: absolute; inset: 0; background: rgba(20, 6, 7, .78); }
.sj-modal-dialog { position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.4); overflow: hidden; }
.sj-modal-bar { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; background: var(--sj-maroon); color: #fff; }
.sj-modal-title { flex: 1; margin: 0; font-family: "Raleway", sans-serif; font-size: .9rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sj-modal-btn { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 0; padding: 0; border: 0; border-radius: 5px; background: rgba(255,255,255,.12); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.sj-modal-btn:hover, .sj-modal-btn:focus-visible { background: rgba(255,255,255,.28); }
.sj-modal-btn:disabled { opacity: .35; cursor: default; }
.sj-modal-body { overflow: auto; -webkit-overflow-scrolling: touch; background: #fff; }
.sj-modal-body img { display: block; width: 100%; height: auto; }
body.sj-modal-open { overflow: hidden; }

/* ---------- Pre-conference tracks ---------- */
.sj-tracks-when { display: inline-block; background: var(--sj-tint); border-left: 4px solid var(--sj-maroon); padding: 10px 16px; margin: 0 0 28px; font-weight: 600; }
.sj-track { border: 2px solid var(--sj-maroon); border-radius: 5px; padding: 28px; margin: 0 0 32px; }
.sj-track-label { display: inline-block; background: var(--sj-maroon); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; }
.sj-track h3 { margin-top: 10px; }
.sj-track-sub { margin: -.2em 0 1em; color: var(--sj-muted); font-style: italic; }
.sj-mini { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: .93rem; }
.sj-mini th { background: var(--sj-tint); color: var(--sj-maroon); text-align: left; padding: 10px 12px; font-family: "Raleway", sans-serif; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; border: 0; }
.sj-mini td { padding: 10px 12px; border: 0; border-top: 1px solid var(--sj-line); vertical-align: top; line-height: 1.45; }
.sj-mini td:first-child { white-space: nowrap; font-weight: 700; color: var(--sj-maroon); }
.sj-papers { list-style: none; margin: 0 0 24px !important; padding: 0; counter-reset: sj-paper; }
.sj-papers li { position: relative; margin: 0; padding: 12px 0 12px 44px; border-top: 1px solid var(--sj-line); counter-increment: sj-paper; }
.sj-papers li::before { content: counter(sj-paper); position: absolute; left: 0; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--sj-tint); color: var(--sj-maroon); font-weight: 700; text-align: center; line-height: 30px; font-size: .9rem; }
.sj-papers strong { display: block; }
.sj-papers span { color: var(--sj-muted); font-size: .93rem; }

/* ---------- Crew ---------- */
.sj .sj-crew { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.sj-crew li { margin: 0; }
.sj-card { height: 100%; border: 2px solid var(--sj-maroon); border-radius: 5px; padding: 20px; background: #fff; }
.sj-card-photo { margin: 0 0 16px; }
.sj-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%; border-radius: 3px; margin: 0; }
.sj-card-role { margin: 0 0 4px !important; font-size: .85rem !important; line-height: 1.4 !important; color: var(--sj-muted); }
.sj-card-name { margin: 0 !important; font-family: "Raleway", sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--sj-ink); }
.sj-card .sj-rule { margin: 12px 0 0; width: 60px; height: 3px; }

/* ---------- Home page strip ---------- */
.sj-strip { background: var(--sj-maroon); color: #fff; padding: 28px 0; }
.sj-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; }
.sj-strip-text { flex: 1 1 320px; }
.sj-strip-eyebrow { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.sj-strip-title { margin: 0 0 6px; font-family: "Raleway", sans-serif; font-size: 1.45rem; font-weight: 400; line-height: 1.25; color: #fff; }
.sj-strip-meta { margin: 0; color: rgba(255,255,255,.85); font-size: .95rem; }
.sj-countdown { display: flex; gap: 10px; }
.sj-cd-unit { min-width: 70px; padding: 10px 6px; background: rgba(255,255,255,.12); border-radius: 5px; text-align: center; }
.sj-cd-num { display: block; font-family: "Raleway", sans-serif; font-size: 1.9rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sj-cd-label { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.sj-cd-live { font-family: "Raleway", sans-serif; font-size: 1.2rem; font-weight: 700; }
.sj-strip-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.sj-strip-actions .sj-btn { margin: 0; }
.sj-strip-link { color: #fff; font-size: .9rem; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.sj-strip-link:hover { color: #fff; opacity: .85; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.sj-keyfacts, .sj-fees { grid-template-columns: 1fr; }
	.sj .sj-crew { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 849px) {
	.sj-tablist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-bottom: 0; }
	.sj-tab { justify-content: flex-start; border: 2px solid var(--sj-line); border-radius: 5px; margin: 0; padding: 12px; font-size: .8rem; text-align: left; }
	.sj-tab[aria-selected="true"] { border: 2px solid var(--sj-maroon); background: var(--sj-maroon); color: #fff; }

	/* Schedule becomes stacked cards */
	.sj-sched, .sj-sched tbody, .sj-sched tr, .sj-sched td { display: block; width: 100% !important; }
	.sj-sched { border: 0; border-radius: 0; overflow: visible; }
	.sj-sched thead { display: none; }
	.sj-sched tr { border: 1px solid var(--sj-line); border-radius: 5px; margin: 0 0 12px; overflow: hidden; }
	.sj-sched td { border: 0; border-top: 1px solid var(--sj-line); }
	.sj-sched td:empty { display: none; }
	.sj-sched .sj-time { background: var(--sj-maroon); color: #fff; border-top: 0; }
	.sj-sched .sj-name { border-top: 0; padding-bottom: 4px; }
	.sj-sched td[data-room]::before { content: attr(data-room); display: block; margin-bottom: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sj-muted); }
	.sj-sched tr.sj-break { display: flex; background: var(--sj-tint); }
	.sj-sched tr.sj-break td { width: auto !important; border: 0; background: var(--sj-tint); color: var(--sj-maroon); }
}

@media (max-width: 600px) {
	.sj-page { padding: 36px 0 56px; }
	.sj-h2 { font-size: 1.6rem; }
	.sj-tablist { grid-template-columns: 1fr; }
	.sj .sj-crew { grid-template-columns: 1fr; }
	.sj-track { padding: 18px; }
	.sj-mini thead { display: none; }
	.sj-mini, .sj-mini tbody, .sj-mini tr, .sj-mini td { display: block; width: 100%; }
	.sj-mini tr { border-top: 2px solid var(--sj-line); padding: 8px 0; }
	.sj-mini td { border: 0; padding: 3px 0; }
	.sj-strip-inner { flex-direction: column; align-items: stretch; text-align: center; }
	.sj-strip-text { flex: none; }
	.sj-countdown { justify-content: center; }
	.sj-cd-unit { min-width: 0; flex: 1; }
	.sj-cd-num { font-size: 1.5rem; }
	.sj-btn { width: 100%; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.sj *, .sj-strip * { transition: none !important; }
}

/* ---------- Theme overrides ---------- */
/* Leave room for the sticky header when jumping to a tab via #hash. */
[data-sj-tabs] { scroll-margin-top: 120px; }
/* Flatsome removes left padding on first/last table cells; restore it inside our tables. */
.sj .sj-sched td:first-child, .sj .sj-sched th:first-child,
.sj .sj-mini td:first-child, .sj .sj-mini th:first-child { padding-left: 14px; }
.sj .sj-sched td:last-child, .sj .sj-sched th:last-child,
.sj .sj-mini td:last-child, .sj .sj-mini th:last-child { padding-right: 14px; }
@media (max-width: 600px) {
	.sj .sj-mini td:first-child, .sj .sj-mini td:last-child { padding-left: 0; padding-right: 0; }
}

/* ---------- Schedule: larger, easier-to-read type ----------
 * Flatsome shrinks td to .9em, so sizes are set on the cells themselves with enough specificity to win. */
.sj .sj-intro { font-size: 1.15rem; }
.sj .sj-legend .sj-badge { font-size: .85rem; }
.sj .sj-day-title { font-size: 1.6rem; }
.sj .sj-day-title small { font-size: 1.1rem; }
.sj .sj-sched td { font-size: 1.0625rem; line-height: 1.5; }
.sj .sj-sched th { font-size: .95rem; }
.sj .sj-sched .sj-name { font-size: 1.0625rem; }
.sj .sj-sched .sj-s-role { font-size: .95rem; }
.sj .sj-sched .sj-badge { font-size: .78rem; padding: 3px 8px; }
.sj .sj-sched .sj-more { font-size: .88rem; }
.sj .sj-sched td[data-room]::before { font-size: .8rem; }
.sj-modal .sj-modal-title { font-size: 1rem; color: #fff; }

/* Flatsome greys table cells (#666); keep our text black. Lower specificity than the maroon time/break rules. */
.sj td, .sj li, .sj p { color: var(--sj-ink); }

/* Pre-conference tables/lists: same readable size as the main schedule. */
.sj .sj-mini td { font-size: 1.0625rem; line-height: 1.5; }
.sj .sj-mini th { font-size: .95rem; }
.sj .sj-papers li { font-size: 1.0625rem; }
.sj .sj-papers span { font-size: 1rem; }
