
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0d1117;
    color: #e6edf3;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

.container {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
}

header {
    border-bottom: 1px solid #30363d;
    padding: 22px 0;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand {
    font-size: 24px;
    font-weight: 700;
}

.location {
    color: #8b949e;
    font-size: 14px;
}

main {
    padding: 40px 0;
}

h1 {
    margin: 0 0 8px;
    font-size: 30px;
}

.subtitle {
    margin: 0 0 28px;
    color: #8b949e;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
}

input {
    width: 100%;
    background: #161b22;
    color: #e6edf3;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 16px;
    outline: none;
}

input:focus {
    border-color: #58a6ff;
}

button {
    border: 0;
    border-radius: 8px;
    background: #238636;
    color: white;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background: #2ea043;
}

.result-count {
    color: #8b949e;
    margin-bottom: 16px;
}

.card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 14px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
}

.type {
    color: #58a6ff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.source {
    color: #8b949e;
    font-size: 12px;
}

.card h2 {
    font-size: 19px;
    margin: 5px 0 8px;
}

.meta {
    color: #8b949e;
    font-size: 13px;
    margin-bottom: 12px;
}

.description {
    color: #c9d1d9;
    line-height: 1.5;
}

.source-link {
    display: inline-block;
    margin-top: 14px;
    color: #58a6ff;
    text-decoration: none;
}

.source-link:hover {
    text-decoration: underline;
}

.empty {
    padding: 40px;
    text-align: center;
    color: #8b949e;
    border: 1px dashed #30363d;
    border-radius: 10px;
}

.login {
    width: min(420px, 100%);
    margin: 80px auto;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 30px;
}

.login button {
    width: 100%;
    padding: 14px;
    margin-top: 12px;
}

.error {
    background: #3d1418;
    border: 1px solid #8b2d35;
    padding: 12px;
    border-radius: 7px;
    margin-bottom: 18px;
}

.logout {
    color: #8b949e;
    text-decoration: none;
    font-size: 13px;
}

.logout:hover {
    color: #e6edf3;
}

@media (max-width: 600px) {

    .search-form {
        flex-direction: column;
    }

    .search-form button {
        padding: 14px;
    }

}

.access-request {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #30363d;
    border-radius: 8px;
    text-align: center;
    color: #8b949e;
    font-size: 14px;
}

.access-request a {
    color: #58a6ff;
    font-weight: 600;
    text-decoration: none;
}

.access-request a:hover {
    text-decoration: underline;
}

.today-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trafficbot-mascot {
    width: 82px;
    height: 82px;
    object-fit: contain;
    flex-shrink: 0;
}

.today-heading h1 {
    margin-bottom: 8px;
}

.today-heading .subtitle {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .trafficbot-mascot {
        width: 64px;
        height: 64px;
    }

    .today-heading {
        gap: 12px;
    }
}