/* vorivori — "Tinta y cartulina". A feria stall drawn by hand: one blue ink on white paper, gouache patches in the
   four sheet colours, lettering in Cartel. The marks change hands, not meaning: state still lives in its word, its
   sheet colour and the plan's grammar. Plain selectors: embedded browsers on old Android lag years behind.
   The brush marks reach this sheet as custom properties from trazos.css, written by server/cli/laminas.ts. */

@font-face {
  font-family: Archivo;
  src: url(/static/fonts/archivo-var.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

/* Londrina Solid Black with the Guaraní nasal vowels added, renamed as its licence asks (scripts/cartel.py).
   One face answers every weight, so the browser never fakes a bolder one. */
@font-face {
  font-family: Cartel;
  src: url(/static/fonts/cartel.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Until Cartel arrives: Archivo at its narrowest and heaviest, scaled to Cartel's measure so the swap does not
   reflow the page. Measured with fontTools on a line of feria names: Cartel sets 93.4% as wide. */
@font-face {
  font-family: "Cartel respaldo";
  src: url(/static/fonts/archivo-var.woff2) format("woff2");
  font-weight: 900;
  font-stretch: 75%;
  size-adjust: 93.4%;
  ascent-override: 101.2%;
  descent-override: 25.5%;
  line-gap-override: 0%;
}

:root {
  --papel: #FFFFFF;
  --tinta: #14248A;
  --tinta-suave: #4A5380;
  --numerador: #D81E2C;
  --hoja-rosa: #F7B5CD;
  --hoja-amarilla: #FFE14D;
  --hoja-celeste: #A8D5F2;
  --hoja-verde: #A9DDB8;
  --linea: 2px solid #14248A;
  /* A stitched row: tinta at 30% on papel, as a flat hex. */
  --puntada: 2px dashed #B8BDDC;
  --letra: Cartel, "Cartel respaldo", "Arial Narrow", sans-serif;
  /* Cut by hand: no two corners alike. Buttons, chips and stamps; fields and tables stay square. */
  --corte: 3px 5px 4px 6px / 5px 3px 6px 4px;
  --margen: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 500 1rem/1.45 Archivo, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: lining-nums;
}

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }
/* One tick box and one option mark for the whole site, in ink: the browser's own are grey and rounded. */
input[type=checkbox], input[type=radio] { -webkit-appearance: none; appearance: none; display: inline-grid; place-content: center; flex: none; width: 24px; height: 24px; margin: 0; border: 2px solid var(--tinta); border-radius: 0; background: var(--papel); vertical-align: middle; cursor: pointer; }
input[type=radio] { border-radius: 50%; }
input[type=checkbox]::before { content: ""; width: 12px; height: 6px; margin-top: -3px; border-left: 3px solid var(--papel); border-bottom: 3px solid var(--papel); transform: rotate(-45deg); }
input[type=radio]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--papel); }
input[type=checkbox]:checked { background: var(--tinta); }
input[type=radio]:checked::before { background: var(--tinta); }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }
input[type=checkbox]:disabled, input[type=radio]:disabled { border-style: dashed; cursor: default; }
h3 a { color: var(--tinta); font-weight: 800; }

p, ul, ol, h1, h2, h3, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }

::selection { background: var(--hoja-amarilla); color: var(--tinta); }
input, textarea, select { caret-color: var(--tinta); accent-color: #14248A; }

/* ---- lettering ---- */

/* Titles are lettered, as a sign painter would; everything read or filled in stays Archivo. */
h1, h2 { font-family: var(--letra); font-weight: 900; font-synthesis: none; }
h1 { line-height: 1; text-wrap: balance; }
/* The brush underline: a stroke under the first words, not a rule across the column. Without the image it is
   simply not there, and the title still reads as one. */
h2 {
  padding-bottom: 0.32em;
  background-image: var(--k-subrayado);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 4.2em 0.24em;
}
/* Under 20 px Cartel clots, so these headings are read, not lettered: Archivo, and no underline. */
.lista h2, .sol-bloque h2, .pie-mapa h2, .demo-nota h2,
.taller-cuerpo h2, .enlace-caja h2, .ed-piezas h2, .ed-ficha h2, .ed-numerar h2, .vv-bloque h2 {
  font-family: inherit;
  padding-bottom: 0;
  background-image: none;
}
/* A step's head carries its number; the underline would cross it. */
.paso-revisar h2 { background-image: none; }

/* ---- strips ---- */

.demo {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 6px var(--margen);
  background: var(--tinta);
  color: var(--papel);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 var(--margen);
  border-bottom: var(--linea);
}

/* The name is the one lettering that is a picture (an SVG with its maize dots). Its box is fixed before it loads. */
.wordmark { display: inline-flex; flex: none; align-items: center; min-height: 44px; text-decoration: none; }
.wordmark img { display: block; width: auto; height: 30px; }

/* Under the header, the shop's awning: the striped toldo on feria pages, only its scalloped edge where a person is
   filling something in, and nothing in the workshop. The band is decoration; without the image it is white space. */
.toldo { display: none; }
/* image-set() with type() picks AVIF where it can. A browser too old for it drops the whole declaration (a var()
   cannot fall back to an earlier line), and the band is white: nothing is lost but the stripes. */
.portal .toldo {
  display: block;
  height: 44px;
  background-image: var(--toldo-set);
  background-repeat: repeat-x;
  background-size: auto 44px;
}
.feria .toldo, .simple .toldo, .solicitud .toldo {
  display: block;
  height: 16px;
  /* Drawn up into the header's rule, so the row hangs from it instead of floating under it. */
  margin-top: -3px;
  /* The traced marks stretch to their box (preserveAspectRatio none), so the tile is sized from the viewBox, 239 × 82. */
  background: var(--k-feston) repeat-x 0 0 / 47px 16px;
}

.top-status { font-weight: 700; font-size: 0.875rem; text-align: right; }

/* ---- the almanaque leaf ---- */

.hoja {
  background: var(--hoja-rosa);
  padding: 14px var(--margen) 16px;
  border-bottom: var(--linea);
}

/* On a phone the leaf reads like the wall almanaque: the numeral, and beside it the day, month and hours. */
.hoja-fecha { font-weight: 700; font-size: 1.125rem; line-height: 1.2; }
.hoja-fecha time, .hoja-puesto { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto auto; column-gap: 14px; }
.hoja-num {
  grid-column: 1;
  grid-row: 1 / 4;
  margin-left: -0.045em;
  color: var(--numerador);
  font-weight: 900;
  font-stretch: 110%;
  font-size: 140px;
  line-height: 0.74;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.hoja-dia, .hoja-mes, .hoja-hora { grid-column: 2; }
.hoja-dia { align-self: end; font-size: 1.375rem; font-weight: 800; }
.hoja-fecha-larga time, .hoja-fecha-larga .hoja-puesto { display: block; }
.hoja-fecha-larga span { display: block; }
.hoja-fecha-larga .hoja-num { margin: 4px 0 8px; font-size: 92px; font-stretch: 100%; line-height: 0.9; }

.hoja h1 {
  margin-top: 14px;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hoja-lugar { margin-top: 6px; font-weight: 600; }
.hoja-org { margin-top: 4px; font-size: 0.875rem; }
/* The stand number is ink wherever it appears: red is the date's. */
.hoja-puesto .hoja-num { color: var(--tinta); }
.verificado { font-weight: 800; white-space: nowrap; }
.verificado::before {
  content: "";
  display: inline-block;
  width: 0.36em;
  height: 0.68em;
  margin: 0 0.4em 0.05em 0.15em;
  border: solid var(--tinta);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

/* ---- the plan ---- */

.plano { padding: 14px var(--margen) 0; }
.plano-link { display: block; text-decoration: none; }
.plan { display: block; width: 100%; height: auto; overflow: visible; }

.plan rect, .plan path, .plan circle { vector-effect: non-scaling-stroke; }
.pl-hall { fill: var(--papel); stroke: var(--tinta); stroke-width: 2px; }
/* Not the overlay: its hatching comes from a fill attribute, which any fill set here would paint over. */
.pl-s rect:not(.pl-over) { fill: var(--papel); stroke: var(--tinta); stroke-width: 2px; }
.pl-s .pl-over { stroke: none; }
/* Pattern lines are in plan centimetres: a non-scaling stroke is not honoured inside a pattern. */
.plan pattern path { stroke: var(--tinta); stroke-width: 9; fill: none; vector-effect: none; }
.pl-confirmada rect:not(.pl-over), .pl-con_sena rect:not(.pl-over) { fill: var(--tinta); stroke: var(--papel); }
/* Seen whole on a phone a stand is a few pixels: a white edge there eats it and the rows stop lining up. */
.plan[data-labels="none"] .pl-confirmada rect:not(.pl-over), .plan[data-labels="none"] .pl-con_sena rect:not(.pl-over) { stroke: var(--tinta); }
.plan[data-labels="none"] .pl-mark { display: none; }
.pl-reservada rect:not(.pl-over), .pl-en_revision rect:not(.pl-over) { fill: var(--hoja-amarilla); }
.pl-llego rect:not(.pl-over) { fill: var(--hoja-verde); }
.pl-mark { fill: none; stroke: var(--tinta); stroke-width: 2px; }
.pl-notch { fill: var(--papel); }
.pl-num, .pl-flabel {
  display: none;
  fill: var(--tinta);
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
}
.pl-confirmada .pl-num, .pl-con_sena .pl-num { fill: var(--papel); }
.pl-f rect { fill: none; stroke: var(--tinta); stroke-width: 2px; }
.pl-f-entrada rect, .pl-f-salida rect { fill: var(--papel); stroke: none; }
.pl-door { fill: var(--tinta); }

.plano-pie {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-weight: 700;
}
.plano-ver { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; white-space: nowrap; }

.leyenda { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 0.875rem; color: var(--tinta-suave); }
.leyenda li { display: flex; align-items: center; gap: 7px; }
.muestra { width: 26px; height: 14px; border: var(--linea); background: var(--papel); }
.muestra-confirmada { background: var(--tinta); }
.muestra-reservada { background: var(--hoja-amarilla); }
.muestra-no_disponible {
  background:
    repeating-linear-gradient(45deg, var(--tinta) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, var(--tinta) 0 1px, transparent 1px 5px);
}

/* ---- the body of the page ---- */

.feria-cuerpo section { padding: 22px var(--margen); }
/* Sections part with white space and their lettered heads, never a rule across the page. */
.feria-cuerpo section + section { padding-top: 36px; }
.feria-cuerpo .plano { padding-bottom: 20px; }
.feria-cuerpo p + p { margin-top: 10px; }

.fase-dato { font-size: 1.375rem; font-weight: 800; line-height: 1.2; text-wrap: balance; }

h2 { font-size: 1.75rem; line-height: 1.05; margin-bottom: 14px; }
h3 { font-size: 0.9375rem; font-weight: 600; color: var(--tinta-suave); margin: 18px 0 8px; }
h2 + h3 { margin-top: 0; }

.precios { width: 100%; border-collapse: collapse; }
.precios th, .precios td { padding: 10px 0; border-bottom: 1px solid var(--tinta); vertical-align: baseline; }
.precios tr:last-child th, .precios tr:last-child td { border-bottom: 0; padding-bottom: 0; }
.precios tr:first-child th, .precios tr:first-child td { padding-top: 0; }
.precios th { text-align: left; font-weight: 600; }
.precios td { text-align: right; font-size: 1.5rem; font-weight: 900; font-stretch: 112%; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }

.lista li { padding-left: 18px; position: relative; }
.lista li + li { margin-top: 6px; }
.lista li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--tinta); }

.pasos { counter-reset: paso; }
.pasos li { counter-increment: paso; display: flex; gap: 14px; align-items: baseline; }
.pasos li + li { margin-top: 10px; }
.pasos li::before {
  content: counter(paso);
  flex: 0 0 22px;
  font-size: 1.75rem;
  font-weight: 900;
  font-stretch: 118%;
  line-height: 1;
}
.pago { margin-top: 18px; padding: 12px 14px; border: var(--linea); font-weight: 700; }
.feria-cuerpo .pasos + .pago { margin-top: 18px; }

.feriantes li { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.feriantes li + li { margin-top: 4px; }
.mesa-num {
  flex: 0 0 52px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tinta);
  color: var(--papel);
  font-weight: 900;
  font-stretch: 112%;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums lining-nums;
}
.feriante-nombre { font-weight: 700; font-stretch: 88%; font-size: 1.1875rem; line-height: 1.15; }

.boton-linea {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: var(--linea);
  font-weight: 800;
  text-decoration: none;
}
.enlace { color: var(--tinta-suave); font-size: 0.9375rem; overflow-wrap: anywhere; }

.pie { padding: 22px var(--margen) 28px; border-top: var(--linea); font-size: 0.875rem; color: var(--tinta-suave); }
.pie .wordmark { min-height: 0; margin-right: 6px; vertical-align: -6px; }
.pie .wordmark img { height: 22px; }
/* The pennants hang from the footer's top rule: the string's ends sit 2.8% of the strip's width down the art, so the
   strip is pulled up through the pie's 22px padding and that much more. The art is opaque, so the rule stops where the
   string takes over. */
.banderines { display: block; max-width: 760px; margin: max(-44px, calc(-23px - 2.8%)) auto 12px; }
.banderines img { display: block; width: 100%; height: auto; }

/* ---- the one action ---- */

.con-accion { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.accion {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 10px var(--margen) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--papel);
  border-top: var(--linea);
}
.boton {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding-inline: 16px;
  text-align: center;
  background: var(--tinta);
  color: var(--papel);
  font-size: 1.125rem;
  font-weight: 800;
  text-decoration: none;
}
.boton:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }
.boton:active, .boton-linea:active { transform: translateY(1px); }

/* ---- wider than a phone ---- */

@media (min-width: 720px) {
  :root { --margen: 32px; }
  .pl-num, .pl-flabel { display: block; }
  .feria-cuerpo { max-width: 760px; margin-left: auto; margin-right: auto; }
  .hoja > * { max-width: 696px; margin-left: auto; margin-right: auto; }
  .hoja { padding-top: 28px; padding-bottom: 28px; }
  .hoja-fecha { font-size: 1.375rem; }
  .hoja-num { font-size: 240px; }
  .hoja-dia { font-size: 1.75rem; }
  .hoja-fecha-larga .hoja-num { font-size: 140px; }
  .accion { padding-left: calc(50% - 348px); padding-right: calc(50% - 348px); }
}

@media (min-width: 1100px) {
  .feria-main { display: grid; grid-template-columns: 440px minmax(0, 1fr); align-items: start; }
  .hoja {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 40px 40px 120px;
    border-bottom: 0;
    border-right: var(--linea);
  }
  .demo ~ .feria-main .hoja { top: 30px; min-height: calc(100vh - 30px); }
  .hoja > * { max-width: none; margin-left: 0; margin-right: 0; }
  .hoja-fecha time, .hoja-puesto { display: block; }
  .hoja-fecha span { display: block; }
  .hoja-num { font-size: 250px; margin: 10px 0 18px -0.045em; }
  .hoja-mes, .hoja-hora { display: inline; }
  .hoja-fecha-larga .hoja-num { font-size: 120px; }
  /* The leaf is 440px wide: 3rem is the largest title that still outranks a 2.5rem section head there. */
  .hoja h1 { font-size: 3rem; margin-top: 20px; }
  .hoja-lugar { font-size: 1.125rem; margin-top: 10px; }
  .hoja-org { font-size: 1rem; margin-top: 6px; }
  .feria-cuerpo { max-width: 820px; margin: 0; }
  .feria-cuerpo section { padding: 32px 48px; }
  .feria-cuerpo section + section { padding-top: 56px; }
  .plano-pie, .fase-dato { font-size: 1.5rem; }
  .con-accion { padding-bottom: 0; }
  .accion { left: 0; right: auto; width: 440px; padding: 0 40px 40px; background: none; border-top: 0; }
  .top { min-height: 56px; }
  .wordmark img { height: 36px; }
  /* Kept at the phone's 44 px: at 88 it outshouted the sections above it. */
  .portal .toldo { background-image: var(--toldo-2-set); }
}

@media print {
  .accion, .demo { position: static; }
  /* The awning and the pennants are colour on paper nobody asked for; the wordmark stays. Named as the screen rules
     name them, or their weight wins over a bare .toldo. */
  .toldo, .portal .toldo, .feria .toldo, .simple .toldo, .solicitud .toldo, .banderines { display: none; }
}

/* ================= the plan, full screen ================= */

button, input { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.plano-barra { display: grid; gap: 10px; padding: 12px var(--margen); border-bottom: var(--linea); }
.volver { justify-self: start; font-weight: 800; font-size: 1.125rem; text-decoration: none; }
.volver::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.35em;
  border: solid var(--tinta);
  border-width: 0 0 3px 3px;
  transform: rotate(45deg) translateY(-0.08em);
}
.buscar label { display: block; margin-bottom: 4px; font-size: 0.875rem; font-weight: 600; }
.buscar-campo { display: flex; }
.buscar input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: var(--linea);
  border-right: 0;
  background: var(--papel);
  -webkit-appearance: none;
  appearance: none;
}
.buscar input:focus-visible { outline: 3px solid var(--tinta); outline-offset: -5px; }
.buscar button { min-height: 48px; padding: 0 16px; border: var(--linea); background: var(--tinta); color: var(--papel); font-weight: 800; }
.buscar-resultado, .sin-conexion { font-weight: 700; }
.sin-conexion { padding: 8px 12px; border: var(--linea); }

.vista { display: flex; }
.vista button { flex: 1; min-height: 44px; border: var(--linea); background: var(--papel); font-weight: 800; }
.vista button + button { border-left: 0; }
.vista button[aria-pressed="true"] { background: var(--tinta); color: var(--papel); }

.mapa { padding: 14px var(--margen) 18px; border-bottom: var(--linea); }
.lienzo-girado { display: none; }
@media (max-width: 719px) and (orientation: portrait) {
  .lienzo-ancho { display: none; }
  .lienzo-girado { display: block; }
}

.pl-detail { display: none; }
.pl-num2, .pl-name { fill: var(--papel); text-anchor: middle; dominant-baseline: central; }
.pl-num2 { font-weight: 900; font-stretch: 112%; }
.pl-name { font-weight: 700; font-stretch: 70%; }
.pl-fade { opacity: 0.4; }
.pl-fade rect:not(.pl-over) { fill: var(--papel); stroke: var(--tinta); }
.pl-fade .pl-num { fill: var(--tinta); }
.pl-fade .pl-over, .pl-fade .pl-detail, .pl-fade .pl-notch { display: none; }
.plan a { cursor: pointer; }
.plan a:focus-visible { outline: none; }
.plan a:focus-visible rect { stroke: var(--numerador); stroke-width: 4px; }
.plan[data-labels="none"] .pl-num, .plan[data-labels="none"] .pl-flabel { display: none; }
.plan[data-labels="num"] .pl-num, .plan[data-labels="num"] .pl-flabel,
.plan[data-labels="name"] .pl-num, .plan[data-labels="name"] .pl-flabel { display: block; }
.plan[data-labels="name"] .pl-nombrada .pl-num { display: none; }
.plan[data-labels="name"] .pl-nombrada .pl-detail { display: block; }
.pl-ring { fill: none; stroke: var(--tinta); stroke-width: 4px; vector-effect: non-scaling-stroke; pointer-events: none; }
.pl-ring-halo { stroke: var(--papel); stroke-width: 10px; }

.lista { padding: 6px var(--margen) 32px; }
.lista h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 20px 0 4px; font-size: 1.125rem; }
.zona-precio { font-weight: 900; font-stretch: 112%; white-space: nowrap; }
.fila { display: flex; gap: 12px; align-items: flex-start; min-height: 56px; padding: 10px 0; border-bottom: 1px solid var(--tinta); }
.fila:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.fila:target { outline: 3px solid var(--tinta); outline-offset: 4px; }
.fila-cuerpo { min-width: 0; }
.fila-titulo, .fila-dato, .fila-extra { display: block; }
.fila-titulo { font-weight: 700; font-stretch: 88%; font-size: 1.1875rem; line-height: 1.15; }
.fila-extra { margin-top: 2px; font-size: 0.875rem; color: var(--tinta-suave); }
.fila-vecinos { display: none; }
.fila:target .fila-vecinos, .ficha .fila-vecinos { display: block; }
.fila-por_confirmar .mesa-num, .fila-libre .mesa-num, .fila-no_disponible .mesa-num {
  background: var(--papel);
  color: var(--tinta);
  border: var(--linea);
}
.fila-no_disponible .mesa-num {
  background:
    repeating-linear-gradient(45deg, var(--tinta) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(-45deg, var(--tinta) 0 1px, transparent 1px 6px);
  text-shadow: 0 0 3px var(--papel), 0 0 3px var(--papel), 0 0 3px var(--papel);
}

.ficha {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  max-height: 72vh;
  overflow-y: auto;
  padding: 18px var(--margen) calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--papel);
  border-top: var(--linea);
}
.ficha-num {
  float: left;
  margin: 0 16px 6px 0;
  font-size: 84px;
  font-weight: 900;
  font-stretch: 116%;
  line-height: 0.78;
  letter-spacing: -0.03em;
  transform-origin: 0 0;
}
.ficha-cuerpo { display: flow-root; min-height: 66px; padding-right: 56px; }
.ficha-pasos { clear: both; }
.ficha-cerrar {
  position: absolute;
  top: 6px;
  right: 8px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 8px;
  border: 0;
  background: none;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.ficha .fila-titulo { font-size: 1.375rem; }
/* The second emprendimiento of a shared space: on its own line, clear of the big number. */
.fila-otra { margin-top: 8px; }
.ficha .fila-otra { clear: left; }
.ficha-pasos { display: flex; gap: 10px; margin-top: 14px; }
.ficha-pasos button {
  flex: 1;
  min-height: 48px;
  border: var(--linea);
  background: var(--papel);
  font-weight: 900;
  font-stretch: 112%;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums lining-nums;
}
.ficha .boton { margin-top: 10px; }
.zoom button:active, .ficha-pasos button:active, .vista button:active { transform: translateY(1px); }

/* With the script running, the plan owns the screen and every gesture on it. */
html.js-alto, .js-plano { height: 100%; }
.js-plano { display: flex; flex-direction: column; overflow: hidden; }
.js-plano .demo { position: static; }
.js-plano .plano-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.js-plano .buscar button { display: none; }
.js-plano .buscar input { border-right: var(--linea); }
.js-plano .mapa { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; padding: 0; border-bottom: 0; }
.js-plano .lienzo { flex: 1; min-height: 0; position: relative; overflow: hidden; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; }
.js-plano .lienzo-plano { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.js-plano .plan { width: 100%; height: 100%; }
.js-plano .leyenda { margin: 0; padding: 8px var(--margen); border-top: var(--linea); }
.js-plano .lista { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.js-plano .fila { cursor: pointer; }
.js-plano .plano-main[data-ver="mapa"] .lista, .js-plano .plano-main[data-ver="lista"] .mapa { display: none; }
.zoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; }
.zoom button { min-width: 48px; min-height: 48px; padding: 0 10px; border: var(--linea); background: var(--papel); font-weight: 800; font-size: 1.25rem; }
.zoom button + button { border-top: 0; }
.zoom [data-zoom-fit] { font-size: 0.8125rem; }

/* On a phone the plan needs every pixel: the site strip gives way to one row with the way back and the switch. */
@media (max-width: 999px) {
  .js-plano .top { display: none; }
  .js-plano .plano-barra { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding: 8px var(--margen); }
  .js-plano .volver { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .js-plano .vista { grid-column: 2; grid-row: 1; }
  .js-plano .vista button { min-width: 64px; padding: 0 12px; }
  .js-plano .buscar, .js-plano .buscar-resultado, .js-plano .sin-conexion { grid-column: 1 / -1; }
  .js-plano .buscar { display: flex; align-items: center; gap: 10px; }
  .js-plano .con-ficha .buscar, .js-plano .con-ficha .buscar-resultado { display: none; }
  .js-plano .buscar label { margin: 0; flex: 0 0 auto; }
  .js-plano .buscar-campo { flex: 1; min-width: 0; }
  .js-plano .buscar input { min-height: 44px; }
  .js-plano .leyenda { font-size: 0.8125rem; gap: 4px 14px; padding: 6px var(--margen); }
}

@media (min-width: 1000px) {
  .plano-barra { grid-template-columns: auto minmax(0, 420px); justify-content: space-between; align-items: end; }
  .buscar-resultado, .sin-conexion { grid-column: 1 / -1; }
  .js-plano .vista { display: none; }
  .js-plano .plano-main { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto minmax(0, 1fr); }
  .js-plano .plano-barra { grid-column: 1 / -1; }
  .js-plano .plano-main[data-ver] .mapa { display: flex; }
  .js-plano .plano-main[data-ver] .lista { display: block; border-left: var(--linea); }
  .ficha { left: 24px; right: auto; bottom: 24px; width: 400px; border: var(--linea); padding: 20px 24px; }
  .ficha-num { font-size: 96px; }
}
@media (max-width: 999px) {
  .js-plano .buscar-que { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---- the application form and a feriante's own page ---- */

.sol { max-width: 640px; margin: 0 auto; }
.sol-cabeza { padding: 18px var(--margen) 16px; border-bottom: var(--linea); }
.sol-sobre { font-size: 0.875rem; font-weight: 700; color: var(--tinta-suave); }
.sol-cabeza h1 { margin-top: 2px; font-size: 1.75rem; font-weight: 900; font-stretch: 88%; line-height: 1.05; letter-spacing: -0.01em; }
.sol-cuando { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-weight: 700; line-height: 1.25; }
.sol-num { flex: none; color: var(--numerador); font-size: 3rem; font-weight: 900; font-stretch: 110%; line-height: 0.85; letter-spacing: -0.04em; }
.sol-org { margin-top: 10px; font-size: 0.875rem; }
.sol-bloque { padding: 20px var(--margen); border-bottom: var(--linea); }
.sol-bloque h2 { margin-bottom: 8px; font-size: 1.125rem; font-weight: 900; }
.sol-bloque p + p { margin-top: 10px; }
.oferta > * + * { margin-top: 12px; }
.oferta .boton { width: 100%; }
.sol-aviso { padding: 12px 14px; border: var(--linea); font-weight: 700; }
/* Straight inside the page a notice keeps the page's margin: its border is not the screen's edge. */
.sol > .sol-aviso { margin: 16px var(--margen) 0; }
.sol-enviada { color: var(--tinta-suave); font-size: 0.9375rem; }

.sol-form .paso { margin: 0; padding: 20px var(--margen) 8px; border: 0; border-bottom: var(--linea); min-width: 0; }
.paso-inicio p + p, .paso-inicio div { margin-top: 10px; }
.sol-intro { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
.sol-guardado { color: var(--tinta-suave); font-size: 0.9375rem; }
.sol-borrador { padding: 12px 14px; border: var(--linea); font-weight: 700; }
.sol-borrador p + p { margin-top: 10px; }

.paso legend, .paso-revisar h2 { display: block; width: 100%; padding: 0; margin: 0 0 14px; line-height: 1; outline: none; }
.paso-num { font-size: 3rem; font-weight: 900; font-stretch: 110%; letter-spacing: -0.04em; }
.paso-de { font-size: 1rem; font-weight: 700; color: var(--tinta-suave); }
.paso-nombre { display: block; margin-top: 6px; font-size: 1.375rem; font-weight: 900; font-stretch: 88%; }

.campo { margin-bottom: 18px; }
.campo > label, .etiqueta { display: block; font-weight: 800; }
.opcional { font-weight: 500; font-size: 0.875rem; color: var(--tinta-suave); }
.ayuda { margin-top: 2px; font-size: 0.9375rem; color: var(--tinta-suave); }
.campo input[type=text], .campo input[type=tel], .campo textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  padding: 12px;
  border: var(--linea);
  border-radius: 0;
  background: var(--papel);
  color: var(--tinta);
  font: inherit;
  /* 16 px or more: a smaller field makes iPhones zoom the page on focus. */
  font-size: 1.0625rem;
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
}
.campo textarea { resize: vertical; }
.campo input:focus-visible, .campo textarea:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.error { margin-top: 6px; font-weight: 800; }
.error:empty { display: none; }
/* An error is a heavier line and a sentence, not a colour: red belongs to the date. */
.con-error .error::before, .fs-error-fila::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--tinta); }
.con-error input[type=text], .con-error input[type=tel], .con-error textarea { border-width: 4px; padding: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { position: relative; display: block; }
.chip input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; opacity: 0; }
.chip span { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border: var(--linea); font-weight: 700; }
.chip input:checked + span { background: var(--tinta); color: var(--papel); }
/* Chosen is also a mark, for screens and eyes that lose the fill. */
.chip input:checked + span::before { content: ""; width: 12px; height: 6px; margin: -3px 8px 0 0; border-left: 3px solid var(--papel); border-bottom: 3px solid var(--papel); transform: rotate(-45deg); }
.chip input:focus-visible + span { outline: 3px solid var(--tinta); outline-offset: 3px; }

.casilla { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.casilla input { width: 28px; height: 28px; }

.fotos-simples label { display: block; margin-top: 12px; font-weight: 700; }
.fotos-simples input { display: block; margin-top: 6px; max-width: 100%; font: inherit; color: inherit; }
.fotos { margin-top: 12px; }
.foto { display: grid; grid-template-columns: 96px 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: var(--linea); }
.foto:last-child { border-bottom: var(--linea); }
.foto img { grid-row: 1 / span 2; width: 96px; height: 96px; object-fit: cover; border: var(--linea); }
.foto-estado { font-weight: 800; }
.foto progress { grid-column: 2 / span 2; width: 100%; height: 8px; accent-color: #14248A; }
.foto .cambiar { justify-self: end; }
.foto-fallo .foto-estado::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--tinta); }
.foto-elegir { position: relative; margin-top: 14px; cursor: pointer; }
.foto-elegir input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; }
.sin-fotos { margin-top: 14px; }
.cambiar { min-height: 44px; padding: 0 4px; border: 0; background: none; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
button.boton, button.boton-linea { width: auto; cursor: pointer; }
button.boton { border: 0; width: 100%; }
button.boton-linea { background: var(--papel); color: var(--tinta); }
button:disabled { opacity: 0.55; }
button:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }

.resumen dt { margin-top: 14px; font-size: 0.875rem; font-weight: 700; color: var(--tinta-suave); }
.resumen dd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding-bottom: 6px; border-bottom: var(--linea); font-weight: 700; font-size: 1.0625rem; overflow-wrap: anywhere; }

.sol-errores, .sol-fallo { margin: 16px var(--margen) 0; padding: 12px 14px; border: 4px solid var(--tinta); font-weight: 800; }
.sol-fallo { margin-bottom: 16px; }
.sol-nav { display: flex; gap: 10px; padding: 14px var(--margen) calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--papel); }
.sol-nav .boton { flex: 1; }
.sol-pendiente { position: fixed; left: 0; right: 0; top: 0; z-index: 4; padding: 10px var(--margen); background: var(--hoja-amarilla); border-bottom: var(--linea); font-weight: 800; }

/* With scripts: one step on screen, and the way forward stays within reach of the thumb. */
.js-pasos .sol-form .paso { display: none; border-bottom: 0; }
.js-pasos .sol-form .paso.actual { display: block; }
.js-pasos .sol-nav { position: -webkit-sticky; position: sticky; bottom: 0; border-top: var(--linea); }

.recorrido li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; color: var(--tinta-suave); font-weight: 600; }
.recorrido li + li::before { content: ""; position: absolute; left: 10px; top: -10px; height: 20px; border-left: var(--linea); }
.recorrido-marca { position: relative; z-index: 1; flex: none; width: 22px; height: 22px; border: var(--linea); background: var(--papel); }
.recorrido .hecha { color: var(--tinta); }
.recorrido .hecha .recorrido-marca { background: var(--tinta); }
.recorrido .hecha .recorrido-marca::after { content: ""; position: absolute; left: 4px; top: 4px; width: 10px; height: 5px; border-left: 3px solid var(--papel); border-bottom: 3px solid var(--papel); transform: rotate(-45deg); }
.recorrido .actual { color: var(--tinta); font-weight: 900; font-size: 1.1875rem; }
.recorrido .actual .recorrido-marca { background: var(--hoja-rosa); }
.recorrido .actual .recorrido-marca::after { content: ""; position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; background: var(--tinta); }

.sol-datos .campo { margin-top: 16px; }

@media (min-width: 720px) {
  .sol { border-left: var(--linea); border-right: var(--linea); min-height: calc(100vh - 50px); }
  .sol-cabeza h1 { font-size: 2.25rem; }
}

.campo > label.casilla { display: flex; font-weight: 600; }
.en-paso .sol-cabeza { padding-top: 10px; padding-bottom: 10px; }
.en-paso .sol-cabeza h1 { font-family: inherit; font-size: 1.125rem; }
.en-paso .sol-sobre, .en-paso .sol-cuando, .en-paso .sol-org { display: none; }

/* Choosing a space, paying the organizer, and the list of payments. */
.elegir-intro { grid-column: 1 / -1; }
.elegir-intro h1 { font-size: 1.5rem; font-weight: 900; font-stretch: 88%; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.elegir-intro h1 + p { margin-top: 6px; max-width: 62ch; font-weight: 600; }
.elegir-intro .sol-aviso { margin-bottom: 12px; background: var(--hoja-amarilla); }
.fila-reservar { margin-top: 10px; }
.ficha .fila-reservar { clear: both; margin-right: -56px; }
.plano-elegir .fila-libre { padding-bottom: 14px; }
.medios { margin-top: 14px; border: var(--linea); }
.medios dt { padding: 10px 14px 0; font-size: 0.875rem; font-weight: 700; color: var(--tinta-suave); }
.medios dd { margin: 0; padding: 0 14px 10px; font-size: 1.0625rem; font-weight: 800; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.medios dd + dt { border-top: 1px solid var(--tinta); }
.medios + p { margin-top: 10px; }
.sol-bloque .sol-form { margin-top: 20px; }
.sol-bloque .sol-errores { margin: 0 0 16px; }
.campo input[type=file] { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 600; color: inherit; }
.campo input[type=file]::file-selector-button { min-height: 48px; margin-right: 12px; padding: 0 14px; border: var(--linea); border-radius: 0; background: var(--papel); color: var(--tinta); font: inherit; font-weight: 800; cursor: pointer; }
.campo input[type=file]:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.soltar { margin-top: 20px; }
.soltar summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.soltar summary:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.soltar form { margin-top: 6px; }
.pagos li { padding: 8px 0; border-top: 1px solid var(--tinta); font-weight: 600; }
.pagos li:last-child { border-bottom: 1px solid var(--tinta); }
.pagos strong { display: inline-block; min-width: 7.5em; font-weight: 900; font-variant-numeric: tabular-nums; }
.pagos li > span { color: var(--tinta-suave); }
.pagos .pagos-nota { display: block; color: var(--tinta); }
.pagos a { display: inline-block; margin-left: 8px; font-weight: 800; white-space: nowrap; }
/* On a phone the picker is the plan first: the search gives its row to the instruction, and both step aside for a space's sheet. */
@media (max-width: 999px) {
  .js-plano.plano-elegir .buscar, .js-plano .con-ficha .elegir-intro { display: none; }
  .js-plano .elegir-intro h1 { font-family: inherit; font-size: 1.125rem; }
  .js-plano .elegir-intro h1 + p { margin-top: 2px; font-size: 0.875rem; line-height: 1.3; }
  .js-plano .elegir-intro .sol-aviso { margin-bottom: 8px; padding: 8px 10px; font-size: 0.9375rem; }
}

/* The order behind a space: what it is made of and what is owed. Shared by the feriante's page and Cobros. */
.pedido { width: 100%; border-collapse: collapse; margin-top: 8px; }
.pedido th, .pedido td { padding: 10px 0; border-top: 1px solid var(--tinta); font-weight: 600; text-align: left; vertical-align: middle; }
.pedido td { padding-left: 12px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pedido-linea { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.pedido-linea .cambiar { min-height: 44px; }
.pedido tfoot tr:first-child th, .pedido tfoot tr:first-child td { border-top: var(--linea); }
.pedido tfoot th, .pedido tfoot td { font-weight: 800; }
.pedido-total th, .pedido-total td { font-size: 1.125rem; font-weight: 900; }
.pedido tfoot tr:last-child th, .pedido tfoot tr:last-child td { border-bottom: var(--linea); }
.pedido + .ayuda { margin-top: 10px; }
/* On a phone the choice takes the whole line, so its price is never cut; the quantity and the button share the next. */
.pedido-agregar { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 0 12px; align-items: end; margin-top: 20px; }
.pedido-agregar .campo { grid-column: 1 / -1; margin-bottom: 12px; min-width: 0; }
.pedido-agregar .pedido-cantidad { grid-column: 1; }
.pedido-agregar button { grid-column: 1 / -1; justify-self: start; margin-bottom: 12px; }
.pedido-agregar .pedido-cantidad + button { grid-column: 2; }
.pedido-agregar select { display: block; width: 100%; max-width: 100%; min-height: 52px; margin-top: 6px; padding: 0 12px; border: var(--linea); border-radius: 0; background: var(--papel); color: var(--tinta); font: inherit; font-size: 1.0625rem; font-weight: 600; }
.pedido-agregar select:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
@media (min-width: 640px) {
  .pedido-agregar { grid-template-columns: minmax(0, 1fr) 88px auto; }
  .pedido-agregar .campo:first-child:not(:only-of-type) { grid-column: 1; }
  .pedido-agregar .pedido-cantidad { grid-column: 2; }
  .pedido-agregar .pedido-cantidad + button { grid-column: 3; }
}
.sol-errores a { white-space: nowrap; }

/* Words one person wrote to the other, shown as they wrote them. */
.pedido-nota { margin: 10px 0; padding: 10px 14px; border: var(--linea); font-weight: 600; overflow-wrap: anywhere; }
.sol-aviso .pedido-nota { margin: 6px 0 0; padding: 0; border: 0; font-weight: 400; }
.sol-aviso p + p { margin-top: 6px; }
#cambio .lista { margin: 6px 0 14px; }
#cambio form > p + .campo { margin-top: 16px; }

/* ---- the proof of place a feriante shows at the feria ---- */

.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.const-tipo { font-size: 0.875rem; font-weight: 700; color: var(--tinta-suave); }
.const-cabeza h1 { margin: 2px 0 8px; font-size: 1.75rem; font-weight: 900; font-stretch: 88%; line-height: 1.05; letter-spacing: -0.01em; }
.const-cabeza p + p { margin-top: 2px; }
.const-cabeza .sol-cuando { margin-top: 12px; }
.const-cabeza .sol-org { margin-top: 10px; }
.const-lugar { display: grid; gap: 18px; }
.const-codigo { font-size: 3rem; font-weight: 900; font-stretch: 110%; line-height: 0.9; letter-spacing: -0.04em; }
.const-lugar .const-zona { margin-top: 6px; font-weight: 700; }
.const-lugar .const-quien { margin-top: 14px; font-size: 1.1875rem; line-height: 1.25; overflow-wrap: anywhere; }
.qr { display: block; width: 100%; max-width: 260px; height: auto; border: var(--linea); }
.const-plata { display: grid; gap: 2px; margin: 0; border: var(--linea); background: var(--tinta); }
.const-plata div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px; padding: 8px 12px; background: var(--papel); }
.const-plata dt { font-weight: 700; }
.const-plata dd { margin: 0; font-weight: 900; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.const-estado { font-weight: 800; }
.const-plata + .const-estado { margin-top: 12px; }
.const-acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.const-pie .const-acciones { margin-top: 16px; }

@media (min-width: 560px) {
  .const-lugar { grid-template-columns: 1fr 240px; align-items: start; }
}

@media print {
  .const-acciones { display: none; }
  .constancia { border: 0; min-height: 0; }
  .constancia .sol-bloque { break-inside: avoid; }
}

/* ---- invoices the organizer attached ---- */

.sol-bloque p + .pagos { margin-top: 12px; }
.pagos strong { margin-right: 6px; }
.facturas-propias a { display: block; margin: 4px 0 0; }

/* What the organizer said about a postponement, a cancellation, a new date or place. */
.cambio-aviso { margin-top: 14px; padding: 12px 14px; border: var(--linea); }
.cambio-aviso p + p { margin-top: 6px; }
.cambio-firma { font-size: 0.875rem; color: var(--tinta-suave); }
.sol-cambio .cambio-aviso { margin-top: 0; }

/* ---- what the organizer adds to the page: cover, programme, files, photos, questions ---- */

.portada { margin: 0; border-bottom: var(--linea); }
.portada img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: cover; }

.programa li { padding: 10px 0; border-bottom: 1px solid var(--tinta); }
.programa-hora { display: block; }
.programa li:first-child { padding-top: 0; }
.programa li:last-child { border-bottom: 0; padding-bottom: 0; }
.programa-hora { font-weight: 900; font-variant-numeric: tabular-nums lining-nums; }
.programa-detalle { display: block; color: var(--tinta-suave); }

.documentos li + li { margin-top: 10px; }
.documentos a { font-weight: 800; }
.documentos span { color: var(--tinta-suave); font-size: 0.875rem; white-space: nowrap; }

.galeria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.galeria a { display: block; border: var(--linea); }
.galeria a:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.galeria img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.faq details { border-bottom: 1px solid var(--tinta); }
.faq details:first-child { border-top: 1px solid var(--tinta); }
.faq summary { min-height: 48px; padding: 12px 0; font-weight: 800; cursor: pointer; }
.faq summary:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.faq details p { padding-bottom: 12px; margin-top: 0; }

@media (min-width: 560px) {
  /* 9.5em holds the longest slot, "18:30 a 20:30 hs", on one line. */
  .programa li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 0 12px; }
}
@media (min-width: 760px) {
  .galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.otra-edicion { margin: 0; padding: 12px var(--margen); background: var(--hoja-amarilla); border-bottom: var(--linea); font-weight: 700; }
.ediciones { list-style: none; padding: 0; }
.ediciones li + li { margin-top: 10px; }
.ediciones a { font-weight: 800; }
.ediciones span { color: var(--tinta-suave); font-size: 0.875rem; white-space: nowrap; }

/* ================= the portal: front page, calendar, calls, archive ================= */

.top-secciones { flex-wrap: wrap; }
.top-nav { display: flex; gap: 22px; order: 4; width: calc(100% + 2 * var(--margen)); margin: 0 calc(-1 * var(--margen)); padding: 0 var(--margen); border-top: 1px solid var(--tinta); font-weight: 800; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.top-nav::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) {
  .top-nav { order: 0; width: auto; margin: 0 0 0 auto; padding: 0; border-top: 0; overflow: visible; }
}
/* The awning under the header is louder than any text, so the sections are solid ink tabs, not plain words: the
   eye lands on them first (owner, 2026-11-24: "the banners take your eye and makes you miss the nav"). */
.top-nav { gap: 6px; padding-top: 6px; padding-bottom: 6px; }
.top-nav a { display: flex; flex: none; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--tinta); background: var(--papel); color: var(--tinta); font-size: 1rem; text-decoration: none; }
.top-nav a:hover { background: var(--hoja-amarilla); }
.top-nav a[aria-current] { background: var(--tinta); color: var(--papel); }
.top-nav a:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.top-nav.hay-mas { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }

.hoja-amarilla { background: var(--hoja-amarilla); }
.hoja-celeste { background: var(--hoja-celeste); }
.hoja-verde { background: var(--hoja-verde); }
.hoja-papel { background: var(--papel); }
.hoja h1:first-child { margin-top: 0; }
.hoja-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hoja-acciones .boton, .hoja-acciones .boton-linea { flex: 1 1 auto; justify-content: center; min-height: 52px; padding: 0 20px; text-align: center; }

.citas > li { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 0 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--tinta); }
.citas > li:first-child { padding-top: 0; }
.citas > li:last-child { border-bottom: 0; padding-bottom: 0; }
.cita-hoja { text-align: center; line-height: 1; }
.cita-num { display: block; color: var(--numerador); font-weight: 900; font-stretch: 110%; font-size: 2.75rem; letter-spacing: -0.04em; line-height: 0.9; }
.cita-cuerpo { min-width: 0; }
.cita-mes { display: block; margin-top: 4px; font-weight: 800; font-size: 0.9375rem; }
.feria-cuerpo .cita-cuerpo p { margin-top: 2px; }
.cita-nombre { margin: 0; color: var(--tinta); font-size: 1.1875rem; font-weight: 800; line-height: 1.15; text-wrap: balance; }
.cita-nombre a { text-decoration: none; }
/* The whole row is the link; the name is what a screen reader hears. */
.cita-nombre a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.cita-nombre a:focus-visible { outline: 0; }
.cita-nombre a:focus-visible::after { outline: 3px solid var(--tinta); outline-offset: 3px; }
.cita-cuando { font-weight: 700; }
.cita-datos { color: var(--tinta-suave); font-size: 0.875rem; }
.feria-cuerpo .cita-cuerpo .cita-sellos { margin-top: 8px; }
.sello { display: inline-block; margin: 0 4px 4px 0; padding: 1px 8px; border: var(--linea); font-size: 0.8125rem; font-weight: 800; }
.sello-hecho { background: var(--hoja-verde); }
.sello-hoy { background: var(--hoja-rosa); }
.sello-completa { background: var(--hoja-celeste); }
.sello-cancelada, .sello-postergada { background: var(--tinta); color: var(--papel); }
.sello-demo { border-style: dashed; }
.cita-caida .cita-num { color: var(--tinta-suave); }
.cita-caida .cita-cuando { text-decoration: line-through; }
.cita-foto { display: block; width: 56px; height: 56px; object-fit: cover; border: var(--linea); }

.sin-ferias { font-weight: 600; }
.mas { margin-top: 18px; }
.feria-cuerpo .sin-ferias + p { margin-top: 14px; }

.ciudades { display: flex; flex-wrap: wrap; gap: 8px; }
.ciudades li { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: var(--linea); font-weight: 800; position: relative; }
.ciudades a { text-decoration: none; }
.ciudades a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.ciudades span { color: var(--tinta-suave); font-weight: 900; font-variant-numeric: tabular-nums lining-nums; }

.filtros { margin-top: 16px; }
.filtros summary { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: var(--linea); font-weight: 800; cursor: pointer; }
.filtros summary:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.filtros form { display: grid; gap: 12px; margin-top: 14px; }
.filtros label { display: block; font-weight: 800; }
.filtros input, .filtros select { display: block; width: 100%; min-height: 48px; margin-top: 4px; padding: 0 12px; border: var(--linea); border-radius: 0; background: var(--papel); color: var(--tinta); font: inherit; font-weight: 600; }
.filtros input:focus-visible, .filtros select:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.filtros label.filtro-casilla { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.filtros .filtro-casilla input { width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: var(--tinta); }
.filtros-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.filtros-acciones .boton { flex: 1 1 auto; border: 0; padding: 0 20px; }
.filtros-acciones a { font-weight: 700; }

.alta-lista li, .alta-pasos li { padding: 12px 0; border-bottom: 1px solid var(--tinta); }
.alta-lista li:last-child, .alta-pasos li:last-child { border-bottom: 0; }
.alta-lista strong { display: block; font-weight: 800; font-size: 1.0625rem; }
.alta-pasos { margin: 0; padding-left: 1.4em; font-weight: 600; list-style: decimal; }
.alta-pasos li::marker { font-weight: 900; }
.alta-form { max-width: 440px; }
.alta-ya { margin-top: 20px; }
.alta-llamado p + p { margin-top: 12px; }
.tambien li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; min-height: 48px; padding: 10px 0; border-bottom: 1px solid var(--tinta); position: relative; }
.tambien li:last-child { border-bottom: 0; }
.tambien a { font-weight: 800; text-decoration: none; }
.tambien a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.tambien span { color: var(--tinta-suave); }
.pie-mapa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-top: 18px; }
.pie-mapa h2 { margin: 0; padding-bottom: 6px; border-bottom: 1px solid var(--tinta); color: var(--tinta); font-size: 0.875rem; font-weight: 800; }
.pie-mapa ul { margin: 0; padding: 0; list-style: none; }
.pie-mapa a { display: flex; align-items: center; min-height: 44px; color: var(--tinta); font-size: 0.9375rem; font-weight: 700; text-decoration: none; }
.pie-mapa a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (min-width: 720px) {
  .pie-mapa { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 560px) {
  .filtros form { grid-template-columns: 1fr 1fr; }
  .filtros label:first-child, .filtros-acciones { grid-column: 1 / -1; }
}
@media (min-width: 720px) {
  .citas > li { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 0 18px; }
  .cita-num { font-size: 3.5rem; }
  .cita-foto { width: 96px; height: 96px; }
}

/* ================= the registry: a feriante's page and the directory ================= */

.cita-puesto { font-weight: 800; }
.cita-puesto a { position: relative; z-index: 1; }

/* A row per product: a small photo when there is one, and the words beside it, so a product without a photo sits in line with the rest. */
.catalogo li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 14px; padding: 16px 0; border-top: 1px solid var(--tinta); }
.catalogo li:first-child { border-top: 0; padding-top: 0; }
.catalogo-texto { grid-column: 2; min-width: 0; }
.catalogo li:not(:has(.catalogo-foto)) .catalogo-texto { grid-column: 1 / 3; }
.catalogo h3 { margin: 0; color: var(--tinta); font-size: 1.0625rem; font-weight: 800; line-height: 1.2; }
.catalogo-foto { display: block; align-self: start; border: var(--linea); }
.catalogo-foto img, .ficha-feriante img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.feria-cuerpo .catalogo p { margin-top: 4px; }
.catalogo-precio { font-weight: 900; font-stretch: 112%; font-variant-numeric: tabular-nums lining-nums; }
.catalogo-detalle { font-size: 0.9375rem; color: var(--tinta-suave); }
.catalogo .boton-linea { min-height: 44px; padding: 0 14px; margin-top: 6px; }
.feria-cuerpo .catalogo-nota { margin-top: 18px; font-size: 0.875rem; color: var(--tinta-suave); }
.redes a { margin-right: 16px; font-weight: 800; }

.fichas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
.ficha-feriante { position: relative; min-width: 0; }
.ficha-feriante img, .ficha-inicial { border: var(--linea); }
/* No photo yet: the rubro's painted mark on white, where the photo will go. */
.ficha-inicial { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; color: var(--tinta); font-family: var(--letra); font-weight: 900; font-synthesis: none; font-size: clamp(3rem, 14vw, 5.5rem); line-height: 1; }
.ficha-inicial-0 { background: var(--hoja-amarilla); }
.ficha-inicial-1 { background: var(--hoja-rosa); }
.ficha-inicial-2 { background: var(--hoja-celeste); }
.ficha-inicial-3 { background: var(--hoja-verde); }
.fichas-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; font-weight: 700; }
.ficha-feriante h3 { margin: 8px 0 0; color: var(--tinta); font-size: 1.0625rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.ficha-feriante h3 a { text-decoration: none; }
.ficha-feriante h3 a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.ficha-feriante h3 a:focus-visible { outline: 0; }
.ficha-feriante h3 a:focus-visible::after { outline: 3px solid var(--tinta); outline-offset: 3px; }
.feria-cuerpo .ficha-feriante p { margin-top: 2px; font-size: 0.875rem; }
.ficha-rubro { color: var(--tinta-suave); }
.ficha-vende { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ficha-proxima { font-weight: 800; }

/* the card for the table: 10 x 14 cm on paper */
.tarjeta-pagina { max-width: 480px; margin: 0 auto; padding: 20px var(--margen) 40px; }
.tarjeta { padding: 22px 22px 20px; border: var(--linea); background: var(--hoja-amarilla); text-align: center; }
.tarjeta-marca { font-weight: 900; font-stretch: 118%; font-size: 1rem; text-align: left; }
.tarjeta h1 { margin-top: 14px; font-size: 2rem; font-weight: 900; font-stretch: 88%; line-height: 1; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.tarjeta-vende { margin-top: 6px; font-weight: 600; }
.tarjeta .qr { width: 72%; max-width: none; margin: 16px auto 0; }
.tarjeta-llamado { margin-top: 12px; font-weight: 900; font-size: 1.125rem; }
.tarjeta-direccion { font-weight: 700; overflow-wrap: anywhere; }
.tarjeta-pagos { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--tinta); font-size: 0.875rem; font-weight: 700; }
.tarjeta-acciones { margin-top: 20px; }
.tarjeta-acciones p + p { margin-top: 12px; }
@media print {
  .tarjeta-acciones, .tarjeta-pagina ~ *, body:has(.tarjeta-pagina) .top, body:has(.tarjeta-pagina) .demo { display: none; }
  .tarjeta-pagina { max-width: none; margin: 0; padding: 0; }
  .tarjeta { width: 100mm; height: 140mm; box-sizing: border-box; print-color-adjust: exact; -webkit-print-color-adjust: exact; break-inside: avoid; }
}

/* the feriante's own editor of that page */
.perfil-aviso { margin: 16px var(--margen) 0; background: var(--hoja-amarilla); }
.campo select { display: block; width: 100%; min-height: 52px; margin-top: 6px; padding: 0 12px; border: var(--linea); border-radius: 0; background: var(--papel); color: var(--tinta); font: inherit; font-size: 1.0625rem; font-weight: 600; }
.campo select:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.perfil-fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; margin: 12px 0 4px; }
.perfil-fotos img, .perfil-mini { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border: var(--linea); }
/* Captions run to different lengths; the buttons still sit on one line. */
.perfil-fotos li { display: flex; flex-direction: column; }
.perfil-fotos form { margin-top: auto; }
.perfil-leyenda { font-size: 0.8125rem; color: var(--tinta-suave); overflow-wrap: anywhere; }
.perfil-catalogo li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 12px; padding: 14px 0; border-top: 1px solid var(--tinta); }
.perfil-catalogo { margin-top: 12px; border-bottom: 1px solid var(--tinta); }
.perfil-mini { align-self: start; }
.perfil-producto { grid-column: 2; min-width: 0; }
.perfil-catalogo li:not(:has(.perfil-mini)) .perfil-producto { grid-column: 1 / 3; }
.perfil-producto h3 { margin: 0; color: var(--tinta); font-size: 1.0625rem; font-weight: 800; line-height: 1.2; }
.perfil summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.perfil summary:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.perfil-nuevo { margin-top: 8px; }
.perfil details .sol-form { margin-top: 8px; }

@media (max-width: 479px) {
}
@media (min-width: 760px) {
  .fichas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
}

/* ================= Tinta y cartulina: controls ================= */

/* Buttons, chips, stamps and the little bordered boxes are cut by hand; a field or a table stays square. */
.boton, .boton-linea, button.boton, button.boton-linea, .chip span, .sello, .filtros summary, .ciudades li { border-radius: var(--corte); }
.boton, .boton-linea, button.boton, button.boton-linea { font-family: var(--letra); font-weight: 900; font-synthesis: none; letter-spacing: 0.01em; }
.boton { font-size: 1.375rem; }
.boton-linea, button.boton-linea { font-size: 1.25rem; }
/* Pressed, a card button gives a little: one pixel down and a degree back. */
.boton:active, .boton-linea:active { transform: translateY(1px) rotate(-1deg); }
/* A stamp is pressed on a little crooked. */
.sello { transform: rotate(-1.5deg); }

/* Stitched rows: a list's rows are sewn apart, not ruled. */
.precios th, .precios td, .citas > li, .alta-lista li, .alta-pasos li, .tambien li { border-bottom: var(--puntada); }
.catalogo li { border-top: var(--puntada); }
.precios tr:last-child th, .precios tr:last-child td, .citas > li:last-child, .alta-lista li:last-child, .alta-pasos li:last-child, .tambien li:last-child { border-bottom: 0; }
.catalogo li:first-child { border-top: 0; }

/* The chosen mark is the kit's painted tick. A browser without masks keeps the drawn one above. */
@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  input[type=checkbox]::before, .chip input:checked + span::before {
    width: 18px;
    height: 15px;
    margin-top: 0;
    border: 0;
    transform: none;
    background: var(--papel);
    -webkit-mask: var(--k-tilde) center / contain no-repeat;
    mask: var(--k-tilde) center / contain no-repeat;
  }
  input[type=checkbox]:not(:checked)::before { background: none; }
  .chip input:checked + span::before { margin: 0 8px 0 0; }
}

@media (min-width: 1100px) {
  h2 { font-size: 2.5rem; }
}

/* ================= Tinta y cartulina: dates on tags ================= */

/* A date in a list is painted on a price tag, hung a little crooked. The tag's hole is on the right, so the
   numeral leans left of centre. Without the image the numeral simply stands on white. */
.citas > li { grid-template-columns: 80px minmax(0, 1fr) auto; }
.cita-num {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding-right: 14px;
  background: var(--k-etiqueta) center / 100% 100% no-repeat;
  font-family: var(--letra);
  font-weight: 900;
  font-stretch: normal;
  font-synthesis: none;
  font-size: 2rem;
  letter-spacing: 0;
  line-height: 1;
  transform: rotate(-3deg);
}
.cita-mes { margin-top: 6px; }
@media (min-width: 720px) {
  .citas > li { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .cita-num { height: 60px; padding-right: 16px; font-size: 2.5rem; }
}

/* ================= Tinta y cartulina: the home ================= */

/* Today's numeral stands on white; yellow comes back as the brushed patch behind the weekday. Where masks are
   missing the patch is a flat yellow block, which still reads. */
.inicio .hoja { border-bottom: 0; }
.inicio { --parche: var(--hoja-amarilla); }
.inicio .hoja-fecha .hoja-dia, .feria .hoja-fecha .hoja-dia { position: relative; z-index: 0; justify-self: start; padding: 2px 10px 0; margin-left: -10px; }
.inicio .hoja-dia::before, .feria .hoja-dia::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -4px;
  right: -6px;
  bottom: -6px;
  left: -2px;
  background: var(--parche);
  -webkit-mask: var(--k-mancha) center / 100% 100% no-repeat;
  mask: var(--k-mancha) center / 100% 100% no-repeat;
}
/* The stall closes the first screen on a phone, cropped to its left: the art leaves its right quarter empty. */
.escena-portada { display: block; margin: 22px calc(-1 * var(--margen)) 0; }
.escena-portada img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 50%; }

.rubros-marcas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 8px; }
.rubros-marcas a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 44px; padding: 4px 0; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; }
.rubros-marcas img { display: block; width: 84px; height: 84px; }
.rubros-marcas a:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.alta-arte img { display: block; width: 62%; max-width: 260px; height: auto; margin: -6px auto 6px; }

/* Today is one small line over the headline: the first screen is for finding a feria, not for the date. */
.inicio .hoja-hoy { font-size: 1rem; }
.inicio .hoja-hoy time, .inicio .hoja-hoy span { display: inline; }
.inicio .hoja-hoy .hoja-num, .inicio .hoja-hoy .hoja-mes { margin: 0; font: inherit; font-weight: 800; color: var(--tinta); }
.inicio .hoja-hoy .hoja-dia { display: inline-block; font-size: inherit; }

.busca-portada { margin: 20px 0 0; }
.busca-portada label { display: block; margin-bottom: 6px; font-weight: 800; }
.busca-fila { display: flex; gap: 8px; }
.busca-fila input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 12px; border: var(--linea); border-radius: var(--corte); background: var(--papel); color: var(--tinta); font: inherit; }
.busca-fila .boton { flex: none; width: auto; min-height: 48px; margin: 0; border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.inicio .hoja-acciones { margin-top: 12px; }
/* The price an organizer asks first, answered on the leaf before anything else. */
.alta-precio { display: inline-block; margin: 14px 0 0; padding: 4px 12px; border: 2px solid var(--tinta); background: var(--papel); font-family: var(--letra); font-weight: 900; font-synthesis: none; font-size: 1.5rem; line-height: 1.2; }

/* Ferias looking for feriantes: one call-out to their own list, not their rows a second time. */
.llamado-feriantes { background: var(--hoja-verde); }
/* What a seller needs from a feria in the calendar, on its own line so a visitor can skip it. */
.cita-feriantes { margin: 4px 0 0; font-size: 0.875rem; }
.llamado-feriantes p { max-width: 52ch; }
/* Two ways in for somebody who sells: find a feria now, or register once for every feria after. */
.llamado-dos { display: grid; gap: 28px; }
.llamado-dos h3 { margin: 0 0 6px; color: var(--tinta); font-size: 1.25rem; font-weight: 900; }
.llamado-dos .boton { width: 100%; }
@media (min-width: 720px) {
  .llamado-dos { grid-template-columns: 1fr 1fr; gap: 32px; }
}
/* The directory's leaf carries the invitation to join it, as large as anything on the page. */
.sumarme-llamado { margin: 28px 0 0; padding: 18px; border: var(--linea); background: var(--papel); }
.sumarme-llamado h2 { margin: 0 0 6px; font-size: 1.75rem; line-height: 1.1; }
.sumarme-llamado p { margin: 0 0 12px; }
.sumarme-llamado .boton { width: 100%; min-height: 56px; font-size: 1.25rem; }

@media (min-width: 720px) {
  .rubros-marcas { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rubros-marcas img { width: 96px; height: 96px; }
  .alta-llamado { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0 32px; align-items: center; }
  .alta-arte img { width: 100%; max-width: none; margin: 0; }
}

@media (min-width: 1100px) {
  /* The home is not a leaf beside a list: the stall takes the right of the first screen and bleeds off the edge. */
  .inicio .feria-main { display: block; overflow-x: clip; }
  .inicio .feria-main .hoja {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    grid-template-rows: repeat(5, auto) 1fr;
    column-gap: 48px;
    min-height: 0;
    padding: 36px 0 40px max(64px, calc(50vw - 656px));
    border-right: 0;
  }
  .inicio .hoja > * { grid-column: 1; }
  .inicio .hoja-fecha .hoja-dia, .feria .hoja-fecha .hoja-dia { display: inline-block; }
  .inicio .hoja h1 { font-size: 4.5rem; }
  .inicio .escena-portada { grid-column: 2; grid-row: 1 / -1; align-self: center; margin: 0; }
  .inicio .escena-portada img { aspect-ratio: auto; }
  .inicio .feria-cuerpo { max-width: 1312px; margin: 0 auto; }
  .inicio .alta-llamado { grid-template-columns: 360px minmax(0, 1fr); gap: 0 56px; }
}

/* ================= Tinta y cartulina: the feria page ================= */

/* The leaf is white: the red numeral reads at 5:1 there, against 3:1 on pink. The feria's pink comes back as the
   patch behind its weekday and, on a laptop, as the awning's valance. */
.feria { --parche: var(--hoja-rosa); }
.feria .hoja { background: var(--papel); }
.feria .hoja-fecha-larga .hoja-dia { display: inline-block; }

/* The plan is pinned to the page at its corners with four brushed brackets. Never a traced frame stretched to the
   box (it turns into a slab); the drawing inside is untouched. Without the images it stands as it always did. */
.feria-cuerpo .plano .plan {
  padding: 9px;
  background:
    var(--k-esquina-ai) 0 0 / 26px 22px no-repeat,
    var(--k-esquina-ad) 100% 0 / 26px 22px no-repeat,
    var(--k-esquina-bi) 0 100% / 26px 22px no-repeat,
    var(--k-esquina-bd) 100% 100% / 26px 22px no-repeat;
}

/* Prices are lettered, one to a line and right-aligned, so the column needs no tabular figures. */
.feria .precios td { font-family: var(--letra); font-weight: 900; font-stretch: normal; font-synthesis: none; font-size: 1.375rem; white-space: normal; }

/* Without a cover of its own, the painted stall comes after the decisions (participate, tickets): small, it only decorates. */
.escena-feria { margin: 0; padding: 22px var(--margen) 0; text-align: center; }
.escena-feria img { display: block; width: 220px; height: auto; margin: 0 auto; }
/* Joining weighs the same as getting a ticket: the same full-width button. */
.fase-participar .boton { display: flex; width: 100%; margin-top: 10px; }

@media (min-width: 720px) {
  .feria .precios td { font-size: 1.75rem; }
  .escena-feria img { width: 300px; }
}

@media (min-width: 1100px) {
  /* The painted awning, at the portal's height: a valance traced from the kit read as a fence, and a flat band of the
     feria's pink as imitation cloth. The pink stays in the weekday patch. */
  .feria .toldo { height: 44px; margin-top: 0; background: var(--toldo-2-set) repeat-x 0 0 / auto 44px; }
}

/* ================= Tinta y cartulina: the plan ================= */

/* Rectangles stay exact, so a place lines up with its neighbours; only the pen is softened. */
.pl-hall, .pl-s rect, .pl-f rect, .pl-mark, .plan pattern path { stroke-linejoin: round; stroke-linecap: round; }

/* A place's code heads its sheet, lettered. Cartel stands taller in its box than Archivo, so the line closes less. */
.ficha-num { font-family: var(--letra); font-stretch: normal; font-synthesis: none; letter-spacing: 0; line-height: 0.86; }
/* Inside a list tile the code is still lettered. Cartel is narrower than Archivo, so it takes 24 px to fill the tile
   as the old 18 px did. */
.mesa-num { font-family: var(--letra); font-stretch: normal; font-synthesis: none; font-size: 1.5rem; }

/* On a phone the sheet rises from the bottom with the scallop row as its top edge, the way a stall's awning ends.
   On a laptop it is a card and keeps its frame. */
@media (max-width: 999px) {
  .ficha { border-top: 0; padding-top: 30px; background: var(--k-feston) repeat-x 0 0 / 47px 16px, var(--papel); }
}

/* The legend's swatches are painted: a filled state is a brushed patch of its colour, an empty one a brushed
   outline. A browser without masks keeps the square swatches above. */
@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .leyenda .muestra { width: 30px; height: 18px; border: 0; background: var(--k-marco) center / 100% 100% no-repeat; }
  .leyenda .muestra-confirmada, .leyenda .muestra-reservada, .leyenda .muestra-llego {
    background: var(--muestra);
    -webkit-mask: var(--k-mancha) center / 100% 100% no-repeat;
    mask: var(--k-mancha) center / 100% 100% no-repeat;
  }
  .leyenda .muestra-confirmada { --muestra: var(--tinta); }
  .leyenda .muestra-reservada { --muestra: var(--hoja-amarilla); }
  .leyenda .muestra-llego { --muestra: var(--hoja-verde); }
  .leyenda .muestra-no_disponible { background: var(--k-cuadricula) center / 22px 12px no-repeat, var(--k-marco) center / 100% 100% no-repeat; }
}

/* ================= Tinta y cartulina: the application and a feriante's own sheets ================= */

/* One spot drawing on the entry sheet and one on the success sheet, nothing between: a step is a form. Small and in
   the flow on a phone; once the page has a margin wide enough, it stands there instead, beside the column. */
.escena-sol { display: block; width: 160px; margin: 14px 0 4px; }
.escena-sol img { display: block; width: 100%; height: auto; }

/* The step number is lettered on a brushed yellow patch, the same patch as the weekday on a feria's leaf. */
.paso-num { position: relative; z-index: 0; display: inline-block; padding: 4px 12px 0 8px; font-family: var(--letra); font-stretch: normal; font-synthesis: none; letter-spacing: 0; }
.paso-num::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: -2px;
  left: 0;
  background: var(--hoja-amarilla);
  -webkit-mask: var(--k-mancha) center / 100% 100% no-repeat;
  mask: var(--k-mancha) center / 100% 100% no-repeat;
}

/* The bar that carries the way forward ends in the scallop row, turned to face up, instead of a rule. It hangs above
   the bar, so the bar is no taller; between the scallops the form shows through. Where the bar rests below a short
   step, its margin keeps the row off the step's last line. */
.js-pasos .sol-nav { margin-top: 16px; border-top: 0; }
.js-pasos .sol-nav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -13px;
  height: 16px;
  background: var(--k-feston) repeat-x 0 0 / 47px 16px;
  transform: scaleY(-1);
}

/* What the feriante owes is sewn row from row, and the total is lettered. The team's copy of the table stays plain. */
.solicitud .pedido th, .solicitud .pedido td { border-top: var(--puntada); }
.solicitud .pedido tbody tr:first-child > *, .solicitud .pedido tfoot tr:first-child > * { border-top: var(--linea); }
.solicitud .pedido-total td { font-family: var(--letra); font-weight: 900; font-synthesis: none; font-size: 1.375rem; }

@media (min-width: 1400px) {
  .sol { position: relative; }
  .escena-sol { position: absolute; top: 24px; left: calc(100% + 48px); width: 320px; margin: 0; }
}

/* ================= Tinta y cartulina: the portal's sections ================= */

/* One short painted strip heads each section's lists, on white under the coloured leaf: the art is painted on white
   paper and would turn to a grey box on a coloured one. */
.escena-tira { display: block; border-bottom: var(--linea); }
.escena-tira img { display: block; width: 100%; height: auto; }

/* Rubros carry their marks: in the directory's chips and as the chip on a profile. On a phone the chips run in one
   row that scrolls sideways, so a dozen rubros do not push the feriantes a screen down. */
@media (max-width: 719px) {
  .rubros-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--margen)); padding: 0 var(--margen) 6px; scrollbar-width: thin; }
  .rubros-chips li { flex: none; }
}
.rubros-chips li { padding-left: 6px; }
.rubros-chips a { display: flex; align-items: center; gap: 6px; }
.rubros-chips img { display: block; width: 40px; height: 40px; }
.rubro-chip { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; }
.rubro-chip img { display: block; width: 32px; height: 32px; margin: -4px 0; }

@media (min-width: 1100px) {
  .escena-tira { max-width: 720px; margin: 24px auto 0; border-bottom: 0; }
}
@media print {
  .ficha-inicial { display: none; }
}

/* /organizar: the hands painting a plan head the page; each thing the workspace does borrows a mark from the kit. */
.escena-organizar { display: block; padding: 18px var(--margen) 0; }
.escena-organizar img { display: block; width: 240px; height: auto; margin: 0 auto; }
.alta-lista li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 14px; align-items: start; }
.alta-lista img { display: block; width: 56px; height: 56px; }
@media (min-width: 1100px) {
  .escena-organizar img { width: 360px; }
}
@media print {
  .alta-lista li { display: block; }
}

/* ================= Tinta y cartulina: tickets, the sheet, the door, and paper ================= */

/* On a ticket and on the place's sheet the date hangs on a tag, as in the lists, and the place's code is lettered. */
.const-cabeza .sol-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 60px;
  padding: 0 22px 0 12px;
  background: var(--k-etiqueta) center / 100% 100% no-repeat;
  font-family: var(--letra);
  font-stretch: normal;
  font-synthesis: none;
  font-size: 2.5rem;
  letter-spacing: 0;
  line-height: 1;
  transform: rotate(-3deg);
}
.const-codigo { font-family: var(--letra); font-stretch: normal; font-synthesis: none; letter-spacing: 0; }

/* At the door only the word changes: the full-screen colour still carries the answer. */
.puerta-pasa, .puerta-no { font-family: var(--letra); font-stretch: normal; font-synthesis: none; }

@media print {
  /* Paper gets no painted picture and no gouache patch, whatever the page: they are colour nobody asked to print. */
  picture { display: none; }
  .inicio .hoja-dia::before, .feria .hoja-dia::before, .paso-num::before { display: none; }
  /* A ticket and the place's sheet keep the wordmark, one scallop row and the date's tag: all pure ink, so a
     black-and-white printer carries them. */
  .simple:has(.const-cabeza) .toldo { display: block; }
  .simple:has(.const-cabeza) .toldo, .const-cabeza .sol-num { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ================= Tinta y cartulina: motion ================= */

/* Every movement is a nicety on top of a finished page: asked for less motion, or without scripts, each thing is
   simply in its final place. */
@media (prefers-reduced-motion: no-preference) {
  /* trazos.js holds back the underline of a title below the first view until it scrolls in. */
  h2 { transition: background-size 420ms cubic-bezier(0.25, 1, 0.5, 1); }
  /* Held back at once, drawn over time: a transition takes the timing of the state it goes to. */
  h2.trazo-espera { background-size: 0 0.24em; transition: none; }

  /* The home's painting is brushed on, left to right, on a browser's first visit only (the server marks it). */
  .escena-pintar img {
    -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
    mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
    -webkit-mask-size: 220% 100%;
    mask-size: 220% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: pintar 600ms cubic-bezier(0.25, 1, 0.5, 1) both;
  }
  @keyframes pintar {
    from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
    to { -webkit-mask-position: 0 0; mask-position: 0 0; }
  }

  /* The pennants hang from their string and stir. */
  .banderines img { transform-origin: 50% 0; animation: ondear 6s ease-in-out infinite alternate; }
  @keyframes ondear {
    from { transform: rotate(-1.5deg); }
    to { transform: rotate(1.5deg); }
  }

  /* A place whose state changed while the plan was open has its new colour brushed in (plano.js marks it). */
  .pl-recien > rect { animation: brochazo 250ms cubic-bezier(0.25, 1, 0.5, 1) both; }
  @keyframes brochazo {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
  }
}

/* ================= Tinta y cartulina: empty lists and errors ================= */

/* A public list with nothing in it shows the empty stall (P14) over its sentence. The picture rides in the stylesheet
   because every such sentence already carries this class; a browser without image-set() shows the sentence alone. */
.sin-ferias::before {
  content: "";
  display: block;
  width: 160px;
  height: 160px;
  margin-bottom: 12px;
  background: var(--vacio-set) 0 50% / contain no-repeat;
}
/* One drawing to a slot: an index that already opens on its painted strip keeps the empty sentence bare. */
body:has(.escena-tira) .sin-ferias::before { display: none; }
.escena-error { display: block; width: 160px; margin-bottom: 12px; }
.escena-error img { display: block; width: 100%; height: auto; }
@media print {
  .sin-ferias::before { display: none; }
}

/* ================= the calendar's month grid (/ferias) ================= */

/* A wall calendar: the days a feria is on are filled yellow and carry its name. On a phone the names would not fit
   seven across, so the day number alone is the link and the list under the grid names them. */
.cal-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-cabeza h2 { margin: 0; text-align: center; }
.cal-flecha { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: var(--linea); border-radius: var(--corte); font-family: var(--letra); font-size: 1.5rem; text-decoration: none; }
.cal-flecha:hover { background: var(--hoja-amarilla); }
.cal-flecha-no, .cal-flecha-no:hover { border-color: #D5D8EA; background: none; color: #D5D8EA; }
.cal-tabla { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-tabla th { padding: 6px 0; font-size: 0.8125rem; font-weight: 800; text-transform: uppercase; }
.cal-tabla abbr { text-decoration: none; }
.cal-tabla td { height: 48px; padding: 4px; border: 1px solid var(--tinta); vertical-align: top; }
.cal-vacio { background: #F4F5FA; }
.cal-num { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; font-weight: 800; text-decoration: none; }
.cal-paso .cal-num { color: var(--tinta-suave); font-weight: 600; }
.cal-hoy .cal-num { border: 2px solid var(--numerador); border-radius: 50%; color: var(--numerador); }
.cal-con { background: var(--hoja-amarilla); }
.cal-con .cal-num { color: var(--numerador); font-family: var(--letra); font-size: 1.25rem; }
.cal-ferias { display: none; margin: 2px 0 0; padding: 0; list-style: none; }
.cal-nada { margin-top: 12px; }
@media (min-width: 720px) {
  .cal-tabla td { height: 96px; padding: 6px; }
  .cal-ferias { display: block; }
  .cal-ferias li { margin-top: 2px; font-size: 0.8125rem; font-weight: 700; line-height: 1.2; }
  .cal-ferias a { text-decoration: underline; text-underline-offset: 2px; }
}
@media print { .cal-flecha { display: none; } }
