@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/static/fonts/noto-sans-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Noto Sans";
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url("/static/fonts/noto-sans-latin-italic.woff2") format("woff2");
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    font-family: "Noto Sans", system-ui, sans-serif;
    padding: 0;
    margin: 0;
}

body {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

header>nav>ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1rem 0;
    padding: 0;
    list-style: none;
    font-size: 1.2rem;
}

header>nav li {
    font-weight: bold;
    background-color: #000;
}

header>nav li:hover,
header>nav li:focus-within {
    background-color: #555;
}

header>nav a {
    display: block;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: #fff;
}

main,
header {
    padding: 0 1rem;
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
}

#logo {
    display: table;
    margin: 2rem auto;
    padding: .45rem 1.2rem;
    background: white;
    border: 3px solid #000;
    border-radius: 8px;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
}

#logo>a {
    color: #000;
    text-decoration: none;
}

.remix {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
    fill: currentColor;
}

#search {
    position: relative;
    max-width: 24rem;
    margin: 0 auto;
}

#search-holder {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
}

#search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    border-bottom: 1px solid #6a6a6a;
    font: inherit;
    font-size: 1.2rem;
}

#search-result {
    position: absolute;
    z-index: 10;
    left: 0;
    right: 0;
    margin: 0.3rem 0 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #000;
    max-height: 20rem;
    overflow-y: auto;
}

#search-result>li>a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0.6rem;
    color: #000;
    text-decoration: none;
}

#search-result>li>a>small {
    color: #555;
}

#search-result>li[aria-selected="true"]>a,
#search-result>li>a:hover {
    background: #eee;
}

#search-result>li.empty {
    padding: 0.4rem 0.6rem;
    color: #555;
}

footer {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

#silhouette {
    max-width: 100%;
    max-height: 12rem;
    width: auto;
    height: auto;
}

main>p,
.description>p {
    line-height: 1.7;
}

#alphabetical {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#alphabetical>a {
    color: #000;
    font-size: 1.2em;
}

.districts,
.streets,
.tags {
    list-style: none;
    margin: 0;
    padding: 0;
}

.districts>li,
.streets>li {
    padding: 0.2em 0;
}

.districts>li>a,
.streets>li>a {
    font-size: 1.2em;
    color: #000;
    overflow-wrap: anywhere;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tags>li>a {
    display: block;
    padding: 0.1rem 0.5rem;
    border: 1px solid #000;
    border-radius: 1rem;
    font-size: 0.9rem;
    color: #000;
    text-decoration: none;
}

.tags>li>a:hover {
    background: #eee;
}

.notice {
    padding: 0.6rem 0.8rem;
    border-left: 4px solid #000;
    background: #f3f3f3;
}

.breadcrumb {
    margin-bottom: 0;
}

.themes {
    list-style: none;
    margin: 0;
    padding: 0;
}

.themes>li {
    padding: 0.2em 0;
}

.themes>li>a {
    font-size: 1.2em;
    color: #000;
}

.themes small,
.lost-label {
    color: #555;
}

.description a {
    color: inherit;
}

summary {
    padding-bottom: 1em;
    cursor: pointer;
}

/* Kartor (static/map.js, Leaflet) */

.map-section {
    margin: 2rem 0 3rem;
}

.map {
    height: min(65vh, 480px);
    border: 1px solid #000;
    background: #f2efe9;
    font: inherit;
}

.map-overview {
    height: min(80vh, 720px);
}

/* Leaflets CSS laddas efter den här filen; dubbla klasser väger tyngre. */
.map.leaflet-container {
    background: #f2efe9;
    font: inherit;
}

.map .leaflet-control-attribution {
    font-size: 0.75rem;
}

.map .leaflet-control-attribution a {
    color: #333;
}

.map-error {
    padding: 1rem;
}

.map-tip {
    font: inherit;
    font-size: 0.85rem;
}

.map-label {
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: #000;
    background: rgba(255, 255, 255, 0.85);
    border: 0;
    box-shadow: none;
}

.map-label::before {
    display: none;
}

.map-place {
    white-space: nowrap;
}

.map .map-place>a {
    display: inline-block;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    text-shadow: 0 0 3px #f2efe9, 0 0 3px #f2efe9, 0 0 3px #f2efe9;
}

.map .map-place>a:hover,
.map .map-place>a:focus {
    color: #c62828;
    text-decoration: underline;
}
