/* Recherche Joomla : structure éditoriale GSI, couleurs pilotées par Choix d'apparence. */
body.gsi-finder-page {
  --find-panel: #1b2732;
  --find-panel-alt: #202f3c;
  --find-line: #344a5c;
  --find-text: #263746;
  --find-muted: #526574;
  --find-link: #075c9d;
  --find-panel-text: #f0f5f8;
  --find-panel-muted: #b6c5d0;
  --find-panel-link: #a8dcff;
  --find-accent: #138bd6;
  --find-accent-light: #0866a8;
  --find-focus: #087ac3;
  --find-search-surface: linear-gradient(135deg, #f4f9fc, #e8f3f8);
  --find-search-surface-alt: #f8fbfd;
  --find-search-border: #c8dfe9;
  --find-search-text: #123b56;
  --find-search-muted: #5d7688;
  --find-search-control: #fff;
  --find-filter-button-start: #159bc4;
  --find-filter-button-end: #0874a3;
  --find-filter-button-border: #08749f;
  --find-filter-button-shadow: rgba(8, 116, 159, .2);
  --find-filter-button-shadow-hover: rgba(8, 116, 159, .26);
  --find-filter-button-focus: #58c2e3;
  --find-intro-bg: linear-gradient(135deg, #f4f9fc, #e7f2f8);
  --find-intro-border: #c7dce9;
  --find-intro-title: #12314d;
  --find-intro-kicker: #1683ad;
  --find-intro-muted: #58718a;
  --find-intro-icon-bg: #eef8fd;
  --find-intro-icon-border: #c4e2ef;
  --find-intro-icon-color: #0b82b5;
}

/* 1 — Apparence claire */
body.gsi-finder-page.choixapparence-1 {
  --find-panel: #fff;
  --find-panel-alt: #f4f8fb;
  --find-line: #d6e0e8;
  --find-text: #253746;
  --find-muted: #5b6d7c;
  --find-link: #075c9d;
  --find-panel-text: #253746;
  --find-panel-muted: #5b6d7c;
  --find-panel-link: #075c9d;
  --find-accent: #1378bd;
  --find-accent-light: #0866a8;
  --find-focus: #087ac3;
  --find-search-surface: linear-gradient(135deg, #f4f9fc, #e8f3f8);
  --find-search-surface-alt: #f8fbfd;
  --find-search-border: #c8dfe9;
  --find-search-text: #123b56;
  --find-search-muted: #5d7688;
  --find-search-control: #fff;
}

/* 2 — Apparence sombre graphite */
body.gsi-finder-page.choixapparence-2 {
  --find-panel: #1e252b;
  --find-panel-alt: #272f36;
  --find-line: #46525c;
  --find-text: #edf1f4;
  --find-muted: #c0c8ce;
  --find-link: #d0e0ea;
  --find-panel-text: #edf1f4;
  --find-panel-muted: #c0c8ce;
  --find-panel-link: #d0e0ea;
  --find-accent: #708da2;
  --find-accent-light: #b3cbd9;
  --find-focus: #d3e8f4;
  --find-search-surface: linear-gradient(135deg, #252d33, #303a42);
  --find-search-surface-alt: #272f36;
  --find-search-border: #46545e;
  --find-search-text: #edf1f4;
  --find-search-muted: #c0c8ce;
  --find-search-control: #20272c;
  --find-filter-button-start: #718b9e;
  --find-filter-button-end: #4c6272;
  --find-filter-button-border: #4c6272;
  --find-filter-button-shadow: rgba(30, 44, 54, .28);
  --find-filter-button-shadow-hover: rgba(30, 44, 54, .38);
  --find-filter-button-focus: #d3e8f4;
  --find-intro-bg: linear-gradient(120deg, #242a30, #363f46);
  --find-intro-border: #55636e;
  --find-intro-title: #f3f6f8;
  --find-intro-kicker: #b3cbd9;
  --find-intro-muted: #c0c8ce;
  --find-intro-icon-bg: rgba(222, 241, 253, .08);
  --find-intro-icon-border: rgba(184, 223, 245, .3);
  --find-intro-icon-color: #b3cbd9;
}

/* 3 — Apparence bleue */
body.gsi-finder-page.choixapparence-3 {
  --find-panel: #0d2c46;
  --find-panel-alt: #123853;
  --find-line: #285574;
  --find-text: #f0f7fc;
  --find-muted: #bfd0dd;
  --find-link: #a2ddff;
  --find-panel-text: #f0f7fc;
  --find-panel-muted: #bfd0dd;
  --find-panel-link: #a2ddff;
  --find-accent: #147fca;
  --find-accent-light: #67caff;
  --find-focus: #8cdbff;
  --find-search-surface: linear-gradient(135deg, #0d2c46, #123853);
  --find-search-surface-alt: #123853;
  --find-search-border: #285574;
  --find-search-text: #f0f7fc;
  --find-search-muted: #bfd0dd;
  --find-search-control: #0a263d;
  --find-filter-button-start: #159bc4;
  --find-filter-button-end: #0874a3;
  --find-filter-button-border: #08749f;
  --find-filter-button-shadow: rgba(8, 116, 159, .2);
  --find-filter-button-shadow-hover: rgba(8, 116, 159, .26);
  --find-filter-button-focus: #58c2e3;
  --find-intro-bg: linear-gradient(120deg, #062a45, #0b4770);
  --find-intro-border: #0d5f91;
  --find-intro-title: #fff;
  --find-intro-kicker: #8cdbff;
  --find-intro-muted: #d4eafa;
  --find-intro-icon-bg: rgba(222, 241, 253, .1);
  --find-intro-icon-border: rgba(184, 223, 245, .32);
  --find-intro-icon-color: #8cdbff;
}

body.gsi-finder-page,
body.gsi-finder-page #g-page-surround,
body.gsi-finder-page #g-main,
body.gsi-finder-page #g-mainbar {
  color: var(--find-text);
}

body.gsi-finder-page #g-main .platform-content,
body.gsi-finder-page #g-mainbar .platform-content {
  position: relative;
  left: 50%;
  box-sizing: border-box;
  width: min(1250px, calc(100vw - 32px));
  max-width: none;
  margin-inline: 0;
  padding-block: 24px 36px;
  transform: translateX(-50%);
}

body.gsi-finder-page .gsi-finder-intro {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 20px 22px;
  border: 1px solid #0b4a70;
  border-radius: 15px;
  background: linear-gradient(115deg, #082a45, #0d4a70);
  box-shadow: 0 8px 22px rgba(10, 42, 66, .14);
  color: #fff;
}

body.gsi-finder-page .gsi-finder-intro::after {
  position: absolute;
  top: -100px;
  right: 30px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(157, 224, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(157, 224, 255, .03), 0 0 0 48px rgba(157, 224, 255, .02);
  content: "";
  pointer-events: none;
}

body.gsi-finder-page .gsi-finder-intro > * {
  position: relative;
  z-index: 1;
}

body.gsi-finder-page .gsi-finder-intro-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(182, 231, 255, .35);
  border-radius: 13px;
  background: rgba(255, 255, 255, .1);
  color: #b8ecff;
  font-size: 1.2rem;
}

body.gsi-finder-page .gsi-finder-intro-copy {
  min-width: 0;
}

body.gsi-finder-page .gsi-finder-intro-copy > span {
  display: block;
  margin: 0 0 7px;
  color: #81dcff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
}

body.gsi-finder-page .gsi-finder-intro h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 750;
  line-height: 1.15;
}

body.gsi-finder-page .gsi-finder-intro p {
  max-width: 62ch;
  margin: 5px 0 0;
  color: #d5eafa;
  font-size: .97rem;
  line-height: 1.55;
}

/* Main query */
body.gsi-finder-page #searchForm,
body.gsi-finder-page .finder-searchform,
body.gsi-finder-page form.js-finder-searchform,
body.gsi-finder-page #g-main .com-finder__search {
  box-sizing: border-box;
  margin: 0 0 14px;
  padding: 20px 22px;
  border: 1px solid var(--find-search-border) !important;
  border-radius: 14px;
  background: var(--find-search-surface) !important;
  color: var(--find-search-text) !important;
}

body.gsi-finder-page #searchForm > h2,
body.gsi-finder-page #searchForm > h3,
body.gsi-finder-page .finder-searchform > h2,
body.gsi-finder-page .finder-searchform > h3,
body.gsi-finder-page .com-finder__search > h2,
body.gsi-finder-page .com-finder__search > h3 {
  margin: 0 0 14px;
  color: var(--find-search-text);
  font-size: 1.05rem;
}

body.gsi-finder-page #searchForm label,
body.gsi-finder-page .finder-searchform label,
body.gsi-finder-page .com-finder__search label,
body.gsi-finder-page #advancedSearch label {
  color: var(--find-search-text);
  font-weight: 650;
}

body.gsi-finder-page .com-finder__search .form-inline > label {
  display: block;
  margin: 0 0 8px;
}

body.gsi-finder-page .com-finder__search .input-group {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: none;
}

body.gsi-finder-page .com-finder__search .input-group > .awesomplete {
  display: block;
  width: 100%;
  min-width: 0;
}

body.gsi-finder-page .com-finder__search .input-group > button {
  min-width: 0;
  margin: 0 !important;
  white-space: nowrap;
}

body.gsi-finder-page .gsi-finder-search-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--find-search-border);
  color: var(--find-search-text);
}

body.gsi-finder-page .gsi-finder-search-heading > span {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--find-search-border);
  border-radius: 12px;
  background: var(--find-search-surface-alt);
  color: var(--find-accent);
  font-size: 1.15rem;
}

body.gsi-finder-page .gsi-finder-search-heading svg,
body.gsi-finder-page .gsi-finder-submit-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body.gsi-finder-page .gsi-finder-search-heading strong,
body.gsi-finder-page .gsi-finder-search-heading small {
  display: block;
}

body.gsi-finder-page .gsi-finder-search-heading strong {
  font-size: .96rem;
  font-weight: 800;
}

body.gsi-finder-page .gsi-finder-search-heading small {
  margin-top: 2px;
  color: var(--find-search-muted);
  font-size: .79rem;
}

body.gsi-finder-page .gsi-search-filter-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--find-search-border);
}

body.gsi-finder-page .gsi-search-filter-panel .filter-branch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}

body.gsi-finder-page .gsi-search-filter-panel .control-group {
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--find-search-border);
  border-radius: 8px;
  background: var(--find-search-surface-alt);
}

body.gsi-finder-page .gsi-search-filter-panel .control-label label {
  display: block;
  margin: 0 0 5px;
  color: var(--find-search-text);
  font-size: .84rem;
  line-height: 1.35;
}

body.gsi-finder-page .gsi-search-filter-panel .controls,
body.gsi-finder-page .gsi-search-filter-panel select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--find-search-border) !important;
  border-radius: 8px !important;
  background: var(--find-search-control) !important;
  color: var(--find-search-text) !important;
}

body.gsi-finder-page #searchForm input[type="search"],
body.gsi-finder-page #searchForm input[type="text"],
body.gsi-finder-page #searchForm #q,
body.gsi-finder-page .finder-searchform input[type="search"],
body.gsi-finder-page .finder-searchform input[type="text"],
body.gsi-finder-page .com-finder__search input[type="search"],
body.gsi-finder-page .com-finder__search input[type="text"] {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 42px !important;
  min-height: 42px !important;
  padding: 8px 11px;
  border: 1px solid var(--find-search-border) !important;
  border-radius: 8px !important;
  background: var(--find-search-control) !important;
  color: var(--find-search-text) !important;
  box-shadow: none !important;
}

body.gsi-finder-page input::placeholder {
  color: var(--find-search-muted);
  opacity: .85;
}

body.gsi-finder-page #searchForm button,
body.gsi-finder-page #searchForm .btn,
body.gsi-finder-page .finder-searchform button,
body.gsi-finder-page .finder-searchform .btn,
body.gsi-finder-page .com-finder__search button,
body.gsi-finder-page .com-finder__search .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--find-accent) !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, var(--find-accent), var(--find-accent-light)) !important;
  color: #fff !important;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--find-accent) 24%, transparent) !important;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

body.gsi-finder-page .com-finder__search .gsi-finder-submit-icon {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 7px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
}

body.gsi-finder-page .com-finder__search .gsi-finder-submit-icon svg {
  width: 14px;
  height: 14px;
}

body.gsi-finder-page .com-finder__search .gsi-finder-submit-label {
  display: inline-block;
}

body.gsi-finder-page .com-finder__search .gsi-finder-submit-arrow {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1;
}

body.gsi-finder-page #searchForm button:hover,
body.gsi-finder-page #searchForm .btn:hover,
body.gsi-finder-page .finder-searchform button:hover,
body.gsi-finder-page .finder-searchform .btn:hover,
body.gsi-finder-page .com-finder__search button:hover,
body.gsi-finder-page .com-finder__search .btn:hover {
  border-color: var(--find-accent-light) !important;
  background: var(--find-accent-light) !important;
  color: #071c2b !important;
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 7px 15px color-mix(in srgb, var(--find-accent) 30%, transparent) !important;
}

body.gsi-finder-page .com-finder__search button:hover .gsi-finder-submit-icon,
body.gsi-finder-page .com-finder__search button:focus-visible .gsi-finder-submit-icon {
  border-color: rgba(255, 255, 255, .58);
  background: rgba(255, 255, 255, .2);
}

body.gsi-finder-page .com-finder__search button:focus-visible {
  outline: 3px solid var(--find-focus);
  outline-offset: 3px;
}

/* Match the Annuaire filter action button precisely on Finder search. */
body.gsi-finder-page .com-finder__search button.gsi-finder-submit {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px;
  box-sizing: border-box !important;
  width: 211px !important;
  max-width: 100%;
  min-width: 211px;
  height: 42px !important;
  min-height: 42px !important;
  padding: 9px 14px;
  border: 1px solid var(--find-filter-button-border) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--find-filter-button-start), var(--find-filter-button-end)) !important;
  color: #fff !important;
  font-size: .8rem !important;
  font-weight: 800 !important;
  line-height: 1.2;
  letter-spacing: normal !important;
  text-transform: none !important;
  white-space: nowrap;
  box-shadow: 0 4px 10px var(--find-filter-button-shadow) !important;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

/* Keep this custom padding and type size exclusive to the GSI advanced-search page. */
body.gsi-finder-page #searchForm .btn,
body.gsi-finder-page #search-form .btn,
body.gsi-finder-page .finder-searchform .btn,
body.gsi-finder-page .com-finder__search .btn {
  font-size: .6rem;
  padding: 1.1rem .725rem;
}

body.gsi-finder-page .com-finder__search button.gsi-finder-submit > .gsi-finder-submit-label,
body.gsi-finder-page .com-finder__search button.gsi-finder-submit > .gsi-finder-submit-arrow {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  transform: none !important;
  font-size: .8rem !important;
  font-weight: 800 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

body.gsi-finder-page .com-finder__search button.gsi-finder-submit > .gsi-finder-submit-label {
  flex: 0 1 auto !important;
}

body.gsi-finder-page .com-finder__search button.gsi-finder-submit > .gsi-finder-submit-arrow {
  flex: 0 0 auto !important;
  margin-left: auto !important;
}

body.gsi-finder-page .com-finder__search .gsi-annuaire-filter-button-icon {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 7px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
}

body.gsi-finder-page .com-finder__search .gsi-annuaire-filter-button-icon svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.gsi-finder-page .com-finder__search .gsi-finder-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  border-color: var(--find-filter-button-border) !important;
  background: linear-gradient(135deg, var(--find-filter-button-start), var(--find-filter-button-end)) !important;
  color: #fff !important;
  box-shadow: 0 7px 15px var(--find-filter-button-shadow-hover) !important;
}

body.gsi-finder-page .com-finder__search .gsi-finder-submit:focus-visible {
  outline: 3px solid var(--find-filter-button-focus);
  outline-offset: 3px;
}

/* Advanced settings */
body.gsi-finder-page #advancedSearch {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 22px;
  padding: 17px 20px 20px;
  border: 1px solid var(--find-line);
  border-radius: 11px;
  background: var(--find-panel);
  color: var(--find-panel-text);
}

body.gsi-finder-page #advancedSearch > h2,
body.gsi-finder-page #advancedSearch > h3,
body.gsi-finder-page #advancedSearch legend {
  color: var(--find-panel-text);
  font-size: 1rem;
}

body.gsi-finder-page #advancedSearch p,
body.gsi-finder-page #advancedSearch small,
body.gsi-finder-page #advancedSearch .text-muted {
  color: var(--find-panel-muted) !important;
  line-height: 1.5;
}

body.gsi-finder-page #advancedSearch .finder-filter-window,
body.gsi-finder-page #advancedSearch .filter-branch,
body.gsi-finder-page #advancedSearch .filter-branch__children {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  align-items: start;
  gap: 10px;
  min-width: 0;
}

body.gsi-finder-page #advancedSearch .filter-branch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Finder can emit empty duplicate taxonomy controls before the populated controls. */
body.gsi-finder-page #advancedSearch .filter-branch > .control-group:has(select > option:only-child) {
  display: none;
}

body.gsi-finder-page #advancedSearch .control-group,
body.gsi-finder-page #advancedSearch .filter-row,
body.gsi-finder-page #advancedSearch .filter-branch__node {
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--find-line);
  border-radius: 8px;
  background: var(--find-panel-alt);
}

body.gsi-finder-page #advancedSearch select {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--find-line) !important;
  border-radius: 7px !important;
  background: var(--find-panel) !important;
  color: var(--find-panel-text) !important;
}

body.gsi-finder-page #advancedSearch .com-finder__tips,
body.gsi-finder-page #advancedSearch .com-finder__tips .card-body {
  border-color: var(--find-line) !important;
  background: var(--find-panel-alt) !important;
  color: var(--find-panel-muted) !important;
}

body.gsi-finder-page #advancedSearch .com-finder__tips {
  box-sizing: border-box;
  position: static;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  transform: none;
  border-left: 3px solid var(--find-accent);
  border-radius: 7px;
}

body.gsi-finder-page #advancedSearch .com-finder__tips .card-body {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
}

body.gsi-finder-page #advancedSearch .com-finder__tips p:last-child {
  margin-bottom: 0;
}

body.gsi-finder-page #advancedSearch .com-finder__tips strong {
  color: var(--find-panel-text);
}

/* Results */
body.gsi-finder-page .search-results {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--find-text);
  box-shadow: none;
}

body.gsi-finder-page .search-results > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 11px 14px;
  border-left: 3px solid var(--find-accent-light);
  border-radius: 0 7px 7px 0;
  background: var(--find-panel);
  color: var(--find-panel-muted);
  line-height: 1.45;
}

body.gsi-finder-page .search-results > div:first-child a {
  flex: 0 0 auto;
  color: var(--find-panel-link);
  font-weight: 750;
}

body.gsi-finder-page .gsi-search-visible-count {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 7px 12px;
  border: 1px solid var(--find-search-border);
  border-radius: 999px;
  background: var(--find-search-surface-alt);
  color: var(--find-search-text);
  font-size: .82rem;
  font-weight: 750;
}

body.gsi-finder-page .search-results > div.gsi-search-visible-count {
  display: block;
  width: fit-content;
  justify-content: initial;
  margin: 0 0 10px;
  padding: 7px 12px;
  border: 1px solid var(--find-search-border);
  border-radius: 999px;
  background: var(--find-search-surface-alt);
  color: var(--find-search-text);
  line-height: 1.45;
  box-shadow: none;
}

body.gsi-finder-page #search-result-list {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Three-column Finder layout matching the selected structured-list design. */
body.gsi-finder-page .gsi-search-table-head,
body.gsi-finder-page #search-result-list > li.gsi-search-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(145px, .75fr) minmax(165px, .9fr);
  column-gap: 18px;
  align-items: center;
}

body.gsi-finder-page .gsi-search-table-head {
  padding: 9px 10px;
  border-bottom: 1px solid var(--find-line);
  color: var(--find-muted);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.gsi-finder-page #search-result-list > li.gsi-search-result-row {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 14px 10px;
  border: 0;
  border-bottom: 1px solid var(--find-line);
  border-radius: 0;
  background: transparent;
  color: var(--find-text);
}

body.gsi-finder-page .gsi-search-result-cell {
  min-width: 0;
}

body.gsi-finder-page .gsi-search-result-main .result__title {
  margin: 0;
}

body.gsi-finder-page .gsi-search-result-main .result__title-text {
  font-size: 1rem;
}

body.gsi-finder-page .gsi-search-meta-line {
  margin: 2px 0;
  color: var(--find-muted);
  font-size: .88rem;
  line-height: 1.45;
}

body.gsi-finder-page .gsi-search-admin-status {
  --search-status-bg: #eef1f5;
  --search-status-fg: #374151;
  --search-status-edge: #b8c1cc;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 8px;
  width: fit-content;
  max-width: 100%;
  margin-top: 7px;
  padding: 5px 9px;
  border: 1px solid var(--search-status-edge);
  border-radius: 7px;
  background: var(--search-status-bg);
  color: var(--search-status-fg);
  font-size: .78rem;
  line-height: 1.35;
}

body.gsi-finder-page .gsi-search-admin-status--reliable {
  --search-status-bg: #e5f6eb;
  --search-status-fg: #166534;
  --search-status-edge: #8ccba7;
}

body.gsi-finder-page .gsi-search-admin-status--test {
  --search-status-bg: #eef1f5;
  --search-status-fg: #374151;
  --search-status-edge: #b8c1cc;
}

body.gsi-finder-page .gsi-search-admin-status--watch {
  --search-status-bg: #fff0d8;
  --search-status-fg: #92400e;
  --search-status-edge: #e9b767;
}

body.gsi-finder-page .gsi-search-admin-status--notrecommended {
  --search-status-bg: #fce7e8;
  --search-status-fg: #991b1b;
  --search-status-edge: #e9a2a7;
}

body.gsi-finder-page .gsi-search-admin-status--closed {
  --search-status-bg: #e4eefb;
  --search-status-fg: #1e3a8a;
  --search-status-edge: #95b7dd;
}

body.gsi-finder-page .gsi-search-admin-status > span {
  font-size: .72rem;
}

body.gsi-finder-page .gsi-search-admin-status > strong {
  color: var(--search-status-fg);
  font-size: .84rem;
}

body.gsi-finder-page .gsi-search-meta-line > span,
body.gsi-finder-page .gsi-search-result-category > span {
  color: var(--find-muted);
  font-weight: 650;
}

body.gsi-finder-page .gsi-search-result-category {
  justify-self: start;
  padding: 5px 10px;
  border: 1px solid var(--find-line);
  border-radius: 999px;
  background: var(--find-panel-alt);
  color: var(--find-panel-muted);
  font-size: .84rem;
  line-height: 1.4;
}

body.gsi-finder-page .gsi-search-empty-cell {
  color: var(--find-muted);
}

body.gsi-finder-page .gsi-search-no-current-results {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid var(--find-line);
  border-radius: 9px;
  background: var(--find-panel);
  color: var(--find-panel-muted);
}

body.gsi-finder-page #search-result-list > li.result__item {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 14px 10px;
  border: 0;
  border-top: 1px solid var(--find-line);
  border-radius: 0;
  background: transparent;
  color: var(--find-text);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
  align-items: center;
  column-gap: 24px;
}

body.gsi-finder-page #search-result-list > li.result__item:last-child {
  border-bottom: 1px solid var(--find-line);
}

body.gsi-finder-page #search-result-list .result__title {
  margin: 0;
  min-width: 0;
}

body.gsi-finder-page #search-result-list .result__title-link {
  display: block;
  color: var(--find-link) !important;
  text-decoration: none;
}

body.gsi-finder-page #search-result-list .result__title-text {
  display: block;
  color: var(--find-link) !important;
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body.gsi-finder-page #search-result-list .result__title-link:hover .result__title-text {
  color: var(--find-accent-light) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Finder prints the indexed route inside the title link; hide it because it can be stale. */
body.gsi-finder-page #search-result-list .result__title-url {
  display: none !important;
}

body.gsi-finder-page #search-result-list .result__taxonomy {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.gsi-finder-page #search-result-list .result__taxonomy-item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  padding: 4px 9px;
  border: 1px solid var(--find-line);
  border-radius: 999px;
  background: var(--find-panel-alt);
  color: var(--find-panel-muted);
  font-size: .78rem;
  line-height: 1.35;
}

body.gsi-finder-page #search-result-list .result__taxonomy-item > span {
  color: var(--find-panel-link);
  font-weight: 700;
}

body.gsi-finder-page #search-result-list mark,
body.gsi-finder-page #search-result-list .highlight {
  border-radius: 3px;
  background: color-mix(in srgb, var(--find-accent-light) 23%, transparent);
  color: var(--find-text);
}

body.gsi-finder-page .pagination,
body.gsi-finder-page .com-finder__pagination {
  margin-top: 16px;
}

body.gsi-finder-page .pagination a,
body.gsi-finder-page .pagination span,
body.gsi-finder-page .com-finder__pagination a,
body.gsi-finder-page .com-finder__pagination span {
  border-color: var(--find-line);
  background: var(--find-panel);
  color: var(--find-panel-link);
}

body.gsi-finder-page :focus-visible {
  outline: 3px solid var(--find-focus) !important;
  outline-offset: 2px;
}

/* Old compatibility selectors retained for alternative Finder template overrides. */
body.gsi-finder-page #search-result-list .result-title a,
body.gsi-finder-page #search-result-list h2 a,
body.gsi-finder-page #search-result-list h3 a {
  color: var(--find-link) !important;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body.gsi-finder-page #search-result-list .result-title a:hover,
body.gsi-finder-page #search-result-list h2 a:hover,
body.gsi-finder-page #search-result-list h3 a:hover {
  color: var(--find-accent-light) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  body.gsi-finder-page #g-main .platform-content,
  body.gsi-finder-page #g-mainbar .platform-content {
    width: min(1250px, calc(100vw - 20px));
    padding-block: 16px 26px;
  }

  body.gsi-finder-page .gsi-finder-intro {
    margin-bottom: 14px;
    padding: 16px;
  }

  body.gsi-finder-page .gsi-finder-search-heading {
    align-items: flex-start;
  }

  body.gsi-finder-page #searchForm,
  body.gsi-finder-page .finder-searchform,
  body.gsi-finder-page form.js-finder-searchform,
  body.gsi-finder-page .com-finder__search,
  body.gsi-finder-page #advancedSearch {
    padding: 15px;
  }

  body.gsi-finder-page .com-finder__search .input-group {
    grid-template-columns: minmax(0, 1fr);
  }

  body.gsi-finder-page .com-finder__search .input-group > .awesomplete {
    grid-column: 1 / -1;
  }

  body.gsi-finder-page .com-finder__search .input-group > button {
    width: 100% !important;
    min-width: 0;
    justify-self: stretch;
  }

  body.gsi-finder-page .com-finder__search button.gsi-finder-submit {
    justify-self: stretch;
  }

  body.gsi-finder-page .gsi-search-filter-panel .filter-branch {
    grid-template-columns: minmax(0, 1fr);
  }

  body.gsi-finder-page #advancedSearch .filter-branch {
    grid-template-columns: minmax(0, 1fr);
  }

  body.gsi-finder-page #search-result-list > li.result__item {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    row-gap: 9px;
    padding: 13px 4px;
  }

  body.gsi-finder-page .gsi-search-table-head {
    display: none;
  }

  body.gsi-finder-page #search-result-list > li.gsi-search-result-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    row-gap: 7px;
    padding: 13px 4px;
  }

  body.gsi-finder-page .gsi-search-result-category {
    justify-self: start;
  }

  body.gsi-finder-page #search-result-list .result__taxonomy {
    justify-content: flex-start;
  }
}

