/* Sources pages. dr- is the directory the four list pages share
   (sources-catalog.php); am- is the Adverse Media page. */

.dr {
  --ink: #161727; --body: #434357; --mute: #70707f; --faint: #9e9eab;
  --line: rgba(22, 23, 39, .08); --line-2: rgba(22, 23, 39, .13);
  --paper: #f8f8fa; --blue: #5a29ad; --blue-2: #8046e1; --blue-soft: #f5f1fa;
  color: var(--body);
}

/* ------------------------------------------------------------ hero */
.dr-hero {
  position: relative; overflow: hidden; padding: 52px 0 48px;
  background:
    radial-gradient(900px 380px at 88% -10%, rgba(128, 70, 225, .10), transparent 70%),
    linear-gradient(180deg, #fcfcfd 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1024px) { .dr-hero { padding: 72px 0 64px; } }
.dr-hero-grid { display: grid; gap: 40px; align-items: end; }
@media (min-width: 1024px) { .dr-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 72px; } }

.dr-kick { font: 600 13px/1 'Sora', sans-serif; color: var(--blue); }
.dr-h1 {
  margin-top: 14px; max-width: 760px; font: 700 clamp(32px, 4.2vw, 52px)/1.08 'Sora', sans-serif;
  letter-spacing: -.035em; color: var(--ink); text-wrap: balance;
}
.dr-lead { margin-top: 18px; max-width: 660px; font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.dr-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 26px; font-size: 14.5px; color: var(--mute); }
.dr-facts b { margin-right: 4px; font: 700 20px/1 'Sora', sans-serif; color: var(--ink); letter-spacing: -.02em; }

/* coverage spread: one bar per region */
.dr-spread { margin: 0; padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px -28px rgba(22, 23, 39, .35); }
.dr-spread figcaption { margin-bottom: 14px; font: 600 12.5px/1 'Sora', sans-serif; color: var(--mute); }
.dr-spread-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px; grid-template-areas: "l n" "b b"; gap: 6px 10px; }
.dr-spread-row + .dr-spread-row { margin-top: 12px; }
.dr-spread-l { grid-area: l; font-size: 13.5px; color: var(--ink); }
.dr-spread-row b { grid-area: n; text-align: right; font: 600 13.5px/1.4 'Sora', sans-serif; color: var(--ink); }
.dr-spread-bar { grid-area: b; height: 6px; border-radius: 99px; background: #f0f0f4; overflow: hidden; }
.dr-spread-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--blue-2)); }

/* ----------------------------------------------------------- layout */
.dr-layout { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 96px; }
@media (min-width: 1024px) { .dr-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 48px; padding-top: 48px; } }

.dr-side-in { display: grid; gap: 14px; }
@media (min-width: 1024px) { .dr-side-in { position: sticky; top: calc(var(--dr-top, 72px) + 24px); } }
.dr-find {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--line-2); color: var(--faint);
}
.dr-find:focus-within { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(90, 41, 173, .12); }
.dr-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 14.5px/1.2 inherit; color: var(--ink); }
.dr-side-h { margin-top: 6px; font: 600 12.5px/1 'Sora', sans-serif; color: var(--mute); }
.dr-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 1024px) { .dr-filter { flex-direction: column; overflow: visible; } }
.dr-filter button {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  font: 500 14px/1.2 inherit; color: var(--body); text-align: left; cursor: pointer; white-space: nowrap;
}
.dr-filter button em { font-style: normal; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.dr-filter button:hover { background: var(--paper); }
.dr-filter button.on { background: var(--ink); color: #fff; }
.dr-filter button.on em { color: rgba(255, 255, 255, .6); }
@media (max-width: 1023px) { .dr-filter button { border-color: var(--line-2); border-radius: 999px; } }
.dr-side-note { font-size: 12.5px; line-height: 1.55; color: var(--faint); }

/* ------------------------------------------------------- directory */
.dr-region + .dr-region { margin-top: 44px; }
.dr-region-h {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  font: 600 13px/1 'Sora', sans-serif; letter-spacing: .02em; color: var(--mute);
}
.dr-region-h::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

.dr-country + .dr-country { margin-top: 22px; }
.dr-country-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dr-country-h h3 { font: 600 18px/1.3 'Sora', sans-serif; color: var(--ink); letter-spacing: -.015em; }
.dr-flag {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background-size: cover; background-position: center;
  box-shadow: 0 0 0 1px rgba(22, 23, 39, .1), 0 2px 6px -2px rgba(22, 23, 39, .25);
}
.dr-flag-globe { display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.dr-flag.fi { width: 28px; height: 28px; line-height: 28px; }   /* beats the library's .fi.fis 1em square */
.dr-country-n {
  min-width: 26px; padding: 3px 8px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; text-align: center; color: var(--mute); font-variant-numeric: tabular-nums;
}

.dr-lists { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #fff; }
.dr-lists > li + li { border-top: 1px solid var(--line); }
.dr-item summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 14px;
  padding: 14px 18px; cursor: pointer; list-style: none; transition: background .15s;
}
.dr-item summary::-webkit-details-marker { display: none; }
.dr-item summary:hover { background: #fbfbfc; }
.dr-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.dr-item-t b { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.dr-item-t span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-freq { padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--paper); color: var(--mute); border: 1px solid var(--line); }
.dr-freq-daily { background: var(--blue-soft); color: var(--blue); border-color: rgba(90, 41, 173, .18); }
.dr-freq-weekly { background: #f7f3fa; color: #5b4bd1; border-color: rgba(91, 75, 209, .18); }
.dr-chev { color: var(--faint); transition: transform .2s; }
.dr-item[open] .dr-chev { transform: rotate(180deg); color: var(--blue); }
.dr-item[open] summary { background: #fbfbfc; }

.dr-more { padding: 2px 18px 16px; background: #fbfbfc; }
.dr-more p { font-size: 14px; line-height: 1.65; max-width: 760px; }
.dr-more-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; }
.dr-official { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #0f7a58; }
.dr-more-meta a { font-size: 13.5px; font-weight: 600; color: var(--blue); }
.dr-more-meta a:hover { text-decoration: underline; }

.dr-none { padding: 32px; border-radius: 14px; text-align: center; background: var(--paper); color: var(--mute); }
[data-dr-hide] { display: none !important; }

/* ---------------------------------------------------- adverse media */
.am-hero { padding-bottom: 64px; }
.am-hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1024px) { .am-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 72px; } }
.am-hero .dr-lead { max-width: 640px; }
.am-facts { gap: 10px 26px; }

/* the sample result: fictional, labelled as such */
.am-sample {
  margin: 0; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -36px rgba(22, 23, 39, .45); transform: rotate(-1deg);
}
@media (max-width: 1023px) { .am-sample { transform: none; max-width: 520px; } }
.am-s-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.am-s-av { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font: 700 13px/1 'Sora', sans-serif; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-2)); }
.am-s-head div { flex: 1; min-width: 0; }
.am-s-head b { display: block; font: 600 16px/1.3 'Sora', sans-serif; color: var(--ink); }
.am-s-head small { font-size: 12.5px; color: var(--mute); }
.am-s-flag { padding: 5px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #9a5b00; background: #fdf4e5; border: 1px solid #f5dcae; }
.am-s-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.am-s-tags span { padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #b42318; background: #fdecea; }
.am-s-list { list-style: none; margin: 12px 0 0; padding: 0; }
.am-s-list li { padding: 12px 0; border-top: 1px dashed var(--line-2); }
.am-s-list li:first-child { border-top: 0; }
.am-s-list p { font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.am-s-list small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--mute); }
.am-s-note { margin-top: 4px; font-size: 11.5px; color: var(--faint); }

.am-h2 { font: 600 clamp(24px, 2.6vw, 32px)/1.2 'Sora', sans-serif; letter-spacing: -.025em; color: var(--ink); }
.am-sub { margin-top: 8px; font-size: 15px; color: var(--mute); max-width: 620px; }

/* the timeline: news first, list last */
.am-story { margin-top: 80px; }
.am-line { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 26px; position: relative; }
@media (min-width: 900px) {
  .am-line { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .am-line::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px;
    background: linear-gradient(90deg, #e5484d 0%, #f5a524 50%, var(--line-2) 100%); }
}
.am-line li { position: relative; padding-left: 28px; }
@media (min-width: 900px) { .am-line li { padding-left: 0; padding-top: 30px; } }
.am-dot { position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--line-2); }
.am-hit .am-dot { border-color: #e5484d; box-shadow: 0 0 0 5px rgba(229, 72, 77, .14); }
@media (min-width: 900px) { .am-dot { top: 0; } }
.am-line b { display: block; font: 600 17px/1.3 'Sora', sans-serif; color: var(--ink); }
.am-line p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; }
.am-line em { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 99px; font-style: normal;
  font-size: 12px; font-weight: 600; color: var(--mute); background: var(--paper); border: 1px solid var(--line); }
.am-hit em { color: #b42318; background: #fdecea; border-color: #f9cfcb; }

.am-themes { margin-top: 72px; }
.am-themes ul { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.am-themes li { padding: 9px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink); }

.am-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
  margin: 80px 0 96px; padding: 32px 34px; border-radius: 20px; color: #fff;
  background: radial-gradient(600px 220px at 100% 0%, rgba(128, 70, 225, .45), transparent 70%), #161727;
}
.am-cta h2 { font: 600 24px/1.25 'Sora', sans-serif; letter-spacing: -.02em; }
.am-cta p { margin-top: 6px; color: rgba(255, 255, 255, .72); font-size: 15px; }
.am-cta-b { display: flex; flex-wrap: wrap; gap: 12px; }

/* Regions card (no counts) */
.dr-regions ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.dr-regions li{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:#f7f7f9;border:1px solid #efeff3;font-size:14px;font-weight:500;color:var(--ink)}
.dr-reg-ico{width:30px;height:30px;flex:none;border-radius:9px;display:grid;place-items:center;background:#f2eefa;color:#642ac3}
.dr-reg-ok{margin-left:auto;color:#17b26a;flex:none}
