/* ================================================================
   Roughan Custom Search – rcs-style.css  v4.2
   LATO ONLY – no other font anywhere
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap');

:root {
  --rcs-accent:          #d0283c;
  --rcs-accent-h:        #b8202f;
  --rcs-white:           #ffffff;
  --rcs-text:            #1a1a1a;
  --rcs-muted:           #6b6b6b;
  --rcs-border:          #e8e8e8;
  --rcs-z:               999998;
  --rcs-dur:             0.30s;
  --rcs-ease:            cubic-bezier(0.4, 0, 0.2, 1);
  --rcs-heading-size:    2.4rem;
  --rcs-eyebrow-size:    0.82rem;
  --rcs-input-size:      1rem;
  --rcs-card-title-size: 1rem;
}

/* ── Kill ALL blue outlines ── */
.rcs-trigger:focus, .rcs-trigger:focus-visible,
.rcs-dropdown *:focus, .rcs-dropdown *:focus-visible,
.rcs-card:focus, .rcs-card:focus-visible,
.rcs-pagination a:focus,
.rcs-result-item__title a:focus,
.rcs-result-item__link:focus {
  outline:    none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* ════════════════════════════════════════════
   1. TRIGGER BUTTON
════════════════════════════════════════════ */
.rcs-wrap {
  display:        inline-flex;
  align-items:    center;
  vertical-align: middle;
}

.rcs-trigger {
  display:                  inline-flex;
  align-items:              center;
  justify-content:          center;
  width:                    52px;
  height:                   52px;
  border-radius:            50%;
  background:               var(--rcs-accent);
  color:                    var(--rcs-white);
  border:                   none;
  cursor:                   pointer;
  padding:                  0;
  transition:               background 0.18s ease;
  box-shadow:               none;
  flex-shrink:              0;
  font-family:              'Lato', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.rcs-trigger:hover  { background: var(--rcs-accent-h); }
.rcs-trigger:active { background: var(--rcs-accent-h); }
.rcs-trigger svg    { pointer-events: none; display: block; }

/* Body lock REMOVED – dropdown scrolls internally instead */

/* ════════════════════════════════════════════
   2. DROPDOWN CONTAINER
════════════════════════════════════════════ */
.rcs-dropdown {
  position:    fixed;
  left:        0;
  width:       100%;
  z-index:     var(--rcs-z);
  top:         -200vh;
  font-family: 'Lato', sans-serif !important;

  /* Scrollable — shows all cards without cutting off */
  overflow-y:  auto;
  max-height:  calc(100vh - 80px); /* 80px = safe header fallback; JS sets real top */

  clip-path:  inset(0 0 100% 0);
  opacity:    0;
  visibility: hidden;
  transition:
    clip-path  var(--rcs-dur) var(--rcs-ease),
    opacity    var(--rcs-dur) var(--rcs-ease),
    visibility 0s linear var(--rcs-dur);

  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.rcs-dropdown * {
  font-family: 'Lato', sans-serif !important;
}

.rcs-dropdown.rcs-open {
  clip-path:  inset(0 0 0% 0);
  opacity:    1;
  visibility: visible;
  transition:
    clip-path  var(--rcs-dur) var(--rcs-ease),
    opacity    var(--rcs-dur) var(--rcs-ease),
    visibility 0s linear 0s;
}

/* ════════════════════════════════════════════
   3. RED BANNER SECTION
════════════════════════════════════════════ */
.rcs-dropdown__banner {
  background: var(--rcs-accent);
  padding:    44px 24px 52px;
  text-align: center;
  position:   relative;
}

.rcs-dropdown__banner-inner {
  max-width: 680px;
  margin:    0 auto;
}

.rcs-dropdown__close {
  position:                 absolute;
  top:                      16px;
  right:                    20px;
  display:                  flex;
  align-items:              center;
  justify-content:          center;
  width:                    36px;
  height:                   36px;
  background:               rgba(255,255,255,0.15);
  border:                   none;
  border-radius:            50%;
  color:                    var(--rcs-white);
  cursor:                   pointer;
  padding:                  0;
  transition:               background 0.18s ease, transform 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}
.rcs-dropdown__close:hover { background: rgba(255,255,255,0.30); transform: rotate(90deg); }

/* Eyebrow */
.rcs-eyebrow {
  font-size:      var(--rcs-eyebrow-size);
  font-weight:    300;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.82);
  margin:         0 0 12px;
  line-height:    1;
}

/* Heading */
.rcs-heading,
h1.rcs-heading,
h2.rcs-heading {
  font-size:      var(--rcs-heading-size) !important;
  font-weight:    400 !important;
  color:          var(--rcs-white) !important;
  margin:         0 0 28px !important;
  line-height:    1.2 !important;
  letter-spacing: 0 !important;
  font-family:    'Lato', sans-serif !important;
}

/* ── Search input ── */
.rcs-form { width: 100%; }

.rcs-input-wrap {
  display:       flex;
  align-items:   center;
  max-width:     620px;
  margin:        0 auto;
  background:    var(--rcs-white);
  border-radius: 4px;
  box-shadow:    none;
  position:      relative;
  overflow:      visible;
}

.rcs-input {
  flex:               1 1 auto;
  height:             56px;
  border:             none !important;
  outline:            none !important;
  box-shadow:         none !important;
  padding:            0 18px;
  font-size:          var(--rcs-input-size);
  font-weight:        300;
  color:              var(--rcs-text);
  background:         transparent;
  border-radius:      4px 0 0 4px;
  -webkit-appearance: none;
}

.rcs-input::placeholder {
  color:       #aaa;
  font-weight: 300;
}
.rcs-input::-webkit-search-cancel-button,
.rcs-input::-webkit-search-decoration { -webkit-appearance: none; }

.rcs-submit {
  display:                  flex;
  align-items:              center;
  justify-content:          center;
  flex-shrink:              0;
  width:                    54px;
  height:                   56px;
  background:               transparent;
  border:                   none !important;
  outline:                  none !important;
  cursor:                   pointer;
  color:                    #888;
  padding:                  0;
  border-radius:            0 4px 4px 0;
  transition:               color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rcs-submit:hover { color: var(--rcs-accent); }

/* ════════════════════════════════════════════
   4. CARDS SECTION  – pixel-perfect match
════════════════════════════════════════════ */
.rcs-dropdown__cards {
  background: #ebebeb;
  padding:    24px 28px 28px;
}

.rcs-cards-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   16px;
  max-width:             960px;
  margin:                0 auto;
}

/* Card */
.rcs-card {
  display:         flex;
  flex-direction:  column;
  text-decoration: none;
  color:           var(--rcs-text);
  background:      var(--rcs-white);
  border:          none;
  border-bottom:   3px solid var(--rcs-border);
  border-radius:   0;
  overflow:        hidden;
  box-shadow:      none;
  transition:      border-bottom-color 0.18s ease;
}
.rcs-card:hover {
  border-bottom-color: var(--rcs-accent);
}

/* Card image — tall */
.rcs-card__img {
  width:       100%;
  height:      185px;
  overflow:    hidden;
  background:  #e0e0e0;
  flex-shrink: 0;
  display:     block;
}
.rcs-card__img img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

.rcs-card__img-placeholder {
  width:           100%;
  height:          100%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      #e4e4e4;
}

/* Card body */
.rcs-card__body {
  display:         flex;
  flex-direction:  column;
  padding:         14px 16px 18px;
  gap:             14px;
  flex:            1;
}

.rcs-card__title {
  font-size:   var(--rcs-card-title-size);
  font-weight: 400;
  color:       var(--rcs-text);
  line-height: 1.35;
  margin:      0;
}

/* Red circle arrow — sits at bottom left */
.rcs-card__arrow {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           40px;
  height:          40px;
  border-radius:   50%;
  background:      var(--rcs-accent);
  color:           var(--rcs-white);
  flex-shrink:     0;
  align-self:      flex-start;
  transition:      background 0.18s ease;
}
.rcs-card:hover .rcs-card__arrow { background: var(--rcs-accent-h); }
.rcs-card__arrow svg { pointer-events: none; display: block; }

/* ════════════════════════════════════════════
   5. LIVE SUGGESTIONS
════════════════════════════════════════════ */
.rcs-suggestions {
  position:      absolute;
  top:           calc(100% + 3px);
  left:          0;
  right:         0;
  background:    var(--rcs-white);
  border-radius: 0 0 4px 4px;
  box-shadow:    0 8px 28px rgba(0,0,0,0.14);
  overflow:      hidden auto;
  z-index:       10;
  max-height:    0;
  opacity:       0;
  transition:    max-height 0.22s var(--rcs-ease), opacity 0.18s ease;
  text-align:    left;
}
.rcs-suggestions.rcs-sugg-open { max-height: 400px; opacity: 1; }

.rcs-sugg-item {
  display:         flex;
  align-items:     center;
  gap:             12px;
  padding:         10px 16px;
  text-decoration: none;
  color:           var(--rcs-text);
  border-bottom:   1px solid var(--rcs-border);
  transition:      background 0.12s ease;
}
.rcs-sugg-item:last-of-type { border-bottom: none; }
.rcs-sugg-item:hover { background: #fff8f8; }

.rcs-sugg-item__thumb {
  width: 40px; height: 40px; border-radius: 3px;
  object-fit: cover; flex-shrink: 0; background: var(--rcs-border); display: block;
}
.rcs-sugg-item__thumb-placeholder {
  width: 40px; height: 40px; border-radius: 3px; background: #f0f0f0;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #ccc;
}
.rcs-sugg-item__body { flex: 1; min-width: 0; }
.rcs-sugg-item__type {
  display: block; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--rcs-accent);
}
.rcs-sugg-item__title {
  font-size: 0.9rem; font-weight: 600; color: var(--rcs-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rcs-sugg-item__excerpt {
  font-size: 0.76rem; color: var(--rcs-muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.rcs-sugg-footer {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 16px; font-size: 0.82rem; font-weight: 600;
  color: var(--rcs-accent); text-decoration: none;
  background: #fff8f8; border-top: 1px solid var(--rcs-border);
  transition: background 0.12s ease;
}
.rcs-sugg-footer:hover { background: #ffeeee; }
.rcs-sugg-loading, .rcs-sugg-empty {
  padding: 16px; font-size: 0.88rem; color: var(--rcs-muted); text-align: center;
}

/* ─── end live suggestions ─── */

/* ════════════════════════════════════════════
   6. RESULTS PAGE HERO
════════════════════════════════════════════ */
.rcs-results-hero {
  background: var(--rcs-accent);
  padding:    48px 24px 60px;
  text-align: center;
  font-family: 'Lato', sans-serif !important;
}
.rcs-results-hero * { font-family: 'Lato', sans-serif !important; }
.rcs-results-hero__inner {
  max-width: 680px;
  margin:    0 auto;
}
.rcs-results-hero .rcs-heading { margin-bottom: 28px !important; }

/* ════════════════════════════════════════════
   7. RESULTS LIST
════════════════════════════════════════════ */
.rcs-results-wrap {
  max-width:   900px;
  margin:      0 auto;
  padding:     44px 24px 80px;
  font-family: 'Lato', sans-serif !important;
}
.rcs-results-wrap * { font-family: 'Lato', sans-serif !important; }
.rcs-results-wrap--empty { text-align: center; padding-top: 60px; }
.rcs-results-count {
  font-size: 0.87rem; color: var(--rcs-muted);
  margin: 0 0 28px; padding-bottom: 16px; border-bottom: 1px solid var(--rcs-border);
}
.rcs-results-list { display: flex; flex-direction: column; }
.rcs-result-item {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 28px 0; border-bottom: 1px solid var(--rcs-border);
}
.rcs-result-item__thumb {
  flex-shrink: 0; width: 120px; height: 88px; border-radius: 3px;
  overflow: hidden; display: block; background: #efefef;
}
.rcs-result-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rcs-result-item__body { flex: 1; min-width: 0; }
.rcs-result-item__type {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--rcs-accent); margin-bottom: 6px;
}
.rcs-result-item__title { font-size: 1.08rem; font-weight: 700; margin: 0 0 8px; line-height: 1.28; }
.rcs-result-item__title a { color: var(--rcs-text); text-decoration: none; transition: color 0.16s ease; }
.rcs-result-item__title a:hover { color: var(--rcs-accent); }
.rcs-result-item__excerpt { font-size: 0.9rem; color: var(--rcs-muted); line-height: 1.6; margin: 0 0 12px; }
.rcs-result-item__link {
  font-size: 0.82rem; font-weight: 600; color: var(--rcs-accent);
  text-decoration: none; transition: opacity 0.16s ease;
}
.rcs-result-item__link:hover { opacity: 0.7; }

/* ════════════════════════════════════════════
   8. PAGINATION
════════════════════════════════════════════ */
.rcs-pagination {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center; margin-top: 48px;
  padding-top: 24px; border-top: 1px solid var(--rcs-border);
}
.rcs-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 2px solid var(--rcs-border); border-radius: 3px;
  font-size: 0.87rem; font-weight: 600; color: var(--rcs-text);
  text-decoration: none; transition: border-color 0.15s ease, color 0.15s ease;
  font-family: 'Lato', sans-serif !important;
}
.rcs-pagination .page-numbers:hover { border-color: var(--rcs-accent); color: var(--rcs-accent); }
.rcs-pagination .page-numbers.current { background: var(--rcs-accent); border-color: var(--rcs-accent); color: var(--rcs-white); }
.rcs-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ════════════════════════════════════════════
   9. NO RESULTS
════════════════════════════════════════════ */
.rcs-no-results-wrap { text-align: center; padding: 48px 0; }
.rcs-no-results      { font-size: 1rem; color: var(--rcs-text); margin: 0 0 8px; }
.rcs-no-results-hint { font-size: 0.87rem; color: var(--rcs-muted); margin: 0; }

/* ════════════════════════════════════════════
   10. RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 768px) {
  .rcs-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .rcs-card__img  { height: 150px; }
}
@media (max-width: 520px) {
  .rcs-cards-grid             { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rcs-card__img              { height: 110px; }
  .rcs-dropdown__banner       { padding: 36px 16px 44px; }
  .rcs-dropdown__cards        { padding: 14px 12px 18px; }
  .rcs-trigger                { width: 44px; height: 44px; }
  .rcs-result-item            { flex-direction: column; }
  .rcs-result-item__thumb     { width: 100%; height: 180px; }
  .rcs-results-wrap           { padding: 28px 16px 56px; }
}
