:root{
  --bg:#ffffff;
  --ink:#0b1b3a;
  --ink-2:#162d5c;
  --red:#c1121f;
  --red-2:#9b0f19;
  --line:#e6e8ef;
  --muted:#5d6b86;
  --focus:#c1121f;
  --shadow: 0 12px 28px rgba(11,27,58,0.10);
  --shadow-2: 0 6px 16px rgba(11,27,58,0.08);
  --radius: 14px;
  --radius-2: 10px;
  --max: 1100px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font: 16px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}

.maincontainer{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding: 0 20px;
  margin-bottom: 20px;
}

/* Sanctions sources bar */
.sources-bar{
  border-bottom:none;
  background:#fff;
  width:100%;
}
.sources-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding: 10px 0;
  overflow-x:hidden;
  width:100%;
}
.sources-row img{
  height:80px;
  width:auto;
  display:block;
  flex:0 0 auto;
  filter:none;
}

/* Header */
header{
  padding: 10px 0 0px;
}
.brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand-left{
  display:flex;
  align-items:center;
  gap:14px;
  min-width: 280px;
}
.brand-logo{
  height:80px;
  width:auto;
  display:block;
}
.tagline{
  color:var(--muted);
  font-weight:600;
  letter-spacing:0.2px;
  line-height:1.25;
  max-width: 640px;
  text-align:right;
}

/* Main */
main{
  min-height: calc(100vh - 400px);
  display:flex;
  align-items:center;
  padding: 0px 0 0px;
}
.hero{
  width:100%;
  display:flex;
  justify-content:center;
}

.card{
  width:100%;
  max-width: 760px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background:#fff;
  overflow:hidden;
}
.card-head{
  padding: 18px 22px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background: linear-gradient(180deg, rgba(11,27,58,0.04), rgba(11,27,58,0.00));
}
.card-title{
  margin:0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing:0.2px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink);
  border:1px solid var(--line);
  background:#fff;
  padding: 8px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-2);
  white-space:nowrap;
}
.badge-dot{
  width:10px; height:10px;
  border-radius:50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(193,18,31,0.12);
  flex:0 0 auto;
}

.card-body{ padding: 22px; }

form{
  margin:0;
  display:grid;
  grid-template-columns: 1fr 240px;
  gap: 14px 16px;
  align-items:end;
}
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
label{
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing:0.2px;
}
input, select{
  width:100%;
  padding: 12px 12px;
  border:1px solid var(--line);
  border-radius: var(--radius-2);
  background:#fff;
  color:var(--ink);
  outline:none;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder{color:#98a3b8}
input:focus, select:focus{
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(193,18,31,0.14);
}
.full{ grid-column: 1 / -1; }
.actions{
  display:flex;
  justify-content:flex-end;
  grid-column: 2 / 3;
}
button{
  padding: 12px 14px;
  border:none;
  border-radius: var(--radius-2);
  background: var(--ink);
  color:#fff;
  font-weight: 900;
  letter-spacing:0.3px;
  cursor:pointer;
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 22px rgba(11,27,58,0.18);
}
button:hover{ background: #07122b; }
button:active{ transform: translateY(1px); }
button:focus{
  outline:none;
  box-shadow: 0 0 0 4px rgba(193,18,31,0.18), 0 10px 22px rgba(11,27,58,0.18);
}

.hint{
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height:1.35;
}
.hint strong{color:var(--ink)}

/* Footer */
footer{
  padding: 22px 0 26px;
  background:#fff;
}
.footer-grid{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.footer-grid nav{
  width:100%;
  display:flex;
  justify-content:center;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 8px 14px;
  padding:0;
  margin:0;
  list-style:none;
  font-weight:400;
  font-size:13px;
  color: var(--muted);
}
.footer-links a{
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  font-weight:400;
  text-decoration:none;
}
.footer-links a:hover{
  border-bottom-color: var(--red);
  text-decoration:none;
}

.footer-brand{
  display:block;
  text-align:center;
  width: 100%;
}

.mini-logo{
  width:60px;
  height:60px;
}

.support{
  margin-top: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

/* Top accent line */
.top-accent{
  height:4px;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 55%, var(--red) 55%, var(--red) 100%);
}

/* Responsive form */
@media (max-width: 720px){
  form{ grid-template-columns: 1fr; }
  .actions{ grid-column: 1 / -1; }
}

/* Single mobile block (no duplicates) */
@media (max-width: 820px){
    .card-title{
      font-size: 16px;
    }
    .badge{
      font-size: 10px;
    }

  /* Header */
  .brand{
    flex-direction:column;
    align-items:center;
  }

  .brand-left{
    min-width:0;
    width:100%;
    text-align:center;
  }

  .brand-left a{
    display:block;
    width:100%;
  }

  .brand-logo{
    display:block;
    width:70%;
    height:auto;
    max-width:420px;
    margin: 0 auto;
  }

  .tagline{
    width:100%;
    text-align:center;
    max-width:none;
  }

  /* Sources row */
  .sources-row{
    gap:4px;
    padding: 0px 0;
  }

  .sources-row img{
    height:48px;
  }

  /* Footer bottom logo: 50% width + centered */
  .mini-logo{
    width:50%;
    height:auto;
    max-width:260px;
  }

  .support{
    text-align:center;
  }
}

/* =========================
   Screening results (PHP)
   Targets:
   .card .result-header .person-block textarea .sbtn
   ========================= */

/* Контейнер результатов (использует существующую .card из проекта) */
.card{
  /* ваша .card уже определена выше, тут только страхуемся от main.css */
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Заголовок результата внутри карточки */
.card .result-header{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 14px 16px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--ink);
  border-bottom:1px solid var(--line);
  background: linear-gradient(180deg, rgba(11,27,58,0.04), rgba(11,27,58,0.00));
}

/* Зеленый текст из inline style (#7bf77b) выглядит кислотно на белом.
   Мы не ломаем inline, но улучшаем читаемость на общем фоне. */
.card .result-header[style*="color:#7bf77b"]{
  color: #1f7a34 !important;
}

/* Один человек/объект */
.person-block{
  padding: 18px 22px;
}

/* Разделители между найденными персонами */
.person-block + .person-block{
  border-top:1px solid var(--line);
}

/* Имя (в PHP сейчас inline font-size/font-weight — оставляем, но добавим фирменный цвет) */
.person-block > div:first-child{
  color: var(--ink);
}

/* Строки метаданных (DOB/Type/Updated) — в PHP inline color:#aaa, улучшим чуть контраст */
.person-block div[style*="color:#aaa"]{
  color: var(--muted) !important;
}

/* Label "Information:" (в PHP inline margin-top) */
.person-block label{
  display:block;
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-2);
  letter-spacing: 0.2px;
}

/* Текстовое поле с инфо */
.person-block textarea{
  width:100%;
  display:block;
  resize: vertical;
  min-height: 140px;
  padding: 12px 12px;
  border:1px solid var(--line);
  border-radius: var(--radius-2);
  background: #fbfcff;
  color: var(--ink);
  font: 14px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  outline:none;
  box-shadow: none;
}

/* Чтобы read-only выглядел как read-only, но красиво */
.person-block textarea[readonly]{
  opacity: 1;
}

/* Source line */
.person-block div[style*="margin-top:10px"]{
  margin-top: 12px !important;
  font-size: 13px !important;
  color: var(--muted);
}

/* Ссылка на источник */
.person-block a[target="_blank"]{
  color: var(--ink-2) !important;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(22,45,92,0.35);
}
.person-block a[target="_blank"]:hover{
  text-decoration:none;
  border-bottom-color: rgba(22,45,92,0.75);
}

/* Кнопка "New Check" (в PHP class="sbtn") */
.sbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ink);
  color:#fff !important;
  font-weight: 900;
  letter-spacing:0.3px;
  text-decoration:none !important;
  box-shadow: 0 10px 22px rgba(11,27,58,0.18);
  cursor:pointer;
}

/* Кнопка внизу карточки — центрируем */
.card > .sbtn,
.card > br + .sbtn{
  margin: 14px auto 18px;
  display:flex;
  width: fit-content;
}

/* Hover/active */
.sbtn:hover{
  background:#07122b;
}
.sbtn:active{
  transform: translateY(1px);
}

/* Мобильная подстройка */
@media (max-width: 820px){
  .person-block{
    padding: 14px 14px;
  }
  .person-block textarea{
    font-size: 13px;
    min-height: 130px;
  }
  .card .result-header{
    padding: 12px 12px;
    font-size: 15px;
  }
  .sbtn{
    width: 100%;
    max-width: 420px;
  }
}
.results-wrap{
  max-width: var(--max);
  margin: 18px auto 0;
  padding: 0 20px;
}

.results-wrap > h2{
  margin: 18px 0 12px;
  color: var(--ink-2);
}

.results-wrap > .card{
  margin: 0 auto 28px;
  width: 100%;
}
html, body{
  display:block !important;
  min-height:100% !important;
}

body{
  height:auto !important;
}
