/* WHOIS uses the shared interior heading and a compact search row. */
.public-whois-body { overflow-wrap: anywhere; }
.public-whois-body form { margin-block: 0 2rem; }
.public-whois-search { max-width: 34rem; }
.public-whois-search > label { display: block; margin-bottom: .5rem; }
.public-whois-search-controls { display: flex; gap: .75rem; align-items: stretch; }
.public-whois-domain-control { position: relative; flex: 1; min-width: 0; max-width: 24rem; }
.public-whois-body label { font-weight: 700; }
.public-whois-body input[type="text"] { min-width: 0; width: 100%; padding: .35rem .65rem; line-height: 1.4; border: 1px solid #777; border-radius: 0; background: #fff; color: #222; }
.public-whois-body button[type="submit"] { padding: .35rem 1rem; line-height: 1.4; border: 1px solid #444; background: #444; color: #fff; font-weight: 400; flex: none; margin: 0; white-space: nowrap; }
.public-whois-body button[type="submit"]:hover { border-color: #333; background: #333; }
.public-whois-body :is(input, button, .public-whois-result):focus-visible { outline: 3px solid #222; outline-offset: 3px; }
.public-whois-verification { display: grid; grid-template-columns: minmax(0, 24rem); gap: 1rem; align-items: center; margin-top: 1.5rem; }
.public-whois-verification img { max-width: 100%; height: auto; }
.public-whois-submit { margin-top: 1rem; }
.public-whois-cap { margin-top: 1.5rem; }
.public-whois-cap p { margin: .5rem 0 0; }
.public-whois-cap p:empty { display: none; }
.public-whois-verification p { grid-column: 1 / -1; margin: 0; }
.public-whois-verification input { text-transform: uppercase; }
.public-whois-result { overflow-x: auto; margin-block: 1.5rem; padding: 1.5rem; border: 1px solid #ccc; border-top: 4px solid #ce0e2d; background: #fafafa; }
.public-whois-result pre { margin: 0; font-size: .95rem; color: #222; }
.public-whois-body > br, .public-whois-body > .public-errors > br { display: none; }
.public-whois-body > pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
.public-whois-body .public-notice { margin-block: 1rem; padding: 1rem; border-left: 3px solid #777; background: #f7f7f7; }
.public-whois-body .error { color: #a20b24; font-weight: 700; }
@media (max-width: 48rem) {
    .public-whois-result { padding: 1rem; }
    .public-whois-verification { grid-template-columns: minmax(0, 1fr); }
}
@media print {
    .public-whois-body { max-width: none; padding: 0; }
    .public-whois-body form { display: none; }
    .public-whois-result { overflow: visible; padding: 0; border: 0; background: #fff; }
    .public-whois-result pre { white-space: pre-wrap; overflow-wrap: anywhere; overflow: visible; }
}
