/* The IP address page: one large, plain answer, with the technical detail folded away. */
.ip-main { max-width: 720px; margin-inline: auto; display: grid; gap: 20px; padding-top: 24px; align-content: start; }
.ip-card { text-align: center; padding: clamp(24px, 6vw, 48px) clamp(16px, 5vw, 40px); }
.ip-label { font-size: clamp(20px, 4vw, 26px); font-weight: 500; margin: 0 0 16px; letter-spacing: -.01em; }
.ip-value {
  font-size: clamp(26px, 7vw, 46px); line-height: 1.2; margin: 0 0 24px;
  overflow-wrap: anywhere; user-select: all; color: var(--ink);
}
.ip-value.waiting { color: var(--ink-3); font-size: clamp(18px, 4vw, 22px); }
.ip-actions { display: flex; justify-content: center; }
.ip-copy { min-width: 160px; justify-content: center; font-size: 16px; }
.ip-copy[aria-disabled="true"] { opacity: .5; cursor: default; }
.ip-help { margin: 16px 0 0; color: var(--ink-3); font-size: 14px; }
.ip-tech { padding: 0; }
.ip-tech > summary { cursor: pointer; padding: 16px 20px; color: var(--ink-2); font-size: 14px; }
.ip-tech > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ip-tech-body { padding: 0 20px 20px; display: grid; gap: 12px; font-size: 14px; color: var(--ink-2); }
.ip-tech-body h2 { font-size: 15px; margin: 8px 0 0; color: var(--ink); }
.ip-tech-body ol, .ip-tech-body ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.ip-tech-body p { margin: 0; }
.ip-again { margin: 10px 0 0; color: var(--ink-3); font-size: 14px; }
.link-button {
  font: inherit; color: var(--ink-2); background: none; border: 0; padding: 0;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-button:hover { color: var(--ink); }
.link-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

/* The advanced page: the address card sits in the work column */
.tool-work .ip-card { margin-bottom: 20px; }
.requester { margin: 0 0 16px; }
.theme-switch { margin: 12px 0 0; font-size: 14px; }
.theme-switch a { color: var(--ink-2); }

/* Light theme (?theme=light), for anyone who finds a white page more familiar */
html.light {
  color-scheme: light;
  --bg: #f5f6f8;
  --ink: #0d1016;
  --ink-2: rgb(13 16 22 / .78);
  --ink-3: rgb(13 16 22 / .7);
  --line: rgb(13 16 22 / .12);
  --line-2: rgb(13 16 22 / .2);
  --glass: rgb(255 255 255 / .7);
  --glass-hi: rgb(13 16 22 / .05);
  --panel: rgb(255 255 255 / .85);
  --panel-2: rgb(13 16 22 / .04);
  --panel-3: rgb(13 16 22 / .07);
  --field: #fff;
  --field-focus: #fff;
  --pass: #0b7a43;
  --warn: #8a5a00;
  --fail: #b42318;
  --info: #2d4fb3;
}
html.light .tool-bg { background: var(--bg); }
html.light .tool .grid { opacity: .25; }
html.light .brand-mark rect { fill: #fff; }
.link-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
html.light .btn-primary { color: #fff; box-shadow: none; }
html.light .btn-primary:hover { box-shadow: 0 6px 20px -8px rgb(13 16 22 / .45); }
/* The address label is a heading in a panel on the advanced page: keep it the same as on /ip */
.panel > h2.ip-label {
  font-family: inherit; font-size: clamp(20px, 4vw, 26px); font-weight: 500; letter-spacing: -.01em;
  text-transform: none; color: var(--ink); margin: 0 0 16px;
}
.requester p { margin: 0; }
html.light .log li { background: var(--panel); }
.requester .who { font-weight: 600; color: var(--ink); }
