/* Iran petition landing page: the names memorial.
   Loads after share/kit.css and uses its fonts. Always dark, in both themes. */
.fi-memorial {
  --font-sans: var(--font-en);
  --mem-bg: #070A13; --mem-dot: #FF6B57; --mem-text: #F0EDE3; --mem-muted: #A9A8A4;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.fi-memorial h2 { color: var(--mem-text); }
.fi-memorial .sec-intro a { color: #6BA6E8; }
.fi-memorial .src { border-color: rgba(240, 237, 227, 0.3); color: #C9C7C0; }
.sec + .fi-memorial { margin-top: var(--gap); }
@media (max-width: 719px) { .mem-field-wrap, .mem-wide { padding: 0 20px !important; } }

/* ---------------------------------------------------------------- memorial
   Always dark, in both themes: the dots are the people, and they need the
   same ground everywhere.                                                 */
.fi-memorial {
  padding: 64px 0 56px;
  background: var(--mem-bg);
  color: var(--mem-text);
  --text: #F0EDE3;
  --text-soft: #C4C2BC;
  --text-muted: #A9A8A4;
  --bg-edge: rgba(240, 237, 227, 0.14);
  --bg-elev: #111828;
  --bg-soft: #151C2D;
  --accent: #6BA6E8;
  --accent-deep: #6BA6E8;
}
[data-theme="light"] .fi-memorial .fi-intro a { color: #6BA6E8; }

.mem-field-wrap, .mem-wide {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
}
.mem-field-wrap { margin-top: 36px; }
@media (min-width: 720px) { .mem-field-wrap, .mem-wide { padding: 0 56px; } }

.mem-field { position: relative; direction: ltr; }
#namesCanvas {
  display: block;
  width: 100%;
  touch-action: pan-y;
  cursor: crosshair;
  border-radius: 4px;
}
#namesCanvas:focus-visible { outline: 2px solid #6BA6E8; outline-offset: 6px; }

.mem-card {
  position: absolute;
  z-index: 3;
  width: max-content;
  max-width: min(300px, calc(100vw - 40px));
  padding: 12px 16px;
  border: 1px solid rgba(255, 107, 87, 0.7);
  border-radius: 8px;
  background: #0E1422;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  text-align: start;
}
.mem-card[hidden] { display: none; }
.mem-card-fa {
  font-family: var(--font-fa);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
  color: #FFFFFF;
  direction: rtl;
}
.mem-card-en { font-family: var(--font-sans); font-size: 15px; line-height: 1.4; color: var(--mem-text); direction: ltr; }
.mem-card-meta { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--mem-muted); }

.mem-legend {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mem-muted);
}
.mem-legend::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-inline-end: 9px;
  border-radius: 50%;
  background: var(--mem-dot);
}

/* names list */
.names { margin-top: 40px; }
.names-search { display: block; font-size: 15px; font-weight: 500; color: var(--text-soft); }
.names-search input {
  display: block;
  width: 100%;
  max-width: 440px;
  min-height: 48px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(240, 237, 227, 0.3);
  border-radius: 8px;
  background: #0E1422;
  color: #FFFFFF;
  font: inherit;
  font-size: 17px;
  font-weight: 400;
}
.names-search input:focus-visible { outline: 2px solid #6BA6E8; outline-offset: 2px; }
.names-status { min-height: 1.6em; margin-top: 10px; font-size: 14px; color: var(--mem-muted); }

.names-table-wrap { margin-top: 10px; }
.names-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.names-table th {
  padding: 10px 12px 10px 0;
  padding-inline: 0 12px;
  border-bottom: 1px solid rgba(240, 237, 227, 0.3);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: start;
  color: var(--mem-muted);
  white-space: nowrap;
}
html[data-lang="fa"] .names-table th { letter-spacing: 0; font-size: 14px; }
.names-table td {
  padding: 11px 0;
  padding-inline-end: 12px;
  border-bottom: 1px solid var(--bg-edge);
  vertical-align: top;
  text-align: start;
  color: var(--text-soft);
}
.names-table td.n-fa { font-family: var(--font-fa); font-size: 17px; font-weight: 500; color: #FFFFFF; direction: rtl; }
.names-table td.n-en { font-family: var(--font-sans); color: var(--mem-text); direction: ltr; }
/* The name cells keep their own script direction, so their alignment follows the page, not the cell. */
html[dir="ltr"] .names-table td.n-fa, html[dir="ltr"] .names-table td.n-en { text-align: left; padding-left: 0; padding-right: 12px; }
html[dir="rtl"] .names-table td.n-fa, html[dir="rtl"] .names-table td.n-en { text-align: right; padding-right: 0; padding-left: 12px; }
html:not([dir]) .names-table td.n-fa { text-align: left; }
@media (min-width: 761px) {
  .names-table { table-layout: fixed; }
  .names-table th:nth-child(1) { width: 21%; }
  .names-table th:nth-child(2) { width: 22%; }
  .names-table th:nth-child(3) { width: 6%; }
  .names-table th:nth-child(4) { width: 13%; }
  .names-table th:nth-child(5) { width: 12%; }
  .names-table th:nth-child(6) { width: 16%; }
  .names-table th:nth-child(7) { width: 10%; }
  .names-table th { white-space: normal; }
}
.names-table td.n-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.names-table td.n-src a { color: var(--text-soft); text-underline-offset: 3px; text-decoration-color: rgba(240, 237, 227, 0.35); }
.names-table td.n-src a:hover { color: #6BA6E8; }
.names-table td.n-src span + a, .names-table td.n-src a + a, .names-table td.n-src a + span { display: block; margin-top: 2px; }
.n-status { white-space: nowrap; font-size: 13px; }
.n-status::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-inline-end: 7px;
  border-radius: 50%;
  background: var(--mem-dot);
}
.n-status.is-pending::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--mem-muted); }
.names-empty td { padding: 22px 0; color: var(--mem-muted); }

/* On a phone each row becomes a small card: the two names on top, details under them. */
@media (max-width: 760px) {
  .names-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .names-table, .names-table tbody { display: block; }
  .names-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--bg-edge);
  }
  .names-table td { display: block; padding: 0; border: 0; font-size: 14px; }
  .names-table td.n-fa { grid-column: 1; font-size: 18px; white-space: normal; }
  .names-table td.n-en { grid-column: 1; font-size: 15px; }
  .names-table td.n-status-cell { grid-column: 2; grid-row: 1; text-align: end; }
  html .names-table td.n-fa, html .names-table td.n-en { text-align: start; }
  html[dir="ltr"] .names-table td.n-fa { text-align: left; }
  html[dir="rtl"] .names-table td.n-en { text-align: right; }
  .names-table td.n-num, .names-table td.n-city, .names-table td.n-src { grid-column: 1 / -1; }
  .names-table td:empty { display: none; }
  .names-table td[data-label]::before { content: attr(data-label) ": "; color: var(--mem-muted); }
}

.more-btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 20px;
  padding: 10px 20px;
  border: 1px solid rgba(240, 237, 227, 0.3);
  border-radius: 8px;
  color: var(--mem-text);
  font-size: 15px;
  font-weight: 500;
}
.more-btn:hover { border-color: #6BA6E8; color: #6BA6E8; }
.more-btn[hidden] { display: none; }

.pending { margin-top: 40px; border-top: 1px solid rgba(240, 237, 227, 0.3); }
.pending summary {
  padding: 18px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}
.pending-count { margin-inline-start: 8px; font-size: 14px; font-weight: 400; color: var(--mem-muted); }
.pending-note { max-width: 64ch; margin-bottom: 14px; font-size: 15px; line-height: 1.65; color: var(--text-soft); }
.pending-note.fa { line-height: 1.95; }

.names-download { margin-top: 32px; font-size: 15px; }
.names-download a { color: var(--text-soft); text-underline-offset: 3px; }
.names-download a:hover { color: #6BA6E8; }
.names-noscript { margin-top: 12px; font-size: 15px; color: var(--mem-muted); }


/* the closing statement of the memorial */
.mem-close {
  margin-top: 48px; padding-top: 32px; max-width: 26em;
  border-top: 1px solid rgba(240, 237, 227, 0.22);
  font-size: clamp(21px, 5.2vw, 27px); font-weight: 600; line-height: 1.35; letter-spacing: -0.015em;
  color: var(--mem-text); text-wrap: balance;
}
.mem-close.fa { line-height: 1.75; letter-spacing: 0; }
