/* Solidarity register — /partners/ (bashkortrights.com)
 * Rendered by [solidarity_register] (ops/50-solidarity.php). Scoped to .sreg;
 * tokens are --sr-* to stay clear of Kadence. Same visual family as the
 * incident map: warm neutrals, palette-1 blue accent, Georgia for names. */

.sreg {
  --sr-panel: #ffffff;
  --sr-panel-2: #f5f2ec;
  --sr-ink: #1d1c18;
  --sr-ink-2: #57534a;
  --sr-ink-3: #8a8578;
  --sr-line: #ded8ca;
  --sr-line-strong: #c8c0af;
  --sr-accent: #1f5c8f;
  --sr-accent-ink: #ffffff;
  --sr-alarm: #c0532a;

  max-width: 760px;
  margin: 0 auto;
  color: var(--sr-ink);
  font-size: 15px;
  line-height: 1.55;
}

.sreg * {
  box-sizing: border-box;
}

.sreg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: sreg;
  border-top: 1px solid var(--sr-line-strong);
}
.sreg-item {
  border-bottom: 1px solid var(--sr-line);
}
.sreg-item:last-child {
  border-bottom: 1px solid var(--sr-line-strong);
}

.sreg-head {
  width: 100%;
  display: grid;
  grid-template-columns: 2.75rem 1fr auto 1.25rem;
  align-items: baseline;
  gap: 0 0.9rem;
  padding: 1.15rem 0.25rem;
  margin: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.14s;
}
/* the theme paints <button>:focus / :active with palette-1 (blue) — pin every
   state back to the register's own surface. Order: reset all, then re-tint hover. */
.sreg-head,
.sreg-head:hover,
.sreg-head:focus,
.sreg-head:focus-visible,
.sreg-head:active {
  background-color: transparent;
  color: inherit;
  box-shadow: none;
}
.sreg-head:hover,
.sreg-head:focus:hover,
.sreg-head:active:hover {
  background-color: var(--sr-panel-2);
}
.sreg-head:focus-visible {
  outline: 2px solid var(--sr-accent);
  outline-offset: -2px;
  border-radius: 4px;
}

.sreg-num {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--sr-ink-3);
  padding-top: 0.15rem;
  text-transform: none;
  letter-spacing: normal;
}
.sreg-num::before {
  counter-increment: sreg;
  content: counter(sreg, decimal-leading-zero);
}

.sreg-main {
  min-width: 0;
}
.sreg-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--sr-ink);
  text-wrap: balance;
  /* the theme uppercases + letter-spaces <button> text */
  text-transform: none;
  letter-spacing: normal;
}
.sreg-role {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.86rem;
  color: var(--sr-ink-2);
  text-transform: none;
  letter-spacing: normal;
}

.sreg-status {
  align-self: center;
  justify-self: end;
  max-width: 12rem;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.3;
  text-align: right;
  padding: 0.28rem 0.6rem;
  border-radius: 0.45rem;
  color: var(--sr-alarm);
  border: 1px solid color-mix(in srgb, var(--sr-alarm) 42%, transparent);
  background: color-mix(in srgb, var(--sr-alarm) 12%, transparent);
}

.sreg-chevron {
  align-self: center;
  justify-self: center;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--sr-ink-3);
  border-bottom: 2px solid var(--sr-ink-3);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}
.sreg-head[aria-expanded="true"] .sreg-chevron {
  transform: rotate(45deg);
}

/* No-JS: statements stay open and readable. JS collapses them on init
   (sets inline height:0) and animates height on toggle. */
.sreg-body {
  overflow: hidden;
  transition: height 0.28s ease;
}
.sreg-body-inner {
  padding: 0.2rem 0.25rem 1.6rem 3.65rem;
}
@media (max-width: 560px) {
  .sreg-head {
    grid-template-columns: 2rem 1fr 1rem;
    row-gap: 0.5rem;
  }
  .sreg-status {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
    max-width: none;
  }
  .sreg-body-inner {
    padding-left: 0.25rem;
  }
}

.sreg-portrait {
  float: right;
  width: clamp(150px, 34%, 230px);
  margin: 0.2rem 0 1rem 1.4rem;
  border-radius: 0.5rem;
  border: 1px solid var(--sr-line);
}
@media (max-width: 560px) {
  .sreg-portrait {
    float: none;
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 0 1rem;
  }
}

.sreg-date {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  color: var(--sr-ink-3);
  text-transform: none;
  letter-spacing: normal;
}
.sreg-statement > :first-child {
  margin-top: 0;
}
.sreg-statement p {
  margin: 0 0 0.8rem;
}
.sreg-statement img {
  max-width: 100%;
  height: auto;
  border-radius: 0.4rem;
}
.sreg-link {
  display: inline-block;
  clear: both;
  margin-top: 0.6rem;
  color: var(--sr-accent);
  font-weight: 500;
  text-decoration: none;
}
.sreg-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sreg-empty {
  padding: 1.5rem 0.25rem;
  color: var(--sr-ink-3);
}

@media (prefers-reduced-motion: reduce) {
  .sreg-body,
  .sreg-chevron {
    transition: none;
  }
}

/* ---- single solidarity post (/aleksandr-bolokhoev/ etc.) ----
   The category pill in the title area and Kadence's "Similar Posts" are removed
   (pill by CSS here, related posts by a filter in 50-solidarity.php). */
body.category-partners .entry-taxonomies {
  display: none !important;
}
.sreg-back {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.sreg-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--sr-accent, #1f5c8f);
  text-decoration: none;
}
.sreg-back a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sreg-back--bottom {
  margin: 2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--sr-line, #ded8ca);
}
