/* Switchboard -- high contrast, large type, no low-contrast grey on grey. */
:root {
  --brand: #c8102e;
  --slate: #2a3b4c;
  --t: #16202e;
  --ts: #42526b;
  --tmute: #42526b;
  --b: #cbd4e0;
  --surface: #ffffff;
  --surface-2: #f1f5fa;
  --r: 6px;
  --font-d: "Montserrat", system-ui, sans-serif;
  --font-b: "Open Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.55;
  color: var(--t);
  background: var(--surface-2);
}

.topbar { height: 6px; background: var(--brand); }

.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--b);
  padding: 12px 24px;
}
.app-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1228px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-logo { height: 34px; }
.brand-name {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 22px;
  color: var(--slate);
}
.user-chip { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-name { font-weight: 600; }
.badge {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--slate); color: #fff; border-radius: 4px; padding: 2px 8px;
}
.user-signout {
  font-weight: 700; color: var(--brand); text-decoration: none;
  border: 1px solid var(--brand); border-radius: var(--r); padding: 4px 10px;
}
.user-signout:hover { background: var(--brand); color: #fff; }

.app-main { max-width: 1228px; margin: 0 auto; padding: 24px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--b);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  padding: 22px 24px;
  max-width: 760px;
}
h1 { font-family: var(--font-d); font-size: 26px; margin: 0 0 8px; color: var(--slate); }
h2 { font-family: var(--font-d); font-size: 19px; margin: 24px 0 6px; color: var(--slate); }
.lede { font-size: 17px; margin: 0 0 18px; }
.note { font-size: 15px; color: var(--ts); margin-top: 18px; }

.btn-primary {
  display: inline-block;
  font-family: var(--font-d); font-weight: 700; font-size: 16px;
  background: var(--brand); color: #fff; text-decoration: none;
  border-radius: var(--r); padding: 11px 20px;
}
.btn-primary:hover { background: #a60d26; }

.field-label {
  display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--t);
}
.search-row { display: flex; gap: 8px; }
.search-input {
  flex: 1; min-width: 0; font: inherit; font-size: 17px; color: var(--t);
  background: #fff; border: 2px solid var(--brand); border-radius: var(--r);
  padding: 9px 12px;
}
.search-input:focus { outline: 3px solid var(--slate); outline-offset: 1px; }
.help { font-size: 15px; color: var(--ts); margin: 5px 0 0; }

.results { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.hit {
  display: block; text-align: left; width: 100%; font: inherit; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--b); border-radius: 8px;
  padding: 10px 12px; color: var(--t); text-decoration: none;
}
.hit:hover, .hit:focus { outline: 3px solid var(--slate); outline-offset: -1px; }
.hit-sys {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; background: var(--slate); color: #fff;
  border-radius: 4px; padding: 1px 7px; margin-bottom: 4px;
}
.hit-id { display: block; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hit-meta { font-size: 15px; color: var(--ts); }
.msg { font-size: 15px; color: var(--ts); padding: 4px 0; }

.flash-wrap { max-width: 1228px; margin: 14px auto 0; padding: 0 24px; }
.flash {
  border: 1px solid var(--b); border-left: 5px solid var(--brand);
  background: #fff; border-radius: var(--r); padding: 10px 14px; font-weight: 600;
}

.site-footer {
  max-width: 1228px; margin: 32px auto 0; padding: 18px 24px;
  border-top: 1px solid var(--b); color: var(--ts); font-size: 14px;
}
.site-footer a { color: var(--brand); }
