/* prof, the grey skin of 2004 ("Gris" on its button): flat greys, no pictures but the bands, grey borders.
   Its values, from index.php, conf/configuracion_general.php and conf/cabecera_prof.txt:
     $color_de_fondo   #e7e7e7  the ground
     .menu             #d7d8d5  the boxes
     $color_de_input   #dddddd  the posts and the fields
     $bordercolor      #9c9c9c  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_ (13px) and inferior_prof.gif (13px in a 15px foot) round the boxes,
                       complemento_prof.gif between two, superior_post_prof.gif (13px) and inferior_post_prof.gif
                       (6px in a 7px foot) round a post; grey, #C4C4C4. The header names them _prof; the dump
                       keeps them as _gris, the names used here, and the 2004 photographs show those.
     $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,
    #e7e7e7;
  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 #9c9c9c;
  border-radius: 0;
  background: #dddddd;
  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: url(/skins/clasico/img/prof/inferior_gris.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 18px;
  background:
    url(/skins/clasico/img/prof/superior_gris.gif) 0 0 / 100% 13px no-repeat,
    url(/skins/clasico/img/prof/inferior_gris.gif) 0 calc(100% - 2px) / 100% 13px no-repeat;
}
body > header form::before {
  content: "";
  position: absolute;
  inset: 13px 0 15px;
  z-index: -1;
  border: 1px solid #9c9c9c;
  background: #d7d8d5;
}
body > header label {
  grid-column: 1 / -1;
  height: 13px;
  margin: 0 -3px 3px;
  line-height: 14px;
  text-align: center;
}
body > header button {
  width: auto;
  min-height: 0;
  padding: 0 6px;
  border: 1px solid #9c9c9c;
  background: #C4C4C4;
  text-align: center;
}

/* the sections: the first box of the sidebar, as the 2004 menu */
body > nav {
  margin: 0 0 10px;
  padding: 13px 0 15px;
  background:
    url(/skins/clasico/img/prof/superior_gris.gif) 0 0 / 100% 13px no-repeat,
    url(/skins/clasico/img/prof/inferior_gris.gif) 0 calc(100% - 2px) / 100% 13px no-repeat;
}
body > nav ul {
  margin: 0;
  padding: 2px 5px;
  list-style: none;
  border: 1px solid #9c9c9c;
  background: #d7d8d5;
}
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 #9c9c9c;
  background: #dddddd;
}
main article > h2 {
  grid-area: 1 / 1;
  margin: 0;
  padding: 1px 10px;
  background:
    url(/skins/clasico/img/prof/superior_post_gris.gif) 0 0 / 100% 13px no-repeat,
    linear-gradient(#C4C4C4, #C4C4C4) 0 13px / 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: 7px;
  padding-left: 18px;
  background: url(/skins/clasico/img/prof/inferior_post_gris.gif) 0 0 / 100% 6px 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 #9c9c9c;
  background: #d7d8d5;
}
.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: 13px 0 15px;
  background:
    url(/skins/clasico/img/prof/superior_gris.gif) 0 0 / 100% 13px no-repeat,
    url(/skins/clasico/img/prof/inferior_gris.gif) 0 calc(100% - 2px) / 100% 13px no-repeat;
}
aside h2 {
  height: 13px;
  margin: -13px 0 0;
  font-size: inherit;
  font-weight: normal;
  line-height: 14px;
  text-align: center;
}
aside section > :not(h2) {
  margin: 0;
  border: 1px solid #9c9c9c;
  background: #d7d8d5;
}
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/prof/superior_gris.gif) 0 0 / 100% 13px no-repeat,
    url(/skins/clasico/img/prof/inferior_gris.gif) 0 calc(100% - 2px) / 100% 13px no-repeat,
    #d7d8d5 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 #9c9c9c; 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/prof/superior_gris.gif) 0 0 / 100% 13px no-repeat;
}
.libro .firmar {
  position: relative;
  margin-top: 21px;
  padding: 2px 2px 0;
  border-bottom: 0;
}
.libro .firmar::before {
  content: "Firmame!";
  content: "Firmame!" / "";
  position: absolute;
  top: -22px;
  right: -1px;
  left: -1px;
  height: 21px;
  padding: 8px 0 0 7px;
  background: url(/skins/clasico/img/prof/complemento_gris.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: #9c9c9c; }

/* 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;
}

/* prof's Enviar stood on the right of its band; the button's word does too */
button { padding-right: 24px; text-align: right; }

/* 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: 13px; }

  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: 61px; }
  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 13px;
    background-size: auto, 100% 100%;
    font-size: 9px;
  }
  .meta {
    grid-area: 1 / 1;
    padding: 1px 0 1px 10px;
    background:
      url(/skins/clasico/img/prof/superior_post_gris.gif) 0 0 no-repeat,
      linear-gradient(#C4C4C4, #C4C4C4) 0 13px / 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; }
}
