/* Reset & base */
* { box-sizing: border-box; }
:root { --max: 584px; }

html, body {
    height: 100%;
    margin: 0;
}

body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: #202124;
    background: #fff;
    font: 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Accessibility: visually hidden labels */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    width: 100%;
}

.topbar ul {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.topbar a {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
}

.topbar a:hover { text-decoration: underline; }

.btn-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #1a73e8;
    background: #1a73e8;
    color: #fff;
    text-decoration: none;
}

.btn-account,
.btn-account:link,
.btn-account:visited {
    color: #fff;
}

.btn-account:hover,
.btn-account:focus {
    background: #1669c1; /* darker blue for hover */
    border-color: #1669c1;
    color: #fff;
    text-decoration: none;
}


/* Logo + hero */
#logo {
    display: block;
    margin: 12vh auto 24px auto;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px 32px;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: min(90vw, var(--max));
    margin: 0 auto;
}

#search-box {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #dadce0;
    border-radius: 22px;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    outline: none;
    font-size: 16px;
}

#search-box:focus {
    border-color: #1a73e8;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.4);
}

#search_buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

#search_buttons button {
    padding: 8px 16px;
    font-size: 14px;
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 4px;
    cursor: pointer;
}

#search_buttons button:hover {
    box-shadow: 0 1px 1px rgba(0,0,0,.1);
}

/* Footer */
footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #f2f2f2;
    color: #70757a;
    font-size: 14px;
    border-top: 1px solid #dadce0;
}

#footer_up {
    list-style: none;
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #dadce0;
}

.footer_cols {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 12px 16px 24px;
}

.footer_cols ul {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer_cols a:hover { text-decoration: underline; }

img { border: 0; display: block; }
