/* MWNS Centre Team — manager block, tutor carousel and bio pop-up.
   Colours and type follow the mwns.edu.au theme (Mulish headings, Questrial body). */

.mwns-team {
    --mwns-pink: #e61854;
    --mwns-heading: #414549;
    --mwns-text: #5f6366;
    --mwns-card-blue: #00b0f0;
    --mwns-heading-font: "Mulish", sans-serif;
    --mwns-body-font: "Questrial", sans-serif;
    font-family: var(--mwns-body-font);
    color: var(--mwns-text);
    box-sizing: border-box;
}

.mwns-team *,
.mwns-team *::before,
.mwns-team *::after {
    box-sizing: border-box;
}

/* ------------------------------------------------------------------ Manager */

.mwns-manager__head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.mwns-manager__photo.mwns-manager__photo.mwns-manager__photo {
    flex: none;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.mwns-manager__name.mwns-manager__name.mwns-manager__name {
    margin: 0 0 6px;
    font-family: var(--mwns-heading-font);
    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--mwns-pink);
}

.mwns-manager__tagline {
    margin: 0;
    font-size: 18px;
    line-height: 28px;
    font-weight: 700;
    color: var(--mwns-text);
}

.mwns-manager__bio p {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 28px;
}

.mwns-manager__quote {
    position: relative;
    margin: 28px 0 0;
    padding: 18px 56px;
    border: 0;
    border-top: 1px solid #c9cccf;
    border-bottom: 1px solid #c9cccf;
    background: none;
    text-align: center;
}

.mwns-manager__quote p {
    margin: 0;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    font-style: normal;
    color: var(--mwns-text);
}

.mwns-manager__mark {
    position: absolute;
    top: -30px;
    left: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 84px;
    line-height: 1;
    color: var(--mwns-pink);
}

.mwns-manager__mark--close {
    top: auto;
    left: auto;
    right: 0;
    bottom: -64px;
}

/* ------------------------------------------------------------------- Tutors */

.mwns-tutors {
    position: relative;
    padding: 0 44px;
}

.mwns-tutors__track {
    --mwns-per-view: 5;
    --mwns-gap: 28px;
    display: flex;
    gap: var(--mwns-gap);
    margin: 0;
    padding: 4px 0 8px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.mwns-tutors__track::-webkit-scrollbar {
    display: none;
}

/* Fewer people than fit across: centre them instead of hugging the left edge. */
.mwns-tutors--fits .mwns-tutors__track {
    justify-content: center;
}

.mwns-tutors__slide {
    flex: 0 0 calc((100% - (var(--mwns-per-view) - 1) * var(--mwns-gap)) / var(--mwns-per-view));
    min-width: 0;
    margin: 0;
    padding: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

button.mwns-tutors__arrow.mwns-tutors__arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--mwns-pink);
    cursor: pointer;
}

.mwns-tutors__arrow--prev { left: 0; }
.mwns-tutors__arrow--next { right: 0; }

button.mwns-tutors__arrow.mwns-tutors__arrow.mwns-tutors__arrow:hover,
button.mwns-tutors__arrow.mwns-tutors__arrow.mwns-tutors__arrow:focus-visible {
    background: rgba(230, 24, 84, 0.1);
    color: var(--mwns-pink);
}

button.mwns-tutors__arrow.mwns-tutors__arrow.mwns-tutors__arrow[disabled] {
    opacity: 0.25;
    cursor: default;
    background: none;
}

.mwns-tutors--fits button.mwns-tutors__arrow.mwns-tutors__arrow {
    display: none;
}

button.mwns-tutors__bio-btn.mwns-tutors__bio-btn {
    padding: 10px 24px;
    border: 1px solid var(--mwns-pink);
    border-radius: 50px;
    background: transparent;
    color: var(--mwns-pink);
    font-family: var(--mwns-body-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

button.mwns-tutors__bio-btn.mwns-tutors__bio-btn.mwns-tutors__bio-btn:hover,
button.mwns-tutors__bio-btn.mwns-tutors__bio-btn.mwns-tutors__bio-btn:focus-visible {
    background: var(--mwns-pink);
    color: #fff;
}

/* The staff card, drawn to the same 100 x 120 mm layout STAGE prints (1cqw = 1mm). */

.mwns-card {
    container-type: inline-size;
    position: relative;
    width: 100%;
    aspect-ratio: 100 / 120;
    background: #fff center / cover no-repeat;
    overflow: hidden;
}

.mwns-card__photo {
    position: absolute;
    top: 13cqw;
    left: 10cqw;
    width: 80cqw;
    height: 66cqw;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mwns-card .mwns-card__photo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.mwns-card__text {
    position: absolute;
    top: 80cqw;
    left: 13cqw;
    right: 13cqw;
    height: 32.5cqw;
    overflow: hidden;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

.mwns-card__name,
.mwns-card__role {
    font-weight: 700;
    line-height: 1.2;
    color: var(--mwns-card-blue);
}

.mwns-card__name {
    font-size: 4.4cqw;
    margin-bottom: 0.5cqw;
}

.mwns-card__role {
    font-size: 3.7cqw;
    margin-bottom: 1.5cqw;
}

.mwns-card__desc {
    font-size: 3.35cqw;
    line-height: 1.3;
    color: #111;
    max-height: 17.5cqw;
    overflow: hidden;
}

/* ------------------------------------------------------------------ Bio pop-up */

.mwns-bio {
    width: min(1200px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: var(--mwns-text);
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mwns-bio::backdrop {
    background: rgba(0, 0, 0, 0.7);
}

.mwns-bio__body {
    padding: 48px 120px 32px;
}

.mwns-bio__name.mwns-bio__name.mwns-bio__name {
    margin: 0 0 4px;
    font-family: var(--mwns-heading-font);
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--mwns-pink);
}

.mwns-bio__role.mwns-bio__role.mwns-bio__role {
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px dotted #b9c94a;
    font-family: var(--mwns-heading-font);
    font-size: 36px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--mwns-heading);
}

.mwns-bio__text p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 28px;
}

.mwns-bio__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 20px 120px;
    border-top: 1px solid #eef0f1;
}

.mwns-bio__contact a {
    color: var(--mwns-text);
    font-size: 14px;
    text-decoration: none;
}

.mwns-bio__contact a:hover {
    color: var(--mwns-pink);
}

button.mwns-bio__close.mwns-bio__close {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 0;
    border-radius: 0 16px 0 16px;
    background: var(--mwns-pink);
    color: #fff;
    cursor: pointer;
}

button.mwns-bio__close.mwns-bio__close.mwns-bio__close:hover,
button.mwns-bio__close.mwns-bio__close.mwns-bio__close:focus-visible {
    background: #c9104a;
    color: #fff;
}

/* ------------------------------------------------------------------ Responsive */

@media (max-width: 1200px) {
    .mwns-tutors__track { --mwns-per-view: 4; }
}

@media (max-width: 1024px) {
    .mwns-tutors__track { --mwns-per-view: 3; --mwns-gap: 20px; }
    .mwns-bio__body { padding: 48px 48px 24px; }
    .mwns-bio__contact { padding: 20px 48px; }
    .mwns-bio__role.mwns-bio__role.mwns-bio__role { font-size: 28px; }
}

@media (max-width: 767px) {
    .mwns-tutors { padding: 0 34px; }
    .mwns-tutors__track { --mwns-per-view: 2; --mwns-gap: 14px; }
    button.mwns-tutors__arrow.mwns-tutors__arrow { width: 32px; height: 32px; }
    .mwns-manager__head { align-items: flex-start; gap: 14px; }
    .mwns-manager__photo.mwns-manager__photo.mwns-manager__photo { width: 88px; height: 88px; }
    .mwns-manager__tagline,
    .mwns-manager__bio p,
    .mwns-manager__quote p { font-size: 16px; line-height: 26px; }
    .mwns-manager__quote { padding: 16px 40px; }
    .mwns-manager__mark { font-size: 64px; top: -22px; }
    .mwns-manager__mark--close { top: auto; bottom: -50px; }
    .mwns-bio__body { padding: 64px 22px 16px; }
    .mwns-bio__contact { padding: 16px 22px; }
    .mwns-bio__name.mwns-bio__name.mwns-bio__name { font-size: 20px; }
    .mwns-bio__role.mwns-bio__role.mwns-bio__role { font-size: 22px; }
    button.mwns-bio__close.mwns-bio__close { width: 52px; height: 52px; }
}

@media (max-width: 520px) {
    .mwns-tutors__track { --mwns-per-view: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .mwns-tutors__track { scroll-behavior: auto; }
    button.mwns-tutors__bio-btn.mwns-tutors__bio-btn { transition: none; }
}
