/* ── Magan Artists Page ─────────────────────────────────────────────────── */

.magan-artists {
    max-width: 780px;
    margin: 0 auto;
    font-family: inherit;
}


/* ── Single artist page (/exhibiting-artist/<name>/) ───────────────────────
   No theme page-title bar renders on this template (single-artist.php goes
   straight from get_header() into the content), unlike the hand-built
   gallery-artist Pages — so it needs its own top/bottom breathing room to
   not sit flush under the nav. */

.magan-single-artist-main {
    padding: 3rem 1.5rem;
}


/* ── Anchor index ────────────────────────────────────────────────────────── */

.magan-index {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.magan-index-heading {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.75rem;
}

.magan-index-list {
    line-height: 1.9;
    color: #333;
}

.magan-index-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.magan-index-link:hover {
    border-bottom-color: #333;
}


/* ── Artist section ──────────────────────────────────────────────────────── */

.magan-artist {
    margin-bottom: 0;
}

.magan-artist-name {
    /* Matches the theme's own h2 size (19.8px, Comfortaa) — this was
       previously a bespoke 1.1rem/17.6px that read noticeably smaller
       than the rest of the site. */
    font-size: 19.8px;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #111;
}

.magan-tier-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 1px 5px;
    margin-right: 0.5rem;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.magan-artist-subtitle {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    margin: -0.5rem 0 1rem;
}

.magan-artist-exhibition-heading {
    font-size: 16px;
    font-weight: 600;
    color: #444;
    margin: 1.5rem 0 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.magan-artist-exhibition-heading:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0.5rem;
}


/* ── Artworks table ──────────────────────────────────────────────────────── */

.magan-artworks-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.magan-artwork-row td {
    padding: 0.4rem 0.5rem;
    vertical-align: middle;
    border: none;
}

.magan-artwork-row:first-child td {
    padding-top: 0;
}

.magan-artwork-title {
    color: #222;
    font-size: 15px;
    width: 100%;
}

.magan-artwork-description {
    margin-top: 0.35rem;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.magan-artwork-description p {
    margin: 0 0 0.25rem;
}

.magan-artist-bio {
    /* Matches the site's actual body text exactly (Comfortaa, 15px,
       line-height 1.8) — this was previously a smaller, dimmer bespoke
       style (0.9rem/#444) that didn't match the rest of the site, e.g.
       Andrzej Pacak's hand-built bio on /about-artists/. */
    font-size: 15px;
    line-height: 1.8;
    color: inherit;
    margin-bottom: 1rem;
}

.magan-artist-bio p {
    margin: 0 0 0.5rem;
}

.magan-artwork-price-inline {
    font-size: 14px;
    color: #555;
    margin-left: 0.4rem;
}

.magan-artwork-thumb {
    width: 80px;
    min-width: 80px;
    text-align: left;
    padding-right: 0.75rem !important;
}

.magan-artwork-thumb img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.magan-artwork-thumb img:hover {
    opacity: 0.85;
}


/* ── Buy button ──────────────────────────────────────────────────────────── */

.magan-artwork-buy {
    white-space: nowrap;
    text-align: right;
    padding-left: 0.5rem !important;
}

.magan-buy-btn {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: #111;
    border-radius: 3px;
    padding: 3px 9px;
    text-decoration: none;
    transition: background 0.15s;
}

.magan-buy-btn:hover {
    background: #444;
    color: #fff;
    text-decoration: none;
}


/* ── Divider between artists ─────────────────────────────────────────────── */

.magan-artist-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 1.75rem 0;
}

.magan-artist:last-child .magan-artist-divider {
    display: none;
}


/* ── Artwork size ────────────────────────────────────────────────────────── */

.magan-artwork-size {
    font-size: 13px;
    color: #777;
    font-style: italic;
}


/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .magan-artwork-thumb img {
        width: 56px;
        height: 56px;
    }
}


/* ── Shop loop artist name ───────────────────────────────────────────────── */

.magan-shop-artist {
    font-size: 1rem;
    color: #555;
    margin: 0.15rem 0 0.35rem;
}

.magan-shop-artist a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.magan-shop-artist a:hover {
    border-bottom-color: #999;
}


/* ── Artist exhibition history (single artist page, opt-in on shortcode) ──── */

.magan-artist-exhibitions {
    font-size: 14px;
    color: #666;
    margin: 0 0 1rem;
}


/* ── Exhibiting artists listing page ([magan_exhibiting_artists]) ─────────── */

.magan-exhibiting-artists-title {
    /* Matches the theme's own h1 (36px, Comfortaa) — this is a page
       title, same scale as the rest of the site's page titles. */
    font-size: 36px;
    font-weight: 600;
    color: #111;
    text-align: center;
    margin: 0 0 2rem;
}

.magan-exhibiting-artists-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.magan-exhibiting-artists-item a {
    display: block;
    text-align: center;
    padding: 1.5rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #111;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.magan-exhibiting-artists-item a:hover {
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.magan-exhibiting-artists-name {
    display: block;
    font-size: 18px;
    font-weight: 500;
}

.magan-exhibiting-artists-shows {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 0.35rem;
}

@media (max-width: 900px) {
    .magan-exhibiting-artists-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .magan-exhibiting-artists-list {
        grid-template-columns: 1fr;
    }
}
