/* AE PERSON WORK ORGANISE V2
   Shared contributor profile design
   Awakening Earth
*/

/* Section boundaries and backgrounds */

.ae-person-profile-section .ae-person-work {
    margin-top: clamp(3rem, 5vw, 5rem);
}

.ae-person-profile-section .ae-person-work-group {
    background: #f1ede4;
    padding: clamp(1.3rem, 3vw, 2.3rem);
    border: 1px solid #dfdfd5;
    border-radius: 18px;
}

.ae-person-profile-section
.ae-person-work-group + .ae-person-work-group {
    margin-top: 1.5rem !important;
    border-top: 1px solid #d5dccf !important;
}

/* Articles — warm parchment */

.ae-person-profile-section
.ae-person-work-group[aria-labelledby="ae-person-work-articles"] {
    background: #f2eee5;
    border-color: #e1d9ca;
}

/* Sound healing — soft sage */

.ae-person-profile-section
.ae-person-work-group[aria-labelledby="ae-person-work-practices"] {
    background: #e7eee6;
    border-color: #cad9cb;
}

/* Editorial appearances — warm stone */

.ae-person-profile-section
.ae-person-work-group[aria-labelledby="ae-person-work-appearances"] {
    background: #eeebe3;
    border-color: #dcd6ca;
}

/* Equal-width article and practice cards */

.ae-person-profile-section
.ae-person-work-group .ae-card-grid.ae-blog-grid {
    display: grid !important;
    grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(1rem, 2vw, 1.6rem) !important;
    align-items: stretch;
}

.ae-person-profile-section
.ae-person-work-group .ae-card-grid.ae-blog-grid > .ae-card {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin: 0;
    background: #fbfaf6;
    border: 1px solid #d9ddd4;
    border-radius: 13px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(33, 54, 38, .055);
}

/* Consistent image proportions */

.ae-person-profile-section
.ae-person-work-card .ae-card-image-link {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dfe7dc;
}

.ae-person-profile-section
.ae-person-work-card .ae-card-image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ae-person-profile-section
.ae-person-work-card .ae-card-image-placeholder {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* Give meditations purposeful visual placeholders */

.ae-person-profile-section
.ae-person-work-group[aria-labelledby="ae-person-work-practices"]
.ae-card-image-placeholder {
    background:
      radial-gradient(
        circle at 50% 47%,
        rgba(211, 230, 205, .8),
        transparent 43%
      ),
      linear-gradient(
        135deg,
        #355848,
        #779681
      );
}

.ae-person-profile-section
.ae-person-work-group[aria-labelledby="ae-person-work-practices"]
.ae-card-image-placeholder::before {
    content: "♫";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: Georgia, serif;
    font-size: clamp(3.4rem, 6vw, 5rem);
    color: #f4eee0;
    line-height: 1;
    opacity: .92;
}

.ae-person-profile-section
.ae-person-work-group[aria-labelledby="ae-person-work-practices"]
.ae-card-image-placeholder::after {
    content: "SOUND HEALING";
    position: absolute;
    bottom: 14%;
    left: 0;
    width: 100%;
    text-align: center;
    color: #f2f4e8;
    font-family: Lato, sans-serif;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .17em;
}

/* Card text and spacing */

.ae-person-profile-section
.ae-person-work-card > .ae-meta {
    margin: 1.1rem 1.2rem .45rem;
    color: #536c5a;
}

.ae-person-profile-section
.ae-person-work-card > .ae-person-work-card-title {
    margin: 0 1.2rem .75rem;
    font-size: clamp(1.3rem, 1.8vw, 1.85rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ae-person-profile-section
.ae-person-work-card > p {
    margin: 0 1.2rem 1.3rem;
    line-height: 1.65;
}

.ae-person-profile-section
.ae-person-work-group-title {
    margin-bottom: 1.4rem;
    color: #2b4936;
}

/* Episodes — separate editorial band */

.ae-person-profile-section .ae-person-episodes {
    margin-top: 2rem;
    padding: clamp(1.3rem, 3vw, 2.3rem);
    background: #e8eee7;
    border: 1px solid #cedbcd;
    border-radius: 18px;
}

.ae-person-profile-section
.ae-person-episode-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.ae-person-profile-section
.ae-person-episode-card {
    min-width: 0;
    height: 100%;
    background: #fbfaf6;
    border: 1px solid #d4ddd2;
    border-radius: 12px;
    padding: 1.25rem;
}

/* Podcast collection credits */

.ae-person-profile-section
.ae-person-podcast-credits {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f1eee5;
    border: 1px solid #ded8c9;
    border-radius: 14px;
}

/* Link focus and hover */

.ae-person-profile-section
.ae-person-work-card a:focus-visible,
.ae-person-profile-section
.ae-person-episode-card a:focus-visible {
    outline: 2px solid #53765a;
    outline-offset: 3px;
}

.ae-person-profile-section
.ae-person-work-card:hover {
    border-color: #a3b7a1;
    box-shadow: 0 8px 24px rgba(33,54,38,.09);
}

/* Tablet and mobile */

@media (max-width: 760px) {
    .ae-person-profile-section
    .ae-person-work-group .ae-card-grid.ae-blog-grid,
    .ae-person-profile-section
    .ae-person-episode-grid {
        grid-template-columns: 1fr !important;
    }

    .ae-person-profile-section
    .ae-person-work-group,
    .ae-person-profile-section
    .ae-person-episodes {
        padding: 1.1rem;
        border-radius: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ae-person-profile-section
    .ae-person-work-card {
        transition: none;
    }
}
