/* Search in the new design (APEX; redesign P5b, release 5b-1): /el/anazitisi, /en/search. Loaded by templates/search-next.php after
   site-next.css and home-next.css (header.php, the per-route pattern), whose cards, pictures, section dots and chips it reuses; this
   file is the page's own layout: the heading and its box, the starting points, the brand and the models, the results and the pager.
   site.css still loads on this page: a result without a photograph draws the editorial card, whose artwork is site.css's (S-17).

   Rules kept (dev plan P2/P3): every colour is a token from site-next.css, in both themes; no text under 12 px; the box at 16 px
   (no zoom on a phone); targets at least 44 px; no variable-font settings; no inline image URI; a row of cards ends on one line. */

/* No bottom padding on the page: the footer's top margin is the one --section-gap under its last block (owner, 3 December 2026). */
.search-next .fx-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:0 var(--s2);font-size:var(--fs-caption);color:var(--text-muted)}
.search-next .fx-crumbs a{display:inline-flex;align-items:center;min-height:32px;color:var(--text-muted)}
.search-next .fx-crumbs a:hover{color:var(--text-strong)}
.search-next .fx-crumbs [aria-current]{color:var(--text-strong);font-weight:600}

/* ------------------------------------------------------------------ the heading and the box */
.sx-head{display:flex;flex-direction:column;gap:var(--s3);padding-block:var(--s6) var(--s5);border-bottom:1px solid var(--line)}
.sx-head h1{margin:0;font:var(--weight-heading) var(--fs-h1)/1.08 var(--font-heading);letter-spacing:-.015em;color:var(--text-strong)}
.sx-form{display:flex;gap:var(--s3);max-width:800px;margin-top:var(--s3)}
.sx-field{display:flex;align-items:center;gap:var(--s3);flex:1 1 auto;min-width:0;min-height:52px;padding:0 var(--s4);border:1px solid var(--line-control);border-radius:var(--r-md);background:var(--surface);color:var(--text-muted)}
.sx-field:hover{border-color:var(--text-muted)}
.sx-field:focus-within{border-color:var(--text-muted);outline:2px solid var(--focus);outline-offset:2px}
.sx-field svg{flex-shrink:0}
.sx-field input{flex:1 1 auto;min-width:0;height:50px;margin:0;padding:0;border:0;background:transparent;color:var(--text-strong);font-size:var(--fs-body);outline:none}
.sx-field input::placeholder{color:var(--text-faint);opacity:1}
.sx-form .btn{min-height:52px;padding-inline:var(--s6);font-size:var(--fs-body)}

/* ------------------------------------------------------------------ with no query: where to start */
.sx-suggest{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2);margin-top:var(--s5);font-size:var(--fs-small);color:var(--text-muted)}
.sx-suggest .chip{min-height:44px}
.sx-hint{max-width:var(--reading);margin:var(--s5) 0 0;font-size:var(--fs-small);line-height:1.6;color:var(--text-muted)}

/* ------------------------------------------------------------------ a section: the models, the articles, nothing found */
.sx-section{padding-top:var(--s6)}
.sx-section__head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:var(--s2) var(--s5);margin-bottom:var(--s5)}
/* Each section's heading has its eyebrow with the kerb above it (owner, 1 December 2026); the cards' titles inside have none. */
.sx-section .ar-eyebrow{margin-bottom:var(--s2)}
.sx-section h2{margin:0;font:var(--weight-title) var(--fs-h3)/1.25 var(--font-title);color:var(--text-strong);overflow-wrap:anywhere}
.sx-count{margin:0;font-size:var(--fs-small);color:var(--text-muted);white-space:nowrap}
.sx-more{display:inline-flex;align-items:center;gap:var(--s2);min-height:44px;margin-top:var(--s3);font-size:var(--fs-small);font-weight:650;color:var(--text-strong)}
.sx-more::after{content:"→";content:"→"/""}
.sx-more:hover{color:var(--accent-ink)}
.sx-more--phone{display:none}
.sx-note{max-width:var(--reading);margin:var(--s6) 0 0;font-size:var(--fs-small);line-height:1.6;color:var(--text-muted)}

/* the brand the query names exactly: its logo (or its name) to its page */
.sx-brand{display:inline-flex;align-items:center;max-width:100%;min-height:64px;margin-top:var(--s6);padding:var(--s3) var(--s5);border:1px solid var(--line-control);border-radius:var(--r-md);font-weight:650;color:var(--text-strong);overflow-wrap:anywhere}
/* a logo sits on its studio plate (release 4-3: bg_logo_tone(), .logo-plate in site-next.css); the name alone on the surface */
.sx-brand:not(.logo-plate){background:var(--surface)}
.sx-brand.logo-plate{border-color:transparent}
.sx-brand:hover{border-color:var(--text-muted)}
.sx-brand img{width:auto;height:auto;max-width:150px;max-height:34px;object-fit:contain}

/* the models: brand, name and catalogue price, two to a row */
.sx-model-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s3);margin:0;padding:0;list-style:none}
.sx-model{display:flex;align-items:center;justify-content:space-between;gap:var(--s4);min-width:0;padding:var(--s4) var(--s5);border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
.sx-model:hover{border-color:var(--line-control)}
.sx-model__name{display:flex;flex-direction:column;gap:2px;min-width:0}
.sx-model__brand{align-self:flex-start;font-size:var(--fs-caption);font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:var(--accent-ink)}
a.sx-model__brand:hover{text-decoration:underline;text-underline-offset:3px}
.sx-model__title{font:var(--weight-title) var(--fs-h4)/1.3 var(--font-title);color:var(--text-strong);overflow-wrap:anywhere}
.sx-model__title:hover{color:var(--accent-ink)}
.sx-model__price{display:flex;flex-direction:column;gap:2px;flex-shrink:0;text-align:right;font:var(--weight-title) var(--fs-h4)/1.25 var(--font-title);color:var(--text-strong)}
.sx-model__price small{font:400 var(--fs-label)/1.4 var(--font-text);color:var(--text-muted)}

/* the articles: three to a row, each row ending level, then the pager */
.sx-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s6) var(--s5);align-items:stretch}
.sx-grid .card{display:flex;flex-direction:column;gap:var(--s3);min-width:0}
.sx-grid .media{aspect-ratio:3/2}
.sx-grid .card__body{display:flex;flex-direction:column;gap:var(--s2);flex:1 1 auto}
.sx-grid .card__body > .meta{margin-top:auto}
.sx-results .pagination{margin-top:var(--s7)}

/* nothing found */
.sx-empty{max-width:var(--reading)}
.sx-empty p{margin:var(--s3) 0 0;color:var(--text-muted)}

@media (max-width:1000px){
  .sx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .sx-head{padding-block:var(--s5) var(--s4)}
  .sx-head h1{font-size:var(--fs-h2)}
  .sx-form{flex-direction:column}
  .sx-form .btn{width:100%}
  .sx-model-list{grid-template-columns:minmax(0,1fr)}
  .sx-model{padding:var(--s3) var(--s4)}
  /* A phone shows two models and offers the guide for the rest (UX review U8). */
  .sx-model-list > .sx-model:nth-child(n+3){display:none}
  .sx-more--phone{display:inline-flex}
  /* A list, as the topic page on a phone: the title first, the picture beside it. */
  .sx-grid{grid-template-columns:minmax(0,1fr);gap:0}
  .sx-grid .card{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:var(--s4);padding-block:var(--s4);border-top:1px solid var(--line)}
  .sx-grid .card:first-child{border-top:0}
  /* The last result closing the page (no pager under it) has no rule under it: the space under its words is the footer's top
     margin alone (owner, 3 December 2026). */
  .sx-page > .sx-results:last-child > .sx-grid:last-child > .card:last-child{padding-bottom:0}
  .sx-grid .card > .media{order:2;aspect-ratio:1}
  .sx-grid .card__dek{display:none}
}
