/* ============================================================
   Not Richard (richard-gerstl.html): the name-disambiguation page,
   linked only from the footer sign-off. Built on faq.css (same
   body#short scope, same .fq hero, panels and rows); this file adds
   only what that page doesn't have: the two portraits, panel headings,
   the comparison table and the link lists.
   ============================================================ */

/* ---------- Two portraits under the hero ---------- */

body#short .nr-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 2.4vw, 32px);
    align-items: start;
    max-width: 760px;
    margin-top: clamp(32px, 5vw, 64px);
}

body#short .nr-figure {
    display: grid;
    gap: 10px;
}

body#short .nr-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--fq-ink) 14%, transparent),
        0 10px 30px rgba(5, 0, 56, 0.12);
}

/* Photo and painting share one frame shape, so the comparison is fair. */
body#short .nr-pair .nr-figure img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 20%;
}

body#short .nr-figure figcaption {
    font-family: var(--font-meta) !important;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: var(--tracking-meta);
    color: var(--fq-soft);
}

body#short .nr-figure figcaption b {
    display: block;
    color: var(--fq-ink);
    font-weight: 600;
}

/* ---------- Panels: always open, with a plain heading ---------- */

body#short .nr-head {
    padding: clamp(28px, 4vw, 48px) var(--fq-pad) 0;
}

body#short .nr-head h2 {
    font-family: var(--font-display) !important;
    font-size: var(--fq-q-size);
    font-weight: var(--weight-h2);
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

body#short .nr-head p {
    margin-top: 8px;
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    line-height: 1.4;
    color: var(--fq-soft);
}

body#short .nr-panel .fq-q__body {
    padding-top: clamp(12px, 2vw, 24px);
}

body#short .nr-panel .fq-row:first-child {
    padding-top: var(--fq-row);
    border-top: 1px solid var(--fq-line);
}

body#short .nr-figure--side {
    max-width: 320px;
}

body#short .nr-text {
    display: grid;
    gap: 1em;
    max-width: 60ch;
}

/* ---------- Differences table ---------- */

body#short .nr-table-wrap {
    overflow-x: auto;
    margin-inline: calc(-1 * var(--fq-pad));
    padding-inline: var(--fq-pad);
}

body#short .nr-table {
    width: 100%;
    min-width: 520px;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 1rem;
    line-height: 1.4;
    text-align: left;
}

body#short .nr-table caption {
    padding-bottom: 12px;
    font-family: var(--font-meta) !important;
    font-size: 11px;
    text-align: left;
    color: var(--fq-soft);
}

body#short .nr-table th,
body#short .nr-table td {
    padding: 14px 16px 14px 0;
    border-top: 1px solid var(--fq-line);
    vertical-align: top;
}

body#short .nr-table thead th {
    padding-top: 0;
    border-top: 0;
    font-family: var(--font-display) !important;
    font-size: 1.375rem;
    font-weight: var(--weight-h3);
    letter-spacing: -0.005em;
}

body#short .nr-table thead small {
    display: block;
    font-family: var(--font-meta) !important;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: var(--tracking-meta);
    color: var(--fq-soft);
}

body#short .nr-table tbody th {
    width: 22%;
    padding-top: 17px;
    font-family: var(--font-meta) !important;
    font-size: 11px;
    font-weight: var(--weight-label);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--fq-soft);
}

body#short .nr-table td {
    width: 39%;
}

body#short .nr-table a {
    color: inherit;
    font-weight: 500;
    text-decoration-line: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

/* ---------- Two columns of links ---------- */

body#short .nr-links {
    display: grid;
    gap: 28px 40px;
}

@container fq (min-width: 880px) {
    body#short .nr-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body#short .nr-links h3 {
    margin: 0 0 12px;
    font-family: var(--font-display) !important;
    font-size: 1.375rem;
    font-weight: var(--weight-h3);
    line-height: 1.2;
}

body#short .nr-links ul {
    display: grid;
    gap: 8px;
}

body#short .nr-links a {
    color: inherit;
    font-weight: 500;
    text-decoration-line: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

body#short .nr-links a:hover,
body#short .nr-table a:hover {
    text-decoration-thickness: 2.5px;
}

body#short .nr-credits {
    padding: 24px var(--fq-pad) 0;
    font-family: var(--font-meta) !important;
    font-size: 12px;
    line-height: 1.55;
    color: var(--fq-soft);
}

body#short .nr-credits a {
    color: inherit;
    text-decoration-line: underline;
    text-underline-offset: 2px;
}

body#short .fq-trio dd a {
    color: inherit;
    font-weight: 500;
    text-decoration-line: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

/* The differences table scrolls inside its panel on phones instead of
   widening the whole list (grid items default to min-width: auto). */
body#short .fq-list:has(.nr-panel) {
    grid-template-columns: minmax(0, 1fr);
}

/* style.css pulls every "h3 + ul" up by 32px for its own lists. */
body#short .nr-links h3 + ul {
    margin-top: 0 !important;
}

body#short .nr-links h3 {
    margin-top: 0 !important;
    padding: 0;
    letter-spacing: normal;
}

/* style.css turns every "body#short p a" into a sticker button. */
body#short .nr-credits a {
    display: inline;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: none;
    color: inherit;
    text-decoration-line: underline !important;
    text-underline-offset: 2px;
}

body#short .nr-credits a:hover {
    border: 0;
}

/* Phones: one block per row, each answer labelled, so neither column
   hides behind a sideways scroll. */
@container fq (max-width: 599.98px) {
    body#short .nr-table {
        min-width: 0;
    }

    body#short .nr-table thead {
        display: none;
    }

    body#short .nr-table,
    body#short .nr-table tbody,
    body#short .nr-table tr {
        display: block;
    }

    body#short .nr-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 6px 16px;
        padding: 14px 0;
        border-top: 1px solid var(--fq-line);
    }

    body#short .nr-table tbody th {
        grid-column: 1 / -1;
        width: auto;
        padding: 0;
        border: 0;
    }

    body#short .nr-table td {
        width: auto;
        padding: 0;
        border: 0;
    }

    body#short .nr-table caption {
        display: block;
    }

    body#short .nr-table td {
        overflow-wrap: anywhere;
    }

    body#short .nr-table td::before {
        content: attr(data-who);
        display: block;
        font-family: var(--font-meta) !important;
        font-size: 11px;
        font-weight: 600;
        color: var(--fq-ink);
    }
}
