/* Pooja Arts Exams: portal and protected exam screen */
.pe-card { background: var(--wp--preset--color--tertiary, #FFF6DC); border: 1px solid var(--wp--preset--color--secondary, #C9972B); border-radius: 8px; padding: 1.5rem; margin-block: 1rem; }
.pe-card h2, .pe-card h3 { margin-top: 0; }
.pe-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pe-head a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.pe-meta { color: var(--wp--preset--color--muted, #4A4034); margin: 0 0 0.75rem; }
.pe-notice { padding: 0.8rem 1rem; border-radius: 6px; border: 1px solid #0F5132; background: #E6F4EA; color: #0F5132; font-weight: 600; }
.pe-notice--error { border-color: #7F1D1D; background: #FDECEA; color: #7F1D1D; }
.pe-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.7rem 1.6rem; border: 0; border-radius: 999px; background: var(--wp--preset--color--primary, #E98C14); color: var(--wp--preset--color--contrast, #17120B); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.pe-btn:hover { background: var(--wp--preset--color--contrast, #17120B); color: var(--wp--preset--color--gold-light, #F3D27A); }
.pe-login form p { margin: 0 0 0.9rem; }
.pe-login label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.pe-login input[type="text"], .pe-login input[type="password"] { width: 100%; box-sizing: border-box; min-height: 2.9rem; padding: 0.6rem 0.9rem; font: inherit; border: 1px solid var(--wp--preset--color--secondary, #C9972B); border-radius: 6px; }
.pe-login input[type="submit"] { min-height: 2.75rem; padding: 0.7rem 1.6rem; border: 0; border-radius: 999px; background: var(--wp--preset--color--primary, #E98C14); font: inherit; font-weight: 700; cursor: pointer; }

/* exam screen */
body.pe-exam-active .wp-site-blocks > header, body.pe-exam-active .wp-site-blocks > footer, body.pe-exam-active .paa-titleband, body.pe-exam-active .paa-wa-float, body.pe-exam-active .paa-music { display: none !important; }
.pe-exam { position: relative; min-height: 60vh; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pe-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 1rem; background: var(--wp--preset--color--contrast, #17120B); color: var(--wp--preset--color--gold-light, #F3D27A); }
.pe-timer { font-variant-numeric: tabular-nums; font-size: 1.25rem; font-weight: 700; }
.pe-paper { max-width: 48rem; margin-inline: auto; padding: 1rem; position: relative; z-index: 1; }
.pe-q { border: 0; border-bottom: 1px solid var(--wp--custom--paa--line, #D9BE7A); margin: 0 0 1.5rem; padding: 0 0 1rem; }
.pe-q legend { font-weight: 700; font-size: 1.15rem; padding: 0; margin-bottom: 0.6rem; }
.pe-opt { display: flex; gap: 0.7rem; align-items: flex-start; min-height: 2.75rem; padding: 0.45rem 0.6rem; border-radius: 6px; cursor: pointer; }
.pe-opt:hover { background: var(--wp--preset--color--tertiary, #FFF6DC); }
.pe-opt input { width: 1.4rem; height: 1.4rem; margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--wp--preset--color--primary, #E98C14); }
.pe-watermark { position: fixed; inset: 0; z-index: 20; pointer-events: none; background-image: var(--pe-wm); background-repeat: repeat; }
.pe-gate { display: none; position: fixed; inset: 0; z-index: 100; align-items: center; justify-content: center; padding: 1rem; background: rgba(23, 18, 11, 0.97); }
.pe-gate.is-open { display: flex; }
.pe-gate__box { max-width: 30rem; background: var(--wp--preset--color--base, #fff); padding: 2rem; border-radius: 8px; text-align: center; }
.pe-gate__warn { color: #7F1D1D; font-weight: 600; min-height: 1.5rem; }
.pe-covered .pe-paper, .pe-covered .pe-bar { visibility: hidden; }
@media print { body * { display: none !important; } }

.pe-examlist { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-block: 1rem; }
.pe-examlist .pe-card { margin: 0; }
.pe-examlist > p { grid-column: 1 / -1; margin: 0; }
.paa-section--dark .pe-card { background: var(--wp--preset--color--ink-2, #261D10); border-color: var(--wp--preset--color--gold-light, #F3D27A); color: var(--wp--preset--color--tertiary, #FFF6DC); }
.paa-section--dark .pe-card h3 { color: var(--wp--preset--color--gold-light, #F3D27A); }
.paa-section--dark .pe-meta { color: var(--wp--preset--color--gold-light, #F3D27A); }
.paa-section--dark a.pe-btn.pe-btn { color: var(--wp--preset--color--contrast, #17120B); }
.paa-section--dark a.pe-btn.pe-btn:hover { background: var(--wp--preset--color--gold-light, #F3D27A); color: var(--wp--preset--color--contrast, #17120B); }

/* approval login */
.pe-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pe-login input[type="text"], .pe-login input[type="email"] { width: 100%; box-sizing: border-box; min-height: 2.9rem; padding: 0.6rem 0.9rem; font: inherit; border: 1px solid var(--wp--preset--color--secondary, #C9972B); border-radius: 6px; }
.pe-wait { text-align: center; max-width: 34rem; margin-inline: auto; }
.pe-spinner { width: 3rem; height: 3rem; margin: 0 auto 1rem; border: 4px solid var(--wp--preset--color--gold-light, #F3D27A); border-top-color: var(--wp--preset--color--primary, #E98C14); border-radius: 50%; animation: pe-spin 1s linear infinite; }
@keyframes pe-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pe-spinner { animation: none; } }
.pe-wait__state { font-weight: 600; }
.pe-link { background: none; border: 0; color: var(--wp--preset--color--gold-deep, #8A5A00); text-decoration: underline; cursor: pointer; font: inherit; min-height: 2.75rem; padding: 0 1rem; }
