/* Served from wwwroot/css/site.css -> https://<host>/css/site.css */

:root {
    color-scheme: light;
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --color-text: #1c1c1e;
    --color-muted: #6b6b70;
    --color-bg: #fbfbfd;
    --color-border: #d5d5da;
    --color-rule: #e3e3e8;
    --color-link: #0b5cd5;
    --content-width: 900px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

.wrap { max-width: var(--content-width); margin: 0 auto; padding: 48px 20px; }

h1 { font-size: 2.25rem; line-height: 1.2; margin: 0 0 24px; }

/* Rich text output of the "content" property */
.body table { border-collapse: collapse; width: 100%; }
.body table td,
.body table th { border: 1px solid var(--color-border); padding: 8px; }
.body img { max-width: 100%; height: auto; }

nav ul { list-style: none; padding: 0; margin: 0; }
nav li { margin-bottom: 8px; }
nav a { color: var(--color-link); text-decoration: none; }
nav a:hover { text-decoration: underline; }

footer {
    border-top: 1px solid var(--color-rule);
    margin-top: 48px;
    padding-top: 16px;
    color: var(--color-muted);
    font-size: .875rem;
}
.form-text { font-size: .875rem; color: var(--color-muted); margin-top: 8px; }

/* Header */
.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding-bottom: 16px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--color-rule);
}
.site-header .brand { font-weight: 600; font-size: 1.125rem; color: var(--color-text); text-decoration: none; }
.site-header .brand img { display: block; max-height: 40px; width: auto; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { color: var(--color-text); text-decoration: none; }
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--color-link); text-decoration: underline; }

.lang-switch a { font-size: .875rem; color: var(--color-muted); }
.lang-switch a[aria-current="true"] { color: var(--color-text); font-weight: 600; }

.site-nav .header-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    background: var(--color-link);
    color: #fff;
    text-decoration: none;
}
.site-nav .header-button:hover,
.site-nav .header-button:focus-visible { color: #fff; text-decoration: none; opacity: .9; }

.nav-toggle { display: none; }
.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;
}

@media (max-width: 767px) {
    .site-nav,
    .site-nav ul { flex-direction: column; align-items: flex-start; }
    .site-nav { width: 100%; }

    .has-js .site-nav { display: none; }
    .has-js .site-nav.is-open { display: flex; }

    .has-js .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--color-border);
        border-radius: 6px;
        background: transparent;
        cursor: pointer;
    }
    .nav-toggle-bar,
    .nav-toggle-bar::before,
    .nav-toggle-bar::after {
        position: relative;
        display: block;
        width: 20px;
        height: 2px;
        background: var(--color-text);
    }
    .nav-toggle-bar::before,
    .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bar::before { top: -6px; }
    .nav-toggle-bar::after { top: 6px; }
}

/* Footer */
.site-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--color-rule);
    color: var(--color-muted);
    font-size: .875rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.footer-about p,
.footer-contact p { margin: 0 0 8px; }
.footer-contact { font-style: normal; }
.footer-address { white-space: pre-line; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--color-muted); text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--color-link); text-decoration: underline; }
.footer-copyright { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--color-rule); }