/* Stage 6 — current topics section */
.current-topics { padding-block: clamp(22px, 3vw, 34px); }
.current-topics .section-heading { align-items: center; gap: 20px; }
.current-topics__heading { flex-wrap: wrap; }
.current-topics .section-heading__title { align-items: center; }
.current-topics .section-heading__title h2 { margin: 0; }
.current-topics .section-heading__title p { margin: 4px 0 0; color: var(--fa-color-text-secondary); font-size: 12px; }
.current-topics__actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-left: auto; }
.current-topics__new { white-space: nowrap; }
.current-topics__grid { align-items: stretch; }
.current-topics .topic-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 15px; border: 1px solid var(--fa-color-border); background: var(--fa-color-background); }
.current-topics .topic-card--featured { border-color: var(--fa-color-brand); box-shadow: inset 0 0 0 1px var(--fa-color-brand), var(--fa-shadow-sm); }
.current-topics .topic-card--featured::before { content: ""; position: absolute; top: -1px; left: 16px; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--fa-color-brand); }
.current-topics .topic-card__meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.current-topics .topic-card__category { max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.current-topics .topic-card__time { display: inline-flex; align-items: center; gap: 5px; color: var(--fa-color-text-secondary); font-size: 10px; white-space: nowrap; }
.current-topics .topic-card__new { padding: 2px 5px; border-radius: 3px; background: var(--fa-color-brand-soft); color: #6d4b00; font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.current-topics .topic-card h3 { margin: 0 0 8px; font-size: 15px; line-height: 1.35; letter-spacing: -.025em; }
.current-topics .topic-card h3 a { color: var(--fa-color-text); text-decoration: none; }
.current-topics .topic-card h3 a:hover { color: #8a6200; }
.current-topics .topic-card__excerpt { flex: 1 0 auto; margin: 0 0 14px; color: var(--fa-color-text-secondary); font-size: 12px; line-height: 1.5; }
.current-topics .topic-card__footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--fa-color-border); color: var(--fa-color-text-secondary); font-size: 11px; }
.current-topics .topic-card__author { flex: 1 1 auto; overflow: hidden; color: var(--fa-color-text); font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.current-topics .topic-card__stat { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.current-topics .topic-card__stat span { font-size: 15px; }
.current-topics__empty { padding: clamp(20px, 3vw, 32px); text-align: center; background: var(--fa-color-background); }
.current-topics__empty h3 { margin: 0 0 8px; font-size: 20px; }
.current-topics__empty p { max-width: 550px; margin: 0 auto 16px; color: var(--fa-color-text-secondary); }
.current-topics__pagination { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.current-topics__pagination > span { color: var(--fa-color-text-secondary); font-size: 12px; }
@media (max-width: 900px) { .current-topics__actions { width: 100%; justify-content: space-between; } .current-topics .topic-card { padding: 13px; } }
@media (max-width: 560px) { .current-topics__actions { align-items: stretch; flex-direction: column; gap: 10px; } .current-topics__actions .text-link { align-self: flex-start; } .current-topics__new { align-self: stretch; } .current-topics .topic-card__footer { gap: 9px; } .current-topics__pagination { gap: 8px; } }

/* Stage 14: show current discussion cards side by side and keep them responsive. */
.current-topics .current-topics__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.current-topics .topic-card { min-width: 0; height: 100%; border-radius: 12px; }
.current-topics .topic-card h3 a { display: inline-block; }
@media (max-width: 900px) {
  .current-topics .current-topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .current-topics .current-topics__grid { grid-template-columns: minmax(0, 1fr); }
}


/* Stage 14.1: maximum four discussion cards per row on desktop. */
.current-topics .topic-grid.current-topics__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .current-topics .topic-grid.current-topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .current-topics .topic-grid.current-topics__grid { grid-template-columns: minmax(0, 1fr); } }

/* Stage 14.2 — final spacing, alignment and explicit link states. */
.current-topics {
  box-sizing: border-box;
  padding-block: clamp(28px, 3.2vw, 42px);
  overflow: visible;
}
.current-topics > .container { min-width: 0; }
.current-topics .current-topics__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin: 0 0 22px;
}
.current-topics .section-heading__title { min-width: 0; }
.current-topics__actions { flex: 0 1 auto; min-width: 0; gap: 14px; }
.current-topics__actions .text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7047a3;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.current-topics__actions .text-link:hover,
.current-topics__actions .text-link:focus-visible { color: #4d287d; }
.current-topics .current-topics__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.current-topics .topic-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
  min-height: 174px;
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.current-topics .topic-card__meta { align-items: flex-start; margin-bottom: 11px; }
.current-topics .topic-card__category { max-width: 100%; }
.current-topics .topic-card__time { white-space: normal; text-align: right; }
.current-topics .topic-card h3 { margin: 0 0 8px; font-size: 15px; line-height: 1.4; }
.current-topics .topic-card h3 a,
.current-topics .topic-card h3 a:visited {
  color: #171717;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.current-topics .topic-card h3 a:hover,
.current-topics .topic-card h3 a:focus-visible {
  color: #805900;
  text-decoration: underline;
}
.current-topics .topic-card h3 a:focus-visible,
.current-topics .current-topics__pagination a:focus-visible,
.current-topics__actions a:focus-visible {
  outline: 3px solid #e4a900;
  outline-offset: 3px;
}
.current-topics .topic-card__excerpt { flex: 1 0 auto; margin: 0 0 16px; }
.current-topics .topic-card__footer { margin-top: auto; }
.current-topics .current-topics__pagination {
  position: static;
  clear: both;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 22px 0 0;
  padding: 4px 0 0;
  width: 100%;
  box-sizing: border-box;
}
.current-topics__pagination a,
.current-topics__pagination a:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid #e3e0d8;
  border-radius: 9px;
  background: #fff;
  color: #171717;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}
.current-topics__pagination a:hover,
.current-topics__pagination a:focus-visible {
  border-color: #e2ad00;
  background: #fff9e8;
  color: #171717;
}
.current-topics__pagination > span { padding: 8px 0; }
@media (max-width: 900px) {
  .current-topics .current-topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .current-topics .current-topics__heading { align-items: flex-start; }
  .current-topics__actions { justify-content: flex-end; }
}
@media (max-width: 600px) {
  .current-topics { padding-block: 24px; }
  .current-topics .current-topics__heading { gap: 14px; margin-bottom: 16px; }
  .current-topics__actions { width: 100%; align-items: flex-start; flex-direction: column; gap: 12px; margin-left: 0; }
  .current-topics .current-topics__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .current-topics .topic-card { min-height: 0; padding: 14px; }
  .current-topics .topic-card__time { text-align: left; }
  .current-topics .current-topics__pagination { gap: 8px; margin-top: 18px; }
}


/* Final link palette for the entire homepage discussion section. */
.current-topics a,
.current-topics a:visited {
  color: #68419a;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}
.current-topics a:hover,
.current-topics a:focus-visible {
  color: #47256f;
}
.current-topics .topic-card h3 a,
.current-topics .topic-card h3 a:visited {
  color: #171717;
  text-decoration: none;
}
.current-topics .topic-card h3 a:hover,
.current-topics .topic-card h3 a:focus-visible {
  color: #805900;
  text-decoration: underline;
}
.current-topics .current-topics__new,
.current-topics .current-topics__new:visited,
.current-topics .current-topics__pagination a,
.current-topics .current-topics__pagination a:visited {
  color: #171717;
}
.current-topics.is-loading { opacity: .65; pointer-events: none; transition: opacity .15s ease; }

/* Etapa 23 — dynamic current-discussion block */
.current-topics.section--highlight {
  background: var(--fa-color-brand-soft, #fff7df);
  border-radius: 16px;
  padding: clamp(20px, 2.4vw, 30px);
}
.current-topics .current-topics__heading { margin-bottom: 18px; }
.current-topics .section-heading__title { gap: 12px; }
.current-topics .section-heading__title p.current-topics__live-count {
  display: flex; align-items: center; gap: 8px; margin: 5px 0 0;
  color: var(--fa-color-text-secondary, #686868); font-size: 12px;
}
.current-topics__live-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #df3434; }
.current-topics .topic-card { background: #fff; border-color: rgba(28, 28, 28, .06); box-shadow: 0 2px 9px rgba(20, 20, 20, .025); }
.current-topics .topic-card--featured { border-color: var(--fa-color-brand, #f3b900); box-shadow: 0 0 0 1px var(--fa-color-brand, #f3b900), 0 5px 16px rgba(32, 25, 0, .06); }
.current-topics .topic-card__category { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; padding: 4px 7px; border-radius: 4px; background: #f1eee7; color: #4c4639; font-size: 9px; font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: .025em; }
.current-topics .topic-card--profession-1 .topic-card__category { background: #e8f3ff; color: #235a86; }
.current-topics .topic-card--profession-2 .topic-card__category { background: #e8f4e8; color: #32663b; }
.current-topics .topic-card--profession-3 .topic-card__category { background: #f9e8df; color: #85472b; }
.current-topics .topic-card--profession-4 .topic-card__category { background: #f1e9fa; color: #67428a; }
.current-topics .topic-card__author { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.current-topics .topic-card__author .avatar { display: block; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.current-topics .topic-card__author > span { overflow: hidden; text-overflow: ellipsis; }
.current-topics .topic-card__footer { gap: 10px; }
.current-topics .topic-card__stat { font-variant-numeric: tabular-nums; }
.current-topics .topic-card__new { background: #ffe6e1; color: #a12e1f; }
.current-topics__actions .text-link, .current-topics__actions .text-link:visited { color: var(--fa-color-text, #171717); text-decoration: none; }
.current-topics__actions .text-link:hover { color: #8a6200; text-decoration: underline; }
@media (max-width: 600px) {
  .current-topics.section--highlight { border-radius: 12px; padding: 18px 14px; }
  .current-topics .topic-card__meta { align-items: center; }
  .current-topics .topic-card__time { text-align: right; }
}
