/* Thet: the Puneri pati. Board white, signwriter black, notice yellow only as a board fill
   under black text. No other hue. Yatra One for what a signwriter would paint, Martel Sans for
   everything else. */

:root {
  --paper: #f8f6f0;
  --wall: #e8e3d6;
  --board: #fffefa;
  --ink: #1a1918;
  --dust: #5c5852;
  --rule: #cfc9bb;
  --yellow: #f2c230;
  --hand: "Yatra One", "Martel Sans", serif;
  --text: "Martel Sans", system-ui, sans-serif;
  --header: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  padding-bottom: 64px; /* room for the phone action bar */
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 3px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--yellow);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
  font-weight: 800;
}

p {
  margin: 0;
}

.num {
  font-variant-numeric: tabular-nums;
}

[lang="mr"] {
  font-family: var(--hand);
  font-weight: 400;
}

.wrap {
  width: min(100% - 32px, 1320px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
}

.skip:focus {
  top: 12px;
}

section[aria-labelledby],
[id] {
  scroll-margin-top: calc(var(--header) + 12px);
}

/* ---- Buttons ------------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
}

.btn-main {
  background: var(--ink);
  color: var(--board);
}

.btn-main:hover {
  background: #000;
  box-shadow: 4px 4px 0 var(--yellow);
}

.btn-line {
  background: var(--board);
  color: var(--ink);
}

.btn-line:hover {
  background: var(--yellow);
}

.more {
  font-weight: 800;
}

/* ---- Header: always at the top -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--board);
  border-bottom: 2px solid var(--ink);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.mark {
  flex: none;
}

.mark-string {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.mark-nail {
  fill: var(--ink);
}

.mark-board {
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 2;
}

.mark-hole {
  fill: var(--ink);
}

.mark-word {
  font-family: var(--hand);
  font-size: 15px;
  fill: var(--ink);
}

.logo-words {
  display: grid;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--hand);
  font-size: 1.45rem;
}

.logo-sub {
  font-size: 0.78rem;
  color: var(--dust);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-wide,
.header-main {
  display: none;
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  font-weight: 800;
}

.header-call-num {
  display: none;
}

.nav-small {
  position: relative;
}

.nav-small summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  background: var(--ink);
  color: var(--board);
  border-radius: 2px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.nav-small summary::-webkit-details-marker {
  display: none;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.burger {
  position: relative;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before {
  top: -5px;
}

.burger::after {
  top: 5px;
}

.nav-small nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(300px, calc(100vw - 32px));
  background: var(--board);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.nav-small ul {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.nav-small a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 700;
}

.nav-small a[aria-current="page"] {
  background: var(--yellow);
}

.notice-strip {
  background: var(--ink);
  color: var(--board);
  text-align: center;
  font-size: 0.9rem;
  padding: 6px 16px;
}

/* ---- Phone action bar --------------------------------------------------------------- */

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  background: var(--board);
  border-top: 2px solid var(--ink);
  padding-bottom: env(safe-area-inset-bottom);
}

.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 56px;
  text-decoration: none;
  font-weight: 800;
  border-right: 1px solid var(--rule);
}

.action-bar a.ab-main {
  background: var(--ink);
  color: var(--board);
  border-right: 0;
}

/* ---- Footer: an imprint ----------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #e9e5dc;
  margin-top: 64px;
  padding: 40px 0 24px;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--board);
}

.site-footer .logo,
.site-footer .logo-sub {
  color: var(--board);
}

.site-footer h2 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #c9c3b6;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-grid p + p {
  margin-top: 6px;
}

.footer-promise {
  margin-top: 12px;
  font-family: var(--hand);
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer-imprint dl {
  margin: 8px 0;
  display: grid;
  gap: 8px;
}

.footer-imprint dt {
  color: #c9c3b6;
  font-size: 0.82rem;
}

.footer-imprint dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #4a4743;
  color: #c9c3b6;
}

.sample {
  display: inline-block;
  padding: 0 6px;
  border: 1.5px dashed currentColor;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.15em;
}

/* ---- Forms (the platform's <Form>, styled through its unrigid-* classes) ------------ */

.form {
  display: grid;
  gap: 18px;
  align-items: start;
}

.form .unrigid-field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.form label {
  font-weight: 800;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="date"],
.form input[type="number"],
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--board);
  border: 2px solid var(--ink);
  border-radius: 2px;
}

.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.form textarea {
  min-height: 110px;
}

.form .unrigid-field-checkbox,
.form .unrigid-field-consent {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
}

.form .unrigid-field-checkbox label,
.form .unrigid-field-consent label {
  font-weight: 500;
}

.form .unrigid-field-checkbox .unrigid-error,
.form .unrigid-field-consent .unrigid-error {
  grid-column: 1 / -1;
}

.form input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--ink);
  margin: 2px 0 0;
}

.form .unrigid-required,
.form .unrigid-help {
  color: var(--dust);
  font-weight: 500;
  font-size: 0.88rem;
}

.form .unrigid-error {
  font-weight: 800;
  font-size: 0.92rem;
}

.form .unrigid-error:not(:empty)::before {
  content: "✕ ";
}

.form .unrigid-form-status {
  padding: 12px 14px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-weight: 700;
}

.form .unrigid-form-status:empty {
  display: none;
}

.form button,
.form [type="submit"] {
  justify-self: start;
  min-height: 54px;
  padding: 12px 24px;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--board);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
}

.form button:hover,
.form [type="submit"]:hover {
  box-shadow: 4px 4px 0 var(--yellow);
}

.form button:disabled,
.form [type="submit"]:disabled {
  opacity: 0.55;
  cursor: wait;
}
