.new-site-search-stack { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.new-site-search-stack .new-site-search { flex: none; }
.new-site-astra-search { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; }
.new-site-astra-search label { flex: 0 0 auto; width: 34px; margin: 0; color: #21714d; font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 32px; font-style: italic; font-weight: 700; line-height: 1; text-align: center; }
.new-site-astra-search input[type=search] { flex: 1; width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid #a4bfb1; border-radius: 4px; background: #fff; color: #202833; font-size: 16px; }
.new-site-astra-search button { flex: 0 0 48px; width: 48px; height: 44px; border: 0; border-radius: 4px; background: #21714d; color: #fff; }
.new-site-astra-search input:focus, .new-site-astra-search button:focus { outline: 2px solid #21714d; outline-offset: 2px; }
.astra-results h1 { font-size: 26px; overflow-wrap: anywhere; }
.astra-results .pagination { display: flex; flex-wrap: wrap; }
@media (max-width: 1320px) { .new-site-search-stack { grid-area: search; width: 100%; min-width: 0; } }

.new-site-astra-search { position: relative; }
.astra-autocomplete { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 180; max-height: min(55vh, 440px); overflow: auto; border: 1px solid #b5c5ba; border-radius: 4px; background: #fff; box-shadow: 0 10px 24px rgba(20, 32, 43, .2); }
.new-site-astra-search.is-open .astra-autocomplete { left: var(--astra-panel-left); right: auto; width: var(--astra-panel-width); }
.astra-autocomplete__completions,
.astra-autocomplete__items { padding: 6px; }
.astra-autocomplete__completions { display: flex; flex-wrap: wrap; gap: 5px; border-bottom: 1px solid #e6ece8; background: #f7faf8; }
.astra-autocomplete__completion { flex: 0 0 auto; width: max-content; max-width: none; border: 1px solid #197047; border-radius: 3px; background: #25985d; color: #fff; padding: 5px 9px; font-size: 13px; font-weight: 700; line-height: 1.25; overflow-wrap: normal; white-space: nowrap; text-align: left; }
.astra-autocomplete__section + .astra-autocomplete__section { border-top: 1px solid #e6ece8; }
.astra-autocomplete__section-title { display: block; padding: 7px 10px 2px; color: #66747d; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.astra-autocomplete__item { display: block; width: 100%; border: 0; background: #fff; color: #25313d; padding: 8px 10px; text-align: left; text-decoration: none; }
.astra-autocomplete__item:hover,
.astra-autocomplete__item:focus,
.astra-autocomplete__completion:hover,
.astra-autocomplete__completion:focus { background: #eaf4ed; color: #155638; outline: 0; text-decoration: none; }
.astra-autocomplete__article { display: inline-block; min-width: 58px; margin-right: 8px; color: #65717b; font-size: 12px; font-weight: 700; }
.astra-typesense-panel { max-width: 980px; }
.astra-typesense-panel__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.astra-typesense-panel__heading h1 { margin: 0 0 5px; }
.astra-typesense-panel__heading p { margin: 0; color: #66747d; }
.astra-typesense-panel__status { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 1px; overflow: hidden; border: 1px solid #dce4e0; border-radius: 4px; background: #dce4e0; }
.astra-typesense-panel__status > div { min-height: 82px; padding: 13px; background: #fff; }
.astra-typesense-panel__status span { display: block; margin-bottom: 5px; color: #66747d; font-size: 12px; font-weight: 700; }
.astra-typesense-panel__status strong { display: block; overflow-wrap: anywhere; color: #25313d; }
.astra-typesense-panel__status .is-ok { color: #197343; }
.astra-typesense-panel__status .is-error { color: #b63333; }
.astra-typesense-panel__form { margin-top: 20px; padding: 20px; border: 1px solid #dce4e0; border-radius: 4px; background: #fff; }
.astra-typesense-panel__form h2 { margin: 0 0 16px; font-size: 21px; }
.astra-typesense-panel__fields { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 14px; }
.astra-typesense-panel__fields label { display: flex; flex-direction: column; gap: 5px; color: #3a4751; font-weight: 700; }
.astra-typesense-panel__fields input:not([type=checkbox]),
.astra-typesense-panel__fields select { width: 100%; height: 38px; border: 1px solid #b6c1c7; border-radius: 3px; background: #fff; padding: 7px 9px; }
.astra-typesense-panel__fields .astra-typesense-panel__check { flex-direction: row; align-items: center; padding-top: 27px; }
.astra-typesense-panel__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.astra-typesense-panel__message { min-height: 20px; margin: 12px 0 0; color: #197343; font-weight: 700; }
.astra-typesense-panel__message.is-error { color: #b63333; }
@media (max-width: 760px) {
    .astra-typesense-panel__heading { flex-direction: column; }
    .astra-typesense-panel__status { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
    .astra-typesense-panel__fields { grid-template-columns: 1fr; }
    .astra-typesense-panel__fields .astra-typesense-panel__check { padding-top: 0; }
    .astra-autocomplete { max-height: 55vh; overflow-y: auto; }
}
