/* ─── Monument page ───────────────────────────────────────────────────────────
   Laid out as a catalogue entry on Material You surfaces: a serif name and the
   period and type under it; the facts as a small-caps record on a tonal card;
   Meinecke's entries as a numbered list with hairline rules. Colour is kept
   for what it means (the period and survival dots); everything else is type.
   Colours are the theme's roles (theme.css), so light and dark both follow. */

.mp {
    max-width: 52rem;
    color: rgb(var(--on-surface));
    font: 400 1rem/1.6 'Inter', system-ui, sans-serif;
}
.mp [hidden] { display: none !important; }
.mp a { color: inherit; text-decoration: none; }

.mp-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: var(--dot);
    vertical-align: 0.1em;
}
.mp-sep { margin: 0 0.5rem; color: rgb(var(--outline)); }
.mp-muted { color: rgb(var(--on-surface-variant)); }

/* ── Head ── */
.mp-crumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    font-size: 0.875rem;
    color: rgb(var(--on-surface-variant));
}
.mp-crumb a:hover { color: rgb(var(--primary)); }
.mp-crumb span:last-child { color: rgb(var(--on-surface)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mp-title {
    margin: 0;
    font: 600 clamp(2.1rem, 4.4vw, 3.25rem)/1.1 'Cormorant Garamond', Georgia, serif;
    letter-spacing: -0.01em;
    color: rgb(var(--on-surface));
}
.mp-title-ar {
    margin: 0.35rem 0 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.5;
    text-align: left;
    color: rgb(var(--on-surface-variant));
}
.mp-kicker {
    margin: 0.6rem 0 0;
    font-size: 1rem;
    color: rgb(var(--on-surface-variant));
}
/* The project page's reference: M3 assist chips, outlined, 8px corners, an
   icon each: the Meinecke ID and the page of his vol. II. */
.mp-ref { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.35rem; }
.mp-ref-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 2rem;
    padding: 0 0.85rem 0 0.6rem;
    border: 1px solid rgb(var(--outline-variant));
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: rgb(var(--on-surface));
}
.mp-ref-chip .material-symbols-outlined { font-size: 1.05rem; color: rgb(var(--on-surface-variant)); }
.mp-kicker a:hover { color: rgb(var(--primary)); text-decoration: underline; text-underline-offset: 3px; }
.mp-lede {
    max-width: 62ch;
    margin: 1.25rem 0 0;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgb(var(--on-surface-variant));
}
/* The project page: the building under the title (which is the kind of work),
   the German name, and the line explaining an entry's kind. */
.mp-building {
    margin: 0.5rem 0 0;
    font: 500 clamp(1.3rem, 2.4vw, 1.65rem)/1.3 'Cormorant Garamond', Georgia, serif;
    color: rgb(var(--on-surface));
}
.mp-building a:hover { color: rgb(var(--primary)); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mp-building .mp-dot { vertical-align: 0.2em; }
.mp-name-de { margin: 0.4rem 0 0; font-size: 0.9375rem; font-style: italic; color: rgb(var(--on-surface-variant)); }
.mp-note-line { max-width: 62ch; margin: 0.75rem 0 0; font-size: 0.875rem; color: rgb(var(--on-surface-variant)); }
.mp-prose { max-width: 68ch; margin: 0.75rem 0 0; font-size: 1.0625rem; line-height: 1.75; color: rgb(var(--on-surface)); }
.mp-details { margin-top: 0.25rem; }
.mp-details summary {
    cursor: pointer;
    width: fit-content;
    padding: 0.4rem 0.9rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(var(--primary));
    list-style: none;
}
.mp-details summary::-webkit-details-marker { display: none; }
.mp-details summary::before { content: '▸'; display: inline-block; margin-right: 0.45rem; transition: transform 150ms ease; }
.mp-details[open] summary::before { transform: rotate(90deg); }
.mp-details summary:hover { background: rgb(var(--primary) / 0.08); }
.mp-details .mp-prose { color: rgb(var(--on-surface-variant)); }

/* ── People (project page) ──
   One M3 outlined card per person: role above, a monogram, the title and
   name, the Arabic name and dates where the person is in the database, and
   Meinecke's note on them. A card for someone with a page is a link. */
.mp-people-section { margin-top: 2rem; }
.mp-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 0.75rem; }
/* The record card's surface: flat, tonal, no outline; a link lifts on hover. */
.mp-person {
    position: relative;
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.25rem 1.15rem;
    border-radius: 1.25rem;
    background: rgb(var(--surface-container-low));
    transition: background-color 150ms ease, box-shadow 150ms ease;
}
a.mp-person:hover {
    background: color-mix(in srgb, rgb(var(--on-surface)) 5%, rgb(var(--surface-container-low)));
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 1px 3px 1px rgb(0 0 0 / 0.15);
}
a.mp-person:focus-visible { outline: 2px solid rgb(var(--primary)); outline-offset: 2px; }
.mp-person-mono {
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, rgb(var(--primary)) 16%, rgb(var(--surface-container-high)));
    color: rgb(var(--primary));
    font: 600 1.35rem/1 'Cormorant Garamond', Georgia, serif;
}
.mp-person-mono .material-symbols-outlined { font-size: 1.5rem; }
.mp-person-body { display: flex; flex-direction: column; min-width: 0; }
.mp-person-role {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(var(--on-surface-variant));
}
.mp-person-title { margin-top: 0.35rem; font-size: 0.8125rem; color: rgb(var(--on-surface-variant)); }
.mp-person-name {
    font: 600 1.3rem/1.2 'Cormorant Garamond', Georgia, serif;
    color: rgb(var(--on-surface));
}
.mp-person-title + .mp-person-name { margin-top: 0.05rem; }
.mp-person-role + .mp-person-name { margin-top: 0.35rem; }
.mp-person-ar { margin-top: 0.15rem; font-size: 1.2rem; line-height: 1.5; text-align: left; color: rgb(var(--on-surface-variant)); }
.mp-person-dates { margin-top: 0.25rem; font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: rgb(var(--on-surface-variant)); }
.mp-person-note { margin-top: 0.4rem; font-size: 0.8125rem; line-height: 1.45; color: rgb(var(--on-surface-variant)); }
.mp-person-go { position: absolute; top: 0.9rem; right: 0.9rem; font-size: 1.1rem; color: rgb(var(--on-surface-variant)); }
a.mp-person:hover .mp-person-go { color: rgb(var(--primary)); }

/* ── The record ── */
.mp-record {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.25rem;
    padding: 0.25rem 1.5rem;
    border-radius: 1.25rem;
    background: rgb(var(--surface-container-low));
}
/* With a place to show, the map takes a column beside the facts. */
.mp-record:has(.mp-minimap:not([hidden])) { grid-template-columns: 1fr 19rem; padding-right: 0.75rem; }
.mp-record:not(:has(dl > div:not([hidden]))) { display: none; }
.mp-record dl { margin: 0; }
.mp-record dl > div {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    gap: 1rem;
    padding: 0.85rem 0;
}
/* A rule above every shown row that has a shown row before it. */
.mp-record dl > div:not([hidden]) ~ div:not([hidden]) { border-top: 1px solid rgb(var(--outline-variant) / 0.7); }
.mp-record dt {
    padding-top: 0.15rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(var(--on-surface-variant));
}
.mp-record dd { margin: 0; }
.mp-record dd a:hover { color: rgb(var(--primary)); text-decoration: underline; text-underline-offset: 3px; }
.mp-note { display: block; margin-top: 0.15rem; font-size: 0.875rem; color: rgb(var(--on-surface-variant)); }
.mp-coords {
    margin-left: 0.75rem;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    color: rgb(var(--on-surface-variant));
}
#location-text:empty + .mp-coords { margin-left: 0; }

/* The building on a small map: the main map's basemap and marker, not
   interactive; the whole of it is a link to the full map there. */
.mp-minimap {
    position: relative;
    align-self: start;
    height: 14rem;
    margin: 0.75rem 0;
    border-radius: 1rem;
    overflow: hidden;
    background: rgb(var(--surface-container-high));
}
/* Outranks maplibre-gl.css, which makes the map container position: relative. */
.mp-minimap > .mp-minimap-map { position: absolute; inset: 0; }
.mp-minimap-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    padding: 0.6rem;
    border-radius: inherit;
}
.mp-minimap-link:focus-visible { outline: 2px solid rgb(var(--primary)); outline-offset: -2px; }
.mp-minimap-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 2rem;
    padding: 0 0.8rem 0 0.6rem;
    border-radius: 1rem;
    background: rgb(var(--surface-container) / 0.94);
    color: rgb(var(--on-surface));
    font-size: 0.8125rem;
    font-weight: 500;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 1px 3px 1px rgb(0 0 0 / 0.15);
    transition: background-color 150ms ease;
}
.mp-minimap-cta .material-symbols-outlined { font-size: 1rem; }
.mp-minimap-link:hover .mp-minimap-cta { background: color-mix(in srgb, rgb(var(--primary)) 22%, rgb(var(--surface-container))); }
.mp-minimap-marker { filter: drop-shadow(0 0 1.5px rgb(255 255 255 / 0.9)) drop-shadow(0 1px 2px rgb(0 0 0 / 0.4)); }

/* The project page's two records, the project and its building, side by side. */
.mp-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 0.75rem; margin-top: 2rem; align-items: start; }
.mp-pair > .mp-record { margin-top: 0; }
.mp-record.mp-card,
.mp-record.mp-card:has(.mp-minimap:not([hidden])) { grid-template-columns: 1fr; gap: 0; padding: 1.1rem 1.5rem 1.25rem; }
.mp-card-h {
    margin: 0 0 0.25rem;
    font: 600 1.35rem/1.3 'Cormorant Garamond', Georgia, serif;
    color: rgb(var(--on-surface));
}
.mp-card .mp-minimap { margin: 0.75rem 0 0; height: 13rem; order: 0; }
/* In a half-width card the coordinates get a line of their own, unbroken. */
.mp-card .mp-coords { display: block; margin: 0.15rem 0 0; white-space: nowrap; }
.mp-card dl > div:first-child { padding-top: 0.6rem; }

/* The editor's survival assessment on the project card: filter chips, a note,
   and a word on whether it saved. */
.mp-assess dd { display: flex; flex-direction: column; gap: 0.6rem; }
.mp-assess-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mp-assess-chips button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 2rem;
    padding: 0 0.8rem;
    border: 1px solid rgb(var(--outline-variant));
    border-radius: 0.5rem;
    background: transparent;
    color: rgb(var(--on-surface-variant));
    font: 500 0.8125rem/1 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}
.mp-assess-chips button:hover { background: rgb(var(--on-surface) / 0.06); }
.mp-assess-chips button[aria-pressed="true"] {
    border-color: transparent;
    background: color-mix(in srgb, rgb(var(--primary)) 22%, rgb(var(--surface-container-high)));
    color: rgb(var(--on-surface));
}
.mp-assess-chips button:disabled { opacity: 0.6; cursor: progress; }
.mp-assess input {
    height: 2.25rem;
    padding: 0 0.75rem;
    border: 1px solid rgb(var(--outline-variant));
    border-radius: 0.5rem;
    background: transparent;
    color: rgb(var(--on-surface));
    font: inherit;
    font-size: 0.875rem;
}
.mp-assess input:focus { outline: none; border-color: rgb(var(--primary)); }
.mp-assess-state { font-size: 0.8125rem; color: rgb(var(--on-surface-variant)); min-height: 1em; }
.mp-assess-state.is-error { color: rgb(var(--error)); }

/* ── Sections ── */
.mp-section { margin-top: 3rem; }
.mp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.mp-h2 {
    margin: 0;
    font: 600 1.75rem/1.2 'Cormorant Garamond', Georgia, serif;
    color: rgb(var(--on-surface));
}
.mp-count { font-size: 0.875rem; color: rgb(var(--on-surface-variant)); }

.mp-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.mp-filters select,
.mp-filters input {
    height: 2.5rem;
    padding: 0 0.85rem;
    border: 1px solid rgb(var(--outline-variant));
    border-radius: 0.5rem;
    background: transparent;
    color: rgb(var(--on-surface));
    font: inherit;
    font-size: 0.875rem;
}
.mp-filters select { max-width: 13rem; }
.mp-filters input { width: 6.75rem; }
.mp-filters input[type="search"] { width: 9.5rem; }
#projects-search { width: 13rem; }
@media (max-width: 640px) { #projects-search { width: 100%; } }
.mp-filters select:focus,
.mp-filters input:focus { outline: none; border-color: rgb(var(--primary)); box-shadow: 0 0 0 1px rgb(var(--primary)); }
.mp-filters button {
    height: 2.5rem;
    padding: 0 0.75rem;
    border: none;
    border-radius: 1.25rem;
    background: none;
    color: rgb(var(--primary));
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}
.mp-filters button:hover { background: rgb(var(--primary) / 0.08); }

/* What to show on the first row, the years on the second. */
.mp-filters-break { flex-basis: 100%; height: 0; }

/* AH / AD: an M3 segmented button, the chosen calendar filled tonal. */
.mp-cal {
    display: inline-flex;
    height: 2.5rem;
    border: 1px solid rgb(var(--outline-variant));
    border-radius: 1.25rem;
    overflow: hidden;
}
.mp-filters .mp-cal button {
    height: 100%;
    min-width: 3.25rem;
    padding: 0 0.85rem;
    border-radius: 0;
    color: rgb(var(--on-surface-variant));
    font-weight: 600;
    letter-spacing: 0.04em;
}
.mp-filters .mp-cal button + button { border-left: 1px solid rgb(var(--outline-variant)); }
.mp-filters .mp-cal button[aria-pressed="true"] {
    background: color-mix(in srgb, rgb(var(--primary)) 20%, rgb(var(--surface-container-high)));
    color: rgb(var(--on-surface));
}

/* Meinecke's entries: number in the margin, hairline between, the row's whole
   area a link with an M3 state layer on hover. */
.mp-entries { list-style: none; margin: 1rem 0 0; padding: 0; }
.mp-entries > li + li { border-top: 1px solid rgb(var(--outline-variant) / 0.7); }
.mp-entries > li { scroll-margin-top: 6rem; }
.mp-entries > li:target .mp-entry { background: rgb(var(--primary) / 0.1); }
.mp-entry {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1rem;
    margin: 0 -0.75rem;
    padding: 1rem 0.75rem;
    border-radius: 0.75rem;
    transition: background-color 150ms ease;
}
.mp-entry:hover { background: rgb(var(--on-surface) / 0.05); }
.mp-entry:focus-visible { outline: 2px solid rgb(var(--primary)); outline-offset: -2px; }
.mp-entry-no {
    padding-top: 0.3rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: rgb(var(--primary));
}
.mp-entry-body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.mp-entry-name {
    font: 600 1.3rem/1.3 'Cormorant Garamond', Georgia, serif;
    color: rgb(var(--on-surface));
}
.mp-entry:hover .mp-entry-name { color: rgb(var(--primary)); }
.mp-entry-facts,
.mp-entry-patron { font-size: 0.9375rem; color: rgb(var(--on-surface)); }
.mp-entry-date { font-variant-numeric: tabular-nums; }
.mp-label {
    margin-right: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(var(--on-surface-variant));
}
.mp-entry-note { font-size: 0.875rem; font-style: italic; color: rgb(var(--on-surface-variant)); }
.mp-empty { margin-top: 1rem; font-style: italic; color: rgb(var(--on-surface-variant)); }

/* ── Images ── */
.mp-figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.mp-figures figure { margin: 0; }
.mp-figures img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 1rem;
    background: rgb(var(--surface-container-high));
}
.mp-figures figcaption { margin-top: 0.5rem; font-size: 0.875rem; color: rgb(var(--on-surface-variant)); }

@media (max-width: 640px) {
    .mp-record { padding: 0.25rem 1.1rem; }
    .mp-record:has(.mp-minimap:not([hidden])) { grid-template-columns: 1fr; padding-right: 1.1rem; gap: 0; }
    .mp-minimap { order: -1; min-height: 11rem; margin: 1rem 0 0.25rem; }
    .mp-card .mp-minimap { order: 0; margin: 0.75rem 0 0; }
    .mp-record dl > div { grid-template-columns: 1fr; gap: 0.2rem; }
    .mp-entry { grid-template-columns: 1fr; gap: 0.25rem; }
    /* Type and sultan side by side, the patron across, then the years. */
    .mp-filters { display: grid; grid-template-columns: 1fr 1fr; }
    .mp-filters select,
    .mp-filters input,
    .mp-filters input[type="search"] { width: 100%; max-width: none; min-width: 0; }
    .mp-filters input[type="search"],
    .mp-filters > button,
    .mp-cal { grid-column: 1 / -1; }
    .mp-cal { width: 100%; }
    .mp-filters-break { display: none; }
    .mp-filters .mp-cal button { flex: 1; }
    .mp-entry-no { padding-top: 0; }
}

/* ── Index pages (sultans) ───────────────────────────────────────────────────
   The same catalogue look as the monument and project pages: a serif title,
   an M3 search bar and filter chips, and flat tonal cards. */
.mp.mp-wide { max-width: none; }
.mp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.75rem; }
.mp-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1 1 22rem;
    max-width: 34rem;
    height: 3.5rem;
    padding: 0 1.25rem;
    border-radius: 1.75rem;
    background: rgb(var(--surface-container-high));
    color: rgb(var(--on-surface-variant));
}
.mp-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: rgb(var(--on-surface));
    font: inherit;
    font-size: 1rem;
    outline: none;
}
.mp-search:focus-within { box-shadow: 0 0 0 2px rgb(var(--primary)); }
.mp-chipset { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mp-chipset button {
    height: 2rem;
    padding: 0 0.9rem;
    border: 1px solid rgb(var(--outline-variant));
    border-radius: 0.5rem;
    background: transparent;
    color: rgb(var(--on-surface-variant));
    font: 500 0.875rem/1 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: background-color 150ms ease;
}
.mp-chipset button:hover { background: rgb(var(--on-surface) / 0.06); }
.mp-chipset button[aria-pressed="true"] {
    border-color: transparent;
    background: color-mix(in srgb, rgb(var(--primary)) 22%, rgb(var(--surface-container-high)));
    color: rgb(var(--on-surface));
}

.mp-sultans { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.85rem; margin-top: 1.75rem; }
.mp-sultan {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.1rem 1.25rem 1.1rem;
    border-radius: 1.25rem;
    background: rgb(var(--surface-container-low));
    transition: background-color 150ms ease, box-shadow 150ms ease;
}
.mp-sultan:hover {
    background: color-mix(in srgb, rgb(var(--on-surface)) 5%, rgb(var(--surface-container-low)));
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 1px 3px 1px rgb(0 0 0 / 0.15);
}
.mp-sultan:focus-visible { outline: 2px solid rgb(var(--primary)); outline-offset: 2px; }
.mp-sultan-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.35rem; }
.mp-sultan-no {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgb(var(--on-surface-variant));
}
.mp-sultan-line {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgb(var(--on-surface-variant));
}
.mp-sultan-line::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--tone); }
.mp-sultan-name { font: 600 1.45rem/1.2 'Cormorant Garamond', Georgia, serif; color: rgb(var(--on-surface)); }
.mp-sultan:hover .mp-sultan-name { color: rgb(var(--primary)); }
.mp-sultan-ar { font-size: 1.2rem; line-height: 1.5; text-align: left; color: rgb(var(--on-surface-variant)); }
.mp-sultan-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
}
.mp-sultan-reign { font-size: 0.875rem; font-variant-numeric: tabular-nums; color: rgb(var(--on-surface-variant)); }
.mp-sultan-count { height: 1.75rem; padding: 0 0.6rem 0 0.45rem; font-size: 0.8125rem; }

/* Person page: reigns in the record, numbered when there are several, and the
   reign headings over a sultan's projects. */
.mp-reign { display: block; font-variant-numeric: tabular-nums; }
.mp-reign + .mp-reign { margin-top: 0.4rem; }
.mp-reign-no {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-right: 0.55rem;
    border-radius: 50%;
    background: rgb(var(--surface-container-high));
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(var(--on-surface-variant));
    vertical-align: 0.05em;
}
.mp-group-h {
    margin: 1.75rem 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(var(--on-surface-variant));
}
.mp-group-h span { margin-left: 0.4rem; color: rgb(var(--outline)); }
.mp-group-h + .mp-entries { margin-top: 0.5rem; }

/* A person's rank (blazon): the emblem large and centred, in the colour of
   the sultan's line and softened a little, with what it is and where it comes
   from under it. */
.mp-blazon { --tone: rgb(var(--primary)); display: flex; flex-direction: column; align-items: center; gap: 1rem; margin: 2rem 0 1rem; text-align: center; }
.mp-blazon[hidden] { display: none; }
.mp-blazon-shield { --tone: inherit; width: min(24rem, 82vw); }
.mp-blazon-shield svg { display: block; width: 100%; height: auto; opacity: 0.8; }
/* Flat and bold: the body solid in the line colour, the drawing's lines cut
   out of it in the page's own colour, as a carved silhouette reads. */
.mp-blazon-shield .body { fill: var(--tone); }
.mp-blazon-shield .ink { fill: rgb(var(--background)); }
.mp-blazon figcaption { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; max-width: 32rem; }
.mp-blazon-name { font: 600 1.3rem/1.3 'Cormorant Garamond', Georgia, serif; color: rgb(var(--on-surface)); }
.mp-blazon-src { font-size: 0.8125rem; line-height: 1.5; color: rgb(var(--on-surface-variant)); }
