/* TEMPORARY with the boards: family and breed popups. Smoky golden-hour glass with a glow in the continent's
   colour; the same card on the dark home page and on the light reading pages. */
.peek {
  --peek-text: #f7fbff;
  width: min(21rem, calc(100vw - 2rem));
  overflow: hidden;
  border-radius: 1.4rem;
  color: var(--peek-text);
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(120% 60% at 0% 0%, color-mix(in srgb, var(--hue, #8fb3d6) 34%, transparent), transparent 70%),
    radial-gradient(90% 60% at 100% 100%, #a9c6df2e, transparent 70%),
    linear-gradient(165deg, #1a2c3ea6, #101c2873 55%, #101c2859);
  border: 1px solid #a9c6df66;
  box-shadow:
    inset 0 1px 0 #ffffff4d,
    0 20px 60px #0008,
    0 0 50px color-mix(in srgb, var(--hue, #8fb3d6) 30%, transparent);
  backdrop-filter: blur(26px) saturate(1.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  text-align: left;
}
.peek-ph {
  position: relative;
  margin: 0;
}
.peek-ph img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}
.peek-kind,
.peek-note {
  position: absolute;
  top: 0.7rem;
  padding: 0.22rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, #101c288c, #101c284d);
  border: 1px solid #ffffff40;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.peek-kind {
  left: 0.7rem;
  border-left: 3px solid color-mix(in srgb, var(--hue, #8fb3d6) 70%, #fff);
}
.peek-note {
  right: 0.7rem;
  opacity: 0.8;
}
.peek-body {
  display: grid;
  gap: 0.7rem;
  margin-top: -1.6rem;
  position: relative;
  padding: 0 1.1rem 1.1rem;
}
.peek h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 14px #000a;
}
.peek-line {
  margin: 0;
  font: italic 400 0.95rem/1.45 "Newsreader", Georgia, serif;
  color: #f7fbffe6;
}
.peek-line small {
  display: block;
  font: 600 0.58rem/1.4 "Libre Franklin", sans-serif;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}
.peek-fact {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.peek-fact b {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff, #dbe8f4 60%, #a9c6df);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.peek-fact span {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
}
.peek-fact small,
.peek-dna small {
  display: block;
  font-size: 0.74rem;
  font-weight: 400;
  opacity: 0.75;
}
.peek-here {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.8rem;
  font-size: 0.8rem;
  line-height: 1.4;
  background: #ffffff14;
  border: 1px solid #ffffff1f;
}
.peek-chart {
  font-size: 0.6rem;
}
.peek-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 2.4rem;
  border-bottom: 1px solid #ffffff33;
}
.peek-bars span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(#ffffffb3, #ffffff4d);
}
.peek-bars span.now {
  background: linear-gradient(#d4e4f3, #7fa7c9);
  box-shadow: 0 0 10px #7fa7c999;
}
.peek-ribbon {
  display: flex;
  gap: 3px;
  height: 0.55rem;
}
.peek-ribbon span {
  flex: 1;
  border-radius: 1rem;
  background: #ffffff26;
}
.peek-ribbon span.past {
  background: #ffffff4d;
}
.peek-ribbon span.here {
  background: linear-gradient(90deg, #d4e4f3, #7fa7c9);
  box-shadow: 0 0 10px #7fa7c9cc;
}
.peek-axis {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.peek-when {
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  color: #d4e4f3;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.peek-when.c-medium {
  text-decoration-style: dashed;
}
.peek-when.c-low {
  text-decoration-style: dotted;
}
.peek-dna {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 500;
}
.peek-meter {
  height: 0.45rem;
  border-radius: 1rem;
  background: #ffffff1f;
  overflow: hidden;
}
.peek-meter i {
  display: block;
  height: 100%;
  border-radius: 1rem;
  background: linear-gradient(90deg, color-mix(in srgb, var(--hue, #8fb3d6) 60%, #fff), #7fa7c9);
}
.peek-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
}
.peek-meta > span,
.peek-meta > a {
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
  background: #ffffff14;
  border: 1px solid #ffffff26;
  color: inherit;
  text-decoration: none;
}
.peek-meta > a:hover {
  border-color: #7fa7c9;
}
.peek-where {
  display: inline-flex;
  gap: 0.3rem;
}
.peek-where i {
  width: 1rem;
  height: 1rem;
  background: #f7fbffd9;
  -webkit-mask: var(--shape) center / contain no-repeat;
  mask: var(--shape) center / contain no-repeat;
}
.peek-go {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-radius: 2rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #16283a;
  text-decoration: none;
  background: linear-gradient(120deg, #d4e4f3, #7fa7c9 55%, #a9c6df);
  box-shadow: 0 6px 20px #7fa7c940, inset 0 1px 0 #ffffffb3;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.peek-go:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px #7fa7c966, inset 0 1px 0 #ffffffb3;
}
/* Hover popup on reading pages. */
.peek-pop {
  position: fixed;
  z-index: 80;
  opacity: 0;
  translate: 0 6px;
  pointer-events: none;
  transition:
    opacity 0.2s,
    translate 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.peek-pop.on {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

/* The top bar sits above the page's sticky panels. */
.topbar {
  z-index: 70;
}
