/* Public roll number slip site.
   The site chrome (wp-*) follows the look of the university admissions portal
   (admissions.comsats.edu.pk): navy strip, white header bar, blue gradient hero, gold accent,
   slate text, rounded cards. It is rebuilt here; nothing is loaded from that site. The CSP allows
   only 'self' fonts, so system fonts stand in for the portal's web fonts.
   The slip styles further down (rn-slip-*, report-header-*) are copied from the admin app's
   RollNumberSlipPrint.razor.css and ReportHeader.razor.css; keep them in step. */

:root {
    --wp-navy: #0b2a5b;
    --wp-navy-2: #123f95;
    --wp-blue: #1d4ed8;
    --wp-blue-2: #2563eb;
    --wp-ink: #0f172a;
    --wp-slate: #64748b;
    --wp-slate-light: #cbd5e1;
    --wp-line: #e2e8f0;
    --wp-field: #f8fafc;
    --wp-page: #f4f7fc;
    --wp-gold-grad: linear-gradient(90deg, #fde68a, #fbbf24, #fb923c);
    --wp-blue-grad: linear-gradient(135deg, var(--wp-blue), var(--wp-blue-2));
    --wp-font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --wp-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}

html,
body {
    background: var(--wp-page);
}

body {
    font-family: var(--wp-font);
    color: var(--wp-ink);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wp-main {
    flex: 1 0 auto;
}

.wp-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.wp-page {
    padding-top: 40px;
    padding-bottom: 56px;
}

.wp-muted {
    color: var(--wp-slate);
}

.wp-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.8;
    vertical-align: middle;
}

/* Top strip */
.wp-topbar {
    background: var(--wp-navy);
    color: var(--wp-slate-light);
    font-family: var(--wp-mono);
    font-size: 12.5px;
}

.wp-topbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* Header bar */
.wp-header {
    background: #fff;
    box-shadow: 0 1px 0 var(--wp-line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.wp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.wp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--wp-ink);
    text-decoration: none;
    min-width: 0;
}

.wp-brand:hover {
    color: var(--wp-ink);
}

.wp-logo-img {
    height: 46px;
    width: auto;
    flex: 0 0 auto;
}

.wp-brand b {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.25;
}

.wp-brand small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wp-slate);
}

/* Buttons */
.wp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.wp-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.wp-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

.wp-btn-primary {
    background: var(--wp-blue-grad);
    color: #fff;
    box-shadow: 0 8px 20px -8px var(--wp-blue);
}

.wp-btn-primary:hover {
    color: #fff;
}

.wp-btn-outline {
    background: #fff;
    color: var(--wp-blue);
    border: 1px solid #bfdbfe;
}

.wp-btn-outline:hover {
    color: var(--wp-blue);
    background: #eff6ff;
}

.wp-btn-block {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

.wp-btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

/* Hero (lookup page) */
.wp-hero {
    color: #fff;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(56, 189, 248, 0.45), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(124, 58, 237, 0.5), transparent 60%),
        linear-gradient(135deg, var(--wp-navy) 0%, var(--wp-navy-2) 55%, var(--wp-blue) 100%);
}

.wp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 64px;
}

.wp-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-family: var(--wp-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wp-eyebrow {
    margin: 22px 0 8px;
    color: #dbeafe;
    font-size: 15px;
    font-weight: 600;
}

.wp-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.1rem, 4.6vw, 3.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.wp-gold {
    display: inline-block;
    font-style: italic;
    background: var(--wp-gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wp-lead {
    max-width: 560px;
    margin: 0 0 28px;
    color: #e2e8f0;
    font-size: 17px;
    line-height: 1.6;
}

.wp-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.wp-stat {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
    line-height: 1.45;
}

.wp-stat b {
    display: block;
    margin-bottom: 4px;
    font-size: 14.5px;
}

.wp-stat span {
    color: #cbd5e1;
}

.wp-stat-dots {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.wp-stat-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.wp-stat.gold .wp-stat-dots {
    color: #fbbf24;
}

.wp-stat.teal .wp-stat-dots {
    color: #5eead4;
}

.wp-stat.rose .wp-stat-dots {
    color: #fda4af;
}

/* Cards and form */
.wp-card {
    background: #fff;
    color: var(--wp-ink);
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 20px 40px -24px rgba(15, 23, 42, 0.25);
}

.wp-lookup {
    padding: 30px;
    box-shadow: 0 40px 80px -30px rgba(2, 6, 23, 0.65);
}

.wp-lookup h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
}

.wp-lookup > .wp-muted {
    margin-bottom: 22px;
    font-size: 14px;
}

.wp-label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wp-label-note {
    color: var(--wp-slate);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.form-control.wp-input {
    padding: 12px 14px;
    border: 1px solid var(--wp-line);
    border-radius: 12px;
    background: var(--wp-field);
    color: var(--wp-ink);
    font-size: 14.5px;
    font-weight: 500;
}

.form-control.wp-input:focus {
    border-color: var(--wp-blue-2);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.form-control.wp-input.invalid {
    border-color: #dc2626;
}

.wp-alert {
    margin-bottom: 16px;
    padding: 11px 14px;
    border: 1px solid #fde68a;
    border-radius: 12px;
    background: #fffbeb;
    color: #92400e;
    font-size: 14px;
}

.wp-secure {
    margin: 14px 0 0;
    color: var(--wp-slate);
    font-size: 12.5px;
    text-align: center;
}

.wp-kicker {
    color: var(--wp-slate);
    font-family: var(--wp-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wp-section-title {
    margin: 4px 0 18px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* Slip list */
.wp-slip-list {
    padding: 6px 24px;
}

.wp-slip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--wp-line);
}

.wp-slip-item:last-child {
    border-bottom: 0;
}

.wp-slip-paper {
    font-weight: 700;
}

.wp-badge {
    padding: 5px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--wp-blue);
    font-size: 12.5px;
    font-weight: 600;
}

.wp-badge-muted {
    background: #f1f5f9;
    color: var(--wp-slate);
}

/* Message pages (not found, error, not yet open) */
.wp-message {
    max-width: 620px;
    margin: 24px auto;
    padding: 36px;
}

.wp-message h1 {
    margin: 6px 0 10px;
    font-size: 26px;
    font-weight: 800;
}

.wp-message p {
    color: #334155;
}

/* Slip page toolbar; the slip itself sits on a card on screen */
.wp-slip-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 190mm;
    margin: 0 auto 18px;
}

.wp-slip-actions {
    display: flex;
    gap: 10px;
}

.wp-page > .rn-slip {
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 20px 40px -24px rgba(15, 23, 42, 0.25);
}

/* Header menu */
.wp-menu {
    display: flex;
    gap: 4px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

.wp-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.wp-menu a:hover {
    background: #eff6ff;
    color: var(--wp-blue);
}

/* Icons */
.wp-icon {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
}

.wp-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--wp-blue);
}

.wp-icon-box .wp-icon {
    width: 22px;
    height: 22px;
}

.wp-icon-box.lg {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 14px;
}

.wp-icon-box.lg .wp-icon {
    width: 26px;
    height: 26px;
}

/* Extra buttons */
.wp-btn-gold {
    background: linear-gradient(135deg, #fde68a, #fbbf24 55%, #fb923c);
    color: #1e1b4b;
    box-shadow: 0 10px 24px -10px rgba(251, 146, 60, 0.9);
}

.wp-btn-gold:hover {
    color: #1e1b4b;
}

.wp-btn-glass {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.wp-btn-glass:hover {
    color: #fff;
}

.wp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.wp-hero-actions .wp-btn {
    padding: 13px 20px;
    font-size: 15px;
}

/* Home: quick services card in the hero */
.wp-quick {
    padding: 26px;
    box-shadow: 0 40px 80px -30px rgba(2, 6, 23, 0.65);
}

.wp-quick h2 {
    margin: 4px 0 16px;
    font-size: 22px;
    font-weight: 800;
}

.wp-quick-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wp-quick-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--wp-line);
    border-radius: 14px;
    background: var(--wp-field);
    color: var(--wp-ink);
    text-decoration: none;
    transition: border-color 0.12s ease, background 0.12s ease;
}

a.wp-quick-item:hover {
    border-color: #93c5fd;
    background: #fff;
    color: var(--wp-ink);
}

.wp-quick-text {
    flex: 1 1 auto;
    min-width: 0;
}

.wp-quick-text b {
    display: block;
    font-size: 15px;
}

.wp-quick-text small {
    color: #16a34a;
    font-size: 12px;
    font-weight: 600;
}

.wp-quick-item.is-soon {
    opacity: 0.75;
}

.wp-quick-item.is-soon .wp-icon-box {
    background: #f1f5f9;
    color: var(--wp-slate);
}

.wp-quick-item.is-soon small {
    color: var(--wp-slate);
}

.wp-quick-arrow {
    color: var(--wp-blue);
}

/* Notice bar under the hero */
.wp-notice-bar {
    background: #fffbeb;
    border-bottom: 1px solid #fde68a;
    color: #78350f;
    font-size: 14px;
}

.wp-notice-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.wp-notice-tag {
    flex: 0 0 auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fbbf24;
    color: #451a03;
    font-family: var(--wp-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Home sections */
.wp-section {
    padding-top: 72px;
}

.wp-section-last {
    padding-bottom: 80px;
}

.wp-section-head {
    max-width: 680px;
    margin-bottom: 28px;
}

.wp-section-head .wp-section-title {
    margin-bottom: 8px;
    font-size: 30px;
}

.wp-section-head .wp-muted {
    margin: 0;
}

.wp-service-grid {
    display: grid;
    /* Fits as many cards per row as there is room for, so new services need no CSS change. */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.wp-service {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 24px;
    border: 1px solid transparent;
    border-radius: 20px;
    color: var(--wp-ink);
    text-decoration: none;
    transition: transform 0.12s ease, border-color 0.12s ease;
}

a.wp-service:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    color: var(--wp-ink);
}

.wp-service h3 {
    margin: 6px 0 0;
    font-size: 18px;
    font-weight: 800;
}

.wp-service p {
    flex: 1 1 auto;
    margin: 0;
    color: var(--wp-slate);
    font-size: 14px;
    line-height: 1.55;
}

.wp-service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wp-blue);
    font-size: 14px;
    font-weight: 700;
}

.wp-service.is-soon .wp-icon-box {
    background: #f1f5f9;
    color: var(--wp-slate);
}

/* Steps */
.wp-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.wp-step {
    position: relative;
    padding: 22px 20px;
    border-top: 3px solid var(--wp-blue-2);
    border-radius: 4px 4px 16px 16px;
    background: #fff;
    box-shadow: 0 20px 40px -28px rgba(15, 23, 42, 0.35);
}

.wp-step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--wp-blue-grad);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}

.wp-step h3 {
    margin: 14px 0 6px;
    font-size: 16px;
    font-weight: 800;
}

.wp-step p {
    margin: 0;
    color: var(--wp-slate);
    font-size: 13.5px;
    line-height: 1.55;
}

/* Test-day band */
.wp-testday {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    padding: 44px;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(56, 189, 248, 0.35), transparent 60%),
        linear-gradient(135deg, var(--wp-navy) 0%, var(--wp-navy-2) 70%, var(--wp-blue) 100%);
}

.wp-kicker-light {
    color: #93c5fd;
}

.wp-testday h2 {
    margin: 6px 0 12px;
    font-size: 30px;
    font-weight: 800;
}

.wp-testday-intro p {
    margin-bottom: 24px;
    color: #cbd5e1;
    line-height: 1.6;
}

.wp-checklist {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wp-checklist li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.wp-checklist .wp-icon-box {
    background: rgba(255, 255, 255, 0.14);
    color: #fde68a;
}

.wp-checklist b {
    display: block;
    font-size: 15px;
}

.wp-checklist span:not(.wp-icon-box) {
    color: #cbd5e1;
    font-size: 13.5px;
    line-height: 1.5;
}

.wp-link-light {
    color: #fde68a;
    font-weight: 700;
    white-space: nowrap;
}

.wp-link-light:hover {
    color: #fff;
}

/* Test-day rule cards under the navy panel */
.wp-rules-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.wp-rule {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    border-radius: 20px;
}

.wp-rule-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.wp-rule-head h2,
.wp-rule-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}

.wp-rule ul {
    flex: 1 1 auto;
    margin: 0 0 14px;
    padding-left: 18px;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
}

.wp-rule li + li {
    margin-top: 6px;
}

.wp-rule-danger {
    border: 1px solid #fecaca;
}

.wp-rule-danger .wp-icon-box {
    background: #fef2f2;
    color: #dc2626;
}

.wp-rule-warning {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 13.5px;
    font-weight: 700;
}

/* Popup shown with :target (no script) */
.wp-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.wp-modal:target {
    display: flex;
}

.wp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.6);
}

.wp-modal-box {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 28px;
    border-radius: 20px;
    background: #fff;
    color: var(--wp-ink);
    box-shadow: 0 40px 80px -30px rgba(2, 6, 23, 0.7);
}

.wp-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.wp-modal-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.wp-modal-close {
    color: var(--wp-slate);
    font-size: 28px;
    line-height: 1;
    text-decoration: none;
}

.wp-modal-close:hover {
    color: var(--wp-ink);
}

.wp-id-list {
    margin: 0 0 14px;
    padding-left: 20px;
    color: #334155;
    line-height: 1.55;
}

.wp-id-list li + li {
    margin-top: 8px;
}

.wp-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Features */
.wp-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.wp-feature {
    padding: 24px;
    border: 1px solid var(--wp-line);
    border-radius: 20px;
    background: #fff;
}

.wp-feature h3 {
    margin: 14px 0 6px;
    font-size: 17px;
    font-weight: 800;
}

.wp-feature p {
    margin: 0;
    color: var(--wp-slate);
    font-size: 14px;
    line-height: 1.55;
}

/* FAQ */
.wp-faq-wrap {
    max-width: 880px;
}

.wp-faq {
    display: grid;
    gap: 10px;
}

.wp-faq details {
    border: 1px solid var(--wp-line);
    border-radius: 14px;
    background: #fff;
}

.wp-faq summary {
    position: relative;
    padding: 16px 48px 16px 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.wp-faq summary::-webkit-details-marker {
    display: none;
}

.wp-faq summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wp-blue);
    font-size: 22px;
    font-weight: 500;
}

.wp-faq details[open] summary::after {
    content: "\2212";
}

.wp-faq summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
    border-radius: 14px;
}

.wp-faq details p {
    margin: 0;
    padding: 0 20px 18px;
    color: #334155;
    line-height: 1.6;
}

/* Footer */
.wp-footer {
    flex-shrink: 0;
    padding: 48px 0 24px;
    background: var(--wp-navy);
    color: #94a3b8;
    font-size: 13.5px;
}

.wp-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
    gap: 32px;
}

.wp-footer-brand b {
    display: block;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.wp-footer-brand span {
    display: block;
    color: #cbd5e1;
}

.wp-footer-brand p {
    margin: 10px 0 0;
    line-height: 1.6;
}

.wp-footer-head {
    margin-bottom: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wp-footer-links {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wp-footer-links a {
    color: #cbd5e1;
    text-decoration: none;
}

.wp-footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.wp-footer-links em {
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 11px;
    font-style: normal;
}

.wp-footer-note {
    margin: 0;
    font-family: var(--wp-mono);
    font-size: 12.5px;
    line-height: 1.6;
}

.wp-footer-bottom {
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--wp-mono);
    font-size: 12.5px;
}

/* Tablet and phone */
@media (max-width: 1100px) {
    .wp-header-inner {
        flex-wrap: wrap;
    }

    .wp-menu {
        order: 3;
        width: 100%;
        margin: 0 -12px;
        padding-bottom: 8px;
        overflow-x: auto;
    }


    .wp-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wp-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .wp-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding-top: 36px;
        padding-bottom: 40px;
    }

    .wp-testday {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 32px;
    }

    .wp-feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .wp-wrap {
        padding: 0 16px;
    }

    .wp-topbar-help {
        display: none;
    }

    .wp-header-inner {
        min-height: 62px;
    }

    .wp-logo-img {
        height: 38px;
    }

    .wp-brand b {
        font-size: 14px;
    }

    .wp-brand small {
        display: none;
    }

    .wp-header .wp-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .wp-lead {
        font-size: 15.5px;
    }

    .wp-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-lookup,
    .wp-message {
        padding: 22px;
        border-radius: 18px;
    }

    .wp-slip-list {
        padding: 4px 16px;
    }

    .wp-page {
        padding-top: 24px;
    }

    .wp-header-cta {
        display: none;
    }

    .wp-menu {
        margin: 0 -8px;
    }

    .wp-menu a {
        padding: 6px 8px;
        font-size: 13.5px;
    }

    .wp-quick {
        padding: 20px;
        border-radius: 18px;
    }

    .wp-notice-inner {
        align-items: flex-start;
    }

    .wp-section {
        padding-top: 48px;
    }

    .wp-section-last {
        padding-bottom: 56px;
    }

    .wp-section-head .wp-section-title,
    .wp-testday h2 {
        font-size: 24px;
    }

    .wp-service-grid,
    .wp-steps,
    .wp-footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-testday {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .wp-hero-actions .wp-btn {
        width: 100%;
    }
}

.rn-slip-key-note {
    margin-top: 4px;
    padding: 10px 14px;
    border: 1px dashed #adb5bd;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #495057;
    text-align: center;
}

.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid #212529;
}

.report-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-header-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.report-header-org-name {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.report-header-org-tagline {
    font-size: 0.75rem;
    color: #495057;
}

.report-header-doc {
    text-align: right;
}

.report-header-title {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.report-header-subtitle {
    font-size: 0.8rem;
    color: #495057;
}

.rn-slip {
    max-width: 190mm;
    margin: 0 auto;
    padding: 10mm;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #212529;
    background: #fff;
}

.rn-slip-body {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.rn-slip-details {
    flex: 1 1 auto;
}

.rn-slip-field {
    display: flex;
    padding: 5px 0;
    border-bottom: 1px dotted #ced4da;
    font-size: 0.9rem;
}

.rn-slip-field span {
    flex: 0 0 150px;
    color: #6c757d;
    text-align: right;
    padding-right: 10px;
}

.rn-slip-field span::after {
    content: ":";
}

.rn-slip-field strong {
    flex: 1 1 auto;
    padding-left: 10px;
    word-break: break-word;
}

.rn-slip-highlight-row {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.rn-slip-highlight-row > div {
    flex: 1 1 0;
}

.rn-slip-rollnumber-label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: #6c757d;
    text-transform: uppercase;
}

.rn-slip-rollnumber-box {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.12em;
    border: 2px solid #212529;
    border-radius: 6px;
    padding: 10px 14px;
    text-align: center;
    margin-top: 4px;
}

.rn-slip-media {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rn-slip-photo {
    width: 140px;
    height: 175px;
    object-fit: cover;
    border: 1px solid #adb5bd;
    border-radius: 4px;
}

.rn-slip-qr {
    width: 120px;
    height: 120px;
}

.rn-slip-qr-caption {
    font-size: 0.7rem;
    color: #6c757d;
}

.rn-slip-instructions {
    margin-top: 24px;
    border-top: 1px solid #ced4da;
    padding-top: 10px;
    font-size: 0.8rem;
}

.rn-slip-instructions-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.rn-slip-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #ced4da;
    font-size: 0.75rem;
    color: #6c757d;
}


.rn-slip-location-qr {
    width: 90px;
    height: 90px;
    display: block;
}


.rn-slip-footer {
    margin-top: 16px;
    text-align: right;
    font-size: 0.7rem;
    color: #6c757d;
}

@media print {
    .no-print {
        display: none !important;
    }

    @page {
        size: A4;
        margin: 15mm;
    }

    .rn-slip {
        max-width: 100%;
        padding: 0;
    }
}

@media print {
    body {
        background: #fff;
    }

    .wp-topbar,
    .wp-header,
    .wp-footer {
        display: none !important;
    }

    .wp-wrap,
    .wp-page {
        max-width: 100%;
        padding: 0 !important;
    }

    .wp-page > .rn-slip {
        border-radius: 0;
        box-shadow: none;
    }
}

/* Phone screens: the slip is A4-shaped, so stack its columns (print is unchanged).
   Kept last so it wins over the slip styles above. */
@media screen and (max-width: 600px) {
    .rn-slip {
        padding: 16px;
    }

    .rn-slip-body,
    .rn-slip-highlight-row {
        flex-direction: column;
    }

    .rn-slip-media {
        flex-basis: auto;
    }

    .rn-slip-field span {
        flex-basis: 120px;
    }

    .report-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-header-doc {
        text-align: left;
    }
}

/* Test-day rule cards: 2 columns on tablet, 1 on phone */
@media (max-width: 1100px) {
    .wp-rules-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .wp-rules-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-modal-box {
        padding: 22px 18px;
    }
}

/* ---------- Test structure page ---------- */
.wp-hero-compact .wp-wrap {
    padding-top: 36px;
    padding-bottom: 44px;
}

.wp-hero-compact h1 {
    margin: 16px 0 12px;
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.wp-hero-compact .wp-lead {
    max-width: 720px;
    margin-bottom: 20px;
}

.wp-crumbs {
    margin-bottom: 16px;
    color: #bfdbfe;
    font-size: 13px;
}

.wp-crumbs a {
    color: #fff;
    text-decoration: none;
}

.wp-crumbs a:hover {
    text-decoration: underline;
}

.wp-crumbs span {
    margin: 0 6px;
    opacity: 0.6;
}

.wp-structure {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
    gap: 18px;
}

.wp-glance {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 26px;
    color: #fff;
    background: linear-gradient(135deg, var(--wp-navy) 0%, var(--wp-navy-2) 70%, var(--wp-blue) 100%);
}

.wp-glance-number {
    display: block;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    background: var(--wp-gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wp-glance-label {
    display: block;
    margin-top: 6px;
    color: #cbd5e1;
    font-weight: 600;
}

.wp-glance-facts {
    display: grid;
    gap: 10px;
    margin: 0;
}

.wp-glance-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.wp-glance-facts dt {
    color: #94a3b8;
    font-weight: 500;
}

.wp-glance-facts dd {
    margin: 0;
    font-weight: 700;
}

.wp-table-card {
    padding: 24px 26px;
    overflow-x: auto;
}

.wp-table-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
}

.wp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.wp-table th,
.wp-table td {
    padding: 12px 12px;
    border-bottom: 1px solid var(--wp-line);
    text-align: left;
    vertical-align: middle;
}

.wp-table thead th {
    padding-top: 0;
    color: var(--wp-slate);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--wp-line);
}

.wp-table tbody th {
    font-weight: 700;
}

.wp-table tfoot th,
.wp-table tfoot td {
    border-bottom: 0;
    font-weight: 800;
}

.wp-table .num {
    width: 110px;
    text-align: center;
}

.wp-col-share {
    width: 45%;
    white-space: nowrap;
}

.wp-bar {
    display: inline-block;
    width: calc(100% - 52px);
    height: 8px;
    vertical-align: middle;
}

.wp-bar-track {
    fill: #e2e8f0;
}

.wp-bar-fill {
    fill: var(--wp-blue-2);
}

.wp-bar-label {
    display: inline-block;
    width: 44px;
    margin-left: 8px;
    color: var(--wp-slate);
    font-size: 13px;
    text-align: right;
}

.wp-code {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    background: #eff6ff;
    color: var(--wp-blue);
    font-family: var(--wp-mono);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.wp-composition {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wp-composition span {
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12.5px;
    white-space: nowrap;
}

.wp-composition span.is-total {
    background: var(--wp-navy);
    color: #fff;
}

.wp-callout {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 26px 28px;
}

.wp-callout > div:not(.wp-callout-actions) {
    flex: 1 1 320px;
}

.wp-callout h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
}

.wp-callout p {
    margin: 0;
    color: var(--wp-slate);
}

.wp-callout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 960px) {
    .wp-structure {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Phone: the tests table turns into one card per test, labels from data-label. */
@media (max-width: 700px) {
    .wp-table-card {
        padding: 18px 16px;
    }

    .wp-col-share {
        width: 40%;
    }

    .wp-table-stack thead {
        display: none;
    }

    .wp-table-stack,
    .wp-table-stack tbody,
    .wp-table-stack tr,
    .wp-table-stack td {
        display: block;
        width: 100%;
    }

    .wp-table-stack tr {
        padding: 12px 0;
        border-bottom: 1px solid var(--wp-line);
    }

    .wp-table-stack tr:last-child {
        border-bottom: 0;
    }

    .wp-table-stack td {
        padding: 4px 0;
        border: 0;
    }

    .wp-table-stack td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: var(--wp-slate);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .wp-glance-number {
        font-size: 52px;
    }
}

/* ---------- Form pages (roll number slip lookup) ---------- */
.wp-pagehead {
    color: #fff;
    background:
        radial-gradient(700px 260px at 90% -20%, rgba(56, 189, 248, 0.35), transparent 60%),
        linear-gradient(135deg, var(--wp-navy) 0%, var(--wp-navy-2) 70%, var(--wp-blue) 100%);
}

.wp-pagehead .wp-wrap {
    padding-top: 26px;
    padding-bottom: 30px;
}

.wp-pagehead .wp-crumbs {
    margin-bottom: 10px;
}

.wp-pagehead h1 {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.wp-pagehead p {
    max-width: 680px;
    margin: 0;
    color: #cbd5e1;
}

.wp-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.wp-form-card {
    border-radius: 16px;
    overflow: hidden;
}

.wp-form-card-head {
    padding: 18px 26px;
    border-bottom: 1px solid var(--wp-line);
    background: var(--wp-field);
}

.wp-form-card-head h2 {
    margin: 0 0 2px;
    font-size: 19px;
    font-weight: 800;
}

.wp-form-card-head p {
    margin: 0;
    color: var(--wp-slate);
    font-size: 13px;
}

.wp-req {
    color: #dc2626;
    font-weight: 700;
}

.wp-form-body {
    padding: 22px 26px 26px;
}

.wp-fieldset {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.wp-fieldset legend {
    float: none;
    width: 100%;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--wp-blue-2);
    color: var(--wp-navy);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.wp-field .form-control.wp-input {
    border-radius: 8px;
    background: #fff;
}

.wp-hint {
    margin-top: 5px;
    color: var(--wp-slate);
    font-size: 12.5px;
    line-height: 1.45;
}

.wp-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--wp-line);
}

.wp-form-actions .wp-btn {
    min-width: 140px;
    padding: 12px 20px;
}

.wp-form-aside {
    display: grid;
    gap: 16px;
}

.wp-aside-card {
    padding: 20px 22px;
    border-radius: 16px;
}

.wp-aside-card h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
}

.wp-aside-card ul {
    margin: 0;
    padding-left: 18px;
    color: #334155;
    font-size: 13.5px;
    line-height: 1.55;
}

.wp-aside-card li + li {
    margin-top: 6px;
}

.wp-aside-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--wp-blue);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
}

.wp-aside-link:hover {
    text-decoration: underline;
}

.wp-aside-note {
    margin: 0;
    color: var(--wp-slate);
    font-size: 12.5px;
}

.wp-results {
    margin-top: 22px;
    border-radius: 16px;
}

.wp-results-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 14px;
}

.wp-results-head .wp-table-title {
    margin-bottom: 4px;
}

.wp-row-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (max-width: 960px) {
    .wp-form-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .wp-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-form-card-head,
    .wp-form-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .wp-form-actions .wp-btn {
        flex: 1 1 auto;
    }
}
