/* Design tokens */
:root {
  --brand: #00535a;
  --brand-dark: #0a3440;
  --highlight: #edba75;
  --navy: #1c2f3d;
  --cream: #fbf7f0;
  --tint: #f4ece0;
  --ink: #1c2f3d;
  --muted: #6b5d58;
  --line: #e5d9c8;
  --white: #ffffff;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans Kannada", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Language switching: English by default, Kannada when html.kn-mode is set */
.kn { display: none; }
html.kn-mode .kn { display: inline; }
html.kn-mode .en { display: none; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }

h1, h2, h3 {
  font-family: "Noto Serif", Georgia, serif;
  color: var(--brand-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

/* Header */
.site-header {
  background: var(--brand);
  color: var(--white);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  color: var(--white);
  text-decoration: none;
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.lang-toggle {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 40px;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.12); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding-bottom: 12px;
}
.nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.92;
  padding: 4px 0;
}
.nav a:hover { text-decoration: underline; opacity: 1; }

/* Hero */
.hero { background: var(--tint); padding-bottom: 32px; }
.hero-img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  background: #dfe6e8;
}
.hero-text { padding-top: 24px; }
.eyebrow {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.lead { font-size: 1.15rem; color: var(--ink); max-width: 46ch; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  font-size: 1rem;
  line-height: 1.3;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border: 2px solid var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: rgba(0, 83, 90, 0.06); }

/* Deadline bar */
.deadline-bar {
  background: var(--highlight);
  color: var(--navy);
}
.deadline-bar .wrap { padding-top: 14px; padding-bottom: 14px; }
.deadline-bar p { margin: 0; }
.deadline-bar strong { font-weight: 700; }

/* Sections */
.section { padding: 48px 0; }
.section-tint { background: var(--tint); }

.checklist,
.bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}
.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--brand);
  box-shadow: inset 0 0 0 4px var(--white);
}
.bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

/* District chips */
.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.95rem;
}

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 24px 56px;
  border-left: 2px dashed var(--line);
  margin-left: 18px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -20px;
  top: -2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.steps h3 { margin-top: 6px; }
.steps p { margin: 0; }

/* Download cards */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: 0 6px 16px rgba(10, 52, 64, 0.12); transform: translateY(-1px); }
.card-title {
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand-dark);
}
.card-meta { color: var(--muted); font-size: 0.9rem; }

/* Contact */
.contact {
  margin: 0;
  display: grid;
  gap: 4px 0;
}
.contact dt {
  font-weight: 700;
  color: var(--brand-dark);
  margin-top: 16px;
}
.contact dd {
  margin: 2px 0 0;
  word-break: break-word;
}

/* Footer */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 24px 0;
  font-size: 0.9rem;
  text-align: center;
}
.site-footer p { margin: 0; }

/* Wider screens */
@media (min-width: 640px) {
  body { font-size: 1.1rem; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  .hero-text { padding-top: 32px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 200px 1fr; }
  .contact dt { margin-top: 0; }
  .contact dd { margin-top: 0; }
  .contact dt, .contact dd { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .contact dd:last-of-type { border-bottom: 0; }
}

@media (min-width: 900px) {
  .hero-img { max-height: 520px; }
  .hero-text { padding-top: 40px; }
  h1 { font-size: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
