/* Estilo general para todos los enlaces */
body{
	background-color:#c7c7c7;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-style: normal;
    font-weight: 400;
	font-size:16px;
	letter-spacing: -0.5px;
	margin: 0;
}
input, button{
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-style: normal;
    font-weight: 300;
}
a {
  cursor: pointer;
  text-decoration: none; /* quitar subrayado */
  
}
#buttonSearch{
	height:50px;
	width:100px;
}

/* Sumario */
#summary {
  
  font-size: 14px;               /* más chico */
  margin-top: 20px;
}

#summary h3 {
  font-size: 15px;
  margin-bottom: 10px;
  
}

#summary a {
  display: block;
  margin: 4px 0;
  color: #333;
  text-decoration: none; /* sin subrayado */
}

#summary a:active,
#summary a:focus {
  outline: none; /* no se marque al hacer click */
}

/* Diferenciar niveles de encabezado */
#summary a.level-h1 {
  
}

#summary a.level-h2 {  
  margin-left: 10px;
}

#summary a.level-h3 {
  font-style: italic; /* ### -> itálica */
  margin-left: 20px;
  font-size: 13px;
}



/* Cabecera */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e1e1e;
  color: #fff;
  position: fixed;
  top: 0;
  width: 100%;
  height:70px;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#logo {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 1px;
  margin:30px;
}


#search input {
  padding: 6px 10px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  width: 499px;
    height: 40px;
    background-color: rgb(80,80,80);
}

#menu button {
  
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  margin:30px;
  background-color: black;
}

#menu ul {
  display: none;
  position: absolute;
  right: 0;
  
  color: #333;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color:white;
}

#menu.show ul {
  display: block;
}

#menu ul li {
  padding: 8px 12px;
  cursor: pointer;
}

#menu ul li:hover {
  background: #eee;
}

/* Layout principal */
main {
  display: flex;
  margin-top: 70px;
}

/* Sidebar */
/* Sidebar: categorías */
#sidebar a {
  display: block;
  margin: 10px 0;
  font-size: 18px;
  color: #333;
  text-decoration: none;
  border-bottom: 2px solid #ddd; /* línea sutil */
  padding-bottom: 6px;
}

#sidebar a:hover {
  text-decoration: underline;
}

#sidebar {
  width: 250px;
  border-right: 1px solid #ddd;
  padding: 20px;
  
}

#sidebar h2 {
  font-size: 18px;
  margin-bottom: 10px;
}


/* Panel principal */
#content {
  flex: 1;
  padding: 30px;
}

#content h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

#article a {
   margin: 12px 0;
  font-size: 25px;
  color: #0055aa;
  text-decoration: none;
  border-bottom: 2px solid #eee; /* línea sutil */
  padding-bottom: 6px;
}

#article a:hover {
  text-decoration: underline;
}

/* Markdown renderizado */
#article h1, #article h2, #article h3 {
  margin-top: 20px;
  
}

#article p {
  line-height: 1.6;
  margin-bottom: 12px;
}

pre code {
  background: #f4f4f4;
  padding: 10px;
  display: block;
  border-radius: 4px;
  overflow-x: auto;
}

#pillbox {
     /* oculto inicialmente */    
  
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  margin:10px;
  
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* sombra sutil */
  z-index: 999;
}


#pillbox h3 {
  font-size: 12px;
  margin-bottom: 10px;
  
}

#pillbox p {
  margin: 6px 0;
}

#pillbox a {
  color: #0055aa;
  text-decoration: none;
  cursor: pointer;
}

#pillbox a:hover {
  text-decoration: underline;
}

#pillbox ul {
  list-style: none;
  padding-left: 0;
}

#pillbox ul li {
  margin: 4px 0;
}

.html-list {
  margin-top: 15px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f9f9f9;
}

.html-list h4 {
  margin-bottom: 8px;
  font-size: 14px;
  
  color: #444;
}

.html-link {
  display: block;
  margin: 4px 0;
  color: #0066cc;
  text-decoration: none;
  cursor: pointer;
}

.html-link:hover {
  text-decoration: underline;
}
.sidebar-section {
  margin-bottom: 10px;
}

.sidebar-title {
  cursor: pointer;
  font-weight: bold;
  padding: 6px;
  background: #f2f2f2;
  user-select: none;
}

.sidebar-content {
  display: none;
  padding-left: 10px;
}

.sidebar-section.open .sidebar-content {
  display: block;
}


/* Agregado */
.article-row {
  display: flex;
  align-items: baseline;
  gap: 40px;
  padding: 4px 0;
  border-top: 1px solid #ccc;
}

.article-date {
	color: gray;
	font-style: normal;
    font-weight: 300;
	margin-right:40px;
}

.article-title {
  text-decoration: none;
  color: #000;
  font-weight: 400;
}

.article-title:hover {
  text-decoration: underline;
}
.article-grid{
	  display: grid;
	  grid-template-columns: 60px 1fr; /* columna fecha fija + título flexible */
	  column-gap: 10px;
	  align-items: start;
	  text-decoration: none;
}
