/* Base layout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #ffffff;
  color: #000000;
}

a {
  color: #3300cc;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

.site-header {
  text-align: center;
  margin-bottom: 16px;
}

.site-logo {
  max-width: 100%;
  height: auto;
}

/* Header GIF: 577×126. Hotspots replace <map>/<area> for correct taps on iOS when scaled. */
.site-logo-map {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  vertical-align: top;
}

.site-logo-map__img {
  display: block;
  width: 100%;
  max-width: 577px;
  height: auto;
  margin: 0 auto;
}

.site-logo-map__hit {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(51, 0, 204, 0.15);
  user-select: none;
  -webkit-user-select: none;
}

.site-logo-map__hit:focus-visible {
  outline: 2px solid #3300cc;
  outline-offset: 2px;
}

/* Original pixel rects from main_03.gif image map */
.site-logo-map__hit--left {
  left: calc(136 / 577 * 100%);
  top: calc(72 / 126 * 100%);
  width: calc((223 - 136) / 577 * 100%);
  height: calc((94 - 72) / 126 * 100%);
}

.site-logo-map__hit--right {
  left: calc(373 / 577 * 100%);
  top: calc(71 / 126 * 100%);
  width: calc((418 - 373) / 577 * 100%);
  height: calc((94 - 71) / 126 * 100%);
}

/* Optional third zone (privacy.og.html legacy map) */
.site-logo-map__hit--mid {
  left: calc(223 / 577 * 100%);
  top: calc(71 / 126 * 100%);
  width: calc((370 - 223) / 577 * 100%);
  height: calc((94 - 71) / 126 * 100%);
}

.site-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ip-section {
  text-align: center;
}

.ip-section-heading {
  margin-bottom: 8px;
}

.ip-banner {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.ip-section-content {
  padding: 12px 8px;
}

.ip-main-heading {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: #000;
}

.ip-context {
  margin: 0 auto 12px;
  max-width: 34rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #333;
  text-align: center;
}

.ip-address {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: #0000ff;
  word-break: break-all;
}

.ip-actions {
  margin: 0;
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.copy-ip-button {
  font: inherit;
  font-size: 0.875rem;
  padding: 8px 14px;
  cursor: pointer;
  border: 1px solid #3300cc;
  border-radius: 6px;
  background: #f5f5ff;
  color: #3300cc;
}

.copy-ip-button:hover,
.copy-ip-button:focus {
  background: #eaeaff;
}

.copy-ip-button:focus-visible {
  outline: 2px solid #3300cc;
  outline-offset: 2px;
}

.favorite-hint {
  font-size: 0.8125rem;
  color: #444;
}

.copy-status {
  margin: 8px 0 0;
  min-height: 1.25em;
  font-size: 0.8125rem;
  color: #333;
}

.ip-info {
  margin: 16px auto 0;
  max-width: 90%;
}

/* Same width column as .ip-info (index2 connection details panel) */
.ip-panel {
  margin: 16px auto 0;
  max-width: 90%;
}

.info-box {
  border: 1px solid #ccc;
  padding: 15px;
  background-color: #f9f9f9;
  font-size: 0.875rem;
  text-align: center;
}

.info-box-heading {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: bold;
}

.info-box-text {
  margin: 0;
  line-height: 1.5;
  color: #000;
}

.info-box--details {
  background-color: #fff;
  text-align: left;
}

.ad-placeholder {
  display: none;
}

.ad:has(> .ad-inner.ad-placeholder) {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 0;
}

.ad {
  margin: 16px auto;
  text-align: center;
}

.ad-inner {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
}

/* Bordered content blocks under main */
.ip-details,
.content-page {
  padding: 16px 12px;
  border-top: 1px solid #e0e0e0;
}

.ip-details.ip-details--panel {
  padding: 0;
  border-top: none;
}

.details-banner {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 1rem;
  text-align: left;
}

.details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.details-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
}

.details-icon img {
  width: 20px;
  height: 20px;
}

.details-label {
  font-weight: bold;
  margin-right: 4px;
}

.details-value {
  word-break: break-all;
}

.link-to-us {
  align-self: center;
  text-align: center;
  padding: 16px 0;
}

.link-to-us .section-title {
  text-align: center;
}

.link-to-us-content img {
  max-width: 100%;
  height: auto;
}

.site-footer {
  text-align: center;
  padding: 16px 0 8px;
  font-size: 0.75rem;
}

.footer-text {
  margin: 0;
}

/* Static pages (e.g. privacy.html) */
.content-body h2 {
  margin: 1.25em 0 0.5em;
  font-size: 1rem;
}

.content-body h2:first-child {
  margin-top: 0;
}

.content-body p {
  margin: 0 0 1em;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.nav-back {
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
}

/* learn.html (legacy table layout) */
.learn-page-h1 {
  font: bold 1rem/1.35 Verdana, Arial, Helvetica, sans-serif;
  margin: 0 0 12px;
  color: #000;
}

.learn-h2 {
  font: bold 0.875rem/1.35 Verdana, Arial, Helvetica, sans-serif;
  margin: 1em 0 0.35em;
  color: #000;
}

@media (min-width: 768px) {
  .page {
    padding: 24px;
  }

  .ip-details,
  .content-page {
    padding: 20px 16px;
  }

  .ip-details.ip-details--panel {
    padding: 0;
  }
}

