@font-face {
  font-family: "Special Elite";
  src: url("assets/fonts/SpecialElite-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "Kalam";
  src: url("assets/fonts/Kalam-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: block;
}

@font-face {
  font-family: "Kalam";
  src: url("assets/fonts/Kalam-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

:root {
  --cream: #fff2d1;
  --cream-deep: #f2ddb0;
  --paper: #f8e7bc;
  --paper-pale: #fff8e8;
  --ink: #172827;
  --teal: #103a3b;
  --teal-light: #1b5251;
  --mint: #b9d5bd;
  --saffron: #f3aa2f;
  --saffron-soft: #f8d37b;
  --coral: #d75d3d;
  --red: #a8362a;
  --green: #236c52;
  --rule: rgba(23, 40, 39, 0.2);
  --shadow: 0 30px 80px rgba(19, 34, 30, 0.22);
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --kannada: var(--sans);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --form-print: "Special Elite", "American Typewriter", Rockwell, "Courier New", serif;
  --wall-paint: "Kalam", "Marker Felt", Noteworthy, cursive;
  --speech: "Kalam", "American Typewriter", "Iowan Old Style", serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

html[lang="kn"] {
  --serif: var(--kannada);
  --mono: var(--kannada);
  --form-print: var(--kannada);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 15%, rgba(215, 93, 61, 0.12), transparent 25rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a { color: inherit; }

button, input, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, p { margin-top: 0; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 0.9rem;
  color: var(--cream);
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.office-hero {
  --hero-height: max(720px, 100svh);
  position: relative;
  height: var(--hero-height);
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  background: #173f3f;
}

/*
 * The desktop art is 1672 x 941. This plane uses the same cover calculation as
 * the artwork, so every overlay stays attached to an illustration coordinate
 * even when a wide viewport crops the top and bottom of the scene.
 */
.scene-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, calc(var(--hero-height) * 1.7768331562));
  aspect-ratio: 1672 / 941;
  isolation: isolate;
  transform: translate(-50%, -50%);
}

.scene-picture {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
}

.scene-art {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  object-position: center center;
  animation: reveal-scene 900ms cubic-bezier(.2, .75, .25, 1) both;
}

.scene-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 31, 29, 0.38) 0%, transparent 18%, transparent 65%, rgba(10, 27, 24, 0.64) 100%),
    linear-gradient(90deg, rgba(12, 31, 29, 0.22), transparent 35%, rgba(8, 30, 31, 0.08));
}

@keyframes reveal-scene {
  from { opacity: 0; transform: scale(1.015); }
  to { opacity: 1; transform: scale(1); }
}

.scene-header {
  position: absolute;
  top: clamp(1rem, 2.4vw, 2rem);
  left: clamp(1rem, 2.8vw, 3rem);
  right: clamp(1rem, 2.8vw, 3rem);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.scene-header .wordmark {
  padding: 0.42rem 0.75rem 0.42rem 0.48rem;
  background: rgba(255, 242, 209, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(15, 38, 35, 0.18);
  backdrop-filter: blur(9px);
}

.wordmark-mark {
  width: 1.95rem;
  height: 1.95rem;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: var(--coral);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.language-toggle {
  padding: 0.46rem 0.7rem;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 0.48rem;
  color: var(--cream);
  background: rgba(16, 58, 59, 0.78);
  border: 1px solid rgba(255, 242, 209, 0.24);
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(15, 38, 35, 0.18);
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 800;
  backdrop-filter: blur(9px);
}

.language-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  position: relative;
  width: 2.35rem;
  height: 1.28rem;
  display: block;
  background: rgba(255, 242, 209, 0.18);
  border: 1px solid rgba(255, 242, 209, 0.34);
  border-radius: 999px;
  transition: background 180ms ease;
}

.toggle-track i {
  position: absolute;
  top: 0.14rem;
  left: 0.15rem;
  width: 0.88rem;
  height: 0.88rem;
  background: var(--cream);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(4, 22, 22, 0.3);
  transition: transform 180ms ease, background 180ms ease;
}

.language-toggle input:checked + .toggle-track { background: var(--saffron); }

.language-toggle input:checked + .toggle-track i {
  background: var(--ink);
  transform: translateX(1.05rem);
}

.language-toggle input:focus-visible + .toggle-track {
  outline: 3px solid var(--saffron-soft);
  outline-offset: 3px;
}

.language-toggle > span:first-child,
.language-toggle > span[lang="kn"] {
  opacity: 0.56;
  transition: opacity 160ms ease;
}

.language-toggle span[lang="kn"] { font-family: var(--kannada); font-weight: 400; }

html[lang="en"] .language-toggle > span:first-child,
html[lang="kn"] .language-toggle > span[lang="kn"] { opacity: 1; }

html[lang="kn"] .language-toggle > span:first-child { font-weight: 600; }
html[lang="kn"] .language-toggle > span[lang="kn"] { font-weight: 500; }

html[lang="kn"] [data-copy] {
  font-family: var(--kannada);
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: none;
  text-transform: none;
}

html[lang="kn"] h1[data-copy],
html[lang="kn"] h2[data-copy],
html[lang="kn"] h3[data-copy],
html[lang="kn"] button [data-copy] { font-weight: 500; }

.clerk-bubble {
  position: absolute;
  top: 32%;
  left: 20.5%;
  z-index: 4;
  width: 20.5%;
  min-width: 17rem;
  max-width: 22rem;
  padding: 1rem 1.1rem;
  color: var(--ink);
  background-color: #d2a158;
  background-image: url("assets/form-paper-grain.svg");
  background-repeat: repeat;
  background-size: 180px 180px;
  background-blend-mode: multiply;
  border: 1px solid rgba(82, 51, 32, 0.88);
  border-radius: 14px 14px 14px 3px;
  box-shadow: 0 3px 0 rgba(70, 42, 25, 0.24), 0 7px 14px rgba(5, 25, 24, 0.12);
  transform: rotate(-1.5deg);
  transition: transform 180ms ease;
  animation: bubble-arrive 520ms 400ms cubic-bezier(.2, .8, .25, 1) both, bubble-jitter 5s 1.2s ease-in-out infinite;
}

.clerk-bubble::after {
  display: none;
}

.clerk-bubble h1 {
  margin: 0;
  font-family: var(--speech);
  font-size: clamp(1.05rem, 1.2vw, 1.32rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-shadow: none;
}

html[lang="kn"] .clerk-bubble h1 { font-family: var(--kannada); }

.clerk-bubble.is-speaking { animation: speak 260ms ease both; }

@keyframes bubble-arrive {
  from { opacity: 0; transform: rotate(-4deg) translateY(8px) scale(0.94); }
}

@keyframes bubble-jitter {
  0%, 88%, 100% { transform: rotate(-1.5deg) translateY(0); }
  91% { transform: rotate(-0.5deg) translateY(-3px); }
  94% { transform: rotate(-2.3deg) translateY(1px); }
  97% { transform: rotate(-1deg) translateY(-1px); }
}

@keyframes speak {
  50% { transform: rotate(-1.5deg) translateY(-4px); }
}

.bubble-form-arrow {
  position: absolute;
  top: 30.25%;
  left: 40.7%;
  z-index: 4;
  width: 4%;
  min-width: 3.5rem;
  max-width: 5rem;
  height: auto;
  overflow: visible;
  color: #f6d68a;
  pointer-events: none;
  transform: rotate(-2deg);
}

.bubble-form-arrow__line,
.bubble-form-arrow__tip {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bubble-form-arrow__line { stroke-width: 2.8; }
.bubble-form-arrow__tip { stroke-width: 3; }

.counter-nameboard {
  position: absolute;
  top: 2.4%;
  left: 52.9%;
  z-index: 4;
  width: 36%;
  height: auto;
  opacity: 0.96;
  pointer-events: none;
  filter: saturate(0.86) contrast(0.94) brightness(0.92) drop-shadow(0 7px 5px rgba(4, 22, 22, 0.3));
  transform-origin: 50% 0;
  animation: sign-arrive 700ms 180ms cubic-bezier(.2, .75, .25, 1) both;
}

@keyframes sign-arrive {
  from { opacity: 0; transform: translate(-50%, -8px) rotate(-0.6deg); }
  to { opacity: 1; transform: translate(-50%, 0) rotate(0.15deg); }
}

.counter-panel {
  position: absolute;
  top: calc(17.8% + 20px);
  left: 64.6%;
  z-index: 5;
  width: 40.5%;
  padding: 0;
  color: var(--ink);
  text-shadow: none;
  transform: translateX(-50%);
}

#search-form {
  padding: 0.45rem;
  color: var(--ink);
  background-color: #f4f1e7;
  background-image: url("assets/form-paper-grain.svg");
  background-repeat: repeat;
  background-size: 180px 180px;
  border: 1px solid rgba(48, 53, 50, 0.78);
  border-radius: 1px;
  box-shadow: none;
}

.form-instruction {
  margin: 0 0 0.46rem;
  padding: 0.36rem 0.55rem;
  color: #363b38;
  border: 1px solid rgba(48, 53, 50, 0.72);
  font-family: var(--form-print);
  font-size: 0.86rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-align: center;
  text-shadow: none;
}

.counter-utility {
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed rgba(255, 242, 209, 0.26);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.desk-label { color: rgba(255, 242, 209, 0.82); }

.counter-status {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--mint);
}

.counter-status i {
  width: 0.48rem;
  height: 0.48rem;
  background: #60dc8c;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(96, 220, 140, 0.12);
}

.counter-heading { margin-bottom: 0.8rem; }

.eyebrow,
.step-label {
  margin-bottom: 0.38rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow { color: var(--saffron-soft); }

.counter-heading > p:last-child {
  margin-bottom: 0;
  color: rgba(255, 242, 209, 0.72);
  font-size: 0.75rem;
}

.query-group { margin: 0; }

.mode-switch {
  margin-bottom: 0.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(61, 54, 42, 0.78);
  border-radius: 0;
}

.mode-button {
  min-height: 2.45rem;
  padding: 0.45rem 0.7rem;
  color: #4e4b40;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(61, 54, 42, 0.78);
  border-radius: 0;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 400;
  text-shadow: none;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.mode-button span {
  font-family: var(--form-print);
}

html[lang="kn"] .mode-button span,
html[lang="kn"] .form-instruction { font-family: var(--kannada); }

html[lang="kn"] .field label,
html[lang="kn"] .field input,
html[lang="kn"] .field select,
html[lang="kn"] .letter-box,
html[lang="kn"] .location-group legend { font-family: var(--kannada); }

.mode-button:last-child { border-right: 0; }
.mode-button:hover { color: var(--ink); }

.mode-button.is-active {
  color: var(--ink);
  background: rgba(224, 224, 216, 0.72);
  box-shadow: inset 0 -3px rgba(136, 46, 37, 0.72);
}

.mode-button:active { transform: translateY(1px); }

.query-fields,
.location-fields {
  display: grid;
  gap: 0.38rem;
}

.query-fields { grid-template-columns: 1fr; }
.location-fields { grid-template-columns: 1fr 1fr; }

.query-fields--single { grid-template-columns: 1fr; }

.field label {
  margin-bottom: 0.28rem;
  display: block;
  color: #343a36;
  font-family: var(--form-print);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  text-shadow: none;
}

.field label span {
  color: #706753;
  font-weight: 500;
}

.field input,
.field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.64rem 0.75rem;
  color: var(--ink);
  background-color: rgba(255, 252, 243, 0.62);
  border: 1px solid rgba(61, 54, 42, 0.82);
  border-radius: 0;
  outline: none;
  box-shadow: none;
  font-family: var(--form-print);
  font-size: 0.94rem;
  font-weight: 400;
  transition: box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.letter-entry {
  position: relative;
  height: 3rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(48, 53, 50, 0.78);
}

.letter-grid {
  position: absolute;
  inset: 0;
  display: grid;
  z-index: 1;
  grid-template-columns: repeat(var(--letter-box-count, 24), minmax(0, 1fr));
}

.letter-box {
  min-width: 0;
  display: grid;
  place-items: center;
  color: #172321;
  border-right: 1px solid rgba(48, 53, 50, 0.38);
  font-family: var(--form-print);
  font-size: clamp(0.8rem, 0.9vw, 1.02rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: none;
}

.letter-box:last-child { border-right: 0; }

.letter-box.is-current {
  background: rgba(229, 189, 102, 0.22);
  box-shadow: inset 0 -2px #a8362a;
}

.field input.letter-input {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  color: transparent;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  caret-color: transparent;
  text-shadow: none !important;
  -webkit-text-fill-color: transparent;
}

.letter-entry:focus-within {
  outline: 2px solid rgba(180, 119, 30, 0.74);
  outline-offset: 1px;
}

.field select {
  padding-right: 1.75rem;
  cursor: pointer;
  text-overflow: ellipsis;
}

.field select:disabled {
  cursor: wait;
  color: #817763;
  background: rgba(237, 224, 194, 0.88);
}

.field input:focus,
.field select:focus {
  background-color: rgba(255, 255, 255, 0.88);
  border-color: var(--saffron);
  box-shadow: inset 0 -3px rgba(243, 170, 47, 0.5);
}

.field input.letter-input:focus,
.field input.letter-input[aria-invalid="true"] {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #ff8268;
  box-shadow: 0 0 0 3px rgba(255, 130, 104, 0.25);
}

.location-group {
  margin: 0.58rem 0 0;
  padding: 0;
  border: 0;
}

.location-group legend {
  margin-bottom: 0.34rem;
  padding: 0;
  color: #343a36;
  font-family: var(--form-print);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-shadow: none;
}

.location-group legend span {
  margin-right: 0.3rem;
  color: var(--ink);
  background: var(--saffron);
  border-radius: 1px;
  padding: 0.08rem 0.26rem;
}

html[lang="en"] #search-form :is(
  .form-instruction,
  .mode-button span,
  .field label,
  .field select,
  .letter-box,
  .location-group legend
) {
  text-shadow: 0 0 0.22px currentColor, 0.24px 0.12px 0.2px rgba(28, 35, 32, 0.3);
}

.field-help,
.privacy-note {
  margin: 0.3rem 0 0;
  color: #766a53;
  font-size: 0.74rem;
}

.coverage-warning {
  margin-top: 0.45rem;
  padding: 0.55rem 0.65rem;
  color: #fff0c6;
  background: rgba(202, 100, 29, 0.28);
  border-left: 3px solid var(--saffron);
  border-radius: 4px;
  font-size: 0.65rem;
}

.bot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-message {
  margin-top: 0.65rem;
  padding: 0.58rem 0.7rem;
  color: #ffe5dc;
  background: rgba(168, 54, 42, 0.7);
  border-left: 3px solid #ff927b;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 650;
}

.counter-action,
.wall-action {
  margin-top: 0.72rem;
  display: grid;
  grid-template-columns: minmax(12rem, 0.72fr) 1fr;
  gap: 0.72rem;
  align-items: center;
}

.wall-action {
  position: absolute;
  top: 64.1%;
  left: 64.6%;
  z-index: 5;
  width: 34%;
  margin: 0;
  transform: translateX(-50%);
  grid-template-columns: 1fr;
  justify-items: center;
}

.wall-action .search-button {
  width: clamp(12rem, 52%, 19rem);
}

.wall-action .button-label {
  white-space: nowrap;
}

.search-button {
  position: relative;
  width: 100%;
  min-height: 2.4rem;
  padding: 0.2rem 1.5rem 0.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: #3a2a14;
  background-color: #cfa257;
  background-image: url("assets/form-paper-grain.svg");
  background-repeat: repeat;
  background-size: 180px 180px;
  background-blend-mode: multiply;
  border: 1px solid rgba(84, 56, 28, 0.82);
  border-radius: 2px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 233, 182, 0.42),
    inset 0 -1px 0 rgba(84, 56, 28, 0.3),
    0 1px 0 rgba(62, 41, 22, 0.4),
    0 2px 3px rgba(62, 41, 22, 0.22);
  font-family: var(--form-print);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.012em;
  text-shadow: 0 0 0.22px currentColor;
  transition: color 160ms ease, background-color 160ms ease;
}

.search-button::before,
.search-button::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5f421f;
  box-shadow: inset 0 1px 0 rgba(35, 22, 8, 0.7), 0 1px 0 rgba(255, 233, 182, 0.45);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-button::before { left: 0.52rem; }
.search-button::after { right: 0.52rem; }

.button-stamp {
  width: 1.85rem;
  height: 1.55rem;
  padding: 0;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #f3dfb8;
  background: #8c4032;
  border: 1px solid rgba(88, 43, 33, 0.88);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  transform: none;
  transition: color 160ms ease, transform 160ms ease;
}

.search-button:hover {
  color: #2b1e0d;
  background-color: #d9ad5f;
}

.search-button:hover .button-stamp { color: #fff0ca; background-color: #a94f3b; transform: translateX(2px); }
.search-button:active .button-stamp { transform: translateX(2px) scale(0.94); }

.search-button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.search-button.is-loading .button-stamp { animation: stamp-pulse 700ms ease-in-out infinite alternate; }

@keyframes stamp-pulse { to { opacity: 0.45; transform: rotate(3deg); } }

.scene-footer {
  position: absolute;
  left: 50%;
  bottom: clamp(0.9rem, 2vw, 1.8rem);
  z-index: 5;
  width: min(53rem, calc(100% - 3rem));
  min-height: 4.55rem;
  padding: 0.55rem 0.7rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  color: var(--cream);
  background: rgba(18, 52, 50, 0.9);
  border: 1px solid rgba(255, 242, 209, 0.28);
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(9, 28, 25, 0.34);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.desk-ticket {
  width: 3.45rem;
  height: 3.45rem;
  display: grid;
  place-content: center;
  color: var(--ink);
  background: var(--saffron);
  border: 1px solid rgba(23, 40, 39, 0.3);
  border-radius: 50%;
  text-align: center;
  transform: rotate(-4deg);
}

.desk-ticket span {
  font-family: var(--mono);
  font-size: 0.42rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desk-ticket strong {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1;
}

.scene-note { display: grid; gap: 0.08rem; }

.scene-note strong { font-size: 0.72rem; }

.scene-note span {
  color: rgba(255, 242, 209, 0.62);
  font-size: 0.6rem;
}

.scene-footer > a {
  padding: 0.58rem 0.78rem;
  color: var(--ink);
  background: var(--cream);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

/* Board results — a printed sheet clipped to the green board, swapped in
   for the form. Same paper, same print face, never taller than the form. */
.board-results {
  padding: 0.45rem;
  color: var(--ink);
  background-color: #f4f1e7;
  background-image: url("assets/form-paper-grain.svg");
  background-repeat: repeat;
  background-size: 180px 180px;
  border: 1px solid rgba(48, 53, 50, 0.78);
  border-radius: 1px;
  font-family: var(--form-print);
  animation: sheet-arrive 240ms ease both;
}

#search-form { animation: sheet-arrive 240ms ease both; }

@keyframes sheet-arrive {
  from { opacity: 0; transform: translateY(9px); }
}

@media (prefers-reduced-motion: reduce) {
  .board-results,
  #search-form { animation: none; }
}

.step-label { color: #9c5620; }

/* Chalk-written dataset facts on the empty green board, behind the sheet. */
.board-chalk {
  position: absolute;
  top: 55.2%;
  left: 64.6%;
  z-index: 4;
  width: 34%;
  color: rgba(206, 231, 216, 0.55);
  font-family: var(--wall-paint);
  font-weight: 300;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0.5px 0 rgba(206, 231, 216, 0.16);
  pointer-events: none;
  transform: translateX(-50%) rotate(-0.5deg);
}

.board-chalk p {
  margin: 0;
  line-height: 1.3;
}

.chalk-line--big { font-size: clamp(1.15rem, 1.5vw, 1.8rem); }

.chalk-line--big strong { font-weight: 300; letter-spacing: 0.04em; }

.board-chalk .chalk-line:not(.chalk-line--big) { font-size: clamp(0.78rem, 0.95vw, 1.12rem); }

html[lang="kn"] .board-chalk {
  font-family: var(--kannada);
  font-weight: 400;
}

.sheet-head {
  margin: 0 0 0.42rem;
  padding: 0.22rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid rgba(48, 53, 50, 0.72);
}

.sheet-head h2 {
  margin: 0;
  font-family: var(--form-print);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.text-button {
  padding: 0.24rem 0.5rem;
  color: #59331f;
  background: transparent;
  border: 1px dashed rgba(89, 51, 31, 0.65);
  border-radius: 1px;
  cursor: pointer;
  font-family: var(--form-print);
  font-size: 0.66rem;
  white-space: nowrap;
}

.text-button:hover { background: rgba(210, 161, 88, 0.18); }

.result-summary,
.empty-result,
.pagination-limit-note,
.sheet-error {
  margin: 0 0 0.42rem;
  padding: 0.1rem 0.15rem;
  color: #494f4b;
  font-family: var(--form-print);
  font-size: 0.7rem;
  font-style: italic;
  line-height: 1.3;
}

.sheet-error { color: var(--red); font-style: normal; }

.empty-result {
  display: grid;
  gap: 0.28rem;
  font-style: normal;
  padding: 0.5rem 0.15rem;
}

.empty-result strong { color: var(--ink); }

.empty-result-link {
  width: fit-content;
  margin-top: 0.3rem;
  color: #8c3d24;
}

.pagination-limit-note { margin-top: -0.2rem; }

.result-table-heading,
.result-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.9fr) 2.2rem;
  gap: 0.55rem;
  align-items: center;
}

.result-table-heading {
  padding: 0.12rem 0.35rem 0.3rem;
  color: #6c6355;
  font-family: var(--form-print);
  font-size: 0.56rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(48, 53, 50, 0.5);
}

.compact-result { border-bottom: 1px dashed rgba(48, 53, 50, 0.42); }

.result-row {
  width: 100%;
  padding: 0.44rem 0.35rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--form-print);
}

.result-row:hover { background: rgba(210, 161, 88, 0.16); }

.row-voter {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.row-name,
.row-relative,
.row-status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-name {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.015em;
}

.row-match {
  color: var(--green);
  font-size: 0.5rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.row-relative,
.row-status { font-size: 0.68rem; }

.row-relative { color: #5c564a; }

.row-status { color: #7e251b; }

.row-toggle {
  color: #8c4032;
  font-size: 1rem;
  text-align: center;
}

.detail-loading,
.detail-error {
  padding: 0.6rem;
  color: #494f4b;
  border: 1px dashed rgba(48, 53, 50, 0.5);
  font-family: var(--form-print);
  font-size: 0.72rem;
}

.detail-error {
  color: var(--red);
  border-color: rgba(168, 54, 42, 0.5);
}

.sheet-detail .sheet-back { margin-bottom: 0.3rem; }

.result-card {
  padding: 0.05rem 0.2rem 0.1rem;
  font-family: var(--form-print);
}

.result-topline {
  margin-bottom: 0.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.match-badge {
  padding: 0.14rem 0.4rem;
  color: var(--green);
  border: 1px solid rgba(35, 108, 82, 0.55);
  border-radius: 1px;
  font-size: 0.52rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.match-badge--possible {
  color: #9c5620;
  border-color: rgba(156, 86, 32, 0.55);
}

.result-index {
  color: #6c6355;
  font-size: 0.6rem;
}

.result-name {
  margin-bottom: 0.05rem;
  font-family: var(--form-print);
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.relative-line {
  margin-bottom: 0.4rem;
  color: #5c564a;
  font-size: 0.7rem;
}

.result-facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px dashed rgba(48, 53, 50, 0.45);
}

.result-facts div {
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(48, 53, 50, 0.45);
}

.result-facts div:nth-child(odd) { padding-right: 0.8rem; }

.result-facts div:nth-child(even) {
  padding-left: 0.8rem;
  border-left: 1px dashed rgba(48, 53, 50, 0.45);
}

.result-facts dt {
  margin-bottom: 0.08rem;
  color: #6c6355;
  font-size: 0.5rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.result-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.74rem;
}

.result-status { color: #7e251b; }

.duplicate-note,
.source-member-note {
  margin-top: 0.45rem;
  padding: 0.4rem 0.5rem;
  background: rgba(210, 161, 88, 0.2);
  font-size: 0.64rem;
  overflow-wrap: anywhere;
}

.source-link {
  margin-top: 0.45rem;
  padding: 0.38rem 0.5rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: #f4f1e7;
  background: var(--teal);
  border: 1px solid rgba(9, 43, 44, 0.9);
  border-radius: 1px;
  text-decoration: none;
  font-size: 0.7rem;
}

.source-link:hover { background: var(--teal-light); }

.verify-line {
  margin: 0.3rem 0 0;
  color: #6c6355;
  font-size: 0.6rem;
  font-style: italic;
}

.pagination {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.pagination button,
.pagination span {
  min-width: 1.6rem;
  min-height: 1.6rem;
  padding: 0.15rem;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(48, 53, 50, 0.55);
  border-radius: 1px;
  font-family: var(--form-print);
  font-size: 0.64rem;
}

.pagination span { border-color: transparent; }

.pagination button { cursor: pointer; }

.pagination button:hover { background: rgba(210, 161, 88, 0.16); }

.pagination button[aria-current="page"] {
  color: #f4f1e7;
  background: var(--teal);
  border-color: rgba(9, 43, 44, 0.9);
}

.pagination button:disabled { cursor: default; opacity: 0.4; }

/* Notice wall — printed government notices below the scene, in the same
   paper/print material as the board sheets. */
.counter-guide {
  width: min(62rem, calc(100% - 3rem));
  margin: clamp(3.5rem, 7vw, 6rem) auto;
  display: grid;
  gap: 1.1rem;
}

.notice {
  padding: 1.15rem 1.3rem 1.25rem;
  color: var(--ink);
  background-color: #f4f1e7;
  background-image: url("assets/form-paper-grain.svg");
  background-repeat: repeat;
  background-size: 180px 180px;
  border: 1px solid rgba(48, 53, 50, 0.72);
  border-radius: 1px;
  box-shadow: 0 2px 4px rgba(62, 41, 22, 0.14);
  font-family: var(--form-print);
}

.notice--lead { transform: rotate(-0.35deg); }

.notice:nth-of-type(3) { transform: rotate(0.3deg); }

.notice-eyebrow {
  margin: 0 0 0.3rem;
  color: #8c4032;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notice h2 {
  margin: 0 0 0.55rem;
  font-family: var(--form-print);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 400;
  line-height: 1.02;
}

.notice-title {
  margin: 0 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(48, 53, 50, 0.5);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.notice-copy {
  margin: 0;
  max-width: 44rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

.notice-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.notice-steps li {
  position: relative;
  padding: 0.55rem 0 0.6rem 2.3rem;
  border-bottom: 1px dashed rgba(48, 53, 50, 0.4);
  font-size: 0.78rem;
  line-height: 1.45;
}

.notice-steps li:last-child {
  padding-bottom: 0.1rem;
  border-bottom: 0;
}

.notice-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero) ".";
  position: absolute;
  top: 0.6rem;
  left: 0.15rem;
  color: #8c4032;
  font-size: 0.8rem;
}

.notice-steps strong {
  font-weight: 400;
  text-shadow: 0 0 0.4px currentColor;
}

.notice-dates > div {
  padding: 0.5rem 0;
  display: grid;
  grid-template-columns: minmax(9.5rem, 0.28fr) 1fr;
  gap: 0.9rem;
  border-bottom: 1px dashed rgba(48, 53, 50, 0.4);
  font-size: 0.76rem;
  line-height: 1.45;
}

.notice-dates > div:last-child { border-bottom: 0; }

.notice-date { color: #7e251b; }

.notice-sources { margin-top: 0.7rem; }

.notice-copy--small {
  margin-top: 0.6rem;
  max-width: none;
  color: #494f4b;
  font-size: 0.7rem;
  font-style: italic;
}

.official-links {
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.official-links a {
  padding: 0.42rem 0.6rem;
  color: #59331f;
  border: 1px dashed rgba(89, 51, 31, 0.65);
  border-radius: 1px;
  font-size: 0.68rem;
  text-decoration: none;
}

.official-links a:hover { background: rgba(210, 161, 88, 0.18); }

.helpline-note {
  margin: 0.85rem 0 0;
  font-size: 0.74rem;
}

.helpline-note a { color: #7e251b; }

.about-line {
  margin: 0.2rem 0 0;
  color: #6d675b;
  font-size: 0.68rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  font-family: var(--form-print);
}

footer {
  padding: 2rem max(1.5rem, calc((100% - 70rem) / 2));
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: center;
  gap: 2rem;
  color: rgba(255, 242, 209, 0.68);
  background: var(--teal);
}

.wordmark--footer { color: var(--cream); }

footer p {
  margin: 0;
  font-size: 0.66rem;
}

.footer-caution { text-align: right; }

.mode-button:focus-visible,
.search-button:focus-visible,
.text-button:focus-visible,
.result-row:focus-visible,
.source-link:focus-visible,
.pagination button:focus-visible,
.scene-footer a:focus-visible,
.official-links a:focus-visible {
  outline: 3px solid var(--saffron-soft);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .office-hero {
    height: auto;
    min-height: auto;
    padding: 0 1.7rem 2rem;
    overflow: hidden;
    color: var(--ink);
    background: #efd090;
  }

  /* Compact: the scene collapses to a shallow ticket-window band — sign,
     clerk head-and-shoulders, counter edge — and the paper form starts
     immediately below, as if resting on the counter. */
  .scene-stage {
    position: relative;
    inset: auto;
    width: auto;
    aspect-ratio: auto;
    transform: none;
  }

  .scene-picture {
    position: relative;
    inset: auto;
    z-index: 0;
    height: min(20rem, 42vh);
    margin: 0 -1.7rem;
    overflow: hidden;
  }

  .scene-picture::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(12, 31, 29, 0.32), transparent 30%, transparent 78%, rgba(12, 31, 29, 0.2));
  }

  .scene-art {
    height: 100%;
    object-fit: cover;
    object-position: 50% 4%;
  }

  .scene-vignette { display: none; }

  .scene-header {
    top: 0.8rem;
    left: 0.8rem;
    right: 0.8rem;
  }

  .scene-header .wordmark { padding: 0.34rem 0.62rem 0.34rem 0.38rem; }
  .wordmark-mark { width: 1.7rem; height: 1.7rem; }
  .language-toggle { padding: 0.4rem 0.58rem; gap: 0.38rem; font-size: 0.55rem; }
  .clerk-bubble {
    top: calc(min(20rem, 42vh) - 4.9rem);
    bottom: auto;
    left: 0;
    right: auto;
    width: min(15.5rem, 66%);
    padding: 0.6rem 0.75rem;
    border-radius: 11px 11px 11px 3px;
  }

  .clerk-bubble h1 { font-size: clamp(0.82rem, 3.6vw, 0.95rem); }

  .bubble-form-arrow { display: none; }

  .counter-nameboard {
    top: 3.1rem;
    left: 50%;
    width: min(17rem, calc(100% - 2rem));
    transform: translateX(-50%);
    filter: drop-shadow(0 6px 6px rgba(4, 22, 22, 0.3));
  }

  @keyframes sign-arrive {
    from { opacity: 0; transform: translate(-50%, -7px) rotate(-0.5deg); }
    to { opacity: 1; transform: translate(-50%, 0) rotate(0.1deg); }
  }

  .counter-panel {
    position: relative;
    inset: auto;
    width: auto;
    margin: 0.9rem auto 0;
    padding: 0;
    color: var(--ink);
    text-shadow: none;
    transform: none;
  }

  #search-form {
    padding: 0.4rem;
    background-color: rgba(250, 249, 243, 0.9);
    border-color: rgba(91, 60, 29, 0.38);
  }

  .form-instruction {
    color: #473c2d;
    border-color: rgba(91, 60, 29, 0.48);
    font-size: 0.82rem;
  }

  .counter-utility {
    margin-bottom: 0.8rem;
    padding-bottom: 0.55rem;
    color: var(--ink);
    border-color: rgba(74, 46, 14, 0.28);
  }

  .desk-label { color: #75411f; }

  .eyebrow { color: #a04729; }

  .counter-heading > p:last-child { color: #745e43; font-size: 0.72rem; }
  .mode-button { min-height: 2.5rem; font-size: 0.84rem; }

  .mode-switch {
    background: rgba(255, 248, 230, 0.36);
    border-color: rgba(74, 46, 14, 0.44);
  }

  .mode-button { color: #6f5b43; }
  .mode-button:hover { color: var(--ink); }

  .query-fields,
  .location-fields { grid-template-columns: 1fr; }

  .query-fields,
  .location-fields { gap: 0.55rem; }
  .field label { color: #473c2d; }
  .field label span { color: #796a57; }

  .field input,
  .field select {
    min-height: 3.2rem;
    color: var(--ink);
    background-color: rgba(255, 248, 230, 0.5);
    border: 1px solid rgba(91, 60, 29, 0.44);
    box-shadow: inset 0 -2px rgba(91, 60, 29, 0.08);
    font-size: 0.86rem;
  }

  .letter-entry { height: 3.2rem; }
  .letter-box { font-size: 0.78rem; }
  .field select:disabled { background-color: rgba(223, 202, 159, 0.5); }
  .location-group { margin-top: 0.85rem; }

  .location-group legend { color: #a04729; }
  .field-help { color: #77644c; }

  .coverage-warning {
    color: #6a391e;
    background: rgba(238, 165, 74, 0.25);
  }

  .form-message {
    color: #7e251b;
    background: rgba(221, 112, 84, 0.22);
    border-left-color: #a8362a;
  }

  .counter-action,
  .wall-action {
    margin-top: 0.85rem;
    grid-template-columns: 1fr;
    gap: 0.42rem;
  }

  .wall-action {
    position: relative;
    inset: auto;
    width: auto;
    transform: none;
  }

  .search-button {
    min-height: 3.3rem;
    color: var(--cream);
    background-color: #315b57;
    background-image: url("assets/form-paper-grain.svg");
    background-repeat: repeat;
    background-size: 180px 180px;
    background-blend-mode: multiply;
    border: 1px solid #092b2c;
    border-radius: 6px 6px 3px 3px;
    box-shadow: inset 0 -3px rgba(0, 0, 0, 0.18), 0 8px 18px rgba(91, 60, 29, 0.2);
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 750;
    text-shadow: none;
  }

  .search-button:hover {
    background-color: #3b6963;
    box-shadow: inset 0 -3px rgba(0, 0, 0, 0.16), 0 9px 20px rgba(91, 60, 29, 0.22);
  }

  .search-button::before,
  .search-button::after { content: none; }

  .wall-action { justify-items: stretch; }
  .wall-action .search-button { width: 100%; }
  .privacy-note { text-align: center; }

  .counter-guide { width: min(calc(100% - 2rem), 70rem); }

  .board-chalk { display: none; }

  .notice h2 { font-size: clamp(1.7rem, 8vw, 2.4rem); }

  .notice-dates > div { grid-template-columns: 1fr; gap: 0.15rem; }

  .board-results { margin-top: 0.85rem; }

  .result-table-heading { display: none; }

  .result-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.42rem 0.75rem;
    padding: 0.6rem 0.35rem;
  }

  .row-voter { grid-column: 1; }
  .row-toggle { grid-column: 2; grid-row: 1; }
  .row-relative, .row-status { grid-column: 1 / -1; white-space: normal; }
  .row-relative::before { content: "Relative: "; color: #6c6355; }
  .row-status::before { content: "Reason: "; color: #6c6355; }

  .result-facts { grid-template-columns: 1fr; }
  .result-facts div:nth-child(odd),
  .result-facts div:nth-child(even) { padding: 0.65rem 0; border-left: 0; }


  footer {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    align-items: start;
  }

  .footer-caution { text-align: left; }
}

@media (max-width: 420px) {
  .mode-button { padding-inline: 0.35rem; font-size: 0.82rem; }
  .office-hero { padding-inline: 1.55rem; }
  .desk-label { max-width: 9.5rem; }
  .sheet-head { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
