/* Full-width, in-flow search; the native <details> works without scripts. */
.site-header {
 position: relative;
 --akaza-header-gutter: clamp(1rem, 3vw, 2rem);
 --akaza-header-edge: max(var(--akaza-header-gutter), calc((100% - 1400px) / 2 + var(--akaza-header-gutter)));
}
.header-actions { min-width: 44px; justify-content: flex-end; }
.icon-button { width: 44px; height: 44px; flex-shrink: 0; }
.header-search { position: static; }
.header-search > .search-toggle {
 position: absolute;
 top: 21px;
 right: var(--akaza-header-edge);
}
.header-search[open] > .search-toggle { color: #16234d; border-color: #c8cdd5; background: #f5f7fa; }
.search-panel { width: 100%; border-top: 1px solid #e5e5e1; background: #fff; color: #16234d; }
.search-panel-inner { padding-block: 20px 24px; }
.search-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; position: relative; min-height: 28px; padding-right: 52px; }
.search-panel-heading > label { font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 700; letter-spacing: -.02em; }
.search-close { position: absolute; top: -6px; right: 0; background: transparent; color: #667085; border: none; cursor: pointer; }
.search-close[hidden] { display: none; }
.search-panel .search-form { display: flex; align-items: stretch; gap: 12px; }
.search-panel .search-label { flex: 1; min-width: 0; }
.search-panel .search-field {
 min-height: 52px;
 padding: 13px 18px;
 border: 1px solid #d4d9e1;
 border-radius: 10px;
 background: #f8fafc;
 color: #25324a;
 font-size: 17px;
 box-shadow: none;
 transition: border-color .15s ease, box-shadow .15s ease;
}
/* Replace the global accent outline with a single, visible neutral focus ring. */
.search-panel .search-field:focus,
.search-panel .search-field:focus-visible {
 outline: none;
 border-color: #8795aa;
 background: #fff;
 box-shadow: 0 0 0 3px rgba(22, 35, 77, .10);
}
.search-panel .search-field::placeholder { color: #7a8698; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
 .search-panel .search-field { transition: none; }
}
.search-panel .search-submit {
 min-height: 52px;
 padding-inline: 28px;
 border-radius: 10px;
 font-weight: 650;
}
.search-clear { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 4px; font-size: 14px; white-space: nowrap; text-underline-offset: 3px; }
.search-hint { margin: 10px 0 0; font-size: 12px; color: #667085; }
.results-heading { display: block; margin: 0 0 28px; }
.results-title { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; color: #16234d; overflow-wrap: anywhere; }
.results-heading .results-count { margin: 0; font-size: 14px; font-weight: 400; color: #667085; }
/* Long headings, URLs and wide blocks must stay within their own containers. */
.header-brand { min-width: 0; }
.brand-mark { flex-shrink: 0; }
.site-title { overflow-wrap: anywhere; }
.akaza-card__title, .article-heading h1, .page-shell h1, .breadcrumbs a, .article-meta { overflow-wrap: anywhere; }
.article-meta > *, .breadcrumbs > * { min-width: 0; }
.entry-content code { overflow-wrap: anywhere; }
.entry-content .wp-block-table { max-width: 100%; overflow-x: auto; }
.entry-content .wp-block-embed { max-width: 100%; }
@media (max-width: 991px) {
 .header-actions { min-width: 96px; }
 .header-search > .search-toggle { top: 15px; right: calc(var(--akaza-header-edge) + 52px); }
 .header-brand { max-width: calc(100% - 106px); }
 .mobile-categories { z-index: 2; }
}
@media (max-width: 600px) {
 .search-panel-inner { padding-block: 16px 20px; }
 .search-panel-heading { gap: 8px; }
 .search-panel .search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
 .search-panel .search-label { grid-column: 1 / -1; }
 .search-panel .search-submit { justify-self: start; min-width: 112px; }
 .search-panel .search-field { font-size: 16px; min-height: 48px; }
 .search-panel .search-submit { min-height: 48px; }
 .search-hint { max-width: 100%; }
}
@media (max-height: 450px) and (max-width: 991px) {
 .site-header.is-sticky:has(.header-search[open]) { position: relative; top: auto; }
}
/* Enhanced live search keeps the input focused while cards update below it. */
.has-live-search .search-submit[hidden],
.has-live-search .search-clear[hidden],
.live-search-clear[hidden], .live-search-results[hidden] { display: none !important; }
.live-search-clear { align-self: center; min-height: 44px; padding: 8px 12px; border: 1px solid #c8cdd5; background: #fff; border-radius: 8px; color: #16234d; cursor: pointer; font-size: 14px; }
.live-search-results { background: var(--akaza-bg); min-height: 55vh; }
.live-search-results[aria-busy=true] { cursor: progress; }
.live-search-results .results-heading { display: block; }
.live-search-results .results-count { margin: 8px 0 0; }
.live-results-heading { outline-offset: 6px; }
.live-search-empty:empty { display: none; }
.live-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin: 32px 0 0; font-size: 14px; }
.live-pagination[hidden] { display: none; }
.live-pagination button { border: 1px solid #d5dae3; border-radius: 8px; background: #fff; color: #16234d; min-height: 44px; padding: 9px 16px; cursor: pointer; }
.live-pagination button:disabled { opacity: .45; cursor: default; }
@media (max-width: 600px) {
 .has-live-search .live-search-clear { grid-column: 2; justify-self: end; }
}
