/** Resultados banner horizontal: variante line + editorial (.reb-*, .res-teaser). */
.reb-banner{border:1px solid var(--light-gray);border-radius:10px;overflow:hidden;background:var(--background-color)}
.reb-head{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 8px;border-bottom:1px solid var(--light-gray);background:color-mix(in srgb,var(--background-color) 92%,var(--title-color) 8%)}
.reb-head-left{min-width:0;flex:1 1 auto}
.reb-title{font-size:13px;font-weight:700;color:var(--title-color);margin:0;line-height:1.15;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.reb-title-badge{display:inline-flex;align-items:center;gap:5px;background-color:var(--reb-accent,#e10600);color:#fff;padding:3px 8px;border-radius:10px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:0.4px;flex-shrink:0}
.reb-title-badge.reb-title-badge--cat{background-color:var(--reb-badge-bg,var(--reb-accent,#e10600));color:var(--reb-badge-fg,#fff)}
.reb-cat-fill{background-color:var(--reb-select-bg)!important;color:var(--reb-select-fg)!important}
.reb-title-badge-dot{width:5px;height:5px;border-radius:50%;background-color:currentColor;opacity:.9;flex-shrink:0}
.reb-title-badge-text{color:inherit}
.reb-subrow{display:flex;align-items:center;gap:6px;margin-top:1px}
.reb-subtitle{font-size:11px;opacity:.8}
.reb-link{display:inline-flex;align-items:center;font-size:10px;font-weight:500;opacity:.9;text-decoration:none;line-height:1.15;white-space:nowrap}
.reb-tools{display:grid;grid-template-columns:140px;align-items:center;gap:6px;margin-left:auto;flex:0 0 auto}
.reb-select{height:26px;width:140px;min-width:140px;max-width:140px;border:1px solid var(--light-gray);border-radius:6px;padding:2px 6px;font-size:11px;font-weight:500;background:var(--background-color);color:var(--text-color)}
.reb-track{display:flex;gap:6px;overflow-x:auto;padding:6px 10px;scroll-snap-type:x proximity}
.reb-chip{min-width:220px;max-width:220px;border:1px solid var(--light-gray);border-radius:8px;padding:6px 8px;scroll-snap-align:start;background:var(--background-color)}
.reb-chip-more{display:flex;align-items:center;justify-content:center;text-decoration:none;color:var(--title-color);font-size:12px;font-weight:700}
.reb-chip-more:hover{opacity:.9}
.reb-chip-top{display:flex;align-items:center;gap:6px;margin-bottom:2px}
.reb-pos{min-width:20px;height:20px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#fff;background:#1f2937}
.reb-driver{display:inline-flex;align-items:center;gap:5px;min-width:0;font-size:12px;font-weight:600;color:var(--title-color)}
.reb-driver .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reb-car-num{font-size:11px;font-weight:700;color:var(--title-color);line-height:1;opacity:.95}
.reb-extra{margin-left:3px;font-size:10px;font-weight:500;opacity:.78;white-space:nowrap}
.reb-sub{display:contents}
.reb-team{font-size:11px;opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-color)}
.reb-time{margin-top:1px;font-size:11px;font-weight:600;color:var(--text-color)}
.reb-flag{width:14px !important;height:10px !important;min-width:14px;max-width:14px;display:block;flex:0 0 14px;border-radius:2px;object-fit:cover}
.reb-title .reb-title-rest,.reb-event-name{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}
.reb-title .reb-flag,.reb-event-name .reb-flag{display:inline-block !important;vertical-align:middle;flex-shrink:0}
@media (max-width:720px){.reb-head{align-items:stretch;flex-direction:column;padding:4px 8px}.reb-tools{margin-left:0;width:100%;grid-template-columns:1fr}.reb-select{width:100%;min-width:0;max-width:none;height:28px}}
.reb-banner--line{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:0}
.reb-banner--line .reb-head{border-bottom:none;border-right:1px solid rgba(255,255,255,0.06);flex-shrink:0;min-width:100px;max-width:140px;flex-direction:column;justify-content:center;align-items:flex-start;padding:4px 8px;gap:0;background:color-mix(in srgb,var(--background-color) 88%,var(--title-color) 12%)}
.reb-banner--line .reb-title,.reb-banner--line .reb-subrow{display:none!important}
.reb-banner--line .reb-line-header{display:flex;flex-direction:row;align-items:center;gap:6px;flex-wrap:wrap}
.reb-banner--line .reb-title-badge{padding:3px 8px;font-size:10px}
.reb-banner--line .reb-title-badge-dot{width:5px;height:5px}
.reb-banner--line .reb-event-name{color:var(--title-color);font-size:11px;font-weight:700;line-height:1.2}
.reb-banner--line .reb-head-left{flex:0 0 auto}
.reb-banner--line .reb-tools{margin-left:0;margin-top:3px}
.reb-banner--line .reb-select{height:20px;padding:0 6px;font-size:9px;border-radius:4px;width:100%;max-width:100%}
.reb-banner--line .reb-track{flex:1 1 auto;min-width:0;display:flex;padding:0;align-items:center;overflow:visible;gap:0}
.reb-banner--line .reb-chip{flex:1;min-width:0;max-width:none;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:5px 8px 4px;margin:0;border-radius:0;border-right:1px solid rgba(255,255,255,0.04);transition:background 0.15s}
.reb-banner--line .reb-chip:hover{background:rgba(255,255,255,0.02)}
.reb-banner--line .reb-chip-top{display:flex;align-items:center;gap:5px;margin-bottom:1px;flex-wrap:nowrap}
.reb-banner--line .reb-pos{font-size:14px;font-weight:900;line-height:1;flex-shrink:0;min-width:auto;height:auto;border-radius:0;background:transparent;color:var(--title-color)}
.reb-banner--line .reb-driver{display:flex;align-items:center;gap:4px;min-width:0}
.reb-banner--line .reb-driver .name{font-size:11px;font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reb-banner--line .reb-car-num{font-size:10px}
.reb-banner--line .reb-flag{width:12px!important;height:9px!important;min-width:12px;max-width:12px;flex:0 0 12px}
.reb-banner--line .reb-sub{display:flex;align-items:center;gap:5px}
.reb-banner--line .reb-team{font-size:8px;font-weight:600;margin:0;color:#00d2be}
.reb-banner--line .reb-time{font-size:8px;font-weight:600;margin:0;color:#00d2be;font-variant-numeric:tabular-nums}
.reb-banner--line .reb-chip-more{flex:0 0 auto;min-width:auto;display:flex;align-items:center;padding:0 10px;border-left:1px solid rgba(255,255,255,0.06);border-right:none;text-decoration:none;color:#00d2be;font-size:9px;font-weight:600;white-space:nowrap}
.reb-banner--line .reb-chip-more:hover{opacity:0.9;background:transparent}
@media (max-width:720px){.reb-banner--line{flex-direction:column;align-items:stretch}.reb-banner--line .reb-head{max-width:none;border-right:none;border-bottom:1px solid var(--light-gray)}.reb-banner--line .reb-track{flex-wrap:wrap}.reb-banner--line .reb-chip{flex:1 1 40%;min-width:120px}.reb-banner--line .reb-chip-more{flex:1 1 100%;border-left:none;border-top:1px solid rgba(255,255,255,0.06);justify-content:center}}
@media (max-width:768px){.reb-banner .reb-car-num{display:none!important}}

/* Teaser resultados — variante editorial (alineado con ui-kit-elements/elementos.html #teaser-resultados-cabecera) */
.res-teaser {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  box-shadow: var(--block-shadow);
  border-radius: 13px;
  overflow: hidden;
  background: var(--background-color);
}
.res-teaser__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  box-sizing: border-box;
}
.res-teaser__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  max-width: 100%;
  /* Reserva hueco real para select + sesión; si colapsa, el label hace overflow sobre el primer chip */
  min-width: min(100%, 168px);
}
.res-teaser__head-flag {
  width: 36px;
  height: 27px;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: cover;
  align-self: center;
}
.res-teaser__head-main {
  flex: 1 1 auto;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.res-teaser__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 0;
}
.res-teaser__event-select-shell {
  position: relative;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}
/* Separador + flecha: se lee como desplegable a simple vista */
.res-teaser__event-select-shell::before {
  content: "";
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  max-height: 18px;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: 2;
}
.res-teaser__event-select-shell::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -1px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.95);
  pointer-events: none;
  z-index: 2;
}
.res-teaser__event-select-shell--plain::before {
  background: color-mix(in srgb, var(--light-gray) 75%, var(--title-color) 25%);
}
.res-teaser__event-select-shell--plain::after {
  border-top-color: var(--title-color);
}
.res-teaser__event-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin: 0;
  flex: 0 1 auto;
  align-self: center;
  min-width: 120px;
  width: auto;
  max-width: min(100%, 220px);
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  box-sizing: border-box;
  padding: 0 20px 0 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  line-height: 22px;
  border: none;
  cursor: pointer;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  color: #fff;
  background-color: #e10600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 9px 9px;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}
.res-teaser__event-select--in-shell {
  background-image: none !important;
  padding-right: 40px;
}
.res-teaser__event-select--in-shell:not(.res-teaser__event-select--plain) {
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.res-teaser__event-select--in-shell:not(.res-teaser__event-select--plain):hover {
  filter: brightness(1.06);
}
.res-teaser__event-select:focus {
  outline: 2px solid color-mix(in srgb, var(--title-color) 45%, transparent);
  outline-offset: 1px;
}
/* Sin color de categoría ni rojo kit: mismo aspecto que un select del tema */
.res-teaser__event-select.res-teaser__event-select--plain {
  color: var(--title-color);
  background-color: color-mix(in srgb, var(--background-color) 92%, var(--title-color) 5%);
  border: 1px solid color-mix(in srgb, var(--light-gray) 85%, var(--title-color) 15%);
  background-image: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.res-teaser__event-select.res-teaser__event-select--plain.res-teaser__event-select--in-shell:hover {
  filter: none;
  border-color: color-mix(in srgb, var(--light-gray) 60%, var(--title-color) 40%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.res-teaser__session {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-color);
  line-height: 1.2;
}
.res-teaser__track {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 220px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  box-sizing: border-box;
  padding: 0;
}
.res-teaser__chip {
  box-sizing: border-box;
  flex: 1 1 120px;
  min-width: min(100%, 118px);
  max-width: none;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  padding: 4px 8px;
  background: var(--background-color);
}
.res-teaser__chip-top {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.res-teaser__pos {
  font-size: 11px;
  font-weight: 800;
  color: var(--title-color);
  min-width: 1.1em;
  flex-shrink: 0;
}
.res-teaser__driver {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--title-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
/* !important: vencer .page-content img { width:100% } del tema (index mete el banner dentro de .page-content) */
.res-teaser__driver-flag {
  width: 14px !important;
  height: 10px !important;
  max-width: 14px !important;
  min-width: 14px !important;
  flex: 0 0 14px;
  flex-shrink: 0;
  border-radius: 2px;
  object-fit: cover;
  display: block;
  box-sizing: border-box;
  align-self: center;
}
.res-teaser__driver-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}
.res-teaser__driver-num {
  font-weight: 700;
  opacity: 0.85;
  color: var(--text-color);
  flex-shrink: 0;
}
.res-teaser__sub {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-color);
  opacity: 0.9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  line-height: 1.15;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.res-teaser__sub > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.res-teaser__sub > span:last-child {
  flex-shrink: 0;
}
.res-teaser__more {
  box-sizing: border-box;
  flex: 1 1 80px;
  min-width: min(100%, 88px);
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--title-color);
  text-decoration: none;
  border: 1px dashed var(--light-gray);
  border-radius: 6px;
  align-self: center;
}
.res-teaser__more:hover {
  opacity: 0.88;
  background: color-mix(in srgb, var(--background-color) 92%, var(--title-color) 5%);
}
.res-teaser--editorial {
  box-shadow: none;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: var(--background-color);
}
/* Grid: la columna identidad nunca invade el track (antes el select solapaba el 1º chip) */
.res-teaser--editorial .res-teaser__row {
  display: grid;
  grid-template-columns: minmax(0, min(42vw, 268px)) minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  row-gap: 10px;
}
.res-teaser--editorial .res-teaser__identity {
  grid-column: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  align-self: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.res-teaser--editorial .res-teaser__category-color {
  display: block;
  width: 4px;
  flex-shrink: 0;
  border-radius: 2px;
  align-self: flex-start;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  margin-top: 0;
  background-color: var(--category-accent, #5a6d82);
}
.res-teaser--editorial .res-teaser__head-flag {
  border-radius: 2px;
  width: 28px !important;
  max-width: 28px !important;
  height: 21px !important;
  max-height: 21px !important;
  min-width: 28px;
  object-fit: cover;
  align-self: center;
  flex-shrink: 0;
}
.res-teaser--editorial .res-teaser__head-main {
  min-width: 0;
  flex: 1 1 auto;
  width: auto;
  max-width: 100%;
}
.res-teaser--editorial .res-teaser__meta-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.res-teaser--editorial .res-teaser__meta-row .res-teaser__event-select-shell {
  flex: 1 1 auto;
  min-width: 0;
}
.res-teaser--editorial .res-teaser__event-select-shell .res-teaser__event-select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  line-height: 30px;
  font-size: 11px;
  padding: 0 42px 0 11px;
  border-radius: 8px;
  font-weight: 600;
}
.res-teaser--editorial .res-teaser__event-select-shell::before {
  right: 34px;
  max-height: 20px;
}
.res-teaser--editorial .res-teaser__event-select-shell::after {
  right: 12px;
  border-left-width: 5px;
  border-right-width: 5px;
  border-top-width: 7px;
}
/* Combobox portada: panel HTML (sin <select> nativo) */
.res-teaser.res-teaser--editorial:has([data-reb-event-select-custom]) {
  overflow: visible;
}
.res-teaser--editorial .res-teaser__identity:has([data-reb-event-select-custom]),
.res-teaser--editorial .res-teaser__head-main:has([data-reb-event-select-custom]) {
  overflow: visible;
}
.res-teaser--editorial .res-teaser__event-select-shell--custom {
  z-index: 5;
}
.res-teaser--editorial .res-teaser__event-select-shell--custom .res-teaser__event-select--custom-trigger {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  line-height: 30px;
  font-size: 11px;
  padding: 0 42px 0 11px;
  border-radius: 8px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.res-teaser--editorial .res-teaser__event-select-shell--custom .res-teaser__event-select__value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.res-teaser--editorial .res-teaser__event-select-shell--custom .res-teaser__event-select__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 80;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  max-height: min(50vh, 260px);
  overflow-y: auto;
  border-radius: 8px;
  background: var(--background-color);
  border: 1px solid color-mix(in srgb, var(--light-gray) 80%, var(--title-color) 20%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}
.res-teaser--editorial .res-teaser__event-select-shell--custom .res-teaser__event-select__opt {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--title-color);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;
}
.res-teaser--editorial .res-teaser__event-select-shell--custom .res-teaser__event-select__opt-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.res-teaser--editorial .res-teaser__event-select-shell--custom .res-teaser__event-select__opt-flag {
  width: 16px !important;
  height: 12px !important;
  max-width: 16px !important;
  min-width: 16px !important;
  flex: 0 0 16px;
  border-radius: 2px;
  object-fit: cover;
  display: block;
  box-sizing: border-box;
}
.res-teaser--editorial .res-teaser__event-select-shell--custom .res-teaser__event-select__opt-flag-sp {
  flex: 0 0 16px;
  width: 16px;
  height: 12px;
  box-sizing: border-box;
}
.res-teaser--editorial .res-teaser__event-select-shell--custom .res-teaser__event-select__opt-strip {
  width: 4px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 2px;
  background: color-mix(in srgb, var(--light-gray) 70%, var(--title-color) 30%);
}
.res-teaser--editorial .res-teaser__event-select-shell--custom .res-teaser__event-select__opt-strip.res-teaser__event-select__opt-strip--accent {
  background: var(--reb-opt-strip-bg);
}
.res-teaser--editorial .res-teaser__event-select-shell--custom .res-teaser__event-select__opt-text {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.res-teaser--editorial .res-teaser__event-select-shell--custom .res-teaser__event-select__opt-cat {
  flex-shrink: 0;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  opacity: 0.92;
}
.res-teaser--editorial .res-teaser__event-select-shell--custom .res-teaser__event-select__opt-evt {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.res-teaser--editorial .res-teaser__event-select-shell--custom .res-teaser__event-select__opt:hover,
.res-teaser--editorial .res-teaser__event-select-shell--custom .res-teaser__event-select__opt:focus-visible {
  background: color-mix(in srgb, var(--background-color) 88%, var(--title-color) 12%);
  outline: none;
}
.res-teaser--editorial .res-teaser__event-select-shell--custom .res-teaser__event-select__opt[aria-selected="true"] {
  background: color-mix(in srgb, var(--background-color) 82%, var(--title-color) 18%);
}
.dark .res-teaser--editorial .res-teaser__event-select-shell--custom .res-teaser__event-select__list,
body.dark .res-teaser--editorial .res-teaser__event-select-shell--custom .res-teaser__event-select__list {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.res-teaser--editorial .res-teaser__results {
  grid-column: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.res-teaser--editorial .res-teaser__track {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0 14px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.res-teaser--editorial .res-teaser__chip {
  border: none;
  border-radius: 0;
  padding: 4px 0;
  background: transparent;
  gap: 6px;
  flex: 1 1 0;
  min-width: 72px;
  max-width: none;
  flex-direction: row;
  align-items: stretch;
  overflow: visible;
  height: auto;
  min-height: 38px;
  max-height: none;
}
.res-teaser--editorial .res-teaser__team-color {
  width: 4px;
  flex-shrink: 0;
  border-radius: 2px;
  align-self: stretch;
  min-height: 30px;
  background-color: var(--team-color, #5a6d82);
}
.res-teaser--editorial .res-teaser__chip-inner {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.res-teaser--editorial .res-teaser__driver-flag {
  border-radius: 2px;
  width: 14px !important;
  height: 10px !important;
  max-width: 14px !important;
  min-width: 14px !important;
  flex: 0 0 14px;
  object-fit: cover;
  align-self: center;
}
.res-teaser--editorial .res-teaser__session {
  font-size: 9px;
  font-weight: 600;
  line-height: 1.15;
  opacity: 0.82;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.res-teaser--editorial .res-teaser__sub {
  align-items: baseline;
  gap: 8px;
  opacity: 0.92;
}
.res-teaser--editorial .res-teaser__sub > span:last-child {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 9px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--title-color) 65%, var(--text-color));
  letter-spacing: -0.02em;
}
.res-teaser--editorial .res-teaser__more {
  flex: 0 0 auto;
  align-self: center;
  white-space: nowrap;
  box-sizing: border-box;
  margin: 0;
  text-decoration: none;
  width: max-content;
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.res-teaser--editorial .res-teaser__more::after {
  content: "\2192";
  font-size: 0.95em;
  font-weight: 600;
  opacity: 0.88;
  line-height: 1;
}
.res-teaser--editorial a.res-teaser__more.button.button-fill.color-dark {
  background: color-mix(in srgb, var(--title-color) 14%, var(--background-color));
  color: var(--title-color);
  border: 1px solid color-mix(in srgb, var(--title-color) 32%, transparent);
  -webkit-text-fill-color: var(--title-color);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--title-color) 8%, transparent);
}
.res-teaser--editorial a.res-teaser__more.button.button-fill.color-dark:hover {
  opacity: 1;
  background: color-mix(in srgb, var(--title-color) 22%, var(--background-color));
  border-color: color-mix(in srgb, var(--title-color) 48%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--title-color) 12%, transparent);
}
.res-teaser--editorial a.res-teaser__more.button.button-fill.color-dark:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--title-color) 55%, transparent);
  outline-offset: 2px;
}
/* Oscuro: rojo kit solo si no es variante neutra ni color inline de API */
.dark .res-teaser__event-select:not([style*="background-color"]):not(.res-teaser__event-select--plain),
body.dark .res-teaser__event-select:not([style*="background-color"]):not(.res-teaser__event-select--plain) {
  background-color: #e10600 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}
.dark .res-teaser__event-select.res-teaser__event-select--plain,
body.dark .res-teaser__event-select.res-teaser__event-select--plain {
  background-color: color-mix(in srgb, var(--background-color) 94%, var(--title-color) 4%) !important;
  color: var(--title-color) !important;
  -webkit-text-fill-color: var(--title-color);
  border-color: var(--light-gray);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dark .res-teaser__event-select:not(.res-teaser__event-select--plain).res-teaser__event-select--in-shell,
body.dark .res-teaser__event-select:not(.res-teaser__event-select--plain).res-teaser__event-select--in-shell {
  border-color: rgba(255, 255, 255, 0.4) !important;
}
@media (min-width: 769px) {
  .res-teaser--editorial .res-teaser__row {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  }
}
@media (max-width: 768px) {
  .res-teaser__row {
    padding: 10px 12px;
    gap: 10px;
  }
  .res-teaser__identity {
    flex: 1 1 100%;
    min-width: 0;
  }
  .res-teaser__head-flag {
    width: 32px;
    height: 24px;
  }
  .res-teaser__track {
    flex: 1 1 100%;
  }
  .res-teaser--editorial .res-teaser__row {
    grid-template-columns: 1fr;
  }
  .res-teaser--editorial .res-teaser__identity,
  .res-teaser--editorial .res-teaser__results {
    grid-column: 1;
    max-width: 100%;
  }
  .res-teaser--editorial .res-teaser__track {
    flex-wrap: nowrap;
  }
  .res-teaser--editorial .res-teaser__results {
    min-width: 0;
  }
  .res-teaser__event-select {
    max-width: 100%;
  }
  /* Móvil: ocultar dorsal (#); se mantiene posición, bandera y nombre */
  .res-teaser__driver > .res-teaser__driver-num {
    display: none !important;
  }
}
