/* Extra components for the NIOS guide / area / Hindi pages (scripts/build-seo-pages.mjs).
   Builds on the tokens in style.css. */

.seo-updated { margin-top: 14px; font-size: 13px; color: var(--text-faint); }

/* Admission-open banner */
.seo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 224, 138, .35), transparent 40%),
    linear-gradient(120deg, #073327 0%, #0a7a57 55%, #0d9488 100%);
  color: #fff; box-shadow: var(--shadow-brand); position: relative; overflow: hidden;
}
.seo-banner::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, .07); pointer-events: none;
}
.seo-banner__text { flex: 1 1 380px; position: relative; z-index: 1; }
.seo-banner__text h2 { color: #fff; font-size: clamp(20px, 2.6vw, 28px); margin: 10px 0 6px; }
.seo-banner__text p { color: rgba(255, 255, 255, .88); margin: 0; font-size: 15px; }
.seo-banner__text strong { color: #ffe08a; }
.seo-banner__pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .14); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.seo-banner__pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #ffe08a; box-shadow: 0 0 0 4px rgba(255, 224, 138, .25); }
.seo-banner__cta { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

/* Tables */
.seo-table-wrap { overflow-x: auto; margin: 14px 0 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.seo-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.seo-table th, .seo-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.seo-table th { background: var(--surface-2); color: var(--text); font-weight: 700; font-family: var(--font-head); }
.seo-table td { color: var(--text-muted); }
.seo-table tr:last-child td { border-bottom: 0; }
.seo-table td strong { color: var(--text); }

/* Key facts */
.seo-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.seo-fact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.seo-fact .k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.seo-fact .v { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--text); margin-top: 6px; line-height: 1.25; }
.seo-fact .n { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; }

/* Callouts */
.seo-note { border-left: 4px solid var(--brand); background: var(--surface-2); padding: 14px 16px; border-radius: 0 var(--r) var(--r) 0; margin: 16px 0; }
.seo-note p { margin: 0; }
.seo-note--warn { border-left-color: var(--accent-2); background: var(--accent-soft); }
.prose ol { padding-left: 22px; list-style: decimal; }
.prose ol li { margin-bottom: 8px; }

/* Related links */
.seo-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.seo-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 15px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-weight: 600; text-decoration: none; transition: transform var(--dur) var(--ease-out), border-color var(--dur);
}
.seo-link:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
.seo-link svg { width: 18px; height: 18px; flex: none; }

/* Area cards */
.seo-area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.seo-area { display: block; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.seo-area:hover { border-color: var(--brand); }
.seo-area h3 { font-size: 17px; margin: 0 0 4px; }
.seo-area p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

.seo-disclaimer { font-size: 13px !important; color: var(--text-faint) !important; border-top: 1px solid var(--border); padding-top: 14px; }

html[lang="hi"] body { font-family: "Inter", "Nirmala UI", "Noto Sans Devanagari", "Mangal", system-ui, sans-serif; }
html[lang="hi"] .prose p, html[lang="hi"] .prose li { font-size: 16px; line-height: 1.75; }
