/* Europol case file — enhanced official dossier */
.europol-case-file-wrap {
  margin-top: 1.25rem;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 280px;
}

.europol-case-file-document {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  min-width: 280px;
  box-sizing: border-box;
  background: #ffffff;
  color: #111;
  border: 2px solid #1a1a1a;
  border-top: 5px solid #003399;
  box-shadow:
    0 1px 0 rgba(0, 51, 153, 0.08),
    0 12px 40px rgba(8, 18, 37, 0.14);
  font-family: Arial, Helvetica, "Segoe UI", sans-serif;
  font-size: 10.5pt;
  line-height: 1.45;
  overflow: hidden;
}

/* ---- Header ---- */
.ecf-header-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border-bottom: 2px solid #1a1a1a;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.ecf-logo-block {
  padding: 1rem 1.1rem;
  border-right: 2px solid #1a1a1a;
}

.ecf-logo-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ecf-eu-flag {
  width: 56px;
  height: auto;
  border: 1px solid #9aa8b8;
  flex-shrink: 0;
}

.ecf-eu-stars {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.ecf-logo-text {
  font-weight: 800;
  font-size: 16pt;
  letter-spacing: 0.04em;
  color: #003399;
  line-height: 1.05;
}

.ecf-logo-sub {
  margin-top: 0.15rem;
  font-size: 6.5pt;
  font-weight: 700;
  color: #003399;
  line-height: 1.35;
  max-width: 240px;
  text-transform: uppercase;
}

.ecf-meta-block {
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
}

.ecf-meta-inner {
  width: 100%;
  border: 1.5px solid #1a1a1a;
  padding: 0.65rem 0.75rem;
  background: #fff;
}

.ecf-meta-line {
  margin: 0.35rem 0;
  display: block;
  width: 100%;
}

.ecf-meta-label {
  font-weight: 700;
  font-size: 8.5pt;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3d4f5f;
}

.ecf-meta-value {
  display: block;
  font-size: 10pt;
  font-weight: 600;
  color: #111;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}

.ecf-meta-line--class .ecf-meta-value {
  display: inline-block;
  width: fit-content;
  padding: 0.12rem 0.5rem;
  border: 1px solid #8b1538;
  background: #fdeef2;
  color: #8b1538;
  font-size: 9pt;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ecf-meta-inner .ecf-refund-status {
  margin-top: 0.35rem;
}

.ecf-meta-inner p strong {
  display: block;
  font-size: 8.5pt;
  text-transform: uppercase;
  color: #3d4f5f;
  margin-bottom: 0.1rem;
}

/* ---- Body ---- */
.ecf-body {
  padding: 1rem 1.15rem 1.15rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-break: normal;
  overflow-wrap: break-word;
}

.ecf-meta-inner p,
.ecf-body p {
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}

.ecf-content-title {
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  font-size: 11.5pt;
  font-weight: 800;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #111;
}

/* ---- Subject ---- */
.ecf-subject-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.35rem;
  align-items: start;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #1a1a1a;
}

.ecf-subject-photo {
  width: 140px;
  height: 175px;
  object-fit: cover;
  object-position: center 20%;
  image-orientation: none;
  border: 2px solid #1a1a1a;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.08);
  background: #e8ecf1;
  display: block;
  flex-shrink: 0;
}

.ecf-subject-photo[src*="placeholder"] {
  object-fit: contain;
  padding: 0.5rem;
}

.ecf-subject-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.25rem;
  align-content: start;
}

.ecf-subject-fields p {
  margin: 0;
  font-size: 10.5pt;
  line-height: 1.4;
}

.ecf-subject-fields strong {
  display: block;
  font-weight: 700;
  font-size: 8.5pt;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #3d4f5f;
  margin-bottom: 0.15rem;
}

/* ---- Sections ---- */
.ecf-section {
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #b8c4d0;
}

.ecf-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ecf-section h4 {
  margin: 0 0 0.6rem;
  padding: 0.35rem 0.5rem;
  font-size: 10pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #003399;
  background: #eef3fa;
  border-left: 4px solid #003399;
}

.ecf-summary-text {
  margin: 0 0 0.7rem;
  font-size: 10.5pt;
  text-align: justify;
  line-height: 1.55;
  color: #1a1a1a;
}

.ecf-summary-text:last-child {
  margin-bottom: 0;
}

.ecf-section ul,
.ecf-two-col-cell ul {
  margin: 0;
  padding-left: 1.35rem;
  font-size: 10.5pt;
}

.ecf-section li,
.ecf-two-col-cell li {
  margin-bottom: 0.4rem;
  line-height: 1.45;
}

.ecf-section li::marker {
  color: #003399;
}

/* ---- Two columns ---- */
.ecf-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #b8c4d0;
}

.ecf-two-col-cell {
  padding: 0 1rem 0 0;
}

.ecf-two-col-cell + .ecf-two-col-cell {
  padding: 0 0 0 1rem;
  border-left: 1px solid #1a1a1a;
}

.ecf-two-col-cell h4 {
  margin: 0 0 0.55rem;
  padding: 0.3rem 0.45rem;
  font-size: 9pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #003399;
  background: #f4f7fb;
  border-left: 3px solid #003399;
}

/* ---- Notes ---- */
.ecf-notes .ecf-notes-line {
  margin: 0 0 0.55rem;
  font-size: 10.5pt;
  text-align: justify;
  line-height: 1.5;
}

.ecf-notes-emphasis {
  margin-top: 0.65rem !important;
  padding: 0.55rem 0.7rem;
  font-weight: 800 !important;
  background: #fff9e8;
  border-left: 4px solid #c39b34;
  border-radius: 0 2px 2px 0;
}

.ecf-status-row {
  margin-top: 1rem;
  padding: 0.55rem 0.65rem;
  border: 1px dashed #9aa8b8;
  background: #f8fafc;
  font-size: 9pt;
  color: #333;
}

.ecf-refund-status {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid #8b1538;
  background: #fdeef2;
  color: #8b1538;
  font-weight: 700;
  font-size: 8.5pt;
}

@media (max-width: 720px) {
  .ecf-header-row {
    grid-template-columns: 1fr;
  }

  .ecf-logo-block {
    border-right: none;
    border-bottom: 2px solid #1a1a1a;
  }

  .ecf-subject-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .ecf-subject-fields {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .ecf-two-col {
    grid-template-columns: 1fr;
  }

  .ecf-two-col-cell + .ecf-two-col-cell {
    border-left: none;
    border-top: 1px solid #1a1a1a;
    padding: 0.85rem 0 0;
    margin-top: 0.85rem;
  }

  .ecf-two-col-cell {
    padding: 0;
  }
}

@media print {
  .europol-case-file-document {
    box-shadow: none;
    max-width: 100%;
  }
}
