/* The Speaker News Journal — Español (static archive) */

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

html { font-size: 17px; }

body {
  margin: 0;
  background: #f7f8f9;
  color: #222;
  font-family: Lato, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

a { color: #1e73be; text-decoration: none; }
a:hover, a:focus { color: #000; }

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }

.wrap {
  max-width: 2000px;
  margin: 0 auto;
}

/* Header */
#masthead {
  background-color: #bebebe;
  background-image: url("../img/worldmap.svg");
  background-repeat: no-repeat;
  background-size: 70% auto;
  background-position: center -25px;
  border: none;
  margin-bottom: 1px;
}

.inside-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px 10px;
}

.site-logo {
  max-width: 72px;
  flex: 0 0 auto;
}
.site-logo img { display: block; width: 72px; height: 72px; object-fit: contain; }

.site-branding { max-width: 520px; }
.site-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  color: #222;
}
.site-title a { color: inherit; }
.site-title a:hover { color: #444; }
.site-description {
  margin: 4px 0 0;
  color: #555;
  font-size: 0.95rem;
}

/* Nav */
#site-navigation {
  background: #fff;
  border-top: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
}
.menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}
.main-menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-menu > li { position: relative; }
.main-menu > li > a {
  display: block;
  padding: 12px 16px;
  color: #515151;
  font-weight: 600;
  font-size: 0.95rem;
}
.main-menu > li > a:hover,
.main-menu > li:hover > a { color: #7a8896; }
.main-menu .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 200px;
  background: #eaeaea;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 20;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.main-menu > li:hover > .sub-menu,
.main-menu > li:focus-within > .sub-menu { display: block; }
.sub-menu a {
  display: block;
  padding: 8px 16px;
  color: #515151;
}
.sub-menu a:hover { color: #7a8896; }

/* Layout */
#page { padding: 18px 16px 40px; }
.site-content {
  display: grid;
  grid-template-columns: minmax(220px, 25%) 1fr;
  gap: 28px;
  align-items: start;
}

/* Sidebar */
.sidebar {
  background: transparent;
}
.widget {
  background: #fff;
  padding: 16px 16px 18px;
  margin-bottom: 16px;
}
.widget h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: #222;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin: 0 0 8px; line-height: 1.35; }
.search-form {
  display: flex;
  gap: 6px;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  background: #fafafa;
  color: #666;
  font: inherit;
}
.search-form button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  background: #eee;
  cursor: pointer;
  font: inherit;
}
.follow-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.follow-buttons a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
}
.follow-buttons svg { width: 24px; height: 24px; display: block; }
.follow-buttons a:hover { opacity: 0.55; }
.our-links, .section-links { text-align: center; }
.our-links a, .section-links a {
  display: block;
  font-size: 16px;
  margin: 4px 0;
}
.section-links p {
  margin: 15px 0 5px;
  font-size: 18px;
  color: #222;
}

/* Featured home */
.featured-posts-div {
  float: none;
  border-bottom: 3px solid #bebebe;
  padding: 20px 5px;
  margin-bottom: 30px;
}
.featured-posts-div a { color: #222; }
.featured-posts-div a:hover { color: #55555e; }
.featured-top {
  display: grid;
  grid-template-columns: 75% 25%;
  margin-bottom: 15px;
}
.featured-post-container-1 h2,
.featured-post-container-2 h2,
.featured-post-container-3 h2 {
  color: #000;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.2;
}
.featured-post-container-1 h2 { font-size: 32px; }
.featured-post-container-2 h2 { font-size: 25px; padding-right: 8px; }
.featured-post-container-3 h2 { font-size: 22px; }
.featured-post-container-1 img {
  float: left;
  width: 50px;
  max-width: 50px;
  height: auto;
  padding: 0 8px 8px 0;
}
.featured-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.featured-post-container-3 { max-width: none; }
.featured-meta {
  color: #595959;
  font-size: 14px;
  clear: both;
}

/* Articles */
.article-card,
article.post,
article.page {
  background: transparent;
  margin-bottom: 36px;
  padding-bottom: 10px;
  overflow: hidden;
}
.entry-header { max-width: 900px; clear: both; }
.entry-title {
  margin: 0 0 8px;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.2;
  color: #222;
}
.entry-title a { color: #222; }
.entry-title a:hover { color: #55555e; }
.entry-meta, .entry-footer {
  color: #595959;
  font-size: 14px;
  margin: 0 0 14px;
}
.entry-meta a, .entry-footer a { color: #595959; }
.entry-meta a:hover, .entry-footer a:hover { color: #222; }
.featured-image {
  float: left;
  width: auto;
  max-width: 50px;
  margin: 0 16px 16px 0;
}
.entry-content {
  max-width: 800px;
  clear: both;
  color: #000;
}
.entry-content p { margin: 0 0 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: #222; }
.entry-content img.size-full,
.entry-content img.size-medium,
.entry-content .alignleft {
  max-width: 50px;
}
.entry-content .alignleft { float: left; margin: 0 16px 12px 0; }
.entry-content .alignright { float: right; margin: 0 0 12px 16px; }
.entry-content iframe {
  width: 854px;
  height: 480px;
  max-width: 100%;
}
.entry-summary { clear: both; max-width: 800px; }
.more-link { font-weight: 700; }

.archive-title {
  margin: 0 0 18px;
  font-size: 1.6rem;
}

.paging {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
  font-weight: 600;
}

/* Comments accordion */
.comments-accordion {
  max-width: 830px;
  margin: 36px 0 10px;
  border-top: 5px solid grey;
  padding-top: 18px;
  background: #fff;
}
.comments-accordion > summary {
  display: block;
  background: #eee;
  padding: 14px;
  color: #424242;
  cursor: pointer;
  border: 1px solid #bdbdbd;
  font-weight: 700;
  letter-spacing: 0.04em;
  list-style: none;
}
.comments-accordion > summary::-webkit-details-marker { display: none; }
.comments-accordion > summary::after {
  content: " ▸";
  font-weight: 400;
}
.comments-accordion[open] > summary::after { content: " ▾"; }
.comments-list { padding: 10px 14px 18px; }
.comment {
  border-bottom: 1px solid #e4e4e4;
  padding: 12px 0;
}
.comment:last-child { border-bottom: 0; }
.comment-meta {
  color: #595959;
  font-size: 14px;
  margin-bottom: 6px;
}
.comment-body { color: #424242; white-space: pre-wrap; }

/* Footer */
.site-footer {
  background: #55555e;
  padding: 20px;
  text-align: center;
  color: #fff;
  font-size: 14px;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #d3d3d3; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.tag-cloud a { font-size: 14px; }

.empty { color: #555; }

@media (max-width: 900px) {
  .site-content { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .content-area { order: 1; }
  .featured-top { grid-template-columns: 1fr; }
  .featured-post-container-1 img { float: none; width: 50px; max-width: 50px; padding: 0 0 10px; }
  .featured-row { grid-template-columns: 1fr; }
  .featured-post-container-2 img,
  .featured-post-container-3 img { display: none; }
  .featured-image { float: none; width: auto; max-width: 50px; margin: 0 0 16px; }
}

@media (max-width: 600px) {
  #masthead {
    background-size: 80% auto;
    background-position: center 0;
  }
  .inside-header { flex-direction: column; align-items: flex-start; }
  .menu-toggle { display: block; margin: 8px 0; }
  .main-menu { display: none; width: 100%; flex-direction: column; }
  #site-navigation.toggled .main-menu { display: flex; }
  .main-menu .sub-menu {
    position: static;
    box-shadow: none;
    display: block;
  }
  .nav-inner { flex-wrap: wrap; padding: 8px 12px; }
  .featured-post-container-1 h2 { font-size: 22px; }
  .featured-post-container-2 h2,
  .featured-post-container-3 h2 { font-size: 18px; }
  .entry-title { font-size: 1.4rem; }
}

@media (min-width: 400px) {
  .entry-content p { font-size: 1.3rem; }
}

/* Language switch (TSNJ /es/) */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  order: 2;
}
.main-menu { order: 1; }
.header-tools .lang-switch,
a.lang-switch {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0 !important;
  border: 2px solid #222;
  background: #fff;
  color: #222;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1 !important;
  text-decoration: none;
  box-sizing: border-box;
}
.lang-switch:hover,
.lang-switch:focus { color: #000; background: #f3f3f3; }

@media (max-width: 600px) {
  .nav-inner {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    margin: 0;
    font-size: 0;
    line-height: 0;
    color: transparent;
    border: 2px solid #222;
    background: #fff;
  }
  .menu-toggle::before {
    content: "";
    width: 20px;
    height: 2px;
    background: #222;
    box-shadow: 0 -6px 0 #222, 0 6px 0 #222;
  }
}

/* Post images stay 50px (TSNJ /es/) */
.site-content img,
.featured-posts-div img,
.featured-image img,
.entry-content img,
article img {
  width: 50px !important;
  max-width: 50px !important;
  height: auto !important;
}
.site-logo img {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
}
