﻿/* OCSE x NAMO SHIKSHA — MVC additions on top of ocse.css (design system v5). Keep overrides here, never in ocse.css. */
:root { --pbar-h: 0px; }
body { margin: 0; }
.validation-summary-valid, .field-validation-valid { display: none; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.input-validation-error { border-color: var(--crit) !important; }
.field .hint.err:empty { display: none; }
.mono { font-family: var(--font-mono); }
.spec-ref { margin-top: 28px; opacity: .7; }

/* public homepage */
.hero-mvc { padding: 56px 0 36px; background: linear-gradient(180deg, var(--tint) 0%, var(--canvas) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero-mvc h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 18px 0 12px; color: var(--ink); }
.status-pill { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; text-decoration: none; }
.status-pill .i { width: 16px; height: 16px; color: var(--leaf); }
.hero-art { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-art .seal { width: 220px; height: 220px; border-radius: 50%; background: #fff; display: grid; place-items: center; position: relative; box-shadow: 0 18px 50px rgba(15, 26, 61, .12); }
.hero-art .seal img { width: 78%; height: 78%; object-fit: contain; }
.hero-art .marks { display: flex; gap: 14px; }
.hero-art .marks img { width: 54px; height: 54px; object-fit: contain; }
.figures .kpi .v { font-size: 34px; }
.families { grid-template-columns: repeat(5, 1fr); }
.fam { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.fam img { height: 64px; object-fit: contain; align-self: flex-start; }
.fam h3 { margin: 0; font-size: 16px; }
.fam .explore { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--navy-3); }
.navy-band { background: var(--navy); color: #fff; }
.navy-band h2, .navy-band .lead { color: #fff; }
.navy-band .tbl { background: #fff; color: var(--ink); border-radius: var(--r-sm); }
.info-sec { margin-bottom: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters .chip { text-decoration: none; }
.filters .chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* apps */
.app .top .logout { margin: 0; }
.app .side a.ph { cursor: default; }
.firewall { display: flex; gap: 8px; align-items: center; padding: 8px 16px; background: var(--maroon); color: #fff; font-size: 12.5px; }
.firewall .i { width: 16px; height: 16px; }

@media (max-width: 1100px) {
    .families { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art .seal { width: 160px; height: 160px; }
    .families, .grid.g4, .grid.g3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .families, .grid.g4, .grid.g3, .grid.g2 { grid-template-columns: 1fr; }
}

/* Sidebar "next build step" items use the prototype class .ph, which is also the page-header class
   (.ph = flex, space-between, wrap, margin-bottom). Restore normal sidebar alignment for links. */
.app .side a.ph { justify-content: flex-start; align-items: center; flex-wrap: nowrap; margin-bottom: 0; gap: 10px; opacity: .8; }
.app .side a.ph span { flex: 0 1 auto; min-width: 0; }
.app .side a.ph::after { flex: none; }

/* Sign-in pages: logo + name block (crest chip, name, subtitle on its own line), scales down on tablet and phone.
   The prototype styled this only through .web .logo, which the sign-in pages are not inside. */
.auth .art .logo { display: flex; align-items: center; gap: 14px; max-width: 100%; text-decoration: none !important;
    font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.auth .art .logo .em { flex: none; box-sizing: border-box; width: 64px !important; height: 64px !important; object-fit: contain;
    background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .55); }
.auth .art .logo > span { display: flex; flex-direction: column; min-width: 0; }
.auth .art .logo small { display: block; margin-top: 5px; font: 700 11px/1.35 var(--font-body); letter-spacing: .06em;
    text-transform: uppercase; white-space: normal; overflow-wrap: anywhere; color: var(--gold) !important; }
@media (max-width: 900px) {
    .auth .art .logo { font-size: 17px; gap: 12px; }
    .auth .art .logo .em { width: 52px !important; height: 52px !important; border-radius: 13px; padding: 5px; }
    .auth .art .logo small { font-size: 10px; }
}
@media (max-width: 480px) {
    .auth .art .logo { font-size: 15.5px; gap: 10px; }
    .auth .art .logo .em { width: 44px !important; height: 44px !important; border-radius: 11px; padding: 4px; }
    .auth .art .logo small { font-size: 9.5px; letter-spacing: .04em; }
}
