/* ---- Styling Page ---- */
:root {
    --bg: #fff;
    --fg: #24292f;
    --highlight: oklch(29% 0.156 236);
    --muted: #57606a;
    --border: #d0d7de;
    --bg-muted: #f6f8fa;
    --max-width: 980px;
    --pad: 24px;
    --gap: 20px;
    --header-bg: #ffffff;
    --header-border: #e2e8f0;
    --header-text: #111827;
    --header-accent: #3b82f6;
}

html,
body {
    background: var(--bg);
    color: var(--fg);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0px
}

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

header {
    background: linear-gradient(to bottom, #ffffff 0%, #f5f7fa 100%);
    border-bottom: 1px solid var(--header-border);
    padding: 0.75rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

header .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    max-width: 960px;
    margin: 0 auto;
}

header .site-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--header-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    text-decoration: none;
}

header a.site-header:hover {
    background: #e5e7eb;
}

header .menu-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 0.375rem;
    display: none;
    /* hidden on wide screens */
}

header .menu-toggle:focus-visible {
    outline: 2px solid var(--header-accent);
    outline-offset: 2px;
}

header .menu-icon {
    display: block;
    width: 1.5rem;
    height: 0.15rem;
    background: var(--header-text);
    position: relative;
    border-radius: 999px;
}

header .menu-icon::before,
header .menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--header-text);
    border-radius: inherit;
    transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

header .menu-icon::before {
    top: -0.4rem;
}

header .menu-icon::after {
    top: 0.4rem;
}

header .menu-toggle[aria-expanded="true"] .menu-icon {
    background: transparent;
}

header .menu-toggle[aria-expanded="true"] .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

header .menu-toggle[aria-expanded="true"] .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

header nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 1.25rem;
    font-size: 0.95rem;
}

header nav a {
    text-decoration: none;
    color: #4b5563;
    padding: 0.3rem 0.4rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    transition: background 0.15s ease;
}

header nav a:hover,
header nav a:focus-visible {
    background: #e5e7eb;
    outline: none;
}

/* underline removed */
header .nav a:focus-visible {
    outline: none;
}

header .logo-icon {
    height: 1.85rem;
    /* matches site-title font-size */
    width: auto;
    margin-right: 0.05rem;
    margin-bottom: 0.15rem;
    flex-shrink: 0;
}

/* Search bar styles (inspired by Mediumish nav search) */
header .nav-search {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 0.25rem;
    border: 1px solid #dddddd;
    padding: 2px 4px;
    background: #fafafa;
    transition:
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        background-color 0.15s ease;
}

header .nav-search:focus-within {
    background: #ffffff;
    border-color: #999999;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.03);
}

header .nav-search input[type="search"] {
    border: none;
    background: transparent;
    font-size: 12px;
    padding: 2px 4px;
    width: 140px;
    outline: none;
    color: #333333;
}

header .nav-search input::placeholder {
    color: #aaaaaa;
}

header .nav-search button {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .nav-search svg {
    width: 16px;
    height: 16px;
    stroke: #999999;
}

/* Mobile / narrow layout */
@media (max-width: 768px) {
    header {
        padding: 0.75rem 1.25rem;
        /* keep same height as desktop */
    }

    header .row {
        flex-wrap: wrap;
    }

    header .menu-toggle {
        display: inline-flex;
        /* show burger */
        margin-left: auto;
    }

    header nav {
        display: none;
        /* hidden by default */
        flex-direction: column;
        /* one row per item */
        align-items: flex-start;
        gap: 0;
        width: 100%;
        margin-left: 0;
        padding-top: 0.4rem;
        order: 3;
        /* ensure it appears below title & burger */
    }

    header nav.is-open {
        display: flex;
        /* show when menu is toggled */
    }

    header nav a {
        display: block;
        width: 100%;
        padding: 0.5rem 5px;
    }

    header .nav-search {
        width: 100%;
        margin: 0.5rem 0;
    }

    header .nav-search input[type="search"] {
        width: 100%;
    }
}

/* ---- Footer ---- */
footer {
	border-top: 1px solid #dddddd;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    margin-top: 1rem;
    padding-bottom: 0.2rem;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--pad);
}

footer a:hover {
    text-decoration: underline;
}
footer a {
    color: var(--highlight);
    text-decoration: none;
}

/* ---- Main content ---- */
main {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--pad);
}



h1.title {
    border: none;
    margin-bottom: 0px;
}

.poi {
    font-style: italic;
    color: var(--muted);
}

a.download {
    text-decoration: none;
    color: var(--highlight);
}

a.download:hover {
    text-decoration: none;
}

#leafletmap {
    width: 100%;
    height: 300px;
    max-width: 100%;
}

.markdown-body img {
    /*display: block;*/
    margin-left: auto;
    margin-right: auto;
}

figcaption {
    text-align: center;
    color: var(--muted);
}


.markdown-body {
    margin: 0;
    /* Remove GitHub’s default margin */
    padding: 0;
    /* Remove GitHub’s default padding */
    box-shadow: none;
    background: none;
}

/* ---- Minimal grid ---- */
.split {
    display: grid;
    gap: var(--gap);
}

@media (min-width: 768px) {
    .split--1-3 {
        grid-template-columns: 1fr 2fr;
    }

    .split--1-2 {
        grid-template-columns: 1fr 1fr;
    }

    .split--2-3 {
        grid-template-columns: 2fr 1fr;
    }

}

.box {
    padding: 0px;
    background: var(--bg);
    z-index: 1;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    scroll-margin-top: 80px;
}

.markdown-body p>img,
.markdown-body figure>img {
    max-height: 600px;
    display: block;
    margin: 0 auto;
}

table td,
table tr {
    text-align: left;
    vertical-align: top;
    white-space: normal
}

table th {
    white-space: nowrap
}

.date {
    white-space: nowrap
}


table {
    max-width: 100%;
}

table td,
table th {
    text-align: left;
}

table.sortable th:not(.sorttable_sorted):not(.sorttable_sorted_reverse):not(.sorttable_nosort):after {
    content: " \25B4\25BE"
}

.with-star::before {
    content: "★";
    color: gold;
    /* or #FFD700 */
    margin-right: .4ch;
}

/* Stats */
.stats {
    font-size: 1rem;
}

.stat {
    display: inline;
    /* behaves like text */
    margin-right: 0.5rem;
    /* space between stats */
    white-space: nowrap;
    /* keeps icon + number together */
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.value {
    font-weight: 500;
    font-size: 1.05em;
    margin-left: 0.2em;
}

/** Tag **/
.tag {
    display: inline-block;
    padding: .25rem .6rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    text-decoration: none;
    font-size: .875rem;
    line-height: 1;
    background: transparent;
    color: inherit;
    font-weight: normal
}

.tag:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.tag:active {
    background: #e5e7eb;
}

span.tag {
    color: var(--muted)
}

/* ---- Post Meta ---- */
.info{
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}
.article-info{
    font-size: 0.9rem;
    flex: 1
}
.article-author img.author {
    width: 64px;
    height: 64px;
    border-radius: 15%;
}
.article-author img.author:hover {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.article-info .article-info{
    flex: 1;
    color: var(--muted);
}
.article-info p.summary{
    margin-top: .5rem;
}

.article-info .article-tag a {
    color: var(--highlight);
    text-decoration: none;
    background:rgba(0,0,0,.05);
	border-radius:3px;
	padding:3px 6px;
}

.article-info .article-tag a:hover {
    background:rgba(0,0,0,.07);
	text-decoration:none;
}