/* footfall-web: the dashboard. Classes only, coloured with the design
 * kit's accent tokens (--dk-300 to --dk-600, set by the page's accent-blue)
 * and its warning colour (--dk-warn), on the kit's slate base, with white
 * at a set strength for text, panels and hairlines (BRAND.md). */

html, body {
  margin: 0;
  background: rgb(2, 6, 23);
  color: rgba(255, 255, 255, .88);
}

.footfall {
  box-sizing: border-box;
  max-width: 76rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.footfall-skeleton .footfall-placeholder { display: block; }
.footfall-live .footfall-placeholder { display: none; }
.footfall-placeholder { min-height: 60vh; }

.footfall-noscript {
  padding: 1rem;
  border: 1px solid rgba(var(--dk-warn-rgb), .6);
  border-radius: .75rem;
}

.footfall-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footfall-title {
  margin: 0;
  font-size: 1.75rem;
  color: rgb(255, 255, 255);
}

.footfall-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  flex: 1;
}

.footfall-label,
.footfall-range,
.footfall-signout,
.footfall-heading,
.footfall-tile-label,
.footfall-table th {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .75rem;
}

.footfall-select {
  font: inherit;
  padding: .4rem .6rem;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: .5rem;
  background: rgba(255, 255, 255, .05);
  color: inherit;
}

.footfall-ranges { display: flex; gap: .25rem; }

.footfall-range {
  padding: .45rem .7rem;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: .5rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.footfall-range-on {
  border-color: var(--dk-500);
  background: var(--dk-500);
  color: rgb(2, 6, 23);
}

.footfall-range:focus-visible,
.footfall-select:focus-visible,
.footfall-signout:focus-visible,
.footfall-foot a:focus-visible {
  outline: 2px solid var(--dk-400);
  outline-offset: 2px;
}

.footfall-signout { color: var(--dk-400); text-decoration: none; }
.footfall-signout:hover { text-decoration: underline; }

.footfall-status {
  min-height: 1.5rem;
  margin: .75rem 0;
  color: rgba(255, 255, 255, .6);
}

.footfall-trouble { color: var(--dk-warn); }

.footfall-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footfall-tile,
.footfall-panel {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .05);
}

.footfall-tile-label { margin: 0 0 .5rem; color: rgba(255, 255, 255, .6); }
.footfall-tile-value { margin: 0; font-size: 1.75rem; color: rgb(255, 255, 255); }

.footfall-heading { margin: 0 0 1rem; color: var(--dk-400); }

.footfall-over-time { margin-bottom: 1.5rem; }

.footfall-bars { display: block; width: 100%; height: 12rem; }
.footfall-bar-views { fill: rgba(var(--dk-500-rgb), .35); }
.footfall-bar-visitors { fill: var(--dk-400); }

.footfall-axis {
  display: flex;
  justify-content: space-between;
  margin-top: .5rem;
  font-size: .8rem;
  color: rgba(255, 255, 255, .6);
}

.footfall-legend {
  display: flex;
  gap: 1.5rem;
  margin: .75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .8rem;
}

.footfall-key::before {
  content: "";
  display: inline-block;
  width: .75rem;
  height: .75rem;
  margin-right: .4rem;
  border-radius: .2rem;
  vertical-align: -.1rem;
}

.footfall-key-views::before { background: rgba(var(--dk-500-rgb), .35); }
.footfall-key-visitors::before { background: var(--dk-400); }

.footfall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 1rem;
}

.footfall-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.footfall-table th { text-align: left; color: rgba(255, 255, 255, .6); padding: 0 0 .5rem; }
.footfall-table td { padding: .35rem 0; border-top: 1px solid rgba(255, 255, 255, .06); vertical-align: top; }
.footfall-count { text-align: right; font-variant-numeric: tabular-nums; width: 6rem; }

.footfall-key-cell { max-width: 0; }

.footfall-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footfall-share { display: block; width: 100%; height: .25rem; margin-top: .2rem; }
.footfall-share-bar { fill: var(--dk-500); }

.footfall-empty { margin: 0; color: rgba(255, 255, 255, .5); }

.footfall-foot {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8rem;
  color: rgba(255, 255, 255, .6);
}

.footfall-foot a { color: var(--dk-400); }

@media (max-width: 30rem) {
  .footfall { padding: 1.25rem 1rem 2rem; }
  .footfall-grid { grid-template-columns: 1fr; }
}

/* The landing page at /: the kit's hero, the sign-in button, three points. */

.footfall-landing {
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.footfall-landing-body {
  box-sizing: border-box;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.footfall-landing-brand {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  letter-spacing: .2em;
  color: var(--dk-400);
}

.footfall-landing-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  color: rgb(255, 255, 255);
}

.footfall-landing-lead {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .75);
}

.footfall-landing-action { margin: 2.25rem 0 0; }

.footfall-landing-signin {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: .75rem;
  background: var(--dk-500);
  color: rgb(255, 255, 255);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.footfall-landing-signin:hover { background: var(--dk-600); }

.footfall-landing-signin:focus-visible {
  outline: 2px solid var(--dk-300);
  outline-offset: 3px;
}

.footfall-landing-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 3.5rem 0 0;
  padding: 0;
  list-style: none;
}

.footfall-landing-point {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .05);
}

.footfall-landing-point p {
  margin: 0;
  line-height: 1.55;
  color: rgba(255, 255, 255, .7);
}

.footfall-landing-point-title {
  margin: 0 0 .5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dk-300);
}

.footfall-landing-note {
  margin: 2.5rem 0 0;
  font-size: .875rem;
  color: rgba(255, 255, 255, .55);
}

@media (max-width: 30rem) {
  .footfall-landing-body { padding: 2.5rem 1rem; }
}
