:root {
  color-scheme: light;
  --navy: #132d45;
  --blue: #0872ce;
  --teal: #13b8bd;
  --ink: #24384b;
  --muted: #607487;
  --line: #dce7ef;
  --paper: #fff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  background: linear-gradient(180deg, #f4f9fc 0%, #eaf3f8 100%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
a { color: var(--blue); }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.page { max-width: 1160px; margin: 0 auto; padding: 24px 28px 50px; text-align: left; }
.brandbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 44px;
}
.brandbar img { display: block; width: auto; max-width: 205px; height: 46px; object-fit: contain; object-position: left center; }
.brand-note { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .05em; }
.hero { padding: 22px 0 32px; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { margin: 0 0 16px; color: var(--navy); font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -.045em; }
.hero h1 span { color: var(--blue); }
.hero p { max-width: 680px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.search { margin: 14px 0 36px; }
.search iframe { width: 458px; max-width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }

.section { margin: 18px 0 22px; padding: 25px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 26px rgba(22, 55, 83, .055); }
.section h2 { margin: 0 0 17px; color: var(--navy); font-size: clamp(22px, 3vw, 29px); letter-spacing: -.025em; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; table-layout: auto; }
td { padding: 10px 12px; vertical-align: top; border-bottom: 1px solid #edf2f6; white-space: normal; }
tr:last-child td { border-bottom: 0; }
td:first-child { width: 31%; min-width: 190px; color: var(--muted); font-weight: 600; white-space: normal; }
td:nth-child(2) { min-width: 0; color: var(--navy); overflow-wrap: anywhere; white-space: normal; }
.ip-value { color: var(--blue) !important; font-size: 18px; font-weight: 800; }
.loading { opacity: .65; }
.hint { margin-top: 15px; padding: 12px 14px; border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0; background: #f2fbfb; color: var(--muted); font-size: 13px; line-height: 1.55; }
.browser { margin-top: 22px; }
.browser h3 { margin: 0 0 10px; color: var(--navy); font-size: 16px; }
.browser table { font-size: 13px; }
.browser td:first-child { width: 150px; min-width: 130px; }
.browser td:nth-child(2) { overflow-wrap: anywhere; }

.site-footer { background: var(--navy); color: #d8e5ef; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }
.footer-brand { color: #fff; font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { color: #fff; font-weight: 650; text-decoration: none; }
.footer-links a:hover { color: #72e0dc; text-decoration: underline; }

@media (max-width: 700px) {
  .page { padding: 18px 16px 34px; }
  .brandbar { margin-bottom: 26px; padding-bottom: 17px; }
  .brandbar img { max-width: 170px; height: 40px; }
  .brand-note { font-size: 11px; text-align: right; }
  .hero { padding-top: 8px; }
  .hero h1 { margin-bottom: 14px; }
  .hero p { font-size: 16px; }
  .search { margin-bottom: 26px; }
  .section { margin: 15px 0; padding: 20px 16px; border-radius: 13px; }
  td { padding: 9px 7px; }
  td:first-child { width: 39%; min-width: 135px; font-size: 13px; }
  .ip-value { font-size: 16px; }
  .footer-inner { padding: 22px 18px; align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 12px 20px; }
}

/* Rust portal palette: midnight navy, electric blue, and cyan. */
:root {
  color-scheme: dark;
  --navy: #071a29;
  --blue: #1685e8;
  --teal: #00c8d2;
  --ink: #e4edf5;
  --muted: #9aafbf;
  --line: #1b3c51;
  --paper: #0d2435;
}
body {
  background-color: #04121e;
  background-image: linear-gradient(rgba(4, 16, 27, .42), rgba(4, 16, 27, .64)), url("g3-networx-background.png");
  background-position: right top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: var(--ink);
}
.page { max-width: 1140px; min-height: calc(100vh - 98px); padding-top: 25px; }
.brandbar { border-color: #17364b; margin-bottom: 54px; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brandbar img { width: 40px; height: 40px; max-width: 40px; object-fit: contain; }
.brand-name { display: grid; gap: 2px; color: #f5f9fc; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand-name small { color: #a6bacb; font-size: 9px; letter-spacing: .2em; }
.brand-note { color: #a6bacb; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.brand-note a { color: #89bdf0; text-decoration: none; }
.brand-note a:hover { color: var(--teal); }
.hero { max-width: 810px; margin: 0 auto; padding: 0 0 24px; text-align: center; }
.eyebrow { color: #36cdd6; }
.hero h1 { color: #f5f8fb; font-weight: 800; letter-spacing: -.055em; }
.hero h1 span { color: #238de9; }
.hero p { max-width: 700px; margin: 0 auto; color: #a8bac8; }
.search { display: flex; justify-content: center; margin: 12px auto 30px; }
.search iframe { border-color: #2a4b60; background: #f9fbfd; }
.section { border-color: #1c4055; background: linear-gradient(145deg, rgba(16, 43, 62, .98), rgba(10, 31, 47, .98)); border-radius: 15px; box-shadow: 0 14px 38px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .025); }
.section h2 { color: #f2f7fb; }
td { border-color: #1a394d; }
td:first-child { color: #9bb0c0; }
td:nth-child(2) { color: #e0ebf3; }
.ip-value { color: #4aa8ff !important; }
.hint { border-left-color: #06bccb; background: rgba(6, 188, 203, .075); color: #abc0ce; }
.site-footer { border-top: 1px solid #15344a; background: rgba(4, 16, 27, .78); }
.footer-inner { color: #8fa6b8; }
.footer-links a { color: #c4d4e0; }
.footer-links a:hover { color: #36cdd6; }

@media (max-width: 700px) {
  .page { min-height: calc(100vh - 145px); padding-top: 18px; }
  .brandbar { margin-bottom: 38px; }
  .brand-name { font-size: 17px; }
  .brandbar img { width: 36px; height: 36px; }
  .hero { padding-bottom: 18px; }
  .section { padding: 19px 14px; }
}

/* Center the address summaries and keep IPv4/IPv6 in one desktop row. */
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-content: start;
  column-gap: 20px;
  row-gap: 0;
}
.brandbar, .hero, .search, .browser { grid-column: 1 / -1; }
.brandbar { margin-bottom: 38px; }
.hero { padding-bottom: 14px; }
.hero p { line-height: 1.45; }
.search { margin: 8px auto 18px; }
.section:not(.browser) { min-width: 0; margin: 0 0 16px; padding: 18px 18px; }
.section:not(.browser) h2 { margin-bottom: 10px; text-align: center; font-size: 21px; }
.section:not(.browser) table { table-layout: fixed; font-size: 13px; }
.section:not(.browser) td { padding: 7px 5px; text-align: center; overflow-wrap: anywhere; }
.section:not(.browser) td:first-child { width: 35%; min-width: 0; }
.section:not(.browser) td:nth-child(2) { width: 65%; }
.section:not(.browser) .ip-value { font-size: 16px; }
.hint { margin-top: 10px; padding: 9px 10px; font-size: 12px; }
.browser { margin: 0; padding: 15px 18px; }
.browser h3 { text-align: center; }
.browser td { padding: 7px 8px; }

@media (max-width: 760px) {
  .page { grid-template-columns: minmax(0, 1fr); column-gap: 0; row-gap: 0; }
  .brandbar, .hero, .search, .browser { grid-column: 1; }
  .brandbar { margin-bottom: 28px; }
  .hero { padding-bottom: 10px; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .section:not(.browser) { margin-bottom: 12px; padding: 15px 12px; }
  .section:not(.browser) h2 { font-size: 19px; }
  .section:not(.browser) table { font-size: 12px; }
  .section:not(.browser) td { padding: 6px 3px; }
  .section:not(.browser) td:first-child { width: 36%; }
  .section:not(.browser) td:nth-child(2) { width: 64%; }
  .hint { font-size: 11px; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  padding: 32px 40px;
  border: 1px solid #17415d;
  border-radius: 17px;
  background: linear-gradient(100deg, rgba(11, 34, 51, .72) 0%, rgba(11, 34, 51, .46) 50%, rgba(8, 28, 43, .2) 100%);
  text-align: left;
}
.hero::after {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  background: url("g3-rust-portal-art.png") no-repeat right 48% / auto 450%;
  content: "";
  opacity: .95;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 31%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 31%);
  pointer-events: none;
}
.hero::after { display: none; }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { margin-bottom: 10px; }
.hero h1 { max-width: 570px; text-align: left; }
.hero p { max-width: 560px; margin: 0; text-align: left; }
.search {
  display: flex;
  width: min(100%, 500px);
  margin: 15px auto 20px;
  overflow: hidden;
  border: 1px solid #2a4b60;
  border-radius: 9px;
  background: #091d2c;
}
.search input {
  min-width: 0;
  flex: 1;
  padding: 11px 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #edf5fb;
  font: inherit;
}
.search input::placeholder { color: #879eaf; }
.search:focus-within { border-color: #1685e8; box-shadow: 0 0 0 3px rgba(22, 133, 232, .15); }
.search button {
  padding: 0 17px;
  border: 0;
  background: #0873d1;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.search button:hover { background: #1685e8; }

@media (max-width: 760px) {
  body { background-attachment: scroll; }
  .hero { min-height: 218px; padding: 25px 20px; text-align: center; }
  .hero::after { width: 62%; opacity: .42; background-size: auto 450%; }
  .hero h1, .hero p { max-width: none; text-align: center; }
  .hero h1 { font-size: clamp(34px, 8vw, 46px); }
  .hero p { font-size: 14px; }
  .search { margin: 12px auto 14px; }
  .search input { padding: 10px 12px; font-size: 14px; }
  .search button { padding: 0 13px; }
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 10px 15px;
  border: 1px solid #0873d1;
  border-radius: 7px;
  background: #0873d1;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.hero-cta:hover { border-color: #1591f2; background: #1591f2; }
@media (max-width: 760px) { .hero-cta { margin-top: 12px; } }
.browser { min-width: 0; overflow: hidden; }
.browser table { width: 100%; min-width: 0; table-layout: fixed; }
.browser td { white-space: normal; text-align: center; }
.browser td:first-child { width: 120px; min-width: 0; white-space: normal; }
.browser td:nth-child(2) { width: auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.browser h3 { color: #e7f2fa; }

/* Compact hero: keep the brand present while giving the IP results priority. */
.hero {
  max-width: 760px;
  min-height: 0;
  padding: 22px 28px 20px;
  border-radius: 15px;
}
.hero .eyebrow { margin-bottom: 7px; font-size: 10px; letter-spacing: .13em; }
.hero h1 { max-width: 500px; margin-bottom: 9px; font-size: clamp(34px, 4.1vw, 46px); line-height: 1.02; }
.hero p { max-width: 590px; font-size: 15px; line-height: 1.4; }
.hero-cta { margin-top: 10px; padding: 8px 12px; font-size: 12px; }
@media (max-width: 760px) {
  .hero { min-height: 0; padding: 20px 17px; }
  .hero .eyebrow { margin-bottom: 6px; }
  .hero h1 { margin-bottom: 8px; font-size: clamp(30px, 7vw, 39px); }
  .hero p { font-size: 13px; line-height: 1.45; }
  .hero-cta { margin-top: 9px; padding: 8px 11px; }
}

/* Keep the two-part headline on a single line at every viewport width. */
.hero h1 { white-space: nowrap; font-size: clamp(18px, 4.8vw, 46px); }
@media (max-width: 760px) {
  .hero h1 { white-space: nowrap; font-size: clamp(16px, 5.3vw, 28px); }
}

/* Official Ookla speed test entry point, styled as part of the diagnostics page. */
.speedtest {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 16px;
  padding: 17px 22px;
  border-color: #17415d;
  background: rgba(9, 29, 44, .91);
  text-align: left;
}
.speedtest h2 { margin: 0 0 5px; color: #e7f2fa; font-size: 18px; }
.speedtest p { margin: 0; color: #a8bac8; font-size: 13px; }
.speedtest-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid #0873d1;
  border-radius: 7px;
  background: #0873d1;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.speedtest-button:hover { border-color: #1591f2; background: #1591f2; }
@media (max-width: 760px) {
  .speedtest { flex-direction: column; align-items: stretch; gap: 12px; padding: 15px; }
  .speedtest-button { justify-content: center; }
}

/* Viewport-first layout: keep the full diagnostics overview compact on desktop. */
@media (min-width: 761px) {
  .page {
    width: min(100%, 1240px);
    min-height: 0;
    padding: 12px 24px 14px;
    row-gap: 0;
  }
  .brandbar {
    margin-bottom: 15px;
    padding-bottom: 10px;
  }
  .brandbar img { width: 34px; height: 34px; }
  .brand-name { font-size: 17px; }
  .brand-name small { font-size: 8px; }
  .brand-note { font-size: 10px; }
  .hero { padding: 8px 24px 10px; }
  .hero .eyebrow { margin-bottom: 4px; font-size: 9px; }
  .hero h1 { margin-bottom: 5px; font-size: clamp(22px, 3.1vw, 34px); }
  .hero p { font-size: 13px; line-height: 1.3; }
  .hero-cta { margin-top: 6px; padding: 6px 10px; font-size: 11px; }
  .search { margin: 7px auto 11px; }
  .search input { padding: 8px 12px; font-size: 13px; }
  .search button { font-size: 12px; }
  .section:not(.browser) { margin-bottom: 9px; padding: 10px 14px; }
  .section:not(.browser) h2 { margin-bottom: 5px; font-size: 17px; }
  .section:not(.browser) table { font-size: 12px; }
  .section:not(.browser) td { padding: 3px 5px; line-height: 1.15; }
  .section:not(.browser) .ip-value { font-size: 14px; }
  .hint { margin-top: 6px; padding: 5px 8px; font-size: 10px; line-height: 1.3; }
  .speedtest { margin-bottom: 9px; padding: 9px 14px; }
  .speedtest h2 { margin-bottom: 2px; font-size: 15px; }
  .speedtest p { font-size: 11px; }
  .speedtest-button { padding: 7px 11px; font-size: 11px; }
  .browser { padding: 8px 12px; }
  .browser h3 { margin-bottom: 3px; font-size: 12px; }
  .browser table { font-size: 10px; }
  .browser td { padding: 3px 5px; }
  .footer-inner { padding-top: 12px; padding-bottom: 12px; }
}

/* Small laptop screens get denser spacing; mobile stays naturally scrollable. */
@media (min-width: 761px) and (max-height: 820px) {
  .page { padding-top: 8px; padding-bottom: 8px; }
  .brandbar { margin-bottom: 9px; padding-bottom: 7px; }
  .hero { padding-top: 4px; padding-bottom: 6px; }
  .search { margin-top: 4px; margin-bottom: 7px; }
  .section:not(.browser) { margin-bottom: 6px; padding-top: 7px; padding-bottom: 7px; }
  .section:not(.browser) td { padding-top: 2px; padding-bottom: 2px; }
  .speedtest { margin-bottom: 6px; padding-top: 6px; padding-bottom: 6px; }
  .browser { padding-top: 5px; padding-bottom: 5px; }
  .footer-inner { padding-top: 8px; padding-bottom: 8px; }
}

@media (max-width: 760px) {
  .page { min-height: 0; }
  .brandbar { margin-bottom: 20px; }
  .hero h1 { white-space: normal; font-size: clamp(26px, 7vw, 38px); }
  .section:not(.browser) td { overflow-wrap: anywhere; }
  .speedtest { margin-bottom: 12px; }
  .footer-inner { padding: 16px 18px; }
}

/* Keep desktop text comfortable while fitting more diagnostics into each card. */
@media (min-width: 761px) {
  .page {
    width: min(100%, 1320px);
    min-height: 0;
    padding: 14px 28px 12px;
    column-gap: 18px;
  }
  .brandbar { margin-bottom: 16px; padding-bottom: 10px; }
  .brandbar img { width: 40px; height: 40px; }
  .brand-name { font-size: 19px; }
  .brand-name small { font-size: 9px; }
  .brand-note { font-size: 11px; }
  .hero { max-width: 980px; padding: 17px 24px; }
  .hero .eyebrow { margin-bottom: 5px; font-size: 10px; }
  .hero h1 { max-width: none; margin-bottom: 7px; font-size: clamp(30px, 3.4vw, 42px); }
  .hero p { max-width: 760px; font-size: 15px; line-height: 1.4; }
  .hero-cta { margin-top: 9px; padding: 8px 12px; font-size: 12px; }
  .search { width: min(100%, 580px); margin: 10px auto 13px; }
  .search input { padding: 9px 13px; font-size: 14px; }
  .search button { font-size: 13px; }

  .section:not(.browser) { margin-bottom: 10px; padding: 13px 16px; }
  .section:not(.browser) h2 { margin-bottom: 8px; font-size: 19px; }
  .section:not(.browser) table { display: block; width: 100%; font-size: 13px; }
  .section:not(.browser) tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 16px;
  }
  .section:not(.browser) tr {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: center;
    min-width: 0;
  }
  .section:not(.browser) tr:first-child {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: center;
    gap: 10px;
    margin-bottom: 2px;
    padding-bottom: 6px;
    border-bottom: 1px solid #1a394d;
  }
  .section:not(.browser) td {
    min-width: 0;
    padding: 4px 0;
    border: 0;
    text-align: left;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .section:not(.browser) td:first-child { width: auto; font-size: 11px; }
  .section:not(.browser) td:nth-child(2) { width: auto; font-size: 13px; }
  .section:not(.browser) tr:first-child td:first-child { color: #36cdd6; font-size: 12px; }
  .section:not(.browser) tr:first-child td:nth-child(2) { text-align: left; }
  .section:not(.browser) .ip-value { font-size: 20px; }
  .hint { margin-top: 7px; padding: 7px 9px; font-size: 11px; line-height: 1.35; }

  .speedtest { margin-bottom: 9px; padding: 12px 16px; }
  .speedtest h2 { margin-bottom: 3px; font-size: 17px; }
  .speedtest p { font-size: 13px; }
  .speedtest-button { padding: 8px 12px; font-size: 12px; }
  .browser { margin: 0 0 8px; padding: 8px 12px; }
  .browser h3 { margin-bottom: 3px; font-size: 13px; }
  .browser table { font-size: 11px; }
  .browser td { padding: 3px 5px; }
  .footer-inner { padding-top: 10px; padding-bottom: 10px; }
}

@media (max-width: 760px) {
  .section:not(.browser) table { display: table; }
  .section:not(.browser) tbody { display: table-row-group; }
  .section:not(.browser) tr { display: table-row; }
  .section:not(.browser) tr:first-child { display: table-row; }
}

@media (min-width: 761px) {
  .section:not(.browser) h2 { font-size: 20px; }
  .section:not(.browser) table { font-size: 14px; }
  .section:not(.browser) td:first-child { font-size: 12px; }
  .section:not(.browser) td:nth-child(2) { font-size: 14px; }
  .section:not(.browser) .ip-value { font-size: 22px; }
  .browser {
    margin: 0 0 8px;
    padding: 0;
    overflow: hidden;
  }
  .browser summary {
    padding: 8px 12px;
    color: #c4d4e0;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
  }
  .browser[open] { padding: 0 12px 8px; }
}

/* Use the extra width on large monitors without stretching text into long lines. */
@media (min-width: 761px) {
  .page { width: min(100%, 1480px); max-width: 1480px; }
  .footer-inner { max-width: 1480px; }
  .hero { max-width: 1180px; }
  .hero h1 { font-size: clamp(34px, 3vw, 50px); }
  .hero p { max-width: 860px; font-size: clamp(15px, 1vw, 17px); }
  .search { width: min(100%, 680px); }
  .section:not(.browser) { padding: clamp(13px, 1.1vw, 19px) clamp(16px, 1.4vw, 22px); }
  .section:not(.browser) h2 { font-size: clamp(20px, 1.45vw, 24px); }
  .section:not(.browser) table,
  .section:not(.browser) td:nth-child(2) { font-size: clamp(14px, .95vw, 15px); }
  .section:not(.browser) td:first-child { font-size: clamp(12px, .85vw, 14px); }
  .section:not(.browser) .ip-value { font-size: clamp(22px, 1.7vw, 27px); }
}

/* Fill tall viewports cleanly and scale the centered content on wide displays. */
html, body { min-height: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page {
  flex: 1 0 auto;
  width: min(100%, 1800px);
  max-width: 1800px;
}
.site-footer { width: 100%; margin-top: auto; }
.footer-inner { max-width: 1800px; padding-right: clamp(24px, 3vw, 54px); padding-left: clamp(24px, 3vw, 54px); }
@media (min-width: 761px) {
  .hero { max-width: 1320px; }
}

/* Keep the previously approved IP presentation: centered label/value rows. */
@media (min-width: 761px) {
  .section:not(.browser) table { display: table; table-layout: fixed; }
  .section:not(.browser) tbody { display: table-row-group; }
  .section:not(.browser) tr,
  .section:not(.browser) tr:first-child { display: table-row; }
  .section:not(.browser) td {
    display: table-cell;
    width: auto;
    padding: 5px 8px;
    border-bottom: 1px solid #1a394d;
    text-align: center;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .section:not(.browser) td:first-child { width: 35%; min-width: 0; font-size: 12px; }
  .section:not(.browser) td:nth-child(2) { width: 65%; font-size: 14px; }
  .section:not(.browser) tr:first-child td:first-child { color: #9bb0c0; font-size: 12px; }
  .section:not(.browser) tr:first-child td:nth-child(2) { text-align: center; }
  .section:not(.browser) tr:last-child td { border-bottom: 0; }
}

/* Scale up on large monitors and keep browser diagnostics visible. */
.page { width: min(100%, 2100px); max-width: 2100px; }
.footer-inner { max-width: 2100px; }
@media (min-width: 761px) {
  .hero { max-width: 1550px; }
  .hero h1 { font-size: clamp(36px, 3.3vw, 56px); }
  .hero p { font-size: clamp(16px, 1.05vw, 18px); }
  .section:not(.browser) h2 { font-size: clamp(21px, 1.6vw, 26px); }
  .section:not(.browser) table,
  .section:not(.browser) td:nth-child(2) { font-size: clamp(14px, 1vw, 16px); }
  .section:not(.browser) td:first-child { font-size: clamp(12px, .9vw, 14px); }
  .section:not(.browser) .ip-value { font-size: clamp(24px, 1.9vw, 30px); }
  .speedtest h2 { font-size: clamp(18px, 1.2vw, 21px); }
  .speedtest p { font-size: clamp(13px, .9vw, 15px); }
  .browser { margin: 0 0 8px; padding: 8px 12px; }
  .browser h3 { margin: 0 0 3px; color: #e7f2fa; font-size: 13px; }
  .browser table { font-size: 12px; }
  .browser td { padding: 4px 6px; }
}

/* Use available window height without shrinking the typography. */
@media (min-width: 761px) and (max-height: 930px) {
  .page { padding-top: 8px; padding-bottom: 6px; }
  .brandbar { margin-bottom: 12px; padding-bottom: 8px; }
  .hero { padding-top: 13px; padding-bottom: 13px; }
  .search { margin-top: 8px; margin-bottom: 10px; }
  .section:not(.browser) { margin-bottom: 7px; padding-top: 11px; padding-bottom: 11px; }
  .speedtest { margin-bottom: 6px; padding-top: 10px; padding-bottom: 10px; }
  .browser { margin-bottom: 4px; padding-top: 5px; padding-bottom: 5px; }
  .browser table td { padding-top: 3px; padding-bottom: 3px; }
  .footer-inner { padding-top: 8px; padding-bottom: 8px; }
}


/* Stable page width and isolated address cards. */
.page { width: min(calc(100% - 32px), 1120px); max-width: 1120px; }
.footer-inner { max-width: 1120px; }
.address-card {
  min-width: 0; margin: 0 0 10px; padding: 14px 18px;
  border: 1px solid #1c4055; border-radius: 15px;
  background: linear-gradient(145deg, rgba(16,43,62,.98), rgba(10,31,47,.98));
  box-shadow: 0 14px 38px rgba(0,0,0,.22);
}
.address-card h2 { margin: 0 0 10px; color: #f2f7fb; font-size: 20px; text-align: center; letter-spacing: -.025em; }
.address-card .address-line { display: grid; grid-template-columns: 36% minmax(0,1fr); gap: 0; align-items: center; min-height: 44px; padding: 4px 0 10px; border-bottom: 1px solid #1a394d; }
.address-label { text-align: center; color: #9bb0c0; font-size: 13px; font-weight: 600; }
.address-fit { display: block; min-width: 0; padding: 0 8px; text-align: center; }
.address-value { display: inline-block; white-space: nowrap; color: #8bc7ff; font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.025em; }
.address-card .address-details { width: 100%; }
.address-card table { display: table; width: 100%; table-layout: fixed; border-collapse: collapse; }
.address-card tbody { display: table-row-group; }
.address-card tr { display: table-row; }
.address-card td { display: table-cell; padding: 6px 8px; line-height: 1.3; border-bottom: 1px solid #1a394d; vertical-align: middle; text-align: center; }
.address-card td:first-child { width: 36%; min-width: 0; color: #9bb0c0; font-size: 12px; white-space: normal; word-break: normal; overflow-wrap: normal; }
.address-card td:nth-child(2) { width: 64%; min-width: 0; color: #e0ebf3; font-size: 14px; white-space: normal; word-break: normal; overflow-wrap: anywhere; }
.address-card tr:last-child td { border-bottom: 0; }
.address-card .hint { margin-top: 8px; font-size: 11px; line-height: 1.35; }
@media (max-width:760px) {
  .page { width: 100%; padding-left: 16px; padding-right: 16px; }
  .address-card { padding: 14px 12px; }
  .address-card h2 { font-size: 18px; }
  .address-card td { padding: 6px 4px; }
  .address-card td:nth-child(2) { font-size: 13px; }
}
@media (min-width:761px) and (max-height:930px) {
  .address-card { padding-top: 10px; padding-bottom: 10px; margin-bottom: 7px; }
  .address-card td { padding-top: 4px; padding-bottom: 4px; }
}
