:root {
    color-scheme: light;
    --page: #f3f6fb;
    --surface: #fff;
    --subtle: #f0f5fb;
    --ink: #122039;
    --muted: #50627a;
    --line: #d9e3ef;
    --accent: #1457b5;
    --button: #1457b5;
    --hero-start: #101e36;
    --hero-end: #164579;
    --warning: #96352b;
    --shadow: 0 10px 36px #152f4e0b;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --page: #0d1727;
    --surface: #142137;
    --subtle: #1b2b44;
    --ink: #edf4ff;
    --muted: #aabbd1;
    --line: #30425c;
    --accent: #9fc5ff;
    --button: #2364be;
    --hero-start: #132741;
    --hero-end: #193b62;
    --warning: #ffb5aa;
    --shadow: none;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 1rem/1.5 system-ui, sans-serif;
}
a { color: var(--accent); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, p, dl, dd { margin: 0; }
[v-cloak] { display: none; }
.shell { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner, .site-footer, .hero-heading, .hero-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
}
.header-inner { min-height: 4.25rem; padding-block: .55rem; }
.brand {
    display: inline-flex;
    gap: .65rem;
    align-items: center;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 750;
    text-decoration: none;
}
.brand i, .field-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .7rem;
    color: var(--accent);
    background: var(--subtle);
}
.site-main { padding-block: clamp(1.25rem, 4vw, 3rem); }
.navigation { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.button, .navigation button {
    padding: .55rem .85rem;
    border: 1px solid var(--line);
    border-radius: .65rem;
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
}
.button:hover, .navigation button:hover { background: var(--subtle); }
.navigation button[aria-pressed="true"] { background: var(--subtle); color: var(--accent); border-color: var(--accent); }
.button-primary, .button-primary:hover { background: var(--button); color: white; border-color: var(--button); }
.button-primary:hover { filter: brightness(1.1); }
.hero {
    margin-bottom: 1rem;
    padding: clamp(1.2rem, 4vw, 2.5rem);
    border: 1px solid #365981;
    border-radius: 1.2rem;
    background: radial-gradient(ellipse at top right, var(--hero-end), var(--hero-start) 75%);
    color: #fff;
    box-shadow: var(--shadow);
}
.hero :focus-visible { outline-color: #b9d7ff; }
.hero h1 { font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 650; }
.hero p { color: #c5d7ef; }
.hero-ip {
    display: block;
    margin-block: .55rem .9rem;
    color: #fff;
    font: 700 clamp(1.65rem, 5.5vw, 3.7rem)/1.15 ui-monospace, Consolas, monospace;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}
.hero .button { background: #ffffff16; border-color: #ffffff55; color: #fff; }
.hero .button:hover { background: #ffffff29; }
.hero-actions { justify-content: flex-start; }
.hero-actions p:empty { display: none; }
.panel {
    min-width: 0;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.panel h2 { font-size: 1.15rem; }
.panel-note, .field dt, .site-footer { color: var(--muted); font-size: .9rem; }
.panel-note { margin-top: .3rem; }
.error { margin-top: .8rem; color: var(--warning); }
.hero .error { color: #ffb5aa; }
.lookup-form { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.lookup-form input {
    flex: 1 1 15rem;
    min-width: 0;
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid var(--line);
    border-radius: .65rem;
    background: var(--page);
    color: var(--ink);
}
.lookup-result { margin-top: 1rem; }
.details { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1rem; }
.details.with-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin-top: 1rem;
}
.field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .55rem;
    padding: .65rem;
    border-radius: .75rem;
    background: var(--page);
}
.field dd { font-weight: 650; overflow-wrap: anywhere; }
.map {
    height: clamp(16rem, 38vw, 22rem);
    margin-top: 1rem;
    border-radius: .75rem;
    background: var(--subtle);
    isolation: isolate;
}
.site-footer { border-top: 1px solid var(--line); padding-block: 1rem 1.5rem; }
@media (max-width: 52rem) {
    .details.with-map { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 31rem) {
    .fields { grid-template-columns: minmax(0, 1fr); }
}
