/*
 * The map pages (/map/, /atm11/map/): the house bar in its own strip, and a
 * server's BlueMap filling everything below it. A page picks its colour with
 * --accent (the address chip's Copy button); the bar itself is
 * <house-bar skin="craft"> from jakebondar.com/_shared/.
 */

:root {
    --bg: #10140f;
    --line: #2c3727;
    --ink: #eef2e8;
    --ink-2: #a9b5a0;
    --accent: #7cc452;
    --accent-ink: #12210b;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    background: var(--bg);
    color: var(--ink);
    font: 14px/1.4 var(--sans);
}

/* The bar sits ABOVE the map, in its own strip, never over it: BlueMap keeps
   the whole of the rectangle below, so none of its controls can be covered,
   whatever it puts where. */
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

house-bar { flex: none; }
house-bar:not(:defined) { display: block; height: 46px; }

/* The server address, the page's own item in the bar. */
.addr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px 5px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink-2);
    font: 600 0.82rem/1 var(--mono);
}

.addr button {
    border: 0;
    padding: 5px 8px;
    border-radius: 5px;
    background: var(--accent);
    color: var(--accent-ink);
    font: 600 0.75rem/1 var(--sans);
    cursor: pointer;
}

.addr button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

iframe {
    flex: 1;
    width: 100%;
    min-height: 0;
    border: 0;
    display: block;
}

@media (max-width: 560px) {
    .addr { display: none; }
}
