/* =====================================================
   IPScope — shared stylesheet  (all 14 pages)
   ===================================================== */
/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}
/* ── Design tokens ──────────────────────────────────── */ :root {
  --bg: #fff;
  --bg2: #f7f7f5;
  --bg3: #f0efeb;
  --text: #1a1a1a;
  --text2: #6b6b6b;
  --text3: #767670;
  --border: rgba(0, 0, 0, 0.11);
  --border2: rgba(0, 0, 0, 0.20);
  --blue: #185FA5;
  --blue-light: #E6F1FB;
  --blue-mid: #378ADD;
  --blue-dark: #0C447C;
  --green-bg: #EAF3DE;
  --green-text: #27500A;
  --amber-bg: #FAEEDA;
  --amber-text: #633806;
  --danger-bg: #FCEBEB;
  --danger-text: #791F1F;
  --gray-bg: #F1EFE8;
  --gray-text: #444441;
  --r: 8px;
  --rl: 12px;
}
/* ── Dark mode ──────────────────────────────────────── */
@media(prefers-color-scheme:dark) {
  :root {
    --bg: #1c1c1c;
    --bg2: #252525;
    --bg3: #2a2a2a;
    --text: #f0f0ee;
    --text2: #999990;
    --text3: #666660;
    --border: rgba(255, 255, 255, 0.09);
    --border2: rgba(255, 255, 255, 0.17);
    --blue: #378ADD;
    --blue-light: #042C53;
    --blue-mid: #85B7EB;
    --blue-dark: #B5D4F4;
    --green-bg: #173404;
    --green-text: #C0DD97;
    --amber-bg: #412402;
    --amber-text: #FAC775;
    --danger-bg: #501313;
    --danger-text: #F7C1C1;
    --gray-bg: #2C2C2A;
    --gray-text: #D3D1C7;
  }
}
/* ── Base ───────────────────────────────────────────── */
html {
  scroll-behavior: smooth
}
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg2);
  color: var(--text);
  min-height: 100vh;

}
/* ── Layout ─────────────────────────────────────────── */
/* tool pages use padding inside wrap; index.html adds it via inline style */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.3rem 3rem
}
/* ── Navigation ─────────────────────────────────────── */
.sitenav {
  background: var(--blue); /* was --blue-mid — too light for white text, failed WCAG contrast */
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  overflow: visible;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--bg);
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 16px;
}
.nav-logo-icon {
  width: 28px;
  height: 28px;
  background: var(--blue);
  border-radius: 6px;
  color: #fff;
  font-size: 20px;
  text-align: center;
  line-height: 24px;
}
#logo {
  font-family: 'DM Sans', sans-serif;
}
.nav-menu {
  display: flex;
  gap: 2px;
  align-items: center
}
.nav-dd {
  position: relative
}
.nav-dd-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: color .12s, background .12s;
}
.nav-dd-btn:hover, .nav-dd-btn.open {
  color: var(--blue);
  background: var(--blue-light)
}
.nav-dd-btn::after {
  content: '▾';
  font-size: 10px;
  opacity: .6
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--rl);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  min-width: 200px;
  padding: 6px;
  z-index: 9999
}
.nav-dropdown.open {
  display: block
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  transition: color .1s, background .1s
}
.nav-dropdown a:hover {
  color: var(--blue);
  background: var(--blue-light)
}
.nav-dropdown a.active {
  color: var(--blue);
  font-weight: 600;
  background: var(--blue-light)
}
.nav-hamburger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0.5px solid var(--border2);
  border-radius: 6px;
  padding: 5px 9px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text)
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
  padding: 12px 1.25rem;
  gap: 8px;
  max-height: 70vh;
  overflow-y: auto
}
.nav-mobile.open {
  display: flex
}
.nav-mobile .nm-group {
  margin-bottom: 4px
}
.nav-mobile .nm-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
  padding: 4px 0 6px
}
.nav-mobile a {
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  display: block
}
.nav-mobile a:hover, .nav-mobile a.active {
  color: var(--blue);
  background: var(--blue-light)
}
@media(max-width:700px) {
  .nav-menu {
    display: none
  }
  .nav-hamburger {
    display: block
  }
}
/* ── Tool page header ───────────────────────────────── */
.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 10px
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none
}
.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0
}
.logo-tag {
  font-size: 11px;
  color: var(--text3);
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  font-family: 'IBM Plex Mono', monospace
}
.tool-header {
  margin-bottom: 1.75rem
}
.tool-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px
}
.tool-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  max-width: 960px
}
/* ── Input / search cards ───────────────────────────── */
.scard, .input-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--rl);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05)
}
.srow, .irow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}
.sinput {
  flex: 1;
  min-width: 200px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--r);
  border: 0.5px solid var(--border2);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.sinput::placeholder {
  color: var(--text3)
}
.sinput:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(55, 138, 221, 0.14)
}
textarea.sinput {
  height: auto;
  min-height: 100px;
  padding: 10px 14px;
  resize: vertical;
  line-height: 1.5
}
.sselect {
  height: 46px;
  padding: 0 12px;
  border-radius: var(--r);
  border: 0.5px solid var(--border2);
  background: var(--bg2);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  box-sizing: border-box
}
/* ── Buttons ────────────────────────────────────────── */
.btn-p {
  height: 46px;
  padding: 0 22px;
  border-radius: var(--r);
  border: none;
  background: var(--blue);
  color: #E6F1FB;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  transition: background .15s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  vertical-align: middle;
  line-height: 1;
  text-decoration: none
}
.btn-p:hover {
  background: var(--blue-dark)
}
.btn-p:active {
  transform: scale(.98)
}
.btn-p:disabled {
  opacity: .4;
  cursor: not-allowed
}
.btn-g {
  height: 46px;
  padding: 0 16px;
  border-radius: var(--r);
  border: 0.5px solid var(--border2);
  background: var(--bg2);
  color: var(--text2);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  transition: color .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  vertical-align: middle;
  line-height: 1;
  text-decoration: none
}
.btn-g:hover {
  color: var(--text);
  background: var(--bg3)
}
.btn-s {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r);
  border: 0.5px solid var(--border2);
  background: var(--bg2);
  color: var(--text2);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: color .15s
}
.btn-s:hover {
  color: var(--text)
}
.cpybtn, .copy-btn {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--r);
  border: 0.5px solid var(--border2);
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  transition: color .1s
}
.cpybtn {
  margin-left: 6px
}
.cpybtn:hover, .copy-btn:hover {
  color: var(--text)
}
/* ── History chips ──────────────────────────────────── */
.hist {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 0.5px solid var(--border)
}
.chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 0.5px solid var(--border2);
  color: var(--text2);
  cursor: pointer;
  background: var(--bg2);
  transition: color .1s, border-color .1s
}
.chip:hover {
  border-color: var(--blue-mid);
  color: var(--blue)
}
/* ── State / loading / error ────────────────────────── */
.state {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--rl);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text3);
  font-size: 14px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05)
}
.spin {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--border);
  border-top-color: var(--blue-mid);
  border-radius: 50%;
  animation: sp .7s linear infinite
}
@keyframes sp {
  to {
    transform: rotate(360deg)
  }
}
.errbox {
  background: var(--danger-bg);
  border: 0.5px solid rgba(162, 45, 45, .3);
  border-radius: var(--r);
  padding: 14px 18px;
  color: var(--danger-text);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6
}
/* ── Results visibility ─────────────────────────────── */
.res {
  display: none
}
.res.on {
  display: block
}
/* #results is always in the document flow — skeleton fills it until real data
   arrives. Changing from display:none eliminates the ~1000px layout shift. */
#results {
  display: block;
}
/* .on kept as a no-op so existing classList.add('on') calls remain harmless */
#results.on {
  display: block
}
.rcard {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--rl);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
  display: none
}
.rcard.on {
  display: block
}
.rch {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}
/* ── Hero result (index.html) ───────────────────────── */
.hero {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--rl);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04)
}
.flag-c {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  border: 0.5px solid var(--border)
}
.hip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.3px
}
.hloc {
  font-size: 13px;
  color: var(--text2);
  margin-top: 4px
}
.srctag {
  font-size: 11px;
  color: var(--text3);
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 5px
}
/* ── Badges ─────────────────────────────────────────── */
.bdgs {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap
}
.bdg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px
}
.bdg-safe {
  background: var(--green-bg);
  color: var(--green-text)
}
.bdg-warn {
  background: var(--amber-bg);
  color: var(--amber-text)
}
.bdg-danger {
  background: var(--danger-bg);
  color: var(--danger-text)
}
.bdg-info {
  background: var(--blue-light);
  color: var(--blue-dark)
}
.bdg-gray {
  background: var(--gray-bg);
  color: var(--gray-text)
}
/* ── Tags (inline pill labels) ──────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap
}
.tag-safe {
  background: var(--green-bg);
  color: var(--green-text)
}
.tag-warn {
  background: var(--amber-bg);
  color: var(--amber-text)
}
.tag-danger {
  background: var(--danger-bg);
  color: var(--danger-text)
}
.tag-info {
  background: var(--blue-light);
  color: var(--blue-dark)
}
.tag-gray {
  background: var(--gray-bg);
  color: var(--gray-text)
}
/* ── Map ────────────────────────────────────────────── */
.mapw {
  border-radius: var(--rl);
  border: 0.5px solid var(--border);
  overflow: hidden;
  margin-bottom: 1rem;
  height: 300px;
  background: var(--bg2);
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  display: block;
}
#lmap {
  width: 100%;
  height: 100%;
  display: none
}
.mapph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 13px;
  gap: 8px
}
/* ── Info grid ──────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 1rem
}
@media(max-width:620px) {
  .grid {
    grid-template-columns: 1fr
  }
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}
@media(max-width:600px) {
  .two-col {
    grid-template-columns: 1fr
  }
}
/* ── Cards ──────────────────────────────────────────── */
.card, .bcard {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--rl);
  padding: 15px 17px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04)
}
.bcard {
  margin-bottom: 1rem
}
.ch {
  font-size: 18px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 11px;
  border-bottom: 1px solid #ccc;
  line-height: 40px;
}
/* ── Key / value rows ───────────────────────────────── */
.rw {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 0.5px solid var(--border)
}
.rw:last-child {
  border-bottom: none
}
.rk {
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px
}
.rico {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    display: none;
}
.rv {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text);
  text-align: right;
  word-break: break-all;
  line-height: 1.5
}
/* ── DNS / mail record items ────────────────────────── */
.rec {
  background: var(--bg2);
  border-radius: var(--r);
  padding: 10px 14px;
  border: 0.5px solid var(--border);
  margin-bottom: 8px
}
.rec:last-child {
  margin-bottom: 0
}
.rec-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue);
  margin-bottom: 4px
}
.rec-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text);
  word-break: break-all;
  line-height: 1.6
}
.rec-ttl {
  font-size: 11px;
  color: var(--text3);
  margin-left: 8px
}
/* ── Browser info grid (index.html) ─────────────────── */
.bgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 11px
}
@media(max-width:700px) {
  .bgrid {
    grid-template-columns: repeat(2, 1fr)
  }
}
@media(max-width:400px) {
  .bgrid {
    grid-template-columns: 1fr
  }
}
.bitem {
  background: var(--bg2);
  border-radius: var(--r);
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px
}
.bico {
  font-size: 20px;
  flex-shrink: 0
}
.blbl {
  font-size: 11px;
  color: var(--text2)
}
.bval {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-top: 2px
}
/* ── DNS Health score ring ──────────────────────────── */
.score-ring {
  text-align: center;
  padding: 1.5rem 0;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 16px
}
.score-num {
  font-size: 52px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  line-height: 1
}
.score-lbl {
  font-size: 13px;
  color: var(--text2);
  margin-top: 6px
}
/* ── Password generator ─────────────────────────────── */
.pw-output {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg2);
  border: 0.5px solid var(--border2);
  border-radius: var(--r);
  padding: 14px 16px;
  word-break: break-all;
  line-height: 1.6;
  min-height: 52px
}
.strength-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--bg3);
  margin: 10px 0 4px;
  overflow: hidden
}
.strength-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .3s, background .3s
}
.range-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px
}
.range-row label {
  font-size: 13px;
  color: var(--text2);
  white-space: nowrap
}
.range-row input[type=range] {
  flex: 1;
  accent-color: var(--blue)
}
.range-row span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  min-width: 30px
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px
}
.check-row input[type=checkbox] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--blue)
}
.check-row label {
  cursor: pointer;
  color: var(--text2)
}
/* ── Utilities ──────────────────────────────────────── */
.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  word-break: break-all
}
.pass {
  color: var(--green-text)
}
.fail {
  color: var(--danger-text)
}
.warn-c {
  color: var(--amber-text)
}
/* ── Site footer ────────────────────────────────────── */
.sitefooter {
  background: var(--bg);
  border-top: 0.5px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 1rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-col-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 35px;
  border-bottom: double 1px #d8d8d8;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  padding: 2px 15px;
  transition: color .1s;
  line-height: 30px;
}
.footer-col a:hover {
  color: var(--blue);
  background: #f5f5f5;
}
.footer-bottom {
  border-top: 0.5px solid var(--border);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px
}
@media(max-width:980px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text)
}
.footer-copy {
  font-size: 12px;
  color: var(--text);
}
/* ── Legacy inline footer (index.html) ──────────────── */
.footer {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 12px;
  color: var(--text3)
}
.footer a {
  color: var(--text2);
  text-decoration: none
}
.footer a:hover {
  color: var(--text)
}
/* ── Mobile overrides ───────────────────────────────── */
@media(max-width:580px) {
  .srow {
    flex-wrap: wrap
  }
  .sinput {
    width: 100%
  }
  .hip {
    font-size: 17px
  }
  .btn-p, .btn-g {
    flex: 1
  }
}
/* ── Content / Article blocks ───────────────────────── */
.content-section {
  margin-top: 2.5rem
}
.content-section h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px
}
.content-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 1.2rem 0 6px
}
.content-section p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
  margin: 0 0 10px
}
.content-section ul, .content-section ol {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  padding-left: 1.4rem;
  margin: 0 0 10px
}
.content-section li {
  margin-bottom: 4px
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(525px, 1fr));
  gap: 12px;
  margin: 12px 0 16px
}
.content-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px
}
.content-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 5px
}
.content-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
  margin: 0
}
.faq-item {
  border-bottom: 0.5px solid var(--border);
  padding: 14px 0
}
.faq-item:last-child {
  border-bottom: none
}
.faq-item h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px
}
.faq-item p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin: 0
}
.related-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px
}
.related-tools a {
  font-size: 13px;
  color: var(--blue);
  background: var(--blue-light);
  border: 0.5px solid var(--border);
  border-radius: var(--r);
  padding: 5px 13px;
  text-decoration: none;
  transition: background .15s
}
.related-tools a:hover {
  background: var(--blue-mid);
  color: #fff
}
/* ── Cookie Consent Banner ──────────────────────────── */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border2);
  box-shadow: 0 -4px 32px rgba(0, 0, 0, .14);
  z-index: 999999;
  padding: 1rem 1.5rem;
  box-sizing: border-box;
}
.cookie-banner[style*="display: block"], .cookie-banner[style*="display:block"] {
  display: block !important;
}
.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 220px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
}
.cookie-text strong {
  font-size: 14px;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}
.cookie-text a {
  color: var(--blue);
  text-decoration: none;
}
.cookie-text a:hover {
  text-decoration: underline;
}
.cookie-btns {
  display: -webkit-inline-flex;
  display: inline-flex;
  gap: 8px;
  flex-shrink: 0;
  -webkit-box-align: center;
  align-items: center;
}
/* ── Footer legal row ───────────────────────────────── */
.footer-legal {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  padding: 2px 6px;
  transition: color .1s;
}
.footer-legal a:hover {
  color: var(--blue);
}
.footer-legal span {
  font-size: 11px;
  color: var(--border2);
}
/* ── Policy pages ───────────────────────────────────── */
.policy-wrap {
  max-width: 1100px;
}
.policy-wrap h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}
.policy-meta {
  font-size: 12px;
  color: var(--text3);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 0.5px solid var(--border);
}
.policy-wrap h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 1.75rem 0 .5rem;
}
.policy-wrap p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: .85rem;
}
.policy-wrap ul {
  padding-left: 1.3rem;
  margin-bottom: .85rem;
}
.policy-wrap li {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 3px;
}
.policy-wrap a {
  color: var(--blue);
  text-decoration: none;
}
.policy-wrap a:hover {
  text-decoration: underline;
}
.policy-breadcrumb {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 1.25rem;
}
.policy-breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}
.policy-breadcrumb a:hover {
  text-decoration: underline;
}
.policy-footer-links {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 0.5px solid var(--border);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}
.policy-footer-links a {
  color: var(--blue);
  text-decoration: none;
}
.policy-footer-links a:hover {
  text-decoration: underline;
}
/* ── Nav Contact link ───────────────────────────────── */
.nav-contact-link {
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  transition: background .12s, border-color .12s;
  flex-shrink: 0;
  line-height: 1;
  vertical-align: middle;
}
.nav-contact-link::before {
  content: '✉';
  font-size: 12px;
}
.nav-contact-link:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .6);
}
@media(max-width:700px) {
  .nav-contact-link {
    display: none;
  }
}
/* ── Contact form page ──────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media(max-width:600px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: .02em;
}
.form-group .sinput, .form-group .sselect {
  width: 100%;
}
.form-group textarea.sinput {
  min-height: 130px;
  resize: vertical;
  line-height: 1.55;
}
.contact-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--rl);
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}
.contact-info-card {
  background: var(--blue-light);
  border: 0.5px solid rgba(55, 138, 221, .2);
  border-radius: var(--rl);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.contact-info-card .ci-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 0.5px solid rgba(55, 138, 221, .15);
  font-size: 13px;
  color: var(--blue-dark);
}
.contact-info-card .ci-row:last-child {
  border-bottom: none;
}
.contact-info-card .ci-ico {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.contact-info-card .ci-label {
  font-weight: 600;
  font-size: 11px;
  color: var(--blue-mid);
  margin-bottom: 1px;
}
.form-status {
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 13px;
  display: none;
  gap: 10px;
  margin-top: 12px;
  line-height: 1.5;
}
.form-status.success {
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: flex-start;
  align-items: flex-start;
  background: var(--green-bg);
  color: var(--green-text);
}
.form-status.error {
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: flex-start;
  align-items: flex-start;
  background: var(--danger-bg);
  color: var(--danger-text);
}
/* ── Footer stability — prevents CLS (merged from footer-fix.css) ─────────── */
.sitefooter {
  min-height: 90px;
}
.footer-inner {
  min-height: 58px;
}
.footer-bottom {
  min-height: 48px;
  align-items: center;
}
.footer-legal {
  min-height: 24px;
  flex-wrap: wrap;
  gap: 4px 0;
}

/* ── Cookie consent banner — pre-loaded to prevent CLS ─────────────────────
   These rules mirror what cookie-consent.js injects at runtime.
   By including them here they are already present at first paint,
   so the banner appearance causes zero layout shift.             */
#ck-banner{display:none;position:fixed;bottom:0;left:0;right:0;z-index:2147483647;
  background:#fff;border-top:1px solid rgba(0,0,0,.12);
  box-shadow:0 -4px 28px rgba(0,0,0,.09);padding:14px 24px;}
@media(prefers-color-scheme:dark){#ck-banner{background:#1c1c1c;border-top-color:rgba(255,255,255,.11);}}
#ck-bar{max-width:1100px;margin:0 auto;display:flex;align-items:center;gap:14px 20px;flex-wrap:wrap;}
#ck-bar-text{flex:1;min-width:200px;font-size:13px;line-height:1.65;color:#555;}
#ck-bar-btns{display:flex;gap:8px;flex-wrap:wrap;align-items:center;flex-shrink:0;}
.ck-btn{height:38px;padding:0 16px;font-size:13px;font-weight:500;border-radius:8px;
  cursor:pointer;white-space:nowrap;border:1.5px solid transparent;
  display:inline-flex;align-items:center;justify-content:center;}
#ck-btn-accept,#ck-btn-accept-modal{color:#fff;background:#185FA5;border-color:#185FA5;font-weight:600;}
#ck-btn-reject,#ck-btn-reject-modal{color:#fff;background:#3d3d3d;border-color:#3d3d3d;font-weight:600;}
#ck-btn-reject:hover,#ck-btn-reject-modal:hover{background:#2a2a2a;border-color:#2a2a2a;}
#ck-btn-manage,#ck-btn-save{color:#185FA5;background:transparent;border-color:#185FA5;}
#ck-modal{display:none;position:fixed;inset:0;z-index:2147483647;align-items:center;justify-content:center;padding:16px;}
#ck-modal.ck-open{display:flex;}
#ck-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45);}
#ck-modal-box{position:relative;background:var(--bg);border-radius:14px;
  box-shadow:0 24px 64px rgba(0,0,0,.22);width:100%;max-width:680px;
  max-height:90vh;display:flex;flex-direction:column;overflow:hidden;}
@media(max-width:600px){
  #ck-banner{padding:12px 14px;}
  #ck-bar-btns{width:100%;}
  .ck-btn{flex:1;min-width:0;font-size:12.5px;padding:0 10px;}
  #ck-modal{padding:0;align-items:flex-end;}
  #ck-modal-box{max-height:92vh;border-radius:14px 14px 0 0;}}

/* ── Cookie modal internal layout ─────────────────────────────────────────
   cookie-consent.js generates these elements but does not inject their CSS.
   All rules here style the modal interior without touching JS behaviour.  */

/* Header row: title + close button */
#ck-modal-head{padding:20px 24px 16px;border-bottom:1px solid var(--border);
  display:flex;align-items:center;gap:12px;flex-shrink:0;}
#ck-modal-head h2{flex:1;font-size:20px;font-weight:700;margin:0;
  color:var(--text);font-family:'DM Sans',sans-serif;letter-spacing:-.01em;}

/* Close button */
#ck-modal-close{width:36px;height:36px;border-radius:7px;
  border:1.5px solid var(--border2);background:transparent;cursor:pointer;
  font-size:15px;color:var(--text2);display:flex;align-items:center;
  justify-content:center;flex-shrink:0;transition:background .12s,color .12s;
  line-height:1;font-family:inherit;}
#ck-modal-close:hover{background:var(--bg3);color:var(--text);}
#ck-modal-close:focus-visible{outline:2.5px solid var(--blue);outline-offset:2px;}

/* Scrollable body */
#ck-modal-body{padding:0 24px;overflow-y:auto;flex:1;}

/* Category blocks */
.ck-category{padding:18px 0;border-bottom:1px solid var(--border);}
.ck-category:last-child{border-bottom:none;}

/* Category header row: title/description alongside badge or toggle */
.ck-cat-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:12px;}
.ck-cat-info{flex:1;min-width:0;}
.ck-cat-info strong{display:block;font-size:15px;font-weight:700;
  color:var(--text);margin-bottom:5px;font-family:'DM Sans',sans-serif;}
.ck-cat-info p{font-size:13px;color:var(--text2);line-height:1.6;margin:0;
  font-family:'DM Sans',sans-serif;}

/* "Always Active" badge */
.ck-always-active{flex-shrink:0;font-size:11.5px;font-weight:700;
  color:var(--blue);background:var(--blue-light);
  padding:3px 10px;border-radius:6px;margin-top:2px;
  font-family:'DM Sans',sans-serif;white-space:nowrap;letter-spacing:.01em;}

/* iOS-style toggle */
.ck-toggle{position:relative;width:44px;height:24px;flex-shrink:0;
  display:inline-block;margin-top:2px;}
.ck-toggle input{opacity:0;width:0;height:0;position:absolute;}
.ck-toggle-slider{position:absolute;inset:0;background:#ccc;
  border-radius:24px;cursor:pointer;transition:background .2s;}
.ck-toggle-slider::before{content:'';position:absolute;width:18px;height:18px;
  left:3px;bottom:3px;background:#fff;border-radius:50%;
  transition:transform .2s;box-shadow:0 1px 4px rgba(0,0,0,.22);}
.ck-toggle input:checked+.ck-toggle-slider{background:var(--blue);}
.ck-toggle input:checked+.ck-toggle-slider::before{transform:translateX(20px);}
.ck-toggle:focus-within .ck-toggle-slider{outline:2.5px solid var(--blue);outline-offset:2px;}
@media(prefers-color-scheme:dark){
  .ck-toggle-slider{background:#444;}
  .ck-toggle input:checked+.ck-toggle-slider{background:var(--blue);}
}

/* Detail table: two-column label/value layout */
.ck-cat-detail{margin-top:4px;}
.ck-cat-detail table{width:100%;border-collapse:collapse;
  font-size:12.5px;font-family:'DM Sans',sans-serif;}
.ck-cat-detail td{padding:5px 6px 5px 0;
  border-bottom:0.5px solid var(--border);
  vertical-align:top;color:var(--text2);line-height:1.55;}
.ck-cat-detail tr:last-child td{border-bottom:none;}
.ck-cat-detail td:first-child{font-weight:600;color:var(--text);
  width:110px;min-width:90px;white-space:nowrap;padding-right:14px;}

/* Legal note */
#ck-legal{padding:12px 24px 14px;font-size:12px;color:var(--text3);
  line-height:1.65;font-family:'DM Sans',sans-serif;flex-shrink:0;
  border-top:1px solid var(--border);}
#ck-legal a{color:var(--blue);text-decoration:none;}
#ck-legal a:hover{text-decoration:underline;}

/* Footer: action buttons */
#ck-modal-foot{padding:14px 24px;border-top:1px solid var(--border);
  display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0;}

/* Mobile: stack buttons, reduce padding, single-column table labels */
@media(max-width:600px){
  #ck-modal-head{padding:16px 16px 14px;}
  #ck-modal-body{padding:0 14px;}
  #ck-legal{padding:10px 14px 12px;}
  #ck-modal-foot{padding:12px 14px;flex-direction:column;}
  #ck-modal-foot .ck-btn{width:100%;justify-content:center;}
  .ck-cat-detail td:first-child{width:80px;min-width:70px;}
  .ck-cat-detail td{font-size:12px;}
}

/* ── Cookie banner body padding — prevents footer CLS when banner appears ────
   The ck-banner-visible class is set on <html> synchronously by an inline
   script in <head>, BEFORE first paint, so this padding is already correct
   on the very first frame — no post-load class toggle, no layout shift.    */
html.ck-banner-visible body {
  padding-bottom: 72px; /* matches cookie banner height on desktop */
}
@media(max-width:600px) {
  html.ck-banner-visible body {
    padding-bottom: 120px; /* banner is taller on mobile (buttons stack) */
  }
}
/* ── Skeleton loader — Phase 1 CLS fix ─────────────────────────────────────
   All skeleton elements live in the HTML from first paint.
   They occupy the same dimensions as the real content they replace,
   so when renderResult() populates real data, nothing shifts.           */

/* Shimmer animation — single @keyframes reused by every skeleton element */
@keyframes skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Base shimmer bar — apply to any skeleton placeholder */
.skel-bar {
  background: linear-gradient(
    90deg,
    var(--bg3) 25%,
    var(--bg2) 50%,
    var(--bg3) 75%
  );
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skel-shimmer 1.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .skel-bar { animation: none; background: var(--bg3); }
}

/* Hero flag circle — shimmer background while is-loading */
#results.is-loading .flag-c {
  background: linear-gradient(
    90deg,
    var(--bg3) 25%,
    var(--bg2) 50%,
    var(--bg3) 75%
  );
  background-size: 200% 100%;
  animation: skel-shimmer 1.5s ease-in-out infinite;
  color: transparent;   /* hide the 🌐 emoji without affecting box dimensions */
  font-size: 0;         /* belt-and-braces: emoji contributes zero height */
}
@media (prefers-reduced-motion: reduce) {
  #results.is-loading .flag-c {
    animation: none;
    background: var(--bg3);
  }
}

/* Skeleton row — mirrors .rw layout and height (padding:7px 0, min-height ~36px) */
.skel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 0.5px solid var(--border);
  min-height: 36px;   /* matches real .rw height to prevent shift on content swap */
}
.skel-row:last-child {
  border-bottom: none;
}
