/* Search /search/ (TEAM-M M13): the empty state of design-freeze/msite-v11/out_pre-login_search.jpg.
   Mobile-first like the revamp pages (home-v2): Nunito on the phone column, the same warm
   tokens (paper, white, line, sindoor). From 761px the phone layout sits in one centred
   430px column (owner 6 Nov pattern). DISPLAY ONLY: nothing here carries behaviour.
   19:55 exact re-gate: every geometry value below is a pixel measurement of the frozen
   frame (the msite-FINAL-vnext.html prototype is not on this laptop), noted per rule. */

.se, .se input, .se button, .se-top, .se-top input { font-family: "Nunito", "Hind", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.se .vh, .se-top ~ main .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The search bar row: back arrow + the input pill. Frame: pill x49-386 y11-55 (44 box),
   arrow glyph x15-21 y26-39, magnifier icon block x64-79 (24-box lens+handle 16px), a
   ~12px clear gap, placeholder text from x92. The 44px back hit area (DES-001) keeps its
   size; its glyph sits at the frame's x via flex-start. */
.se-top { display: flex; align-items: center; gap: 1px; padding: 11px var(--se-gutter, 16px) 0 4px; } /* ENG-1213: the pill ends on the same 16 px gutter as the sections (it ran to 4 px from the screen edge) */
.se-back { display: flex; align-items: center; justify-content: flex-start; flex: none; width: 44px; height: 44px; padding-left: 2px; border-radius: 50%; color: var(--ink); text-decoration: none; }
.se-back svg { width: 26px; height: 26px; }
.se-bar { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; height: 44px; box-sizing: border-box; padding: 0 16px 0 14px; border-radius: 22px; background: var(--white); border: 1px solid #d8d0c5; }
.se-find { flex: none; width: 16px; height: 16px; color: var(--muted); }
.se-bar input { flex: 1; min-width: 0; border: 0; padding: 0; background: none; outline: none; font-size: 14px; line-height: 20px; color: var(--ink); }
.se-bar input::placeholder { color: var(--muted); opacity: 1; }
.se-bar input:focus, .se-bar input:focus-visible { outline: 0; box-shadow: none; } /* ENG-1083: the bar carries the focus ring (next line), not a rectangle on the input inside it */
.se-bar:focus-within { border-color: var(--sindoor); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sindoor) 25%, transparent); }

/* Sections on the frame's rhythm: bar bottom y55 -> RECENT text y90 (head box y88-102),
   chips y112-149; POPULAR text y172, chips y194-229 + y238-273; ASK text y298, card
   y320-383. Section side padding 2px = the frame's headers/card sit at x1-2, and the
   chips row carries its own 5px inset (frame chips x6-10). */
.se { --se-gutter: 16px; padding-bottom: 24px; } /* ENG-1213: the page's phone side gutter (the same 16 px as .wrap and the offline state), so nothing touches the screen edge */
.se-sec { padding: 0 var(--se-gutter); }
.se-sec:first-of-type { padding-top: 33px; }
.se-sec + .se-sec { padding-top: 21px; }
.se-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 14px; margin: 0 0 10px; }
.se-h2 { margin: 0; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.se-h2:lang(hi) { letter-spacing: 0; text-transform: none; } /* [ENG-401] Devanagari keeps its conjuncts */
/* Frame "Clear all" x346-384, a muted burnt terracotta (stroke core ~#67412f on cream).
   .se-sec scope so it outranks the .pg button reset. */
.se-sec .se-clear { border: 0; padding: 0; margin-right: 4px; background: none; height: 14px; font: 600 12.5px/14px "Nunito", "Hind", sans-serif; color: #6d4326; cursor: pointer; }

/* Chips: white pills on a thin warm line. Frame: recent chips y112-149 (37 tall), popular
   y194-229/238-273 (36 tall), chip gaps ~22, row gap 9, chip text inset 10, the remove x
   a faint small glyph — ink box ~5px (x76-80 y127-132 in chip1), ~1.3px stroke, light
   neutral grey — with a clear ~9px gap after the label (label ends x67, × starts x76). */
.se-chips { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.se-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 37px; box-sizing: border-box; padding: 0 9px 0 10px; border-radius: 999px; background: var(--white); border: 1px solid #d8d0c5; font-size: 12px; font-weight: 600; line-height: 1; color: var(--ink); white-space: nowrap; }
.se-chip-pop { min-height: 36px; }
/* The frame's popular rhythm breaks 3 + 3 (Free kundli / Kundli Milan / Tarot, then
   Palm reading / Today's horoscope / Marriage report); the wider column gap keeps
   Palm reading on the second row like the frozen frame. */
.se-chips-wrap { gap: 9px 25px; margin-inline: 0; }
.se-x { display: grid; place-items: center; width: 8px; height: 8px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
/* .se-sec scope so the .pg button reset's ink does not outrank the glyph grey. Colour =
   the frame's own measured mark: light NEUTRAL grey rgb(103,103,103) (r=g=b, saturation
   0 — no cool hue, warm-palette rule safe), NOT the heavier ink/muted of the old glyph. */
.se-sec .se-x { color: #676767; }
/* The glyph itself: 6px box (ink ~5px) with the ~1.3px thin stroke set in search-empty.mjs. */
.se-x svg { width: 6px; height: 6px; }

/* "Ask without searching" (frame y320-383): a full-width card (x1-389, radius 16, hairline
   #d8d0c5 border), the persona in the guide double gold ring — photo Ø40 (x31-71 y332-371,
   centre x51.5 y351.5), 2px card-colour gap, 2px #D9A441 gold ring, outer Ø48 y328-375
   (ring = APP-PRD guide token "ring #D9A441" + "2 px card-colour gap + 2 px ring"; the
   frame JPG's washed #bbaa74 reading is 2px-band chroma subsampling, the token is the
   colour) — title y338 / subline y357, and the Ask CTA right-aligned at x352-373 in the
   page's muted grey - not sindoor. Portrait = the love guide face (see search-empty.mjs). */
.se-ask { display: flex; align-items: center; gap: 20px; min-height: 64px; padding: 7px 14px 7px 13px; border-radius: 16px; background: var(--white); border: 1px solid #d8d0c5; box-shadow: 0 2px 12px rgba(58, 42, 30, .06); text-decoration: none; color: inherit; }
.se-ask img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 0%; box-shadow: 0 0 0 2px var(--white), 0 0 0 4px #D9A441; }
.se-ask-m { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding-top: 6px; }
.se-ask-m b { font-size: 14px; line-height: 18px; color: var(--ink); }
.se-ask-m span { font-size: 12.5px; line-height: 16px; color: var(--muted); }
.se-ask-go { flex: none; font: 700 13px/1 "Nunito", "Hind", sans-serif; color: var(--muted); }

/* The empty state ends ~row 384. The 55px top row and 24px footer gap put the
   footer just below the viewport, as in the 390x708 frozen frame. */
.se { min-height: calc(100dvh - 79px); }
.se:has(#se-sug:not([hidden])) { min-height: calc(100dvh - 20px); }

/* ---- M16: no-results state (out_pre-login_search_s_none_q_xyzq.jpg) ----
   Rhythm re-measured off the frame for the exact-same gate: art top y102 (47px under
   the bar's y55 bottom), heading ink y240 (24px under the art box), caption ink y268
   (6px under the heading box), chips y300 (21px later, rows 8px apart), CTA y402
   (22px after the last chip row). */
.se .se-none { padding-top: 47px; text-align: center; }
.sn-art { display: block; width: 180px; height: 110px; margin: 0 auto; }
/* .se- prefixed: ad.css zeroes h2/p margins at (0,1,1), a one-class rule cannot win.
   overflow-wrap: a long unbroken query (case C-W1) must wrap, not push the page wide. */
.se .sn-h { margin: 24px 0 0; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.se .sn-sub { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.se-none-chips { margin: 17px 20px 0; justify-content: flex-start; gap: 8px 13px; }
/* The frame's chips are a touch wider than the empty state's (13px side padding), which
   is what breaks its four chips 3 + 1 as drawn. */
.se-none-chips .se-chip { padding-inline: 15px; }
.se .se-none-cta { display: flex; align-items: center; justify-content: center; margin: 20px 26px 0; height: 44px; border-radius: 22px; background: var(--sindoor); color: #fff; font: 700 15px/1 "Nunito", "Hind", sans-serif; text-decoration: none; }
/* The clear x of the bar shows only while a query is on it (the state island sets the
   body class; without JS the bar stays the empty state's). Frame: an 18px warm tan
   filled circle ~10px off the pill's right edge, the small ink x drawn by the svg in
   search-empty.mjs (11:20 QA) — so no wrapper colour of its own. */
.se-top .se-clearq { display: none; flex: none; place-items: center; width: 18px; height: 18px; margin: 0 -6px 0 0; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
body.se-state-none .se-top .se-clearq { display: grid; }
body.se-state-none .se-top .se-xc { display: none; }

/* ---- M16: offline state (out_pre-login_search_s_offline.jpg) ----
   The amber notice is full-bleed 18px under the bar (the page column has no side padding
   of its own; sections add theirs). Frame-measured: notice 61px, label 23px under it,
   chips 15px under the label, Try again 21px under the chips. */
.so-notice { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 15px 16px; background: var(--butter-l); }
[data-se-state="offline"] .so-notice { margin-inline: 16px; border-radius: 12px; }
[data-se-state="offline"] .se-sec { padding-inline: 16px; }
[data-se-state="offline"] .se-chips { margin-inline: 0; }
.so-ic { flex: none; width: 26px; height: 22px; color: rgb(92,74,30); } /* frame-measured ~26x22 glyph, dark-brown ink (11:20 QA) */
.so-t { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.so-t b { font-size: 13px; font-weight: 700; line-height: 1.15; color: #7a6420; }
.so-t span { font-size: 12.5px; font-weight: 400; line-height: 1.2; color: #85712c; }
.so-notice + .se-sec { padding-top: 23px; }
.so-notice + .se-sec .se-head { margin-bottom: 12px; }
.se-sec:has(.so-again) { padding-top: 21px; }
.se .so-again { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 22px; background: var(--white); border: 1px solid #c3beb8; color: #8f4d27; font: 600 15px/1 "Nunito", "Hind", sans-serif; text-decoration: none; } /* the frame's warm-gray outline and rust text */

/* Desktop (owner 6 Nov): the same phone layout in one centred column on a soft page. */
@media (min-width: 761px) {
  body:has(.se) { background: color-mix(in srgb, var(--peach-l) 45%, var(--paper)); }
  .pg:has(.se) { max-width: 430px; margin-inline: auto; border-inline: 1px solid var(--line); }
}

/* M14 — suggestion states (out_pre-login_search_s_suggest_q_{mar,palm,kum}.jpg, all 420x708 with
   content x15:405; every value below is a pixel measurement of those frames). The bar keeps M13's
   geometry; typing adds the query's clear circle (frame x367-385 y21-44, Ø~21, fill #F2DDBE with
   a grey ×; webkit's native cancel stays hidden so only one × draws). Groups reuse the .se-head /
   .se-h2 rhythm (labels at the frame's rust #6d4326, the Clear-all family — measured label cores
   #562507-#67331B are that ink's JPEG reading), one white card a group, hairline #d8d0c5, radius
   16, rows divided by the frame's 1px #d5d6cf line (the readings group is ONE card with three
   rows, exactly the mar frame y211-421). Guide rows: the M13 ask-card ring (photo Ø40, 2px card
   gap, 2px #D9A441). Reading covers 36x48 r8 (the catalog's 164x220 -sm crops). Tool rows: a
   Ø38 pale-peach disc (--peach-l) with the dark chart-wheel glyph. Rashifal rows: the round sign
   icon Ø38. Titles 15.5px bold ink, subtitles 13px muted, actions 15px muted 16px off the card
   edge. The match highlight is the frame's soft butter swatch #f7e4bc (y300-317, radius ~4). */
.se-bar input::-webkit-search-cancel-button, .se-bar input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.se-xc { flex: none; display: grid; place-items: center; width: 21px; height: 21px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #F2DDBE; color: #6b6258; cursor: pointer; }
.se-xc svg { display: block; }
.se-sug .se-sec { padding: 0 var(--se-gutter); }
.se-sug > .se-sec:first-child { padding-top: 29px; }
.se-sug > .se-sec + .se-sec { padding-top: 19px; }
.se-sug-h { color: #6d4326; }
.se-sug .se-head { margin-bottom: 10px; }
.se-card { background: var(--white); border: 1px solid #d8d0c5; border-radius: 16px; box-shadow: 0 2px 12px rgba(58, 42, 30, .06); }
.se-row { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 6px 16px 6px 14px; text-decoration: none; color: inherit; }
.se-row-div { border-top: 1px solid #d5d6cf; }
.se-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.se-t { font-size: 15.5px; font-weight: 700; line-height: 20px; color: var(--ink); }
.se-s { font-size: 13px; line-height: 17px; color: var(--muted); }
.se .se-act { flex: none; margin: 0; padding: 0; border: 0; background: none; font: 600 15px/20px "Nunito", "Hind", sans-serif; color: var(--muted); }
.se-row-x { cursor: default; }
.se-ring img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 0%; box-shadow: 0 0 0 2px var(--white), 0 0 0 4px #D9A441; }
.se-cov { flex: none; width: 36px; height: 48px; border-radius: 8px; object-fit: cover; }
.se-row { min-height: 53px; }
.se-row:has(.se-ring) { min-height: 59px; padding-left: 12px; }
.se-row:has(.se-cov) { min-height: 70px; padding: 11px 16px 10px 14px; }
.se-row:has(.se-ring) .se-tx { margin-left: -7px; }
.se-tico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--peach-l); color: #67201e; }
.se-sig { flex: none; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.se-hit { background: #f7e4bc; border-radius: 4px; padding: 0 1px; color: inherit; }
.se-all { display: block; margin: 25px 0 0; text-align: center; font: 600 14.5px/20px "Nunito", "Hind", sans-serif; color: #6d4326; text-decoration: none; }

/* M15 — results view (/search/?q=…, out_pre-login_search_s_results_q_marriage.jpg, 420x708 content
   x15:405; every value a pixel measurement). The tab pills (y72-104): All N selected = sindoor fill
   #c2410c (the measured rgb(195,65,16) IS the token) with white text; the others white pills with
   the warm hairline and ink text (measured #2D2C2A); a zero-count group gets no pill (the frozen
   frame omits Rashifal). Numbered labels on the cream between cards (GUIDES 1 / READINGS 3 /
   TOOLS 1, the M14 rust). Cards per group: guide y149-214 (h66), readings y252-468 (three ~71px
   rows, full-width 1px dividers at y325/y396 — re-measured; a 1px-blind column read first suggested insets), tool
   y506-565. Same row anatomy as the suggestion cards. */
.se-tabs { display: flex; gap: 15px; padding: 17px 2px 0; overflow-x: auto; scrollbar-width: none; }
.se-tab { flex: none; }
.se-tab { min-height: 33px; margin: 0; padding: 0 14px; border: 1px solid #d8d0c5; border-radius: 17px; background: var(--white); font: 600 13.5px/31px "Nunito", "Hind", sans-serif; color: var(--ink); cursor: pointer; white-space: nowrap; }
.se-tab-on { border-color: var(--sindoor); background: var(--sindoor); color: #fff; }
.se-res [role="tabpanel"] { padding-top: 21px; }
.se-res .se-head { margin-bottom: 7px; }
.se-res .se-sec + .se-sec { padding-top: 19px; }
.se-res .se-row:has(.se-ring) { min-height: 64px; }
.se-res .se-row:has(.se-cov) { min-height: 71px; }
.se-res .se-row:has(.se-tico), .se-res .se-row:has(.se-sig) { min-height: 57px; }
