* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f6f8;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #dfe2e6;
}

.header-inner,
.container {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.logo {
    margin: 0;
    font-size: 24px;
}

.logo a {
    color: #111;
    text-decoration: none;
}

.header-search {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 460px;
}

.container {
    padding-top: 36px;
    padding-bottom: 60px;
}

.card {
    margin-bottom: 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid #dfe2e6;
    border-radius: 10px;
}

.search-box {
    display: flex;
    gap: 10px;
}

input[type="search"],
input[type="text"],
input[type="url"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #b8bec6;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font: inherit;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

button,
.button {
    display: inline-block;
    padding: 11px 18px;
    border: 0;
    border-radius: 6px;
    background: #1456a0;
    color: #fff;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

button:hover,
.button:hover {
    background: #0e417b;
}

.button-secondary {
    background: #e8ebef;
    color: #222;
}

.button-secondary:hover {
    background: #d9dde2;
}

.button-danger {
    background: #b42318;
}

.button-danger:hover {
    background: #8f1c13;
}

.meta {
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

.status-new,
.status-new-row {
    color: #725500;
    font-size: 13px;
    font-weight: 600;
}

.status-new {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    background: #fff2cc;
}

.status-new-row {
    margin-top: 5px;
}

.rating-large {
    font-size: 32px;
    font-weight: 700;
}

.rating-scale {
    color: #666;
    font-size: 18px;
}

.object-info {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px 20px;
}

.object-info dt {
    font-weight: 700;
}

.object-info dd {
    margin: 0;
}

.inline-edit-form {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 430px;
    margin-top: 7px;
}

.inline-edit-form input,
.inline-edit-form select {
    padding: 6px 8px;
    font-size: 13px;
}

.inline-edit-form select {
    flex: 1;
}

.inline-edit-form button {
    padding: 6px 9px;
    font-size: 12px;
    white-space: nowrap;
}

.inline-edit-form[hidden] {
    display: none;
}

.review-rating {
    font-size: 21px;
    font-weight: 700;
}

.notice {
    padding: 12px 14px;
    border-radius: 6px;
}

.notice-success {
    background: #dff6e6;
    color: #155b2d;
}

.notice-error {
    background: #fde3e1;
    color: #84201a;
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.results-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.result-item {
    padding: 20px 0;
    border-bottom: 1px solid #e4e6e9;
}

.result-item:last-child {
    border-bottom: 0;
}

.result-title {
    display: block;
    color: #1456a0;
    font-size: 22px;
    font-weight: 700;
    text-transform: none;
    text-decoration: none;
}

.result-title:hover {
    text-decoration: underline;
}

.result-type {
    margin-top: 4px;
    color: #555;
    font-size: 15px;
}

.result-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 9px;
}

.result-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    color: #666;
    font-size: 14px;
}

.result-stars {
    font-size: 18px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.rating-good {
    color: #18733b;
}

.rating-average {
    color: #8a6700;
}

.rating-weak {
    color: #b45309;
}

.rating-bad {
    color: #b42318;
}

.rating-empty,
.review-count {
    color: #666;
}

.create-result-box {
    margin-top: 28px;
    padding: 20px;
    border: 1px dashed #aeb5bd;
    border-radius: 8px;
    background: #f8f9fa;
}

.create-result-box h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.create-result-box p {
    margin-top: 0;
    margin-bottom: 16px;
}

.site-footer {
    padding: 25px 0;
    border-top: 1px solid #dfe2e6;
    color: #666;
    text-align: center;
}

@media (max-width: 650px) {
    .header-inner {
        display: block;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .header-search {
        margin-top: 14px;
    }

    .search-box {
        display: block;
    }

    .search-box button,
    .create-result-box button {
        width: 100%;
        margin-top: 10px;
    }

    .object-info {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .object-info dd {
        margin-bottom: 12px;
    }

    .card {
        padding: 18px;
    }

    .inline-edit-form,
    .result-meta-row {
        align-items: stretch;
        flex-direction: column;
    }

    .result-meta-row {
        gap: 6px;
    }

    .result-stars {
        font-size: 15px;
        letter-spacing: 0;
    }
}

.result-type.unknown {
    color: #8a8a8a;
    font-style: italic;
}

.object-title,
.object-name-value {
    text-transform: uppercase;
}

.object-title {
    margin-bottom: 12px;
}

.object-rating {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rating-stars {
    color: #e3a008;
    font-size: 23px;
    letter-spacing: 1px;
}

.empty-rating {
    color: #777;
}

.section-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
}

.edit-link,
.small-action-link {
    border: 0;
    background: transparent;
    color: #52769b;
    text-decoration: none;
}

.edit-link:hover,
.small-action-link:hover {
    background: transparent;
    color: #1456a0;
    text-decoration: none;
}

.edit-link {
    margin-left: 6px;
    font-size: 11px;
}

.compact-notice {
    margin-top: 18px;
    margin-bottom: 0;
    padding: 8px 10px;
    font-size: 13px;
}

.rating-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.rating-form-row label {
    font-weight: 700;
}

.rating-form-row select {
    width: 72px;
    padding: 7px;
}

#review-text {
    min-height: 90px;
}

.character-counter {
    margin-top: 3px;
    color: #777;
    font-size: 12px;
    text-align: right;
}

.review-rating-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.compact-card {
    padding: 14px 18px;
}

.removal-details summary {
    color: #1456a0;
    font-size: 13px;
    cursor: pointer;
}

.small-text {
    font-size: 12px;
}

.compact-removal-form {
    max-width: 420px;
}

.compact-removal-form select,
.compact-removal-form textarea {
    margin-bottom: 8px;
    padding: 7px 8px;
    font-size: 12px;
}

.compact-removal-form textarea {
    min-height: 65px;
}

.small-danger-button {
    padding: 7px 10px;
    background: #b42318;
    font-size: 12px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgb(0 0 0 / 45%);
}

.modal-overlay[hidden] {
    display: none;
}

.modal-box {
    position: relative;
    width: min(480px, 100%);
    padding: 24px;
    border-radius: 10px;
    background: #fff;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    padding: 3px 9px;
    background: transparent;
    color: #444;
    font-size: 24px;
}

.modal-close:hover {
    background: #eee;
}

.field-edit-trigger[hidden] {
    display: none;
}

.review {
    padding: 18px 0;
    border-bottom: 1px solid #e4e6e9;
}

.review:last-child {
    border-bottom: 0;
}

.review-date {
    margin: 0 0 4px;
    color: #777;
    font-size: 12px;
}

.review-stars {
    color: #e3a008;
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1.2;
}

.review-score {
    margin-top: 2px;
    font-size: 15px;
    font-weight: 700;
}

.review-text {
    margin: 5px 0 0;
}

a {
    color: #1456a0;
    text-decoration: none;
}

a:hover {
    color: #0e417b;
    text-decoration: none;
}

a:visited {
    color: #1456a0;
}

.object-info a {
    color: #2f5f8f;
    word-break: break-word;
}

.object-info a:hover {
    color: #174a7c;
}

.logo a,
.logo a:hover,
.logo a:visited {
    color: #111;
    text-decoration: none;
}

summary {
    text-decoration: none;
}

summary:hover {
    color: #0e417b;
}

button {
    text-decoration: none;
}

a,
a:hover,
a:focus,
a:active,
a:visited,
button,
button:hover,
button:focus,
button:active,
.edit-link,
.edit-link:hover,
.small-action-link,
.small-action-link:hover,
.object-info a,
.object-info a:hover,
.removal-details summary,
.removal-details summary:hover {
    text-decoration: none !important;
}

.small-action-link,
.edit-link,
.removal-details summary {
    color: #52769b;
}

.small-action-link:hover,
.edit-link:hover,
.removal-details summary:hover {
    color: #1456a0;
}

.object-info a {
    color: #2f5f8f;
}

.object-info a:hover {
    color: #174a7c;
}

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
}

.section-heading .small-action-link {
    display: inline;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #6b7f93;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    vertical-align: baseline;
}

.section-heading .small-action-link:hover {
    background: transparent;
    color: #1456a0;
}

.section-heading {
    display: flex;
    align-items: baseline;
    width: 100%;
    gap: 8px;
}

.section-heading .report-action-link {
    margin-left: auto;
}

@media (max-width: 650px) {
    .section-heading {
        align-items: flex-start;
    }

    .section-heading .report-action-link {
        margin-left: auto;
        text-align: right;
    }
}

.homepage-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.homepage-section-heading h2 {
    margin: 0;
}

.homepage-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.homepage-list-item {
    padding: 16px 0;
    border-bottom: 1px solid #e4e6e9;
}

.homepage-list-item:first-child {
    padding-top: 0;
}

.homepage-list-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.homepage-object-title {
    display: block;
    color: #1456a0;
    font-size: 17px;
    font-weight: 700;
}

.homepage-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 5px;
    color: #555;
    font-size: 14px;
}

.homepage-review-text {
    margin: 7px 0 0;
    color: #444;
    font-size: 14px;
}

.homepage-date {
    margin-top: 4px;
    color: #888;
    font-size: 11px;
}

.homepage-item-meta {
    margin-top: 3px;
    color: #777;
    font-size: 13px;
}

.homepage-grid-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.homepage-grid-link {
    display: block;
    height: 100%;
    padding: 12px 14px;
    border: 1px solid #e1e4e8;
    border-radius: 7px;
    background: #fafbfc;
}

.homepage-grid-link:hover {
    border-color: #b9c6d3;
    background: #f4f7fa;
}

.homepage-grid-link strong,
.homepage-grid-link span {
    display: block;
}

.homepage-grid-link span {
    margin-top: 3px;
    color: #777;
    font-size: 12px;
}

.search-tags,
.type-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-tag,
.type-links a {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 20px;
    background: #eef3f8;
    color: #315f8c;
    font-size: 13px;
}

.search-tag:hover,
.type-links a:hover {
    background: #dfeaf4;
    color: #174a7c;
}

.homepage-about p {
    margin-bottom: 0;
    color: #555;
}

@media (max-width: 650px) {
    .homepage-grid-list {
        grid-template-columns: 1fr;
    }

    .homepage-rating {
        align-items: flex-start;
    }
}

.object-statistics-box {
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f2f3f5;
}

.object-statistics {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 26px;
    font-size: 11px;
    color: #666;
    text-align: center;
}

.object-statistics span {
    white-space: nowrap;
}

.object-statistics strong {
    margin-right: 3px;
    color: #444;
    font-weight: 600;
}

@media (max-width: 650px) {
    .object-statistics {
        gap: 6px 14px;
        font-size: 10px;
    }
}

input[type="search"]::placeholder {
    color: #888;
    font-style: italic;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d5d9de;
    border-radius: 6px;
    background: #fff;
    color: #1456a0;
    font-size: 13px;
    text-decoration: none;
}

.pagination-link:hover {
    border-color: #aeb9c4;
    background: #f3f6f9;
    color: #0e417b;
}

.pagination-link.active {
    border-color: #1456a0;
    background: #1456a0;
    color: #fff;
    font-weight: 700;
}

.pagination-dots {
    padding: 0 3px;
    color: #777;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #dfe2e6;
}

.header-inner,
.footer-inner {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.logo {
    margin: 0;
    font-size: 24px;
}

.logo a,
.logo a:hover,
.logo a:visited {
    color: #111;
    text-decoration: none;
}

.header-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-navigation a {
    color: #526579;
    font-size: 14px;
    font-weight: 600;
}

.header-navigation a:hover {
    color: #1456a0;
}

.site-footer {
    padding: 28px 0;
    border-top: 1px solid #dfe2e6;
    background: #fff;
    color: #6b737c;
}

.footer-inner {
    text-align: center;
}

.footer-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.footer-navigation a {
    color: #526579;
    font-size: 13px;
}

.footer-navigation a:hover {
    color: #1456a0;
}

.footer-description {
    margin-top: 16px;
    font-size: 12px;
}

.footer-copyright {
    margin-top: 5px;
    color: #9298a0;
    font-size: 11px;
}

@media (max-width: 650px) {
    .header-inner {
        min-height: auto;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .header-navigation {
        gap: 14px;
    }

    .header-navigation a {
        font-size: 13px;
    }

    .footer-navigation {
        gap: 7px 14px;
    }
}

.static-page {
    font-size: 15px;
}

.static-page > h1 {
    margin-top: 0;
    margin-bottom: 22px;
}

.static-page h2 {
    margin-top: 28px;
    margin-bottom: 8px;
    font-size: 19px;
}

.static-page p {
    max-width: 760px;
}

.static-page li {
    margin-bottom: 6px;
}

.faq-item {
    padding: 18px 0;
    border-bottom: 1px solid #e4e6e9;
}

.faq-item:first-of-type {
    padding-top: 0;
}

.faq-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.faq-item h2 {
    margin-top: 0;
}

.contact-box {
    margin: 20px 0;
    padding: 16px 18px;
    border-radius: 7px;
    background: #f1f3f5;
}

.contact-box h2 {
    margin-top: 0;
}

.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.logo {
    margin: 0;
    flex-shrink: 0;
}

.logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    display: block;
    height: 76px;
    width: auto;
}

@media (max-width: 700px) {

    .logo img {
        height: 38px;
    }

}