/* Comunidad, ventas de garage, oportunidades, instituciones y moderación.
   Same tokens as site.css: no colour, font, shadow or radius of its own. */

.hoja-sobre { font-size: 0.875rem; font-weight: 700; }
.hoja .hoja-acciones { margin-top: 14px; }
.hoja form.hoja-acciones .boton-linea { background: none; }
.hoja-acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.feria-cuerpo h3 { margin: 14px 0 4px; font-size: 1.0625rem; font-weight: 800; }
.feria-cuerpo .sol-aviso, .feria-cuerpo .sol-errores { margin: 0; }

/* ---- lists of boards, opportunities, guides ---- */
.tablones > li { padding: 14px 0; border-bottom: 1px solid var(--tinta); }
.tablones > li:first-child { padding-top: 0; }
.tablones > li:last-child { border-bottom: 0; padding-bottom: 0; }
.feria-cuerpo .tablones h3 { margin: 0; font-size: 1.1875rem; line-height: 1.15; }
.feria-cuerpo .tablones p { margin-top: 2px; }
.tablon-dato, .tema-dato, .msj-dato { color: var(--tinta-suave); font-size: 0.875rem; }
.opo-tipo { font-size: 0.875rem; font-weight: 800; }

/* ---- threads in a board ---- */
.tema-filtro a { display: inline-flex; align-items: center; min-height: 44px; margin: 0 6px 8px 0; padding: 0 12px; border: var(--linea); font-weight: 700; text-decoration: none; }
.tema-filtro a[aria-current] { background: var(--tinta); color: var(--papel); }
.temas > li { display: flex; gap: 12px; padding: 14px 0; border-bottom: var(--puntada); }
.temas > li:first-child { padding-top: 0; }
.temas > li:last-child { border-bottom: 0; padding-bottom: 0; }
.tema-foto { flex: none; width: 72px; height: 72px; object-fit: cover; border: var(--linea); }
.tema-cuerpo { min-width: 0; }
.tema-titulo { margin: 0; font-size: 1.125rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
/* Under 20 px Cartel clots (site.css): a row's title and the chosen answer's head are read, not lettered. */
h2.tema-titulo, .respuesta-elegida h2 { font-family: inherit; padding-bottom: 0; background-image: none; }
.tema-precio, .msj-precio { font-weight: 800; }
.feria-cuerpo .tema-cuerpo p { margin-top: 2px; }
.feria-cuerpo .tema-cuerpo .tema-sellos { margin-top: 8px; }
.hoja .tema-sellos { margin-top: 8px; }

/* ---- the parts of the community: one row of hand-cut chips that scrolls sideways on a phone, never two rows ---- */
.areas ul { display: flex; gap: 8px; margin: 0 calc(-1 * var(--margen)) 18px; padding: 6px var(--margen); overflow-x: auto; scrollbar-width: none; list-style: none; }
.areas ul::-webkit-scrollbar { display: none; }
.areas li { flex: none; }
.areas a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border: var(--linea); border-radius: var(--corte); font-weight: 700; text-decoration: none; white-space: nowrap; }
.areas a[aria-current] { background: var(--tinta); color: var(--papel); }
.areas a:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }

/* One row of any list. The whole row is the link, as in the calendar; the title is what a screen reader hears. */
.fila { position: relative; }
.fila .tema-titulo a { text-decoration: none; }
.fila .tema-titulo a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.fila .tema-titulo a:focus-visible { outline: 0; }
.fila .tema-titulo a:focus-visible::after { outline: 3px solid var(--tinta); outline-offset: 3px; }
.fila-sobre { display: flex; align-items: center; gap: 6px; color: var(--tinta-suave); font-size: 0.875rem; font-weight: 700; overflow-wrap: anywhere; }
.fila-sobre::before { content: ""; flex: none; width: 16px; height: 16px; background: var(--k-globo) center / contain no-repeat; }
.fila-ferias::before { background-image: var(--k-pin); }
.fila-clasificados::before { background-image: var(--k-etiqueta); }
.fila-voz { overflow-wrap: anywhere; }
.feria-cuerpo .tema-cuerpo .fila-voz { margin-top: 4px; }
.sello-cerrado { background: var(--tinta); color: var(--papel); }

/* The one line to ask, at the top of the leaf. Square like every field; the button keeps its height. */
.pregunta { margin-top: 18px; }
.pregunta label { display: block; font-size: 1.0625rem; font-weight: 800; }
.pregunta-fila { display: flex; gap: 8px; margin-top: 8px; }
.pregunta-fila input {
  flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 12px;
  border: var(--linea); border-radius: 0; background: var(--papel); color: var(--tinta); font: inherit; font-size: 1.0625rem;
}
.pregunta-fila input:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.pregunta-fila .boton { flex: none; width: auto; min-height: 52px; }
.pregunta-sin { margin-top: 18px; padding: 12px 14px; border: var(--linea); background: var(--papel); }
.pregunta-sin p { font-weight: 600; }
.pregunta-sin .hoja-acciones { margin-top: 10px; }
.pregunta-sin .ayuda { margin-top: 8px; }
.hoja-enlaces { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 12px; list-style: none; font-weight: 700; }
/* A block, not a flex row: "Mis temas · 2 respuestas nuevas" is one line that wraps as text. */
.hoja-enlaces li { min-height: 44px; padding: 10px 0; line-height: 1.5; }

.tema-estado { display: flex; flex-wrap: wrap; gap: 0 18px; }
.tema-estado a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.tema-estado a[aria-current] { text-decoration-thickness: 3px; }
.com-nota { max-width: 640px; padding: 10px 12px; border: var(--linea); }
.feria-cuerpo .com-nota { margin-top: 12px; }
.com-cerrada { margin-top: 14px; padding: 12px 14px; background: var(--tinta); color: var(--papel); font-weight: 800; }
.com-guia p { max-width: 640px; padding: 10px 12px; border: var(--linea); }
/* A patch on the page, not a band across it. */
.feria-cuerpo section.respuesta-elegida { margin: 22px var(--margen) 0; padding: 14px 16px; border: var(--linea); border-radius: var(--corte); background: var(--hoja-verde); }
.respuesta-elegida h2 { font-size: 1.125rem; font-weight: 900; line-height: 1.2; }
.respuesta-elegida p { margin-top: 6px; overflow-wrap: anywhere; }
.feria-cuerpo .respuesta-elegida + section { padding-top: 22px; }

/* The kit's painted tick: on the current part, and on a question somebody resolved. Without masks, the word alone. */
@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .areas a[aria-current]::before, .sello-tilde::before {
    content: ""; flex: none; width: 18px; height: 15px; margin-right: 8px; background: var(--papel);
    -webkit-mask: var(--k-tilde) center / contain no-repeat;
    mask: var(--k-tilde) center / contain no-repeat;
  }
  .sello-tilde::before { display: inline-block; width: 12px; height: 10px; margin-right: 4px; background: var(--tinta); }
}

/* ---- one thread ---- */
.msj { padding: 16px 0; border-bottom: 1px solid var(--tinta); }
.msj:first-child { padding-top: 0; }
.msj:last-child { border-bottom: 0; padding-bottom: 0; }
/* The margin keeps the outline of the message somebody was sent to off the one below it. */
.msj:target { outline: 3px solid var(--tinta); outline-offset: 6px; margin-bottom: 9px; }
.msj-aparte { padding: 10px 12px; border: var(--linea); }
.msj-quien span { color: var(--tinta-suave); font-size: 0.875rem; }
.msj-estado { font-weight: 800; }
.msj-texto { margin-top: 6px; overflow-wrap: anywhere; }
.msj-texto p + p { margin-top: 10px; }
.msj-texto ~ p { margin-top: 10px; }
.msj .galeria { margin-top: 10px; max-width: 480px; }
.msj-denuncias { margin-top: 8px; padding: 8px 12px; border: var(--linea); border-style: dashed; font-weight: 600; }
.msj-acciones { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 14px; margin-top: 6px; }
.msj-acciones .cambiar[aria-pressed="true"] { background: var(--hoja-amarilla); }
.msj-mas summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 800; cursor: pointer; }
.msj-mas summary:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.msj-mas[open] { flex: 1 1 100%; }
.msj-mas form { margin-top: 8px; }
.msj-mas label, .mod-form label, .vendedor label { display: block; margin-top: 8px; font-weight: 800; }
.msj-mas textarea, .mod-form textarea, .vendedor input {
  display: block; width: 100%; max-width: 560px; min-height: 48px; margin-top: 4px; padding: 10px 12px;
  border: var(--linea); border-radius: 0; background: var(--papel); color: var(--tinta); font: inherit; font-size: 1.0625rem;
}
.msj-mas textarea:focus-visible, .mod-form textarea:focus-visible, .vendedor input:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }

/* ---- forms ---- */
.com-form { margin-top: 16px; }
.com-form .boton, .com-form .boton-linea { margin-top: 4px; }
.com-form .casilla + .casilla { margin-top: 10px; }
.campo input[type=date], .campo input[type=time], .panel-filtros input, .panel-filtros 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 input[type=date]:focus-visible, .campo input[type=time]:focus-visible, .panel-filtros input:focus-visible, .panel-filtros select:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.campo input[type=file] + input[type=file] { margin-top: 8px; }
fieldset.campo { min-width: 0; margin-inline: 0; padding: 0; border: 0; }
fieldset.campo legend { padding: 0; }
fieldset.campo .casilla { margin-top: 10px; }
.par { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.vendedor { margin-top: 8px; padding: 0 12px; border: var(--linea); }
.vendedor[open] { padding-bottom: 12px; }
.vendedor summary { min-height: 44px; padding-top: 10px; font-weight: 800; cursor: pointer; }
.fotos-puestas { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0; }
.fotos-puestas img { display: block; width: 96px; height: 96px; object-fit: cover; border: var(--linea); }
.fotos-puestas .casilla { margin-top: 6px; }
.garage-que { white-space: pre-line; overflow-wrap: anywhere; }
/* The link is one long word: it has to break, and one tap selects all of it for copying. */
p + .oferta, #contacto p + form { margin-top: 14px; }
.informe .const-acciones + .sol-sobre { margin-top: 14px; }
.garage-enlace { font-weight: 800; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }

/* ---- a person's own lists ---- */
.mis-lista > li { padding: 12px 0; border-bottom: 1px solid var(--tinta); }
.mis-lista > li:last-child { border-bottom: 0; }
.mis-lista > li > a, .mis-lista > li > strong { display: block; overflow-wrap: anywhere; }
.mis-lista > li > span { display: block; color: var(--tinta-suave); font-size: 0.9375rem; }
.sol-bloque > h1 { font-size: 1.75rem; font-weight: 900; font-stretch: 88%; line-height: 1.1; overflow-wrap: anywhere; }
.sol-bloque > h1 + p { margin-top: 8px; }

/* ---- a private conversation ---- */
.charla > li { max-width: 86%; margin-top: 12px; padding: 10px 12px; border: var(--linea); }
.charla-mia { margin-left: auto; background: var(--hoja-celeste); }
.charla-quien { color: var(--tinta-suave); font-size: 0.8125rem; font-weight: 700; }
.charla + .com-form, .charla + .sol-aviso { margin-top: 20px; }

/* ---- a guide ---- */
.guia h2 { margin: 22px 0 8px; font-size: 1.25rem; font-weight: 900; }
.guia h2:first-child { margin-top: 0; }
.guia p + p, .guia ul, .guia ol, .guia ul + p, .guia ol + p { margin-top: 10px; }
.guia .lista { padding: 0; }

/* ---- moderation and the institution's panel (inside the workshop frame) ---- */
.mod-cola > li { max-width: 640px; padding: 18px 0 22px; border-top: var(--linea); }
.mod-cola > li > * + * { margin-top: 6px; }
.mod-donde { font-weight: 800; overflow-wrap: anywhere; }
.mod-quien { color: var(--tinta-suave); font-size: 0.9375rem; }
.mod-motivo { padding: 8px 12px; border: var(--linea); border-style: dashed; font-weight: 700; }
.mod-form select { margin-top: 4px; }
.mod-form textarea + button { margin-top: 10px; }
.taller-cuerpo section.fs-cola { margin-top: 28px; padding-top: 20px; border-top: var(--linea); }
.taller-cuerpo section.fs-cola > * + * { margin-top: 10px; }
.taller-cuerpo .com-form { max-width: 640px; }
.taller-cuerpo .sol-errores { margin: 0 0 16px; }
.taller-cuerpo .pedir { margin-top: 20px; }
.cifras { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 16px 0; border: var(--linea); }
.cifras > div { padding: 12px 14px; border-bottom: 1px solid var(--tinta); }
.cifras > div:nth-child(odd) { border-right: 1px solid var(--tinta); }
.cifras > div:nth-last-child(-n+2) { border-bottom: 0; }
.cifras dt { font-size: 0.875rem; font-weight: 700; }
.cifras dd { margin: 0; font-size: 2.25rem; font-weight: 900; font-stretch: 110%; letter-spacing: -0.03em; line-height: 1; }
.cifras ~ h2 { margin: 22px 0 6px; }
.cifras ~ .tabla { max-width: 640px; }
.cifras ~ .ayuda { max-width: 640px; margin-top: 18px; }
/* One column on a phone: two date fields side by side are wider than 360px. */
.panel-filtros { display: grid; gap: 12px; align-items: end; max-width: 640px; margin-bottom: 16px; }
.panel-filtros label { font-weight: 800; }
.informe .sol { padding: 20px var(--margen); }
.informe h1 { font-size: 2rem; font-weight: 900; font-stretch: 88%; line-height: 1.05; }

@media (min-width: 720px) {
  .cifras { grid-template-columns: repeat(3, 1fr); max-width: 760px; }
  .cifras > div:nth-child(odd) { border-right: 0; }
  .cifras > div:not(:nth-child(3n)) { border-right: 1px solid var(--tinta); }
  .cifras > div:nth-last-child(-n+3) { border-bottom: 0; }
  .panel-filtros { grid-template-columns: 1fr 1fr 1.4fr auto; }
  .tema-foto { width: 96px; height: 96px; }
}

@media print {
  .informe .const-acciones { display: none; }
  .cifras, .tabla { break-inside: avoid; }
  .cifras dd { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
