:root {
  --am-topic-surface: rgba(255, 255, 255, 0.98);
  --am-topic-surface-strong: #ffffff;
  --am-topic-surface-soft: #eef2f3;
  --am-topic-border: rgba(17, 17, 17, 0.1);
  --am-topic-border-strong: rgba(17, 17, 17, 0.16);
  --am-topic-muted: rgba(17, 17, 17, 0.64);
  --am-topic-soft: rgba(17, 17, 17, 0.045);
  --am-topic-shadow: 0 22px 58px rgba(17, 17, 17, 0.08);
  --am-topic-shadow-soft: 0 14px 34px rgba(17, 17, 17, 0.06);
}

.am-single-topic-header {
  padding: 34px 0 24px;
}

.am-single-topic-hero__panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(242, 246, 247, 0.94) 100%);
  border: 1px solid var(--am-topic-border);
  border-radius: 28px;
  box-shadow: var(--am-topic-shadow);
  padding: 28px;
}

.am-single-topic-hero__breadcrumb {
  margin-bottom: 12px;
}

.am-single-topic-hero__breadcrumb .bbp-breadcrumb,
.am-single-topic-hero__breadcrumb .bbp-breadcrumb p {
  margin: 0;
}

.am-single-topic-hero__breadcrumb .bbp-breadcrumb {
  color: var(--am-topic-muted);
  font-size: 13px;
}

.am-single-topic-hero__topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.am-single-topic-hero__eyebrow,
.am-topic-section__eyebrow,
.am-reply-form__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  color: var(--am-primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.am-single-topic-hero__eyebrow::before,
.am-topic-section__eyebrow::before,
.am-reply-form__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.am-single-topic-hero__states {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.am-single-topic-hero__state {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(17, 17, 17, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.am-single-topic-hero__title {
  margin: 0;
  font-size: clamp(24px, 3.8vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 950;
}

.am-single-topic-hero__author {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.am-single-topic-hero__avatar {
  line-height: 0;
}

.am-single-topic-hero__avatar img,
.am-topic-lead__avatar img,
.am-topic-reply-card__avatar img {
  display: block;
  border-radius: 999px;
}

.am-single-topic-hero__authorname,
.am-topic-lead__authorname,
.am-topic-reply-card__authorname {
  color: var(--am-text);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.am-single-topic-hero__authorline,
.am-topic-lead__authorline,
.am-topic-reply-card__authorline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 5px;
  color: var(--am-topic-muted);
  font-size: 13px;
}

.am-single-topic-hero__authorline a,
.am-topic-lead__authorline a,
.am-topic-reply-card__authorline a {
  color: inherit;
  text-decoration: none;
}

.am-single-topic-hero__authorline a:hover,
.am-topic-lead__authorline a:hover,
.am-topic-reply-card__authorline a:hover {
  text-decoration: underline;
}

.am-single-topic-hero__dot,
.am-topic-lead__dot,
.am-topic-reply-card__dot {
  opacity: 0.55;
}

.am-single-topic-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  color: rgba(17, 17, 17, 0.74);
  font-size: 14px;
  font-weight: 700;
}

.am-single-topic-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.am-single-topic-hero__replycta,
.am-single-topic-hero__tool a,
.am-single-topic-hero__tool > span {
  min-height: 46px;
  padding-inline: 18px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
}

.am-single-topic-hero__tool,
.am-single-topic-hero__tool > span {
  display: inline-flex;
}

.am-single-topic-hero__tool a,
.am-single-topic-hero__tool .subscription-toggle,
.am-single-topic-hero__tool .favorite-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--am-text);
  font-weight: 800;
  box-shadow: none;
}

.am-single-topic-hero__tool a:hover,
.am-single-topic-hero__tool .subscription-toggle:hover,
.am-single-topic-hero__tool .favorite-toggle:hover {
  border-color: var(--am-topic-border-strong);
  box-shadow: var(--am-shadow-sm);
  text-decoration: none;
}

.am-single-topic-hero__replycta {
  background: var(--am-primary) !important;
  border-color: var(--am-primary) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.am-single-topic-hero__replycta:hover {
  background: #ffffff !important;
  border-color: var(--am-primary) !important;
  color: var(--am-primary) !important;
  text-decoration: none;
  box-shadow: var(--am-shadow-sm) !important;
}

.am-single-topic-page .fp-page {
  gap: 28px;
}

.am-single-topic-page__main {
  min-width: 0;
}

.am-topic-stream {
  display: grid;
  gap: 28px;
}

.am-topic-lead {
  background: var(--am-topic-surface);
  border: 1px solid var(--am-topic-border);
  border-radius: 24px;
  box-shadow: var(--am-topic-shadow-soft);
  overflow: hidden;
}

.am-topic-lead__inner,
.am-topic-reply-card__inner {
  padding: 24px;
}

.am-topic-lead__header,
.am-topic-reply-card__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
}

.am-topic-lead__avatar,
.am-topic-reply-card__avatar {
  line-height: 0;
}

.am-topic-lead__title {
  margin: 18px 0 0;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 950;
}

.am-topic-reply-card__title {
  display: none;
}

.am-topic-lead__permalink,
.am-topic-reply-card__permalink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(17, 17, 17, 0.76);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.am-topic-lead__permalink:hover,
.am-topic-reply-card__permalink:hover {
  text-decoration: none;
  border-color: rgba(17, 17, 17, 0.16);
  box-shadow: var(--am-shadow-sm);
}

.am-topic-lead__content,
.am-topic-reply-card__content {
  margin-top: 18px;
  color: rgba(17, 17, 17, 0.86);
  font-size: 15px;
  line-height: 1.74;
}

.am-topic-lead__content > *:first-child,
.am-topic-reply-card__content > *:first-child {
  margin-top: 0;
}

.am-topic-lead__content > *:last-child,
.am-topic-reply-card__content > *:last-child {
  margin-bottom: 0;
}

.am-topic-lead__content img,
.am-topic-reply-card__content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.am-topic-lead__footer,
.am-topic-reply-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(17, 17, 17, 0.12);
}

.am-topic-lead__footerleft,
.am-topic-reply-card__footerleft {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.am-topic-lead__footermeta,
.am-topic-reply-card__footermeta {
  color: var(--am-topic-muted);
  font-size: 13px;
  font-weight: 700;
}

.am-topic-adminlinks ul,
.am-reply-adminlinks ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.am-topic-adminlinks a,
.am-reply-adminlinks a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(17, 17, 17, 0.74);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.am-topic-adminlinks a:hover,
.am-reply-adminlinks a:hover {
  border-color: rgba(17, 17, 17, 0.16);
  box-shadow: var(--am-shadow-sm);
  text-decoration: none;
}

.am-topic-section__head {
  margin-bottom: 16px;
}

.am-topic-section__title {
  margin: 12px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 950;
}

.am-topic-section__description {
  margin: 8px 0 0;
  color: var(--am-topic-muted);
  font-size: 15px;
  line-height: 1.62;
}

.am-topic-replies__list {
  display: grid;
  gap: 16px;
}

.am-topic-reply-card {
  background: var(--am-topic-surface);
  border: 1px solid var(--am-topic-border);
  border-radius: 22px;
  box-shadow: var(--am-topic-shadow-soft);
}

.am-topic-reply-card__authorwrap,
.am-topic-lead__authorwrap {
  min-width: 0;
}

.am-topic-reply-card__permalink {
  margin-left: auto;
}

.am-reply-form {
  margin-top: 8px;
}

.am-reply-form__shell {
  background: var(--am-topic-surface);
  border: 1px solid var(--am-topic-border);
  border-radius: 24px;
  box-shadow: var(--am-topic-shadow-soft);
  padding: 24px;
}

.am-reply-form__head {
  margin-bottom: 18px;
}

.am-reply-form__head .am-reply-form__eyebrow {
  display: none;
}

.am-reply-form__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 950;
}

.am-reply-form__description {
  margin: 8px 0 0;
  color: var(--am-topic-muted);
  font-size: 15px;
  line-height: 1.62;
}

.am-reply-form .fp-formcontainer,
.am-reply-form .fp-formcontainer fieldset,
.am-reply-form .fp-form {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.am-reply-form .fp-form legend {
  margin: 0 0 14px;
  color: var(--am-text);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.am-reply-form .wp-editor-wrap,
.am-reply-form textarea,
.am-reply-form input[type="text"],
.am-reply-form input[type="email"] {
  width: 100%;
}

.am-reply-form .wp-editor-container,
.am-reply-form textarea,
.am-reply-form input[type="text"],
.am-reply-form input[type="email"] {
  border-radius: 16px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: #ffffff;
}

.am-reply-form .bbp-the-content-wrapper {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: #ffffff;
}

.am-reply-form .wp-editor-container textarea {
  border: 0;
  border-radius: 0;
}

.am-reply-form .mce-toolbar-grp,
.am-reply-form .quicktags-toolbar,
.am-reply-form .wp-editor-tabs {
  background: #ffffff;
}

.am-reply-form .fp-form__row {
  margin-top: 16px;
}

.am-reply-form .fp-form__row label {
  display: block;
  margin: 0 0 8px;
  color: var(--am-text);
  font-weight: 800;
}

.am-reply-form .fp-form__row--checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.am-reply-form .fp-form__row--checkbox input {
  margin-top: 4px;
}

.am-reply-form .fp-form__submit {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.am-reply-form .fp-form__submit .button,
.am-reply-form .fp-form__submit button.button {
  min-width: 190px;
}

.am-reply-form .bbp-cancel-reply-to-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: rgba(17, 17, 17, 0.74);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.am-reply-form .bbp-cancel-reply-to-link:hover {
  text-decoration: none;
  border-color: rgba(17, 17, 17, 0.16);
}

.am-topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--am-topic-muted);
  font-size: 13px;
  font-weight: 700;
}

.am-topic-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.90);
  color: var(--am-text);
  text-decoration: none;
}

.am-topic-tags a:hover {
  text-decoration: none;
  border-color: rgba(17, 17, 17, 0.16);
}

@media (max-width: 900px) {
  .am-topic-lead__header,
  .am-topic-reply-card__header {
    grid-template-columns: auto 1fr;
  }

  .am-topic-lead__permalink,
  .am-topic-reply-card__permalink {
    grid-column: 2;
    justify-self: start;
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .am-single-topic-hero__panel,
  .am-topic-lead__inner,
  .am-topic-reply-card__inner,
  .am-reply-form__shell {
    padding: 18px;
    border-radius: 20px;
  }

  .am-single-topic-hero__title {
    font-size: clamp(24px, 8vw, 34px);
  }

  .am-single-topic-hero__author {
    grid-template-columns: 1fr;
  }

  .am-single-topic-hero__actions,
  .am-topic-lead__footer,
  .am-topic-reply-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ===== V10 topic page fixes ===== */
.am-single-topic-hero__authorname a,
.am-topic-lead__authorname a,
.am-topic-reply-card__authorname a {
  color: inherit !important;
  text-decoration: none !important;
}

.am-single-topic-hero__authorname a:hover,
.am-topic-lead__authorname a:hover,
.am-topic-reply-card__authorname a:hover {
  text-decoration: none !important;
  opacity: .82;
}

.am-single-topic-hero__tool .subscription-toggle,
.am-single-topic-hero__tool .favorite-toggle,
.am-single-topic-hero__tool #subscription-toggle,
.am-single-topic-hero__tool #favorite-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px !important;
  border-radius: var(--am-radius-pill);
  border: 1px solid var(--am-border-strong) !important;
  background: #ffffff !important;
  background-image: none !important;
  color: var(--am-primary) !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.am-single-topic-hero__tool .subscription-toggle:hover,
.am-single-topic-hero__tool .favorite-toggle:hover,
.am-single-topic-hero__tool #subscription-toggle:hover,
.am-single-topic-hero__tool #favorite-toggle:hover {
  background: rgba(17, 17, 17, 0.04) !important;
  border-color: var(--am-primary) !important;
  color: var(--am-primary) !important;
}

.am-single-topic-hero__tool .subscription-toggle::before,
.am-single-topic-hero__tool .favorite-toggle::before,
.am-single-topic-hero__tool a::before {
  content: none !important;
}


/* ===== V10.3 compact topic actions ===== */
.am-single-topic-hero__tool,
.am-single-topic-hero__tool > span {
  min-width: 0;
}

.am-single-topic-hero__tool .subscription-toggle,
.am-single-topic-hero__tool .favorite-toggle {
  text-align: center;
  white-space: nowrap;
}


/* ===== V10.4 icon-only topic tools ===== */
:root {
  --am-icon-bookmark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h12a2 2 0 0 1 2 2v18l-8-4-8 4V4a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
  --am-icon-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 21.35 10.55 20C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z'/%3E%3C/svg%3E");
}

.am-single-topic-hero__tool .subscription-toggle,
.am-single-topic-hero__tool .favorite-toggle,
.am-single-topic-hero__tool #subscription-toggle,
.am-single-topic-hero__tool #favorite-toggle {
  position: relative;
  width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  overflow: hidden;
  text-indent: -9999px;
  white-space: nowrap;
  color: var(--am-primary) !important;
}

.am-single-topic-hero__tool .subscription-toggle::after,
.am-single-topic-hero__tool .favorite-toggle::after,
.am-single-topic-hero__tool #subscription-toggle::after,
.am-single-topic-hero__tool #favorite-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  pointer-events: none;
}

.am-single-topic-hero__tool .subscription-toggle::after,
.am-single-topic-hero__tool #subscription-toggle::after {
  -webkit-mask: var(--am-icon-bookmark) center / contain no-repeat;
  mask: var(--am-icon-bookmark) center / contain no-repeat;
}

.am-single-topic-hero__tool .favorite-toggle::after,
.am-single-topic-hero__tool #favorite-toggle::after {
  -webkit-mask: var(--am-icon-heart) center / contain no-repeat;
  mask: var(--am-icon-heart) center / contain no-repeat;
}

.am-single-topic-hero__tool .is-subscribed .subscription-toggle,
.am-single-topic-hero__tool .is-favorite .favorite-toggle,
.am-single-topic-hero__tool .subscription-toggle.is-subscribed,
.am-single-topic-hero__tool .favorite-toggle.is-favorite {
  background: var(--am-primary) !important;
  border-color: var(--am-primary) !important;
  color: #ffffff !important;
}


/* ===== V10.8 custom engagement buttons ===== */
.am-engagement-toggle {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--am-border-strong);
  background: #ffffff;
  color: var(--am-primary);
  text-decoration: none;
  box-shadow: none;
  overflow: hidden;
}

.am-engagement-toggle:hover {
  background: rgba(17,17,17,.04);
  color: var(--am-primary);
  border-color: var(--am-primary);
  text-decoration: none;
}

.am-engagement-toggle.is-active {
  background: var(--am-primary) !important;
  border-color: var(--am-primary) !important;
  color: #ffffff !important;
}

.am-engagement-toggle.is-loading {
  opacity: .6;
  pointer-events: none;
}

.am-engagement-toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  pointer-events: none;
}

.am-engagement-toggle--subscription::after {
  -webkit-mask: var(--am-icon-bookmark) center / contain no-repeat;
  mask: var(--am-icon-bookmark) center / contain no-repeat;
}

.am-engagement-toggle--favorite::after {
  -webkit-mask: var(--am-icon-heart) center / contain no-repeat;
  mask: var(--am-icon-heart) center / contain no-repeat;
}


/* ===== V10.11 remove favorites/subscriptions from topic header ===== */
.am-single-topic-hero__tool,
.am-single-topic-hero__tool--subscription,
.am-single-topic-hero__tool--favorite {
  display: none !important;
}


/* ===== V10.23 pregunta unificada + leer más ===== */
.am-single-topic-hero__content {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.am-single-topic-hero__contentbody,
.am-topic-reply-card__contentbody {
  color: rgba(17, 17, 17, 0.86);
  font-size: 16px;
  line-height: 1.72;
}

.am-single-topic-hero__contentbody > *:first-child,
.am-topic-reply-card__contentbody > *:first-child {
  margin-top: 0;
}

.am-single-topic-hero__contentbody > *:last-child,
.am-topic-reply-card__contentbody > *:last-child {
  margin-bottom: 0;
}

.am-topic-readmore-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.am-single-topic-hero__content.is-collapsible,
.am-topic-reply-card__content.is-collapsible {
  position: relative;
}

.am-single-topic-hero__content.is-collapsible .am-single-topic-hero__contentbody,
.am-topic-reply-card__content.is-collapsible .am-topic-reply-card__contentbody {
  max-height: 230px;
  overflow: hidden;
  position: relative;
}

.am-single-topic-hero__content.is-collapsible .am-single-topic-hero__contentbody::after,
.am-topic-reply-card__content.is-collapsible .am-topic-reply-card__contentbody::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.98));
  pointer-events: none;
}

.am-single-topic-hero__panel .am-single-topic-hero__content.is-collapsible .am-single-topic-hero__contentbody::after {
  background: linear-gradient(to bottom, rgba(246,249,250,0), rgba(246,249,250,.98));
}

.am-topic-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--am-text);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.am-topic-readmore:hover {
  opacity: .78;
}

.am-topic-readmore__less {
  display: none;
}

.am-topic-readmore-toggle:checked ~ .am-single-topic-hero__contentbody,
.am-topic-readmore-toggle:checked ~ .am-topic-reply-card__contentbody {
  max-height: none !important;
  overflow: visible !important;
}

.am-topic-readmore-toggle:checked ~ .am-single-topic-hero__contentbody::after,
.am-topic-readmore-toggle:checked ~ .am-topic-reply-card__contentbody::after {
  display: none;
}

.am-topic-readmore-toggle:checked ~ .am-topic-readmore .am-topic-readmore__more {
  display: none;
}

.am-topic-readmore-toggle:checked ~ .am-topic-readmore .am-topic-readmore__less {
  display: inline-flex;
}

.am-single-topic-hero__adminlinks {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(17,17,17,.12);
}

@media (max-width: 760px) {
  .am-single-topic-hero__panel {
    padding: 22px;
  }

  .am-single-topic-hero__content {
    margin-top: 20px;
    padding-top: 18px;
  }

  .am-single-topic-hero__contentbody,
  .am-topic-reply-card__contentbody {
    font-size: 16px;
    line-height: 1.68;
  }

  .am-single-topic-hero__content.is-collapsible .am-single-topic-hero__contentbody,
  .am-topic-reply-card__content.is-collapsible .am-topic-reply-card__contentbody {
    max-height: 190px;
  }

  .am-topic-readmore {
    font-size: 15px;
  }
}


/* ===== V10.24 compactar pregunta y respuestas ===== */
.am-single-topic-header {
  padding: 20px 0 14px;
}

.am-single-topic-page .fp-page {
  gap: 18px;
}

.am-topic-stream {
  gap: 16px;
}

.am-single-topic-hero__panel,
.am-topic-reply-card__inner,
.am-reply-form__shell {
  border-radius: 20px;
}

.am-single-topic-hero__panel {
  padding: 22px;
}

.am-single-topic-hero__breadcrumb {
  margin-bottom: 8px;
}

.am-single-topic-hero__breadcrumb .bbp-breadcrumb {
  font-size: 12px;
  line-height: 1.35;
}

.am-single-topic-hero__title {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.am-single-topic-hero__author {
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.am-single-topic-hero__avatar img {
  width: 56px;
  height: 56px;
}

.am-single-topic-hero__authorname,
.am-topic-reply-card__authorname {
  font-size: 16px;
  line-height: 1.15;
}

.am-single-topic-hero__authorline,
.am-topic-reply-card__authorline {
  gap: 6px;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
}

.am-single-topic-hero__meta {
  margin-top: 10px;
  gap: 8px;
  font-size: 12px;
}

.am-single-topic-hero__actions {
  margin-top: 14px;
  gap: 10px;
}

.am-single-topic-hero__replycta {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 14px;
}

.am-single-topic-hero__content {
  margin-top: 14px;
  padding-top: 14px;
}

.am-single-topic-hero__contentbody,
.am-topic-reply-card__contentbody {
  font-size: 15px;
  line-height: 1.6;
}

.am-single-topic-hero__contentbody p,
.am-topic-reply-card__contentbody p {
  margin: 0 0 12px;
}

.am-topic-readmore {
  margin-top: 8px;
  font-size: 14px;
}

.am-topic-replies__list {
  gap: 12px;
}

.am-topic-reply-card__inner {
  padding: 18px;
}

.am-topic-reply-card__header {
  gap: 10px;
}

.am-topic-reply-card__avatar img {
  width: 54px;
  height: 54px;
}

.am-topic-reply-card__permalink {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.am-topic-reply-card__content {
  margin-top: 12px;
}

.am-topic-reply-card__footer {
  margin-top: 12px;
  padding-top: 12px;
}

@media (max-width: 760px) {
  .am-single-topic-header {
    padding: 12px 0 10px;
  }

  .am-single-topic-page .fp-page {
    gap: 14px;
  }

  .am-single-topic-hero__panel,
  .am-topic-reply-card__inner,
  .am-reply-form__shell {
    padding: 14px;
    border-radius: 16px;
  }

  .am-single-topic-hero__breadcrumb {
    margin-bottom: 6px;
  }

  .am-single-topic-hero__breadcrumb .bbp-breadcrumb {
    font-size: 11px;
  }

  .am-single-topic-hero__title {
    font-size: clamp(18px, 6.6vw, 28px);
    line-height: 1.1;
    letter-spacing: -0.028em;
  }

  .am-single-topic-hero__author {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 9px;
    margin-top: 10px;
  }

  .am-single-topic-hero__avatar img {
    width: 44px;
    height: 44px;
  }

  .am-single-topic-hero__authorname,
  .am-topic-reply-card__authorname {
    font-size: 15px;
  }

  .am-single-topic-hero__authorline,
  .am-topic-reply-card__authorline {
    margin-top: 2px;
    font-size: 11px;
    gap: 5px;
  }

  .am-single-topic-hero__meta {
    margin-top: 8px;
    font-size: 11px;
    gap: 6px;
  }

  .am-single-topic-hero__actions {
    margin-top: 10px;
    gap: 8px;
  }

  .am-single-topic-hero__replycta {
    min-height: 38px;
    padding-inline: 14px;
    border-radius: 10px;
    font-size: 14px;
  }

  .am-single-topic-hero__content {
    margin-top: 10px;
    padding-top: 10px;
  }

  .am-single-topic-hero__contentbody,
  .am-topic-reply-card__contentbody {
    font-size: 14px;
    line-height: 1.52;
  }

  .am-single-topic-hero__contentbody p,
  .am-topic-reply-card__contentbody p {
    margin: 0 0 10px;
  }

  .am-single-topic-hero__content.is-collapsible .am-single-topic-hero__contentbody,
  .am-topic-reply-card__content.is-collapsible .am-topic-reply-card__contentbody {
    max-height: 150px;
  }

  .am-single-topic-hero__content.is-collapsible .am-single-topic-hero__contentbody::after,
  .am-topic-reply-card__content.is-collapsible .am-topic-reply-card__contentbody::after {
    height: 46px;
  }

  .am-topic-readmore {
    margin-top: 6px;
    font-size: 13px;
  }

  .am-topic-reply-card__header {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
  }

  .am-topic-reply-card__avatar img {
    width: 44px;
    height: 44px;
  }

  .am-topic-reply-card__permalink {
    display: none;
  }

  .am-topic-reply-card__content {
    margin-top: 10px;
  }

  .am-topic-reply-card__footer {
    margin-top: 10px;
    padding-top: 10px;
  }

  .am-reply-form__title,
  .am-topic-section__title {
    font-size: clamp(20px, 6vw, 28px);
  }

  .am-reply-form__description,
  .am-topic-section__description {
    font-size: 14px;
    line-height: 1.5;
  }
}


/* ===== V10.26 descripción de pregunta claramente más fuerte ===== */
.am-single-topic-hero .am-single-topic-hero__contentbody,
.am-single-topic-hero .am-single-topic-hero__contentbody p,
.am-single-topic-hero .am-single-topic-hero__contentbody li,
.am-single-topic-hero .am-single-topic-hero__contentbody span {
  color: #20222e !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  text-rendering: optimizeLegibility;
}

.am-single-topic-hero .am-single-topic-hero__contentbody strong,
.am-single-topic-hero .am-single-topic-hero__contentbody b {
  font-weight: 800 !important;
}

@media (max-width: 760px) {
  .am-single-topic-hero .am-single-topic-hero__contentbody,
  .am-single-topic-hero .am-single-topic-hero__contentbody p,
  .am-single-topic-hero .am-single-topic-hero__contentbody li,
  .am-single-topic-hero .am-single-topic-hero__contentbody span {
    color: #1f2230 !important;
    font-weight: 600 !important;
    letter-spacing: -0.004em;
  }
}


/* ===== V10.27 compactar cabecera de la pregunta ===== */
.am-single-topic-hero__title {
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.06;
  letter-spacing: -0.032em;
}

.am-single-topic-hero__author {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  margin-top: 9px;
}

.am-single-topic-hero__avatar img {
  width: 48px;
  height: 48px;
}

.am-single-topic-hero__authorname {
  font-size: 15px;
  line-height: 1.08;
}

.am-single-topic-hero__authorline {
  gap: 5px;
  margin-top: 1px;
  font-size: 11px;
  line-height: 1.25;
}

.am-single-topic-hero__meta {
  margin-top: 8px;
  gap: 6px;
  font-size: 11px;
  line-height: 1.25;
}

@media (max-width: 760px) {
  .am-single-topic-hero__title {
    font-size: clamp(17px, 5.6vw, 23px);
    line-height: 1.08;
    letter-spacing: -0.022em;
  }

  .am-single-topic-hero__author {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    margin-top: 8px;
    align-items: center;
  }

  .am-single-topic-hero__avatar img {
    width: 36px;
    height: 36px;
  }

  .am-single-topic-hero__authorname {
    font-size: 14px;
    line-height: 1.05;
    font-weight: 800;
  }

  .am-single-topic-hero__authorline {
    gap: 4px;
    margin-top: 1px;
    font-size: 10px;
    line-height: 1.2;
  }

  .am-single-topic-hero__meta {
    margin-top: 6px;
    gap: 5px;
    font-size: 10px;
    line-height: 1.2;
  }
}


/* ===== V10.29 compactar respuestas + tono distinto ===== */
.am-topic-replies__list {
  gap: 10px;
}

.am-topic-reply-card__inner {
  padding: 16px 18px;
  border-radius: 18px;
}

.am-topic-reply-card__header {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.am-topic-reply-card__avatar img {
  width: 44px;
  height: 44px;
}

.am-topic-reply-card__authorname {
  font-size: 14px;
  line-height: 1.08;
}

.am-topic-reply-card__authorline {
  gap: 5px;
  margin-top: 1px;
  font-size: 10px;
  line-height: 1.22;
}

.am-topic-reply-card__content {
  margin-top: 9px;
}

.am-topic-reply-card__contentbody,
.am-topic-reply-card__contentbody p,
.am-topic-reply-card__contentbody li,
.am-topic-reply-card__contentbody span {
  color: #50566b;
  font-size: 14px;
  line-height: 1.52;
  font-weight: 500;
}

.am-topic-reply-card__contentbody strong,
.am-topic-reply-card__contentbody b {
  color: #3b4154;
  font-weight: 700;
}

.am-topic-reply-card__contentbody p {
  margin: 0 0 10px;
}

.am-topic-reply-card__content.is-collapsible .am-topic-reply-card__contentbody,
.am-topic-reply-card__content.is-collapsible .am-topic-reply-card__contentbody::after,
.am-topic-reply-card .am-topic-readmore-toggle,
.am-topic-reply-card .am-topic-readmore {
  display: none !important;
}

@media (max-width: 760px) {
  .am-topic-replies__list {
    gap: 8px;
  }

  .am-topic-reply-card__inner {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .am-topic-reply-card__header {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
  }

  .am-topic-reply-card__avatar img {
    width: 36px;
    height: 36px;
  }

  .am-topic-reply-card__authorname {
    font-size: 13px;
    line-height: 1.06;
    font-weight: 750;
  }

  .am-topic-reply-card__authorline {
    font-size: 9.5px;
    line-height: 1.18;
    gap: 4px;
  }

  .am-topic-reply-card__content {
    margin-top: 8px;
  }

  .am-topic-reply-card__contentbody,
  .am-topic-reply-card__contentbody p,
  .am-topic-reply-card__contentbody li,
  .am-topic-reply-card__contentbody span {
    color: #565d73;
    font-size: 13.5px;
    line-height: 1.46;
    font-weight: 500;
  }

  .am-topic-reply-card__contentbody p {
    margin: 0 0 8px;
  }
}


/* ===== V10.31 fallback anti-desborde enlaces respuestas ===== */
.am-topic-reply-card__contentbody,
.am-topic-reply-card__contentbody * {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}


/* ===== V10.66 fallback enlaces respuestas limpio ===== */
.am-topic-reply-card__contentbody a {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ===== V10.39 ancho escritorio de pregunta igual a portada ===== */
/* Solo escritorio: no tocar móvil ni tablet angosta */
@media (min-width: 981px) {
  .am-single-topic-main {
    padding-top: 32px;
    padding-bottom: 34px;
  }

  .fp-container.am-single-topic-page,
  .am-single-topic-page {
    width: min(calc(100% - 64px), 1320px) !important;
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .am-single-topic-header,
  .am-single-topic-layout,
  .am-single-topic-page__main,
  .am-topic-stream,
  .am-topic-replies,
  .am-topic-replies__list {
    width: 100% !important;
    max-width: 100% !important;
  }

  .am-single-topic-hero__panel,
  .am-topic-reply-card {
    max-width: 100% !important;
  }
}

@media (min-width: 1600px) {
  .fp-container.am-single-topic-page,
  .am-single-topic-page {
    max-width: 1320px !important;
  }
}


/* ===== V10.40 ocultar responder duplicado de admin links ===== */
.am-topic-adminlinks a[href*="#new-reply"],
.am-single-topic-hero__adminlinks a[href*="#new-reply"] {
  display: none !important;
}

/* ===== V10.51 resaltado suave por categoría en preguntas ===== */
.am-single-topic-hero__title {
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0.02em 0.12em;
  border-radius: 8px;
}

.am-single-topic-hero.am-forum-tone--honeydew .am-single-topic-hero__panel,
.am-topic-lead.am-forum-tone--honeydew { background: linear-gradient(180deg, #F0FFF0 0%, #FBFFFB 100%) !important; }
.am-single-topic-hero.am-forum-tone--honeydew .am-single-topic-hero__title { background: #F0FFF0; }

.am-single-topic-hero.am-forum-tone--ivory .am-single-topic-hero__panel,
.am-topic-lead.am-forum-tone--ivory { background: linear-gradient(180deg, #FFFFF0 0%, #FFFFFB 100%) !important; }
.am-single-topic-hero.am-forum-tone--ivory .am-single-topic-hero__title { background: #FFFFF0; }

.am-single-topic-hero.am-forum-tone--seashell .am-single-topic-hero__panel,
.am-topic-lead.am-forum-tone--seashell { background: linear-gradient(180deg, #FFF5EE 0%, #FFFCFA 100%) !important; }
.am-single-topic-hero.am-forum-tone--seashell .am-single-topic-hero__title { background: #FFF5EE; }

.am-single-topic-hero.am-forum-tone--alice .am-single-topic-hero__panel,
.am-topic-lead.am-forum-tone--alice { background: linear-gradient(180deg, #F0F8FF 0%, #FBFDFF 100%) !important; }
.am-single-topic-hero.am-forum-tone--alice .am-single-topic-hero__title { background: #F0F8FF; }

.am-single-topic-hero.am-forum-tone--mint .am-single-topic-hero__panel,
.am-topic-lead.am-forum-tone--mint { background: linear-gradient(180deg, #F5FFFA 0%, #FCFFFD 100%) !important; }
.am-single-topic-hero.am-forum-tone--mint .am-single-topic-hero__title { background: #F5FFFA; }

.am-single-topic-hero.am-forum-tone--azure .am-single-topic-hero__panel,
.am-topic-lead.am-forum-tone--azure { background: linear-gradient(180deg, #F0FFFF 0%, #FBFFFF 100%) !important; }
.am-single-topic-hero.am-forum-tone--azure .am-single-topic-hero__title { background: #F0FFFF; }

.am-single-topic-hero.am-forum-tone--lavender .am-single-topic-hero__panel,
.am-topic-lead.am-forum-tone--lavender { background: linear-gradient(180deg, #F7F0FF 0%, #FDFBFF 100%) !important; }
.am-single-topic-hero.am-forum-tone--lavender .am-single-topic-hero__title { background: #F7F0FF; }

.am-single-topic-hero.am-forum-tone--blush .am-single-topic-hero__panel,
.am-topic-lead.am-forum-tone--blush { background: linear-gradient(180deg, #FFF0F5 0%, #FFFBFD 100%) !important; }
.am-single-topic-hero.am-forum-tone--blush .am-single-topic-hero__title { background: #FFF0F5; }

.am-single-topic-hero.am-forum-tone--linen .am-single-topic-hero__panel,
.am-topic-lead.am-forum-tone--linen { background: linear-gradient(180deg, #FFF7ED 0%, #FFFCF8 100%) !important; }
.am-single-topic-hero.am-forum-tone--linen .am-single-topic-hero__title { background: #FFF7ED; }

.am-single-topic-hero.am-forum-tone--cream .am-single-topic-hero__panel,
.am-topic-lead.am-forum-tone--cream { background: linear-gradient(180deg, #FAFFF0 0%, #FEFFFA 100%) !important; }
.am-single-topic-hero.am-forum-tone--cream .am-single-topic-hero__title { background: #FAFFF0; }

.am-single-topic-hero.am-forum-tone--rose .am-single-topic-hero__panel,
.am-topic-lead.am-forum-tone--rose { background: linear-gradient(180deg, #FFF1F2 0%, #FFFBFC 100%) !important; }
.am-single-topic-hero.am-forum-tone--rose .am-single-topic-hero__title { background: #FFF1F2; }

.am-single-topic-hero.am-forum-tone--sky .am-single-topic-hero__panel,
.am-topic-lead.am-forum-tone--sky { background: linear-gradient(180deg, #F0FAFF 0%, #FBFEFF 100%) !important; }
.am-single-topic-hero.am-forum-tone--sky .am-single-topic-hero__title { background: #F0FAFF; }

.am-single-topic-hero.am-forum-tone--pearl .am-single-topic-hero__panel,
.am-topic-lead.am-forum-tone--pearl { background: linear-gradient(180deg, #F8FFF7 0%, #FCFFFB 100%) !important; }
.am-single-topic-hero.am-forum-tone--pearl .am-single-topic-hero__title { background: #F8FFF7; }

/* ===== V10.51 ajuste: el color pastel resalta el título, no mancha toda la cabecera ===== */
.am-single-topic-hero.am-forum-tone--honeydew .am-single-topic-hero__panel,
.am-single-topic-hero.am-forum-tone--ivory .am-single-topic-hero__panel,
.am-single-topic-hero.am-forum-tone--seashell .am-single-topic-hero__panel,
.am-single-topic-hero.am-forum-tone--alice .am-single-topic-hero__panel,
.am-single-topic-hero.am-forum-tone--mint .am-single-topic-hero__panel,
.am-single-topic-hero.am-forum-tone--azure .am-single-topic-hero__panel,
.am-single-topic-hero.am-forum-tone--lavender .am-single-topic-hero__panel,
.am-single-topic-hero.am-forum-tone--blush .am-single-topic-hero__panel,
.am-single-topic-hero.am-forum-tone--linen .am-single-topic-hero__panel,
.am-single-topic-hero.am-forum-tone--cream .am-single-topic-hero__panel,
.am-single-topic-hero.am-forum-tone--rose .am-single-topic-hero__panel,
.am-single-topic-hero.am-forum-tone--sky .am-single-topic-hero__panel,
.am-single-topic-hero.am-forum-tone--pearl .am-single-topic-hero__panel {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%) !important;
}

.am-single-topic-hero__title {
  box-shadow: 0 0 0 5px transparent;
}

.am-single-topic-hero.am-forum-tone--honeydew .am-single-topic-hero__title { box-shadow: 0 0 0 5px #F0FFF0; }
.am-single-topic-hero.am-forum-tone--ivory .am-single-topic-hero__title { box-shadow: 0 0 0 5px #FFFFF0; }
.am-single-topic-hero.am-forum-tone--seashell .am-single-topic-hero__title { box-shadow: 0 0 0 5px #FFF5EE; }
.am-single-topic-hero.am-forum-tone--alice .am-single-topic-hero__title { box-shadow: 0 0 0 5px #F0F8FF; }
.am-single-topic-hero.am-forum-tone--mint .am-single-topic-hero__title { box-shadow: 0 0 0 5px #F5FFFA; }
.am-single-topic-hero.am-forum-tone--azure .am-single-topic-hero__title { box-shadow: 0 0 0 5px #F0FFFF; }
.am-single-topic-hero.am-forum-tone--lavender .am-single-topic-hero__title { box-shadow: 0 0 0 5px #F7F0FF; }
.am-single-topic-hero.am-forum-tone--blush .am-single-topic-hero__title { box-shadow: 0 0 0 5px #FFF0F5; }
.am-single-topic-hero.am-forum-tone--linen .am-single-topic-hero__title { box-shadow: 0 0 0 5px #FFF7ED; }
.am-single-topic-hero.am-forum-tone--cream .am-single-topic-hero__title { box-shadow: 0 0 0 5px #FAFFF0; }
.am-single-topic-hero.am-forum-tone--rose .am-single-topic-hero__title { box-shadow: 0 0 0 5px #FFF1F2; }
.am-single-topic-hero.am-forum-tone--sky .am-single-topic-hero__title { box-shadow: 0 0 0 5px #F0FAFF; }
.am-single-topic-hero.am-forum-tone--pearl .am-single-topic-hero__title { box-shadow: 0 0 0 5px #F8FFF7; }


/* ===== V10.52 resaltador real en título + categoría en negro al hover ===== */
.am-single-topic-hero__title {
  display: inline !important;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.10em 0.08em !important;
  border-radius: 0 !important;
  background: none !important;
  background-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent 58%,
    var(--am-topic-title-highlight, #F0FFF0) 58%,
    var(--am-topic-title-highlight, #F0FFF0) 90%,
    transparent 90%,
    transparent 100%
  ) !important;
  background-repeat: no-repeat !important;
  box-shadow: none !important;
}

.am-single-topic-hero.am-forum-tone--honeydew { --am-topic-title-highlight: #F0FFF0; }
.am-single-topic-hero.am-forum-tone--ivory { --am-topic-title-highlight: #FFFFF0; }
.am-single-topic-hero.am-forum-tone--seashell { --am-topic-title-highlight: #FFF5EE; }
.am-single-topic-hero.am-forum-tone--alice { --am-topic-title-highlight: #F0F8FF; }
.am-single-topic-hero.am-forum-tone--mint { --am-topic-title-highlight: #F5FFFA; }
.am-single-topic-hero.am-forum-tone--azure { --am-topic-title-highlight: #F0FFFF; }
.am-single-topic-hero.am-forum-tone--lavender { --am-topic-title-highlight: #F7F0FF; }
.am-single-topic-hero.am-forum-tone--blush { --am-topic-title-highlight: #FFF0F5; }
.am-single-topic-hero.am-forum-tone--linen { --am-topic-title-highlight: #FFF7ED; }
.am-single-topic-hero.am-forum-tone--cream { --am-topic-title-highlight: #FAFFF0; }
.am-single-topic-hero.am-forum-tone--rose { --am-topic-title-highlight: #FFF1F2; }
.am-single-topic-hero.am-forum-tone--sky { --am-topic-title-highlight: #F0FAFF; }
.am-single-topic-hero.am-forum-tone--pearl { --am-topic-title-highlight: #F8FFF7; }

.am-single-topic-hero__authorline a,
.am-single-topic-hero__authorline a:visited,
.am-single-topic-hero__authorline a:hover,
.am-single-topic-hero__authorline a:focus,
.am-single-topic-hero__authorline a:active {
  color: #111111 !important;
  text-decoration-color: #111111 !important;
}


/* ===== V10.53 resaltador más visible + etiquetas integradas al diseño ===== */
.am-single-topic-hero__title {
  padding: 0 0.14em 0.12em !important;
  background-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent 42%,
    var(--am-topic-title-highlight, #F0FFF0) 42%,
    var(--am-topic-title-highlight, #F0FFF0) 96%,
    transparent 96%,
    transparent 100%
  ) !important;
  background-size: 100% 100% !important;
  box-shadow: none !important;
}

/* Bloque de etiquetas al final de la pregunta */
.am-topic-tags {
  width: fit-content;
  max-width: 100%;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.055);
  color: #111111;
  font-size: 13px;
  font-weight: 800;
}

.am-topic-tags__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.am-topic-tags__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ffffff;
  opacity: 0.96;
}

.am-topic-tags__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.am-topic-tags a,
.am-topic-tags a:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #f7f7f7;
  color: #111111 !important;
  font-size: 13px;
  line-height: 1;
  font-weight: 850;
  text-decoration: none !important;
  box-shadow: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.am-topic-tags a::before {
  content: "#";
  margin-right: 3px;
  color: rgba(17, 17, 17, 0.52);
  font-weight: 950;
}

.am-topic-tags a:hover,
.am-topic-tags a:focus {
  background: #111111;
  border-color: #111111;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.am-topic-tags a:hover::before,
.am-topic-tags a:focus::before {
  color: #ffffff;
}

@media (max-width: 680px) {
  .am-single-topic-hero__title {
    padding: 0 0.12em 0.10em !important;
    background-image: linear-gradient(
      to bottom,
      transparent 0,
      transparent 46%,
      var(--am-topic-title-highlight, #F0FFF0) 46%,
      var(--am-topic-title-highlight, #F0FFF0) 96%,
      transparent 96%,
      transparent 100%
    ) !important;
  }

  .am-topic-tags {
    width: 100%;
    padding: 10px;
    border-radius: 16px;
    align-items: flex-start;
  }

  .am-topic-tags__label {
    min-height: 30px;
    padding: 0 12px;
    font-size: 10px;
  }

  .am-topic-tags__list {
    gap: 7px;
  }

  .am-topic-tags a,
  .am-topic-tags a:visited {
    min-height: 30px;
    padding: 0 12px;
    font-size: 12px;
  }
}

/* ===== V10.60 ancho de pregunta igual a categorías en escritorio ===== */
/*
 * La pregunta abierta antes quedaba demasiado ancha en PC por la regla V10.39.
 * En escritorio la dejamos con el mismo contenedor base de las categorías del foro.
 * Móvil/tablet angosta no se toca.
 */
@media (min-width: 981px) {
  .fp-container.am-single-topic-page {
    width: auto !important;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .am-single-topic-header,
  .am-single-topic-layout,
  .am-single-topic-page__main,
  .am-topic-stream,
  .am-topic-replies,
  .am-topic-replies__list {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (min-width: 1600px) {
  .fp-container.am-single-topic-page {
    max-width: 1100px !important;
  }
}
