/* ---------- Theme ----------
   Colours, radii and fonts are CSS variables so they can be adjusted in one place. */

:root {
    --bg: #ffffff;
    --ink: #0f2f2c;
    --muted: #4c6b67;
    --brand: #0f766e;
    --brand-dark: #115e59;
    --on-brand: #ffffff;
    --accent: #0f766e;
    --link: #0f766e;
    --header-bg: #ffffff;
    --header-ink: #0f2f2c;
    --header-border: #ffffff;
    --card: #f0fdfa;
    --card-ink: #0f2f2c;
    --card-radius: 10px;
    --footer-bg: #0b3b37;
    --footer-border: #0b3b37;
    --btn-radius: 6px;
    --font-body: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-head: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --brand-transform: none;
    --brand-spacing: normal;
}

/* ---------- Base ---------- */

html, body {
    font-family: var(--font-body);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-size: 19px;
}

main { flex: 1; }

/* The home page paints full-width bands, so it drops the page container's width and padding. */
main:has(.dg-wrap) { max-width: none; padding: 0 !important; }

h1, h2, h3, h4, h5 { font-family: var(--font-head); }

a, .btn-link { color: var(--link); }
a:hover { color: var(--brand-dark); }

.text-muted { color: var(--muted) !important; }

h1:focus { outline: none; }

/* ---------- Buttons ---------- */

.btn { border-radius: var(--btn-radius); }

.btn-primary {
    color: var(--on-brand);
    background-color: var(--brand);
    border-color: var(--brand);
}
.btn-primary:hover, .btn-primary:focus {
    color: var(--on-brand);
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
    background: transparent;
}
.btn-outline-primary:hover {
    color: var(--on-brand);
    background-color: var(--accent);
    border-color: var(--accent);
}

.btn:focus, .btn:active:focus, .form-control:focus {
    box-shadow: 0 0 0 0.1rem var(--bg), 0 0 0 0.25rem var(--brand);
    border-color: var(--brand);
}

.form-control { border-radius: calc(var(--btn-radius) + 2px); }

/* ---------- Layout pieces ---------- */

.site-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.site-header .brand {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    font-family: var(--font-head);
    text-transform: var(--brand-transform);
    letter-spacing: var(--brand-spacing);
}
.site-header .brand-logo { display: block; height: 56px; width: auto; }
.site-header nav a { text-decoration: none; color: var(--header-ink); padding-bottom: 2px; }
.site-header nav a.active { color: var(--brand); border-bottom: 2px solid var(--brand); }

.site-footer { background: var(--footer-bg); border-top: 1px solid var(--footer-border); }
.site-footer, .site-footer .text-muted { color: #b8e4de !important; }
.site-footer a { color: #fff; }
.site-footer .small { font-size: 19px; }

.info-card {
    background: var(--card);
    color: var(--card-ink);
    border-radius: var(--card-radius);
    padding: 1.5rem;
}
.info-card .table { --bs-table-bg: transparent; --bs-table-color: currentColor; }
.info-card a { color: inherit; text-decoration: underline; }

.map-frame { border: 0; width: 100%; height: 380px; border-radius: var(--card-radius); }

/* Honeypot field: hidden from people, visible to bots. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

#blazor-error-ui { display: none; }
