*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0d12;
  --surface: #11151c;
  --line: #1f2530;
  --text: #d7dce3;
  --muted: #8b949e;
  --route-up: #22c55e;
  --route-warn: #e8a34c;
  --route-ams: #a78bfa;
  --asn-accent: #6a8dff;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Mono', 'Cascadia Code', 'Consolas', monospace;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html { 
  background: var(--bg); 
  color: var(--text); 
  font-family: var(--sans); 
  font-size: 15px; 
  line-height: 1.7; 
}

body {
  margin: 0 auto;
  max-width: 860px;
  padding: 0 2rem 5rem;
}

.top-nav-link {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.top-nav-link:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.3);
}

code { font-family: var(--mono); font-size: 0.9em; }

/* ── Focus States ── */
:focus-visible {
  outline: 2px solid var(--asn-accent);
  outline-offset: 2px;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 6rem 0 4.5rem;
  border-bottom: 1px solid var(--line);
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.hero-nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-accent {
  width: 32px;
  height: 2px;
  background: var(--asn-accent);
}


.hero h1 {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero h1 strong {
  font-weight: 600;
  color: var(--asn-accent);
  font-family: var(--mono);
}

.hero-desc {
  color: var(--muted);
  max-width: 65ch;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* Terminal-style live strip */
.hero-live-strip {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.hero-live-strip .strip-val {
  color: var(--text);
  font-weight: 500;
}

.hero-live-strip .separator {
  color: var(--line);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--route-up);
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--route-up);
  border-radius: 50%;
}

/* Restored Hero Badges (Images) */
.hero-badges-img {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-badges-img a {
  display: inline-block;
  transition: opacity 0.2s;
}

.hero-badges-img a:hover {
  opacity: 0.85;
}

.hero-badges-img img {
  display: block;
  height: 115px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ── Sections ── */
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child { border-bottom: none; }

.section-primary {
  padding: 4.5rem 0; /* More presence for address space */
}

.section-plain {
  padding: 2.5rem 0;
}

.section-title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
}

/* ── Generic Card Style ── */
.card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  overflow: hidden;
}

/* ── Address Space (Clean Interactive Hierarchy) ── */
.addr-space { margin-top: 0.5rem; position: relative; }

.rs-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 1.5rem;
  position: relative;
}

.rs-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.rs-title-area {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.rs-cidr-title {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.rs-title-hint {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.rs-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rs-back-btn {
  font-family: var(--mono);
  font-size: 12px;
  color: #a5b4fc;
  background: rgba(101, 101, 190, 0.12);
  border: 1px solid rgba(101, 101, 190, 0.35);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.rs-back-btn:hover {
  background: rgba(101, 101, 190, 0.25);
  color: #fff;
  border-color: #818cf8;
}

.rs-stat-btn {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.rs-stat-btn:hover {
  border-color: #6565be;
  color: #fff;
  background: rgba(101, 101, 190, 0.15);
}

.rs-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.rs-bar-title {
  color: var(--text);
  font-weight: 500;
}

.rs-bar-container {
  position: relative;
  height: 38px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  overflow: hidden;
  margin-bottom: 0.85rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

.rs-seg {
  height: 100%;
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  transition: all 0.15s ease;
  user-select: none;
  outline: none;
}

.rs-seg:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
  z-index: 10;
}

.rs-seg-assigned {
  background: #6565be;
  color: #fff;
  cursor: pointer;
}

.rs-seg-assigned:hover {
  background: #7676d4;
  filter: brightness(1.15);
}

.rs-seg-free {
  background: transparent;
  border-right: 1px dashed rgba(255, 255, 255, 0.15);
  color: transparent;
  cursor: default;
}

.rs-seg-free:last-child {
  border-right: none;
}

.rs-seg-free:hover {
  background: rgba(255, 255, 255, 0.03);
}

.rs-seg-subdivided {
  background: #4f46e5;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  position: relative;
  font-weight: 700;
  z-index: 2;
}

.rs-seg-subdivided:hover {
  background: #5d55eb;
  filter: brightness(1.1);
}

.rs-seg-assigned-ams {
  background: #4f46e5;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  position: relative;
  font-weight: 700;
  z-index: 2;
}

.rs-seg-assigned-ams:hover {
  background: #5d55eb;
  filter: brightness(1.1);
}

/* Legend */
.rs-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--muted);
  margin-top: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.rs-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.rs-legend-sq {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.rs-legend-sq.assigned { background: #6565be; }
.rs-legend-sq.ams { background: #6366f1; }
.rs-legend-sq.free {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.4);
}

/* Quick selector chips */
.rs-pills-wrap {
  margin-top: 1rem;
}

.rs-pills-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.rs-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rs-pill-btn {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.rs-pill-btn:hover {
  border-color: #6565be;
  background: rgba(101, 101, 190, 0.12);
  color: #fff;
}

.rs-pill-btn.active {
  border-color: #6565be;
  background: #6565be;
  color: #fff;
}

.rs-pill-tag {
  color: var(--muted);
  font-size: 11px;
}

.rs-pill-btn.active .rs-pill-tag {
  color: rgba(255, 255, 255, 0.85);
}

.rs-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6565be;
}

.rs-pill-btn.active .rs-pill-dot {
  background: #fff;
}

/* Footer info */
.rs-card-footer {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.rs-card-footer span span {
  color: var(--text);
}

/* Tooltip popup */
.rs-popover {
  position: absolute;
  z-index: 100;
  background: #151922;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  min-width: 180px;
}

.rs-popover.visible {
  opacity: 1;
  transform: translateY(0);
}

.rs-pop-title {
  font-family: var(--mono);
  font-weight: 600;
  color: #fff;
  font-size: 12px;
  margin-bottom: 0.2rem;
}

.rs-pop-meta {
  color: var(--muted);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.15rem;
}

.rs-pop-meta span:last-child {
  color: var(--text);
  font-family: var(--mono);
}

.addr-extra-label {
  color: var(--muted);
}

/* ── Paired Grid (Policy & Security) ── */
.paired-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.paired-sections .section {
  border-bottom: none;
  padding-bottom: 3.5rem;
}

/* ── Peer Grid ── */
.peer-grid {
  display: flex;
  flex-direction: column;
}

.peer-cell {
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.peer-cell:last-child { border-bottom: none; }

.peer-cell .pc-label {
  font-size: 11px;
  font-family: var(--mono);
  text-transform: uppercase;
  color: var(--muted);
}

.peer-cell .pc-value {
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--mono);
}

.peer-cell .pc-value a {
  color: var(--asn-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.peer-cell .pc-value a:hover { border-color: var(--asn-accent); }

/* ── Security Grid ── */
.security-grid {
  display: flex;
  flex-direction: column;
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
}
.security-item:last-child { border-bottom: none; }

.security-item .si-check {
  color: var(--route-up);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
  font-family: var(--mono);
}

.security-item .si-text {
  color: var(--muted);
}

.security-item .si-text strong {
  color: var(--text);
  font-weight: 500;
}

/* ── Traceroute Style IXP List ── */
.traceroute-list {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2;
  color: var(--text);
  padding: 1.5rem;
  overflow-x: auto;
}

.region-heading {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 0.5rem 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
}
.region-heading.mt { margin-top: 1.5rem; }

.traceroute-row {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.2rem 0;
}

.traceroute-row .ixp-name {
  width: 16ch;
  color: var(--text);
}

.traceroute-row .ixp-loc {
  width: 25ch;
  color: var(--muted);
}

.traceroute-row .ixp-ip {
  color: var(--asn-accent);
}

.traceroute-row .ixp-asn {
  color: var(--muted);
}

/* ── Transit Table ── */
.transit-table {
  font-family: var(--mono);
  font-size: 12.5px;
}

.transit-table-header {
  display: flex;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.transit-table-row {
  display: flex;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.transit-table-row:last-child {
  border-bottom: none;
}


.tt-col-provider { flex: 2; }
.tt-col-asn { flex: 1.5; color: var(--muted); }
.tt-col-pop { flex: 0.5; text-align: right; }

/* ── Transit & Collectors ── */
.collector-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.collector-link {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.collector-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--line);
}

.collector-link .collector-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

/* ── Amateur Radio ── */
.radio-box {
  padding: 1rem 1.25rem;
}

.radio-box .rb-head {
  color: var(--route-up);
  font-size: 13px;
  font-family: var(--mono);
  margin-bottom: 0.5rem;
}

.radio-box p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 58ch;
}

.radio-box code {
  color: var(--asn-accent);
}

/* ── Infrastructure (PoP Cards) ── */
.infra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.infra-pop {
  padding: 1.25rem;
}

.infra-pop-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.infra-pop-city {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.infra-pop-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: #818cf8;
  background: rgba(129, 140, 248, 0.12);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.infra-pop-facility {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.infra-pop-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.infra-detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.infra-detail-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.infra-detail-val {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
}

.infra-detail-val code {
  color: #a5b4fc;
}

.infra-pop-ixps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.infra-ixp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  background: var(--bg);
}

.infra-ixp-count {
  color: var(--muted);
  font-size: 11px;
}

.infra-ixp-note {
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
}

.infra-ixp-soon {
  border-style: dashed;
  opacity: 0.6;
}

/* ── IXP Status Badges ── */
.ixp-status {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

.ixp-status-soon {
  color: var(--route-warn);
}


/* ── BGP Communities ── */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.comm-format-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--asn-accent);
  background: rgba(106, 141, 255, 0.08);
  border: 1px solid rgba(106, 141, 255, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
}

.section-intro {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 58ch;
}

.comm-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.comm-filter-btn {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.comm-filter-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.comm-filter-btn.active {
  color: #fff;
  background: rgba(106, 141, 255, 0.15);
  border-color: var(--asn-accent);
}

.comm-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comm-group {
  padding: 1.25rem;
  transition: opacity 0.2s;
}

.comm-group.hidden {
  display: none;
}

.comm-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.75rem;
}

.comm-group-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.comm-type-badge {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 999px;
}

.comm-type-badge.info {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.comm-type-badge.action {
  color: var(--route-up);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.comm-table {
  display: flex;
  flex-direction: column;
}

.comm-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.comm-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.comm-code-btn {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: #a5b4fc;
  background: rgba(106, 141, 255, 0.06);
  border: 1px solid rgba(106, 141, 255, 0.22);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
  flex-shrink: 0;
  min-width: 140px;
  justify-content: space-between;
}

.comm-code-btn:hover {
  background: rgba(106, 141, 255, 0.18);
  border-color: #818cf8;
  color: #fff;
}

.comm-code-btn:active {
  background: rgba(106, 141, 255, 0.25);
}

.comm-code-btn.copied {
  background: rgba(34, 197, 94, 0.18);
  border-color: var(--route-up);
  color: var(--route-up);
}

.comm-code-btn .copy-label {
  font-size: 11px;
  color: var(--muted);
  transition: color 0.15s;
}

.comm-code-btn:hover .copy-label {
  color: #fff;
}

.comm-meaning {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.45;
}

.comm-meaning code {
  color: #a5b4fc;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 4px;
  border-radius: 3px;
}

/* ── Contact & Ext Links (Plain Rows) ── */
.contact-rows {
  display: flex;
  flex-direction: column;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child {
  border-bottom: none;
}

.contact-row .cr-role {
  font-size: 11px;
  font-family: var(--mono);
  text-transform: uppercase;
  color: var(--muted);
}

.contact-row .cr-val a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
}
.contact-row .cr-val a:hover { color: var(--asn-accent); }

.ext-links-plain {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.ext-link-plain {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.ext-link-plain:hover { color: var(--asn-accent); }

/* ── Footer ── */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .paired-sections {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .infra-grid {
    grid-template-columns: 1fr;
  }
@media (max-width: 600px) {
  body { padding: 0 1.25rem 4rem; }
  .hero { padding: 4rem 0 3rem; }
  .hero h1 { font-size: 24px; }
  
  .card {
    padding: 1.25rem 1rem;
  }

  .hero-badges-img {
    gap: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .hero-badges-img a {
    width: auto;
    flex: 0 1 auto;
  }
  .hero-badges-img img {
    height: auto;
    width: auto;
    max-height: 85px;
    max-width: 100%;
    object-fit: contain;
  }

  /* Address space widget mobile optimizations */
  .rs-top-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1rem;
  }
  .rs-title-area {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
  }
  .rs-cidr-title {
    font-size: 1.25rem;
  }
  .rs-title-hint {
    font-size: 11px;
  }
  .rs-actions {
    display: flex;
    width: 100%;
    gap: 0.5rem;
  }
  .rs-actions .rs-back-btn,
  .rs-actions .rs-stat-btn {
    flex: 1;
    justify-content: center;
    padding: 0.45rem 0.5rem;
    font-size: 11px;
  }

  .rs-bar-container {
    height: 42px;
  }

  .rs-seg {
    font-size: 11px;
    letter-spacing: -0.5px;
    font-weight: 700;
  }

  .rs-legend {
    gap: 0.75rem 1.25rem;
    font-size: 11px;
  }

  .rs-pills-row {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  .rs-pill-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.55rem 0.75rem;
    font-size: 12px;
    box-sizing: border-box;
  }

  .rs-pill-btn .rs-pill-tag {
    margin-left: auto;
    font-size: 11px;
  }

  /* Where I peer table mobile optimizations */
  .traceroute-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0;
    row-gap: 0.35rem;
  }
  .traceroute-row .ixp-name {
    width: 100%;
    font-size: 14px;
    font-weight: 600;
  }
  .traceroute-row .ixp-loc {
    font-size: 12px;
  }
  .traceroute-row .ixp-ip,
  .traceroute-row .ixp-status,
  .traceroute-row .ixp-asn {
    font-size: 12px;
    word-break: break-all;
  }

  /* Infra PoP cards */
  .infra-detail-val {
    font-size: 12px;
    word-break: break-word;
  }

  /* Communities table mobile optimizations */
  .comm-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.6rem 0;
  }

  .comm-code-btn {
    width: 100%;
  }
}

