.header-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
}
.header-search:hover { background: var(--sage); }
.header-search svg, .explore-search svg, .explore-saved svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.hero-heart-echo {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(78%, 290px);
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 26%, transparent);
  opacity: calc(.16 + var(--beat, 0) * .42);
  transform: translate(-50%, -50%) scale(calc(.94 + var(--beat, 0) * .12));
}

.explore {
  position: relative;
  padding-top: clamp(26px, 4vw, 62px);
  scroll-margin-top: 14px;
}
.explore-anchor { position: absolute; top: 0; }
.explore-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(23, 49, 34, .06);
}
.explore-lead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(22px, 3.2vw, 46px);
  border-radius: 13px 13px 0 0;
  background: linear-gradient(115deg, #243f32, #324c38);
  color: #f6f7ec;
}
.explore-trace {
  position: absolute;
  z-index: -1;
  top: 8%;
  right: -2%;
  width: min(52%, 620px);
  height: auto;
  fill: none;
  stroke: #dce7ad;
  stroke-width: .7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .32;
  pointer-events: none;
}
.explore-trace-light { stroke-width: 2; stroke-dasharray: 14 86; stroke-dashoffset: 14; opacity: 0; }
.explore-in-view .explore-trace-light { animation: reading-trace 6s ease-in-out infinite; }
@keyframes reading-trace {
  0% { stroke-dashoffset: 14; opacity: 0; }
  10% { opacity: 1; }
  63% { stroke-dashoffset: -100; opacity: .8; }
  75%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
.explore-kicker { display: flex; align-items: center; gap: 8px; color: #dce7ad; }
.explore-kicker span { font-size: 16px; line-height: 1; }
.explore-lead h2 {
  margin: 9px 0 5px;
  font-size: clamp(38px, 4.5vw, 67px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.explore-lead h2 em { color: #dce7ad; }
.explore-total { font-size: 13px; color: #e0e6d5; }
.explore-search {
  display: flex;
  position: relative;
  align-items: center;
  gap: 13px;
  max-width: 720px;
  min-height: 60px;
  margin-top: 22px;
  padding: 0 14px 0 17px;
  color: var(--ink);
  background: var(--white);
  border-radius: 7px;
  box-shadow: 0 7px 22px rgba(10, 25, 16, .18);
}
.explore-search:focus-within { outline: 2px solid #e4ecb2; outline-offset: 4px; }
.explore-search input {
  min-width: 0;
  width: 100%;
  padding: 14px 0;
  background: transparent;
  color: inherit;
  border: 0;
  outline: none;
  font-size: 16px;
}
.explore-search input:focus-visible { outline: none; }
.explore-search input::placeholder { color: var(--muted); opacity: 1; }
.explore-search input::-webkit-search-cancel-button { appearance: none; }
.explore-key, .explore-clear {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  min-height: 30px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.explore-clear { font-size: 24px; min-height: 40px; }
.explore-search:has(.explore-clear:not([hidden])) .explore-key { display: none; }
.explore-clear:hover { background: var(--sage); }

.explore-body { padding: clamp(16px, 2.5vw, 34px) clamp(16px, 3.2vw, 46px) clamp(22px, 3.1vw, 43px); }
.explore-controls, .explore-filters, .explore-subhead, .explore-group-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.explore-controls { justify-content: space-between; column-gap: 18px; }
.explore-modes {
  display: inline-flex;
  align-items: stretch;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--sage);
}
.explore-modes button, .explore-saved {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.explore-modes button[aria-pressed="true"], .explore-saved[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
}
.explore-modes button:not([aria-pressed="true"]):hover, .explore-saved:not([aria-pressed="true"]):hover { background: var(--sage); }
.explore-modes button:focus-visible, .explore-saved:focus-visible { outline-offset: 2px; }
.explore-filters { row-gap: 8px; }
.explore-select {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 4px 6px 2px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.explore-select > span { color: var(--muted); font-size: 10px; line-height: 1.15; }
.explore-select select {
  min-height: 27px;
  min-width: 0;
  max-width: 200px;
  padding: 2px 16px 2px 0;
  font: 12px var(--sans);
  color: var(--ink);
  background: var(--white);
  border: 0;
  cursor: pointer;
}
.explore-select:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.explore-saved { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); }
.explore-saved svg { width: 14px; height: 14px; }
.explore-saved span { opacity: .77; }
.explore-subhead { justify-content: space-between; gap: 12px; margin: 23px 0 13px; }
.explore-subhead h3 { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.2; }
.explore-subhead .text-link { font-size: 11px; }
.explore-themes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}
.explore-theme {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 5px;
  overflow: hidden;
  min-height: 124px;
  padding: 12px;
  text-align: left;
  background: #283b31;
  color: #fdfdf3;
  border-radius: 7px;
}
.explore-theme::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 30, 22, .05) 10%, rgba(14, 30, 22, .86) 86%);
  content: '';
}
.explore-theme img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2, .65, .35, 1);
}
.explore-theme strong { display: block; font: 21px/1.1 var(--serif); text-wrap: balance; }
.explore-theme small { display: block; margin-top: 5px; font-size: 10px; color: #e7e9da; }
.explore-theme-arrow { flex: none; color: #e3edb4; transition: transform .25s; }
.explore-theme:disabled { cursor: default; opacity: .7; }
.explore-theme:not(:disabled):hover img { transform: scale(1.07); }
.explore-theme:not(:disabled):hover .explore-theme-arrow { transform: translate(2px, -3px); }

.explore-spillwords { margin-top: 12px; font-size: 11px; }
.explore-publishers { margin-top: 18px; border-top: 1px solid var(--line); }
.explore-publishers .explore-subhead { margin-top: 16px; }
.explore-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.explore-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 180px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #213d30;
  transition: border-color .2s, box-shadow .2s;
}
.explore-logo img { display: block; width: 100%; max-width: 140px; height: 30px; object-fit: contain; }
.explore-logo:hover { border-color: var(--accent); box-shadow: 0 3px 12px rgba(23, 49, 34, .1); }
.explore-source-name { font: 12px/1.4 var(--sans); }

.explore-results { margin-top: 18px; }
#explore-status, .explore-group-count { color: var(--muted); font-size: 12px; }
.explore-reset, .explore-group-action { padding: 2px 0; }
.explore-group-heading { margin: 18px 0 10px; }
.explore-group-heading .explore-group-action { margin-left: auto; font-size: 11px; }
.explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.explore-grid + .explore-group-heading { margin-top: 24px; }
.explore-result {
  position: relative;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.explore-result:focus-within { border-color: var(--accent); }
.explore-result:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(23, 49, 34, .08); transform: translateY(-2px); }
.explore-result-link {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 12px;
  min-height: 100%;
  padding: 12px;
  border-radius: inherit;
}
.explore-result-link.with-image { grid-template-columns: minmax(74px, 24%) minmax(0, 1fr) 22px; }
.explore-result-link:focus-visible { outline-offset: 2px; }
.explore-result-image {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(86px, 9vw, 112px);
  overflow: hidden;
  border-radius: 5px;
  background: var(--sage);
}
.explore-result-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .42s cubic-bezier(.2, .65, .35, 1);
}
.explore-result:hover .explore-result-image img { transform: scale(1.05); }
.explore-result-image.is-logo img { padding: 7px; background: #fff; object-fit: contain; }
.explore-image-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2px 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(19, 34, 24, .83);
  color: #fff;
  font-size: 7px;
  line-height: 1.25;
}
.explore-result-copy { min-width: 0; overflow-wrap: anywhere; }
.explore-result-meta {
  margin: 1px 0 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.explore-result-title { font: clamp(19px, 2.15vw, 28px)/1.13 var(--serif); letter-spacing: -.02em; }
.explore-result-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--muted);
  font: 12px/1.55 var(--sans);
}
.explore-result-copy [lang="ta"] {
  font-family: 'Noto Sans Tamil', 'Tamil Sangam MN', 'Nirmala UI', Latha, system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
}
.explore-result-title[lang="ta"] { font-size: clamp(16px, 1.75vw, 23px); }
.explore-result mark { color: var(--ink); background: var(--lime); border-radius: 2px; }
.dark .explore-result mark { color: #203024; }
.explore-result-arrow { text-align: center; color: var(--accent); transition: transform .22s; }
.explore-result:hover .explore-result-arrow { transform: translate(2px, -2px); }
.explore-bookmark {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 42px;
  height: 42px;
  z-index: 1;
  background: var(--paper);
}
.explore-bookmark:focus-visible { outline-offset: -3px; }
.explore-empty {
  padding: 23px 12px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  text-align: center;
  background: var(--paper);
}
.explore-empty > span { color: var(--accent); }
.explore-empty h3 { margin: 4px 0; font-size: 25px; }
.explore-empty p { font-size: 13px; color: var(--muted); }
.explore-more { display: flex; margin: 18px auto 0; font-size: 12px; }

@media (max-width: 980px) {
  .header-search { padding: 0 9px; }
  .header-search span { display: none; }
}
@media (max-width: 730px) {
  .explore-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explore-grid { grid-template-columns: minmax(0, 1fr); }
  .explore-theme { min-height: 108px; }
  .explore-trace { width: 66%; top: 2%; }
  .explore-search { min-height: 54px; }
  .explore-key { display: none; }
}
@media (max-width: 440px) {
  .explore { padding-inline: 12px; }
  .explore-search { gap: 8px; padding-inline: 10px; }
  .explore-search input::placeholder { font-size: 12px; }
  .explore-filters { gap: 7px; }
  .explore-select select { max-width: 178px; }
  .explore-theme strong { font-size: 18px; }
  .explore-logo { padding-inline: 8px; }
  .explore-logo img { max-width: 106px; height: 27px; }
  .explore-result-link { gap: 9px; padding: 10px; }
  .explore-result-link.with-image { grid-template-columns: 66px minmax(0, 1fr) 21px; }
  .explore-bookmark { right: 0; bottom: 2px; width: 39px; height: 40px; }
}
.motion-paused .explore-trace-light { animation: none; }
.motion-paused .explore-theme *, .motion-paused .explore-result, .motion-paused .explore-result * { transition: none; }
.motion-paused .explore-theme:hover *, .motion-paused .explore-result:hover, .motion-paused .explore-result:hover * { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .explore-trace-light { animation: none !important; }
  .explore-theme *, .explore-result, .explore-result * { transition: none; }
  .explore-theme:hover *, .explore-result:hover, .explore-result:hover * { transform: none; }
}
