:root {
  color-scheme: light;
  --ink: #23232a;
  --quiet: #6b6b72;
  --link: #1a3e8c;
  --link-hot: #0f2555;
  --rule: #e8e6de;
  --divider: #b9c0d4;
  --bg: #fbfaf6;
  --panel: #f2f0e8;
  --field: #fff;
  --field-edge: #8c8a82;
  --warn: #9a1c1c;
  --warn-bg: #fbf1f1;
  --bar-text: #dce4f6;
  --bar-rule: #7f95c9;
  --shadow: 2px 2px 0 rgba(35, 35, 42, .22);
  --shadow-deep: 2px 2px 0 rgba(15, 37, 85, .28);
  --measure: 36rem;
  --gutter: 1.25rem;
}

* { box-sizing: border-box; }

.skip { position: absolute; left: -9999px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { left: var(--gutter); top: .4rem; z-index: 2; padding: .4rem .7rem; background: var(--field); color: var(--link); }
main:focus { outline: none; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

/* The bar spans the page; its contents line up with the column below.
   width: a flex item with auto margins otherwise shrinks to its content. */
.bar, main, footer {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
main { flex: 1 0 auto; padding-top: 1.5rem; padding-bottom: 3rem; }

header { background: var(--link); border-bottom: 3px solid var(--link-hot); }
.bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; padding-top: .55rem; padding-bottom: .55rem; }
header h1 { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
header h1 a { color: var(--field); text-decoration: none; }
header h1 a:hover { text-decoration: underline; text-underline-offset: 3px; }
header nav { margin-left: auto; display: flex; gap: .9rem; font-size: .85rem; }
header nav a { color: var(--bar-text); text-decoration: none; border-bottom: 1px dotted var(--bar-rule); }
header nav a:hover { color: var(--field); border-bottom-style: solid; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hot); text-decoration: none; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

h2 { margin: 2.1rem 0 .5rem; font-size: 1.05rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.3; }
/* A rule separates sections; there is nothing above the first one. A hidden note does not count. */
h2:first-child, [hidden]:first-child + h2 { margin-top: .25rem; }
h2:first-child::before, [hidden]:first-child + h2::before { display: none; }
/* The one repeated flourish. */
h2::before { content: ""; display: block; width: 3.5rem; height: 2px; background: var(--divider); margin-bottom: .9rem; }
p { margin: .7rem 0; }
strong { font-weight: 700; }

.quiet { color: var(--quiet); font-size: .9rem; }
.broken { color: var(--warn); font-size: .9rem; font-weight: 600; }
.error, .note { margin: .9rem 0; padding: .6rem .8rem; background: var(--panel); border-left: 4px solid var(--link); font-size: .95rem; }
.error { border-left-color: var(--warn); background: var(--warn-bg); }
/* The alert page's one number is the point of the page. */
.headline-figure { margin: .4rem 0 .2rem; font-size: 2.1rem; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: var(--link); }

input[type=text], input[type=search], input[type=number] {
  width: 100%; padding: .5rem .6rem; border: 2px solid var(--field-edge); border-radius: 2px;
  font: inherit; background: var(--field);
}
input:focus { border-color: var(--link); }
label { display: block; margin: 1.4rem 0 .25rem; font-size: .95rem; font-weight: 600; }
label.inline { display: inline-block; margin: 0 1rem 0 0; font-weight: 400; }

/* Hard shadows rather than blurred: pressable, not floating. */
button {
  padding: .45rem 1rem; border: 2px solid var(--ink); border-radius: 2px;
  background: var(--field); color: var(--ink); font: inherit; font-weight: 600;
  cursor: pointer; box-shadow: var(--shadow);
}
button:hover { background: var(--panel); }
button:active { transform: translate(2px, 2px); box-shadow: none; }
button[disabled] { opacity: .55; cursor: default; box-shadow: none; transform: translate(2px, 2px); }

.actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.actions button { background: var(--link); border-color: var(--link-hot); color: var(--field); box-shadow: var(--shadow-deep); }
.actions button:hover { background: var(--link-hot); }
.actions button.secondary { background: var(--field); color: var(--ink); border-color: var(--ink); box-shadow: var(--shadow); }
.actions button.secondary:hover { background: var(--panel); }

/* A button that should not look like one. */
form.inline { display: inline; }
form.inline button {
  padding: 0; border: 0; background: none; box-shadow: none; color: var(--quiet); font-weight: 400;
  text-decoration: underline; text-underline-offset: 2px;
}
form.inline button:active { transform: none; }
form.inline button:hover { background: none; color: var(--warn); }

/* The label floats so the summary shares its line and the open tip drops beneath both. */
.option { margin: .4rem 0; }
.option label.inline { float: left; margin-right: .3rem; }
.option details { margin: 0; }
.info {
  display: inline-flex; align-items: center; justify-content: center; list-style: none;
  width: 1.5rem; height: 1.5rem; border: 1px solid var(--quiet); border-radius: 50%;
  color: var(--quiet); font: italic 700 .9rem/1 Georgia, "Times New Roman", serif;
}
.info::-webkit-details-marker { display: none; }
.info:hover, details[open] > .info { color: var(--ink); border-color: var(--ink); background: var(--panel); }
.tip { clear: left; margin: .35rem 0 .6rem; padding: .45rem .7rem; max-width: 30rem; background: var(--panel); border-left: 3px solid var(--divider); font-size: .87rem; color: var(--quiet); }

fieldset { border: 0; padding: 0; margin: 1.1rem 0 0; }
legend { padding: 0; font-size: .95rem; font-weight: 600; }

ul.rows { margin: 1rem 0 0; padding: 0; list-style: none; }
ul.rows li { padding: .8rem 0; border-top: 1px solid var(--rule); }
ul.rows li:first-child { border-top: 0; }
ul.rows li:last-child { border-bottom: 1px solid var(--rule); }
.row-title { font-weight: 700; }

#map { width: 100%; height: 55vh; min-height: 15rem; border: 2px solid var(--ink); }
.credit { margin: .2rem 0 0; text-align: right; color: var(--quiet); font-size: .75rem; }
.credit a { color: inherit; }

/* The pin is the middle of the map, so the target is drawn over it and never moves. */
.mapwrap { position: relative; }
.crosshair {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  pointer-events: none; border: 2px solid var(--ink); border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}
.crosshair::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px;
  margin: -2px 0 0 -2px; background: var(--ink); border-radius: 50%;
}
details { margin: .6rem 0; font-size: .9rem; }
summary { cursor: pointer; color: var(--link); width: fit-content; }
summary:hover { color: var(--link-hot); }
details p { margin: .5rem 0; color: var(--quiet); }

kbd { font: inherit; font-size: .85em; padding: 0 .25em; border: 1px solid var(--field-edge); border-radius: 2px; }

footer { flex-shrink: 0; padding-top: .9rem; padding-bottom: 3rem; border-top: 1px solid var(--rule); font-size: .85rem; color: var(--quiet); }
footer nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .5rem; }
footer p { margin: .4rem 0 0; }

.share { margin-top: 2rem; }
.share-links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
