/* TDN Search Polish — unlayered, beats theme layers */

html body .tdn-search-trigger {
  font-family: var(--font-head, inherit);
  letter-spacing: 0.06em;
}
html body .tdn-search-trigger kbd {
  font-size: 0.65rem;
  opacity: 0.7;
}

html body .tdn-palette--polish {
  inline-size: min(44rem, 94vw);
  margin-block-start: 10vh;
  border-radius: 0;
  border: 1px solid var(--rule, #e4e4e9);
  box-shadow: 0 24px 60px rgb(12 12 12 / 0.28);
  background: var(--bg, #fff);
}
html body .tdn-palette--polish::backdrop {
  background: rgb(12 12 12 / 0.62);
  backdrop-filter: blur(6px);
}
html body .tdn-palette__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
html body .tdn-palette--polish input {
  font-family: var(--font-ui, inherit);
  font-size: 1.125rem;
  font-weight: 500;
  min-block-size: 3.75rem;
  padding-inline: 1.5rem;
  border-block-end: 2px solid var(--fg, #0c0c0c);
  background: var(--bg, #fff);
}
html body .tdn-palette__results {
  padding: 0.35rem 0.5rem 0.5rem;
  max-block-size: 58vh;
}
html body .tdn-palette__results li {
  list-style: none;
}
html body .tdn-palette__label-row {
  padding: 0.65rem 1rem 0.25rem;
  font-family: var(--font-head, inherit);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint, #8b8b95);
}
html body .tdn-palette__results li a,
html body .tdn-palette__recent {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 0;
  min-height: 0;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
html body .tdn-palette__recent {
  grid-template-columns: 1fr;
  font-size: 0.95rem;
}
html body .tdn-palette__results li a:hover,
html body .tdn-palette__results li[aria-selected="true"] a,
html body .tdn-palette__recent:hover,
html body .tdn-palette__results li[aria-selected="true"] .tdn-palette__recent {
  background: var(--surface-hover, #f2f2f5);
  box-shadow: inset 3px 0 0 var(--tdn-red, #e51a3e);
}
html body .tdn-palette__thumb {
  inline-size: 4.5rem;
  block-size: 3rem;
  object-fit: cover;
  background: var(--bg-sunken, #f6f6f8);
}
html body .tdn-palette__thumb--empty { display: block; }
html body .tdn-palette__meta {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
html body .tdn-palette__kicker {
  font-family: var(--font-ui, inherit);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--tdn-red, #e51a3e);
}
html body .tdn-palette__title {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
html body .tdn-palette__title mark {
  background: color-mix(in srgb, var(--tdn-gold, #c8922a) 35%, transparent);
  color: inherit;
  padding: 0;
}
html body .tdn-palette__hint {
  font-size: 0.7rem;
  color: var(--fg-faint, #8b8b95);
}
html body .tdn-palette__empty {
  padding: 1.75rem 1rem;
  font-size: 0.9rem;
}
html body .tdn-palette__empty--loading { color: var(--fg-muted, #5d5d67); }
html body .tdn-palette__foot {
  border-block-start: 1px solid var(--rule, #e4e4e9);
  padding: 0.7rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
}
html body .tdn-palette__foot a { color: var(--tdn-red, #e51a3e); }

html[data-theme="dark"] body .tdn-palette--polish {
  background: var(--surface, #131316);
  border-color: var(--rule, #2b2b32);
}
html[data-theme="dark"] body .tdn-palette--polish input {
  background: var(--surface, #131316);
}

/* Search results page */
html body.search .tdn-archive__title,
html body.search-results .tdn-archive__title {
  font-family: var(--font-head, inherit);
  letter-spacing: 0.04em;
}
html body.search .tdn-searchform input[type="search"],
html body.search-results .tdn-searchform input[type="search"] {
  border-radius: 0;
  border-color: var(--fg, #0c0c0c);
  min-height: 2.75rem;
}
html body.search .tdn-card__headline,
html body.search-results .tdn-card__headline {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 400;
}

html body .tdn-megamenu__search input,
html body .tdn-drawer__search input {
  border-radius: 0;
}
