.ip-page {
  padding-bottom: 72px;
}

.ip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding: 34px 0 8px;
}

.ip-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--ed-rule);
  border-radius: 4px;
  background: var(--ed-card);
}

.ip-card h2 {
  margin: 0;
  color: var(--ed-ink);
  font-family: var(--ed-serif);
  font-size: 16px;
  font-weight: 700;
}

.ip-label {
  margin: 0;
  color: var(--ed-rust);
  font-family: var(--ed-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ip-value {
  margin: 0;
  color: var(--ed-ink);
  font-family: var(--ed-mono);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  word-break: break-all;
}

.ip-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid var(--ed-rule);
  border-radius: 3px;
  color: var(--ed-muted);
  font-family: var(--ed-mono);
  font-size: 11px;
  font-weight: 400;
  vertical-align: 3px;
}

.ip-place {
  margin: 0;
  color: var(--ed-ink);
  font-size: 15px;
  line-height: 1.7;
}

.ip-line {
  margin: 0;
  color: var(--ed-ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.ip-copy {
  justify-self: start;
  min-height: 32px;
  margin-top: 4px;
  padding: 0 12px;
  color: var(--ed-ink-soft);
  border: 1px solid var(--ed-rule-strong);
  border-radius: 3px;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.ip-copy:hover {
  color: var(--ed-rust);
  border-color: var(--ed-rust);
}

.ip-form {
  margin-top: 10px;
}

.ip-examples {
  margin: 10px 0 0;
  color: var(--ed-muted);
  font-size: 12px;
}

.ip-examples a {
  margin-left: 6px;
  color: var(--ed-ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--ed-rule);
}

.ip-examples a:hover {
  color: var(--ed-rust);
  border-color: var(--ed-rust);
}

.ip-result {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--ed-rule);
}

.ip-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
}

.ip-fields div {
  display: grid;
  gap: 2px;
}

.ip-fields dt {
  color: var(--ed-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.ip-fields dd {
  margin: 0;
  color: var(--ed-ink);
  font-size: 14px;
  word-break: break-word;
}

.ip-state {
  display: grid;
  gap: 3px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--ed-rule);
  border-left: 3px solid var(--ed-rule-strong);
  border-radius: 4px;
  background: rgba(127, 108, 78, 0.04);
}

/* Inside the "your IP" card the state reuses the card surface, so it drops the
   second border and the tint. */
.ip-state--plain {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.ip-state-label {
  margin: 0;
  color: var(--ed-muted);
  font-family: var(--ed-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ip-state-title {
  margin: 0;
  color: var(--ed-ink);
  font-family: var(--ed-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.ip-state-desc {
  margin: 0;
  color: var(--ed-ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.ip-state--warn {
  border-left-color: #b7791f;
}

.ip-state--warn .ip-state-label {
  color: #b7791f;
}

.ip-state--error {
  border-left-color: var(--ed-rust);
}

.ip-state--error .ip-state-label {
  color: var(--ed-rust);
}

.ip-state--info {
  border-left-color: var(--ed-accent);
}

.ip-state--info .ip-state-label {
  color: var(--ed-accent);
}

:root[data-theme="dark"] .ip-state--warn {
  border-left-color: #d9a441;
}

:root[data-theme="dark"] .ip-state--warn .ip-state-label {
  color: #d9a441;
}

.ip-notes {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--ed-rule);
}

.ip-notes h2,
.ip-related h2 {
  margin: 0 0 10px;
  color: var(--ed-ink);
  font-family: var(--ed-serif);
  font-size: 16px;
  font-weight: 700;
}

.ip-notes ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ed-ink-soft);
  font-size: 13px;
  line-height: 1.9;
}

.ip-notes a {
  color: var(--ed-rust);
}

.ip-related {
  margin-top: 30px;
}

.ip-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
}

.ip-links a {
  color: var(--ed-ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--ed-rule);
}

.ip-links a:hover {
  color: var(--ed-rust);
  border-color: var(--ed-rust);
}

@media (max-width: 760px) {
  .ip-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ip-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
