.tema-portal-card {
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.96), rgba(255, 250, 245, 0.78)),
    var(--bs-body-bg, #fbf6ef);
  border: 1px solid rgba(61, 48, 41, 0.12);
  border-radius: var(--bs-border-radius-xxl, 1.75rem);
  box-shadow: 0 24px 64px -52px rgba(61, 48, 41, 0.58);
  margin-bottom: 1rem;
  overflow: clip;
}

.tema-portal-card--narrow {
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
  width: 100%;
}

.tema-portal-card__body {
  padding: clamp(1.15rem, 2.5vw, 1.8rem);
}

.tema-portal-card__title {
  font-family: var(--bs-heading-font-family, serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.08;
  margin: 0 0 0.55rem;
  text-wrap: balance;
}

.tema-portal-card__text,
.tema-portal-meta {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.72));
  line-height: 1.58;
}

.tema-portal-eyebrow {
  color: var(--bs-primary, #8f2424);
  font-size: 0.76rem;
  font-weight: 800;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

.tema-portal-form {
  display: grid;
  gap: 0.95rem;
}

.tema-portal-form--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tema-portal-field {
  display: grid;
  gap: 0.38rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.tema-portal-field--full {
  grid-column: 1 / -1;
}

.tema-portal-field input,
.tema-portal-field select,
.tema-portal-field textarea {
  background: rgba(255, 250, 245, 0.88);
  border: var(--bs-border-width, 1px) solid rgba(61, 48, 41, 0.14);
  border-radius: 0.95rem;
  font-weight: 400;
  min-height: 3rem;
  padding: 0.72rem 0.9rem;
  transition:
    background-color 240ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.tema-portal-field textarea {
  min-height: 7rem;
}

.tema-portal-field input:focus,
.tema-portal-field select:focus,
.tema-portal-field textarea:focus {
  background: #fffaf5;
  border-color: rgba(var(--bs-primary-rgb, 143, 36, 36), 0.42);
  box-shadow: 0 0 0 0.22rem rgba(var(--bs-primary-rgb, 143, 36, 36), 0.12);
  outline: 0;
}

.tema-portal-field input[readonly] {
  background: rgba(61, 48, 41, 0.055);
}

.tema-portal-field input.is-valid {
  border-color: rgba(83, 107, 59, 0.58);
  box-shadow: 0 0 0 0.18rem rgba(83, 107, 59, 0.12);
}

.tema-portal-field input.is-invalid {
  border-color: rgba(154, 42, 37, 0.58);
  box-shadow: 0 0 0 0.18rem rgba(154, 42, 37, 0.12);
}

.tema-password-match {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.72));
  font-size: 0.86rem;
  font-weight: 400;
  min-height: 1.15rem;
}

.tema-password-match.is-valid {
  color: #536b3b;
}

.tema-password-match.is-invalid {
  color: #9a2a25;
}

.tema-portal-button {
  align-items: center;
  background: var(--bs-primary, #8f2424);
  border: 1px solid color-mix(in srgb, var(--bs-primary, #8f2424) 84%, #171312);
  border-radius: 999px;
  box-shadow: 0 18px 34px -26px rgba(var(--bs-primary-rgb, 143, 36, 36), 0.72);
  color: #fffaf5;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.72rem 1.1rem;
  text-decoration: none;
  transition:
    background-color 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tema-portal-button:hover,
.tema-portal-button:focus-visible {
  color: #fffaf5;
  transform: translateY(-1px);
}

.tema-portal-button:active {
  transform: translateY(0) scale(0.985);
}

.tema-portal-button--secondary {
  background: rgba(61, 48, 41, 0.06);
  border-color: rgba(61, 48, 41, 0.12);
  box-shadow: none;
  color: var(--bs-body-color, #241d19);
}

.tema-portal-button--secondary:hover,
.tema-portal-button--secondary:focus-visible {
  color: var(--bs-primary, #8f2424);
}

.tema-portal-button[disabled],
.tema-portal-form.is-loading .tema-portal-button {
  cursor: wait;
  opacity: 0.68;
}

.tema-portal-link {
  color: var(--bs-primary, #8f2424);
  font-weight: 750;
  text-decoration: none;
}

.tema-portal-link:hover,
.tema-portal-link:focus-visible {
  color: color-mix(in srgb, var(--bs-primary, #8f2424) 78%, #171312);
}

.tema-portal-secondary-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.tema-portal-secondary-links a {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.72));
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
}

.tema-portal-secondary-links a:hover,
.tema-portal-secondary-links a:focus-visible {
  color: var(--bs-primary, #8f2424);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.tema-portal-feedback {
  border-radius: 0.9rem;
  font-size: 0.9rem;
  min-height: 1.25rem;
}

.accordion-body .tema-portal-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
}

.accordion-body .tema-portal-card__body {
  padding: 0;
}

.tema-portal-feedback.is-success {
  color: #536b3b;
}

.tema-portal-feedback.is-error {
  color: #9a2a25;
}

.tema-portal-note,
.tema-portal-attachment-note,
.tema-support-case-result {
  background: rgba(61, 48, 41, 0.055);
  border: 1px solid rgba(61, 48, 41, 0.09);
  border-radius: 1rem;
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.72));
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.85rem 1rem;
}

.tema-support-summary {
  align-items: center;
  background: rgba(255, 250, 245, 0.72);
  border: 1px solid rgba(61, 48, 41, 0.1);
  border-radius: 1.15rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 5.5rem;
  padding: 0.85rem;
}

.tema-support-summary__empty {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.72));
  grid-column: 1 / -1;
}

.tema-support-summary img {
  aspect-ratio: 1;
  background: rgba(61, 48, 41, 0.045);
  border-radius: 0.9rem;
  height: 88px;
  object-fit: contain;
  width: 88px;
}

.tema-support-summary__content {
  display: grid;
  gap: 0.25rem;
}

.tema-support-summary__content strong,
.tema-support-case-result strong {
  color: var(--bs-body-color, #241d19);
  display: block;
  font-size: 1.02rem;
}

.tema-support-summary__content span,
.tema-support-case-result span {
  display: block;
}

.tema-support-summary.is-active {
  border-color: rgba(83, 107, 59, 0.28);
}

.tema-support-summary.is-expired {
  border-color: rgba(154, 42, 37, 0.24);
}

.tema-portal-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.tema-portal-stat {
  background: rgba(255, 250, 245, 0.7);
  border: 1px solid rgba(61, 48, 41, 0.1);
  border-radius: 1.2rem;
  padding: 1rem;
}

.tema-portal-stat strong {
  display: block;
  font-family: var(--bs-font-monospace, monospace);
  font-size: 1.65rem;
  line-height: 1;
}

.tema-portal-section-head {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tema-portal-count {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.72));
  font-size: 0.95rem;
  margin: 0;
  white-space: nowrap;
}

.tema-portal-filter,
.tema-portal-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.tema-portal-filter a,
.tema-portal-pagination a,
.tema-portal-pagination span,
.tema-portal-pagination strong {
  background: rgba(61, 48, 41, 0.06);
  border: 1px solid rgba(61, 48, 41, 0.08);
  border-radius: 999px;
  color: var(--bs-body-color, #241d19);
  display: inline-flex;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.58rem 0.82rem;
  text-decoration: none;
}

.tema-portal-filter a.is-active,
.tema-portal-pagination strong {
  background: var(--bs-primary, #8f2424);
  color: #fffaf5;
}

.tema-portal-pagination {
  justify-content: center;
  margin: 1.15rem 0 0;
}

.tema-portal-pagination span[aria-disabled="true"] {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.45));
}

.tema-portal-overview {
  display: grid;
  gap: 1rem;
}

.tema-portal-overview__head {
  align-items: end;
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
}

.tema-portal-overview__head--solo {
  grid-template-columns: minmax(0, 1fr);
}

.tema-portal-overview__head h2 {
  font-family: var(--bs-heading-font-family, serif);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.05;
  margin: 0 0 0.35rem;
}

.tema-portal-overview__head p:not(.tema-portal-eyebrow) {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.72));
  margin: 0;
}

.tema-portal-overview__stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tema-portal-overview__stats a,
.tema-portal-overview-panel,
.tema-portal-product-card,
.tema-portal-case-card {
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.96), rgba(255, 250, 245, 0.78)),
    var(--bs-body-bg, #fbf6ef);
  border: 1px solid rgba(61, 48, 41, 0.12);
  border-radius: 1.35rem;
  box-shadow: 0 18px 54px -48px rgba(61, 48, 41, 0.58);
}

.tema-portal-overview__stats a {
  color: var(--bs-body-color, #241d19);
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  text-decoration: none;
}

.tema-portal-overview__stats strong {
  font-family: var(--bs-font-monospace, monospace);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1;
}

.tema-portal-overview__stats span {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.72));
  font-size: 0.9rem;
}

.tema-portal-overview__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tema-portal-overview-panel {
  padding: clamp(1rem, 2vw, 1.25rem);
}

.tema-portal-overview-panel__head {
  align-items: baseline;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.tema-portal-overview-panel__head h3 {
  font-family: var(--bs-heading-font-family, serif);
  font-size: 1.18rem;
  margin: 0;
}

.tema-portal-overview-panel__head a {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.72));
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.tema-portal-mini-list {
  display: grid;
  gap: 0.65rem;
}

.tema-portal-mini-item {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 56px minmax(0, 1fr);
}

.tema-portal-mini-item img {
  aspect-ratio: 1;
  background: rgba(61, 48, 41, 0.045);
  border-radius: 0.8rem;
  object-fit: contain;
  padding: 0.35rem;
  width: 56px;
}

.tema-portal-mini-item h4,
.tema-portal-mini-item p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tema-portal-mini-item h4 {
  font-size: 1rem;
  margin: 0;
}

.tema-portal-mini-item p {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.72));
  margin: 0.1rem 0 0;
}

.tema-portal-mini-icon,
.tema-portal-status-dot {
  align-items: center;
  aspect-ratio: 1;
  background: rgba(61, 48, 41, 0.055);
  border: 1px solid rgba(61, 48, 41, 0.08);
  border-radius: 0.8rem;
  color: var(--bs-primary, #8f2424);
  display: flex;
  justify-content: center;
  position: relative;
  width: 56px;
}

.tema-portal-mini-icon::before {
  border: 2px solid currentColor;
  border-radius: 0.2rem;
  content: "";
  height: 24px;
  width: 18px;
}

.tema-portal-mini-icon::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 20px;
  position: absolute;
  top: 35px;
  width: 16px;
}

.tema-portal-status-dot {
  border-radius: 999px;
}

.tema-portal-status-dot::before {
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 0 0 0.45rem rgba(var(--bs-primary-rgb, 143, 36, 36), 0.1);
  content: "";
  height: 0.7rem;
  width: 0.7rem;
}

.tema-portal-profile-summary {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.tema-portal-profile-summary div {
  border-top: 1px solid rgba(61, 48, 41, 0.08);
  display: grid;
  gap: 0.25rem;
  padding-top: 0.8rem;
}

.tema-portal-profile-summary div:first-child {
  border-top: 0;
  padding-top: 0;
}

.tema-portal-profile-summary dt {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.62));
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tema-portal-profile-summary dd {
  color: var(--bs-body-color, #241d19);
  font-weight: 650;
  margin: 0;
  overflow-wrap: anywhere;
}

.tema-portal-nav {
  margin-bottom: 1.5rem;
}

.tema-portal-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tema-portal-nav__item a {
  background: rgba(61, 48, 41, 0.06);
  border: 1px solid rgba(61, 48, 41, 0.08);
  border-radius: 999px;
  color: var(--bs-body-color, #241d19);
  display: inline-flex;
  padding: 0.68rem 1rem;
  text-decoration: none;
  transition:
    background-color 240ms cubic-bezier(0.22, 1, 0.36, 1),
    color 240ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tema-portal-nav__item a:hover,
.tema-portal-nav__item a:focus-visible {
  background: rgba(var(--bs-primary-rgb, 143, 36, 36), 0.08);
  color: var(--bs-primary, #8f2424);
  transform: translateY(-1px);
}

.tema-portal-nav__item.is-active a {
  background: var(--bs-primary, #8f2424);
  color: #fffaf5;
}

.tema-portal-resource-list,
.tema-portal-product-list {
  display: grid;
  gap: 1rem;
}

.tema-portal-section {
  display: grid;
  gap: 1.2rem;
}

.tema-portal-section__head {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.tema-portal-section__head--offers {
  align-items: start;
}

.tema-portal-section__title {
  font-family: var(--bs-heading-font-family, serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  margin: 0;
}

.tema-portal-section--offers .tema-portal-section__title {
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
}

.tema-portal-section__count {
  background: rgba(61, 48, 41, 0.06);
  border-radius: 999px;
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.72));
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding: 0.52rem 0.75rem;
  white-space: nowrap;
}

.tema-portal-filters {
  align-items: end;
  display: grid;
  gap: 0.75rem 0.9rem;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(150px, 1fr)) minmax(120px, auto);
}

.tema-portal-filters label,
.tema-portal-offer-form label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.tema-portal-filters span,
.tema-portal-offer-form span,
.tema-portal-choice legend {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.68));
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tema-portal-filters input,
.tema-portal-filters select,
.tema-portal-offer-form input,
.tema-portal-offer-form textarea {
  background-color: rgba(255, 250, 245, 0.9);
  border: 1px solid rgba(61, 48, 41, 0.14);
  border-radius: 0.8rem;
  color: var(--bs-body-color, #241d19);
  font: inherit;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.tema-portal-filters input,
.tema-portal-filters select {
  height: 52px;
}

.tema-portal-filters select {
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 22px,
    calc(100% - 12px) 22px;
  background-repeat: no-repeat;
  background-size: 6px 6px;
  padding-right: 2.4rem;
}

.tema-portal-filters .tema-portal-button {
  align-self: end;
  border-radius: 0.8rem;
  min-height: 52px;
  padding-inline: 1.2rem;
  width: 100%;
}

.tema-portal-resource-grid,
.tema-portal-offer-list {
  display: grid;
  gap: 1rem;
}

.tema-portal-resource-card,
.tema-portal-offer-card {
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid rgba(61, 48, 41, 0.1);
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(36, 29, 25, 0.05);
}

.tema-portal-resource-card {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 64px minmax(0, 1fr) minmax(180px, auto);
  padding: 1rem;
}

.tema-portal-resource-card__icon {
  align-items: center;
  background: rgba(61, 48, 41, 0.06);
  border-radius: 0.9rem;
  display: flex;
  height: 64px;
  justify-content: center;
  position: relative;
  width: 64px;
}

.tema-portal-resource-card__icon::before {
  border: 2px solid currentColor;
  border-radius: 0.2rem;
  color: var(--bs-primary, #8f2424);
  content: "";
  height: 26px;
  width: 20px;
}

.tema-portal-resource-card__icon::after {
  background: currentColor;
  border-radius: 999px;
  color: var(--bs-primary, #8f2424);
  content: "";
  height: 2px;
  left: 23px;
  position: absolute;
  top: 38px;
  width: 18px;
}

.tema-portal-resource-card__body {
  min-width: 0;
}

.tema-portal-resource-card__body h3,
.tema-portal-offer-card__main h3 {
  font-family: var(--bs-heading-font-family, serif);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.08;
  margin: 0.25rem 0 0.4rem;
}

.tema-portal-resource-card__body p,
.tema-portal-offer-card__main p {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.74));
  margin-bottom: 0;
}

.tema-portal-resource-card__meta,
.tema-portal-offer-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tema-portal-resource-card__meta span,
.tema-portal-offer-card__meta span {
  background: rgba(61, 48, 41, 0.06);
  border-radius: 999px;
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.72));
  font-size: 0.78rem;
  line-height: 1;
  padding: 0.38rem 0.55rem;
}

.tema-portal-resource-card__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0.7rem 0 0;
}

.tema-portal-resource-card__dates div {
  min-width: 0;
}

.tema-portal-resource-card__dates dt {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.64));
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tema-portal-resource-card__dates dd {
  margin: 0.1rem 0 0;
}

.tema-portal-resource-card__action {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
}

.tema-portal-resource-card__action small {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.66));
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tema-portal-download,
.tema-portal-offer-resource {
  align-items: center;
  background: var(--bs-primary, #8f2424);
  border-radius: 999px;
  color: #fffaf5;
  display: inline-flex;
  font-weight: 800;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
}

.tema-portal-download:hover,
.tema-portal-download:focus-visible,
.tema-portal-offer-resource:hover,
.tema-portal-offer-resource:focus-visible {
  color: #fffaf5;
  transform: translateY(-1px);
}

.tema-portal-download__icon {
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  display: inline-block;
  height: 0.55rem;
  position: relative;
  transform: rotate(-45deg);
  width: 0.55rem;
}

.tema-portal-download__icon::after {
  background: currentColor;
  content: "";
  height: 0.8rem;
  left: 0.28rem;
  position: absolute;
  top: -0.45rem;
  transform: rotate(45deg);
  width: 2px;
}

.tema-portal-resource-card__locked {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.68));
  font-weight: 700;
}

.tema-portal-empty {
  border: 1px solid rgba(61, 48, 41, 0.1);
  border-radius: 1rem;
  padding: 1.2rem;
}

.tema-portal-empty h3 {
  font-family: var(--bs-heading-font-family, serif);
  margin: 0 0 0.3rem;
}

.tema-portal-empty p {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.72));
  margin: 0;
}

.tema-portal-offer-card {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(255, 250, 245, 0.98), rgba(248, 244, 238, 0.76));
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  padding: clamp(1rem, 2.2vw, 1.35rem);
}

.tema-portal-offer-card__main,
.tema-portal-offer-card__side {
  min-width: 0;
}

.tema-portal-offer-card__main {
  align-content: start;
  display: grid;
  gap: 0.95rem;
}

.tema-portal-offer-card__header h3 {
  font-family: var(--bs-heading-font-family, serif);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.06;
  margin: 0.5rem 0 0;
  text-wrap: balance;
}

.tema-portal-offer-card__description {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.74));
  line-height: 1.55;
  max-width: 64ch;
}

.tema-portal-offer-card__description p:last-child {
  margin-bottom: 0;
}

.tema-portal-offer-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
}

.tema-portal-offer-card__facts div {
  background: rgba(61, 48, 41, 0.045);
  border: 1px solid rgba(61, 48, 41, 0.06);
  border-radius: 0.85rem;
  min-width: min(220px, 100%);
  padding: 0.65rem 0.75rem;
}

.tema-portal-offer-card__facts dt {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.62));
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.tema-portal-offer-card__facts dd {
  color: var(--bs-body-color, #241d19);
  font-weight: 700;
  margin: 0.28rem 0 0;
}

.tema-portal-offer-card__resources {
  border-top: 1px solid rgba(61, 48, 41, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

.tema-portal-offer-card__resources strong {
  flex: 1 0 100%;
}

.tema-portal-offer-resource {
  background: rgba(61, 48, 41, 0.08);
  color: var(--bs-body-color, #241d19);
}

.tema-portal-offer-resource:hover,
.tema-portal-offer-resource:focus-visible {
  color: var(--bs-body-color, #241d19);
}

.tema-portal-offer-panel {
  background: rgba(255, 250, 245, 0.58);
  border: 1px solid rgba(61, 48, 41, 0.1);
  border-radius: 0.95rem;
  display: grid;
  gap: 0.9rem;
  height: 100%;
  padding: clamp(0.85rem, 1.7vw, 1rem);
}

.tema-portal-offer-panel__head {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.tema-portal-offer-panel__head span {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.68));
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tema-portal-offer-panel__head strong {
  background: rgba(61, 48, 41, 0.06);
  border-radius: 999px;
  color: var(--bs-body-color, #241d19);
  font-size: 0.78rem;
  line-height: 1;
  padding: 0.4rem 0.55rem;
  white-space: nowrap;
}

.tema-portal-offer-form {
  display: grid;
  gap: 0.85rem;
}

.tema-portal-choice {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.tema-portal-choice legend {
  flex: 1 0 100%;
  margin-bottom: 0.35rem;
}

.tema-portal-choice label {
  align-items: center;
  background: rgba(61, 48, 41, 0.06);
  border-radius: 999px;
  display: flex;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
}

.tema-portal-choice--segmented {
  display: grid;
  gap: 0;
}

.tema-portal-choice__options {
  background: rgba(61, 48, 41, 0.06);
  border: 1px solid rgba(61, 48, 41, 0.08);
  border-radius: 0.8rem;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.25rem;
}

.tema-portal-choice__options label {
  background: transparent;
  border-radius: 0.58rem;
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.74));
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  transition:
    background-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tema-portal-choice__options input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.tema-portal-choice__options span {
  color: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: none;
}

.tema-portal-choice__options label:has(input:checked) {
  background: var(--bs-body-color, #171312);
  box-shadow: 0 10px 22px -18px rgba(23, 19, 18, 0.8);
  color: #fffaf5;
}

.tema-portal-choice__options label:focus-within {
  outline: 2px solid rgba(var(--bs-primary-rgb, 143, 36, 36), 0.35);
  outline-offset: 2px;
}

.tema-portal-offer-form__dates {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tema-portal-offer-form textarea {
  min-height: 104px;
  resize: vertical;
}

.tema-portal-offer-form .tema-portal-button {
  border-radius: 0.8rem;
  min-height: 52px;
  width: 100%;
}

.tema-portal-offer-card__status {
  background: rgba(61, 48, 41, 0.05);
  border-radius: 0.85rem;
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
}

.tema-portal-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tema-portal-pagination a {
  align-items: center;
  background: rgba(61, 48, 41, 0.06);
  border-radius: 999px;
  color: var(--bs-body-color, #241d19);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  min-width: 38px;
  padding: 0 0.75rem;
  text-decoration: none;
}

.tema-portal-pagination a.is-current {
  background: var(--bs-primary, #8f2424);
  color: #fffaf5;
}

.tema-portal-product-grid {
  display: grid;
  gap: 0.85rem;
}

.tema-portal-product-card {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 96px minmax(0, 1fr);
  padding: 0.9rem;
}

.tema-portal-product-card__media {
  align-items: center;
  aspect-ratio: 1;
  background: rgba(61, 48, 41, 0.045);
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.tema-portal-product-card__media img {
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  width: 100%;
}

.tema-portal-product-card__body {
  min-width: 0;
}

.tema-portal-product-card__body h4 {
  font-family: var(--bs-heading-font-family, serif);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.05;
  margin: 0 0 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tema-portal-product-card__body p {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.72));
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tema-portal-product-card__meta,
.tema-portal-case-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.tema-portal-product-card__meta span,
.tema-portal-case-card__meta span {
  background: rgba(61, 48, 41, 0.06);
  border-radius: 999px;
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.72));
  font-size: 0.82rem;
  line-height: 1;
  padding: 0.45rem 0.6rem;
  white-space: nowrap;
}

.tema-portal-profile-form {
  gap: 1rem;
}

.tema-portal-form-section {
  border: 1px solid rgba(61, 48, 41, 0.1);
  border-radius: 1.25rem;
  margin: 0;
  padding: clamp(1rem, 2vw, 1.2rem);
}

.tema-portal-form-section legend {
  color: var(--bs-primary, #8f2424);
  float: none;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  width: auto;
}

.tema-portal-form-section__grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tema-portal-form-actions {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
}

.tema-portal-case-list {
  display: grid;
  gap: 0.85rem;
}

.tema-portal-case-card {
  overflow: clip;
  padding: 0;
}

.tema-portal-case-card__summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 1rem;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  list-style: none;
  padding: 0.9rem;
}

.tema-portal-case-card__summary::-webkit-details-marker {
  display: none;
}

.tema-portal-case-card__media {
  align-items: center;
  aspect-ratio: 1;
  background: rgba(61, 48, 41, 0.045);
  border-radius: 0.9rem;
  display: flex;
  justify-content: center;
  overflow: hidden;
  width: 76px;
}

.tema-portal-case-card__media img {
  height: 100%;
  object-fit: contain;
  padding: 0.45rem;
  width: 100%;
}

.tema-portal-case-card__body {
  display: block;
  min-width: 0;
}

.tema-portal-case-card__body h4,
.tema-portal-case-card__body p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tema-portal-case-card__body h4 {
  font-family: var(--bs-heading-font-family, serif);
  font-size: 1.15rem;
  margin: 0 0 0.2rem;
}

.tema-portal-case-card__body p {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.72));
  margin: 0;
}

.tema-portal-case-card__toggle {
  background: rgba(61, 48, 41, 0.06);
  border-radius: 999px;
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.72));
  font-size: 0.82rem;
  padding: 0.45rem 0.65rem;
  white-space: nowrap;
}

.tema-portal-case-card[open] .tema-portal-case-card__toggle {
  background: var(--bs-primary, #8f2424);
  color: #fffaf5;
}

.tema-portal-case-detail {
  border-top: 1px solid rgba(61, 48, 41, 0.09);
  padding: 0.95rem;
}

.tema-portal-case-detail dl {
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.tema-portal-case-detail div {
  min-width: 0;
}

.tema-portal-case-detail dt {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.66));
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tema-portal-case-detail dd {
  color: var(--bs-body-color, #241d19);
  margin: 0.16rem 0 0;
}

.tema-portal-case-detail__note {
  background: rgba(61, 48, 41, 0.045);
  border-radius: 1rem;
  margin-top: 0.9rem;
  padding: 0.85rem;
}

.tema-portal-case-detail__note strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.tema-portal-case-detail__note p {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.72));
  margin: 0;
}

.tema-portal-resource,
.tema-portal-product {
  border-top: 1px solid rgba(61, 48, 41, 0.1);
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
}

.tema-portal-product {
  align-items: start;
  grid-template-columns: 112px minmax(0, 1fr);
}

.tema-portal-product img {
  border-radius: 1rem;
  object-fit: cover;
  width: 100%;
}

.tema-portal-table {
  border-collapse: collapse;
  width: 100%;
}

.tema-portal-table th,
.tema-portal-table td {
  border-bottom: 1px solid rgba(61, 48, 41, 0.09);
  padding: 0.85rem 0.65rem;
  text-align: left;
}

.tema-portal-table th {
  color: var(--bs-secondary-color, rgba(36, 29, 25, 0.68));
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .tema-portal-form--grid,
  .tema-portal-stats,
  .tema-portal-overview__head,
  .tema-portal-overview__grid,
  .tema-portal-overview__stats,
  .tema-portal-form-section__grid,
  .tema-portal-form-actions,
  .tema-portal-filters,
  .tema-portal-resource-card,
  .tema-portal-offer-card,
  .tema-portal-product,
  .tema-support-summary {
    grid-template-columns: 1fr;
  }

  .tema-portal-section__head {
    display: grid;
  }

  .tema-portal-offer-panel {
    height: auto;
  }

  .tema-portal-offer-form__dates {
    grid-template-columns: 1fr;
  }

  .tema-portal-resource-card__action {
    justify-items: start;
  }

  .tema-portal-product-card,
  .tema-portal-case-card__summary {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .tema-portal-case-card__toggle {
    grid-column: 2;
    justify-self: start;
  }

  .tema-portal-case-card__media {
    width: 72px;
  }

  .tema-portal-case-detail dl {
    grid-template-columns: 1fr;
  }

  .tema-support-summary img {
    height: 72px;
    width: 72px;
  }
}
