.name-list {
    display: flex;
    justify-content: center;
    border-radius: 10px;
    background-color: #eee;
    padding: 10px;
}

.name-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.name-list li {
    margin: 5px;
    background-color: #d2d2d2;
    border-radius: 5px;
    font-size: 16px;
}

.name-list li a {
    display: block;
    padding: 10px;
    color: #000;
    text-decoration: none;
}

.name-list li:hover {
    background-color: var(--mme-green);
    cursor: pointer;
}

.name-list li:hover a {
    color: #fff;
}

.paginator-container {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.prev-button,
.next-button,
.back-button {
    padding: 8px 16px;
    background-color: var(--mme-green);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.prev-button:hover,
.next-button:hover,
.back-button:hover {
    background-color: #0056b3;
}

.prev-button:disabled,
.next-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.search-results-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.search-results-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-results-title {
    color: #333;
    font-size: 1.5rem;
}

.search-results-count {
    color: #666;
    font-size: 0.9rem;
}

.search-result-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    color: #1a0dab;
    font-size: 1.1rem;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.search-result-title:hover {
    text-decoration: underline;
}

.search-result-snippet {
    color: #545454;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.search-result-url {
    color: #006621;
    font-size: 0.8rem;
}

.search-message {
    text-align: center;
    padding: 30px;
    font-size: 1.1em;
    color: #555;
}

.search-loading {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    z-index: 10003;
}


body.search-mode {
    overflow: hidden;
}

body.search-mode main > :not(#section-accessibility-main) {
    display: none !important;
}

body.search-mode #section-accessibility-main {
    position: sticky;
    top: 0;
    z-index: 10002;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

body.search-mode #search-container {
    position: fixed;
    top: 190px;
    left: 0;
    right: 0;
    bottom: 60px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
    z-index: 9999;
    padding: 0 1.5rem 1.5rem;
}

body.search-mode .search-results-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 5;
    padding: 16px 0 12px;
    border-bottom: 1px solid #e5e5e5;
}

body.search-mode #search-results-list {
    padding-top: 16px;
}

body.search-mode #search-info {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
}

body.search-mode #paginator-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #ddd;
    padding: 10px 20px;
    z-index: 10001;
    display: flex !important;
    justify-content: center;
    gap: 10px;
}
