/* MyChess Events Directory — Single Organizer Profile */

.mco-profile {
    --mco-gold: #c99a4b;
    --mco-gold-dark: #a87727;
    --mco-ink: #111318;
    --mco-muted: #697180;
    --mco-border: #e2e5ea;
    --mco-soft: #f5f6f8;
    --mco-radius: 18px;
    color: var(--mco-ink);
    width: 100%;
}

.mco-profile *,
.mco-profile *::before,
.mco-profile *::after {
    box-sizing: border-box;
}

.mco-profile__back {
    align-items: center;
    color: #4f5867 !important;
    display: inline-flex;
    font-size: 14px;
    font-weight: 750;
    gap: 8px;
    margin: 0 0 18px;
    text-decoration: none !important;
}

.mco-profile__back:hover {
    color: var(--mco-gold-dark) !important;
}

.mco-profile-hero {
    align-items: center;
    background: #000000;
    border-radius: 22px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .13);
    display: grid;
    gap: 30px;
    grid-template-columns: 230px minmax(0, 1fr);
    margin-bottom: 28px;
    overflow: hidden;
    padding: 34px;
    position: relative;
}

.mco-profile-hero::after {
    background: radial-gradient(circle, rgba(201, 154, 75, .2) 0, rgba(201, 154, 75, 0) 68%);
    content: "";
    height: 360px;
    pointer-events: none;
    position: absolute;
    right: -90px;
    top: -160px;
    width: 360px;
}

.mco-profile-hero__logo {
    align-items: center;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 18px;
    position: relative;
    z-index: 1;
}

.mco-profile-hero__logo img {
    height: 100% !important;
    object-fit: contain !important;
    width: 100% !important;
}

.mco-profile-hero__placeholder {
    align-items: center;
    background: #f2f3f5;
    color: #333945;
    display: flex;
    font-size: 62px;
    font-weight: 850;
    height: 100%;
    justify-content: center;
    letter-spacing: -.05em;
    width: 100%;
}

.mco-profile-hero__placeholder.is-hidden {
    display: none;
}

.mco-profile-hero__content {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.mco-profile-hero__country {
    align-items: center;
    color: rgba(255, 255, 255, .72);
    display: flex;
    font-size: 14px;
    font-weight: 760;
    gap: 8px;
    letter-spacing: .03em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.mco-profile-hero h1 {
    color: #ffffff !important;
    font-size: clamp(32px, 4vw, 52px) !important;
    font-weight: 850 !important;
    letter-spacing: -.035em !important;
    line-height: 1.08 !important;
    margin: 0 0 18px !important;
    overflow-wrap: anywhere;
}

.mco-profile-hero__stats {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 22px;
}

.mco-profile-hero__stats span {
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 11px;
}

.mco-profile-hero__stats strong {
    color: #ffffff;
    font-weight: 850;
}

.mco-profile-hero__actions,
.mco-profile-claim__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mco-profile-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    min-height: 46px;
    padding: 11px 17px;
    text-decoration: none !important;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.mco-profile-button:hover {
    transform: translateY(-1px);
}

.mco-profile-button--gold {
    background: var(--mco-gold);
    color: #111111 !important;
}

.mco-profile-button--gold:hover {
    background: #d5a75a;
}

.mco-profile-button--light {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .28);
    color: #ffffff !important;
}

.mco-profile-button--light:hover {
    background: rgba(255, 255, 255, .15);
}

.mco-profile-button--dark {
    background: #111318;
    color: #ffffff !important;
}

.mco-profile-button--dark:hover {
    background: #262a31;
}

.mco-profile__main-grid {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 2fr) minmax(300px, .85fr);
    margin-bottom: 34px;
}

.mco-profile-panel {
    background: #ffffff;
    border: 1px solid var(--mco-border);
    border-radius: var(--mco-radius);
    box-shadow: 0 4px 18px rgba(13, 27, 62, .045);
    padding: 28px;
}

.mco-profile-panel h2,
.mco-profile-about__content h2 {
    color: #b27d29 !important;
    font-size: clamp(22px, 2.3vw, 30px) !important;
    font-weight: 820 !important;
    line-height: 1.2 !important;
    margin: 0 0 18px !important;
}

.mco-profile-about__content h2:not(:first-child) {
    margin-top: 28px !important;
}

.mco-profile-about__content h3 {
    color: #1a1d23 !important;
    font-size: 21px !important;
    margin: 24px 0 12px !important;
}

.mco-profile-about__content p,
.mco-profile-about__content li {
    color: #404755;
    font-size: 16px;
    line-height: 1.72;
}

.mco-profile-about__content p {
    margin: 0 0 16px;
}

.mco-profile-about__content p:last-child {
    margin-bottom: 0;
}

.mco-profile-about__content a {
    color: #9d6d20;
    font-weight: 700;
}

.mco-profile-contact {
    position: sticky;
    top: 24px;
}

.mco-profile-contact__list {
    margin: 0;
}

.mco-profile-contact__list > div {
    border-bottom: 1px solid #eceef1;
    padding: 13px 0;
}

.mco-profile-contact__list > div:first-child {
    padding-top: 0;
}

.mco-profile-contact__list > div:last-child {
    border-bottom: 0;
}

.mco-profile-contact dt {
    color: #7a8290;
    font-size: 11px;
    font-weight: 820;
    letter-spacing: .06em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.mco-profile-contact dd {
    color: #252a32;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
    margin: 0;
    overflow-wrap: anywhere;
}

.mco-profile-contact dd a {
    color: #875c19 !important;
    text-decoration: none !important;
}

.mco-profile-contact dd a:hover {
    text-decoration: underline !important;
}

.mco-profile-contact__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.mco-profile-contact__socials a {
    background: var(--mco-soft);
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    color: #333943 !important;
    font-size: 12px;
    font-weight: 780;
    padding: 8px 10px;
    text-decoration: none !important;
}

.mco-profile-contact__socials a:hover {
    border-color: #c99a4b;
    color: #8f631f !important;
}

.mco-profile-events {
    margin: 0 0 36px;
}

.mco-profile-section-heading {
    margin-bottom: 18px;
}

.mco-profile-section-heading__eyebrow,
.mco-profile-claim__eyebrow {
    color: #9b6c22;
    display: block;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.mco-profile-section-heading h2,
.mco-profile-claim h2 {
    color: #15181e !important;
    font-size: clamp(26px, 3vw, 36px) !important;
    font-weight: 850 !important;
    letter-spacing: -.025em !important;
    line-height: 1.16 !important;
    margin: 0 !important;
}

.mco-profile-tabs {
    background: #000000;
    border-radius: 14px;
    display: flex;
    gap: 7px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: thin;
}

.mco-profile-tabs button {
    align-items: center;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    color: rgba(255, 255, 255, .7) !important;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 780 !important;
    gap: 8px;
    min-height: 44px;
    padding: 9px 13px !important;
}

.mco-profile-tabs button strong {
    align-items: center;
    background: rgba(255, 255, 255, .13);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 11px;
    height: 23px;
    justify-content: center;
    min-width: 23px;
    padding: 0 6px;
}

.mco-profile-tabs button[aria-selected="true"] {
    background: #ffffff !important;
    color: #111318 !important;
}

.mco-profile-tabs button[aria-selected="true"] strong {
    background: #c99a4b;
    color: #111318;
}

.mco-profile-tab-panel[hidden] {
    display: none !important;
}

.mco-profile-event-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mco-profile-event-card {
    background: #ffffff;
    border: 1px solid var(--mco-border);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(13, 27, 62, .04);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: border-color .17s ease, box-shadow .17s ease, transform .17s ease;
}

.mco-profile-event-card:hover {
    border-color: #d1b078;
    box-shadow: 0 9px 25px rgba(13, 27, 62, .09);
    transform: translateY(-2px);
}

.mco-profile-event-card[hidden] {
    display: none !important;
}

.mco-profile-event-card__image {
    align-items: center;
    aspect-ratio: 16 / 9;
    background: #f0f2f4;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.mco-profile-event-card__image img {
    height: 100% !important;
    object-fit: contain !important;
    padding: 8px;
    width: 100% !important;
}

.mco-profile-event-card__image > span:not(.mco-profile-event-card__status) {
    color: #aab0b9;
    font-size: 54px;
}

.mco-profile-event-card__status {
    border-radius: 999px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 850;
    left: 10px;
    letter-spacing: .06em;
    padding: 6px 9px;
    position: absolute;
    text-transform: uppercase;
    top: 10px;
}

.mco-profile-event-card__status--current {
    background: #18824c;
}

.mco-profile-event-card__status--upcoming {
    background: #b47a1e;
}

.mco-profile-event-card__status--past {
    background: #626a77;
}

.mco-profile-event-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 17px;
}

.mco-profile-event-card__body time {
    color: #9a6b22;
    font-size: 12px;
    font-weight: 820;
    margin-bottom: 8px;
}

.mco-profile-event-card__body h3 {
    font-size: 18px !important;
    font-weight: 820 !important;
    line-height: 1.28 !important;
    margin: 0 0 9px !important;
}

.mco-profile-event-card__body h3 a {
    color: #171a20 !important;
    text-decoration: none !important;
}

.mco-profile-event-card__body h3 a:hover {
    color: #95651c !important;
}

.mco-profile-event-card__location {
    color: #6b7380;
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 12px;
}

.mco-profile-event-card__formats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 13px;
}

.mco-profile-event-card__format {
    background: #eceff3;
    border-radius: 999px;
    color: #343a44;
    font-size: 10px;
    font-weight: 820;
    padding: 5px 8px;
}

.mco-profile-event-card__format--classical {
    background: #e8edf7;
    color: #2d568d;
}

.mco-profile-event-card__format--rapid {
    background: #fbf0d8;
    color: #9a6615;
}

.mco-profile-event-card__format--blitz {
    background: #f8e3e3;
    color: #a43737;
}

.mco-profile-event-card__link {
    align-items: center;
    color: #8b5d18 !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 820;
    gap: 7px;
    margin-top: auto;
    text-decoration: none !important;
}

.mco-profile-show-more {
    background: #ffffff !important;
    border: 1px solid #d8dce2 !important;
    border-radius: 10px !important;
    color: #333943 !important;
    cursor: pointer;
    display: block;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    margin: 20px auto 0;
    min-height: 44px;
    padding: 10px 17px !important;
}

.mco-profile-show-more:hover {
    border-color: #c99a4b !important;
    color: #8d611e !important;
}

.mco-profile-events__empty {
    background: var(--mco-soft);
    border: 1px solid #e3e6ea;
    border-radius: 15px;
    padding: 28px;
    text-align: center;
}

.mco-profile-events__empty h3 {
    color: #20242b !important;
    font-size: 20px !important;
    margin: 0 0 8px !important;
}

.mco-profile-events__empty p {
    color: var(--mco-muted);
    margin: 0;
}

.mco-profile-claim {
    align-items: center;
    background: #f3eadb;
    border: 1px solid #e1c796;
    border-radius: 18px;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    padding: 28px 30px;
}

.mco-profile-claim p {
    color: #5d5140;
    line-height: 1.55;
    margin: 9px 0 0;
    max-width: 760px;
}

@media (max-width: 1024px) {
    .mco-profile-hero {
        grid-template-columns: 185px minmax(0, 1fr);
        padding: 28px;
    }

    .mco-profile__main-grid {
        grid-template-columns: minmax(0, 1fr) 310px;
    }

    .mco-profile-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mco-profile-hero {
        gap: 20px;
        grid-template-columns: 1fr;
        padding: 22px;
        text-align: center;
    }

    .mco-profile-hero__logo {
        justify-self: center;
        max-width: 190px;
        width: 72%;
    }

    .mco-profile-hero__country,
    .mco-profile-hero__stats,
    .mco-profile-hero__actions {
        justify-content: center;
    }

    .mco-profile-hero h1 {
        font-size: 32px !important;
    }

    .mco-profile__main-grid {
        grid-template-columns: 1fr;
    }

    .mco-profile-panel {
        padding: 21px;
    }

    .mco-profile-contact {
        position: static;
    }

    .mco-profile-event-grid {
        grid-template-columns: 1fr;
    }

    .mco-profile-claim {
        align-items: stretch;
        flex-direction: column;
        padding: 23px;
    }

    .mco-profile-claim__actions,
    .mco-profile-claim__actions .mco-profile-button {
        width: 100%;
    }
}

/* 0.9.1 profile refinements and contact modal */
.mco-profile__back {
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 999px;
    box-shadow: 0 3px 12px rgba(13, 27, 62, .05);
    padding: 8px 13px;
}

.mco-profile__back:hover,
.mco-profile__back:focus-visible {
    background: #fbf5ea;
    border-color: #d2ae72;
    outline: none;
}

.mco-profile button.mco-profile-button {
    appearance: none;
    cursor: pointer;
    font-family: inherit !important;
    line-height: 1.2;
}

.mco-profile-about__content p,
.mco-profile-about__content li {
    line-height: 1.78;
}

.mco-profile-about__content p {
    margin-bottom: 18px;
}

.mco-profile-contact dd,
.mco-profile-contact dd a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mco-profile-contact__socials {
    gap: 10px;
}

.mco-profile-contact__socials a {
    align-items: center;
    background: #f6f7f9;
    border: 1px solid #dfe3e8;
    border-radius: 999px;
    color: #222831 !important;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    padding: 0;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
    width: 40px;
}

.mco-profile-contact__socials a:hover,
.mco-profile-contact__socials a:focus-visible {
    background: #fbf3e5;
    border-color: #c99a4b;
    color: #8c5e19 !important;
    outline: none;
    transform: translateY(-1px);
}

.mco-profile-social-icon {
    display: block;
    height: 19px;
    width: 19px;
}

.mco-profile-sr-only {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.mco-profile-event-card:focus-within {
    border-color: #d1b078;
    box-shadow: 0 9px 25px rgba(13, 27, 62, .09);
    transform: translateY(-2px);
}

.mco-profile-event-card__image img {
    transition: transform .22s ease;
}

.mco-profile-event-card:hover .mco-profile-event-card__image img,
.mco-profile-event-card:focus-within .mco-profile-event-card__image img {
    transform: scale(1.015);
}

body.mco-profile-modal-open {
    overflow: hidden;
}

.mco-profile-modal[hidden] {
    display: none !important;
}

.mco-profile-modal {
    align-items: center;
    background: rgba(9, 11, 15, .72);
    display: flex;
    inset: 0;
    justify-content: center;
    overflow-y: auto;
    padding: 24px;
    position: fixed;
    z-index: 999999;
}

.mco-profile-modal__dialog {
    background: #ffffff;
    border: 1px solid #e1e4e9;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
    max-width: 720px;
    padding: 30px;
    position: relative;
    width: 100%;
}

.mco-profile-modal__close {
    align-items: center;
    appearance: none;
    background: #f0f2f5 !important;
    border: 1px solid #dfe3e8 !important;
    border-radius: 999px !important;
    color: #252a32 !important;
    cursor: pointer;
    display: flex;
    font-family: inherit !important;
    font-size: 25px !important;
    font-weight: 500 !important;
    height: 40px;
    justify-content: center;
    line-height: 1 !important;
    padding: 0 0 3px !important;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 40px;
}

.mco-profile-modal__close:hover,
.mco-profile-modal__close:focus-visible {
    background: #fbf2e3 !important;
    border-color: #c99a4b !important;
    outline: none;
}

.mco-profile-modal__heading {
    padding-right: 48px;
}

.mco-profile-modal__eyebrow {
    color: #99691f;
    display: block;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .09em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.mco-profile-modal__heading h2 {
    color: #15181e !important;
    font-size: clamp(25px, 4vw, 34px) !important;
    font-weight: 850 !important;
    letter-spacing: -.025em !important;
    line-height: 1.15 !important;
    margin: 0 0 10px !important;
}

.mco-profile-modal__heading p {
    color: #5f6774;
    line-height: 1.6;
    margin: 0 0 22px;
    max-width: 620px;
}

.mco-profile-contact-form {
    display: grid;
    gap: 16px;
}

.mco-profile-contact-form__row {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mco-profile-contact-form label {
    display: grid;
    gap: 7px;
}

.mco-profile-contact-form label > span:first-child {
    color: #2a3039;
    font-size: 13px;
    font-weight: 780;
}

.mco-profile-contact-form label strong {
    color: #a86e17;
}

.mco-profile-contact-form input[type="text"],
.mco-profile-contact-form input[type="email"],
.mco-profile-contact-form textarea {
    appearance: none;
    background: #ffffff;
    border: 1px solid #cfd5dd;
    border-radius: 10px;
    color: #171a20;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.45;
    padding: 12px 13px;
    transition: border-color .16s ease, box-shadow .16s ease;
    width: 100%;
}

.mco-profile-contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.mco-profile-contact-form input:focus,
.mco-profile-contact-form textarea:focus {
    border-color: #b98735;
    box-shadow: 0 0 0 3px rgba(201, 154, 75, .18);
    outline: none;
}

.mco-profile-contact-form__consent {
    align-items: flex-start;
    display: flex !important;
    gap: 10px !important;
}

.mco-profile-contact-form__consent input {
    flex: 0 0 auto;
    height: 18px;
    margin: 2px 0 0;
    width: 18px;
}

.mco-profile-contact-form__consent span {
    color: #505865 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.5;
}

.mco-profile-contact-form__honeypot {
    left: -9999px;
    position: absolute;
}

.mco-profile-contact-form__footer {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.mco-profile-contact-form__footer p {
    color: #777f8b;
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
}

.mco-profile-contact-form__footer p a {
    color: #8d601d;
    font-weight: 700;
}

.mco-profile-contact-form__status {
    border-radius: 10px;
    display: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    padding: 11px 13px;
}

.mco-profile-contact-form__status.is-visible {
    display: block;
}

.mco-profile-contact-form__status.is-success {
    background: #e9f7ef;
    border: 1px solid #b9dfc8;
    color: #17643c;
}

.mco-profile-contact-form__status.is-error {
    background: #fcecec;
    border: 1px solid #edc2c2;
    color: #952f2f;
}

.mco-profile-contact-form.is-sending {
    opacity: .78;
    pointer-events: none;
}

@media (max-width: 767px) {
    .mco-profile__back {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .mco-profile-modal {
        align-items: flex-start;
        padding: 12px;
    }

    .mco-profile-modal__dialog {
        border-radius: 16px;
        margin: 12px 0;
        padding: 23px 18px;
    }

    .mco-profile-modal__close {
        right: 12px;
        top: 12px;
    }

    .mco-profile-modal__heading {
        padding-right: 42px;
    }

    .mco-profile-contact-form__row {
        grid-template-columns: 1fr;
    }

    .mco-profile-contact-form__footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .mco-profile-contact-form__footer .mco-profile-button {
        width: 100%;
    }
}
