/* Public side of the conference add-on. Scoped to .qconf so it sits inside any theme. */
.qconf {
	--qc-ink: #1d2733;
	--qc-muted: #5b6675;
	--qc-line: #cfd6df;
	--qc-soft: #f4f6f9;
	--qc-brand: #1e4d8c;
	--qc-brand-ink: #fff;
	--qc-ok: #1f7a3d;
	--qc-bad: #b3261e;
	--qc-warn: #8a5a00;
	color: var(--qc-ink);
	font-size: 1rem;
	line-height: 1.55;
	max-width: 760px;
	margin-inline: auto;
	overflow-wrap: anywhere;
}
.qconf *, .qconf *::before, .qconf *::after { box-sizing: border-box; }
.qconf [lang="ta"], .qconf :lang(ta) { line-height: 1.7; }
.qconf h2 { font-size: 1.5rem; margin: 0 0 .5rem; line-height: 1.25; }
.qconf h3 { font-size: 1.15rem; margin: 1.4rem 0 .5rem; }
.qconf [hidden] { display: none !important; }

/* ---------- layout ---------- */
.qconf-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 16px; }
.qconf-grid > * { grid-column: span 6; }
.qconf-grid > .qconf-w-half { grid-column: span 3; }
.qconf-grid > .qconf-w-third { grid-column: span 2; }
@media (max-width: 560px) { .qconf-grid > .qconf-w-half, .qconf-grid > .qconf-w-third { grid-column: span 6; } }
.qconf-step-title { font-size: 1.2rem; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--qc-brand); }
.qconf-step-title span { color: var(--qc-brand); font-weight: 700; margin-right: .3em; }
.qconf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- fields ---------- */
.qconf-field { min-width: 0; }
.qconf-field > label, .qconf-field legend, .qconf-lookup label { display: block; font-weight: 600; margin-bottom: 4px; }
.qconf-field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.qconf-field legend { padding: 0; }
.qconf input[type="text"], .qconf input[type="email"], .qconf input[type="tel"], .qconf input[type="number"], .qconf input[type="url"],
.qconf input[type="date"], .qconf input[type="file"], .qconf select, .qconf textarea {
	width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--qc-line); border-radius: 8px; background: #fff; color: var(--qc-ink);
	font: inherit; min-height: 44px;
}
.qconf textarea { min-height: 96px; resize: vertical; }
.qconf input:focus-visible, .qconf select:focus-visible, .qconf textarea:focus-visible, .qconf button:focus-visible, .qconf a:focus-visible {
	outline: 3px solid rgba(30, 77, 140, .45); outline-offset: 1px; border-color: var(--qc-brand);
}
.qconf-field.has-error input, .qconf-field.has-error select, .qconf-field.has-error textarea { border-color: var(--qc-bad); }
.qconf-req { color: var(--qc-bad); }
.qconf-help, .qconf-muted, .qconf-counter { color: var(--qc-muted); font-size: .875rem; margin: 2px 0 6px; }
.qconf-counter.is-over { color: var(--qc-bad); font-weight: 600; }
.qconf-error { color: var(--qc-bad); font-size: .9rem; margin: 4px 0 0; font-weight: 600; }
.qconf-choice { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 1px solid var(--qc-line); border-radius: 8px; margin: 0 0 6px; cursor: pointer; background: #fff; }
.qconf-choice:hover { border-color: var(--qc-brand); }
.qconf-choice input { margin-top: .3em; width: 1.1em; height: 1.1em; flex: none; }
.qconf-choice span { flex: 1; }
.qconf-choice:has(input:checked) { border-color: var(--qc-brand); background: #eef4fc; }
.qconf-price { font-style: normal; font-weight: 700; white-space: nowrap; color: var(--qc-brand); }
.qconf-early { display: block; width: 100%; color: var(--qc-ok); font-weight: 600; }
.qconf-cat { flex-wrap: wrap; }
.qconf-stars { display: flex; gap: 4px; }
.qconf-stars label { cursor: pointer; font-size: 1.8rem; line-height: 1; color: #c3cad4; }
.qconf-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qconf-stars label:has(input:checked) span, .qconf-stars label:hover span { color: #e0a100; }
.qconf-loc { margin-bottom: 6px; }
.qconf-loc-name { display: block; font-size: .8rem; color: var(--qc-muted); margin-bottom: 2px; }
.qconf-info { background: var(--qc-soft); border-left: 4px solid var(--qc-brand); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.qconf-info p { margin: .4em 0; }
.qconf-divider { border: 0; border-top: 1px solid var(--qc-line); margin: 6px 0; }
.qconf-heading { margin: 8px 0 0; }
.qconf-person { gap: 10px 14px; }

/* authors */
.qconf-author { border: 1px solid var(--qc-line); border-radius: 10px; padding: 12px 14px 14px; margin: 0 0 12px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 14px; background: #fcfdff; }
.qconf-author legend { font-weight: 700; padding: 0 6px; color: var(--qc-brand); }
.qconf-author > .qconf-field { grid-column: span 6; }
.qconf-author > .qconf-w-half { grid-column: span 3; }
@media (max-width: 560px) { .qconf-author > .qconf-w-half { grid-column: span 6; } }
.qconf-author-foot { grid-column: span 6; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.qconf-author-foot .qconf-choice { margin: 0; }
.qconf-wa { margin-top: 10px; }

/* coupon + total */
.qconf-coupon { display: flex; gap: 8px; }
.qconf-coupon input { flex: 1; text-transform: uppercase; }
.qconf-coupon-msg { min-height: 1.4em; margin: 4px 0 0; font-weight: 600; }
.qconf-coupon-msg.is-ok { color: var(--qc-ok); }
.qconf-coupon-msg.is-bad { color: var(--qc-bad); }
.qconf-total { margin-top: 18px; padding: 12px 16px; border: 2px solid var(--qc-brand); border-radius: 10px; background: #f3f7fd; }
.qconf-total-line, .qconf-total-sum { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.qconf-total-sum { border-top: 1px solid var(--qc-line); margin-top: 6px; padding-top: 8px; font-size: 1.15rem; }

/* buttons */
.qconf-btn, .qconf button.qconf-btn {
	display: inline-block; padding: 10px 18px; min-height: 44px; border: 1px solid var(--qc-brand); border-radius: 8px; background: #fff; color: var(--qc-brand);
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.3;
}
.qconf-btn:hover { background: #eef4fc; }
.qconf-btn-primary, .qconf-btn-upi { background: var(--qc-brand); color: var(--qc-brand-ink); }
.qconf-btn-primary:hover, .qconf-btn-upi:hover { background: #163b6c; color: #fff; }
.qconf-btn[disabled] { opacity: .6; cursor: wait; }
.qconf-link { background: none; border: 0; color: var(--qc-bad); text-decoration: underline; cursor: pointer; font: inherit; padding: 4px; }
.qconf-copy { font: inherit; font-size: .85rem; border: 1px solid var(--qc-line); background: #fff; border-radius: 6px; padding: 2px 10px; cursor: pointer; }
.qconf-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 22px; }
.qconf-form:not(.is-js) .qconf-step + .qconf-step { margin-top: 28px; }

/* messages */
.qconf-alert { background: #fde8e6; border: 1px solid #f0b4ae; color: #7a1710; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-weight: 600; }
.qconf-success { background: #e6f5ea; border: 1px solid #a5d6b3; color: #14532d; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.qconf-success p { margin: 0; }
.qconf-note { background: #fff6dc; border: 1px solid #ecd48a; color: #5b4300; padding: 10px 14px; border-radius: 8px; }
.qconf-ok { color: var(--qc-ok); font-weight: 600; }
.qconf-intro { margin-bottom: 18px; }

/* status page */
.qconf-status-head h2 { margin-bottom: 4px; }
.qconf-ref { font-size: 1.1rem; margin: .2em 0; }
.qconf-ref strong { font-size: 1.4rem; letter-spacing: .03em; }
.qconf-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #eef1f5; font-size: .85rem; font-weight: 700; }
.qconf-st-confirmed, .qconf-st-accepted { background: #dff3e4; color: #14532d; }
.qconf-st-pending, .qconf-st-waitlist, .qconf-st-new { background: #fff1cc; color: #6b4800; }
.qconf-st-cancelled, .qconf-st-rejected { background: #fde4e1; color: #7a1710; }
.qconf-answers dl { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 6px 14px; margin: 0; }
.qconf-answers dt { font-weight: 600; color: var(--qc-muted); }
.qconf-answers dd { margin: 0; }
@media (max-width: 560px) { .qconf-answers dl { grid-template-columns: 1fr; } .qconf-answers dd { margin-bottom: 8px; } }

/* payment */
.qconf-pay { margin-top: 24px; padding: 16px 18px; border: 1px solid var(--qc-line); border-radius: 12px; background: #fff; }
.qconf-pay h3 { margin-top: 0; }
.qconf-amount { font-size: 1.1rem; }
.qconf-amount strong { font-size: 1.6rem; color: var(--qc-brand); }
.qconf-upi { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin: 14px 0; }
.qconf-qr-fig { margin: 0; text-align: center; }
.qconf-qr { width: 220px; max-width: 70vw; aspect-ratio: 1; border: 1px solid var(--qc-line); border-radius: 8px; padding: 6px; background: #fff; display: inline-block; }
.qconf-qr svg { width: 100%; height: 100%; display: block; }
.qconf-qr-fig figcaption { font-size: .85rem; color: var(--qc-muted); margin-top: 4px; }
.qconf-upi-side { flex: 1; min-width: 200px; }
.qconf-bank { margin: 10px 0; }
.qconf-bank pre { white-space: pre-wrap; background: var(--qc-soft); padding: 10px 12px; border-radius: 8px; font: inherit; margin: 6px 0 0; }
.qconf-bank summary { cursor: pointer; font-weight: 600; }
.qconf-payform { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--qc-line); display: grid; gap: 12px; }
.qconf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .qconf-row { grid-template-columns: 1fr; } }

/* lookup */
.qconf-lookup { max-width: 460px; display: grid; gap: 12px; }

/* conference card + tables */
.qconf-logo img { max-height: 90px; width: auto; height: auto; }
.qconf-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0; }
.qconf-facts dt { font-weight: 700; color: var(--qc-muted); }
.qconf-facts dd { margin: 0; }
.qconf-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.qconf-table th, .qconf-table td { padding: 8px 10px; border-bottom: 1px solid var(--qc-line); text-align: left; vertical-align: top; }
.qconf-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--qc-muted); }
.qconf-table .r { text-align: right; white-space: nowrap; }
.qconf-table .is-now { font-weight: 700; color: var(--qc-brand); }
.qconf-table tr.is-past { color: #8a94a3; }
.qconf-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }

@media (prefers-reduced-motion: no-preference) { .qconf-btn, .qconf-choice { transition: background-color .15s, border-color .15s; } }
@media (prefers-color-scheme: dark) {
	.qconf.qconf-auto-dark { --qc-ink: #e8edf3; --qc-line: #3b4656; --qc-soft: #1f2833; --qc-muted: #aab4c2; }
}

/* Peer review pages */
.qconf-rv-scores th{text-align:left;font-weight:500;width:55%}
.qconf-rv-scores .qconf-choice{display:inline-flex;align-items:center;gap:4px;margin-right:10px}
.qconf-rv-form textarea,.qconf-rev-form textarea{width:100%}
.qconf-guidelines{margin:12px 0;padding:10px 14px;border:1px solid #d9dee5;border-radius:8px}
.qconf-guidelines summary{cursor:pointer;font-weight:600}
.qconf-papertext{max-height:420px;overflow:auto;padding:12px 16px;border:1px solid #d9dee5;border-radius:8px;background:#fafbfc}
.qconf-review-page h4{margin:14px 0 4px}
.qconf-letter{margin:14px 0}

/* Programme, accepted papers, presentation slot */
.qconf-programme { max-width: 920px; }
.qconf-prog-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.qconf-prog-days { display: flex; flex-wrap: wrap; gap: 6px; margin-right: auto; }
.qconf-prog-days a { padding: 4px 12px; border: 1px solid var(--qc-line); border-radius: 999px; text-decoration: none; color: var(--qc-brand); }
.qconf-prog-day { margin: 0 0 28px; }
.qconf-prog-day > h3 { border-bottom: 2px solid var(--qc-brand); padding-bottom: 4px; margin-bottom: 4px; }
.qconf-sess { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--qc-line); break-inside: avoid; }
.qconf-sess-time { font-weight: 600; font-variant-numeric: tabular-nums; }
.qconf-sess-time span { display: block; font-weight: 400; font-size: .9em; color: var(--qc-muted); }
.qconf-sess-kind { margin: 0; font-size: .8em; text-transform: uppercase; letter-spacing: .04em; color: var(--qc-muted); }
.qconf-sess h4 { margin: 2px 0 4px; font-size: 1.05em; }
.qconf-sess-who { margin: 4px 0; }
.qconf-sess-who span { margin-right: 14px; }
.qconf-sess-papers { margin: 6px 0 0; padding-left: 22px; }
.qconf-sess-papers li { margin: 4px 0; }
.qconf-sess-at { font-variant-numeric: tabular-nums; color: var(--qc-muted); }
.qconf-sess-code { font-weight: 600; }
.qconf-sess-authors { color: var(--qc-muted); font-style: italic; }
.qconf-sess-break, .qconf-sess-lunch { background: var(--qc-soft); padding-inline: 8px; }
.qconf-acc-list { padding-left: 22px; }
.qconf-acc-list li { margin: 8px 0; }
.qconf-slot { background: #eef4fb; border-left: 4px solid var(--qc-brand); padding: 8px 12px; border-radius: 4px; }
@media (max-width: 560px) { .qconf-sess { grid-template-columns: 1fr; gap: 4px; } }
@media print {
	.qconf-noprint { display: none !important; }
	.qconf-programme { max-width: none; }
	.qconf-prog-day { break-before: page; }
	.qconf-prog-day:first-of-type { break-before: auto; }
}

/* ---- Proceedings and papers (2.0) ---- */
.qconf-proc-head h2 { margin-bottom: 4px; }
.qconf-proc-head p { margin: 2px 0; }
.qconf-proc-contents { margin-top: 1.6em; }
.qconf-proc-list li { margin-bottom: .9em; }
.qconf-doi { word-break: break-all; }
.qconf-paper-page .qconf-pill { display: inline-block; }
.qconf-paper-title { margin: .3em 0 .2em; line-height: 1.3; }
.qconf-paper-alttitle { margin: 0 0 .8em; color: var(--qc-muted); font-size: 1.05em; }
.qconf-paper-authors { list-style: none; margin: .6em 0 1em; padding: 0; }
.qconf-paper-authors li { margin: .2em 0; }
.qconf-orcid { font-size: .8em; padding: 1px 6px; border-radius: 9px; background: #a6ce39; color: #fff; text-decoration: none; }
.qconf-paper-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 1em; }
.qconf-paper-facts dt { color: var(--qc-muted); }
.qconf-paper-facts dd { margin: 0; }
.qconf-paper-abstract, .qconf-paper-cite { margin-top: 1.4em; }
.qconf-paper-cite p { padding: 10px 12px; background: var(--qc-soft); border-left: 3px solid var(--qc-brand); }
.qconf-certs-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
