/* 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: .9375rem; 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: 1.9; background: #f0f0f3; }
.wf-lc-start__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wf-lc-start__card > div:last-child { padding: 16px; }
.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: .9375rem; 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: .9375rem; 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: .9375rem; }
.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: .9375rem; 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--document { grid-template-columns: 48px minmax(0, 1fr); }
.wf-lc-result--text { grid-template-columns: 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-document-icon { display: grid; place-items: center; width: 48px; height: 56px; font-size: 2rem; color: var(--lc-link); border: 1px solid var(--lc-border); background: #f5f6f4; border-radius: 6px; }
.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: nowrap; }
.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: 16px; }
 .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: 96px minmax(0, 1fr); gap: 14px; padding-block: 20px; }
 .wf-lc-result--document { grid-template-columns: 32px minmax(0, 1fr); }
 .wf-lc-result--text { grid-template-columns: minmax(0, 1fr); }
 .wf-lc-document-icon { width: 32px; height: 40px; 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: .9375rem; 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: .9375rem; color: var(--lc-muted); }
