/* v21, "Old School" on its button, the site's 2.1 look kept as a skin in 2004: white, black borders, blue-grey
   bands, and the posts' column capped above and below. Its values, from index.php,
   conf/configuracion_general.php and conf/cabecera_v21.txt:
     $color_de_fondo   #ffffff  the ground
     $color_de_input   #ffffff  the boxes, the posts and the fields
     $bordercolor      #000000  the boxes', the posts' and the fields' borders
     $color_de_fuente  black, $tamanyo_de_fuente 10px, Verdana; text justified
     links             #666666, teal and underlined on hover ($color_de_puntero); the menus' links black
     the bands         superior_v21.gif (15px) over the boxes and a bare 16px under them, complemento_v21.gif
                       (27px) between two, superior_post_v21.gif (20px) and inferior_post_v21.gif (17px) round a
                       post; blue-grey, #A1B3C2
     botoncito_v21.gif  the button (17px), its Enviar covered by a patch of its own blue so the button says its word
     $hamburguesa1, 2  terminador_up.gif (35px) and terminador_down.gif (21px), the posts' column's caps
     $ancho1           540px, the rule over a post's foot
   The frame (the sidebar at 16px, the header and the posts at 200px, the posts 560px wide, 770px in all) from
   48.125em, where 770px fit; one column below, the same bands and colours at a size a phone can read. */

:root { color-scheme: light; }

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

/* the body and the frame */
body {
  margin: 0;
  padding: 16px 16px 19px;
  background:
    url(/skins/clasico/img/cosa_gris_repetida.gif) 0 0 / 200px 13px no-repeat,
    #ffffff;
  color: black;
  font: 13px/1.2 Verdana, Arial, sans-serif;
  overflow-wrap: break-word;
}

a { color: #666666; text-decoration: none; }
a:hover, a:focus-visible { color: teal; text-decoration: underline; }

input, textarea, button { font: inherit; color: black; }
input, textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 1px 2px;
  border: 1px solid black;
  border-radius: 0;
  background: #ffffff;
  font-size: 16px;
}
textarea { height: 6em; resize: vertical; }
button {
  display: block;
  width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(#A1B3C2, #A1B3C2) 54.2% 57.1% / 27.2% 58.8% no-repeat,
    url(/skins/clasico/img/v21/botoncito_v21.gif) 0 0 / 100% 100% no-repeat;
  cursor: pointer;
}
button:disabled { opacity: .5; cursor: progress; }

/* the header: OZONE v3.1 stands for the site's name, which stays in the link for whoever cannot see it */
body > header { margin: 0 0 12px; }
body > header h1 { margin: 0 0 8px; }
body > header h1 a {
  display: block;
  width: 570px;
  max-width: 100%;
  aspect-ratio: 570 / 60;
  background: url(/skins/clasico/img/cosa_gris.gif) 0 0 / 100% auto no-repeat;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 100%;
}
/* the search: a box like the others, its word on the top band, the field and its button in the box */
body > header form {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 2px;
  margin: 0 0 10px;
  padding: 0 3px 19px;
  background: url(/skins/clasico/img/v21/superior_v21.gif) 0 0 / 100% 15px no-repeat;
}
body > header form::before {
  content: "";
  position: absolute;
  inset: 15px 0 16px;
  z-index: -1;
  border: 1px solid black;
  background: #ffffff;
}
body > header label {
  grid-column: 1 / -1;
  height: 15px;
  margin: 0 -3px 3px;
  line-height: 16px;
  text-align: center;
}
body > header button {
  width: auto;
  min-height: 0;
  padding: 0 6px;
  border: 1px solid black;
  background: #A1B3C2;
  text-align: center;
}

/* the sections: the first box of the sidebar, as the 2004 menu */
body > nav {
  margin: 0 0 10px;
  padding: 15px 0 16px;
  background: url(/skins/clasico/img/v21/superior_v21.gif) 0 0 / 100% 15px no-repeat;
}
body > nav ul {
  margin: 0;
  padding: 2px 5px;
  list-style: none;
  border: 1px solid black;
  background: #ffffff;
}
body > nav a { color: black; }

/* the posts: a band with the date and the title, a bordered box, a rule and the link, a foot band and its dots.
   The box is drawn behind the rows it holds, so whatever a band leaves transparent shows the ground, as in 2004. */
main article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(5, auto);
  margin: 0 0 17px;
}
main article::before {
  content: "";
  grid-area: 2 / 1 / 5 / -1;
  border: 1px solid black;
  background: #ffffff;
}
main article > h2 {
  grid-area: 1 / 1;
  margin: 0;
  padding: 5px 10px 4px;
  background:
    url(/skins/clasico/img/v21/superior_post_v21.gif) 0 0 / 100% 20px no-repeat,
    linear-gradient(#A1B3C2, #A1B3C2) 0 20px / 100% 100% no-repeat;
  color: #424242;
  font-size: 11px;
  font-weight: normal;
  line-height: 11px;
  text-align: center;
}
.meta {
  grid-area: 2 / 1;
  margin: 0;
  padding: 4px 7px 0;
  color: #424242;
  font-size: 11px;
}
.contenido {
  grid-area: 3 / 1;
  padding: 3px 7px;
  text-align: justify;
}
.contenido img, .contenido video { max-width: 100%; height: auto; }
.contenido iframe, .contenido embed, .contenido object { max-width: 100%; }
.contenido pre { overflow-x: auto; }
.enlace {
  grid-area: 4 / 1;
  margin: 0;
  padding: 7px 9px 9px;
  background: linear-gradient(black, black) 10px 0 / calc(100% - 20px) 1px no-repeat;
  font-weight: bold;
}
.enlace a { color: black; }
main article::after {
  grid-area: 5 / 1;
  content: "...";
  content: "..." / "";
  height: 17px;
  padding-left: 18px;
  background: url(/skins/clasico/img/v21/inferior_post_v21.gif) 0 0 / 100% 17px no-repeat;
  line-height: 15px;
}
.no-encontrado h2 { font-size: 13px; }

main > h2 { margin: 0 0 12px; font-size: inherit; }
.paginas {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 17px;
  padding: 3px 8px;
  border: 1px solid black;
  background: #ffffff;
}
.paginas a { color: black; font-weight: bold; }

/* the sidebar: each block a 2004 box, its title in the top band */
aside section {
  margin: 0 0 10px;
  padding: 15px 0 16px;
  background: url(/skins/clasico/img/v21/superior_v21.gif) 0 0 / 100% 15px no-repeat;
}
aside h2 {
  height: 15px;
  margin: -15px 0 0;
  font-size: inherit;
  font-weight: normal;
  line-height: 16px;
  text-align: center;
}
aside section > :not(h2) {
  margin: 0;
  border: 1px solid black;
  background: #ffffff;
}
aside ul { padding: 2px; list-style: none; }
aside a { color: black; }

/* the calendar: its word on the band, the month and year over the days, in one box */
.calendario {
  background:
    url(/skins/clasico/img/v21/superior_v21.gif) 0 0 / 100% 15px no-repeat,
    #ffffff content-box;
}
.calendario table { width: 100%; border-top: 0; border-collapse: collapse; background: none; text-align: center; }
.calendario caption { padding: 2px 0 0; border: 1px solid black; border-bottom: 0; font-weight: bold; }
.calendario th { color: #424242; font-weight: normal; }
.calendario td a { font-weight: bold; }

.historico li > a:first-child { font-weight: bold; }

.firmas li { margin: 0 0 6px; }
.firmas p { margin: 0; }
.quien { color: #424242; }
.quien .by { color: black; font-weight: bold; }

/* the book's form: a second box under a joining band, Firmame! as in 2004, and the button as its foot */
.libro {
  padding-bottom: 0;
  background: url(/skins/clasico/img/v21/superior_v21.gif) 0 0 / 100% 15px no-repeat;
}
.libro .firmar {
  position: relative;
  margin-top: 27px;
  padding: 2px 2px 0;
  border-bottom: 0;
}
.libro .firmar::before {
  content: "Firmame!";
  content: "Firmame!" / "";
  position: absolute;
  top: -28px;
  right: -1px;
  left: -1px;
  height: 27px;
  padding: 14px 0 0 7px;
  background: url(/skins/clasico/img/v21/complemento_v21.gif) 0 0 / 100% 100% no-repeat;
}
.firmar label { display: block; margin: 0 0 2px; color: #424242; font-size: 11px; }
.firmar button { width: calc(100% + 6px); margin: 2px -3px 0; }
.status:empty { display: none; }
.status { margin: 0; padding: 2px; color: black; }

/* the honeypot: out of sight and out of reach */
.tarro { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* the skin picker: the 2004 Skins box, after the book, the skins of then as their buttons */
.skins li { margin: 0 0 2px; }
.skins a[href="?skin=creativo"], .skins a[href="?skin=rojo"], .skins a[href="?skin=verde"],
.skins a[href="?skin=azul"], .skins a[href="?skin=prof"], .skins a[href="?skin=v21"],
.skins a[href="?skin=industrial"], .skins a[href="?skin=verde2"] {
  display: block;
  width: 141px;
  max-width: 100%;
  height: 17px;
  padding: 0;
  background: 0 0 no-repeat;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 100%;
}
.skins a[href="?skin=creativo"] { background-image: url(/skins/clasico/img/botones/creativo.gif); }
.skins a[href="?skin=rojo"] { background-image: url(/skins/clasico/img/botones/rojo.gif); }
.skins a[href="?skin=verde"] { background-image: url(/skins/clasico/img/botones/verde.gif); }
.skins a[href="?skin=azul"] { background-image: url(/skins/clasico/img/botones/azul.gif); }
.skins a[href="?skin=prof"] { background-image: url(/skins/clasico/img/botones/prof.gif); }
.skins a[href="?skin=v21"] { background-image: url(/skins/clasico/img/botones/v21.gif); }
.skins a[href="?skin=industrial"] { background-image: url(/skins/clasico/img/botones/industrial.gif); }
.skins a[href="?skin=verde2"] { background-image: url(/skins/clasico/img/botones/verde2.gif); }
.skins a[href="?skin=linuxero"] {
  display: block;
  width: 141px;
  max-width: 100%;
  height: 17px;
  padding: 0;
  border: 2px solid #FF6600;
  background: white;
  color: #FF6600;
  font: bold 9px/13px Helvetica, Arial, sans-serif;
  letter-spacing: .3em;
  text-align: center;
  text-decoration: none;
  text-indent: .3em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}
.skins a[href="?skin=pixel"] {
  display: block;
  width: 141px;
  max-width: 100%;
  height: 17px;
  padding: 0;
  border: 1px solid black;
  background: linear-gradient(#4F4F4F, #4F4F4F) 50% 50% / 60px 11px no-repeat, repeating-linear-gradient(-45deg, #F5D547 0 6px, #3C3C3C 6px 12px);
  color: white;
  font: bold 9px/15px Verdana, Arial, sans-serif;
  letter-spacing: .3em;
  text-align: center;
  text-decoration: none;
  text-indent: .3em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}

/* the posts hang between two caps, terminador_up.gif and terminador_down.gif, where $hamburguesa1 and 2 put them */
main::before, main::after { content: ""; display: block; background: 0 0 / 100% 100% no-repeat; }
main::before { height: 35px; background-image: url(/skins/clasico/img/v21/terminador_up.gif); }
main::after { height: 21px; background-image: url(/skins/clasico/img/v21/terminador_down.gif); }

/* the 2004 frame: the sidebar down the left, 147px; the header and the posts from 200px, the posts 560px; the
   search the sidebar's first box; 10px Verdana, 9px in the bands and the fields */
@media (min-width: 48.125em) {
  body {
    position: relative;
    min-width: 770px;
    padding: 29px 0 19px 16px;
    font-size: 10px;
  }
  input, textarea { height: 17px; font-size: 9px; }
  textarea { height: 50px; }
  button { min-height: 0; height: 17px; }

  body > header { position: absolute; top: 0; left: 200px; margin: 0; }
  body > header h1 { margin: 0; }
  body > header h1 a { width: 570px; height: 60px; }
  body > header form { position: absolute; top: 29px; left: -184px; width: 147px; margin: 0; }
  body > header button { height: 17px; }

  body > nav { margin-top: 64px; }
  body > nav, body > aside { width: 147px; }

  body > main { position: absolute; top: 80px; left: 200px; width: 560px; padding-bottom: 19px; }
  main article { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: repeat(4, auto); }
  main article::before { grid-area: 2 / 1 / 4 / -1; }
  main article > h2 {
    grid-area: 1 / 2;
    background-position: 100% 0, 0 20px;
    background-size: auto, 100% 100%;
    font-size: 9px;
  }
  .meta {
    grid-area: 1 / 1;
    padding: 5px 0 4px 10px;
    background:
      url(/skins/clasico/img/v21/superior_post_v21.gif) 0 0 no-repeat,
      linear-gradient(#A1B3C2, #A1B3C2) 0 20px / 100% 100% no-repeat;
    font-size: 9px;
    line-height: 11px;
    white-space: nowrap;
  }
  .contenido { grid-area: 2 / 1 / 3 / -1; }
  .enlace { grid-area: 3 / 1 / 4 / -1; }
  main article::after { grid-area: 4 / 1 / 5 / -1; }
  .no-encontrado h2 { grid-column: 1 / -1; font-size: 9px; }

  .firmas { max-height: 150px; overflow: auto; }
  .firmar label { font-size: 9px; }

  /* v21's band has a deep notch where 2004's short date stood, so the date, section and author open the box */
  main article { grid-template-rows: repeat(5, auto); }
  main article::before { grid-area: 2 / 1 / 5 / -1; }
  main article > h2 { grid-area: 1 / 1 / 2 / -1; }
  .meta { grid-area: 2 / 1 / 3 / -1; padding: 4px 7px 0; background: none; white-space: normal; }
  .contenido { grid-area: 3 / 1 / 4 / -1; }
  .enlace { grid-area: 4 / 1 / 5 / -1; }
  main article::after { grid-area: 5 / 1 / 6 / -1; }
}
