/* ==========================================================================
   #StopRWACrime - public Stories archive

   The masonry feed, the cards, and the source notices.

   The notices are the load-bearing part of this stylesheet. A court finding
   and an anonymous allegation must not be able to look alike on a screen, so
   they are given genuinely different colour, weight and border treatments -
   and the strongest visual emphasis is reserved for material that has actually
   been through a court or an authority.
   ========================================================================== */

.st {
    --st-ink: #1a1c21;
    --st-muted: #5f6672;
    --st-line: #e4e7ec;
    --st-bg-soft: #f7f8fa;
    --st-danger: #d6293e;

    --st-authority: #14532d;
    --st-authority-bg: #eaf5ee;
    --st-proceeding: #1e3a8a;
    --st-proceeding-bg: #eaeffb;
    --st-news: #7c4a03;
    --st-news-bg: #fdf3e3;
    --st-allegation: #8a2b2b;
    --st-allegation-bg: #fdeded;
    --st-commentary: #4b3b74;
    --st-commentary-bg: #f2eefb;
    --st-lead: #475467;
    --st-lead-bg: #f2f4f7;

    color: var(--st-ink);
}

.st-page { padding-bottom: 4rem; }

/* ---------------------------------------------------------------- */
/* Header                                                            */
/* ---------------------------------------------------------------- */

.st-head { padding: 2.5rem 0 1.5rem; text-align: center; }

.st-head__title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: .75rem; }

.st-head__lead {
    max-width: 46rem;
    margin: 0 auto 1.5rem;
    color: var(--st-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.st-head__note { color: var(--st-muted); font-size: .85rem; margin-top: .75rem; }
.st-head__closed { color: var(--st-muted); font-style: italic; }

/* ---------------------------------------------------------------- */
/* Filters                                                           */
/* ---------------------------------------------------------------- */

.st-filters {
    background: var(--st-bg-soft);
    border: 1px solid var(--st-line);
    border-radius: 14px;
    padding: 1rem 1.25rem 1.25rem;
    margin-bottom: 1.5rem;
}

.st-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--st-line);
}

.st-tab {
    border: 1px solid var(--st-line);
    background: #fff;
    border-radius: 999px;
    padding: .4rem .9rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--st-muted);
    cursor: pointer;
    transition: all .15s ease;
}

.st-tab:hover { border-color: var(--st-danger); color: var(--st-danger); }

.st-tab.is-active { background: var(--st-danger); border-color: var(--st-danger); color: #fff; }

.st-tab__count {
    display: inline-block;
    margin-left: .35rem;
    font-size: .75rem;
    opacity: .75;
}

.st-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .75rem;
    align-items: end;
}

.st-filter--search { grid-column: span 2; }

.st-filter__label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--st-muted);
    margin-bottom: .25rem;
}

.st-filter--actions { display: flex; gap: .5rem; }

.st-hashbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid var(--st-line);
}

.st-hashbar__label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--st-muted);
    margin-right: .25rem;
}

.st-hash {
    display: inline-block;
    font-size: .8rem;
    color: #3757a8;
    background: #eef2fb;
    border-radius: 999px;
    padding: .15rem .6rem;
    text-decoration: none;
}

.st-hash:hover, .st-hash.is-active { background: #3757a8; color: #fff; }

/* ---------------------------------------------------------------- */
/* Series strip                                                      */
/* ---------------------------------------------------------------- */

.st-series-strip { margin-bottom: 1.75rem; }

.st-series-strip__items { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .5rem; }

.st-series-chip {
    flex: 0 0 auto;
    max-width: 18rem;
    border: 1px solid var(--st-line);
    border-left: 4px solid var(--st-danger);
    border-radius: 10px;
    padding: .6rem .9rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.st-series-chip__title { display: block; font-weight: 700; font-size: .95rem; }
.st-series-chip__desc { display: block; font-size: .8rem; color: var(--st-muted); margin-top: .2rem; }

/* ---------------------------------------------------------------- */
/* Feed                                                              */
/* ---------------------------------------------------------------- */

.st-count { color: var(--st-muted); font-size: .9rem; margin-bottom: .75rem; }

.st-grid { margin: 0 -.5rem; }

.st-grid__sizer, .st-card { width: 100%; }

@media (min-width: 576px) { .st-grid__sizer, .st-card { width: 50%; } }
@media (min-width: 992px) { .st-grid__sizer, .st-card { width: 33.333%; } }
@media (min-width: 1400px) { .st-grid__sizer, .st-card { width: 25%; } }

.st-card { float: left; padding: .5rem; }

.st-card__link {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid var(--st-line);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .18s ease, transform .18s ease;
}

.st-card__link:hover {
    box-shadow: 0 8px 24px rgba(16, 24, 40, .1);
    transform: translateY(-2px);
    color: inherit;
}

.st-card--pinned .st-card__link { border-color: var(--st-danger); }

.st-card__media img { width: 100%; height: auto; display: block; }

.st-card__body { padding: .9rem 1rem 1rem; }

.st-card__top { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }

.st-card__title { font-size: 1.02rem; font-weight: 700; line-height: 1.35; margin: 0 0 .4rem; }

.st-card__excerpt { font-size: .88rem; color: var(--st-muted); line-height: 1.5; margin-bottom: .6rem; }

.st-card__meta, .st-card__byline { font-size: .78rem; color: var(--st-muted); margin-bottom: .4rem; }

.st-meta__item { margin-right: .7rem; white-space: nowrap; }

.st-card__tags, .st-card__hashtags { margin-bottom: .4rem; display: flex; flex-wrap: wrap; gap: .3rem; }

.st-chip--category {
    font-size: .72rem;
    background: #eef2f6;
    color: #344054;
    border-radius: 6px;
    padding: .12rem .45rem;
}

.st-card__foot { margin: .5rem 0 0; }

.st-type {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #344054;
    background: #f2f4f7;
    border-radius: 6px;
    padding: .18rem .5rem;
}

.st-type--court_case, .st-type--official_proceeding { background: #eaeffb; color: var(--st-proceeding); }
.st-type--news_report { background: var(--st-news-bg); color: var(--st-news); }
.st-type--legal_reference { background: var(--st-commentary-bg); color: var(--st-commentary); }
.st-type--resident_story, .st-type--community_post { background: #fdeded; color: var(--st-allegation); }
.st-type--communication_story { background: #e8f5f2; color: #10604f; }

/* ---------------------------------------------------------------- */
/* Verification wording                                              */
/* ---------------------------------------------------------------- */

.st-verify {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    border-radius: 999px;
    padding: .15rem .55rem;
    background: var(--st-lead-bg);
    color: var(--st-lead);
}

.st-verify--official_source { background: var(--st-authority-bg); color: var(--st-authority); }
.st-verify--source_verified { background: #eaeffb; color: var(--st-proceeding); }
.st-verify--partially_verified { background: var(--st-news-bg); color: var(--st-news); }
.st-verify--disputed, .st-verify--unverified { background: var(--st-allegation-bg); color: var(--st-allegation); }

/* ---------------------------------------------------------------- */
/* Source notices - never visually equivalent                        */
/* ---------------------------------------------------------------- */

.st-notice--chip {
    display: inline-block;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .05em;
    border-radius: 4px;
    padding: .18rem .45rem;
    border: 1px solid transparent;
}

.st-notice--block {
    border-radius: 10px;
    border-left-width: 5px;
    border-left-style: solid;
    padding: .85rem 1.1rem;
    margin: 1.25rem 0 1.5rem;
}

.st-notice__label {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    margin: 0 0 .25rem;
}

.st-notice__text { font-size: .9rem; margin: 0; line-height: 1.5; }
.st-notice__grade { font-size: .8rem; margin: .45rem 0 0; opacity: .85; font-style: italic; }

.st-notice--authority { background: var(--st-authority-bg); color: var(--st-authority); border-color: var(--st-authority); }
.st-notice--proceeding { background: var(--st-proceeding-bg); color: var(--st-proceeding); border-color: var(--st-proceeding); }
.st-notice--news { background: var(--st-news-bg); color: var(--st-news); border-color: var(--st-news); }
.st-notice--allegation { background: var(--st-allegation-bg); color: var(--st-allegation); border-color: var(--st-allegation); }
.st-notice--commentary { background: var(--st-commentary-bg); color: var(--st-commentary); border-color: var(--st-commentary); }
.st-notice--lead { background: var(--st-lead-bg); color: var(--st-lead); border-color: var(--st-lead); }

.st-more { text-align: center; padding: 2rem 0 1rem; clear: both; }
.st-empty { text-align: center; color: var(--st-muted); padding: 2rem 0; }

/* ---------------------------------------------------------------- */
/* Single story                                                      */
/* ---------------------------------------------------------------- */

.st-breadcrumb { font-size: .82rem; color: var(--st-muted); padding: 1.25rem 0 .5rem; }
.st-breadcrumb a { color: var(--st-muted); text-decoration: none; }
.st-breadcrumb span { margin: 0 .35rem; }

.st-article { max-width: 52rem; margin: 0 auto; }

.st-eyebrow { margin-bottom: .5rem; }

.st-article__title { font-size: clamp(1.5rem, 3.5vw, 2.3rem); font-weight: 800; line-height: 1.25; margin-bottom: .6rem; }

.st-article__meta { font-size: .85rem; color: var(--st-muted); display: flex; flex-wrap: wrap; gap: .5rem 0; align-items: center; }

.st-article__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.st-article__tags a { text-decoration: none; }

.st-article__body { font-size: 1.03rem; line-height: 1.75; margin: 1.5rem 0; }

.st-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.st-gallery img { width: 100%; border-radius: 10px; display: block; }
.st-gallery figcaption { font-size: .8rem; color: var(--st-muted); margin-top: .3rem; }

.st-video video { width: 100%; border-radius: 10px; }
.st-video__caption { font-size: .8rem; color: var(--st-muted); }

.st-section { margin: 2.25rem 0; padding-top: 1.5rem; border-top: 1px solid var(--st-line); }
.st-section__title { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.st-section__note { font-size: .85rem; color: var(--st-muted); margin-bottom: 1rem; }

.st-source__list { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; font-size: .9rem; }
.st-source__list dt { font-weight: 700; color: var(--st-muted); }
.st-source__list dd { margin: 0; }
.st-source__link { margin-top: .9rem; }

.st-comms__list { list-style: none; padding: 0; margin: 0; }

.st-comm {
    border-left: 3px solid var(--st-line);
    padding: .6rem 0 .6rem 1rem;
    margin-bottom: 1rem;
}

.st-comm--key { border-left-color: var(--st-danger); }

.st-comm__head { font-size: .8rem; color: var(--st-muted); margin-bottom: .3rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.st-comm__who { font-weight: 700; color: var(--st-ink); }
.st-comm__role { text-transform: uppercase; font-size: .7rem; letter-spacing: .04em; }

.st-comm__statement {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #f2f4f7;
    border-radius: 4px;
    padding: .1rem .4rem;
    margin-bottom: .3rem;
}

.st-comm__statement.is-unproven { background: var(--st-allegation-bg); color: var(--st-allegation); }

.st-comm__body { font-size: .95rem; line-height: 1.6; margin: 0; padding: 0; border: 0; }
.st-comm__note { font-size: .82rem; color: var(--st-muted); font-style: italic; margin-top: .3rem; }

.st-link { background: none; border: 0; padding: 0; color: #3757a8; font-size: .82rem; text-decoration: underline; cursor: pointer; }
.st-loading { font-size: .85rem; color: var(--st-muted); }

.st-evidence__list { list-style: none; padding: 0; margin: 0; }

.st-evidence__item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--st-line);
    font-size: .9rem;
}

.st-evidence__name { font-weight: 600; }
.st-evidence__type { color: var(--st-muted); font-size: .8rem; }

.st-events { list-style: none; padding: 0; }
.st-events li { padding: .4rem 0; border-bottom: 1px solid var(--st-line); }
.st-events__date { color: var(--st-muted); font-size: .82rem; margin-left: .5rem; }

/*
 * Related stories are a small, fixed set, so they use a plain grid rather than
 * the masonry layout - no Masonry runs on this page, and floated cards of
 * different heights would leave holes.
 */
.st-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: .25rem;
    align-items: start;
}

.st-related__grid .st-card { float: none; width: auto; }

.st-locked {
    background: var(--st-bg-soft);
    border: 1px dashed var(--st-line);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    color: var(--st-muted);
}

/* ---------------------------------------------------------------- */
/* Series                                                            */
/* ---------------------------------------------------------------- */

.st-series__head { max-width: 52rem; margin: 0 auto 1.5rem; }
.st-series__desc { color: var(--st-muted); font-size: 1.02rem; }
.st-series__intro, .st-series .st-section { max-width: 52rem; margin-left: auto; margin-right: auto; }

.st-timeline { list-style: none; padding: 0; margin: 0; }
.st-timeline__item { display: flex; gap: 1rem; padding-bottom: 1.5rem; position: relative; }

.st-timeline__marker {
    flex: 0 0 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--st-danger);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
}

.st-timeline__meta { font-size: .8rem; color: var(--st-muted); display: flex; gap: .5rem; align-items: center; }
.st-timeline__title { font-size: 1.05rem; font-weight: 700; margin: .25rem 0; }
.st-timeline__title a { color: inherit; text-decoration: none; }
.st-timeline__title a:hover { color: var(--st-danger); }
.st-timeline__excerpt { font-size: .9rem; color: var(--st-muted); margin: 0; }

/* ---------------------------------------------------------------- */
/* Submission form                                                   */
/* ---------------------------------------------------------------- */

.st-form__intro { font-size: .9rem; color: var(--st-muted); margin-bottom: 1rem; }

.st-form__privacy {
    font-size: .85rem;
    background: var(--st-bg-soft);
    border-left: 3px solid var(--st-danger);
    padding: .6rem .9rem;
    border-radius: 6px;
    margin: 0;
}

.st-checklist {
    max-height: 190px;
    overflow-y: auto;
    border: 1px solid var(--st-line);
    border-radius: 8px;
    padding: .5rem .75rem;
}

.st-checklist__item { display: flex; align-items: center; gap: .5rem; padding: .2rem 0; font-size: .9rem; }

.st-declaration {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    font-size: .88rem;
    line-height: 1.5;
    background: var(--st-bg-soft);
    border: 1px solid var(--st-line);
    border-radius: 8px;
    padding: .8rem 1rem;
}

.st-error { color: var(--st-danger); font-size: .82rem; margin-top: .25rem; display: none; }

.form-label.required::after { content: " *"; color: var(--st-danger); }
