/* Planetary Map Catalog V2 — public catalog styles */

/* Crimson Text (files live in wp-content/font/, relative to this stylesheet). */
@font-face {
    font-family: 'Crimson Text';
    src: url('../../../../font/CrimsonText-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Crimson Text';
    src: url('../../../../font/CrimsonText-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Crimson Text';
    src: url('../../../../font/CrimsonText-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Crimson Text';
    src: url('../../../../font/CrimsonText-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Crimson Text';
    src: url('../../../../font/CrimsonText-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Crimson Text';
    src: url('../../../../font/CrimsonText-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

.pmc2-wrap {
    /* Clear the theme's fixed header. Adjust if the gap is wrong for your theme. */
    --pmc2-header-offset: 100px;
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--pmc2-header-offset) 1rem 1.5rem;
    color: #1f2733;
    /* PT Serif covers Cyrillic (Crimson Text does not), so Russian text no longer
       falls back to the heavier/larger Georgia. */
    font-family: 'Crimson Text', 'PT Serif', Georgia, 'Times New Roman', serif;
    font-size: 17px;
}
.pmc2-wrap a {
    text-decoration: none;
}

/* Persistent top bar: home link + free-text search, on every page. */
.pmc2-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline; /* home link, planet symbols, buttons and search text on one line */
    gap: .6rem 1rem;
    padding-bottom: .75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e2e2e2;
}
.pmc2-home {
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
/* Dashboard shortcut, shown only to logged-in editors. */
.pmc2-dash {
    padding: .12rem .6rem;
    background: #1f3a5f;
    color: #fff !important;
    border-radius: 4px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}
.pmc2-dash:hover {
    background: #16304f;
}
/* Yellow Sun glyph (matches the favicon), with a faint gold edge for light backgrounds. */
.pmc2-sun {
    color: #ffcc00;
    text-shadow: 0 0 1px #b8860b;
}
.pmc2-search {
    display: flex;
    gap: .35rem;
}
.pmc2-search input[type="search"] {
    min-width: 13rem;
    padding: .35rem .5rem;
    font-family: 'Roboto', sans-serif;
}
/* The active theme sets html{font-size:62.5%} (1rem = 10px), so rem-based sizes
   render at 62.5% of the usual value — a "1.2rem" search box was only 12px. Use
   px here so the size is correct regardless of the theme's rem base. */
.pmc2-wrap .pmc2-topbar .pmc2-search input[type="search"] {
    font-size: 18px !important;
}
.pmc2-wrap .pmc2-topbar .pmc2-search input[type="search"]::placeholder {
    font-size: 18px !important;
}
.pmc2-wrap .pmc2-topbar .pmc2-search button {
    font-size: 16px !important;
}

/* About: a small CSS-only popup, opened by a link left of the search box. */
.pmc2-about-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.pmc2-about-btn {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px !important; /* px: the theme makes 1rem=10px, so rem sizes render too small */
    color: #1f3a5f;
    white-space: nowrap;
}
.pmc2-about-btn:hover {
    text-decoration: underline;
}

/* "Utilities" dropdown (CSS-only, opens downward). */
.pmc2-util {
    position: relative;
}
.pmc2-util-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.pmc2-util-btn {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px !important; /* match About */
    color: #1f3a5f;
    white-space: nowrap;
}
.pmc2-util-btn:hover {
    text-decoration: underline;
}
.pmc2-util-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: .4rem;
    min-width: 190px;
    background: #fff;
    border: 1px solid #d4dfec;
    border-radius: 6px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
    z-index: 100001;
    padding: .3rem 0;
}
.pmc2-util-toggle:checked ~ .pmc2-util-menu {
    display: block;
}
.pmc2-util-menu a {
    display: block;
    padding: .5rem .95rem;
    color: #1f3a5f;
    text-decoration: none;
    white-space: nowrap;
}
.pmc2-util-menu a:hover {
    background: #f0f4f9;
}
.pmc2-about-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.pmc2-about-toggle:checked ~ .pmc2-about-overlay {
    display: flex;
}
.pmc2-about-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    cursor: pointer;
}
.pmc2-about-box {
    position: relative;
    max-width: 440px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    padding: 1.7rem 1.6rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
    color: #1f2733;
    font-size: .9rem;
    line-height: 1.55;
}
.pmc2-about-box p {
    margin: 0 0 .7rem;
}
.pmc2-about-box p:last-child {
    margin-bottom: 0;
}
.pmc2-about-lead {
    font-size: 1.1rem;
    margin-bottom: 1rem !important;
    padding-bottom: .6rem;
    border-bottom: 1px solid #e4e9f0;
}
.pmc2-about-close {
    position: absolute;
    top: .3rem;
    right: .6rem;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #8a96a3;
}
.pmc2-about-close:hover {
    color: #1f2733;
}

/* "Submit new" button + dialog (mirrors the About modal). */
.pmc2-submit-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.pmc2-submit-btn {
    margin-left: auto;          /* leftmost of the right-hand cluster (left of About) */
    cursor: pointer;
    font-weight: 600;
    font-size: 16px !important;
    color: #1f3a5f;
    white-space: nowrap;
}
.pmc2-submit-btn:hover {
    text-decoration: underline;
}
.pmc2-submit-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.pmc2-submit-toggle:checked ~ .pmc2-submit-overlay {
    display: flex;
}
.pmc2-submit-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    cursor: pointer;
}
.pmc2-submit-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 8px;
    padding: 1.6rem 1.6rem 1.7rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
    color: #1f2733;
}
.pmc2-submit-close {
    position: absolute;
    top: .3rem;
    right: .6rem;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #8a96a3;
}
.pmc2-submit-close:hover {
    color: #1f2733;
}
.pmc2-submit-title {
    margin: 0 0 .9rem;
    font-size: 1.3rem !important; /* !important: beat the theme/Elementor heading rule */
}
.pmc2-submit-form label {
    display: block;
    margin: 0 0 .8rem;
    font-size: 1.05rem !important; /* !important: a theme label rule was shrinking it */
    color: #3a4a5e;
    font-weight: 600;
}
.pmc2-submit-form input[type="email"],
.pmc2-submit-form textarea,
.pmc2-submit-form input[type="file"] {
    display: block;
    width: 100%;
    margin-top: .25rem;
    padding: .4rem .5rem;
    font: inherit;
    font-weight: 400;
    border: 1px solid #c9d4e0;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}
.pmc2-submit-send {
    margin-top: .3rem;
    padding: .5rem 1.4rem !important;
    background: #1f3a5f !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 5px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer;
}
.pmc2-submit-send:hover {
    background: #16304f !important;
}
.pmc2-submit-notice {
    margin: .5rem 0 1rem;
    padding: .6rem .9rem;
    border-radius: 6px;
    font-size: .95rem;
}
.pmc2-submit-notice.is-ok {
    background: #e6f4ea;
    color: #1e6b34;
    border: 1px solid #b7dcc1;
}
.pmc2-submit-notice.is-err {
    background: #fdecea;
    color: #a3261f;
    border: 1px solid #f3c1bd;
}

/* Planet/system icon bar — inline in the header (About) row: small rainbow discs
   with a prominent astrological symbol; the body name shows as a hover tooltip. */
.pmc2-planetbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
}
.pmc2-planet {
    display: inline-flex;
    text-decoration: none !important;
}
.pmc2-planet-disc {
    width: 22px;
    height: 22px;
    border-radius: 50% !important; /* !important: a theme rule was squaring it (a dark frame showed at Mars) */
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .12s ease;
}
.pmc2-planet:hover .pmc2-planet-disc {
    transform: scale(1.18);
}
/* No rectangular focus box around the symbol; give a round indicator instead. */
.pmc2-planet:focus {
    outline: none;
}
.pmc2-planet:focus-visible .pmc2-planet-disc {
    transform: scale(1.18);
    box-shadow: 0 0 0 2px #1f3a5f;
}
.pmc2-planet-sym {
    color: rgba(0, 0, 0, .72);
    font-size: 15px;
    line-height: 1;
    font-variant-emoji: text; /* keep ♀/♂/☄ monochrome, not emoji-with-background */
}

/* ---- Hero title block (map page) -------------------------------------- */
.pmc2-hero {
    position: relative;
    text-align: center;
    background: #f29200;
    color: #1a1a1a;
    border-radius: 8px;
    padding: 1.6rem 1.5rem 1.4rem;
    margin-bottom: 1.75rem;
}
.pmc2-hero-id {
    position: absolute;
    top: .5rem;
    left: .75rem;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: rgba(0, 0, 0, .55);
}
/* Manuscript maps: white title on a darker orange than the hero frame (#f29200). */
.pmc2-manuscript .pmc2-title {
    background: #c2560a;
    color: #fff;
}
/* Italic red "— Manuscript —" line under the title. The .pmc2-hero prefix beats
   the ".pmc2-hero p { color:#fff }" rule that was forcing it white. */
.pmc2-hero .pmc2-ms-badge {
    margin: .1rem 0 .5rem;
    color: #c20a0a;
    font-style: italic;
    font-weight: 700;
    font-size: 1rem;
}
/* Faint scale line directly under the title (e.g. "Scale 1: 200 000"), in the
   catalog's normal serif face. */
.pmc2-hero-scale {
    margin: .1rem 0 .35rem;
    font-size: .72rem;
    color: rgba(26, 26, 26, .34);
}
/* "(manuscript)" marker after a title in the author's work list. */
.pmc2-ms-tag {
    font-style: italic;
    color: #a8322a;
    font-size: .9em;
}
/* Manuscript "M" column in the search list view. */
.pmc2-col-ms,
.pmc2-cell-ms {
    width: 1.6rem;
    text-align: center;
}
.pmc2-cell-ms {
    color: #c20a0a;
    font-weight: 700;
}
/* Manuscript card in the gallery: red frame + red "M" in the top-right corner. */
.pmc2-card-ms {
    border-color: #c20a0a;
    box-shadow: 0 0 0 1px #c20a0a;
}
.pmc2-card-thumb {
    position: relative;
}
.pmc2-card-ms-tag {
    position: absolute;
    top: 4px;
    right: 6px;
    z-index: 2;
    color: #c20a0a;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1;
    text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
}
/* "Related map" links at the top of the content column. */
.pmc2-related-top {
    margin: 0 0 1rem;
}
.pmc2-related-map {
    margin: 0 0 .3rem;
    font-size: 15px;
}
.pmc2-related-map strong {
    color: #5a6571;
    margin-right: .25rem;
}
.pmc2-hero-authors {
    margin: 0 0 .5rem;
    font-size: 15px;
    letter-spacing: .03em;
    font-style: italic;
    color: #fff;
}
.pmc2-title {
    display: inline-block;
    margin: 0 0 .4rem;
    padding: .12rem .85rem;
    background: #ffba52;
    color: #333;
    font-size: 2.3rem;
    line-height: 1.25;
    font-weight: 700;
    border-radius: 6px;
}
.pmc2-hero .pmc2-title-en {
    margin: .35rem 0 0;
    font-size: 17px;
    font-style: normal;
    font-weight: 700;
    color: #fff;
}
.pmc2-hero .pmc2-title-rom {
    margin: .1rem 0 0;
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, .68);
}
.pmc2-hero p {
    color: #fff;
}
.pmc2-hero-target {
    margin: .6rem 0 .4rem;
    font-size: 17px;
}
.pmc2-hero-target a {
    color: #fff;
    font-weight: 700;
}
.pmc2-hero-type {
    color: rgba(255, 255, 255, .85);
}
.pmc2-no-data {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border: 1px dashed #c8ccd2;
    border-radius: 6px;
    color: #6a7280;
    font-style: italic;
    text-align: center;
}
.pmc2-hero-meta {
    margin: .35rem 0 0;
    font-size: 15px;
    color: #fff;
}
.pmc2-hero-date {
    font-weight: 600;
}
.pmc2-hero-meta a,
.pmc2-hero-authors a {
    color: #fff;
}

/* ---- Two-column body -------------------------------------------------- */
.pmc2-cols {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}
/* No image/content keeps the left column simply empty (no collapsing). */

/* The theme may draw table borders; the catalog tables never do. */
.pmc2-fields,
.pmc2-fields th,
.pmc2-fields td,
.pmc2-list-table,
.pmc2-list-table th,
.pmc2-list-table td {
    border: 0 !important;
}
.pmc2-lead img,
.pmc2-extra-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
}
.pmc2-extra-image {
    margin: 1rem 0 0;
}
.pmc2-lead-full {
    margin: 0 0 1rem;
}
.pmc2-lead-full img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ddd;
    border-radius: 4px;
}
/* Elongated full-resolution crop strip at the top of the left column. */
.pmc2-lead-crop {
    display: block;
    height: 150px;
    margin-bottom: 1rem;
    background-color: #eef2f7;
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: default;
}
.pmc2-content {
    margin-top: 1rem;
    line-height: 1.6;
}
.pmc2-content img {
    max-width: 100%;
    height: auto;
}
.pmc2-content-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0;
}
.pmc2-content-gallery a {
    line-height: 0;
}
.pmc2-content-gallery img {
    width: 150px;
    height: 110px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: zoom-in;
}

/* ---- People (role-grouped chips with portrait/monogram) --------------- */
.pmc2-role-head {
    margin: 1.1rem 0 .5rem;
    padding-bottom: .25rem;
    border-bottom: 2px solid #e3a008;
    font-size: 19px;
    font-weight: 700;
    color: #1f3a5f;
}
.pmc2-role-head:first-child {
    margin-top: 0;
}
.pmc2-chip {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .35rem 0;
}
.pmc2-avatar {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
}
.pmc2-avatar img,
.pmc2-avatar-initials {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pmc2-avatar-initials {
    background: #e8eef5;
    color: #3a597e;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid #d4dfec;
}
.pmc2-chip-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.pmc2-chip-name {
    font-weight: 700;
}
.pmc2-chip-name a {
    font-weight: 700;
    color: #2b2b2b;
}
.pmc2-chip-name a:hover {
    color: #000;
}
.pmc2-affil {
    font-size: 13px;
    color: #8a96a3;
}
.pmc2-unmatched {
    color: #b23b3b;
    border-bottom: 1px dotted #b23b3b;
    cursor: help;
}

/* ---- Field table + provenance box ------------------------------------- */
.pmc2-fields {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 15px;
    margin-top: 1.25rem;
}
.pmc2-fields th,
.pmc2-fields td {
    text-align: left;
    vertical-align: top;
    padding: .5rem .7rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.pmc2-fields a {
    overflow-wrap: anywhere;
    text-decoration: none;
}
.pmc2-fields tbody tr:nth-child(odd) {
    background: #f4f6f9;
}
.pmc2-fields th {
    width: 38%;
    color: #5a6571;
    font-weight: 600;
}
.pmc2-original-copy {
    margin-top: 1rem;
    padding: .75rem;
    background: #f3f3f3;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    font-size: .85rem;
}

/* ---- Person page ------------------------------------------------------ */
.pmc2-person-head {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 1rem;
}
.pmc2-portrait-img {
    margin: 0;
    position: relative;
}
/* Portrait caption / source as a tooltip shown on hover (or keyboard focus). */
.pmc2-portrait-img figcaption {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: max-content;
    max-width: 240px;
    margin: 0;
    padding: .45rem .6rem;
    background: #1f2733;
    color: #fff;
    font-size: .75rem;
    line-height: 1.35;
    border-radius: 5px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease;
    pointer-events: none;
}
.pmc2-portrait-img:hover figcaption,
.pmc2-portrait-img:focus-within figcaption {
    opacity: 1;
    visibility: visible;
}
.pmc2-portrait-img img,
.pmc2-portrait-initials {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #d4dfec;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pmc2-portrait-initials {
    background: #e8eef5;
    color: #3a597e;
    font-weight: 700;
    font-size: 2rem;
}
.pmc2-person-id h1 {
    margin: 0 0 .2rem;
}
.pmc2-life {
    font-weight: 400;
    color: #6a7682;
    font-size: 1.6rem;
    white-space: nowrap;
}
.pmc2-other-script {
    color: #5a6571;
    margin: .2rem 0;
}
.pmc2-affiliations {
    margin: .4rem 0;
    padding-left: 1.1rem;
    color: #5a6571;
    font-size: .9rem;
}
.pmc2-bio {
    line-height: 1.6;
    margin: 1rem 0;
}
.pmc2-role-block {
    margin: 1.5rem 0 .4rem;
    padding-bottom: .2rem;
    border-bottom: 2px solid #e3a008;
    font-size: 20px;
    color: #1f3a5f;
}
.pmc2-role-count {
    color: #9aa6b2;
    font-size: .85rem;
}
.pmc2-work-list,
.pmc2-result-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pmc2-work-list li,
.pmc2-result-list li {
    padding: .35rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.pmc2-year {
    color: #8a96a3;
    margin-left: .5rem;
    font-size: .85rem;
}
.pmc2-target-tag {
    color: #3f8f63;
    margin-left: .5rem;
    font-size: .8rem;
    text-transform: uppercase;
}
.pmc2-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}
.pmc2-gallery-img {
    margin: 0;
    max-width: 240px;
}
.pmc2-gallery-img img {
    max-width: 100%;
    height: auto;
}
.pmc2-gallery-img figcaption {
    font-size: .8rem;
    color: #666;
}

/* ---- Landing + browse ------------------------------------------------- */
.pmc2-target-facets {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 0;
}
.pmc2-target-facets a {
    display: inline-block;
    padding: .4rem .8rem;
    background: #1f3a5f;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}
.pmc2-target-facets a:hover {
    background: #16304f;
}

/* ---- Solar-system target browser -------------------------------------- */
.pmc2-solar {
    margin: .5rem 0 1rem;
}
.pmc2-solar svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}
/* Desktop shows the wide horizontal map; the vertical one is mobile-only. */
.pmc2-solar-mobile {
    display: none;
}
@media (max-width: 600px) {
    .pmc2-solar-desktop {
        display: none;
    }
    .pmc2-solar-mobile {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Render the vertical SVG at its natural pixel size (don't shrink to fit),
       so planet/moon discs stay big and tappable; scroll right for wide rows. */
    .pmc2-solar-mobile svg {
        width: auto;
        max-width: none;
    }
}
.pmc2-body {
    cursor: pointer;
}
.pmc2-body circle {
    transition: filter .12s ease;
}
.pmc2-body:hover circle {
    filter: brightness(1.18) drop-shadow(0 0 3px rgba(255, 210, 127, .9));
}
.pmc2-body-label {
    fill: #1f3a5f;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}
.pmc2-moon-label {
    fill: #3a4a5e;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}
.pmc2-body:hover .pmc2-body-label,
.pmc2-body:hover .pmc2-moon-label {
    fill: #e3a008;
}
.pmc2-ring {
    fill: none;
    stroke: #9bbce6;
    stroke-width: 2.5;
}
.pmc2-group {
    fill: #5a6571;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}
.pmc2-nolink {
    opacity: .45;
}
.pmc2-browse-title {
    margin-bottom: .25rem;
}
.pmc2-count {
    color: #8a96a3;
    margin-top: 0;
}
.pmc2-year-reset {
    display: inline-block;
    background: #fff4e0;
    border: 1px solid #f0c674;
    border-radius: 4px;
    padding: .35rem .7rem;
    font-size: 14px;
    margin: 0 0 1rem;
}
.pmc2-year-reset a {
    margin-left: .5rem;
    font-weight: 600;
    color: #1f3a5f;
    text-decoration: none;
}
.pmc2-note {
    color: #8a96a3;
    font-size: .85rem;
}
.pmc2-edit-link {
    margin-top: 1.5rem;
    font-size: .85rem;
}

/* ---- Result views: control bar (toggle + per-page) -------------------- */
.pmc2-results-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: .25rem 0 1rem;
}
.pmc2-perpage {
    font-size: 14px;
    color: #5a6571;
}
.pmc2-perpage-label {
    margin-right: .35rem;
}
.pmc2-perpage a {
    text-decoration: none;
    color: #3a597e;
    padding: 0 .25rem;
}
.pmc2-perpage-cur {
    font-weight: 700;
    color: #1f3a5f;
    padding: 0 .25rem;
}
.pmc2-view-toggle {
    display: inline-flex;
    border: 1px solid #c9d4e0;
    border-radius: 5px;
    overflow: hidden;
}
.pmc2-view-toggle a {
    padding: .5rem 1.2rem;
    text-decoration: none;
    color: #3a597e;
    background: #fff;
    font-size: 1.05rem;
    font-family: 'Roboto', sans-serif;
}
.pmc2-view-toggle a + a {
    border-left: 1px solid #c9d4e0;
}
.pmc2-view-toggle a.is-active {
    background: #1f3a5f;
    color: #fff;
}
/* Segmented control. !important overrides the theme/Elementor <button> styles
   (which added pink borders + pink text). */
.pmc2-size-toggle {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    background: #e9eef4;
    border-radius: 8px;
}
.pmc2-size-btn {
    padding: .4rem .9rem !important;
    background: transparent !important;
    color: #3a597e !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 1.05rem !important;
    font-family: 'Roboto', sans-serif !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}
.pmc2-size-btn.is-active {
    background: #1f3a5f !important;
    color: #fff !important;
}
.pmc2-size-btn:hover:not(.is-active) {
    background: rgba(31, 58, 95, .1) !important;
}

/* Gallery date-sort toggle (sits next to the image-size control). */
.pmc2-gallery-sort { display: inline-flex; }
.pmc2-gsort-btn {
    padding: .4rem .9rem !important;
    background: #e9eef4 !important;
    color: #3a597e !important;
    border: 0 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}
.pmc2-gsort-btn:hover { background: rgba(31, 58, 95, .15) !important; }
.pmc2-gsort-btn[data-dir] { background: #1f3a5f !important; color: #fff !important; }
.pmc2-gsort-arrow { font-size: 11px; }

/* List view table — no rule lines, zebra rows tell them apart. */
.pmc2-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.pmc2-list-table th,
.pmc2-list-table td {
    text-align: left;
    vertical-align: top;
    padding: .6rem .7rem;
    line-height: 1.45;
}
.pmc2-list-table tbody tr:nth-child(odd) {
    background: #f4f6f9;
}
.pmc2-list-table thead th {
    color: #1f3a5f;
    font-weight: 700;
    white-space: nowrap;
}
.pmc2-list-table th.pmc2-sortable {
    cursor: pointer;
    user-select: none;
}
.pmc2-list-table th.pmc2-sortable::after {
    content: " \2195";
    color: #9aa6b2;
    font-size: .8em;
}
.pmc2-list-table th.pmc2-sorted-asc::after {
    content: " \25B2";
    color: #1f3a5f;
}
.pmc2-list-table th.pmc2-sorted-desc::after {
    content: " \25BC";
    color: #1f3a5f;
}
.pmc2-list-table tbody tr:hover {
    background: #e7eef7;
}
.pmc2-col-thumb,
.pmc2-cell-thumb {
    width: 52px;
    min-width: 52px; /* don't let the column collapse on narrow mobile */
}
/* !important + max-width:none defeat the theme's global responsive image rule
   (img { max-width: 100%; height: auto }), which on a squished mobile table
   column otherwise flattens these thumbnails to a thin grey strip. */
.pmc2-cell-thumb img {
    width: 52px !important;
    height: 52px !important;
    max-width: none !important;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: block;
    background: #efece6; /* placeholder tone shown until the deferred image loads */
}
.pmc2-num {
    text-align: right;
    white-space: nowrap;
}
.pmc2-col-id {
    width: 1%;
}
.pmc2-cell-id {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.pmc2-cell-id a {
    color: #6b7a8d;
    text-decoration: none;
}
.pmc2-cell-id a:hover {
    text-decoration: underline;
}
.pmc2-result-en {
    display: block;
    margin-top: .1rem;
    font-size: 15px;
    color: #555;
}
.pmc2-excerpt {
    display: block;
    margin-top: .15rem;
    font-style: italic;
    font-size: 13px;
    color: #8a96a3;
    line-height: 1.4;
}

/* Gallery (large-image) view */
.pmc2-gallery-grid {
    --pmc2-card-min: 170px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--pmc2-card-min), 1fr));
    gap: 1.1rem;
}
.pmc2-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .15s ease;
}
.pmc2-card:hover {
    box-shadow: 0 2px 10px rgba(31, 58, 95, .15);
}
.pmc2-card-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    background: #eef2f7;
}
.pmc2-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pmc2-card-noimg {
    display: block;
    width: 100%;
    height: 100%;
    background: #e3e8ee;
}
.pmc2-card-title {
    padding: .5rem .6rem .1rem;
    font-weight: 600;
    /* Grows with the chosen image size (S/M/L/XL set --pmc2-card-min). */
    font-size: calc(12px + (var(--pmc2-card-min, 170px) - 100px) * 0.045);
    line-height: 1.3;
}
.pmc2-card-scale {
    display: block;
    padding: 0 .6rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: calc(10px + (var(--pmc2-card-min, 170px) - 100px) * 0.022);
    color: #9aa6b2;
}
.pmc2-card-meta {
    padding: .1rem .6rem .6rem;
    font-size: calc(10.5px + (var(--pmc2-card-min, 170px) - 100px) * 0.028);
    color: #8a96a3;
}
/* Corner badges over a gallery card image. Font scales with the chosen image
   size (S/M/L/XL set --pmc2-card-min): #id top-left, quad bottom-left, map no.
   bottom-right (M manuscript tag stays top-right). */
.pmc2-card-id,
.pmc2-card-quad,
.pmc2-card-mapno {
    position: absolute;
    z-index: 2;
    max-width: 60%;
    padding: 1px 5px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    border-radius: 3px;
    font-family: 'Roboto', sans-serif;
    font-size: calc(10.5px + (var(--pmc2-card-min, 170px) - 100px) * 0.025);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pmc2-card-id {
    top: 4px;
    left: 5px;
}
.pmc2-card-quad {
    bottom: 4px;
    left: 5px;
    max-width: 48%;
}
.pmc2-card-mapno {
    bottom: 4px;
    right: 5px;
    max-width: 48%;
}

/* Pagination */
.pmc2-pager {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    align-items: center;
    margin: 1.5rem 0 .5rem;
}
.pmc2-pager a,
.pmc2-pager-cur {
    display: inline-block;
    min-width: 2rem;
    padding: .35rem .55rem;
    text-align: center;
    border: 1px solid #c9d4e0;
    border-radius: 4px;
    text-decoration: none;
    color: #3a597e;
    font-size: .9rem;
}
.pmc2-pager a:hover {
    background: #f0f4f9;
}
.pmc2-pager-cur {
    background: #1f3a5f;
    color: #fff;
    border-color: #1f3a5f;
    font-weight: 700;
}
.pmc2-pager-gap {
    padding: 0 .2rem;
    color: #9aa6b2;
}

/* ---- Image lightbox --------------------------------------------------- */
.pmc2-zoomable {
    cursor: zoom-in;
}
.pmc2-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    overflow: auto;
    padding: 1vmin;
    text-align: center;
    background: rgba(0, 0, 0, .85);
    cursor: zoom-out;
}
.pmc2-lightbox img {
    /* Full native resolution: not capped to the viewport, scroll to pan. */
    max-width: none;
    max-height: none;
    margin: auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, .5);
}

/* Catalog-ID medium image on the map page: a click opens the two-stage zoom. */
.pmc2-mapid-medium {
    margin: 0 0 1.2rem;
}
.pmc2-mapid-medium img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    cursor: zoom-in;
}

/* Before/after "map slider": drag (or arrow-key) the divider to wipe between two
   full-content-width map versions. The handle is a non-interactive marker that
   tracks --pos exactly; all pointer interaction happens on the stage. */
/* About popup: the before/after astronaut slider sits at the top of the dialog,
   above the descriptive text. */
.pmc2-about-slider {
    margin: 0 0 1rem;
}
.pmc2-about-slider .pmc2-mapslider {
    margin: 0;
}
.pmc2-mapslider {
    margin: 0 0 1.25rem;
    width: 100%; /* fill the page content width (the images are sized to it) */
}
.pmc2-mapslider-stage {
    --pos: 50%;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    line-height: 0;
    user-select: none;
    background: #0d1117;
}
.pmc2-mapslider-stage:focus-visible {
    outline: 2px solid #1f3a5f;
    outline-offset: 3px;
}
.pmc2-mapslider-base {
    display: block;
    width: 100%;
    height: auto;
}
.pmc2-mapslider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    /* Reveal the "after" image from the left up to the divider position. */
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
/* The handle is the ONLY drag target: a narrow grab strip centred on the divider,
   so dragging is active on the centre line, not across the whole image. */
.pmc2-mapslider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 44px;
    margin-left: -22px;
    cursor: ew-resize;
    touch-action: none;
}
.pmc2-mapslider-handle::before { /* the thin divider line */
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
}
.pmc2-mapslider-handle::after { /* the round grip with arrows */
    content: "\25C2\00A0\25B8"; /* ◂ ▸ */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    box-sizing: border-box;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .45);
    font-size: 13px;
    line-height: 1;
    color: #1f3a5f;
}

/* Two-stage zoom overlay: fill the window width first, then true full resolution. */
.pmc2-lightbox-zoom {
    padding: 0;
}
/* Close button (top-right) — !important beats the theme's <button> styling. */
.pmc2-lb-close {
    position: fixed;
    top: 10px;
    right: 14px;
    z-index: 100000;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 28px !important;
    color: #fff !important;
    background: rgba(0, 0, 0, .55) !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    cursor: pointer;
}
.pmc2-lb-close:hover {
    background: rgba(0, 0, 0, .82) !important;
}
.pmc2-lightbox-zoom .pmc2-lb-fit {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    box-shadow: none;
    cursor: zoom-in;
}
.pmc2-lightbox-zoom .pmc2-lb-actual {
    width: auto;
    max-width: none;
    height: auto;
    margin: auto;
    cursor: zoom-out;
}

/* ---- Search form ------------------------------------------------------ */
.pmc2-searchform {
    background: #f4f6f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1.5rem;
}
.pmc2-searchgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem 1.25rem;
}
.pmc2-field {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-size: 14px;
}
.pmc2-field > span {
    font-weight: 600;
    color: #3a4a5e;
}
.pmc2-field input[type="search"],
.pmc2-field input[type="number"],
.pmc2-field select {
    width: 100%;
    padding: .4rem .5rem;
    font-size: 15px;
    border: 1px solid #c9d4e0;
    border-radius: 4px;
    background: #fff;
}
/* The Year field a touch larger so its "e.g. 1975" placeholder reads clearly. */
.pmc2-field input[type="number"] {
    font-size: 16px;
}
/* Grouped dropdown entries (optgroups + their options) at the base size, not smaller. */
.pmc2-field select optgroup,
.pmc2-field select option {
    font-size: 15px;
}
/* Search button directly below the Free text field (no overlap with the input). */
.pmc2-q-btn {
    align-self: flex-start;
    margin-top: .1rem;
    padding: .4rem 1.1rem;
    background: #1f3a5f;
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    cursor: pointer;
}
.pmc2-q-btn:hover {
    background: #16304f;
}
.pmc2-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 14px;
}
.pmc2-checks label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
/* Result filter bar: the checkboxes shown below the "Target: X" heading, above
   the results (search / browse / person). A light strip so it reads as a filter
   row rather than part of the search form. */
.pmc2-result-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin: .25rem 0 1rem;
    padding: .5rem .75rem;
    background: #f4f1ea;
    border: 1px solid #e6e0d4;
    border-radius: 6px;
}
.pmc2-result-filters-label {
    font-weight: 600;
    font-size: 13px;
    color: #5a6571;
}
.pmc2-result-filters .pmc2-checks {
    margin-top: 0;
    gap: .9rem;
}
.pmc2-search-actions {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}
.pmc2-search-submit {
    padding: .65rem 2.1rem;
    background: #1f3a5f;
    color: #fff;
    border: 0;
    border-radius: 5px;
    font-size: 22px;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
}
.pmc2-search-submit:hover {
    background: #16304f;
}
.pmc2-search-reset {
    color: #5a6571;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}
.pmc2-adv-toggle {
    margin-top: 1rem;
}
.pmc2-adv-handle {
    color: #1f3a5f;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.pmc2-adv-caret {
    display: inline-block;
    font-size: .8em;
}
.pmc2-advanced {
    margin-top: 1rem;
    border: 1px solid #d4dfec;
    border-radius: 6px;
    padding: .4rem 1rem 1rem;
    background: #fff;
}
.pmc2-advanced legend.pmc2-adv-legend {
    font-weight: 700;
    color: #1f3a5f;
    padding: 0 .4rem;
}
.pmc2-advanced legend.pmc2-adv-legend .pmc2-adv-handle {
    text-decoration: none;
}

/* ---- Decade bar chart + year-range slider ----------------------------- */
.pmc2-decchart {
    margin: 0 0 1.25rem;
}
/* Dual-handle year range slider */
.pmc2-yslider {
    padding: .3rem .2rem .15rem;
}
.pmc2-yslider-wrap {
    position: relative;
    height: 24px;
}
.pmc2-yslider-track,
.pmc2-yslider-fill {
    position: absolute;
    top: 50%;
    height: 4px;
    border-radius: 2px;
    transform: translateY(-50%);
    pointer-events: none;
}
.pmc2-yslider-track { left: 0; right: 0; background: #c9d4e0; }
.pmc2-yslider-fill  { background: #1f3a5f; }
.pmc2-yslider-wrap input[type="range"] {
    position: absolute;
    width: 100%;
    height: 24px;
    top: 0; left: 0;
    margin: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}
.pmc2-yslider-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: all;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #1f3a5f;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
    cursor: pointer;
    margin-top: -5px;
}
.pmc2-yslider-wrap input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #1f3a5f;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
    cursor: pointer;
}
.pmc2-yslider-wrap input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.pmc2-yslider-wrap input[type="range"]::-moz-range-track               { height: 4px; background: transparent; }
.pmc2-yslider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #8a96a3;
    margin-top: 3px;
    font-variant-numeric: tabular-nums;
}
.pmc2-decchart figcaption {
    font-size: 13px;
    color: #5a6571;
    margin-bottom: .25rem;
}
.pmc2-decchart svg {
    width: 100%;
    height: auto;
    display: block;
}
.pmc2-bar {
    fill: #1f3a5f;
}
.pmc2-bar:hover {
    fill: #e3a008;
}
.pmc2-bar-link {
    cursor: pointer;
}
.pmc2-axisline,
.pmc2-axistick {
    stroke: #c9d4e0;
    stroke-width: 1;
}
.pmc2-axislabel {
    font-size: 11px;
    fill: #8a96a3;
    text-anchor: middle;
}

/* Dual-handle range slider */
.pmc2-field-range > span {
    margin-bottom: .5rem;
}
.pmc2-range {
    position: relative;
    height: 34px;
}
/* The logarithmic scale slider (reuses .pmc2-range) gets two grid columns so the
   1:10 … 1:300 000 000 span has room to drag. */
.pmc2-field-scale {
    grid-column: span 2;
}
.pmc2-range-track,
.pmc2-range-fill {
    position: absolute;
    top: 15px;
    height: 4px;
    border-radius: 2px;
}
.pmc2-range-track {
    left: 0;
    right: 0;
    background: #d4dfec;
}
.pmc2-range-fill {
    background: #1f3a5f;
}
.pmc2-range input[type="range"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 34px;
    margin: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}
.pmc2-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1f3a5f;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    cursor: pointer;
}
.pmc2-range input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1f3a5f;
    border: 2px solid #fff;
    cursor: pointer;
}
.pmc2-range input[type="range"]::-moz-range-track {
    background: none;
}

@media (max-width: 782px) {
    .pmc2-wrap {
        --pmc2-header-offset: 70px;
    }
    .pmc2-cols {
        grid-template-columns: 1fr;
    }
    .pmc2-title {
        font-size: 1.5rem;
    }
}
