.community {
  background: var(--cream);
}
.community-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.community-tabs button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--heading);
  font: 700 14px var(--sans);
  cursor: pointer;
}
.community-tabs button[aria-pressed="true"] {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.community-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  min-width: 0;
}
.community-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.community-card-body {
  padding: 24px;
}
.community-card h3 {
  font: 700 23px/1.2 var(--serif);
  color: var(--heading);
  margin: 10px 0 14px;
  overflow-wrap: anywhere;
}
.community-card p {
  white-space: pre-wrap;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.community-card time,
.community-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-600);
}
.community-video {
  aspect-ratio: 16/9;
  width: 100%;
  border: 0;
  background: #10161e;
  display: block;
}
.community-instagram {
  height: 480px;
  aspect-ratio: auto;
  background: var(--white);
}
.community-answer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.community-empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  grid-column: 1/-1;
}
.community-more {
  margin: 24px auto 0;
  display: block;
}
.community-question {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.community-question h3 {
  font: 700 30px/1.15 var(--serif);
  color: var(--heading);
  margin-bottom: 16px;
}
.community-question p {
  color: var(--muted);
}
.community-status {
  min-height: 24px;
  color: var(--muted);
  margin: 12px 0;
  font-size: 14px;
}
.community-status[data-error="true"] {
  color: var(--coral);
}
.community-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.admin-link {
  display: block;
  margin-top: 8px;
  font-size: 12px;
}
.article-dialog {
  width: min(720px, calc(100% - 24px));
  max-height: 85dvh;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--white);
  margin: auto;
  overflow: auto;
}
.article-dialog::backdrop {
  background: rgba(10, 20, 35, 0.65);
}
.article-dialog h2 {
  margin: 22px 0;
  font-size: 32px;
}
.article-dialog p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.article-dialog img {
  max-height: 350px;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
  margin: 18px 0;
}
.article-close {
  float: right;
  min-height: 44px;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--heading);
  cursor: pointer;
}
@media (max-width: 800px) {
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .community-question {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .community-grid {
    grid-template-columns: 1fr;
  }
  .community-question form {
    padding: 24px;
  }
  .community {
    padding: 64px 0;
  }
}

.community-intro {
  color: var(--muted);
  margin: 16px 0 24px;
}
.community-question label {
  display: block;
  font-weight: 700;
  margin: 14px 0 6px;
}
.community-question p + p {
  margin-top: 16px;
}

/* Respetar hidden aunque el componente tenga display explícito. */
[hidden] {
  display: none !important;
}
.nav-blog-menu {
  position: relative;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none !important;
}
.nav-blog-menu summary {
  padding: 10px 14px;
  font: 600 14.5px/1.6 var(--sans);
  color: var(--muted);
  gap: 10px;
}
.nav-blog-menu summary::after {
  width: 7px;
  height: 7px;
  border-width: 2px;
}
.nav-blog-options {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  list-style: none;
  box-shadow: var(--shadow-md);
}
.nav-blog-options a {
  white-space: normal;
}
@media (max-width: 1100px) {
  .nav-blog-menu summary {
    padding: 14px 12px;
    font-size: 16px;
  }
  .nav-blog-options {
    position: static;
    min-width: 0;
    padding: 0 0 0 14px;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-links.open {
    max-height: calc(100dvh - 76px);
    overflow: auto;
  }
}

.nav .brand {
  flex-shrink: 0;
}
@media (min-width: 1101px) {
  .nav-links > li > a,
  .nav-blog-menu summary {
    padding-inline: 10px;
    font-size: 14px;
  }
}
