/* Discovery-only presentation; existing related-resource cards are unchanged. */
.wf-lc-discovery { --lc-border: #d9dddd; --lc-muted: #515c58; --lc-link: #355f27; color: var(--wp--preset--color--ink); background: var(--wp--preset--color--white); font-size: 1.0625rem; line-height: 1.5; }
.wf-lc-discovery * { box-sizing: border-box; }
.wf-lc-shell { max-width: var(--wf-layout-composed-max, 1120px); margin-inline: auto; padding-inline: 24px; }
.wf-lc-discovery h1, .wf-lc-discovery h2, .wf-lc-discovery h3, .wf-lc-discovery p { margin: 0; }
.wf-lc-header { background: var(--wp--preset--color--carbon); color: white; padding-block: 32px; }
.wf-lc-header h1 { font-size: clamp(1.9rem, 3vw, 2.75rem); line-height: 1.15; margin: 6px 0 10px; overflow-wrap: anywhere; }
.wf-lc-eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .04em; }
.wf-lc-form { margin-top: 20px; max-width: 760px; }
.wf-lc-form > label { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.wf-lc-search { display: flex; gap: 8px; }
.wf-lc-search input { min-width: 0; flex: 1; border: 2px solid transparent; border-radius: 8px; background: white; color: #121212; padding: 10px 14px; font: inherit; }
.wf-lc-discovery .wp-element-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.wf-lc-discovery a { color: var(--lc-link); text-underline-offset: .18em; }
.wf-lc-discovery a:focus-visible, .wf-lc-discovery input:focus-visible, .wf-lc-discovery button:focus-visible, .wf-lc-discovery select:focus-visible, .wf-lc-discovery summary:focus-visible { outline: 3px solid #355f27; outline-offset: 3px; }
.wf-lc-header input:focus-visible, .wf-lc-header button:focus-visible { outline-color: var(--wp--preset--color--yellow); }
.wf-lc-content { padding-bottom: 48px; }
.wf-lc-start { padding-block: 28px 32px; }
.wf-lc-start h2, .wf-lc-library > h2 { font-size: 1.65rem; line-height: 1.25; margin-bottom: 16px; }
.wf-lc-start__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.wf-lc-start__card { border: 1px solid var(--lc-border); border-radius: 8px; overflow: hidden; background: #fff; }
.wf-lc-start__image { aspect-ratio: 3; background: #f0f0f3; }
.wf-lc-start__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wf-lc-start__card > div:last-child { padding: 12px; }
.wf-lc-start__card .wf-lc-start__image { padding: 0; }
.wf-lc-start__card h3 { overflow-wrap: anywhere; font-size: 1.125rem; line-height: 1.3; margin-block: 7px 10px; }
.wf-lc-start__card h3 a { color: #121212; text-decoration: none; }
.wf-lc-start__card h3 a:hover { text-decoration: underline; }
.wf-lc-start__card p:last-child { font-size: 1rem; line-height: 1.45; }
.wf-lc-start__card .wf-lc-eyebrow { color: var(--lc-link); }
.wf-lc-library { padding-top: 24px; }
.wf-lc-start + .wf-lc-library { border-top: 1px solid var(--lc-border); }
.wf-lc-filter-panel { background: #f5f6f4; border-radius: 8px; padding: 16px; }
.wf-lc-audiences { border: 0; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wf-lc-audiences legend { font-size: 1rem; font-weight: 700; margin-bottom: 8px; padding: 0; }
.wf-lc-audience { position: relative; cursor: pointer; }
.wf-lc-audience input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wf-lc-audience > span { background: white; display: block; height: 100%; border: 1px solid var(--lc-border); border-radius: 8px; padding: 12px 14px; }
.wf-lc-audience strong { display: block; font-size: 1.125rem; }
.wf-lc-audience small { display: block; color: var(--lc-muted); font-size: .875rem; line-height: 1.3; margin-top: 4px; }
.wf-lc-audience input:checked + span { border-color: var(--lc-link); background: #f0f5ed; box-shadow: inset 0 0 0 1px var(--lc-link); }
.wf-lc-audience input:focus-visible + span { outline: 3px solid var(--lc-link); outline-offset: 3px; }
.wf-lc-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.wf-lc-dropdown { position: relative; }
.wf-lc-dropdown > summary { background: white; border: 1px solid var(--lc-border); border-radius: 6px; padding: 10px 14px; font-weight: 600; min-height: 44px; cursor: pointer; }
.wf-lc-dropdown__panel { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 290px; max-width: calc(100vw - 80px); padding: 12px; background: white; border: 1px solid var(--lc-border); border-radius: 8px; box-shadow: 0 10px 24px #1212121a; max-height: 360px; overflow: auto; }
.wf-lc-dropdown fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.wf-lc-dropdown label { display: flex; align-items: start; gap: 10px; min-height: 40px; padding: 8px 4px; cursor: pointer; font-size: 1rem; line-height: 1.3; }
.wf-lc-dropdown input { margin-top: 4px; flex: 0 0 auto; accent-color: var(--lc-link); }
.wf-lc-more > summary { cursor: pointer; padding: 10px 4px; font-weight: 700; border-top: 1px solid var(--lc-border); }
.wf-lc-sort { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 1rem; }
.wf-lc-sort select { min-height: 44px; font: inherit; color: #121212; background: white; border: 1px solid var(--lc-border); border-radius: 6px; padding: 8px 28px 8px 10px; }
.wf-lc-selections { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wf-lc-selections:empty { display: none; }
.wf-lc-selections a { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--lc-border); border-radius: 999px; padding: 6px 12px; text-decoration: none; font-size: 1rem; min-height: 36px; }
.wf-lc-selections .wf-lc-clear { border-color: transparent; text-decoration: underline; }
.wf-lc-library .wf-lc-count { width: fit-content; max-width: 100%; border-radius: 3px; font: 600 .9375rem/1.4 var(--wp--preset--font-family--mukta); margin: 24px 0 12px; color: var(--lc-muted); }
.wf-lc-count:focus { outline: 2px solid var(--lc-link); outline-offset: 4px; }
.wf-lc-count, .wf-lc-audience { scroll-margin-top: calc(var(--wf-sticky-header-height, 100px) + 20px); }
.wf-lc-result { display: grid; grid-template-columns: 192px minmax(0, 1fr); gap: 24px; padding-block: 24px; border-top: 1px solid var(--lc-border); }
.wf-lc-result--icon { grid-template-columns: 3rem minmax(0, 1fr); }
.wf-lc-result__image { aspect-ratio: 1.9; align-self: start; border-radius: 6px; overflow: hidden; }
.wf-lc-result__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wf-lc-result__icon.wf-card-icon { align-self: start; box-sizing: border-box; width: 3rem; height: 3rem; margin: 0; }
.wf-lc-result__icon :where(i, .svg-inline--fa) { font-size: 1.75rem; line-height: 1; }
.wf-lc-result__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .875rem; color: var(--lc-muted); }
.wf-lc-result__meta span:first-child { color: var(--lc-link); font-weight: 700; }
.wf-lc-result h3 { overflow-wrap: anywhere; font-size: 1.35rem; line-height: 1.3; margin-block: 5px 8px; }
.wf-lc-result h3 a { color: #121212; text-decoration: none; }
.wf-lc-result h3 a:hover { text-decoration: underline; }
.wf-lc-result__excerpt { max-width: 76ch; }
.wf-lc-result__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 10px; }
.wf-lc-result__foot p { font-size: .875rem; color: var(--lc-muted); }
.wf-lc-text-action { font-weight: 700; font-size: 1rem; white-space: normal; }
.wf-lc-result__body { min-width: 0; }
.wf-lc-empty { padding: 24px; border: 1px solid var(--lc-border); border-radius: 8px; background: #f5f6f4; }
.wf-lc-empty h3 { font-size: 1.35rem; margin-bottom: 8px; }
.wf-lc-empty__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; }
.wf-lc-empty .wp-element-button { color: #121212; }
.wf-lc-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 24px; border-top: 1px solid var(--lc-border); }
.wf-lc-pagination .page-numbers { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 8px 12px; border: 1px solid var(--lc-border); border-radius: 6px; }
.wf-lc-pagination .current { background: var(--wp--preset--color--yellow); color: #121212; font-weight: 700; }
.wf-lc-discovery[aria-busy="true"] .wf-lc-count::after { content: ' · Updating…'; }
@media (max-width: 900px) { .wf-lc-start__grid, .wf-lc-audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
 .wf-lc-shell { padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
 .wf-lc-audiences { gap: 8px; }
 .wf-lc-audience > span { padding: 8px 10px; }
 .wf-lc-header { padding-block: 24px; }
 .wf-lc-header h1 { font-size: 1.9rem; }
 .wf-lc-result { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 20px; }
 .wf-lc-result--icon { grid-template-columns: 2.5rem minmax(0, 1fr); }
 .wf-lc-result__icon.wf-card-icon { width: 2.5rem; height: 2.5rem; }
 .wf-lc-result__icon :where(i, .svg-inline--fa) { font-size: 1.5rem; }
 .wf-lc-result h3 { overflow-wrap: anywhere; font-size: 1.15rem; }
 .wf-lc-result__excerpt { font-size: 1rem; }
 .wf-lc-start__grid { grid-template-columns: minmax(0, 1fr); }
 .wf-lc-dropdown { flex: 1 1 100%; }
 .wf-lc-dropdown__panel { position: static; width: 100%; max-width: none; margin-top: 6px; max-height: 300px; box-shadow: none; }
 .wf-lc-sort { margin-left: 0; width: 100%; justify-content: space-between; }
 .wf-lc-search .wp-element-button { padding-inline: 14px; }
}

/* Shared scope navigation; fixed destinations stay distinct from LC facets. */
.wf-search-scopes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.wf-lc-header .wf-search-scopes a { color: white; padding: 8px 14px; border: 1px solid #747874; border-radius: 6px; text-decoration: none; font-size: 1rem; font-weight: 600; min-height: 44px; }
.wf-lc-header .wf-search-scopes a[aria-current] { background: white; color: #121212; border-color: white; }
.wf-lc-header .wf-search-scopes a:hover { border-color: var(--wp--preset--color--yellow); }
.wf-lc-header .wf-search-scopes a:focus-visible { outline-color: var(--wp--preset--color--yellow); }
.wf-site-search-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.wf-site-search-toolbar > p { font-size: 1rem; color: var(--lc-muted); }

/* A compact invitation beside the homepage search tools. */
.wf-lc-research { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.wf-lc-research__icon { flex: 0 0 24px; color: var(--wp--preset--color--green); font-size: 1.25rem; }
.wf-lc-research p { font-size: 1rem; color: #e1e5df; }
.wf-lc-header .wf-lc-research a { color: white; font-weight: 700; }
.wf-lc-header .wf-lc-research a:focus-visible { outline-color: var(--wp--preset--color--yellow); }

.wf-lc-include-documents { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; cursor: pointer; }
.wf-lc-include-documents input { accent-color: var(--lc-link); width: 16px; height: 16px; }
.wf-lc-discovery .wf-lc-browse-note { margin-top: 14px; font-size: 1rem; color: var(--lc-muted); }
.wf-lc-browse-note a { color: var(--lc-link); font-weight: 700; text-underline-offset: .2em; }

.wf-site-search-toolbar .wf-lc-sort { margin-left: auto; }

.wf-lc-audience { min-width: 0; overflow-wrap: anywhere; }

.wf-lc-start__heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.wf-lc-start__heading h2 { margin-bottom: 0; }
.wf-lc-start__heading a { font-size: 1rem; font-weight: 700; }
.wf-lc-audiences--compact { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.wf-lc-audiences--compact .wf-lc-audience > span { padding: 8px 16px; min-height: 44px; }
.wf-lc-audiences--compact strong { font-size: 1rem; }
.wf-lc-include-documents { align-items: start; }
.wf-lc-include-documents input { flex: 0 0 16px; margin-top: 4px; }
.wf-lc-include-documents small { display: block; font-size: .875rem; color: var(--lc-muted); }
.wf-lc-filter-panel, #wf-lc-browse { scroll-margin-top: calc(var(--wf-sticky-header-height, 100px) + 20px); }
@media (max-width: 600px) {
 .wf-lc-start__card { display: flex; align-items: start; }
 .wf-lc-start__image { flex: 0 0 80px; aspect-ratio: 1; margin: 12px 0 12px 12px; }
 .wf-lc-start__card > div:last-child { min-width: 0; }
}

.wf-lc-discovery .wf-lc-related-product { margin-block: 20px 28px; padding: 20px 24px; border: 1px solid var(--lc-border); border-radius: 8px; background: #f5f6f4; }
.wf-lc-related-product__label { color: var(--lc-link); font-size: .875rem; font-weight: 600; }
.wf-lc-related-product__label .fa-box { margin-right: 6px; }
.wf-lc-related-product__row { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 8px; }
.wf-lc-related-product__row + .wf-lc-related-product__row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--lc-border); }
.wf-lc-related-product__title { min-width: 0; font-size: 1.25rem; line-height: 1.3; overflow-wrap: anywhere; }
.wf-lc-related-product .wf-lc-related-product__button { flex-shrink: 0; background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--ink); border: 2px solid transparent; border-radius: 8px; padding: 10px 18px; font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.wf-lc-related-product .wf-lc-related-product__button:hover { background: var(--wp--preset--color--carbon); color: white; }
.wf-lc-related-product .wf-lc-related-product__button:focus-visible { outline: 2px solid var(--lc-link); outline-offset: 4px; }
@media (max-width: 600px) {
 .wf-lc-discovery .wf-lc-related-product { padding: 16px; }
 .wf-lc-related-product__row { flex-direction: column; align-items: flex-start; }
}

/* One results toolbar serves both the library and entire-site search. */
.wf-results-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 24px 0 12px; }
.wf-lc-library .wf-results-toolbar .wf-lc-count { margin: 0; }
.wf-results-toolbar .wf-lc-sort { width: auto; margin: 0; }
.wf-lc-secondary-filters > summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-weight: 700; }
@media (min-width: 601px) {
 .wf-lc-secondary-filters > summary { display: none; }
}
@media (max-width: 600px) {
 .wf-lc-audiences, .wf-lc-audiences--compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
 .wf-lc-audience small { display: none; }
 .wf-lc-audience > span, .wf-lc-audiences--compact .wf-lc-audience > span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; }
 .wf-lc-audience strong { font-size: 1rem; }
 .wf-lc-secondary-filters__body { padding-block: 8px; }
 .wf-lc-result__image { width: 100%; aspect-ratio: 1.9; }
 .wf-lc-results .wf-lc-result--icon { grid-template-columns: minmax(0, 1fr); }
 .wf-lc-results .wf-lc-result--icon .wf-lc-result__icon { display: none; }
}
