* { box-sizing: border-box; }

:root {
  --bg: #e9e6dc;
  --paper: #f8f4e8;
  --ink: #202124;
  --muted: #5f6368;
  --line: #32384a;
  --nav: #15172a;
  --brand: #d8c7a1;
  --accent: #284a7e;
  --card: #fffaf0;
  --shadow: rgba(12, 18, 32, 0.12);
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a { color: #1f4f91; text-decoration: none; }

.topbar {
  background: var(--nav);
  color: white;
  border-bottom: 4px solid #ffffff;
  padding: 0 4%;
  min-height: 78px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  padding-bottom: 10px;
  line-height: 0;
  text-decoration: none;
}

.brand img {
  width: 320px;
  max-width: min(320px, 82vw);
  height: auto;
  display: block;
}

.navlinks {
  display: flex;
  gap: 3px;
  align-items: end;
  flex-wrap: wrap;
}

.navlinks a {
  color: #f5f0e6;
  padding: 13px 18px;
  border-left: 1px solid rgba(255,255,255,0.18);
  font-size: 15px;
  background: rgba(255,255,255,0.03);
}

.navlinks a:hover { background: rgba(255,255,255,0.14); }

.page-shell {
  width: min(1450px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px minmax(0, 980px) 180px;
  gap: 20px;
  padding: 28px 18px 44px;
}

.ad-column { min-height: 600px; }
.sticky-ad { position: sticky; top: 22px; }

.ad-box {
  height: 600px;
  border: 2px dashed #9a927f;
  background: #f2eadb;
  color: #756d5d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  border-radius: 4px;
}

.ad-box span { font-size: 12px; margin-top: 6px; }

.content-panel {
  background: var(--paper);
  border: 1px solid #cfc6b2;
  box-shadow: 0 8px 25px var(--shadow);
  min-height: 720px;
  padding: 34px 40px 46px;
}

.page-title {
  text-align: center;
  border-bottom: 4px double var(--line);
  padding-bottom: 22px;
  margin-bottom: 28px;
}

.small-title { text-align: left; }

.eyebrow {
  margin: 0 0 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent);
  font-weight: 700;
}

h1, h2, h3 { color: #2d2d2d; line-height: 1.15; }
h1 { font-size: 36px; margin: 0 0 14px; font-weight: 500; }
h2 { font-size: 28px; margin: 0 0 12px; font-weight: 500; }
h3 { font-size: 20px; margin: 0 0 12px; }

.lead, .hint, .section-heading p { color: var(--muted); font-family: Arial, Helvetica, sans-serif; }
.lead { font-size: 17px; max-width: 780px; margin: 0 auto; }
.small-title .lead { margin: 0; }

.search-module {
  max-width: 760px;
  margin: 0 auto 26px;
  background: #eee5d2;
  border: 1px solid #c5b89d;
  padding: 18px;
  border-radius: 4px;
}

.search-module label {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-bottom: 8px;
}

.search-row { display: flex; gap: 10px; }

input, textarea {
  width: 100%;
  border: 1px solid #9f947e;
  background: #fffdf7;
  color: var(--ink);
  padding: 13px 14px;
  font-size: 16px;
  outline: none;
  font-family: Arial, Helvetica, sans-serif;
}

textarea { min-height: 180px; resize: vertical; }

button {
  border: 1px solid #1b3760;
  background: #263a5c;
  color: white;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
}

button:hover { background: #1b2d4b; }

.result-area { margin-top: 24px; }
.active-result { border-top: 1px solid #cfc6b2; padding-top: 24px; }

.default-home { margin-top: 28px; }
.section-heading {
  border-bottom: 1px solid #bfb49e;
  margin: 28px 0 16px;
  padding-bottom: 8px;
}

.country-list {
  display: grid;
  gap: 10px;
}
.compact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.country-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: #fffaf0;
  color: var(--ink);
  border: 1px solid #cfc6b2;
  padding: 13px 14px;
}

.country-row:hover { background: #f2eadb; }
.country-main { display: flex; flex-direction: column; gap: 2px; }
.country-main strong { font-size: 17px; }
.country-main small, .mini-score { color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: 12px; }

.risk-pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 2px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.risk-high { background: #7f1d1d; color: #fff0f0; }
.risk-medium { background: #8a5a13; color: #fff6d5; }
.risk-low { background: #126044; color: #e9fff5; }

.country-profile {
  background: #fffdf7;
  border: 1px solid #cfc6b2;
  padding: 24px;
}

.profile-header {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 24px;
  border-bottom: 3px solid #32384a;
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.score-card {
  border: 1px solid #b4a98f;
  background: #eee5d2;
  text-align: center;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.score-number { font-size: 52px; line-height: 1; color: var(--accent); font-weight: 700; }
.score-label { color: var(--muted); font-family: Arial, Helvetica, sans-serif; margin-bottom: 8px; }

.organized-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.result-section {
  border: 1px solid #d4c9b4;
  background: #fbf5e8;
  padding: 18px;
}
.full-width { grid-column: 1 / -1; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, Helvetica, sans-serif;
  background: #fffdf7;
}

.data-table th, .data-table td {
  border: 1px solid #cfc6b2;
  padding: 10px;
  vertical-align: top;
  font-size: 14px;
}

.data-table th { background: #eee5d2; text-align: left; }

.clean-list { margin: 0; padding-left: 20px; font-family: Arial, Helvetica, sans-serif; }
.clean-list li { margin: 7px 0; }

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  font-family: Arial, Helvetica, sans-serif;
}

.check-item {
  background: #fffdf7;
  border: 1px solid #d4c9b4;
  padding: 11px;
}

.info-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 26px;
}

.info-strip > div, .notice-card, .form-card {
  background: #eee5d2;
  border: 1px solid #c5b89d;
  padding: 18px;
}

.form-card { display: grid; gap: 14px; }
.stacked-form input { margin-bottom: 0; }
.success-card { border-color: #2f7a50; }

.footer {
  text-align: center;
  color: #5f6368;
  font-family: Arial, Helvetica, sans-serif;
  padding: 24px;
  border-top: 1px solid #cfc6b2;
}

@media (max-width: 1180px) {
  .page-shell { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
  .ad-column { display: none; }
}

@media (max-width: 760px) {
  .topbar { align-items: center; padding: 14px; }
  .brand { padding-bottom: 8px; }
  .brand img { width: 260px; }
  .navlinks a { padding: 9px 8px; font-size: 13px; }
  .content-panel { padding: 24px 18px; }
  h1 { font-size: 28px; }
  .search-row, .profile-header, .organized-results, .checklist, .info-strip, .compact-list { grid-template-columns: 1fr; display: grid; }
  .country-row { grid-template-columns: 1fr; }
}


.disclaimer-banner {
  background: #fff8dd;
  border: 1px solid #d4b85f;
  padding: 14px 16px;
  margin: 0 0 22px;
  font-family: Arial, Helvetica, sans-serif;
  color: #3f3519;
}

.profile-note {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #6b6251;
  background: #f4eddd;
  border-left: 4px solid #b19a64;
  padding: 10px 12px;
  margin-top: 12px;
}

.legal-content {
  background: #fffdf7;
  border: 1px solid #cfc6b2;
  padding: 24px;
  font-family: Arial, Helvetica, sans-serif;
}

.legal-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  margin-top: 24px;
}

.legal-content h2:first-child { margin-top: 0; }
.compact-legal { margin-top: 22px; }
.footer-links { margin-top: 6px; }

@media (max-width: 1180px) {
  .navlinks { justify-content: center; }
}


.official-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.official-link-card {
  display: block;
  background: #fffdf7;
  border: 1px solid #cfc6b2;
  padding: 16px;
  color: var(--ink);
}

.official-link-card strong { display: block; color: #1f4f91; margin-bottom: 6px; }
.official-link-card span { display: block; color: var(--muted); font-size: 14px; }

.legal-warning {
  background: #fff8dd;
  border: 1px solid #d4b85f;
  padding: 14px 16px;
  margin: 18px 0;
}

@media (max-width: 760px) {
  .official-link-grid { grid-template-columns: 1fr; }
}


/* SEO/legal-safe final adjustments */
.ad-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  text-align: center;
  color: #756d5d;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.country-row { text-decoration: none; }
.profile-tag {
  display: inline-block;
  border: 1px solid #b4a98f;
  background: #eee5d2;
  color: #263a5c;
  padding: 5px 9px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.no-score-header { grid-template-columns: 1fr 190px; }
.status-card {
  border: 1px solid #b4a98f;
  background: #eee5d2;
  text-align: center;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-family: Arial, Helvetica, sans-serif;
  color: #263a5c;
  font-weight: 700;
}
.status-card small { color: var(--muted); font-weight: 400; }
.contact-placeholder {
  background: #eee5d2;
  border: 1px solid #c5b89d;
  padding: 12px;
  font-family: Arial, Helvetica, sans-serif;
}
@media (max-width: 760px) {
  .no-score-header { grid-template-columns: 1fr; }
  .profile-tag { justify-self: start; }
}

/* Mobile usability update - clean header/navigation on phones */
@media (max-width: 760px) {
  html, body { max-width: 100%; overflow-x: hidden; }

  .topbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 12px 16px;
    min-height: auto;
  }

  .brand {
    width: 100%;
    justify-content: center;
    padding-bottom: 0;
  }

  .brand img {
    width: min(285px, 86vw);
    max-width: 86vw;
  }

  .navlinks {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    align-items: stretch;
    justify-content: center;
  }

  .navlinks a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 6px;
    font-size: 14px;
    line-height: 1.15;
    text-align: center;
    border-left: 0;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.045);
  }

  .page-shell {
    padding: 14px 10px 30px;
  }

  .content-panel {
    padding: 22px 16px 28px;
    min-height: auto;
  }

  .page-title {
    padding-bottom: 18px;
    margin-bottom: 20px;
  }

  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .lead { font-size: 16px; }

  .country-profile,
  .legal-content,
  .result-section,
  .notice-card,
  .form-card {
    padding: 16px;
  }

  .footer {
    padding: 22px 14px;
  }
}

@media (max-width: 420px) {
  .navlinks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navlinks a { font-size: 13px; min-height: 40px; }
}
