/* Community entry points on the homepage only. */
.home-community > header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 88px;
  gap: 18px;
  box-shadow: 0 2px 12px #173c340a;
}
.home-community > header .brand { min-width: 220px; flex-shrink: 0; }
.home-community > header nav { min-width: 0; gap: 18px; }
.home-community > header nav a { white-space: nowrap; }
.home-community .community-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid #b6cf70;
  border-radius: 4px;
  background: var(--lime);
  color: #173c34;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  flex-shrink: 0;
}
.home-community .community-access:hover { background: #e3f3b2; border-color: #718d43; }
.home-community > header .language-switch { margin: 0; }
.home-community > header .language-switch button { min-width: 32px; min-height: 34px; padding: 8px; }
.home-community > header :focus-visible,
.home-community .community-hub :focus-visible { outline: 3px solid #295c40; outline-offset: 4px; }
.home-community .hero .actions { flex-wrap: wrap; }
.home-community .hero .actions .button { min-height: 54px; font-size: 14px; font-weight: 700; }
.home-community .hero .hero-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.home-community .hero-account-note {
  max-width: 36rem;
  margin: 15px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: #f0f4e8;
  text-shadow: 0 1px 6px #001b12;
}
.home-community .hero-bottom { margin-top: 45px; }
.home-community .community-hub {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding-top: 58px;
  padding-bottom: 58px;
  background: #f5f4ed;
  border-bottom: 1px solid var(--line);
}
.home-community .community-hub-copy,
.home-community .community-hub-options { min-width: 0; }
.home-community .community-hub-copy > .eyebrow { margin-bottom: 16px; color: #42644d; line-height: 1.65; }
.home-community .community-hub h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.13; }
.home-community .community-hub h2 em { color: #406547; }
.home-community .community-hub-intro { max-width: 34rem; margin: 22px 0 24px; color: #4c6254; font-size: 15px; }
.home-community .community-hub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.home-community .community-hub-actions .button { min-height: 50px; font-size: 14px; font-weight: 700; gap: 22px; }
.home-community .hub-account-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.home-community .community-hub-forum { margin: 20px 0 0; font-size: 13px; color: #4c6254; }
.home-community .community-hub-forum a { display: inline-block; padding: 10px 0; margin-left: 8px; color: #173c34; text-decoration: underline; text-underline-offset: 4px; }
.home-community .community-hub-options { border-top: 1px solid #bccbbb; }
.home-community .community-hub-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 17px;
  padding: 25px 8px;
  border-bottom: 1px solid #bccbbb;
  color: #173c34;
  transition: background-color .15s ease;
}
.home-community .community-hub-option:hover { background: #e9eedf; }
.home-community .community-hub-option > div { min-width: 0; }
.home-community .community-hub-number { align-self: start; padding-top: 3px; font: 20px/1.3 Georgia, serif; color: #627d65; }
.home-community .community-hub-option h3 { margin: 0 0 8px; font: 400 23px/1.2 Georgia, serif; letter-spacing: -.02em; }
.home-community .community-hub-option p { margin: 0; color: #4c6254; font-size: 13px; line-height: 1.65; }
.home-community .community-hub-arrow { font-size: 20px; }
.home-community .community-recent { border-bottom: 1px solid var(--line); }

@media (max-width: 1040px) {
  .home-community > header { height: 80px; gap: 14px; }
  .home-community > header .brand { min-width: 0; margin-right: auto; }
  .home-community > header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 16px 5%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    font-size: 14px;
  }
  .home-community > header nav.open { display: flex; }
  .home-community > header nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; }
  .home-community > header .menubtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    min-height: 44px;
    padding: 4px;
    border: 1px solid #b9c5b3;
    border-radius: 4px;
    background: transparent;
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
  }
}
@media (max-width: 800px) {
  .home-community .community-hub { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 44px; padding-bottom: 44px; }
  .home-community .community-hub-intro { max-width: 40rem; }
}
@media (max-width: 760px) {
  .home-community .hero { min-height: 600px; }
  .home-community .hero-inner { padding: 32px 6% 56px; }
  .home-community .hero h1 { font-size: clamp(34px, 7.7vw, 46px); margin-bottom: 20px; }
  .home-community .hero .eyebrow { margin-bottom: 18px; }
  .home-community .hero-copy { margin-bottom: 0; }
  .home-community .hero .actions { margin-top: 24px; gap: 12px; }
  .home-community .hero .actions .button { gap: 24px; max-width: 100%; }
  .home-community .hero-account-note { margin-top: 10px; font-size: 12px; }
  .home-community .hero-bottom { margin-top: 28px; }
}
@media (max-width: 600px) {
  .home-community > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    height: auto;
    padding: 10px 5%;
    gap: 8px;
  }
  .home-community > header .brand { grid-column: 1 / -1; margin: 0; gap: 8px; }
  .home-community > header .brand svg { width: 32px; height: 32px; }
  .home-community > header .brand > span { font-size: 12px; }
  .home-community > header .brand > span > span { font-size: 16px; }
  .home-community > header .community-access { grid-column: 1; min-width: 0; padding: 10px 12px; gap: 12px; min-height: 44px; font-size: 13px; }
  .home-community > header .language-switch { grid-column: 2; }
  .home-community > header .language-switch button { min-width: 30px; min-height: 34px; padding: 8px 6px; }
  .home-community > header .menubtn { grid-column: 3; }
  .home-community main > section[id] { scroll-margin-top: 30px; }
  .home-community .community-hub h2 { font-size: clamp(31px, 8vw, 40px); }
  .home-community .community-hub-actions { gap: 10px 20px; }
  .home-community .community-hub-actions .button { gap: 18px; max-width: 100%; }
  .home-community .community-hub-option { grid-template-columns: 26px minmax(0, 1fr) 16px; gap: 12px; padding: 22px 2px; }
  .home-community .community-hub-option h3 { font-size: 21px; }
  .home-community .community-hub-number { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-community .community-hub-option { transition: none; }
}

/* Foro restored to the always-visible primary header: desktop and mobile. */
.home-community .forum-access {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 46px; padding: 11px 16px;
  border: 1px solid #9eb09e; border-radius: 4px;
  background: #f5f4ed; color: #173c34; font-size: 14px; font-weight: 700;
  line-height: 1.35; white-space: nowrap; flex-shrink: 0;
}
.home-community .forum-access:hover { background: #e8eddf; border-color: #456c49; }
@media (max-width: 1250px) {
  .home-community > header { height: 80px; gap: 12px; }
  .home-community > header .brand { min-width: 0; margin-right: auto; }
  .home-community > header nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    padding: 16px 5%; background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 2px;
    max-height: calc(100vh - 110px); overflow-y: auto; font-size: 14px;
  }
  .home-community > header nav.open { display: flex; }
  .home-community > header nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; }
  .home-community > header .menubtn {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 44px; min-height: 44px; padding: 4px; border: 1px solid #b9c5b3;
    border-radius: 4px; background: transparent; color: var(--ink); font-size: 24px; line-height: 1;
  }
}
@media (max-width: 600px) {
  .home-community > header { grid-template-columns: minmax(0,1fr) auto auto auto; }
  .home-community > header .community-access { grid-column: 1; grid-row: 2; }
  .home-community > header .forum-access { grid-column: 2; grid-row: 2; padding: 10px 11px; min-height: 44px; font-size: 13px; }
  .home-community > header .language-switch { grid-column: 3; grid-row: 2; }
  .home-community > header .menubtn { grid-column: 4; grid-row: 2; }
}
@media (max-width: 355px) {
  .home-community > header { gap: 5px; padding-left: 3%; padding-right: 3%; }
  .home-community > header .community-access { padding: 9px 7px; gap: 4px; font-size: 12px; }
  .home-community > header .forum-access { padding: 9px 7px; gap: 3px; font-size: 12px; }
  .home-community > header .language-switch button { min-width: 25px; padding: 7px 4px; }
  .home-community > header .menubtn { width: 39px; }
}
