.tv-tile .et-tile-link { font-weight: 700; }

.entity-trends { container: entity-trends / inline-size; }
.entity-trends .tv-bar-label, .entity-trends .tv-section-head p, .entity-trends .tv-card-help,
.entity-trends .tv-header p, .entity-trends .tv-tile-note, .et-side-help, .et-notice, .et-heat-label {
  word-break: keep-all; overflow-wrap: anywhere;
}

.et-search {
  width: min(680px, 100%); position: relative; z-index: 30; margin: 18px 0 24px;
  scroll-margin-top: calc(var(--chrome-h, 98px) + 12px);
}
.et-search-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
.et-combobox { position: relative; }
.et-search-input {
  width: 100%; min-height: 44px; padding: 9px 46px 9px 13px; border: 1px solid var(--border);
  border-radius: 9px; background: var(--input-bg); color: var(--text); font-size: 14px; outline: none;
}
.et-search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.et-search-input:disabled { opacity: .6; cursor: progress; }
.et-combo-toggle {
  position: absolute; top: 5px; right: 5px; width: 34px; height: 34px; display: inline-flex;
  align-items: center; justify-content: center; border: 0; border-radius: 7px;
  background: transparent; color: var(--muted); font-size: 14px; cursor: pointer;
}
.et-combo-toggle:hover { background: var(--hover-surface); color: var(--text); }
.et-combo-toggle[aria-expanded="true"] .ui-chevron { transform: rotate(-90deg); }
.et-combo-popup {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); max-height: min(440px, 58vh);
  display: flex; flex-direction: column; overflow: hidden; padding: 5px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card); box-shadow: 0 14px 40px var(--shadow);
}
.et-combo-popup[hidden] { display: none; }
.et-combo-count {
  flex: 0 0 auto; padding: 7px 10px 8px; border-bottom: 1px solid var(--border);
  color: var(--muted); font-size: 11px; font-weight: 700;
}
.et-combo-list {
  min-height: 0; margin: 0; padding: 4px 0 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; list-style: none;
}
.et-option {
  min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 10px; border-radius: 7px; color: var(--text); cursor: pointer;
}
.et-option:hover, .et-option.is-active { background: var(--accent-soft); }
.et-option.is-active { box-shadow: inset 3px 0 var(--accent); }
.et-option-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.et-option-main strong { font-size: 13.5px; font-weight: 650; }
.et-option-context {
  max-width: 440px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11.5px;
}
.et-option-meta { flex: 0 0 auto; color: var(--muted); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.et-combo-list[hidden], .et-combo-empty[hidden] { display: none; }
.et-combo-empty { margin: 0; padding: 22px 12px; color: var(--muted); font-size: 13px; text-align: center; }
.entity-trends .tv-header h1:focus { outline: none; }
.entity-trends .tv-header h1:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }

.et-notice {
  width: min(680px, 100%); margin: -8px 0 18px; padding: 11px 13px; border: 1px solid var(--accent-soft-border);
  border-radius: 9px; background: var(--accent-soft); color: var(--text); font-size: 12px; line-height: 1.55;
}

.et-profile {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 32px; align-items: start;
  margin: 0 0 12px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 13px;
  background: linear-gradient(135deg, var(--card), color-mix(in srgb, var(--accent-soft) 55%, var(--card)));
}
.et-profile.has-side { grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); }
.et-profile-main { min-width: 0; grid-column: 1; }
.et-profile-side { min-width: 0; grid-column: 2; }
.et-eyebrow {
  display: inline-flex; margin-bottom: 8px; padding: 2px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 10.5px; font-weight: 750;
}
.et-name { margin: 0; font-size: clamp(21px, 2vw, 27px); line-height: 1.3; letter-spacing: -.5px; overflow-wrap: anywhere; }
.et-name:focus { outline: none; }
.et-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.et-affiliation { margin: 7px 0 0; font-size: 13px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.et-merged { color: var(--text); font-size: 12.5px; }
.et-aliases { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.et-aliases-label { font-weight: 650; }
.et-alias-list { margin: 6px 0 4px; padding-left: 18px; max-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
.et-alias-list li { margin: 1px 0; }
.et-split-note {
  margin: 10px 0 0; padding-left: 9px; border-left: 2px solid var(--border);
  font-size: 11px; line-height: 1.55; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere;
}
.et-meta { margin: 9px 0 0; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.et-link { color: var(--accent); font-weight: 650; text-decoration: none; }
.et-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.et-link:focus-visible, .et-paper-title:focus-visible, .et-chip:focus-visible, .et-text-button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
.et-text-button {
  padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 650; cursor: pointer;
  scroll-margin-top: calc(var(--chrome-h, 98px) + 12px);
}
.et-text-button:hover { text-decoration: underline; }
.et-side-title { margin: 2px 0 8px; font-size: 11px; font-weight: 700; color: var(--muted); }
.et-side-help { margin: 8px 0 0; font-size: 10.5px; line-height: 1.55; color: var(--muted); }

.et-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.et-chip {
  max-width: 100%; min-height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--input-bg); color: var(--text);
  font-size: 11.5px; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere;
}
a.et-chip:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.et-chip-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 3px; }
.et-chip-sub { color: var(--muted); font-size: 10.5px; }
a.et-chip:hover .et-chip-sub { color: inherit; }
.et-flat-note { margin: 0 0 9px; font-size: 10.5px; color: var(--muted); }
.et-chips + .et-flat-note { margin: 9px 0 0; }
.et-other-name { margin-top: 2px; color: var(--muted); }
.et-plain-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.et-record-list .et-plain-list li { display: flex; flex-direction: column; gap: 1px; padding: 6px 0 6px 10px; border-left: 2px solid var(--border); }
.et-record-name { font-size: 12px; font-weight: 650; color: var(--text); overflow-wrap: anywhere; }
.et-record-sub { font-size: 10.5px; color: var(--muted); }
.et-more-row { margin-top: 6px; }

.et-flow-card { padding-bottom: 14px; }
.et-columns {
  position: relative; display: grid; grid-template-columns: repeat(var(--et-columns, 10), minmax(0, 1fr));
  column-gap: 4px; height: 220px;
}
.et-columns::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 22px; border-bottom: 1px solid var(--border);
  pointer-events: none;
}
.et-col { min-width: 0; display: flex; flex-direction: column; }
.et-col-track {
  flex: 1 1 auto; min-height: 0; display: flex; align-items: flex-end; justify-content: center; padding-top: 20px;
}
.et-col-bar {
  position: relative; width: min(100%, 40px); min-height: 3px; display: flex; flex-direction: column; gap: 2px;
}
.et-col-value {
  position: absolute; left: 50%; bottom: 100%; margin-bottom: 4px; transform: translateX(-50%);
  color: var(--muted); font-size: 10px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.et-col-part { flex: 1 1 0; min-height: 2px; }
.et-col-part:first-child { border-radius: 4px 4px 0 0; }
.et-col-part.is-dom { background: var(--tv-dom); }
.et-col-part.is-intl { background: var(--tv-intl); }
.et-col.is-empty .et-col-bar { display: none; }
.et-col:hover .et-col-part { filter: brightness(1.08); }
.et-col-year {
  flex: 0 0 22px; color: var(--muted); font-size: 10px; line-height: 22px; text-align: center;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.et-heat-card { margin-top: 12px; }
.et-heat-wrap { position: relative; overflow-x: auto; overscroll-behavior-x: contain; }
.et-heat { width: 100%; border-collapse: separate; border-spacing: 2px; font-variant-numeric: tabular-nums; }
.et-heat th {
  padding: 3px 4px; color: var(--muted); font-size: 10px; font-weight: 650; text-align: center; white-space: nowrap;
  background: none; border: 0; text-transform: none; letter-spacing: 0;
}
.et-heat .et-heat-label {
  width: 1%; padding-right: 14px; color: var(--text); font-size: 11px; font-weight: 600;
  text-align: left; white-space: nowrap;
}
.et-heat-label .et-chip-dot { display: inline-block; margin-right: 6px; vertical-align: 1px; }
.et-year-short { display: none; }
.et-heat-cell {
  min-width: 28px; height: 26px; padding: 0 3px; border: 0; border-radius: 4px;
  background: var(--hover-surface); color: var(--text); font-size: 10.5px; font-weight: 650; text-align: center;
}
.et-heat-cell.is-filled { background: color-mix(in srgb, var(--tv-s1) var(--et-heat-mix, 30%), var(--card)); }

.et-papers-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin-bottom: 8px;
}
.et-papers-summary { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.et-paper-list { margin: 0; padding: 0; list-style: none; }
.et-paper {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: start; gap: 4px 14px;
  padding: 12px 10px; border-top: 1px solid var(--border); border-radius: 0;
}
.et-paper:first-child { border-top: 0; }
.et-paper.is-selected { background: var(--accent-soft); border-radius: 8px; box-shadow: inset 3px 0 var(--accent); }
.et-paper.is-selected + .et-paper { border-top-color: transparent; }
.et-paper-date { padding-top: 2px; color: var(--accent); font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.et-paper-body { min-width: 0; }
.et-paper-title {
  color: var(--text); font-size: 13px; font-weight: 650; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere;
}
.et-paper-title:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.et-paper-meta {
  display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5;
}
.et-paper-authors strong { color: var(--text); font-weight: 700; }
.et-paper-cited { color: var(--text); font-weight: 600; }
.et-paper > .oa-badge { margin-top: 2px; }
.et-papers-more { display: flex; justify-content: center; margin-top: 12px; }
.et-papers-more:empty { display: none; }
@media (max-width: 900px) {
  .et-search-input { font-size: 16px; }
  .et-option { min-height: 54px; }
  .et-combo-popup { max-height: min(440px, 45vh); max-height: min(440px, 45dvh); }
}

@container entity-trends (min-width: 901px) {
  .entity-trends .tv-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container entity-trends (min-width: 901px) and (max-width: 1179px) {
  .entity-trends .tv-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entity-trends .tv-grid-3 > :first-child { grid-column: 1 / -1; }
  .entity-trends .tv-tiles.is-row.is-five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .entity-trends .tv-tiles.is-row.is-five > .tv-tile { grid-column: span 2; }
  .entity-trends .tv-tiles.is-row.is-five > .tv-tile:nth-child(n+4) { grid-column: span 3; }
}
@container entity-trends (max-width: 900px) {
  .entity-trends .tv-grid-2, .entity-trends .tv-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .entity-trends .tv-tiles.is-row, .entity-trends .tv-tiles.is-row.is-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entity-trends .tv-tiles.is-row.is-five > .tv-tile:first-child { grid-column: 1 / -1; }
}
@container entity-trends (max-width: 760px) {
  .et-profile, .et-profile.has-side { grid-template-columns: minmax(0, 1fr); padding: 17px 16px; }
  .et-profile-side { grid-column: 1; padding-top: 14px; border-top: 1px solid var(--border); }
}
@container entity-trends (max-width: 640px) {
  .entity-trends .tv-tile { padding: 11px 12px 11px 15px; }
  .entity-trends .tv-tile dd:not(.tv-tile-note) { font-size: 20px; }
  .et-heat .et-heat-label { width: auto; min-width: 104px; padding-right: 8px; white-space: normal; }
  .et-heat-cell { min-width: 24px; }
  .et-columns.is-dense .et-col-year.is-odd { visibility: hidden; }
  .et-paper { grid-template-columns: 48px minmax(0, 1fr); padding-inline: 6px; }
  .et-paper > .oa-badge { grid-column: 2; justify-self: start; }
  .et-option { flex-direction: column; align-items: stretch; justify-content: center; gap: 3px; }
  .et-option-main { width: 100%; }
  .et-option-context { max-width: 100%; }
}
@container entity-trends (max-width: 460px) {
  .et-columns { column-gap: 2px; height: 190px; }
  .entity-trends .tv-tile dd:not(.tv-tile-note) { font-size: 17px; }
  .et-heat { border-spacing: 1px; }
  .et-heat .et-heat-label { min-width: 76px; max-width: 108px; padding-right: 6px; font-size: 10px; line-height: 1.35; }
  .et-heat-label .et-chip-dot { display: none; }
  .et-heat-cell { min-width: 22px; height: 24px; padding: 0 1px; font-size: 10px; }
  .et-heat th { padding: 3px 1px; }
  .et-year-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .et-year-short { display: inline; }
  .et-columns.is-crowded:not(.is-packed) .et-col-year.is-odd { visibility: hidden; }
  .et-columns.is-packed .et-col-year.is-minor { visibility: hidden; }
  .et-col-value { font-size: 9px; }
}
