/* ip.nimag.net - what this page adds to the speed test's sheet (speedtest.css),
   whose colours, bar, pills, folds and footer it shares. */

.ip-main { max-width: 760px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.lang a { padding: 6px 8px; border-radius: 8px; color: var(--faint); font-weight: 500; text-decoration: none; }
.lang a[aria-current] { color: var(--shell); }
.lang a:hover { color: var(--teal); }

/* The address: the one thing the page is for. */
.hero-ip { text-align: center; padding: 28px 0 8px; }
.kicker { color: var(--soft); font-size: 15px; }
.address {
  margin-top: 10px; font-family: "Radix", "Chillax", sans-serif; font-weight: 700; line-height: 1.1;
  font-size: clamp(2.2rem, 9vw, 4rem); letter-spacing: -.01em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
}
/* An IPv6 address is three times as long: smaller, so it stays on two lines at most. */
.address.v6 { font-size: clamp(1.25rem, 5vw, 2.2rem); letter-spacing: 0; }
.hero-actions { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--teal); background: rgba(149, 191, 190, .14); white-space: nowrap;
}
.note { margin: 16px auto 0; max-width: 34em; padding: 10px 16px; border-radius: 12px; background: rgba(190, 164, 134, .16); font-size: 15px; }

.facts { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.facts div { padding: 14px 16px; border-radius: 14px; background: var(--ink-2); min-width: 0; }
.facts dt { color: var(--soft); font-size: 13px; font-weight: 500; }
.facts dd { margin-top: 4px; font-weight: 500; overflow-wrap: anywhere; }
.facts dd.mono { font-weight: 400; font-size: 14.5px; }

.card { margin-top: 10px; padding: 16px; border-radius: 14px; background: var(--ink-2); }
.card h2 { margin: 0 0 12px; font-family: "Chillax", sans-serif; font-size: 13px; font-weight: 500; color: var(--soft); }
.families { list-style: none; display: grid; gap: 8px; }
.families li { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.fam { flex: 1; min-width: 0; font-size: 15px; }
.fam.absent { color: var(--faint); font-family: "Chillax", sans-serif; }
.families .pill { padding: 6px 14px; font-size: 13px; }

.ip-main .more { margin-top: 18px; }
.next { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 640px) {
  .hero-ip { padding-top: 18px; }
  .families li { flex-wrap: wrap; gap: 6px 10px; }
  .fam { flex-basis: 60%; }
}
