body.search.tw-reading-page {
    background: #e3e8e4;
    color: #302e28;
}
.tw-site-search {
    --tw-search-surface: #f1eee6;
    --tw-search-ink: #302e28;
    --tw-search-line: #dcd0bc;
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(16px, 4vw, 36px);
    color: var(--tw-search-ink);
    font: 400 .95rem/1.5 Inter, system-ui, sans-serif;
}
.tw-site-search h1 { font-size: clamp(1.65rem, 5vw, 2.45rem); font-weight: 700; margin: 12px 0; }
.tw-site-search a { color: #284840; text-decoration: underline; }
.tw-site-search form label { display: block; margin-bottom: 5px; font-weight: 650; }
.tw-site-search form div { display: flex; gap: 8px; }
.tw-site-search form :is(input, button) { font: inherit; border: 1px solid #879b96; border-radius: 7px; padding: 9px 12px; }
.tw-site-search form input { flex: 1; min-width: 0; background: var(--tw-search-surface); color: var(--tw-search-ink); }
.tw-site-search form button { background: #404f4d; color: #fff; cursor: pointer; }
.tw-site-search-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.tw-site-search-tabs a { text-decoration: none; background: var(--tw-search-surface); border: 1px solid #aebcb7; border-radius: 7px; padding: 6px 10px; }
.tw-site-search-tabs a[aria-current="page"] { background: #404f4d; color: #fff; }
.tw-site-search-results { margin: 14px 0; border: 1px solid #aebcb7; border-radius: 12px; overflow: hidden; background: var(--tw-search-surface); }
.tw-site-search-results h2 { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #404f4d; color: #fff; font-weight: 650; }
.tw-site-search-results ul { margin: 0; padding: 0; }
.tw-site-search-results li { list-style: none; border-bottom: 1px solid var(--tw-search-line); }
.tw-site-search-results li a { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 11px 16px; text-decoration: none; }
.tw-site-search-results li a:hover { background: #9bafac; text-decoration: underline; }
.tw-site-search-results li small { color: #435651; }
.tw-site-search-results :is(p, .tw-site-search-more, .tw-site-search-pagination) { display: block; padding: 12px 16px; }
.tw-site-search-pagination span { margin-inline: 8px; }
.tw-site-search-empty { padding: 12px 0; }
.tw-site-search :focus-visible { outline: 2px solid #356b62; outline-offset: 3px; }

html body dialog#tw-site-search-dialog {
    box-sizing: border-box;
    background: #f1eee6 !important;
    color: #302e28 !important;
    color-scheme: light !important;
    border: 1px solid #aebcb7;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgb(0 0 0 / 24%);
    font: 400 .875rem/1.45 Inter, system-ui, sans-serif;
    position: fixed;
    z-index: 1352;
    inset: 50% var(--tw-ui-menu-side, 73px) auto auto;
    transform: translateY(-50%);
    margin: 0;
    max-height: min(540px, calc(100dvh - var(--tw-ui-menu-top, 12px) - 12px));
    max-width: none;
    overflow: hidden;
    padding: 0;
    width: min(420px, calc(100vw - var(--tw-ui-menu-side, 73px) - 10px));
}
html body #tw-site-search-dialog[open] { display: flex; flex-direction: column; }
html body #tw-site-search-dialog > header {
    position: relative;
    flex: none;
    padding: 14px 52px 14px 16px;
    background: #404f4d !important;
    color: #fff !important;
}
html body #tw-site-search-dialog > header h2 {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    font: 500 clamp(14px, 2.5vw, 19px)/1.3 Inter, system-ui, sans-serif;
    margin: 0;
}
html body #tw-site-search-dialog .tw-site-search-close {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    cursor: pointer;
}
html body #tw-site-search-dialog .tw-site-search-flyout-body {
    margin: 0;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 16px;
    background: #f1eee6 !important;
    color: #302e28 !important;
    -webkit-text-fill-color: currentColor !important;
}
html body #tw-site-search-dialog input {
    background: #f1eee6 !important;
    color: #302e28 !important;
    -webkit-text-fill-color: currentColor !important;
}
html body #tw-site-search-dialog button[type="submit"] {
    background: #d9e1df !important;
    color: #303a38 !important;
    -webkit-text-fill-color: currentColor !important;
}
#tw-site-search-dialog .tw-site-search-status:not(:empty) { margin-top: 12px; }
#tw-site-search-dialog :focus-visible { outline: 2px solid #356b62; outline-offset: -2px; }
#tw-site-search-dialog .tw-site-search-close:focus-visible { outline-color: #f1eee6; }

@media (max-width: 600px), (max-height: 520px) {
    html body dialog#tw-site-search-dialog {
        inset: var(--tw-view-top, 8px) var(--tw-view-right, 8px) auto var(--tw-view-left, 8px);
        width: auto;
        max-height: calc(100dvh - var(--tw-view-top, 8px) - var(--tw-view-bottom, 8px));
        transform: none;
    }
}
