:root {
  --ink: #14213D;
  --muted: #4A5568;
  --paper: #FFFFFF;
  --tint: #F1F4FA;
  --blue: #16367A;
  --blue-soft: #DCE4F5;
  --saffron: #F2A900;
  --danger: #B42318;
  --line: #D5DCE8;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E6EAF2;
    --muted: #A8B3C7;
    --paper: #0E1526;
    --tint: #16203A;
    --blue: #8FB0F5;
    --blue-soft: #1D2C50;
    --line: #2A3758;
    --danger: #F28B82;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 var(--font);
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--blue); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header: a saffron rule on top is the one brand flourish */
.site-header { border-top: 5px solid var(--saffron); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--blue); }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: .95rem; }
.site-nav a { text-decoration: none; padding: .35rem 0; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

main { padding: 2.25rem 0 3rem; }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.4rem); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .75rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2.25rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .35rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.meta { color: var(--muted); font-size: .9rem; }

.note {
  background: var(--tint);
  border-left: 4px solid var(--blue);
  padding: .9rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
}
.note.warn { border-left-color: var(--saffron); }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

.steps { padding-left: 1.4rem; }
.steps li { margin-bottom: .6rem; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: .5rem 0 1.25rem; }
.table-scroll { overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
th { background: var(--tint); font-weight: 700; }

.button, button {
  display: inline-block;
  font: inherit; font-weight: 700;
  background: var(--blue); color: var(--paper);
  border: 0; border-radius: var(--radius);
  padding: .8rem 1.3rem; min-height: 48px;
  text-decoration: none; cursor: pointer;
}
.button.secondary { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
button.danger { background: var(--danger); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }

form { margin: 1.5rem 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
.field { margin-bottom: 1.1rem; }
label, legend { font-weight: 700; display: block; margin-bottom: .3rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
.choice { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin-bottom: .45rem; }
.choice input { margin-top: .35rem; width: 1.15rem; height: 1.15rem; flex: none; }
input[type="email"], input[type="text"], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px; padding: .65rem .75rem; min-height: 48px;
}
textarea { min-height: 6rem; }
.hint { color: var(--muted); font-size: .9rem; margin-top: .25rem; }
.hidden { position: absolute; left: -9999px; }

.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: .75rem; }
