/* ==========================================================================
   THE FACTS REGISTER (Oct 16 2026, r2093 + r2099).
   Rows on a listing page that each say who said it and when we read it:
   "Halal facts" (or "Masjid facts"), "Members say", "What others say".
   Plain CSS, NOT in the Vite build (the link carries ?v=filemtime), scoped to
   `.up-facts` so it touches nothing else. Same cream, forest ink and brass as
   the counter board (listing-board.css); no new colour is introduced.
   The one idea: every row reads like a catalogue citation. The source leads in
   small brass capitals, the figure is set large in the display face with
   lining tabular numerals, then the plain sentence, then the way out. A machine
   summary sits in its own paper-toned block so it never passes for a person.
   No em dashes. No motion.
   ========================================================================== */

.up-facts {
    --uf-ink: #0f4c2d;
    --uf-forest: #166534;
    --uf-brass: #c8912e;
    --uf-brass-ink: #8a5a14;   /* brass text, AA on cream and on the summary paper (5.4:1) */
    --uf-stone: #e8e0d4;
    --uf-paper: #f6f1e8;
    --uf-text: #2a241c;
    --uf-muted: #5c4e3a;       /* 7.2:1 on #fff */
    margin: 28px 0 28px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--uf-stone);
    border-top: 2px solid var(--uf-brass);
    border-radius: 4px;
    color: var(--uf-text);
    font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
}
.up-facts__head { padding: 18px 20px 14px; border-bottom: 1px solid var(--uf-stone); }
.up-facts__title {
    margin: 0;
    padding: 0;
    border: 0;            /* the page's global h2 rule draws an underline; this heading has its own rule below the header */
    background: none;
    font-family: var(--font-display, 'Literata', Georgia, 'Times New Roman', serif);   /* the page's display face token, so the block moves with the estate */
    font-weight: 600;
    font-size: 1.375rem;
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: var(--uf-ink);
    text-wrap: balance;
}
.up-facts__stand { margin: 6px 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--uf-muted); max-width: 46ch; text-wrap: pretty; }

.up-facts__rows { list-style: none; margin: 0; padding: 0; }
.up-fact {
    display: grid;
    grid-template-columns: 5.25rem 6.25rem minmax(0, 1fr) auto;
    column-gap: 10px;
    align-items: baseline;
    padding: 14px 20px;
    border-bottom: 1px solid var(--uf-stone);
}
.up-fact:last-child { border-bottom: 0; }
.up-fact__source {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--uf-brass-ink);
}
.up-fact__figure {
    font-family: var(--font-display, 'Literata', Georgia, serif);
    font-weight: 600;
    font-size: 1.625rem;
    line-height: 1;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--uf-ink);
}
.up-fact__of { font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif; font-weight: 400; font-size: 0.75rem; letter-spacing: 0; color: var(--uf-muted); white-space: nowrap; }
.up-fact__what { font-size: 0.9375rem; line-height: 1.4; color: var(--uf-text); }
.up-fact__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--uf-forest);
    text-decoration: underline;
    text-decoration-color: var(--uf-brass);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    white-space: nowrap;
}
.up-fact__link:hover { color: var(--uf-ink); }
.up-fact__link:focus-visible { outline: 3px solid var(--uf-brass); outline-offset: 2px; border-radius: 2px; }
.up-fact--none .up-fact__what { color: var(--uf-muted); }

/* The machine summary: its own paper-toned block, labelled before it speaks. */
.up-facts__summary {
    margin: 0;
    padding: 16px 20px 18px;
    background: var(--uf-paper);
    border-top: 1px solid var(--uf-stone);
    border-radius: 0 0 3px 3px;
}
.up-facts__summary-label {
    margin: 0 0 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--uf-brass-ink);
    text-wrap: balance;
}
.up-facts__summary-text { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--uf-text); max-width: 62ch; text-wrap: pretty; }
.up-facts__themes { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.up-facts__themes li { font-size: 0.75rem; color: var(--uf-muted); background: #fff; border: 1px solid var(--uf-stone); border-radius: 999px; padding: 3px 10px; }
.up-facts__note { margin: 12px 0 0; font-size: 0.75rem; line-height: 1.45; color: var(--uf-muted); }

/* Phone: the source sits above its line, the figure leads, the link takes the full row. */
@media (max-width: 640px) {
    .up-facts { margin-top: 22px; margin-bottom: 22px; }
    .up-facts__head, .up-fact, .up-facts__summary { padding-left: 16px; padding-right: 16px; }
    .up-fact { grid-template-columns: auto minmax(0, 1fr); row-gap: 2px; padding-top: 14px; padding-bottom: 6px; }
    .up-fact__source { grid-column: 1 / -1; }
    .up-fact__figure { align-self: center; }
    .up-fact__link { grid-column: 1 / -1; padding-bottom: 2px; justify-self: start; }
}

/* ---- The fact lines (Halal facts, Masjid facts) ----------------------------
   A definition list. The ring in front of each line encodes one true thing:
   a filled forest dot means we hold a sourced fact, a hollow brass ring means
   we hold nothing. A line we hold leads with the fact; a line we do not hold
   is quiet and short. */
.up-facts__list { margin: 0; padding: 0; }
.up-factline {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    column-gap: 14px;
    align-items: baseline;
    padding: 12px 20px;
    border-bottom: 1px solid var(--uf-stone);
}
.up-factline:last-child { border-bottom: 0; }
.up-factline__label {
    position: relative;
    margin: 0;
    padding-left: 18px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--uf-brass-ink);
}
.up-factline__label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    box-sizing: border-box;
    border: 1.5px solid var(--uf-brass);
    background: transparent;
}
.up-factline--held .up-factline__label::before { background: var(--uf-forest); border-color: var(--uf-forest); }
/* WHO said it is part of the marker: a register (forest, filled), the owner (brass, filled), the place's own page (brass ring, forest centre). */
.up-factline--owner .up-factline__label::before { background: var(--uf-brass); border-color: var(--uf-brass); }
.up-factline--business .up-factline__label::before { background: var(--uf-forest); border-color: var(--uf-brass); border-width: 2.5px; }
.up-factline__body { margin: 0; font-size: 0.9375rem; line-height: 1.45; }
.up-factline--none { padding-top: 9px; padding-bottom: 9px; }
.up-factline__value { font-weight: 600; color: var(--uf-ink); }
.up-factline__prov { display: block; color: var(--uf-muted); }   /* the source and date sit on their own line under the value */
.up-factline__none { color: var(--uf-muted); }
.up-factline .up-fact__link { min-height: 44px; margin-left: 6px; }

@media (max-width: 640px) {
    .up-factline { grid-template-columns: minmax(0, 1fr); row-gap: 2px; padding: 12px 16px; }
}
