/* ═══════════════════════════════════════════════════════════════════
   INDDN — search results (SERP) skin.

   Ports `static-html/search.html` onto the live Laravel SERP, using the
   same two-layer approach that worked for the home page:

   1. TOKEN REMAP — `public/css/search.css` draws everything from a small
      `:root` set (--bg, --surface, --border, --text, --link …). Pointing
      those at the INDDN tokens re-colours every existing widget in one
      move, with no markup churn and no risk to the Blade conditionals.

   2. COMPONENT SKIN — targeted rules for what the prototype actually
      redesigns: SERP header, result-type tabs, tools panel, result cards,
      the AI overview (KhojSaar), People-also-ask, media cards, the right
      sidebar and pagination.

   Loaded AFTER search.css. Requires inddn-theme.css.
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Token remap ───────────────────────────────────────────────── */
body.inddn-serp {
  --bg: var(--ind-background);
  --surface: var(--ind-cream);
  --surface-2: var(--ind-muted);
  --border: var(--ind-border);
  --border-strong: color-mix(in oklab, var(--ind-border) 60%, var(--ind-foreground) 15%);
  --accent: var(--ind-indigoblue);
  --accent-hover: var(--ind-royal);
  --accent-light: var(--ind-accent);
  --text: var(--ind-foreground);
  --text-2: color-mix(in oklab, var(--ind-foreground) 80%, var(--ind-background));
  --muted: var(--ind-muted-foreground);
  --muted-2: var(--ind-muted-foreground);
  --link: var(--ind-indigoblue);
  --link-hover: var(--ind-saffron-ink);
  --link-visited: var(--ind-visited);
  --mark-bg: color-mix(in oklab, var(--ind-gold) 35%, var(--ind-card));
  --mark-text: var(--ind-gold-ink);
  --green: var(--ind-green-ink);

  --radius: 0.625rem;
  --radius-sm: 0.375rem;
  --shadow-sm: var(--ind-shadow-sm);
  --shadow: var(--ind-shadow-sm);
  --shadow-md: var(--ind-shadow-md);

  --font: var(--ind-font-sans);

  background: var(--ind-background);
  color: var(--ind-foreground);
  font-family: var(--ind-font-sans);
}

body.inddn-serp h1,
body.inddn-serp h2,
body.inddn-serp h3 {
  font-family: var(--ind-font-display);
  font-weight: 600;
}

/* Query-term highlighting is opt-in, gated on `body.hl-on`. The mark colours
   live in the SERP layout's inline styles (layouts/search.blade.php) so the
   light/dark values stay in one place; the `.hl-on` class is applied in
   public/js/inddn-ui.js from the saved "Highlight matches" preference. */
body.inddn-serp:not(.hl-on) mark {
  background: transparent;
  color: inherit;
}

/* ── 2. SERP header ───────────────────────────────────────────────── */
body.inddn-serp .s-nav {
  display: block;
  padding: 0;
  background-color: color-mix(in oklab, var(--ind-card) 95%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 50;
}

body.inddn-serp .serp-head {
  border-bottom: none;
}
body.inddn-serp .serp-head-inner {
  display: grid;
  /* Trailing auto column holds the actions cluster (desktop) or the
     "more" menu button (mobile); only one of the two is ever displayed. */
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
}
@media (min-width: 1024px) {
  body.inddn-serp .serp-head-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
  }
}

/* Compact wordmark */
body.inddn-serp .serp-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  text-decoration: none;
}
body.inddn-serp .serp-brand .ind-wordmark { font-size: 27px; }
body.inddn-serp .serp-brand-tag {
  margin-top: 2px;
  display: none;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ind-muted-foreground);
}
@media (min-width: 640px) {
  body.inddn-serp .serp-brand-tag { display: block; }
}

/* Search pill */
body.inddn-serp .search-box-wrap,
body.inddn-serp .search-box-wrap.small {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0 !important;
  width: 100%;
  height: 46px;
  padding: 0 6px 0 16px;
  background: var(--ind-background);
  border: 1px solid var(--ind-border);
  border-radius: 9999px;
  box-shadow: var(--ind-shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
body.inddn-serp .search-box-wrap:focus-within {
  border-color: var(--ind-saffron);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ind-saffron) 16%, transparent);
}
body.inddn-serp .search-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--ind-muted-foreground);
}
body.inddn-serp .search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--ind-font-sans);
  font-size: 15px;
  color: var(--ind-foreground);
}
body.inddn-serp .search-input::placeholder { color: var(--ind-muted-foreground); }
body.inddn-serp .voice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 32px;
  border: none;
  border-radius: 9999px;
  background: none;
  color: var(--ind-muted-foreground);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
body.inddn-serp .voice-btn:hover {
  color: var(--ind-saffron);
  background: var(--ind-accent);
}
body.inddn-serp .search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border: none;
  border-radius: 9999px;
  background: var(--ind-saffron);
  color: var(--ind-saffron-foreground);
  font-family: var(--ind-font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
body.inddn-serp .search-btn:hover { background: var(--ind-indigoblue); }

/* Header utilities */
body.inddn-serp .serp-head-actions {
  display: none;
  align-items: center;
  gap: 6px;
}
@media (min-width: 1024px) {
  body.inddn-serp .serp-head-actions { display: flex; }
}
body.inddn-serp .serp-icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: var(--ind-radius);
  background: none;
  color: var(--ind-muted-foreground);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
body.inddn-serp .serp-icon-btn:hover {
  background: var(--ind-accent);
  color: var(--ind-indigoblue);
}
body.inddn-serp .serp-signin {
  margin-left: 4px;
  padding: 6px 16px;
  border: 1px solid color-mix(in oklab, var(--ind-indigoblue) 25%, transparent);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ind-indigoblue);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
body.inddn-serp .serp-signin:hover {
  background: var(--ind-indigoblue);
  color: var(--ind-primary-foreground);
}

/* Mobile "more" menu — exposes settings / dark mode / platform / account
   below 1024px, where the full actions cluster is hidden. */
body.inddn-serp .serp-head-more { position: relative; display: flex; align-items: center; }
@media (min-width: 1024px) {
  body.inddn-serp .serp-head-more { display: none; }
}
body.inddn-serp .serp-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  min-width: 214px;
  padding: 6px;
  background: var(--ind-popover);
  border: 1px solid var(--ind-border);
  border-radius: 14px;
  box-shadow: var(--ind-shadow-lg);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
body.inddn-serp .serp-more-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
body.inddn-serp .serp-more-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 9px;
  background: none;
  font-family: var(--ind-font-sans);
  font-size: 0.9rem;
  color: var(--ind-foreground);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
body.inddn-serp .serp-more-item:hover,
body.inddn-serp .serp-more-item:focus-visible {
  background: var(--ind-accent);
  color: var(--ind-indigoblue);
  outline: none;
}
body.inddn-serp .serp-more-item .material-symbols-outlined {
  font-size: 1.2rem;
  color: var(--ind-muted-foreground);
}
body.inddn-serp .serp-more-item:hover .material-symbols-outlined,
body.inddn-serp .serp-more-item:focus-visible .material-symbols-outlined { color: var(--ind-indigoblue); }
body.inddn-serp .serp-more-item-danger:hover,
body.inddn-serp .serp-more-item-danger:focus-visible {
  background: color-mix(in oklab, var(--ind-destructive) 12%, var(--ind-card));
  color: var(--ind-red-ink);
}
body.inddn-serp .serp-more-item-danger:hover .material-symbols-outlined { color: var(--ind-red-ink); }
body.inddn-serp .serp-more-divider { height: 1px; margin: 6px 4px; background: var(--ind-border); }

/* Suggestions dropdown */
body.inddn-serp .suggestions-box {
  background: var(--ind-popover);
  border: 1px solid var(--ind-border);
  border-radius: 0.875rem;
  box-shadow: var(--ind-shadow-lg);
  overflow: hidden;
  padding: 6px;
}
body.inddn-serp .suggestion-item {
  border-radius: var(--ind-radius);
  color: var(--ind-foreground);
}
body.inddn-serp .suggestion-item:hover,
body.inddn-serp .suggestion-item.active { background: var(--ind-accent); }
body.inddn-serp .suggestion-domain,
body.inddn-serp .suggestion-type { color: var(--ind-muted-foreground); }

/* ── 3. Result-type tabs ──────────────────────────────────────────── */
body.inddn-serp .search-tabs {
  background-color: transparent;
  border-bottom: 1px solid var(--ind-border);
  position: static;
}
body.inddn-serp .search-tabs-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
body.inddn-serp .search-tabs-inner::-webkit-scrollbar { display: none; }

body.inddn-serp .search-tab {
  flex-shrink: 0;
  padding: 10px 12px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 0.875rem;
  color: var(--ind-muted-foreground);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
body.inddn-serp .search-tab:hover { color: var(--ind-foreground); }
body.inddn-serp .search-tab.active {
  border-bottom-color: var(--ind-saffron);
  font-weight: 600;
  color: var(--ind-indigoblue);
}

/* AI Mode gets the saffron→royal gradient wordmark treatment */
body.inddn-serp .ai-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
body.inddn-serp .ai-mode-tab i {
  color: var(--ind-saffron);
  transition: transform 0.2s;
}
body.inddn-serp .ai-mode-tab:hover i { transform: rotate(12deg); }
body.inddn-serp .ai-mode-tab.active {
  border-bottom-color: var(--ind-saffron);
}
body.inddn-serp .ai-tab-text {
  background: linear-gradient(to right, var(--ind-saffron), var(--ind-royal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Tools toggle */
body.inddn-serp .search-tools-wrap { margin-left: auto; padding-left: 8px; }
body.inddn-serp .search-tools-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
  padding: 6px 14px;
  border: 1px solid var(--ind-border);
  border-radius: 9999px;
  background: var(--ind-card);
  font-family: var(--ind-font-sans);
  font-size: 0.85rem;
  color: var(--ind-muted-foreground);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
body.inddn-serp .search-tools-btn:hover {
  border-color: color-mix(in oklab, var(--ind-saffron) 60%, transparent);
  color: var(--ind-foreground);
}
body.inddn-serp .search-tools-btn.has-filter,
body.inddn-serp .search-tools-btn[aria-expanded="true"] {
  border-color: var(--ind-saffron);
  background: var(--ind-accent);
  font-weight: 600;
  color: var(--ind-indigoblue);
}
body.inddn-serp .tools-chevron { font-size: 0.7rem; transition: transform 0.2s; }
body.inddn-serp .search-tools-btn[aria-expanded="true"] .tools-chevron { transform: rotate(180deg); }

/* ── 4. Tools panel ───────────────────────────────────────────────── */
body.inddn-serp .tools-panel {
  display: block;
  max-height: 0;
  overflow: hidden;
  background-color: transparent;
  border: none;
  border-top: 1px solid transparent;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, border-color 0.3s;
}
body.inddn-serp .tools-panel.open {
  max-height: 40rem;
  opacity: 1;
  border-top-color: var(--ind-border);
}
body.inddn-serp .tools-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
}
body.inddn-serp .tools-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
body.inddn-serp .tools-label {
  width: 4.75rem;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ind-muted-foreground);
}
body.inddn-serp .tools-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--ind-border);
  border-radius: 9999px;
  background: var(--ind-card);
  font-size: 13px;
  color: var(--ind-muted-foreground);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
body.inddn-serp .tools-chip:hover {
  border-color: color-mix(in oklab, var(--ind-saffron) 60%, transparent);
  color: var(--ind-foreground);
}
body.inddn-serp .tools-chip.active {
  border-color: var(--ind-saffron);
  background: color-mix(in oklab, var(--ind-saffron) 15%, var(--ind-card));
  font-weight: 600;
  color: var(--ind-indigoblue);
}
body.inddn-serp .tools-count {
  padding: 0 6px;
  border-radius: 9999px;
  background: var(--ind-accent);
  font-size: 11px;
  font-weight: 700;
  color: var(--ind-muted-foreground);
}
/* Favicon-ish initial disc on Top Sites chips */
body.inddn-serp .tools-site-badge {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, var(--ind-saffron), var(--ind-gold));
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ind-saffron-foreground);
}
body.inddn-serp .tools-reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding: 4px 10px;
  border: none;
  border-radius: 9999px;
  background: none;
  font-family: inherit;
  font-size: 12px;
  color: var(--ind-muted-foreground);
  text-decoration: none;
  transition: color 0.15s;
}
body.inddn-serp .tools-reset:hover { color: var(--ind-saffron); }
body.inddn-serp .tools-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: var(--ind-muted-foreground);
}
body.inddn-serp .tools-remove { color: var(--ind-muted-foreground); text-decoration: none; }
body.inddn-serp .tools-remove:hover { color: var(--ind-destructive); }

/* Tricolour rule closing the header */
body.inddn-serp .serp-tiranga { height: 3px; }

/* ── 4b. Narrow-screen header ─────────────────────────────────────────
   Below ~700px the brand + a full-width "Search" button squeezed the input
   down to a couple of dozen pixels. Shrink the wordmark and drop the button
   label to an icon, as the prototype does. */
@media (max-width: 700px) {
  body.inddn-serp .serp-head-inner {
    gap: 8px;
    padding: 10px 12px;
  }
  body.inddn-serp .serp-brand .ind-wordmark { font-size: 20px; }
  body.inddn-serp .search-box-wrap,
  body.inddn-serp .search-box-wrap.small { padding: 0 5px 0 12px; gap: 4px; }
  body.inddn-serp .search-btn { padding: 0 12px; }
  body.inddn-serp .search-btn-label { display: none; }
  body.inddn-serp .search-tabs-inner,
  body.inddn-serp .tools-inner { padding-inline: 12px; }
  body.inddn-serp .results-layout { padding: 0 12px; }
  body.inddn-serp .tools-label { width: auto; }
}
@media (max-width: 420px) {
  /* At phone widths the chakra and wordmark cost more than they earn */
  body.inddn-serp .serp-brand .ind-wordmark { font-size: 17px; }
}

/* ── 5. Page layout ───────────────────────────────────────────────── */
body.inddn-serp .results-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
body.inddn-serp .results-meta {
  font-size: 0.78rem;
  color: var(--ind-muted-foreground);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
}
body.inddn-serp .results-meta strong,
body.inddn-serp .results-meta .rq { color: var(--ind-foreground); font-weight: 600; }
/* Count pinned to the top of the column (Google placement) */
body.inddn-serp .results-meta-top { margin-bottom: 0.85rem; }

/* Two-column: results + sidebar */
body.inddn-serp .all-results-with-ai {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
@media (min-width: 1024px) {
  body.inddn-serp .all-results-with-ai {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
body.inddn-serp .all-results-col {
  min-width: 0;
  padding: 1.25rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}
body.inddn-serp .all-ai-panel {
  position: static;
  padding-top: 1.25rem;
}
@media (min-width: 1024px) {
  body.inddn-serp .all-ai-panel {
    position: sticky;
    top: 150px;
    align-self: start;
  }
}
body.inddn-serp .serp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Results column children keep a readable measure */
body.inddn-serp .results-main { padding: 1.25rem 0 2.5rem; }
body.inddn-serp .results-main > .results-list,
body.inddn-serp .results-main > .did-you-mean,
body.inddn-serp .results-main > .ai-skip-hint { max-width: 44rem; }

/* ── 6. Result cards ──────────────────────────────────────────────── */
body.inddn-serp .results-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}
body.inddn-serp .result-item {
  position: relative;
  max-width: 44rem;
  margin: 0 -0.75rem;
  padding: 0.7rem 0.75rem;
  border-bottom: none;
  border-radius: 0.75rem;
  transition: background 0.15s, box-shadow 0.15s;
}
body.inddn-serp .result-item:hover {
  background: var(--ind-card);
  box-shadow: var(--ind-shadow-sm);
}
body.inddn-serp .result-item:first-child { padding-top: 0.7rem; }

/* Source line: avatar disc + name + breadcrumb */
body.inddn-serp .result-domain {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ind-muted-foreground);
}
body.inddn-serp .domain-favicon,
body.inddn-serp .domain-favicon-img {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid var(--ind-border);
  background: linear-gradient(to bottom right, var(--ind-cream), var(--ind-accent));
  font-family: var(--ind-font-display);
  font-size: 13px;
  color: var(--ind-indigoblue);
  object-fit: contain;
}
body.inddn-serp .domain-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ind-foreground);
}
body.inddn-serp .domain-link:hover { color: var(--ind-indigoblue); }
body.inddn-serp .result-url,
body.inddn-serp .result-breadcrumb {
  font-size: 12px;
  color: var(--ind-muted-foreground);
}
body.inddn-serp .result-breadcrumb-sep { color: var(--ind-border); }

body.inddn-serp .result-title {
  margin-top: 6px;
  font-family: var(--ind-font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
}
body.inddn-serp .result-title a {
  color: var(--ind-indigoblue);
  text-decoration: none;
  text-underline-offset: 4px;
}
body.inddn-serp .result-title a:hover { text-decoration: underline; }
body.inddn-serp .result-title a:visited { color: var(--ind-visited); }

body.inddn-serp .result-snippet {
  margin-top: 4px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ind-muted-foreground);
}
body.inddn-serp .result-date {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ind-muted-foreground);
}

/* Verified tick for gov/edu sources */
body.inddn-serp .serp-verified {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ind-green-ink);
}

/* Sitelinks under the top hit — saffron rule, per the prototype */
body.inddn-serp .sitelinks-grid {
  gap: 6px 24px;
  padding: 0 0 0 16px;
  background: transparent;
  border: none;
  border-left: 2px solid color-mix(in oklab, var(--ind-saffron) 40%, transparent);
  border-radius: 0;
}
body.inddn-serp .sitelink-item:hover { background: transparent; }
body.inddn-serp .sl-title { color: var(--ind-indigoblue); font-weight: 500; }
body.inddn-serp .sl-title:hover { text-decoration: underline; }
body.inddn-serp .sl-snippet { color: var(--ind-muted-foreground); }

/* ── 6b. Web result cards (static-html/search.html anatomy) ───────────
   Borderless list rows with a subtle hover surface — NOT boxed cards. Each
   row: source line (initial disc + name + tick + breadcrumb + hover save),
   title, snippet, timestamp, optional right thumbnail. */
body.inddn-serp .serp-results {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Google-like breathing room between results */
  margin: 0;
  padding: 0;
}
body.inddn-serp .serp-result {
  max-width: 44rem;
  margin: 0 -0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  transition: background 0.15s;
}
/* Flat by default (Google-clean); a soft surface only on hover — no shadow box */
body.inddn-serp .serp-result:hover {
  background: color-mix(in oklab, var(--ind-accent) 45%, transparent);
}
/* Thumbnail variant: text column + 112px square */
body.inddn-serp .serp-result.has-thumb {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 14px;
  align-items: start;
}
body.inddn-serp .serp-result-main { min-width: 0; }

/* Source line */
body.inddn-serp .serp-result-source {
  display: flex;
  align-items: center;
  gap: 10px;
}
body.inddn-serp .serp-result-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--ind-border);
  border-radius: 9999px;
  background: linear-gradient(to bottom right, var(--ind-cream), var(--ind-accent));
  font-family: var(--ind-font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ind-indigoblue);
}
body.inddn-serp .serp-result-avatar img { width: 18px; height: 18px; object-fit: contain; }
body.inddn-serp .serp-result-id { min-width: 0; }
body.inddn-serp .serp-result-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ind-foreground);
}
body.inddn-serp .serp-result-name a { color: inherit; text-decoration: none; }
body.inddn-serp .serp-result-name a:hover { color: var(--ind-indigoblue); }
body.inddn-serp .serp-verified { flex-shrink: 0; font-size: 0.8rem; color: var(--ind-green-ink); }
body.inddn-serp .serp-result-crumb {
  font-size: 12px;
  line-height: 1.3;
  color: var(--ind-muted-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Per-result Breaking / New tag */
body.inddn-serp .serp-result-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
body.inddn-serp .serp-result-tag.tag-new {
  background: color-mix(in oklab, var(--ind-indiagreen) 15%, var(--ind-card));
  color: var(--ind-green-ink);
}
body.inddn-serp .serp-result-tag.tag-breaking {
  background: color-mix(in oklab, var(--ind-destructive) 15%, var(--ind-card));
  color: var(--ind-red-ink);
}
body.inddn-serp .serp-result-tag.tag-breaking i { font-size: 0.5rem; animation: serp-pulse 1.2s infinite; }
@keyframes serp-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Hover "save" control, top-right of the row */
body.inddn-serp .serp-result-more {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: none;
  border-radius: 9999px;
  background: none;
  color: var(--ind-muted-foreground);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
body.inddn-serp .serp-result:hover .serp-result-more,
body.inddn-serp .serp-result-more:focus-visible { opacity: 1; }
body.inddn-serp .serp-result-more:hover { background: var(--ind-accent); color: var(--ind-indigoblue); }
/* Stay visible + saffron once saved (toggleBookmark swaps the icon to solid) */
body.inddn-serp .serp-result-more:has(.fa-solid) { opacity: 1; color: var(--ind-saffron-ink) !important; }

/* Title */
body.inddn-serp .serp-result-title {
  margin: 6px 0 0;
  font-family: var(--ind-font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
}
body.inddn-serp .serp-result-title a {
  color: var(--ind-indigoblue);
  text-decoration: none;
  text-underline-offset: 4px;
}
body.inddn-serp .serp-result-title a:hover { text-decoration: underline; }
body.inddn-serp .serp-result-title a:visited { color: var(--ind-visited); }

/* Snippet — clamped to two lines (Google-style); a "More" toggle is added by
   inddn-ui.js only when the text actually overflows, and removes the clamp. */
body.inddn-serp .serp-result-snippet {
  margin: 4px 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ind-muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.inddn-serp .serp-result-snippet.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
body.inddn-serp .serp-snippet-more {
  display: inline-block;
  margin-top: 3px;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--ind-font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ind-indigoblue);
  cursor: pointer;
}
body.inddn-serp .serp-snippet-more:hover { text-decoration: underline; }

/* Timestamp / source-type line */
body.inddn-serp .serp-result-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 0;
  font-size: 12px;
  color: color-mix(in oklab, var(--ind-muted-foreground) 85%, transparent);
}

/* Sitelinks under the top hit */
body.inddn-serp .serp-result-sitelinks {
  display: grid;
  gap: 6px 24px;
  margin: 12px 0 0;
  padding-left: 16px;
  border-left: 2px solid color-mix(in oklab, var(--ind-saffron) 40%, transparent);
  list-style: none;
}
@media (min-width: 640px) { body.inddn-serp .serp-result-sitelinks { grid-template-columns: 1fr 1fr; } }
body.inddn-serp .serp-result-sitelinks .sitelink-item { display: block; text-decoration: none; }
body.inddn-serp .serp-result-sitelinks .sl-title {
  display: block;
  font-size: 0.875rem;
  color: var(--ind-indigoblue);
  text-underline-offset: 4px;
}
body.inddn-serp .serp-result-sitelinks .sitelink-item:hover .sl-title { text-decoration: underline; }
body.inddn-serp .serp-result-sitelinks .sl-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 1px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ind-muted-foreground);
}

/* Right thumbnail — resilient to broken / oddly-shaped / low-res images.
   A soft ground fills any letterbox gap so small or portrait images read as
   intentional rather than "floating in an empty box", and a placeholder glyph
   sits behind the image so a slow / broken source never shows blank. */
body.inddn-serp .serp-result-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 4px;
  background: var(--ind-muted);
  border: 1px solid var(--ind-border);
}
/* Placeholder glyph revealed behind the image (image paints on top of it) */
body.inddn-serp .serp-result-thumb::before {
  content: "\f03e"; /* fa-image */
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: color-mix(in oklab, var(--ind-muted-foreground) 45%, transparent);
  z-index: 0;
}
body.inddn-serp .serp-result-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

@media (max-width: 500px) {
  /* Keep the thumbnail beside the text (Google-style) on phones, just
     narrower — stacking it under the snippet read as a stray floating image. */
  body.inddn-serp .serp-result.has-thumb {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 12px;
  }
}

/* Actions / rich meta carried over from the old design, re-toned */
body.inddn-serp .result-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
body.inddn-serp .action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid var(--ind-border);
  border-radius: 9999px;
  background: var(--ind-card);
  font-size: 0.8rem;
  color: var(--ind-indigoblue);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
body.inddn-serp .action-btn:hover { border-color: var(--ind-saffron); background: var(--ind-accent); }
body.inddn-serp .rich-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--ind-muted-foreground);
}
body.inddn-serp .rich-rating { color: var(--ind-gold-ink); }
body.inddn-serp .rich-price {
  padding: 1px 8px;
  border: 1px solid color-mix(in oklab, var(--ind-indiagreen) 40%, var(--ind-border));
  border-radius: 9999px;
  background: color-mix(in oklab, var(--ind-indiagreen) 12%, var(--ind-card));
  font-weight: 700;
  color: var(--ind-green-ink);
}
body.inddn-serp .rich-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--ind-accent);
  font-size: 0.72rem;
  color: var(--ind-indigoblue);
}
body.inddn-serp .rich-faq {
  background: color-mix(in oklab, var(--ind-teal) 16%, var(--ind-card));
  color: var(--ind-teal-ink);
}
body.inddn-serp .pers-why { position: relative; margin-left: 6px; }
body.inddn-serp .pers-why-btn {
  border: none;
  background: none;
  font-size: 0.72rem;
  color: var(--ind-saffron-ink);
  cursor: pointer;
}
body.inddn-serp .pers-tooltip {
  display: none;
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  width: 15rem;
  padding: 10px 12px;
  border: 1px solid var(--ind-border);
  border-radius: 0.625rem;
  background: var(--ind-popover);
  box-shadow: var(--ind-shadow-lg);
  font-size: 0.78rem;
  color: var(--ind-foreground);
}
body.inddn-serp .pers-tooltip.open { display: block; }
body.inddn-serp .pers-reason { display: flex; align-items: center; gap: 6px; padding: 2px 0; color: var(--ind-muted-foreground); }

/* ── 7. Section cards (Images / Top stories / Videos) ─────────────── */
body.inddn-serp .serp-card {
  border: 1px solid var(--ind-border);
  border-radius: 0.875rem;
  background: var(--ind-card);
  box-shadow: var(--ind-shadow-sm);
  padding: 1rem;
}
body.inddn-serp .serp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.75rem;
}
body.inddn-serp .serp-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  font-family: var(--ind-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ind-indigoblue);
}
body.inddn-serp .serp-card-title i { color: var(--ind-saffron); font-size: 0.9rem; }
body.inddn-serp .serp-card-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--ind-muted-foreground);
  text-decoration: none;
  transition: color 0.15s;
}
body.inddn-serp .serp-card-more:hover { color: var(--ind-saffron); }

/* Section heading used outside a card (PAA, related searches) */
body.inddn-serp .serp-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--ind-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ind-indigoblue);
}
body.inddn-serp .serp-section-title i { color: var(--ind-saffron); font-size: 0.9rem; }

/* ── Inline "Images for …" strip — clean, Google-style ─────────────── */
body.inddn-serp .serp-images-card {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  margin: 1.5rem 0;
}
body.inddn-serp .serp-images-card .serp-card-head {
  padding: 0 0.75rem;
}
body.inddn-serp .serp-images-card .serp-card-title {
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ind-foreground);
}
body.inddn-serp .serp-images-card .serp-card-title i { display: none; }
body.inddn-serp .serp-images-card .serp-card-title em {
  font-style: normal;
  font-weight: 500;
  color: var(--ind-foreground);
}
body.inddn-serp .serp-img-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  margin: 0;
  list-style: none;
  scroll-snap-type: x proximity;
}
body.inddn-serp .serp-img-grid::-webkit-scrollbar {
  display: none;
}
body.inddn-serp .serp-img-grid > li {
  flex: 0 0 140px;
  background: transparent;
  scroll-snap-align: start;
}
@media (min-width: 640px) {
  body.inddn-serp .serp-img-grid > li {
    flex: 0 0 165px;
  }
}
/* The clickable cell is a vertical stack: thumbnail frame + source label */
body.inddn-serp .serp-img-cell {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-decoration: none;
  color: inherit;
}
/* Uniform thumbnail frame — letterboxes any aspect ratio on a soft ground so
   portrait / broken / oddly-sized images never spill or stretch */
body.inddn-serp .serp-img-frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg,
      color-mix(in oklab, var(--ind-cream) 70%, var(--ind-card)),
      var(--ind-muted));
  box-shadow: inset 0 0 0 1px var(--ind-border);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
body.inddn-serp .serp-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
body.inddn-serp .serp-img-cell:hover .serp-img-frame {
  box-shadow:
    inset 0 0 0 1px color-mix(in oklab, var(--ind-saffron) 55%, var(--ind-border)),
    0 6px 18px -8px color-mix(in oklab, var(--ind-indigoblue) 40%, transparent);
  transform: translateY(-2px);
}
body.inddn-serp .serp-img-cell:hover .serp-img-frame img { transform: scale(1.05); }
/* Source line under the image (favicon + domain), muted like Google */
body.inddn-serp .serp-img-source {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 0.76rem;
  line-height: 1.2;
  color: var(--ind-muted-foreground);
}
body.inddn-serp .serp-img-source img {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  object-fit: contain;
}
body.inddn-serp .serp-img-domain {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.inddn-serp .serp-img-cell:hover .serp-img-domain { color: var(--ind-foreground); }

/* Video grid inside a card */
body.inddn-serp .serp-video-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--ind-border);
  border-radius: var(--ind-radius);
  background: var(--ind-border);
  list-style: none;
}
@media (min-width: 640px) { body.inddn-serp .serp-video-grid { grid-template-columns: repeat(3, 1fr); } }
body.inddn-serp .serp-video-grid > li { background: var(--ind-card); }
body.inddn-serp .serp-video-cell { display: block; height: 100%; text-decoration: none; transition: background 0.15s; }
body.inddn-serp .serp-video-cell:hover { background: color-mix(in oklab, var(--ind-accent) 50%, var(--ind-card)); }
body.inddn-serp .serp-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ind-muted);
}
body.inddn-serp .serp-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
body.inddn-serp .serp-video-cell:hover .serp-video-thumb img { transform: scale(1.05); }
body.inddn-serp .serp-video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--ind-primary) 15%, transparent);
}
body.inddn-serp .serp-video-play span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--ind-card) 90%, transparent);
  color: var(--ind-saffron-ink);
  box-shadow: var(--ind-shadow-sm);
  transition: transform 0.15s;
}
body.inddn-serp .serp-video-cell:hover .serp-video-play span { transform: scale(1.1); }
body.inddn-serp .serp-video-dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: color-mix(in oklab, var(--ind-primary) 85%, transparent);
  font-size: 11px;
  color: oklch(0.98 0.01 90);
}
body.inddn-serp .serp-video-meta { padding: 10px 12px; }
body.inddn-serp .serp-video-name {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--ind-indigoblue);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.inddn-serp .serp-video-cell:hover .serp-video-name { text-decoration: underline; }
body.inddn-serp .serp-video-src { margin-top: 2px; font-size: 12px; color: var(--ind-muted-foreground); }

/* Top stories rows */
body.inddn-serp .serp-story-list { list-style: none; }
body.inddn-serp .serp-story-list > li + li { border-top: 1px solid var(--ind-border); }
body.inddn-serp .serp-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  transition: background 0.15s;
}
body.inddn-serp .serp-story:hover { background: color-mix(in oklab, var(--ind-accent) 40%, transparent); }
body.inddn-serp .serp-story-body { min-width: 0; }
body.inddn-serp .serp-story-src {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ind-green-ink);
}
body.inddn-serp .serp-story-live {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--ind-red-ink);
  color: oklch(0.98 0.01 90);
  font-size: 9px;
  letter-spacing: 0.06em;
}
body.inddn-serp .serp-story-title {
  display: block;
  margin-top: 2px;
  font-size: 0.94rem;
  line-height: 1.4;
  color: var(--ind-foreground);
}
body.inddn-serp .serp-story:hover .serp-story-title { color: var(--ind-indigoblue); }
body.inddn-serp .serp-story-time {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ind-muted-foreground);
}
body.inddn-serp .serp-story-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--ind-border);
  border-radius: var(--ind-radius);
}
body.inddn-serp .serp-story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
body.inddn-serp .serp-story:hover .serp-story-img img { transform: scale(1.1); }
body.inddn-serp .serp-story-img.is-ph,
body.inddn-serp .serp-story-img .serp-story-img-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, var(--ind-cream), var(--ind-accent));
}

/* ── 8. People also ask ───────────────────────────────────────────── */
body.inddn-serp .serp-paa {
  overflow: hidden;
  border: 1px solid var(--ind-border);
  border-radius: var(--ind-radius);
  background: var(--ind-card);
  list-style: none;
}
body.inddn-serp .serp-paa > li + li { border-top: 1px solid var(--ind-border); }
body.inddn-serp .serp-paa-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ind-foreground);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
body.inddn-serp .serp-paa-btn:hover { background: color-mix(in oklab, var(--ind-accent) 40%, transparent); }
body.inddn-serp .serp-paa-icon {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--ind-muted-foreground);
  transition: transform 0.2s, color 0.2s;
}
body.inddn-serp [data-paa-item][data-open="true"] .serp-paa-icon {
  transform: rotate(45deg);
  color: var(--ind-saffron);
}
body.inddn-serp .serp-paa-panel {
  padding: 0 16px 16px;
  border-left: 2px solid color-mix(in oklab, var(--ind-saffron) 50%, transparent);
  margin-left: 0;
}
body.inddn-serp .serp-paa-panel.hidden { display: none; }
body.inddn-serp .serp-paa-answer {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ind-muted-foreground);
}
body.inddn-serp .serp-paa-src {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ind-indigoblue);
  text-decoration: none;
}
body.inddn-serp .serp-paa-src:hover { text-decoration: underline; }

/* ── 9. Related searches ──────────────────────────────────────────── */
body.inddn-serp .serp-related {
  display: grid;
  gap: 8px;
  list-style: none;
}
@media (min-width: 640px) { body.inddn-serp .serp-related { grid-template-columns: 1fr 1fr; } }
body.inddn-serp .serp-related a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--ind-border);
  border-radius: var(--ind-radius);
  background: var(--ind-card);
  font-size: 0.875rem;
  color: var(--ind-foreground);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
body.inddn-serp .serp-related a:hover {
  border-color: var(--ind-saffron);
  background: color-mix(in oklab, var(--ind-accent) 50%, var(--ind-card));
}
body.inddn-serp .serp-related i { flex-shrink: 0; font-size: 0.8rem; color: var(--ind-muted-foreground); }
body.inddn-serp .serp-related span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 10. Pagination ───────────────────────────────────────────────── */
body.inddn-serp .pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  max-width: none;
}
body.inddn-serp .pagination-brand {
  font-family: var(--ind-font-brand);
  font-size: 1.75rem;
  letter-spacing: 0.15em;
}
body.inddn-serp .pagination-brand .pb-in { color: var(--ind-saffron); }
body.inddn-serp .pagination-brand .pb-d { color: var(--ind-gold); }
body.inddn-serp .pagination-brand .pb-d2 { color: var(--ind-teal); }
body.inddn-serp .pagination-brand .pb-n { color: var(--ind-royal); }
body.inddn-serp .pagination-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  font-size: 0.875rem;
  list-style: none;
}
body.inddn-serp .page-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 9999px;
  background: none;
  color: var(--ind-indigoblue);
  text-decoration: none;
  transition: background 0.15s;
}
body.inddn-serp .page-num:hover { background: var(--ind-accent); }
body.inddn-serp .page-num.current {
  background: var(--ind-saffron);
  font-weight: 700;
  color: var(--ind-saffron-foreground);
}
body.inddn-serp .page-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 7px 16px;
  border: 1px solid var(--ind-border);
  border-radius: 9999px;
  color: var(--ind-indigoblue);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
body.inddn-serp .page-nav:hover {
  border-color: var(--ind-saffron);
  background: var(--ind-accent);
}

/* ── 11. Sidebar cards ────────────────────────────────────────────── */
body.inddn-serp .serp-side-card {
  overflow: hidden;
  border: 1px solid var(--ind-border);
  border-radius: var(--ind-radius);
  background: var(--ind-card);
}
body.inddn-serp .serp-side-card-body { padding: 1rem; }
body.inddn-serp .serp-side-title {
  margin: 0;
  font-family: var(--ind-font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ind-indigoblue);
}
body.inddn-serp .serp-side-sub { font-size: 12px; color: var(--ind-muted-foreground); }

/* Knowledge panel hero band */
body.inddn-serp .serp-kp-hero {
  display: grid;
  place-items: center;
  height: 7rem;
  border-bottom: 1px solid var(--ind-border);
  background: linear-gradient(to bottom right, color-mix(in oklab, var(--ind-saffron) 25%, transparent), var(--ind-cream));
  color: color-mix(in oklab, var(--ind-indigoblue) 70%, transparent);
  font-size: 2rem;
}
body.inddn-serp .serp-kp-hero img { width: 100%; height: 100%; object-fit: cover; }
body.inddn-serp .serp-kp-facts { display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; }
body.inddn-serp .serp-kp-fact {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 8px;
}
body.inddn-serp .serp-kp-fact dt { color: var(--ind-muted-foreground); }
body.inddn-serp .serp-kp-fact dd { color: var(--ind-foreground); margin: 0; }
body.inddn-serp .serp-side-label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ind-muted-foreground);
}
body.inddn-serp .serp-side-links { list-style: none; display: flex; flex-direction: column; gap: 4px; }
body.inddn-serp .serp-side-links a {
  font-size: 0.875rem;
  color: var(--ind-indigoblue);
  text-decoration: none;
}
body.inddn-serp .serp-side-links a:hover { text-decoration: underline; }

/* Sidebar search-tools disclosure */
body.inddn-serp .serp-tool-item {
  border: 1px solid transparent;
  border-radius: var(--ind-radius);
  padding: 6px 8px;
  transition: border-color 0.15s, background 0.15s;
}
body.inddn-serp .serp-tool-item:hover {
  border-color: var(--ind-border);
  background: color-mix(in oklab, var(--ind-accent) 50%, transparent);
}
body.inddn-serp .serp-tool-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--ind-foreground);
}
body.inddn-serp .serp-tool-summary::-webkit-details-marker { display: none; }
body.inddn-serp .serp-tool-summary i {
  font-size: 0.75rem;
  color: var(--ind-muted-foreground);
  transition: transform 0.2s;
}
body.inddn-serp details[open] > .serp-tool-summary i { transform: rotate(180deg); }
body.inddn-serp .serp-tool-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  padding-left: 4px;
  list-style: none;
}
body.inddn-serp .serp-tool-list a {
  display: block;
  padding: 3px 4px;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--ind-muted-foreground);
  text-decoration: none;
  transition: color 0.15s;
}
body.inddn-serp .serp-tool-list a:hover { color: var(--ind-saffron); }
body.inddn-serp .serp-tool-list a.active { color: var(--ind-saffron-ink); font-weight: 600; }

body.inddn-serp .serp-side-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 7px;
  border: 1px solid var(--ind-border);
  border-radius: var(--ind-radius);
  background: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ind-indigoblue);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
body.inddn-serp .serp-side-btn:hover { background: var(--ind-accent); }

body.inddn-serp .serp-side-note {
  padding: 1rem;
  border: 1px solid color-mix(in oklab, var(--ind-saffron) 30%, transparent);
  border-radius: var(--ind-radius);
}
body.inddn-serp .serp-side-note p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ind-muted-foreground);
}
body.inddn-serp .serp-side-note i { margin-top: 3px; flex-shrink: 0; color: var(--ind-green-ink); }
body.inddn-serp .serp-side-note strong { color: var(--ind-foreground); }

/* ── 12. Footer / chrome ──────────────────────────────────────────── */
body.inddn-serp .serp-footer { background: var(--ind-cream); }
body.inddn-serp .serp-footer-inner {
  display: grid;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px;
  font-size: 0.875rem;
  color: var(--ind-muted-foreground);
}
@media (min-width: 640px) {
  body.inddn-serp .serp-footer-inner { grid-template-columns: minmax(0, 1fr) auto; }
}
body.inddn-serp .serp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
}
body.inddn-serp .serp-footer-links a { color: var(--ind-muted-foreground); text-decoration: none; }
body.inddn-serp .serp-footer-links a:hover { color: var(--ind-saffron); }

/* ── 12b. AI overview (KhojSaar) ──────────────────────────────────────
   Restyled to match Google's AI Overview: no boxed border, the answer
   clamps behind a soft fade with a "Show more" pill, and a single hairline
   rule (.khoj-rule) closes the block off from the results below. */
body.inddn-serp .khoj-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 4px;
}
body.inddn-serp .khoj-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0 12px;
}
/* The header doubles as the collapse toggle (Google-style AI overview) */
body.inddn-serp button.khoj-head {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
body.inddn-serp .khoj-chevron {
  flex-shrink: 0;
  color: var(--ind-muted-foreground);
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}
body.inddn-serp .khoj-card.is-collapsed .khoj-chevron { transform: rotate(180deg); }
body.inddn-serp .khoj-card.is-collapsed .khoj-body { display: none; }
body.inddn-serp .khoj-card.is-collapsed .khoj-rule { margin-top: 0; }

/* Clamp: hide the answer's overflow behind a fade until "Show more". The
   clamp only bites once JS confirms the content overflows (.has-overflow)
   and the card hasn't been expanded. --khoj-clamp is read back by that JS,
   so keep the two in sync here. */
body.inddn-serp .khoj-clampwrap {
  --khoj-clamp: 260px;
  position: relative;
}
body.inddn-serp .khoj-card.has-overflow:not(.is-expanded) .khoj-collapse {
  max-height: var(--khoj-clamp);
  overflow: hidden;
}
body.inddn-serp .khoj-fade { display: none; }
body.inddn-serp .khoj-card.has-overflow:not(.is-expanded) .khoj-fade {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  pointer-events: none;
  background: linear-gradient(to bottom,
    color-mix(in oklab, var(--ind-background) 0%, transparent),
    var(--ind-background) 92%);
}

/* "Show more" pill — centred under the fade, like Google's. */
body.inddn-serp .khoj-showmore {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 4px;
  padding: 8px 16px;
  border: 0;
  border-radius: 9999px;
  background: none;
  color: var(--ind-indigoblue);
  font-family: var(--ind-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
body.inddn-serp .khoj-showmore:hover { background: var(--ind-accent); }
body.inddn-serp .khoj-showmore-icon { font-size: 1.25rem; transition: transform 0.2s ease; }
body.inddn-serp .khoj-card.is-expanded .khoj-showmore-icon { transform: rotate(180deg); }

/* The closing hairline — the one and only divider in the block. */
body.inddn-serp .khoj-rule {
  height: 0;
  margin: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--ind-border);
}
body.inddn-serp .khoj-spark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, var(--ind-saffron), var(--ind-gold));
  color: var(--ind-saffron-foreground);
  font-size: 0.75rem;
  box-shadow: var(--ind-shadow-sm);
}
body.inddn-serp .khoj-head-text { min-width: 0; display: block; }
body.inddn-serp .khoj-title {
  display: block;
  margin: 0;
  font-family: var(--ind-font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ind-indigoblue);
}
body.inddn-serp .khoj-sub { display: block; font-size: 11px; color: var(--ind-muted-foreground); }
body.inddn-serp .khoj-beta {
  margin-left: auto;
  flex-shrink: 0;
  padding: 2px 8px;
  border: 1px solid color-mix(in oklab, var(--ind-saffron) 40%, transparent);
  border-radius: 9999px;
  background: var(--ind-card);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ind-saffron-ink);
}
body.inddn-serp .khoj-body { padding: 0; }

/* The async answer box sits inside the card, so drop its own frame */
body.inddn-serp .khoj-body .ai-answer-box {
  margin-bottom: 0;
  padding: 0;
  border: none;
  background: transparent;
}
body.inddn-serp .ai-answer-box .ai-mode-answer-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ind-foreground);
}
body.inddn-serp .ai-answer-box .aia-photo {
  border: 1px solid var(--ind-border);
  border-radius: 0.625rem;
  background: var(--ind-card);
}
body.inddn-serp .ai-answer-box .aia-shimmer { background: var(--ind-muted); }
body.inddn-serp .ai-answer-box .aia-loading-text,
body.inddn-serp .ai-answer-box .ai-mode-disclaimer { color: var(--ind-muted-foreground); }
body.inddn-serp .ai-answer-box .aia-turn { border-bottom-color: var(--ind-border); }
body.inddn-serp .ai-answer-box .aia-turn-q {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ind-indigoblue);
}

/* Follow-up composer */
body.inddn-serp .ai-answer-box .aia-followup-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ind-border);
}
body.inddn-serp .ai-answer-box .aia-followup-input {
  border: 1px solid var(--ind-border);
  border-radius: 9999px;
  padding: 9px 16px;
  background: var(--ind-card);
  font-family: var(--ind-font-sans);
  font-size: 0.875rem;
  color: var(--ind-foreground);
}
body.inddn-serp .ai-answer-box .aia-followup-input:focus { border-color: var(--ind-saffron); }
body.inddn-serp .ai-answer-box .aia-followup-input::placeholder { color: var(--ind-muted-foreground); }
body.inddn-serp .ai-answer-box .aia-followup-btn {
  border-radius: 9999px;
  padding: 9px 20px;
  background: var(--ind-saffron);
  color: var(--ind-saffron-foreground);
  font-family: var(--ind-font-sans);
  font-weight: 700;
}
body.inddn-serp .ai-answer-box .aia-followup-btn:hover:not(:disabled) { background: var(--ind-indigoblue); }
body.inddn-serp .ai-answer-box .aia-followup-error { color: var(--ind-red-ink); }

/* Source rail */
body.inddn-serp .khoj-sources { margin-top: 16px; }
body.inddn-serp .khoj-sources-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
body.inddn-serp .khoj-sources-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ind-muted-foreground);
}
body.inddn-serp .khoj-sources-count {
  padding: 0 7px;
  border-radius: 9999px;
  background: var(--ind-accent);
  font-size: 11px;
  font-weight: 700;
  color: var(--ind-indigoblue);
}
body.inddn-serp .khoj-sources-rule { flex: 1; }
body.inddn-serp .khoj-source-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
body.inddn-serp .khoj-source-row::-webkit-scrollbar { display: none; }
body.inddn-serp .khoj-source-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 13rem;
  flex-shrink: 0;
  padding: 10px 12px;
  border: 1px solid var(--ind-border);
  border-radius: 0.75rem;
  background: var(--ind-card);
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
body.inddn-serp .khoj-source-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--ind-saffron) 60%, transparent);
  box-shadow: var(--ind-shadow-md);
}
body.inddn-serp .khoj-source-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
body.inddn-serp .khoj-source-badge {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, var(--ind-saffron), var(--ind-gold));
  font-size: 8px;
  font-weight: 700;
  color: var(--ind-saffron-foreground);
}
body.inddn-serp .khoj-source-domain {
  font-size: 11px;
  color: var(--ind-muted-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.inddn-serp .khoj-source-title {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ind-indigoblue);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.inddn-serp .khoj-source-card:hover .khoj-source-title { text-decoration: underline; }

/* ── AI Overview sources: compact favicon stack + Google-style list ──────
   The card shows an overlapping favicon stack (like Google's "Searching …"
   chip); the full source list lives in the sidebar's .serp-sources-card
   (or inline in AI mode, which has no sidebar). */
body.inddn-serp .khoj-src-stack {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 5px 14px 5px 9px;
  border: 1px solid var(--ind-border);
  border-radius: 9999px;
  background: var(--ind-card);
  font-family: var(--ind-font-sans);
  color: var(--ind-muted-foreground);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
body.inddn-serp .khoj-src-stack:hover {
  border-color: color-mix(in oklab, var(--ind-saffron) 55%, transparent);
  color: var(--ind-foreground);
}
body.inddn-serp .khoj-stack-icons { display: inline-flex; }
body.inddn-serp .khoj-stack-badge {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 22px;
  height: 22px;
  margin-left: -8px;
  border-radius: 9999px;
  border: 2px solid var(--ind-card);
  background: linear-gradient(to bottom right, var(--ind-saffron), var(--ind-gold));
  font-size: 9px;
  font-weight: 700;
  color: var(--ind-saffron-foreground);
}
body.inddn-serp .khoj-stack-badge:first-child { margin-left: 0; }
body.inddn-serp .khoj-stack-favicon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  background: var(--ind-card);
}
body.inddn-serp .khoj-stack-label { font-size: 0.82rem; font-weight: 600; }
body.inddn-serp .khoj-stack-arrow { font-size: 1rem; }

/* ── Google-style "N sites" sources card ── */
/* Rendered inside the AI overview card, as a distinct bordered panel attached
   to the answer (not in the sidebar). */
body.inddn-serp .khoj-sources-panel {
  margin: 16px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--ind-border);
  border-radius: 14px;
  background: color-mix(in oklab, var(--ind-muted) 45%, transparent);
}
body.inddn-serp .serp-sources-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
body.inddn-serp .serp-sources-avatars { display: inline-flex; }
body.inddn-serp .serp-src-avatar {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 22px;
  height: 22px;
  margin-left: -7px;
  border-radius: 9999px;
  border: 2px solid var(--ind-card);
  background: linear-gradient(to bottom right, var(--ind-saffron), var(--ind-gold));
  font-size: 9px;
  font-weight: 700;
  color: var(--ind-saffron-foreground);
}
body.inddn-serp .serp-src-avatar:first-child { margin-left: 0; }
body.inddn-serp .serp-sources-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ind-foreground);
}

body.inddn-serp .serp-src-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}
body.inddn-serp .serp-src-list-inline { margin-top: 4px; }

/* One source = title + snippet + thumbnail, then a logo/site footer. */
body.inddn-serp .serp-src {
  padding: 12px 0;
  border-top: 1px solid var(--ind-border);
}
body.inddn-serp .serp-src:first-child { border-top: none; padding-top: 4px; }
/* Collapsed by default beyond the first few; revealed by "Show all". */
body.inddn-serp .serp-sources-card:not(.is-expanded) .serp-src.is-extra { display: none; }

body.inddn-serp .serp-src-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
}
body.inddn-serp .serp-src-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.inddn-serp .serp-src-title {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ind-indigoblue);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.inddn-serp .serp-src-item:hover .serp-src-title { text-decoration: underline; }
body.inddn-serp .serp-src-snippet {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ind-muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.inddn-serp .serp-src-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ind-border);
  background: var(--ind-card);
}
body.inddn-serp .serp-src-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
body.inddn-serp .serp-src-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}
body.inddn-serp .serp-src-site {
  font-size: 0.8rem;
  color: var(--ind-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.inddn-serp .serp-src-badge {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, var(--ind-saffron), var(--ind-gold));
  font-size: 11px;
  font-weight: 700;
  color: var(--ind-saffron-foreground);
}
body.inddn-serp .serp-src-badge-sm {
  width: 18px;
  height: 18px;
  font-size: 9px;
}
body.inddn-serp .serp-src-favicon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  background: var(--ind-card);
}

/* Full-width "Show all" pill, matching Google's clean toggle. */
body.inddn-serp .serp-sources-showall {
  width: 100%;
  margin-top: 12px;
  padding: 9px 14px;
  border: none;
  border-radius: 9999px;
  background: var(--ind-muted);
  color: var(--ind-foreground);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.13s;
}
body.inddn-serp .serp-sources-showall:hover {
  background: color-mix(in oklab, var(--ind-accent) 60%, var(--ind-muted));
}

/* Feedback bar — only after a real answer has landed (kept hidden during the
   loading shimmer so a pending card isn't "header + shimmer + foot"). */
body.inddn-serp .khoj-foot {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ind-border);
  font-size: 12px;
  color: var(--ind-muted-foreground);
}
body.inddn-serp .khoj-card[data-answered="true"] .khoj-foot { display: flex; }
body.inddn-serp .khoj-foot-note { display: flex; align-items: center; gap: 6px; }
body.inddn-serp .khoj-foot-note i { color: var(--ind-saffron); }
body.inddn-serp .khoj-foot-actions { margin-left: auto; display: flex; gap: 4px; }
body.inddn-serp .khoj-vote {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 9999px;
  background: none;
  color: var(--ind-muted-foreground);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
body.inddn-serp .khoj-vote:hover { background: var(--ind-accent); }
body.inddn-serp .khoj-vote[data-khoj-vote="up"]:hover { color: var(--ind-green-ink); }
body.inddn-serp .khoj-vote[data-khoj-vote="down"]:hover { color: var(--ind-red-ink); }
body.inddn-serp .khoj-vote[aria-pressed="true"] {
  background: var(--ind-accent);
  color: var(--ind-indigoblue);
}

/* ── 12c. Knowledge panel in the sidebar ──────────────────────────── */
body.inddn-serp .knowledge-panel {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid var(--ind-border);
  border-radius: 20px;
  background: var(--ind-card);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
body.inddn-serp .knowledge-panel::before {
  content: '';
  position: absolute;
  top: -30px; left: -30px; right: -30px; height: 220px;
  background-image: var(--kp-bg-image, none);
  background-size: cover;
  background-position: center 20%;
  filter: blur(32px) saturate(1.2);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}
body.inddn-serp .knowledge-panel > * {
  position: relative;
  z-index: 1;
}
body.inddn-serp .kp-context { font-size: 12px; color: var(--ind-muted-foreground); }
body.inddn-serp .kp-head { display: flex; align-items: center; gap: 12px; }
body.inddn-serp .kp-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.05);
}
body.inddn-serp .kp-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 0.625rem;
  background: linear-gradient(to bottom right, color-mix(in oklab, var(--ind-saffron) 25%, transparent), var(--ind-cream));
  color: var(--ind-indigoblue);
  font-size: 1.25rem;
}
body.inddn-serp .kp-name {
  font-family: var(--ind-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ind-indigoblue);
}
body.inddn-serp .kp-verified { color: var(--ind-green-ink); }
body.inddn-serp .kp-type,
body.inddn-serp .kp-aka-inline { font-size: 12px; color: var(--ind-muted-foreground); }
body.inddn-serp .kp-desc {
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ind-muted-foreground);
}
body.inddn-serp .kp-facts {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
}
body.inddn-serp .kp-fact {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 8px;
}
body.inddn-serp .kp-fact-k { color: var(--ind-muted-foreground); }
body.inddn-serp .kp-fact-v { color: var(--ind-foreground); }
body.inddn-serp .kp-answer-card {
  padding: 14px 16px;
  border: 1px solid color-mix(in oklab, var(--ind-saffron) 35%, transparent);
  border-radius: var(--ind-radius);
  background: var(--ind-accent);
  margin-bottom: 12px;
}
body.inddn-serp .kp-answer-label { font-size: 11px; text-transform: uppercase; color: var(--ind-muted-foreground); }
body.inddn-serp .kp-answer-value {
  font-family: var(--ind-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ind-indigoblue);
}
body.inddn-serp .kp-answer-foot { font-size: 11px; color: var(--ind-muted-foreground); }

/* Region card line */
body.inddn-serp .serp-region-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--ind-muted-foreground);
}
body.inddn-serp .serp-region-line i { flex-shrink: 0; color: var(--ind-green-ink); }

/* ── 13. Misc reskins ─────────────────────────────────────────────── */
body.inddn-serp .did-you-mean { font-size: 0.875rem; color: var(--ind-muted-foreground); }
body.inddn-serp .dym-suggestion { color: var(--ind-indigoblue); font-weight: 600; }
body.inddn-serp .dym-autocorrect {
  background: var(--ind-accent);
  border: 1px solid color-mix(in oklab, var(--ind-saffron) 35%, transparent);
  border-radius: var(--ind-radius);
}
body.inddn-serp .ai-skip-hint {
  background: var(--ind-cream);
  border: 1px solid var(--ind-border);
  border-radius: var(--ind-radius);
  color: var(--ind-muted-foreground);
}
body.inddn-serp .ai-skip-hint a { color: var(--ind-indigoblue); }
body.inddn-serp .no-results,
body.inddn-serp .error-msg {
  border: 1px solid var(--ind-border);
  border-radius: var(--ind-radius);
  background: var(--ind-card);
  color: var(--ind-foreground);
}
body.inddn-serp .result-actions { gap: 6px; }
body.inddn-serp .action-btn {
  border-radius: 9999px;
  border: 1px solid var(--ind-border);
  background: var(--ind-card);
  color: var(--ind-indigoblue);
  font-family: var(--ind-font-sans);
}
body.inddn-serp .action-btn:hover {
  border-color: var(--ind-saffron);
  background: var(--ind-accent);
}
body.inddn-serp .location-badge { color: var(--ind-saffron-ink) !important; }

/* Legacy language picker in the old nav — hidden, the tools panel owns this */
body.inddn-serp .lang-nav-wrap { display: none; }

/* ── Left-Aligned Search Layout (Google Style) ── */
@media (min-width: 1024px) {
  body.inddn-serp .serp-head-inner,
  body.inddn-serp .search-tabs-inner,
  body.inddn-serp .tools-inner,
  body.inddn-serp .results-layout {
    margin-left: 80px;
    margin-right: auto;
    max-width: 1180px;
    padding-left: 0;
    padding-right: 0;
  }
}
@media (min-width: 1280px) {
  body.inddn-serp .serp-head-inner,
  body.inddn-serp .search-tabs-inner,
  body.inddn-serp .tools-inner,
  body.inddn-serp .results-layout {
    margin-left: 160px;
    margin-right: auto;
    max-width: 1180px;
    padding-left: 0;
    padding-right: 0;
  }
}
