/* tikitaka-mx.mx — one hand-written sheet, served from /styles/vereda.css.

   No content hash in the filename, on purpose: the file is edited by hand and a
   hash would have to be recomputed by hand with it. The consequence is written
   into the server config instead — CSS here is cached in days, never in months,
   and the build refuses to ship if that pair ever drifts apart.

   Light theme, warm paper. Everything is one column: this site is prose with a
   single conversion element at the top, and a column that stays put reads better
   on a phone than a grid that reflows. Class names all carry the vna- prefix. */

:root {
  --vna-papel: #fbf7ef;
  --vna-papel-alto: #fffdf8;
  --vna-realce: #f6e9d0;
  --vna-tinta: #241f1a;
  --vna-tinta-suave: #5c5248;
  --vna-borde: #ddd0bc;
  --vna-arcilla: #a63d20;
  --vna-arcilla-honda: #7e2d16;
  --vna-jade: #1c5a4c;
  --vna-foco: #2f6f9e;
}

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

html {
  background: var(--vna-papel);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--vna-papel);
  color: var(--vna-tinta);
  font: 17px/1.68 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

a { color: var(--vna-arcilla-honda); }
a:hover { color: var(--vna-arcilla); }

:focus-visible {
  outline: 3px solid var(--vna-foco);
  outline-offset: 2px;
}

/* ---- header: mark, the operator button, routes, one caveat ---- */

.vna-cabecera {
  border-bottom: 1px solid var(--vna-borde);
  background: var(--vna-papel-alto);
  padding: 18px 16px 20px;
}

.vna-firma {
  margin: 0 0 14px;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--vna-tinta-suave);
}

.vna-firma b {
  display: block;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--vna-tinta);
}

/* The conversion element. Full width on a phone by default, never squeezed into
   a menu row, and it keeps its own background so it is the first thing read. */
.vna-salto {
  display: block;
  max-width: 44rem;
  margin: 0 auto 14px;
  padding: 15px 20px;
  border: 1px solid var(--vna-arcilla-honda);
  border-radius: 3px;
  background: var(--vna-arcilla);
  color: var(--vna-papel-alto);
  text-decoration: none;
  box-shadow: 0 2px 0 var(--vna-arcilla-honda);
}

.vna-salto:hover,
.vna-salto:focus-visible {
  background: var(--vna-arcilla-honda);
  color: var(--vna-papel-alto);
}

.vna-salto-tit {
  display: block;
  font-size: 20px;
  line-height: 1.3;
}

.vna-salto-nota {
  display: block;
  margin-top: 3px;
  font-size: 14.5px;
  line-height: 1.45;
  color: #f6ded4;
}

.vna-rutas {
  max-width: 44rem;
  margin: 0 auto 12px;
}

.vna-rutas-lista {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.vna-rutas-lista li {
  display: inline;
}

.vna-rutas-lista li::after {
  content: " · ";
  color: var(--vna-borde);
}

.vna-rutas-lista li:last-child::after { content: ""; }

.vna-rutas-lista a[aria-current="page"] {
  color: var(--vna-tinta-suave);
  text-decoration: none;
}

.vna-aviso {
  max-width: 44rem;
  margin: 0 auto;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--vna-tinta-suave);
}

/* ---- body ---- */

.vna-cuerpo {
  max-width: 44rem;
  margin: 0 auto;
  padding: 26px 16px 8px;
}

.vna-cuerpo h1 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.vna-entrada {
  margin: 0 0 26px;
  font-size: 18.5px;
  line-height: 1.6;
  color: #3b332c;
  border-left: 4px solid var(--vna-jade);
  padding-left: 15px;
}

.vna-tramo {
  margin: 0 0 30px;
  padding: 0;
}

.vna-tramo h2 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.26;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.vna-tramo h3 {
  margin: 20px 0 8px;
  font-size: 18.5px;
  font-weight: 600;
}

.vna-tramo p {
  margin: 0 0 14px;
}

/* Tabular matter lives in definition lists on this domain: there is not one
   <table> element in the whole build, which is one of its declared differences. */
.vna-datos {
  margin: 0 0 18px;
  padding: 14px 16px 4px;
  background: var(--vna-papel-alto);
  border: 1px solid var(--vna-borde);
  border-radius: 3px;
  font-size: 16px;
}

.vna-datos dt {
  font-weight: 700;
  color: var(--vna-jade);
}

.vna-datos dd {
  margin: 2px 0 12px;
  padding: 0;
}

.vna-faq {
  margin: 0;
  padding: 0;
  font-size: 16.5px;
}

.vna-faq dt {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--vna-borde);
  font-weight: 700;
  font-size: 17.5px;
}

.vna-faq dt:first-child {
  margin-top: 4px;
  padding-top: 0;
  border-top: 0;
}

.vna-faq dd {
  margin: 7px 0 0;
  padding: 0;
}

.vna-apunte {
  margin: 0 0 16px;
  padding: 13px 15px;
  background: var(--vna-realce);
  border-radius: 3px;
  font-size: 16px;
  line-height: 1.6;
}

.vna-sello {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--vna-jade);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--vna-jade);
}

/* ---- footer ---- */

.vna-pie {
  margin-top: 10px;
  border-top: 1px solid var(--vna-borde);
  background: var(--vna-papel-alto);
  padding: 20px 16px 30px;
}

.vna-legal {
  max-width: 44rem;
  margin: 0 auto 12px;
}

.vna-legal-lista {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.vna-legal-lista li { display: inline; }

.vna-legal-lista li::after {
  content: " · ";
  color: var(--vna-borde);
}

.vna-legal-lista li:last-child::after { content: ""; }

.vna-pie-nota {
  max-width: 44rem;
  margin: 0 auto 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--vna-tinta-suave);
}

/* ---- age dialog ----
   Without the open attribute a <dialog> is display:none, so this costs nothing
   in layout and cannot shift anything: no CLS from a gate that has not opened. */

.vna-reja {
  max-width: 30rem;
  margin: auto;
  padding: 22px 22px 20px;
  border: 1px solid var(--vna-tinta);
  border-radius: 4px;
  background: var(--vna-papel-alto);
  color: var(--vna-tinta);
  font: inherit;
}

.vna-reja::backdrop {
  background: rgba(36, 31, 26, 0.62);
}

.vna-reja-tit {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
}

.vna-reja-txt {
  margin: 0 0 16px;
  font-size: 16px;
}

.vna-reja-form {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.vna-reja-si,
.vna-reja-no {
  font: inherit;
  font-size: 17px;
  padding: 11px 14px;
  border-radius: 3px;
  cursor: pointer;
}

.vna-reja-si {
  border: 1px solid var(--vna-arcilla-honda);
  background: var(--vna-arcilla);
  color: var(--vna-papel-alto);
  font-weight: 700;
}

.vna-reja-no {
  border: 1px solid var(--vna-borde);
  background: var(--vna-papel);
  color: var(--vna-tinta);
}

.vna-reja-salida {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px 22px;
  font-size: 16px;
  color: var(--vna-arcilla-honda);
}

/* ---- wider screens ---- */

@media (min-width: 46em) {
  body { font-size: 18px; }

  .vna-cabecera { padding: 22px 24px 24px; }

  .vna-salto {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 22px;
  }

  .vna-salto-tit { font-size: 21px; }
  .vna-salto-nota { margin-top: 0; }

  .vna-cuerpo { padding: 34px 24px 10px; }
  .vna-cuerpo h1 { font-size: 35px; }
  .vna-tramo h2 { font-size: 25px; }
  .vna-pie { padding: 24px 24px 36px; }

  .vna-reja-form {
    flex-direction: row;
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .vna-salto { transition: background-color 120ms linear; }
}

@media print {
  .vna-salto,
  .vna-rutas,
  .vna-reja { display: none; }
  body { background: #fff; }
}
