/* Unified World Photography League Awards account workspace. */
:root {
    --member-portal-ink: #141310;
    --member-portal-paper: #f2efe8;
    --member-portal-surface: #fff;
    --member-portal-muted: #6f6a61;
    --member-portal-line: #d9d4c9;
    --member-portal-gold: #df9400;
}

body:has(.photo-league-member-portal) .pa12-page-hero { display: none; }
body:has(.photo-league-member-portal) .site-main { background: var(--member-portal-paper); }
body:has(.photo-league-member-portal) .pa12-content-page { max-width: none; padding: 0; }
body:has(.photo-league-member-portal) .pa12-shell.pa12-prose { width: 100%; max-width: none; margin: 0; padding: 0; }

.photo-league-member-portal {
    width: min(1240px, calc(100% - 40px));
    margin: 46px auto 84px;
    color: var(--member-portal-ink);
    background: var(--member-portal-surface);
    border: 1px solid var(--member-portal-line);
    box-shadow: 12px 12px 0 rgba(20, 19, 16, .08);
}

.photo-league-account-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    min-height: 150px;
    padding: 28px 34px;
    color: #fff;
    background: var(--member-portal-ink);
    border-top: 4px solid var(--member-portal-gold);
}

.photo-league-account-head__identity {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.photo-league-account-head__identity img {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    object-fit: cover;
    background: #e7e2d8;
    border: 2px solid var(--member-portal-gold);
}

.photo-league-account-head__identity span,
.photo-league-account-page-head > span,
.photo-league-member-dashboard__intro span {
    display: block;
    color: var(--member-portal-gold);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.photo-league-account-head__identity strong {
    display: block;
    margin: 5px 0;
    color: #fff;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.photo-league-account-head__identity small { color: rgba(255, 255, 255, .62); font-size: 12px; }
.photo-league-account-head__season { display: grid; justify-items: end; gap: 12px; }
.photo-league-account-head__season > span { color: rgba(255, 255, 255, .68); font-size: 12px; }
.photo-league-account-head__season > a,
.photo-league-member-dashboard__intro > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    color: var(--member-portal-ink);
    background: var(--member-portal-gold);
    border: 1px solid var(--member-portal-gold);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.photo-league-account-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: #fff;
    border-bottom: 1px solid var(--member-portal-line);
}

.photo-league-account-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 10px 14px;
    color: var(--member-portal-muted);
    border-right: 1px solid var(--member-portal-line);
    border-bottom: 3px solid transparent;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.photo-league-account-nav a:last-child { border-right: 0; }
.photo-league-account-nav a:hover,
.photo-league-account-nav a:focus-visible,
.photo-league-account-nav a.is-active { color: var(--member-portal-ink); background: #faf8f3; border-bottom-color: var(--member-portal-gold); }

.photo-league-member-portal__content { padding: 34px; background: var(--member-portal-paper); }
.photo-league-account-page-head { margin: 0 0 26px; padding: 0 0 22px; border-bottom: 1px solid var(--member-portal-line); }
.photo-league-account-page-head h2 { margin: 6px 0 8px; color: var(--member-portal-ink); font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.photo-league-account-page-head p { max-width: 680px; margin: 0; color: var(--member-portal-muted); line-height: 1.65; }

.photo-league-member-portal .photo-league-member-dashboard { width: 100%; max-width: none; margin: 0; }
.photo-league-member-dashboard__intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--member-portal-line);
}
.photo-league-member-dashboard__intro h2 { margin: 7px 0; color: var(--member-portal-ink); font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
.photo-league-member-dashboard__intro p { max-width: 670px; margin: 0; color: var(--member-portal-muted); line-height: 1.6; }
.photo-league-member-dashboard__stats { border: 1px solid var(--member-portal-line); }
.photo-league-member-dashboard__layout { margin-top: 18px; padding: 0; background: transparent; }
.photo-league-member-panel { border-color: var(--member-portal-line); box-shadow: 5px 5px 0 rgba(20, 19, 16, .035); }

.photo-league-member-portal .photo-league-membership-status,
.photo-league-member-portal .photo-league-membership,
.photo-league-member-portal .photo-league-quota,
.photo-league-member-portal .photo-league-certificates {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
.photo-league-member-portal .photo-league-membership-status { margin-top: 0; color: var(--member-portal-muted); background: #fff; border: 1px solid var(--member-portal-line); border-left: 4px solid #a66c00; }
.photo-league-member-portal .photo-league-membership-status.is-active { border-left-color: #24794b; }
.photo-league-member-portal .photo-league-membership-status.is-free { border-left-color: #e8a600; }
.photo-league-member-portal .photo-league-membership { margin-top: 28px; margin-bottom: 0; color: var(--member-portal-ink); }
.photo-league-member-portal .photo-league-membership > header { display: none; }
.photo-league-member-portal .photo-league-membership__grid { background: var(--member-portal-line); border-color: var(--member-portal-line); }
.photo-league-member-portal .photo-league-membership__plan { color: var(--member-portal-ink); background: #fff; }
.photo-league-member-portal .photo-league-membership__plan.is-featured { color: #fff; background: var(--member-portal-ink); }
.photo-league-member-portal .photo-league-quota { margin-top: 28px; margin-bottom: 0; }
.photo-league-member-portal .photo-league-certificates { margin-top: 0; margin-bottom: 0; color: var(--member-portal-ink); }
.photo-league-member-portal .photo-league-certificates__list { padding: 4px 24px; background: #fff; border: 1px solid var(--member-portal-line); }
.photo-league-member-portal .photo-league-certificates__list article:last-of-type { border-bottom: 0; }

.photo-league-account-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 66px;
    padding: 16px 34px;
    color: rgba(255, 255, 255, .58);
    background: var(--member-portal-ink);
    font-size: 11px;
}
.photo-league-account-foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.photo-league-account-foot a { color: #fff; font-weight: 700; text-decoration: none; }

body.pa12-theme.photo-award-profile-page .profile-nav-section { padding: 14px 12px 5px; }
body.pa12-theme.photo-award-profile-page .profile-nav-section span { color: var(--member-portal-gold); font-size: 9px; font-weight: 800; text-transform: uppercase; }
body.pa12-theme.photo-award-profile-page:has(.photo-league-member-portal) { background: var(--member-portal-paper) !important; }
body.pa12-theme.photo-award-profile-page:has(.photo-league-member-portal) #main { background: var(--member-portal-paper); }
body.pa12-theme.photo-award-profile-page .photo-league-member-portal .photo-award-profile-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 24px !important;
}
body.pa12-theme.photo-award-profile-page .photo-league-member-portal .profile-sidebar {
    top: 20px !important;
    margin: 0 !important;
    box-shadow: none !important;
}
body.pa12-theme.photo-award-profile-page .photo-league-member-portal .profile-content { min-width: 0; }
body.pa12-theme.photo-award-profile-page .photo-league-member-portal .profile-nav { background: transparent !important; border: 0 !important; box-shadow: none !important; }
body.pa12-theme.photo-award-profile-page .photo-league-member-portal .profile-nav-core,
body.pa12-theme.photo-award-profile-page .photo-league-member-portal .profile-nav-league { display: none !important; }
body.pa12-theme.photo-award-profile-page .photo-league-member-portal .profile-nav a {
    color: rgba(255, 255, 255, .76) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
}
body.pa12-theme.photo-award-profile-page .photo-league-member-portal .profile-nav a:hover,
body.pa12-theme.photo-award-profile-page .photo-league-member-portal .profile-nav a:focus-visible,
body.pa12-theme.photo-award-profile-page .photo-league-member-portal .profile-nav li.active a {
    color: var(--member-portal-ink) !important;
    background: var(--member-portal-gold) !important;
    border-color: var(--member-portal-gold) !important;
}

@media (max-width: 760px) {
    .photo-league-member-portal { width: calc(100% - 24px); margin: 22px auto 54px; box-shadow: 6px 6px 0 rgba(20, 19, 16, .07); }
    .photo-league-account-head { grid-template-columns: 1fr; min-height: 0; padding: 22px 20px; }
    .photo-league-account-head__season { justify-items: stretch; }
    .photo-league-account-head__season > a { width: 100%; }
    .photo-league-account-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .photo-league-account-nav a { min-height: 50px; border-bottom: 1px solid var(--member-portal-line); }
    .photo-league-account-nav a:nth-child(even) { border-right: 0; }
    .photo-league-account-nav a:last-child { grid-column: 1 / -1; }
    .photo-league-account-nav a.is-active { box-shadow: inset 0 -3px var(--member-portal-gold); }
    .photo-league-member-portal__content { padding: 22px 14px; }
    .photo-league-member-dashboard__intro { align-items: stretch; flex-direction: column; }
    .photo-league-member-dashboard__intro > a { width: 100%; }
    .photo-league-account-foot { align-items: flex-start; flex-direction: column; padding: 20px; }
    .photo-league-account-foot nav { gap: 14px; }
    .photo-league-member-portal .photo-league-membership__grid { grid-template-columns: 1fr; }
    body.pa12-theme.photo-award-profile-page .photo-league-member-portal .photo-award-profile-container { display: block !important; }
    body.pa12-theme.photo-award-profile-page .photo-league-member-portal .profile-sidebar {
        width: 100% !important;
        margin-bottom: 18px !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    body.pa12-theme.photo-award-profile-page .photo-league-member-portal .profile-nav { width: 100% !important; padding: 10px !important; overflow: visible !important; }
    body.pa12-theme.photo-award-profile-page .photo-league-member-portal .profile-nav ul {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 4px !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    body.pa12-theme.photo-award-profile-page .photo-league-member-portal .profile-nav li { display: block; width: auto !important; margin: 0 !important; }
    body.pa12-theme.photo-award-profile-page .photo-league-member-portal .profile-nav a {
        width: 100% !important;
        min-height: 44px !important;
        padding: 9px 10px !important;
        white-space: normal !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .photo-league-member-portal a { transition: none; }
}
