:root {
  --ink: #161616;
  --muted: #5f6670;
  --soft: #8a9098;
  --line: #dedede;
  --line-strong: #c7c7c7;
  --panel: #ffffff;
  --bg: #f3f3f1;
  --nav: #050505;
  --link: #174b7a;
  --accent: #c62032;
  --teal: #23746c;
  --amber: #986100;
  --shadow: 0 12px 26px rgba(0, 0, 0, .08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: var(--link); }
.site-header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: 13px 30px;
  background: var(--nav);
  color: #fff;
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand-block {
  display: grid;
  gap: 2px;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #fff;
  font-weight: 720;
  font-size: 18px;
  text-decoration: none;
}
.brand span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.site-header p {
  margin: 1px 0 0;
  color: #b6b6b6;
  font-size: 12px;
}
.site-header nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-header nav a {
  color: #efefef;
  text-decoration: none;
  font-size: 13px;
  padding: 8px 11px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 650;
}
.site-header nav a:hover {
  background: rgba(255,255,255,.12);
  text-decoration: none;
}
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 28px 42px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: end;
  margin-bottom: 18px;
  padding: 28px 0 22px;
  border-bottom: 1px solid #c9c9c7;
  position: relative;
}
.image-hero {
  min-height: 290px;
  align-items: end;
  padding: 34px 42px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.50) 46%, rgba(0,0,0,.12)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  border-bottom: 0;
  color: #fff;
  overflow: hidden;
}
.hero:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 92px;
  height: 3px;
  background: var(--accent);
}
.image-hero:before {
  top: 0;
  bottom: auto;
  width: 100%;
  height: 4px;
}
.hero h1 {
  font-size: 34px;
  line-height: 1.12;
  margin: 0;
  color: #0a0a0a;
  letter-spacing: 0;
}
.image-hero h1 {
  color: #fff;
  max-width: 760px;
}
.hero p {
  max-width: 780px;
  color: var(--muted);
  margin: 6px 0 0;
}
.image-hero p {
  color: #d9dde3;
  max-width: 680px;
}
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.image-hero .eyebrow {
  color: #ff6b78;
}
.image-hero .stat {
  background: rgba(255,255,255,.94);
  border-color: rgba(255,255,255,.35);
}
.stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid #111;
  border-radius: 0;
  padding: 11px 14px;
  min-width: 145px;
  box-shadow: 0 1px 2px rgba(20,33,50,.04);
}
.stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.08;
  color: #111;
}
.stat span {
  color: var(--muted);
  font-size: 12px;
}
.toolbar {
  display: grid;
  grid-template-columns: minmax(300px,1fr) 190px 190px;
  gap: 10px;
  margin: 18px 0 10px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
}
.toolbar input,
.toolbar select {
  height: 42px;
  border: 1px solid #c8d2de;
  border-radius: 0;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.toolbar input:focus,
.toolbar select:focus {
  outline: 2px solid rgba(36,90,146,.18);
  border-color: #7fa1c5;
}
.action-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.action-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 3px solid #111;
  color: var(--ink);
  padding: 15px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(20,33,50,.04);
}
.action-card:hover {
  border-color: var(--line-strong);
  border-bottom-color: var(--accent);
  box-shadow: 0 4px 12px rgba(20,33,50,.06);
  text-decoration: none;
}
.action-card strong {
  display: block;
  color: #111;
  font-size: 16px;
}
.action-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin: 28px 0 10px;
  padding-top: 4px;
}
.section-title h2 {
  font-size: 18px;
  margin: 0;
  color: #111;
}
.section-title h2:before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 3px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
}
.section-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
  gap: 16px;
  align-items: start;
}
.search-panel {
  position: sticky;
  top: 82px;
}
.search-panel .toolbar {
  grid-template-columns: 1fr;
  margin: 0 0 10px;
  box-shadow: none;
}
.search-panel .report-list {
  max-height: 680px;
  overflow: auto;
  padding-right: 2px;
}
.issuer-toolbar {
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(20,33,50,.04);
}
.report-list {
  display: grid;
  gap: 8px;
}
.report-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid #111;
  border-radius: 0;
  padding: 14px 15px 14px 13px;
  box-shadow: 0 1px 2px rgba(20,33,50,.04);
}
.report-row:has(.issuer-summary) { border-left-color: #174b7a; }
.report-row:has(.issuer-update) { border-left-color: var(--amber); }
.report-row:has(.issuer-flash) { border-left-color: var(--accent); }
.report-row:hover {
  border-color: var(--line-strong);
  box-shadow: 0 4px 12px rgba(20,33,50,.06);
}
.report-title {
  font-weight: 690;
  color: #1d4c7d;
  text-decoration: none;
}
.report-title:hover { text-decoration: underline; }
.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 4px;
}
.meta a {
  color: #4b627a;
  text-decoration: none;
}
.meta a:hover { text-decoration: underline; }
.row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 0;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 760;
  text-decoration: none;
}
.issuer-summary { background: #e7eef8; color: #244e86; }
.issuer-update { background: #fff0c7; color: var(--amber); }
.issuer-flash { background: #f8e5e8; color: #9a1f2d; }
time {
  color: var(--muted);
  font-size: 12.5px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(245px,1fr));
  gap: 11px;
}
.tile,
.issuer-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20,33,50,.04);
}
.tile:hover,
.issuer-tile:hover {
  border-color: var(--line-strong);
  box-shadow: 0 4px 12px rgba(20,33,50,.06);
  text-decoration: none;
}
.tile strong,
.issuer-tile strong {
  display: block;
  color: #111;
  font-size: 15.5px;
}
.tile span,
.issuer-tile span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 4px;
}
.tile-kicker {
  color: var(--accent)!important;
  font-weight: 760;
  text-transform: uppercase;
  font-size: 10.5px!important;
  letter-spacing: .04em;
}
.tile-footer {
  padding-top: 8px;
  margin-top: 10px!important;
  border-top: 1px solid #edf1f5;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 15px;
  box-shadow: 0 1px 2px rgba(20,33,50,.04);
}
.panel h2 {
  font-size: 16px;
  margin: 0 0 10px;
  color: #111;
}
.panel summary {
  display: none;
}
.country-layout {
  display: grid;
  grid-template-columns: minmax(280px,360px) minmax(0,1fr);
  gap: 16px;
  align-items: start;
}
.issuer-list { display: grid; }
.issuer-mini {
  display: block;
  padding: 10px 0;
  border-top: 1px solid #edf1f5;
  text-decoration: none;
}
.issuer-mini:first-of-type { border-top: 0; }
.issuer-mini strong {
  display: block;
  color: #1d4c7d;
}
.issuer-mini span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}
.empty {
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 16px;
}
@media (max-width: 900px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr; }
  .action-strip { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .search-panel { order: 1; }
  .latest-panel { order: 2; }
  .report-row { grid-template-columns: 1fr; align-items: flex-start; }
  .row-actions { justify-content: space-between; width: 100%; }
  main { padding: 20px; }
  .hero h1 { font-size: 27px; }
  .image-hero { min-height: 270px; padding: 26px; }
  .search-panel { position: static; }
  .country-layout { grid-template-columns: 1fr; }
  .country-issuers h2 { display: none; }
  .country-issuers summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #111;
    font-weight: 760;
    list-style: none;
  }
  .country-issuers summary::-webkit-details-marker { display: none; }
  .country-issuers summary:after {
    content: "+";
    color: var(--accent);
    font-size: 20px;
    line-height: 1;
  }
  .country-issuers[open] summary:after { content: "-"; }
  .country-issuers .issuer-list { margin-top: 10px; }
}
