/* =====================================================================
   MAGNA BUREAU — DOSSIER FEATURES (Workstream 2)
   Light BBC theme: white #FFFFFF · ink #161616 · BBC red #B80000 ·
   hairline #e4e4e4 · Playfair Display headlines.
   Loads AFTER styles.css. Do not edit styles.css from this workstream.
   ===================================================================== */

/* ---------- byline meta (red accent, replaces legacy gold inline span) ---------- */
.byline .byline-meta { color: #B80000; }

/* ---------- key findings box (sits near the top of each dossier) ---------- */
.keyfindings {
  background: #ffffff;
  border: 1px solid #e4e4e4;
  border-left: 4px solid #B80000;
  padding: 22px 22px 14px;
  margin: 0 0 30px;
  box-shadow: 0 6px 22px rgba(20, 20, 20, 0.05);
}
.keyfindings h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #B80000;
  margin: 0 0 12px;
}
.keyfindings ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: kf;
}
.keyfindings ol > li {
  counter-increment: kf;
  position: relative;
  padding: 9px 0 9px 40px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: #161616;
}
.keyfindings ol > li:last-child { border-bottom: 0; }
.keyfindings ol > li::before {
  content: counter(kf);
  position: absolute;
  left: 0; top: 8px;
  width: 28px; height: 28px;
  border: 1px solid #B80000;
  border-radius: 50%;
  color: #B80000;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.keyfindings .src { color: #6b6b6b; font-size: 0.82rem; }

/* never let boxed content escape its border, any viewport */
.keyfindings, .databox, .consensus, .method-note, .dossier-fig {
  min-width: 0;
  overflow-wrap: break-word;
}

/* ---------- dossier sub-section headings ---------- */
h3.dossier-sub {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #161616;
  margin: 44px 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4e4e4;
}
h3.dossier-sub .rule {
  display: block;
  width: 44px; height: 3px;
  background: #B80000;
  margin-bottom: 12px;
}

/* ---------- figures & charts ---------- */
.dossier-fig {
  border: 1px solid #e4e4e4;
  background: #ffffff;
  margin: 26px 0;
  padding: 20px 20px 12px;
  overflow: hidden;
}
.dossier-fig .fig-kicker {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #B80000;
  margin: 0 0 6px;
}
.dossier-fig .fig-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #161616;
  margin: 0 0 4px;
  line-height: 1.3;
}
.dossier-fig .fig-sub {
  font-size: 0.82rem;
  color: #6b6b6b;
  margin: 0 0 14px;
  line-height: 1.5;
}
.dossier-fig svg {
  display: block;
  width: 100%;
  height: auto;
}
.dossier-fig figcaption {
  border-top: 1px solid #e4e4e4;
  margin-top: 12px;
  padding-top: 10px;
  font-size: 0.78rem;
  color: #6b6b6b;
  line-height: 1.55;
}
.dossier-fig figcaption .src { font-style: italic; }

/* stat cards (settlement rails at a glance) */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 26px 0;
}
.stat-card {
  border: 1px solid #e4e4e4;
  border-top: 3px solid #B80000;
  background: #ffffff;
  padding: 14px 14px 12px;
}
.stat-card .stat-rail {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #B80000;
  margin-bottom: 6px;
}
.stat-card .stat-big {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #161616;
  line-height: 1.15;
  margin-bottom: 6px;
}
.stat-card .stat-small {
  font-size: 0.78rem;
  color: #6b6b6b;
  line-height: 1.5;
}
@media (max-width: 560px) {
  .stat-cards { grid-template-columns: 1fr; }
}

/* ---------- methodology note ---------- */
.method-note {
  background: #f8f8f8;
  border: 1px solid #e4e4e4;
  padding: 20px 22px;
  margin: 34px 0 10px;
}
.method-note h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #B80000;
  margin: 0 0 10px;
}
.method-note p {
  font-size: 0.86rem;
  color: #444444;
  line-height: 1.65;
  margin: 0 0 10px;
}
.method-note p:last-child { margin-bottom: 0; }
.method-note ul { margin: 6px 0 10px 18px; padding: 0; }
.method-note li { font-size: 0.86rem; color: #444444; line-height: 1.6; margin-bottom: 4px; }

/* ---------- premium lock (hormuz + settlement) ---------- */
.locked-zone {
  position: relative;
  max-height: 380px;
  overflow: hidden;
  filter: blur(7px);
  -webkit-filter: blur(7px);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  margin-top: 26px;
}
.locked-zone::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
}
.lock-card {
  position: relative;
  z-index: 2;
  margin: -190px auto 34px;
  max-width: 620px;
  background: #ffffff;
  border: 1px solid #e4e4e4;
  border-top: 4px solid #B80000;
  box-shadow: 0 24px 70px rgba(20, 20, 20, 0.16);
  padding: 34px 34px 30px;
  text-align: center;
}
.lock-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border: 2px solid #B80000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lock-tag-premium {
  display: inline-block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ffffff;
  background: #B80000;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.lock-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #161616;
  margin: 0 0 10px;
  line-height: 1.25;
}
.lock-card > p {
  font-size: 0.94rem;
  color: #444444;
  line-height: 1.6;
  margin: 0 0 8px;
}
.lock-perks {
  list-style: none;
  margin: 16px auto 20px;
  padding: 0;
  max-width: 440px;
  text-align: left;
}
.lock-perks li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: 0.9rem;
  color: #161616;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.5;
}
.lock-perks li:last-child { border-bottom: 0; }
.lock-perks li::before {
  content: "";
  position: absolute;
  left: 6px; top: 13px;
  width: 8px; height: 14px;
  border: solid #B80000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-4px);
}
.lock-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.lock-btn {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid #161616;
  background: #B80000;
  border-color: #B80000;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.lock-btn:hover { background: #8a0000; border-color: #8a0000; transform: translateY(-1px); }
.lock-btn.ghost {
  background: #ffffff;
  color: #161616;
  border-color: #161616;
}
.lock-btn.ghost:hover { background: #161616; color: #ffffff; }
.lock-fineprint {
  margin-top: 16px !important;
  font-size: 0.76rem !important;
  color: #8a8a8a !important;
  line-height: 1.55;
}

/* premium tint on the auth modal when opened via "Go Premium" */
.m-auth-card.m-premium .m-auth-sub {
  color: #B80000;
  font-weight: 600;
}
.m-auth-card.m-premium::before {
  content: "PREMIUM";
  display: block;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #B80000;
  margin-bottom: 6px;
}

/* free-dossier badge (NPK) */
.free-tag {
  display: inline-block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #B80000;
  border: 1px solid #B80000;
  padding: 4px 12px;
  margin-bottom: 12px;
}

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  .paper-inner { padding: 34px 14px 48px; }
  .paper { overflow-x: clip; }
  .paper p { font-size: 1rem; overflow-wrap: break-word; }
  .keyfindings { padding: 16px 14px 8px; margin: 0 0 24px; }
  .keyfindings ol > li { font-size: 0.88rem; line-height: 1.6; padding-left: 34px; overflow-wrap: break-word; }
  .keyfindings ol > li::before { width: 24px; height: 24px; font-size: 0.74rem; top: 9px; }
  .databox { padding: 20px 16px 14px; margin: 26px 0 32px; }
  .dossier-fig { padding: 14px 12px 8px; margin: 20px 0; }
  .dossier-fig .fig-title { font-size: 1.02rem; }
  .consensus { padding: 22px 16px 16px; margin: 30px 0; }
  .consensus dd { overflow-wrap: break-word; }
  .method-note { padding: 16px 14px; margin: 26px 0 10px; }
  .method-note ul { margin-left: 14px; }
  .method-note li, .method-note p { overflow-wrap: break-word; }
  .sources li { overflow-wrap: break-word; }
  .bloc-tag { white-space: normal; }
  .stat-cards { grid-template-columns: 1fr; }
  .lock-card { margin: -170px 6px 30px; padding: 26px 20px 24px; }
  .lock-card h3 { font-size: 1.25rem; }
  .lock-btn { width: 100%; text-align: center; }
  .lock-btns { flex-direction: column; }
  h3.dossier-sub { font-size: 1.18rem; }
}
