.wd-search-page {
  --search-accent: var(--publication-accent, var(--primary-color, #205e73));
  color: #202a30;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto 48px;
  max-width: 1100px;
  padding: 24px;
  box-sizing: border-box;
}
.wd-search-page * { box-sizing: border-box; }
.wd-search-page [hidden], .wd-search-suggestions[hidden] { display: none !important; }
.wd-search-heading { margin-bottom: 20px; }
.wd-search-kicker { color: #5b6670; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; margin: 0 0 8px; }
.wd-search-page h1 { font-size: clamp(25px, 2.8vw, 34px); line-height: 1.25; margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.wd-search-form { background: #f6f8f9; border: 1px solid #dde3e6; border-radius: 8px; padding: 18px; margin-bottom: 20px; }
.wd-search-label, .wd-search-controls label { display: block; font-size: 13px; font-weight: 600; color: #34444e; }
.wd-search-input-row { display: flex; gap: 8px; margin-top: 6px; position: relative; }
.wd-search-page input, .wd-search-page select { font: inherit !important; color: #202a30 !important; border: 1px solid #bdc8ce !important; border-radius: 4px !important; background: #fff !important; padding: 10px 12px !important; height: 44px !important; max-width: 100%; min-width: 0; box-shadow: none; }
.wd-search-input-row > input { flex: 1; width: 100%; }
.wd-search-page button { font: inherit !important; line-height: 1.3 !important; white-space: nowrap; min-height: 44px; border: 0 !important; border-radius: 4px !important; padding: 10px 16px !important; color: #fff !important; background: var(--search-accent) !important; cursor: pointer; font-weight: 600 !important; text-transform: none !important; }
.wd-search-page button:hover { filter: brightness(.9); }
.wd-search-page :focus-visible, .wd-search-suggestions a:focus-visible { outline: 3px solid #1376b5 !important; outline-offset: 3px; }
.wd-search-hint { font-size: 12px; color: #57656d; margin: 8px 0 4px; }
.wd-search-hint span { white-space: nowrap; }
.wd-search-filters { margin-top: 8px; }
.wd-search-filters summary { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; padding: 6px 10px; margin-left: -10px; border-radius: 4px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; color: #34444e; }
.wd-search-filters summary::-webkit-details-marker { display: none; }
.wd-search-filters summary:hover { background: #e8eef1; }
.wd-search-filters summary svg { width: 18px; height: 18px; flex: 0 0 18px; }
.wd-search-filter-count { display: inline-flex; align-items: center; justify-content: center; border-radius: 20px; padding: 0 6px; min-width: 20px; height: 20px; background: #dce7eb; color: #243c4a; font-size: 11px; }
.wd-search-chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin: 0 3px 0 6px; }
.wd-search-filters[open] .wd-search-chevron { transform: translateY(2px) rotate(225deg); }
.wd-search-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 14px; margin-top: 4px; border-top: 1px solid #dde3e6; }
.wd-search-controls label select, .wd-search-controls label input { display: block; width: 100%; margin-top: 5px; font-size: 14px !important; }
.wd-search-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; font-size: 13px; }
.wd-search-page .wd-search-apply { background: #e0e8ed !important; color: #243c4a !important; font-size: 13px !important; }
.wd-search-actions a, .wd-search-clear { color: #34444e; text-decoration: underline; text-underline-offset: 3px; }
.wd-search-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -8px 0 16px; font-size: 12px; }
.wd-search-page .wd-search-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; background: #edf2f4; border: 1px solid #dae3e7; border-radius: 24px; color: #34444e; text-decoration: none; }
.wd-search-chip span { font-size: 19px; line-height: 1; }
.wd-search-page .wd-search-chip:hover { background: #dfe9ee; border-color: #a8bbc5; }
.wd-search-clear { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.wd-search-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; border-bottom: 2px solid #233e4d; padding-bottom: 12px; font-size: 14px; }
.wd-search-summary p { margin: 0; }
.wd-search-summary p span { color: #63717b; font-size: 12px; }
.wd-search-sort { display: flex; align-items: center; gap: 10px; max-width: 100%; }
.wd-search-sort label { font-size: 12px; font-weight: 600; white-space: nowrap; margin: 0; }
.wd-search-sort select { width: auto; min-width: 170px; font-size: 14px !important; }
.wd-search-card { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid #dde3e6; margin: 0; background: transparent; }
.wd-search-thumbnail { flex: 0 0 160px; align-self: flex-start; }
.wd-search-thumbnail img { display: block; object-fit: cover; width: 160px; height: 108px; border-radius: 4px; background: #edf1f3; }
.wd-search-card-body { min-width: 0; flex: 1; }
.wd-search-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 12px; color: #5b6670; margin-bottom: 6px; }
.wd-search-meta > span { font-weight: 650; color: var(--search-accent); }
.wd-search-card h2 { font-size: 21px; line-height: 1.35; margin: 0 0 8px; overflow-wrap: anywhere; }
.wd-search-card h2 a { color: #1d2f39; text-decoration: none; }
.wd-search-card h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wd-search-card p { font-size: 14px; line-height: 1.65; color: #4f5c65; margin: 0; overflow-wrap: anywhere; }
.wd-search-page mark { background: #fff0a8; color: inherit; padding: 0 .05em; border-radius: 2px; }
.wd-search-empty { padding: 30px 0; }
.wd-search-empty h2 { font-size: 22px; }
.wd-search-empty a { color: var(--search-accent); text-decoration: underline; text-underline-offset: 3px; }
.wd-search-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; align-items: center; margin: 30px 0; font-size: 14px; }
.wd-search-pagination a, .wd-search-pagination span { display: inline-flex; justify-content: center; align-items: center; padding: 8px 12px; min-width: 44px; min-height: 44px; text-align: center; border-radius: 4px; }
.wd-search-pagination a { color: #243c4a; border: 1px solid #dde3e6; text-decoration: none; }
.wd-search-pagination [aria-current] { background: var(--search-accent); color: white; font-weight: 700; }
.wd-search-pagination a:hover { background: #eef3f5; }
.wd-search-suggestions { position: absolute; z-index: 9999; background: #fff; color: #20333f; border: 1px solid #bbc9d0; border-radius: 4px; box-shadow: 0 8px 25px #0002; padding: 5px; list-style: none; margin: 4px 0 0; font: 14px/1.45 sans-serif; max-height: min(360px, 50vh); overflow-y: auto; overscroll-behavior: contain; }
.wd-search-suggestions a { display: block; padding: 12px 10px; color: #20333f; text-decoration: none; overflow-wrap: anywhere; }
.wd-search-suggestions a:hover, .wd-search-suggestions [aria-selected=true] { background: #edf3f7; }
.wd-search-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 650px) {
  .wd-search-page { padding: 18px 8px; }
  .wd-search-form { padding: 14px; }
  .wd-search-page input, .wd-search-page select { font-size: 16px !important; }
  .wd-search-input-row > button { padding: 10px 12px !important; font-size: 14px !important; }
  .wd-search-input-row > button span { display: none; }
  .wd-search-controls label select, .wd-search-controls label input { font-size: 16px !important; }
  .wd-search-sort { width: 100%; justify-content: space-between; }
  .wd-search-sort select { flex: 1; max-width: 240px; }
  .wd-search-card { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 6px 14px; padding: 20px 0; }
  .wd-search-card-body { grid-column: 1 / -1; }
  .wd-search-thumbnail:not([hidden]) + .wd-search-card-body { display: contents; }
  .wd-search-thumbnail { grid-column: 1; grid-row: 1 / 3; }
  .wd-search-thumbnail img { width: 80px; height: 68px; }
  .wd-search-card .wd-search-meta { grid-column: 2; grid-row: 1; margin-bottom: 0; }
  .wd-search-card h2 { grid-column: 2; grid-row: 2; font-size: 18px; margin-bottom: 0; }
  .wd-search-card p { grid-column: 1 / -1; margin-top: 6px; }
  .wd-search-pagination { gap: 5px; }
}
@media (max-width: 380px) {
  .wd-search-controls { grid-template-columns: 1fr; }
  .wd-search-card { grid-template-columns: 64px minmax(0, 1fr); column-gap: 10px; }
  .wd-search-thumbnail img { width: 64px; height: 58px; }
}
