/* Sarkari Sevak site styles */

:root {
  --ink: #0C1424;
  --surface: #141F36;
  --surface-2: #1B294A;
  --rule: #253551;
  --text: #E7ECF5;
  --text-2: #93A1BC;
  --saffron: #F28C28;
  --saffron-ink: #140B02;
  --open: #3FA66B;
  --measure: 68ch;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-synthesis-weight: none;
}

:lang(hi), .deva {
  /* Android and Windows both ship a Devanagari face; no webfont for one sentence */
  font-family: "Noto Sans Devanagari", "Nirmala UI", "Archivo", sans-serif;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--saffron);
  color: var(--saffron-ink);
  padding: 10px 16px;
  font-weight: 600;
  border-radius: 0 0 6px 0;
  z-index: 10;
}
.skip:focus {
  left: 0;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.prose { max-width: var(--measure); }

a { color: var(--text); text-decoration-color: var(--saffron); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem); margin-top: 2.2em; }
h3 { font-size: 1.1rem; margin-top: 1.8em; font-weight: 600; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.1em; }
li { margin-bottom: 0.4em; }

/* masthead */
.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}
.masthead .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand {
  display: flex; align-items: baseline; gap: 10px;
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em;
  text-decoration: none;
}
.brand span { color: var(--saffron); }
.nav { margin-left: auto; display: flex; gap: 22px; font-size: 0.95rem; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* hero */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.hero p.lede { font-size: 1.15rem; color: var(--text-2); max-width: 46ch; }
.hero p.lede strong { color: var(--text); font-weight: 600; }

.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-block;
  background: var(--saffron);
  color: var(--saffron-ink);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: 6px;
  text-decoration: none;
}
.btn:hover { background: #ffa347; }
.cta-note { color: var(--text-2); font-size: 0.92rem; }

/* the sample alert card: the product's atom */
.alert-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px 18px 16px;
  box-shadow: none;
}
.alert-card + .alert-card { margin-top: 12px; }
.alert-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.alert-dept { color: var(--text-2); font-size: 0.82rem; }
.alert-status { color: var(--open); font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.alert-title { font-size: 1.05rem; font-weight: 600; margin: 6px 0 12px; }
.alert-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 0.88rem; }
.alert-meta dt { color: var(--text-2); margin-bottom: 2px; }
.alert-meta dd { margin: 0; }
.alert-foot {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule);
  font-size: 0.85rem; color: var(--text-2);
}
.sample-label { font-size: 0.8rem; color: var(--text-2); margin: 0 0 10px; }

/* sections */
.section { padding: 44px 0 52px; border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: 0; }
.section .wrap > h2:first-child,
.page-head + .section .wrap > h2:first-child { margin-top: 0; }

.cover-list { columns: 2; column-gap: 40px; max-width: 640px; padding-left: 1.1em; }
.cover-list li { break-inside: avoid; }

.qa { max-width: var(--measure); }
.qa h3 { margin-top: 1.6em; }
.qa h3:first-child { margin-top: 0; }

.facts { width: 100%; border-collapse: collapse; max-width: var(--measure); font-size: 0.95rem; }
.facts th, .facts td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.facts th { color: var(--text-2); font-weight: 400; width: 38%; }

.callout {
  background: var(--surface);
  border-left: 3px solid var(--saffron);
  padding: 16px 18px;
  border-radius: 0 6px 6px 0;
  max-width: var(--measure);
}
.callout p:last-child { margin-bottom: 0; }

.updated { color: var(--text-2); font-size: 0.88rem; }

/* page header for inner pages */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); }
.page-head .answer { font-size: 1.1rem; color: var(--text); max-width: var(--measure); }

.steps { counter-reset: step; list-style: none; padding: 0; max-width: var(--measure); }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 38px;
  margin-bottom: 18px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-2); color: var(--text);
  font-size: 0.85rem; font-weight: 600;
  display: grid; place-items: center;
}

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 64px;
  padding: 32px 0 48px;
  color: var(--text-2);
  font-size: 0.9rem;
}
footer.site .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: baseline; }
footer.site a { color: var(--text-2); }
footer.site .spacer { margin-left: auto; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .cover-list { columns: 1; }
  .nav { width: 100%; margin-left: 0; gap: 16px; font-size: 0.9rem; }
  .alert-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
