/* SEO Monitor.
   One surface, no boxes. Typography, whitespace and hairline rules carry the
   structure; colour appears only in numbers that move. Tabular numerals
   wherever figures align. */

:root {
  --ink: #1a1a18;
  --grey: #6e6e69;
  --faint: #a3a39c;
  --hairline: #e8e7e3;
  --rule: #1a1a18;
  --bg: #fcfcfb;
  --up: #2f7d4f;
  --down: #b0432f;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "tnum";
}

/* --- Header ----------------------------------------------------------- */

.topbar { border-bottom: 1px solid var(--hairline); }

.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 28px;
  flex-wrap: wrap;
}

.wordmark {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: baseline;
}

.topbar nav a {
  color: var(--grey);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.topbar nav a:hover { color: var(--ink); }
.topbar nav a.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.topbar nav a.quiet { color: var(--faint); }
.topbar nav a.quiet { margin-left: 4px; }

/* --- Page ---------------------------------------------------------------- */

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 32px 96px;
}

.page-head { margin-bottom: 44px; }

h1 {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 16px;
}

section { margin-bottom: 64px; }

.dateline { margin: 0; color: var(--grey); font-size: 13px; }
.sep { margin: 0 8px; color: var(--faint); }
.definition { margin: -10px 0 16px; color: var(--grey); font-size: 13px; }
.empty { color: var(--grey); margin: 0; }
.table-note { color: var(--faint); font-size: 12.5px; margin: 10px 0 0; }

/* --- Headline figures ---------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0 24px;
  margin-bottom: 56px;
}

@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat-label {
  display: block;
  font-size: 12.5px;
  color: var(--grey);
  margin-bottom: 10px;
}

.stat-value {
  display: block;
  font-size: 34px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.stat-delta {
  margin-right: 14px;
  font-size: 13px;
  white-space: nowrap;
}

.stat-delta em { font-style: normal; color: var(--faint); margin-left: 2px; }

/* --- Alerts ----------------------------------------------------------------- */

.alerts { margin: 0; padding: 0; list-style: none; }

.alerts li {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  max-width: 720px;
}

.alerts li:first-child { border-top: 1px solid var(--hairline); }

/* --- Section heads with a quiet action ------------------------------------------- */

.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.quiet-link { font-size: 12.5px; color: var(--grey); text-decoration-color: var(--hairline); }
.quiet-link:hover { color: var(--ink); }
.cat-meta { font-size: 12.5px; color: var(--grey); }

/* URL cells: keep long links from blowing out the table width. */
td.url { max-width: 460px; }
td.url a { color: var(--ink); text-decoration-color: var(--hairline); display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
td.url a:hover { text-decoration-color: var(--ink); }

/* --- Tables -------------------------------------------------------------------- */

table { width: 100%; border-collapse: collapse; }

@media (max-width: 700px) {
  table { display: block; overflow-x: auto; }
}

table.narrow { max-width: 520px; }

th, td { padding: 10px 0 10px 28px; text-align: left; }
th:first-child, td:first-child { padding-left: 0; }

th {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--grey);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

td { border-bottom: 1px solid var(--hairline); }

td.num, th.num { text-align: right; }

tr.us td { font-weight: 600; }

.was { color: var(--faint); }

/* --- Semantics --------------------------------------------------------------------- */

.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--faint); }

/* --- Chart -------------------------------------------------------------------------- */

.chart { margin-top: 4px; }
.sov-chart { width: 100%; height: auto; display: block; }
.chart-label { font-size: 11.5px; fill: var(--faint); }
.chart-label.primary { fill: var(--ink); font-weight: 600; }

/* --- Two-column section ---------------------------------------------------------------- */

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 760px) { .columns { grid-template-columns: 1fr; } }

/* --- Links ------------------------------------------------------------------------------ */

.gap-links { margin: 0; font-size: 14px; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
.topbar a, .topbar a:hover { text-decoration: none; }

/* --- Login -------------------------------------------------------------------------------- */

.login-page {
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
  justify-content: center;
  background: var(--bg);
}

.login-box { width: 300px; padding-top: 18vh; }

.login-box .wordmark { display: block; margin-bottom: 40px; }

.login-box label {
  display: block;
  font-size: 12.5px;
  color: var(--grey);
  margin-bottom: 8px;
}

.login-box input {
  width: 100%;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
}

.login-box input:focus { outline: none; border-bottom-width: 2px; }

.login-box button {
  margin-top: 28px;
  padding: 10px 28px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.login-box button:hover { background: #000; }

.form-error { color: var(--down); font-size: 13px; margin: 12px 0 0; }

.login-box code { font-size: 12px; }
