:root {
  color-scheme: dark;
  --ink: #171719;
  --paper: #f6f4f0;
  --red: #e42332;
  --side-gap: clamp(1.25rem, 5vw, 5rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.shell {
  width: min(100% - 2 * var(--side-gap), 67rem);
  margin-inline: auto;
}

.site-header { border-bottom: 1px solid #ffffff29; }

.brand {
  min-height: 5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sas-logo { width: 4rem; height: 3rem; object-fit: contain; }
.brand-divider { height: 1.75rem; border-inline-start: 1px solid #ffffff47; }
.fikra-logo { width: 8rem; height: 3rem; object-fit: cover; }

.reports { padding-block: clamp(3rem, 10vh, 7rem); }

.edition {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.1rem;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.edition::before {
  content: "";
  width: 1.5rem;
  height: .17rem;
  background: var(--red);
}

h1 {
  margin: 0;
  font-size: clamp(3.35rem, 9vw, 7.5rem);
  line-height: .99;
  letter-spacing: -.06em;
}

h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -.08em;
}

h1 span { color: var(--red); }
.intro { margin: 1.35rem 0 2.6rem; color: #d0cbc8; }

.report-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.report-card {
  display: block;
  min-height: 10rem;
  padding: clamp(1.15rem, 3.5vw, 2.25rem);
  border-top: .25rem solid var(--red);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.report-card h2 {
  margin: 0 0 .5rem;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -.035em;
  text-decoration: underline;
  text-decoration-color: #b62631;
  text-decoration-thickness: .07em;
  text-underline-offset: .17em;
}

.report-card p { margin: .9rem 0 0; color: #555254; max-width: 33ch; }
.report-card:hover { background: #fff; }
.report-card:focus-visible { outline: .18rem solid #fff; outline-offset: .3rem; }

@media (max-width: 40rem) {
  .report-options { grid-template-columns: 1fr; }
  .report-card { min-height: auto; }
  .intro { margin-bottom: 1.8rem; }
}

.brand { text-decoration: none; }
a { color: inherit; text-underline-offset: .18em; }
a:focus-visible, .table-scroll:focus-visible { outline: .14rem solid #fff; outline-offset: .22rem; }
.report-card small { display: block; margin-bottom: .45rem; color: #555254; font-size: .9rem; }
.report-section { margin-top: 3.5rem; }
.report-section h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.2; margin: 0 0 1rem; }
.report-section h3 { margin: 1rem 0 .5rem; }
.edition-list, .refresh-list { padding: 0; margin: 0; list-style: none; }
.edition-list > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; padding-block: .95rem; border-top: 1px solid #ffffff29; }
.edition-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.edition-links a, .back { border: 1px solid #ffffff48; padding: .4rem .7rem; display: inline-block; }
.back { margin-bottom: 1.5rem; }
.refresh-list, .post-grid, .metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.refresh-list li, .post-card, .metrics > div { border: 1px solid #ffffff29; background: #202022; padding: 1rem; }
.refresh-list h3, .post-card h3 { margin-top: 0; }
.refresh-list p, .post-card p { margin: .5rem 0; }
.post-card img { display: block; width: 100%; max-height: 32rem; object-fit: contain; margin: .75rem 0; }
.muted { color: #cecbc7; }
.status { padding: .85rem 1rem; border-inline-start: .2rem solid var(--red); background: #ffffff0a; margin: 1.5rem 0; }
.metrics dt { color: #cecbc7; }
.metrics dd { font-size: 1.6rem; margin-inline-start: 0; overflow-wrap: anywhere; }
.metrics .metric-note { font-size: .9rem; margin-top: .25rem; }
.table-scroll { overflow: auto; margin: 1rem 0; }
table { border-collapse: collapse; min-width: 100%; }
td, th { border-bottom: 1px solid #ffffff29; padding: .65rem .8rem; text-align: left; }
th { background: #ffffff0d; }

[hidden] { display: none !important; }
