* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: #202124;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input {
    font: inherit;
}

.top-links {
    position: fixed;
    top: 18px;
    right: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.icon-button,
.header-actions span:not(.avatar) {
    width: 26px;
    height: 26px;
    border: 0;
    background: transparent;
    color: #3c4043;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 18px;
    letter-spacing: -3px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #78909c;
    color: #fff;
    display: inline-grid;
    place-items: center;
    font-size: 16px;
    font-weight: 500;
}

.home-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 260px;
}

.logo {
    margin-bottom: 36px;
    font-size: 82px;
    line-height: 1;
    letter-spacing: -5px;
    user-select: none;
}

.blue { color: #4285f4; }
.red { color: #ea4335; }
.yellow { color: #fbbc05; }
.green { color: #34a853; }

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #dfe1e5;
    background: #fff;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.16);
}

.search-box:focus-within,
.search-box:hover {
    box-shadow: 0 1px 8px rgba(32, 33, 36, 0.22);
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #202124;
}

.search-box input::-webkit-search-cancel-button {
    display: none;
}

.home-search {
    width: min(690px, calc(100vw - 36px));
    height: 46px;
    border-radius: 24px;
    padding: 0 14px 0 18px;
}

.home-search .plus {
    color: #202124;
    font-size: 28px;
    line-height: 1;
    margin-right: 14px;
}

.home-search input {
    height: 100%;
    font-size: 16px;
}

.search-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #3c4043;
    white-space: nowrap;
}

.home-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
}

.soft-button {
    height: 36px;
    padding: 0 16px;
    border: 1px solid #f8f9fa;
    border-radius: 4px;
    background: #f8f9fa;
    color: #3c4043;
    cursor: pointer;
}

.soft-button:hover {
    border-color: #dadce0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.election-link {
    margin-top: 32px;
    color: #1a0dab;
    font-size: 13px;
}

.footer {
    color: #3c4043;
    background: #f2f2f2;
}

.country {
    padding: 15px 30px;
    border-bottom: 1px solid #dadce0;
    font-size: 15px;
}

.footer-row {
    min-height: 46px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 0 30px;
}

.footer-row nav {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.results-page {
    min-width: 320px;
}

.results-header {
    height: 70px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 13px 30px 8px;
}

.small-logo {
    display: inline-block;
    width: 74px;
    flex: 0 0 auto;
    font-size: 24px;
    letter-spacing: -2px;
    user-select: none;
}

.results-search {
    width: min(690px, calc(100vw - 190px));
    height: 44px;
    border-radius: 24px;
    padding: 0 16px 0 20px;
}

.results-search input {
    height: 100%;
    font-size: 14px;
}

.clear-search {
    color: #5f6368;
    font-size: 28px;
    line-height: 1;
    padding: 0 12px;
    text-decoration: none !important;
}

.divider {
    width: 1px;
    height: 26px;
    margin-right: 14px;
    background: #dadce0;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tabs {
    height: 44px;
    padding-left: 150px;
    border-bottom: 1px solid #ebebeb;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    font-size: 12px;
    color: #5f6368;
}

.tabs a {
    padding-bottom: 13px;
}

.tabs .active {
    color: #202124;
    border-bottom: 3px solid #1a73e8;
}

.results-layout {
    width: min(652px, calc(100vw - 40px));
    margin-left: 150px;
    padding: 14px 0 60px;
}

.result-count {
    margin: 0 0 12px;
    color: #70757a;
    font-size: 13px;
}

.result-item {
    margin-bottom: 24px;
}

.result-source {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3c4043;
}

.favicon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8f0fe;
    color: #1a73e8;
    display: inline-grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.site-name {
    display: block;
    line-height: 1.2;
}

.result-source a {
    display: block;
    max-width: 560px;
    overflow: hidden;
    color: #4d5156;
    font-size: 12px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.more {
    margin-left: 4px;
    color: #70757a;
}

.result-item h2 {
    margin: 5px 0 3px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
}

.result-item h2 a {
    color: #1a0dab;
}

.result-item p {
    margin: 0;
    color: #4d5156;
    font-size: 14px;
    line-height: 1.45;
}

.sitelinks {
    margin-top: 16px;
    border-top: 1px solid #dadce0;
}

.sitelink {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #dadce0;
    color: #4d5156;
}

.sitelink::after {
    content: '›';
    color: #5f6368;
    align-self: center;
}

.sitelink span {
    color: #1a0dab;
    font-size: 15px;
}

.sitelink small {
    grid-column: 1 / -1;
    color: #4d5156;
    font-size: 12px;
    line-height: 1.35;
}

.more-results {
    display: inline-block;
    margin-top: 12px;
    color: #4d5156;
    font-size: 13px;
}

.empty-state {
    padding: 26px 0;
}

.empty-state h1 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 400;
}

.empty-state p {
    margin: 0;
    color: #5f6368;
    line-height: 1.45;
}

.related-searches {
    margin-top: 34px;
}

.related-searches h2 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 400;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.related-grid a {
    min-height: 40px;
    border-radius: 20px;
    background: #f1f3f4;
    color: #202124;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
}

.pagination {
    margin-top: 34px;
    text-align: center;
}

.long-logo {
    font-size: 28px;
    letter-spacing: -2px;
    line-height: 1;
}

.long-logo .arrow {
    margin-left: 8px;
}

.pages {
    margin-top: 6px;
    display: flex;
    justify-content: center;
    gap: 8px;
    color: #4285f4;
    font-size: 11px;
}

.pages a:first-child {
    color: #202124;
}

@media (max-width: 760px) {
    .top-links {
        right: 14px;
        gap: 12px;
    }

    .home-main {
        padding-top: 150px;
    }

    .logo {
        font-size: 58px;
        margin-bottom: 28px;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 24px;
    }

    .results-header {
        height: auto;
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px;
    }

    .small-logo {
        width: auto;
    }

    .results-search {
        order: 3;
        width: 100%;
    }

    .header-actions {
        margin-left: auto;
    }

    .tabs {
        padding-left: 14px;
        overflow-x: auto;
        align-items: flex-end;
    }

    .tabs a {
        flex: 0 0 auto;
    }

    .results-layout {
        width: calc(100vw - 28px);
        margin-left: 14px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
