Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
/* ============================================================
   RECORD PAGES — shared sheet for Template:ResearchItem and
   Template:NewsItem (and Template:RecordRelated / RecordRow).
   One layout for both record types.

   Layout: a full-width head (eyebrow, title, byline, venue),
   then a grid. Desktop: main | facts, with the related list
   and footer under main. Phone: main, facts, related, footer.

   Colours are written literal-then-token: the --lw-* token
   carries night mode (defined in MediaWiki:Common.css), and a
   sanitiser strip of the var() line leaves the literal.
   ============================================================ */

.record {
    margin: 0 0 1.5rem;
    color: #34402d;
    color: var(--lw-ink-2, #34402d);
}

/* Template line breaks must not become layout boxes. */
.record p {
    margin: 0;
}

.record p:empty {
    display: none;
}


/* ---------- Head ---------- */

.record__head {
    margin: 0 0 1.5rem;
    padding: 0 0 1.25rem;
    border-bottom: 1px solid #d2ddce;
    border-bottom-color: var(--lw-line, #d2ddce);
}

/* Kind, type and date on one line, separated by short rules.
   Same label voice as the Main Page cards (11px, spaced caps). */
.record__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.25rem;
    margin: 0 0 0.6rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.3;
    color: #6c757d;
    color: var(--lw-ink-3, #6c757d);
}

.record__eyebrow > span + span {
    margin-left: 0.6rem;
    padding-left: 0.6rem;
    border-left: 1px solid #d2ddce;
    border-left-color: var(--lw-line, #d2ddce);
}

.record__kind a {
    color: #2d6a4f;
    color: var(--lw-green-600, #2d6a4f);
    text-decoration: none;
}

.record__kind a:hover {
    text-decoration: underline;
}

/* News category: a coloured dot, the same palette as the facet
   browser's category chips
   (Template:FacetBrowser/styles.css), plus eradication. */
.record--news .record__type::before {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.4rem;
    border-radius: 50%;
    background: #5b7a45;
    vertical-align: 0.05em;
}

.record--enforcement .record__type::before { background: #c75b3c; }
.record--eradication .record__type::before { background: #a83232; }
.record--trafficking .record__type::before { background: #9d6b2f; }
.record--report .record__type::before      { background: #7a6c3a; }
.record--research .record__type::before    { background: #4a7c9d; }
.record--fieldwork .record__type::before   { background: #2d6a4f; }
.record--community .record__type::before   { background: #6a5b86; }
.record--infrastructure .record__type::before { background: #343a40; }
html.skin-theme-clientpref-night .record--infrastructure .record__type::before { background: #ced4da; }
@media (prefers-color-scheme: dark) { html.skin-theme-clientpref-os .record--infrastructure .record__type::before { background: #ced4da; } }

.record__headline {
    margin: 0 0 0.5rem;
    max-width: 34em;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.01em;
    color: #1a2612;
    color: var(--lw-ink-1, #1a2612);
    overflow-wrap: break-word;
}

.record__byline {
    max-width: 52em;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #34402d;
    color: var(--lw-ink-2, #34402d);
}

.record__publine {
    margin-top: 0.2rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6c757d;
    color: var(--lw-ink-3, #6c757d);
}

.record__publine > span + span::before {
    content: " · ";
}


/* ---------- Grid ---------- */

/* The facts panel spans both rows, so the related list sits
   straight under the summary whatever the panel's height. The
   second row is 1fr so a tall panel's extra height lands below
   the related list, never between summary and list. */
.record__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "main facts"
        "more facts";
    column-gap: 2.5rem;
}

.record__layout--solo {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
        "main"
        "more";
}

.record__main {
    grid-area: main;
    min-width: 0;
}

.record__facts {
    grid-area: facts;
    align-self: start;
    min-width: 0;
}

.record__more {
    grid-area: more;
    min-width: 0;
}


/* ---------- Main column ---------- */

.record__label {
    margin: 0 0 0.4rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6c757d;
    color: var(--lw-ink-3, #6c757d);
}

.record__text {
    max-width: 42em;
    font-size: 1rem;
    line-height: 1.65;
    color: #34402d;
    color: var(--lw-ink-2, #34402d);
}

.record__aside {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    font-style: italic;
    color: #6c757d;
    color: var(--lw-ink-3, #6c757d);
}

.record__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

/* The anchor is the button, so the whole pill is clickable.
   Literal green, not the token: the token goes light in night
   mode, which would put white text on mint. */
.record__btn a,
.record__btn a:visited {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    background: #2d6a4f;
    background-image: none;
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}

.record__btn a:hover {
    background-color: #1b4332;
}

.record__btn a.external::after {
    display: none;
    content: none;
}

.record__btn.record__btn--quiet a,
.record__btn.record__btn--quiet a:visited {
    background: transparent;
    box-shadow: inset 0 0 0 1px #2d6a4f;
    color: #2d6a4f !important;
}

.record__btn.record__btn--quiet a:hover {
    background-color: #2d6a4f;
    color: #ffffff !important;
}


/* ---------- Facts panel ---------- */

/* A card in the Main Page's own terms: white, one hairline,
   12px corners, the same soft shadow. Each fact is a small
   label over its value, which keeps long values (agencies,
   places) readable in 300px. With an image, the
   picture fills the top at a fixed 3:2; without one, the card
   simply starts at its first row. */
.record__facts {
    overflow: hidden;
    background: #ffffff;
    background: var(--lw-surface, #ffffff);
    border: 1px solid #d2ddce;
    border-top-color: var(--lw-line, #d2ddce);
    border-right-color: var(--lw-line, #d2ddce);
    border-bottom-color: var(--lw-line, #d2ddce);
    border-left-color: var(--lw-line, #d2ddce);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.0575);
    font-size: 0.8125rem;
}

.record__image {
    background: #eef3ec;
}

.record__image a,
.record__image span {
    display: block;
}

.record__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.record__fact {
    padding: 0.6rem 1rem;
    border-top: 1px solid #e6ece3;
    border-top-color: var(--lw-line, #e6ece3);
    line-height: 1.45;
}

.record__fact:first-child,
.record__image + .record__fact {
    border-top: none;
}

.record__fact-label {
    display: block;
    margin-bottom: 0.1rem;
    font-size: 0.75rem;
    color: #6c757d;
    color: var(--lw-ink-3, #6c757d);
}

.record__fact-value {
    display: block;
    color: #1a2612;
    color: var(--lw-ink-1, #1a2612);
    font-weight: 500;
    overflow-wrap: anywhere;
}

.record__fact-value a.external::after {
    display: none;
    content: none;
}

.record__place > span + span::before {
    content: ", ";
}

.record__note {
    padding: 0.5rem 1rem 0.65rem;
    border-top: 1px solid #e6ece3;
    border-top-color: var(--lw-line, #e6ece3);
    font-size: 0.75rem;
    color: #6c757d;
    color: var(--lw-ink-3, #6c757d);
}


/* ---------- Related list ---------- */

/* Hyphen-only class names on the list and its heading: they are
   written in an #ask intro, where SMW turns '_' into a space. */

.record-related {
    margin-top: 2.25rem;
}

.record-related-head {
    padding: 0 0 0.5rem;
    border-bottom: 1px solid #d2ddce;
    border-bottom-color: var(--lw-line, #d2ddce);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6c757d;
    color: var(--lw-ink-3, #6c757d);
}

.record-related ul.record-related-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.record-related ul.record-related-list li.record-row {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    column-gap: 1rem;
    margin: 0;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e6ece3;
    border-bottom-color: var(--lw-line, #e6ece3);
    list-style: none;
    line-height: 1.4;
}

.record-row__date {
    font-size: 0.8125rem;
    color: #6c757d;
    color: var(--lw-ink-3, #6c757d);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.record-row__link {
    min-width: 0;
    font-size: 0.9375rem;
}

.record-row__link a {
    color: #2d6a4f;
    color: var(--lw-green-600, #2d6a4f);
    font-weight: 500;
}


/* ---------- Provenance footer ---------- */

/* One quiet line, no box: it is a colophon, not a notice. */
.record__provenance {
    margin-top: 1.75rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #6c757d;
    color: var(--lw-ink-3, #6c757d);
}

.record__provenance > span + span::before {
    content: " · ";
}

.record__provenance a {
    color: inherit !important;
    text-decoration: underline;
}

.record__provenance a.external::after {
    display: none;
    content: none;
}


/* ---------- Night mode (surfaces the tokens do not cover) ---------- */

html.skin-theme-clientpref-night .record__facts {
    box-shadow: none;
}

html.skin-theme-clientpref-night .record__image {
    background: #2a3a30;
}

@media screen and (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .record__facts {
        box-shadow: none;
    }

    html.skin-theme-clientpref-os .record__image {
        background: #2a3a30;
    }
}


/* ---------- Narrow screens ---------- */

/* One column: summary and buttons, then the facts, then the
   related list and footer. */
@media screen and (max-width: 820px) {
    .record__layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        grid-template-areas:
            "main"
            "facts"
            "more";
    }

    .record__facts {
        margin-top: 1.5rem;
    }

    .record__headline {
        font-size: 1.375rem;
    }

    .record__text {
        font-size: 0.9375rem;
    }

    .record-related ul.record-related-list li.record-row {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0.1rem;
    }
}