/* =========================================================
   WWR MEMBER PROFILE
   BASIC STRUCTURE
========================================================= */

.wwr-profile {
    width: 100%;
    min-width: 0;

    background: var(--wwr-mainback);
    color: var(--wwr-post);
}


/* =========================================================
   WWR PROFILE / CHARACTER HEADER
========================================================= */

/* PORTRAIT FRAME */

.wwr-profile-top .wwr-profile-picture {
    outline: 1px solid var(--wwr-border);
    outline-offset: 0;
}


/* DIVIDER BETWEEN PORTRAIT AND INFORMATION */

.wwr-profile-top .wwr-profile-information::before {
    content: "";

    position: absolute;

    top: -30px;
    bottom: -30px;
    left: -16px;

    width: 1px;

    background: var(--wwr-border);

    pointer-events: none;
}


/* IDENTITY / BASIC INFORMATION DIVIDER */

.wwr-profile-top .wwr-profile-identity {
    border-bottom: 1px solid var(--wwr-border);
}


/* DIVIDER BETWEEN BASIC INFORMATION COLUMNS */

.wwr-profile-top .wwr-profile-fields {
    position: relative;
}

.wwr-profile-top .wwr-profile-fields::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;

    width: 1px;

    background: var(--wwr-border);

    pointer-events: none;
}


/* EXISTING STACKED LAYOUTS */

@media (max-width: 950px) {

    .wwr-profile-top .wwr-profile-information::before {
        display: none;
    }

}

@media (max-width: 700px) {

    .wwr-profile-top .wwr-profile-fields::before {
        display: none;
    }

}



/* ========================================
   PROFILE HEADER / STONE BORDER GLOW
========================================= */

.wwr-profile-top {
    --wwr-head-accent: var(--wwr-group, var(--wwr-acc));

    --wwr-head-bright: color-mix(
        in srgb,
        var(--wwr-head-accent) 82%,
        white
    );
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    align-items: stretch;
    gap: 30px;
    padding: 30px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--wwr-border);
background-image:  radial-gradient( 760px 560px at 110% -10%, color-mix(in srgb, var(--wwr-head-accent) 44%, transparent) 2%, color-mix(in srgb, var(--wwr-head-accent) 12%, transparent) 20%, color-mix(in srgb, var(--wwr-head-accent) 18%, transparent) 12%, transparent 54% ), linear-gradient( 180deg, color-mix(in srgb, var(--wwr-head-accent) 20%, transparent) 0%, transparent 39% ), linear-gradient( 270deg, color-mix(in srgb, var(--wwr-head-accent) 12%, transparent) 5%, transparent 37% );
background-repeat: no-repeat;
}


/* ========================================
   ILLUMINATED TOP BORDER
========================================= */

.wwr-profile-top::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 260px;
    max-width: 40%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--wwr-head-accent) 65%,
        var(--wwr-head-bright) 100%
    );
    z-index: 3;
    pointer-events: none;
}


/* ========================================
   ILLUMINATED RIGHT BORDER
========================================= */

.wwr-profile-top::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 250px;
    max-height: 45%;
    background: linear-gradient(
        180deg,
        var(--wwr-head-bright) 0%,
        var(--wwr-head-accent) 30%,
        transparent 100%
    );
    z-index: 3;
    pointer-events: none;
}


/* KEEP ALL PROFILE CONTENT ABOVE BACKGROUND */

.wwr-profile-top > * {
    position: relative;
    z-index: 1;
}


/* =========================================================
   PROFILE PICTURE
========================================================= */

.wwr-profile-picture {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 600 / 650;
    min-width: 0;
    overflow: hidden;
}

.wwr-profile-picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   CHARACTER INFORMATION
========================================================= */

.wwr-profile-information {
    display: flex;
    flex-direction: column;

    justify-content: flex-start;

    min-width: 0;

    padding: 5px 0;
}


/* =========================================================
   IDENTITY / HEADLINE AREA
========================================================= */

.wwr-profile-identity {
    position: relative;

    min-width: 0;

    padding-bottom: 27px;

    border-bottom: 1px solid var(--wwr-border);
}


/* ACCENT ON THE DIVIDER */

.wwr-profile-identity::after {
    content: "";

    position: absolute;
    bottom: -1px;
    left: 0;

    width: 150px;
    max-width: 45%;
    height: 1px;

    background: linear-gradient(
        90deg,
        var(--wwr-group, var(--wwr-acc)),
        transparent
    );

    box-shadow: 0 0 12px color-mix(in srgb, var(--wwr-group, var(--wwr-acc)) 35%, transparent);
}


/* CHARACTER USERNAME */

.wwr-profile-name {
    font-family: var(--wwr-title);
    font-size: clamp(55px, 5.5vw, 90px);
    font-weight: 400;
    line-height: 0.95;

letter-spacing: 3px;
    text-transform: uppercase;

    color: var(--wwr-post);

    overflow-wrap: anywhere;
}


/* ALIAS AND FULL NAME */

.wwr-profile-alias,
.wwr-profile-fullname {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;

    gap: 6px 12px;

    min-width: 0;
}

.wwr-profile-alias {
    margin-top: 19px;
}

.wwr-profile-fullname {
    margin-top: 10px;
}


/* SMALL IDENTITY LABELS */

.wwr-profile-identity-label {
    flex: 0 0 auto;

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--wwr-mid);
}


/* ALIAS AND FULL NAME VALUES */

.wwr-profile-identity-value {
    min-width: 0;

    font-size: 14px;
    line-height: 1.5;

    color: var(--wwr-post);

    overflow-wrap: anywhere;
}


/* =========================================================
   BASIC CHARACTER FIELDS
========================================================= */

.wwr-profile-fields {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 32px;
    row-gap: 23px;

    align-items: start;

    min-width: 0;

    margin-top: auto;
    padding-top: 35px;
}


/* INDIVIDUAL FIELDS */

.wwr-profile-field {
    display: flex;
    flex-direction: column;

    min-width: 0;

    gap: 5px;
}


/* LABEL */

.wwr-profile-field-label {
    display: block;

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--wwr-mid);
}


/* VALUE */

.wwr-profile-field-value {
    display: block;

    font-size: 14px;
    line-height: 1.45;

    color: var(--wwr-post);

    overflow-wrap: anywhere;
}


/* =========================================================
   WWR PROFILE / TAB NAVIGATION
========================================================= */

.wwr-profile-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));

    width: 100%;
    margin-top: 10px;

    border: 1px solid var(--wwr-border);

    background: var(--wwr-mainback);
}


/* INDIVIDUAL TABS */

.wwr-profile-tabs button.wwr-profile-tab {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;
    min-height: 64px;

    margin: 0;
    padding: 16px 12px;

    appearance: none;

    border: 0;
    border-right: 1px solid var(--wwr-border);
    border-radius: 0;

    background: transparent;
    background-image: none;

    color: var(--wwr-mid);

    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;

    letter-spacing: 0.13em;
    text-transform: uppercase;

    text-align: center;
    cursor: pointer;

    transition:
        color 0.25s ease,
        background 0.25s ease;
}

.wwr-profile-tabs button.wwr-profile-tab:last-child {
    border-right: 0;
}


/* =========================================================
   STONE ACCENT / TOP EDGE
========================================================= */

.wwr-profile-tab::after {
    content: "";

    position: absolute;

    top: 0;
    left: 16%;
    right: 16%;

    height: 2px;

    background: var(--wwr-group, var(--wwr-acc));

    box-shadow:
        0 0 8px
        color-mix(
            in srgb,
            var(--wwr-group, var(--wwr-acc)) 65%,
            transparent
        ),

        0 4px 18px
        color-mix(
            in srgb,
            var(--wwr-group, var(--wwr-acc)) 35%,
            transparent
        );

    opacity: 0;
    transform: scaleX(0.35);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


/* =========================================================
   HOVER
========================================================= */

.wwr-profile-tabs button.wwr-profile-tab:hover {
    color: var(--wwr-post);

    background:
        radial-gradient(
            ellipse at 50% 0%,
            color-mix(
                in srgb,
                var(--wwr-group, var(--wwr-acc)) 12%,
                transparent
            ) 0%,
            transparent 75%
        );
}

.wwr-profile-tab:hover::after {
    opacity: 0.55;
    transform: scaleX(0.65);
}


/* =========================================================
   ACTIVE TAB
========================================================= */

.wwr-profile-tabs button.wwr-profile-tab.is-active {
    color: var(--wwr-post);

    background:
        radial-gradient(
            ellipse at 50% 0%,
            color-mix(
                in srgb,
                var(--wwr-group, var(--wwr-acc)) 24%,
                transparent
            ) 0%,
            color-mix(
                in srgb,
                var(--wwr-group, var(--wwr-acc)) 8%,
                transparent
            ) 38%,
            transparent 78%
        );
}

.wwr-profile-tab.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}


/* KEYBOARD FOCUS */

.wwr-profile-tabs button.wwr-profile-tab:focus-visible {
    outline: 1px solid var(--wwr-group, var(--wwr-acc));
    outline-offset: -4px;
}

/* =========================================================
   TAB CONTENT
========================================================= */

.wwr-profile-content {
    width: 100%;
    min-width: 0;

    border: 1px solid var(--wwr-border);
    border-top: 0;
}


.wwr-profile-panel {
    width: 100%;
    min-width: 0;

    padding: 35px;
}


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


/* TEMPORARY PLACEHOLDERS */

.wwr-profile-placeholder {
    width: 100%;
    min-width: 0;

    padding: 25px;

    border: 1px solid var(--wwr-border);
}

/* ========================================
   PROFILE / FREEFORM
========================================= */

.wwr-profile-freeform {
    width: 100%;
    max-width: 975px;

    margin: 0 auto;

    line-height: 1.7;
    overflow-wrap: break-word;
}


/* FULL-WIDTH CUSTOM FREEFORM LAYOUTS */

.wwr-profile-freeform:has(.wwr-freeform-wide) {
    max-width: none;
}



/* =========================================================
   WWR PROFILE / TIMELINE
========================================================= */

.wwr-profile-timeline {
    width: 100%;
    max-width: 1100px;
    min-width: 0;

    margin: 0 auto;
}


/* =========================================================
   TIMELINE STRUCTURE
========================================================= */

.wwr-profile-timeline-list {
    position: relative;

    width: 100%;
    min-width: 0;
}


/* CONTINUOUS VERTICAL LINE */

.wwr-profile-timeline-list:has(
    > .wwr-profile-timeline-entry
)::before {
    content: "";

    position: absolute;

    top: 9px;
    bottom: 9px;
    left: 16px;

    width: 1px;

    background: linear-gradient(
        180deg,
        var(--wwr-group, var(--wwr-acc)) 0%,
        var(--wwr-border) 18%,
        var(--wwr-border) 85%,
        transparent 100%
    );
}


/* =========================================================
   INDIVIDUAL ENTRIES
========================================================= */

.wwr-profile-timeline-entry {
    position: relative;

    min-width: 0;

    padding: 0 0 55px 65px;
}

.wwr-profile-timeline-entry:last-child {
    padding-bottom: 0;
}


/* STONE MARKER */

.wwr-profile-timeline-entry::before {
    content: "";

    position: absolute;

    top: 4px;
    left: 9px;

    width: 14px;
    height: 14px;

    box-sizing: border-box;

    border: 2px solid
        var(--wwr-group, var(--wwr-acc));

    border-radius: 50%;

    background: var(--wwr-mainback);

    box-shadow:
        0 0 12px
        color-mix(
            in srgb,
            var(--wwr-group, var(--wwr-acc)) 35%,
            transparent
        );
}


/* DELICATE CONNECTOR BETWEEN LINE AND CONTENT */

.wwr-profile-timeline-entry::after {
    content: "";

    position: absolute;

    top: 10px;
    left: 23px;

    width: 24px;
    height: 1px;

    background: linear-gradient(
        90deg,
        var(--wwr-border),
        transparent
    );
}


/* =========================================================
   EVENT HEADING
========================================================= */

.wwr-profile-timeline-header {
    margin-bottom: 21px;
}


/* DATE / PERIOD */

.wwr-profile-timeline-date {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px 15px;

    min-height: 21px;
    margin-bottom: 10px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;

    letter-spacing: 0.1em;
    text-transform: uppercase;

    color: var(--wwr-group, var(--wwr-acc));
}


/* SECRET INDICATOR */

.wwr-profile-timeline-secret {
    color: var(--wwr-mid);

    font-size: 10px;
    font-weight: 400;
}


/* EVENT TITLE */

.wwr-profile-timeline-title {
    margin: 0;

    font-family: var(--wwr-title);
    font-size: clamp(35px, 3.5vw, 50px);
    font-weight: 400;
    line-height: 1.1;

    letter-spacing: 0.01em;
    text-transform: uppercase;

    color: var(--wwr-post);

    overflow-wrap: anywhere;
}


/* =========================================================
   EVENT DESCRIPTION
========================================================= */

.wwr-profile-timeline-description {
    width: 100%;
    min-width: 0;

    font-size: 14px;
    line-height: 1.8;

    color: var(--wwr-post);

    overflow-wrap: break-word;
}


/* PARAGRAPHS */

.wwr-profile-timeline-description p {
    margin: 0 0 17px;
}


/* LISTS */

.wwr-profile-timeline-description ul,
.wwr-profile-timeline-description ol {
    padding-left: 23px;
    margin: 10px 0 20px;
}

.wwr-profile-timeline-description li {
    margin-bottom: 7px;
}


/* FIRST AND LAST ELEMENT SPACING */

.wwr-profile-timeline-description > :first-child {
    margin-top: 0;
}

.wwr-profile-timeline-description > :last-child {
    margin-bottom: 0;
}


/* =========================================================
   NARROW LAYOUT
========================================================= */

@media (max-width: 700px) {

    .wwr-profile-timeline-entry {
        padding-left: 47px;
        padding-bottom: 40px;
    }

    .wwr-profile-timeline-entry::after {
        width: 12px;
    }

    .wwr-profile-timeline-title {
        font-size: 35px;
    }

}



/* =========================================================
   WWR PROFILE / RELATIONS
========================================================= */

.wwr-profile .memrelas {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   MAIN CATEGORY / SHARED FRAME
========================================================= */

.wwr-profile .memrelas-catcon {
    width: 100%;
    min-width: 0;

    margin: 0 0 35px;

    border: 1px solid var(--wwr-border);
    background: var(--wwr-mainback);
}

.wwr-profile .memrelas-catcon > .rela-heading2 {
    position: relative;

    margin: 0;
    padding: 22px 28px;

    border-bottom: 1px solid var(--wwr-border);

    font-family: var(--wwr-title);
    font-size: clamp(42px, 4vw, 60px);
    font-weight: 400;
    line-height: 1;

    text-align: center;
    text-transform: uppercase;

    color: var(--wwr-post);
}

/* Remove any previous decorative accent */

.wwr-profile .memrelas-catcon > .rela-heading2::after {
    content: none;
}


/* =========================================================
   SUBCATEGORY / GRID
========================================================= */

.wwr-profile .memrelas-catcon .memrelas-subcat {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    align-items: stretch;
    gap: 0;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;
}


/* SUBCATEGORY HEADING */

.wwr-profile .memrelas-subcat > .rela-heading3 {
    grid-column: 1 / -1;

    margin: 0;
    padding: 15px 23px;

    border-bottom: 1px solid var(--wwr-border);

    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;

    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: var(--wwr-mid);
}


/* =========================================================
   CHARACTER CELLS
========================================================= */

.wwr-profile .memrelas-subcat > .wwr-relation {
    position: relative;

    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);

    align-items: start;
    gap: 16px;

    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 210px;

    margin: 0;
    padding: 20px;

    box-sizing: border-box;

    border: 0;
    border-right: 1px solid var(--wwr-border);
    border-bottom: 1px solid var(--wwr-border);
    border-radius: 0;

    background: transparent;
    box-shadow: none;
}

/* Every third cell ends the row */

.wwr-profile .memrelas-subcat > .wwr-relation:nth-of-type(3n) {
    border-right: 0;
}

/* No decorative strip on individual cells */

.wwr-profile .wwr-relation::before,
.wwr-profile .wwr-relation::after {
    content: none;
}


/* =========================================================
   CHARACTER PORTRAIT
========================================================= */

.wwr-profile .wwr-relation-portrait {
    width: 105px;
    height: auto;
    aspect-ratio: 27 / 40;

    max-width: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

    box-sizing: border-box;

    border: 1px solid var(--wwr-border);
    background: var(--wwr-mainback);
}

.wwr-profile .wwr-relation-portrait .entry__item.ava {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;
}

.wwr-profile .wwr-relation-portrait img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.wwr-profile .wwr-relation-portrait i {
    font-size: 32px;
    color: var(--wwr-mid);
}


/* =========================================================
   CHARACTER INFORMATION
========================================================= */

.wwr-profile .wwr-relation-information {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    width: 100%;
    min-width: 0;
    height: 100%;
}


/* CHARACTER NAME */

.wwr-profile .wwr-relation-name {
    margin: 0;

    font-family: var(--wwr-title);
    font-size: clamp(28px, 2.1vw, 37px);
    font-weight: 400;
    line-height: 1.05;

    text-transform: uppercase;
    color: var(--wwr-post);

    overflow-wrap: anywhere;
}

.wwr-profile .wwr-relation-name a {
    color: inherit;
    text-decoration: none;
}

.wwr-profile .wwr-relation-name a:hover {
    color: var(--wwr-post);
    text-decoration: underline;
    text-decoration-color: var(--wwr-border);
    text-underline-offset: 4px;
}


/* AGE AND OCCUPATION */

.wwr-profile .wwr-relation-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 5px 10px;

    margin-top: 10px;

    font-size: 10px;
    line-height: 1.5;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    color: var(--wwr-mid);
}

.wwr-profile .wwr-relation-meta span + span {
    padding-left: 10px;
    border-left: 1px solid var(--wwr-border);
}


/* =========================================================
   RELATIONSHIP DESCRIPTION
========================================================= */

.wwr-profile .wwr-relation-description {
    width: 100%;
    min-width: 0;

    max-height: 125px;

    margin-top: 16px;
    padding: 12px 7px 0 0;

    box-sizing: border-box;

    border-top: 1px solid var(--wwr-border);

    overflow-x: hidden;
    overflow-y: auto;

    font-size: 12px;
    line-height: 1.7;

    color: var(--wwr-post);
    overflow-wrap: anywhere;

    scrollbar-width: thin;
    scrollbar-color: var(--wwr-border) transparent;
}

.wwr-profile .wwr-relation-description::-webkit-scrollbar {
    width: 4px;
}

.wwr-profile .wwr-relation-description::-webkit-scrollbar-thumb {
    background: var(--wwr-border);
}

.wwr-profile .wwr-relation-description > .entry__item {
    white-space: pre-line;
}

.wwr-profile .wwr-relation-description p {
    margin: 0 0 12px;
}

.wwr-profile .wwr-relation-description > :last-child {
    margin-bottom: 0;
}


/* =========================================================
   NPC ACTIONS / LINKS
========================================================= */

.wwr-profile .wwr-relation-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px 14px;

    width: 100%;
    min-width: 0;

    margin-top: auto;
    padding-top: 14px;
}

.wwr-profile .wwr-relation-actions a {
    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.05em;
    text-transform: uppercase;

    text-decoration: none;
    color: var(--wwr-post);
}

.wwr-profile .wwr-relation-actions a:hover {
    text-decoration: underline;
    text-decoration-color: var(--wwr-border);
}


/* =========================================================
   RELATION REQUEST FORM
========================================================= */

.wwr-profile .memrelas-request {
    width: 100%;
    max-width: 760px;

    margin: 35px 0 0;
    padding: 0 24px 24px;

    box-sizing: border-box;

    border: 1px solid var(--wwr-border);
    background: var(--wwr-mainback);
}

.wwr-profile .memrelas-request > .rela-heading2 {
    margin: 0 -24px 24px;
    padding: 20px 24px;

    border-bottom: 1px solid var(--wwr-border);

    font-family: var(--wwr-title);
    font-size: 39px;
    font-weight: 400;
    line-height: 1.1;

    text-transform: uppercase;
    color: var(--wwr-post);
}

.wwr-profile .memrelas-request__item {
    margin-bottom: 18px;
}

.wwr-profile .memrelas-request__item:last-child {
    margin-bottom: 0;
}

.wwr-profile .memrelas-request label {
    display: block;
    margin-bottom: 8px;

    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--wwr-mid);
}

.wwr-profile .memrelas-request input[type="number"],
.wwr-profile .memrelas-request select,
.wwr-profile .memrelas-request textarea {
    box-sizing: border-box;

    width: 100%;
    max-width: 100%;

    padding: 12px;

    border: 1px solid var(--wwr-border);
    border-radius: 0;

    background: var(--wwr-mainback);
    color: var(--wwr-post);

    font: inherit;
}

.wwr-profile .memrelas-request input[type="number"] {
    max-width: 190px;
}

.wwr-profile .memrelas-request textarea {
    min-height: 150px;
    resize: vertical;
}

.wwr-profile .memrelas-request input[type="submit"] {
    padding: 12px 24px;

    border: 1px solid var(--wwr-border);
    border-radius: 0;

    background: var(--wwr-mainback);
    color: var(--wwr-post);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    cursor: pointer;
}

.wwr-profile .memrelas-request input[type="submit"]:hover {
    border-color: var(--wwr-post);
}


/* =========================================================
   RESPONSIVE GRID
========================================================= */

@media (max-width: 1150px) {

    .wwr-profile .memrelas-catcon .memrelas-subcat {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wwr-profile .memrelas-subcat > .wwr-relation:nth-of-type(3n) {
        border-right: 1px solid var(--wwr-border);
    }

    .wwr-profile .memrelas-subcat > .wwr-relation:nth-of-type(2n) {
        border-right: 0;
    }

}

@media (max-width: 800px) {

    .wwr-profile .memrelas-catcon .memrelas-subcat {
        grid-template-columns: minmax(0, 1fr);
    }

    .wwr-profile .memrelas-subcat > .wwr-relation {
        border-right: 0;
    }

}

@media (max-width: 450px) {

    .wwr-profile .memrelas-subcat > .wwr-relation {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
        padding: 13px;
    }

    .wwr-profile .wwr-relation-portrait {
        width: 88px;
    }

    .wwr-profile .wwr-relation-name {
        font-size: 28px;
    }

}


/* =========================================================
   WWR PROFILE / OOC DATA
========================================================= */

.wwr-profile .wwr-profile-ooc-panel {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   PLAYER INFORMATION / MAIN FRAME
========================================================= */

.wwr-profile .wwr-ooc {
    width: 100%;
    min-width: 0;

    box-sizing: border-box;

    border: 1px solid var(--wwr-border);
    background: var(--wwr-mainback);
}


/* =========================================================
   MAIN HEADING
========================================================= */

.wwr-profile .wwr-ooc-heading {
    position: relative;

    margin: 0;
    padding: 25px 30px;

    border-bottom: 1px solid var(--wwr-border);

    font-family: var(--wwr-title);
    font-size: clamp(39px, 4vw, 55px);
    font-weight: 400;
    line-height: 1;

    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-align: center;

    color: var(--wwr-post);

    background-image:
        radial-gradient(
            ellipse at 50% 100%,
            color-mix(
                in srgb,
                var(--wwr-group, var(--wwr-acc)) 9%,
                transparent
            ),
            transparent 65%
        );
}


/* STONE LIGHT ON HEADING DIVIDER */

.wwr-profile .wwr-ooc-heading::after {
    content: "";

    position: absolute;

    bottom: -1px;
    left: 37%;
    right: 37%;

    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--wwr-group, var(--wwr-acc)),
        transparent
    );

    box-shadow:
        0 0 12px
        color-mix(
            in srgb,
            var(--wwr-group, var(--wwr-acc)) 35%,
            transparent
        );

    pointer-events: none;
}


/* =========================================================
   PLAYER IDENTITY / TWO COLUMNS
========================================================= */

.wwr-profile .wwr-ooc-identity {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(min(100%, 320px), 1fr));

    width: 100%;
    min-width: 0;
}

.wwr-profile .wwr-ooc-identity > .wwr-ooc-cell {
    min-height: 115px;

    padding: 27px 32px;

    border-right: 1px solid var(--wwr-border);
}

.wwr-profile .wwr-ooc-identity > .wwr-ooc-cell:last-child {
    border-right: 0;
}


/* =========================================================
   PLAYER NAME / STONE GRADIENT
========================================================= */

.wwr-profile .wwr-ooc-cell--player {
    background-image:
        linear-gradient(
            115deg,
            color-mix(
                in srgb,
                var(--wwr-group, var(--wwr-acc)) 16%,
                transparent
            ) 0%,
            color-mix(
                in srgb,
                var(--wwr-group, var(--wwr-acc)) 5%,
                transparent
            ) 42%,
            transparent 78%
        );
}

.wwr-profile .wwr-ooc-cell--player .wwr-ooc-value {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
}

.wwr-profile .wwr-ooc-cell--pronouns .wwr-ooc-value {
    font-size: 19px;
    line-height: 1.4;
}


/* =========================================================
   GENERAL INFORMATION / THREE COLUMNS
========================================================= */

.wwr-profile .wwr-ooc-details {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    width: 100%;
    min-width: 0;
}


/* =========================================================
   SHARED CELL STYLING
========================================================= */

.wwr-profile .wwr-ooc-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    gap: 10px;

    min-width: 0;
    min-height: 105px;

    padding: 24px 30px;

    box-sizing: border-box;

    border-bottom: 1px solid var(--wwr-border);
}

.wwr-profile .wwr-ooc-details > .wwr-ooc-cell {
    border-right: 1px solid var(--wwr-border);
}

.wwr-profile .wwr-ooc-details > .wwr-ooc-cell:nth-child(3n) {
    border-right: 0;
}


/* LABELS */

.wwr-profile .wwr-ooc-label {
    display: block;

    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;

    letter-spacing: 0.1em;
    text-transform: uppercase;

    color: var(--wwr-mid);
}


/* VALUES */

.wwr-profile .wwr-ooc-value {
    min-width: 0;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;

    color: var(--wwr-post);

    overflow-wrap: anywhere;
}


/* =========================================================
   PLAYER DESCRIPTION & PLOTTING
========================================================= */

.wwr-profile .wwr-ooc-description {
    display: flex;
    flex-direction: column;

    gap: 21px;

    width: 100%;
    min-width: 0;

    padding: 32px 36px 40px;

    box-sizing: border-box;
}


/* LONG-FORM TEXT */

.wwr-profile .wwr-ooc-description-content {
    width: 100%;
    min-width: 0;

    font-size: 14px;
    line-height: 1.85;

    white-space: pre-line;
    overflow-wrap: anywhere;

    color: var(--wwr-post);
}


/* =========================================================
   OTHER CHARACTERS SPACING
   Keep the existing directory styling
========================================================= */

.wwr-profile .wwr-profile-ooc-panel > .wwr-accounts {
    width: 100%;

    margin-top: 18px;
}


/* =========================================================
   NARROWER WIDTHS
========================================================= */

@media (max-width: 950px) {

    .wwr-profile .wwr-ooc-details {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .wwr-profile .wwr-ooc-details > .wwr-ooc-cell:nth-child(3n) {
        border-right: 1px solid var(--wwr-border);
    }

    .wwr-profile .wwr-ooc-details > .wwr-ooc-cell:nth-child(2n) {
        border-right: 0;
    }

}


@media (max-width: 600px) {

    .wwr-profile .wwr-ooc-identity,
    .wwr-profile .wwr-ooc-details {
        grid-template-columns: minmax(0, 1fr);
    }

    .wwr-profile .wwr-ooc-cell,
    .wwr-profile .wwr-ooc-identity > .wwr-ooc-cell {
        padding: 22px;
        min-height: 0;
        border-right: 0;
    }

    .wwr-profile .wwr-ooc-details > .wwr-ooc-cell {
        border-right: 0 !important;
    }

    .wwr-profile .wwr-ooc-description {
        padding: 25px 22px 30px;
    }

    .wwr-profile .wwr-ooc-heading {
        font-size: 39px;
    }

}

/* =========================================================
   WWR PROFILE / ABILITIES
========================================================= */

.wwr-profile-abilities-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(290px, 390px);

    align-items: start;
    gap: clamp(35px, 4vw, 65px);

    width: 100%;
    min-width: 0;
}

.wwr-profile-abilities-layout > * {
    min-width: 0;
}

/* No empty column when the Power Grid is absent */

.wwr-profile-abilities-layout:not(:has(.wwr-profile-powergrid)) {
    grid-template-columns: minmax(0, 1fr);
}


/* =========================================================
   ABILITY TEXT SECTIONS
========================================================= */

.wwr-profile-abilities {
    display: flex;
    flex-direction: column;

    gap: 45px;

    width: 100%;
    min-width: 0;
}

.wwr-profile-ability-section {
    position: relative;
    min-width: 0;
}

/* Separate sections with subtle lines */

.wwr-profile-ability-section
+ .wwr-profile-ability-section {
    padding-top: 40px;
    border-top: 1px solid var(--wwr-border);
}


/* SECTION HEADINGS */

.wwr-profile-ability-section h3 {
    position: relative;

    margin: 0 0 25px;
    padding-bottom: 17px;

    font-family: var(--wwr-title);
    font-size: clamp(32px, 3vw, 46px);
    font-weight: 400;
    line-height: 1.1;

    letter-spacing: 0.01em;
    text-transform: uppercase;

    color: var(--wwr-post);
}

/* Small Stone accent underneath headings */

.wwr-profile-ability-section h3::after {
    content: "";

    position: absolute;
    bottom: 0;
    left: 0;

    width: 75px;
    height: 1px;

    background: linear-gradient(
        90deg,
        var(--wwr-group, var(--wwr-acc)),
        transparent
    );
}


/* TEXT CONTENT */

.wwr-profile-ability-content {
    width: 100%;
    min-width: 0;

    font-size: 14px;
    line-height: 1.8;

    color: var(--wwr-post);

    overflow-wrap: break-word;
}

.wwr-profile-ability-content > :first-child {
    margin-top: 0;
}

.wwr-profile-ability-content > :last-child {
    margin-bottom: 0;
}

.wwr-profile-ability-content p {
    margin: 0 0 16px;
}

.wwr-profile-ability-content ul,
.wwr-profile-ability-content ol {
    padding-left: 22px;
    margin: 12px 0 20px;
}

.wwr-profile-ability-content li {
    padding-left: 4px;
    margin-bottom: 7px;
}


/* =========================================================
   POWER GRID / FEATURE PANEL
========================================================= */

.wwr-profile-powergrid {
    --wwr-grid-accent:
        var(--wwr-group, var(--wwr-acc));

    position: relative;

    width: 100%;
    min-width: 0;

    padding: 28px;

    border: 1px solid var(--wwr-border);

    background-color: var(--wwr-mainback);

    background-image:
        radial-gradient(
            ellipse at 100% 0%,
            color-mix(
                in srgb,
                var(--wwr-grid-accent) 10%,
                transparent
            ) 0%,
            transparent 65%
        );
}


/* THIN ILLUMINATED TOP EDGE */

.wwr-profile-powergrid::before {
    content: "";

    position: absolute;

    top: -1px;
    left: 0;

    width: 46%;
    height: 1px;

    background: linear-gradient(
        90deg,
        var(--wwr-grid-accent),
        transparent
    );

    box-shadow:
        0 0 12px
        color-mix(
            in srgb,
            var(--wwr-grid-accent) 30%,
            transparent
        );

    pointer-events: none;
}


/* POWER GRID TITLE */

.wwr-profile-powergrid-title {
    margin: 0 0 20px;

    font-family: var(--wwr-title);
    font-size: 39px;
    font-weight: 400;
    line-height: 1;

    letter-spacing: 0.015em;
    text-transform: uppercase;

    color: var(--wwr-post);
}


/* =========================================================
   POWER GRID / SVG
========================================================= */

.wwr-profile-powergrid-chart {
    width: 100%;
    min-width: 0;

    padding: 8px 0 16px;
}

.wwr-profile-powergrid-svg {
    display: block;

    width: 100%;
    height: auto;

    overflow: visible;
}


/* HEXAGON LEVELS */

.wwr-powergrid-ring {
    fill: none;

    stroke: var(--wwr-border);
    stroke-width: 1;
}


/* SIX AXES */

.wwr-powergrid-axis {
    stroke: var(--wwr-border);
    stroke-width: 1;

    opacity: 0.8;
}


/* CHARACTER POWER POLYGON */

.wwr-powergrid-shape {
    fill: var(--wwr-grid-accent);
    fill-opacity: 0.17;

    stroke: var(--wwr-grid-accent);
    stroke-width: 2;

    stroke-linejoin: round;

    filter: drop-shadow(
        0 0 6px
        color-mix(
            in srgb,
            var(--wwr-grid-accent) 25%,
            transparent
        )
    );
}


/* SIX STAT MARKERS */

.wwr-powergrid-point {
    fill: var(--wwr-grid-accent);

    stroke: var(--wwr-mainback);
    stroke-width: 1.5;
}


/* AXIS LABELS */

.wwr-powergrid-labels text {
    fill: var(--wwr-mid);

    font-family: inherit;
    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.65px;
}


/* =========================================================
   POWER GRID / NUMERICAL VALUES
========================================================= */

.wwr-powergrid-values {
    display: flex;
    flex-direction: column;

    width: 100%;

    margin-top: 8px;
    padding-top: 12px;

    border-top: 1px solid var(--wwr-border);
}


/* INDIVIDUAL STAT ROW */

.wwr-powergrid-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;

    gap: 16px;

    padding: 11px 0;

    border-bottom: 1px solid
        color-mix(
            in srgb,
            var(--wwr-border) 65%,
            transparent
        );

    font-size: 12px;
    line-height: 1.4;

    color: var(--wwr-mid);
}

.wwr-powergrid-stat:last-child {
    border-bottom: 0;
}


/* NUMERICAL SCORE */

.wwr-powergrid-stat strong {
    flex-shrink: 0;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    color: var(--wwr-grid-accent);
}


/* =========================================================
   WWR PROFILE / SCENETRACKER
========================================================= */

.wwr-profile .wwr-scenes {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   YEAR BLOCKS
========================================================= */

.wwr-profile .wwr-scenes-year {
    width: 100%;
    min-width: 0;

    margin: 0 0 25px;

    border: 1px solid var(--wwr-border);
    background: var(--wwr-mainback);
}

.wwr-profile .wwr-scenes-year-heading {
    margin: 0;
    padding: 23px 25px;

    border-bottom: 1px solid var(--wwr-border);

    font-family: inherit;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;

    letter-spacing: 0.15em;
    text-align: center;

    color: var(--wwr-post);
}


/* =========================================================
   MONTH BLOCKS
========================================================= */

.wwr-profile .wwr-scenes-month {
    width: 100%;
    min-width: 0;
}

.wwr-profile .wwr-scenes-month + .wwr-scenes-month {
    border-top: 1px solid var(--wwr-border);
}

.wwr-profile .wwr-scenes-month-heading {
    margin: 0;
    padding: 15px 22px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;

    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: var(--wwr-mid);
}


/* =========================================================
   INDIVIDUAL SCENES
========================================================= */

.wwr-profile .wwr-scenes-entry {
    display: flex;
    align-items: stretch;

    width: 100%;
    min-width: 0;
    min-height: 77px;

    margin: 0;
    padding: 0;

    border-top: 1px solid var(--wwr-border);

    box-sizing: border-box;
}


/* DATE COLUMN */

.wwr-profile .wwr-scenes-entry-date {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 85px;

    padding: 15px 12px;

    box-sizing: border-box;

    border-right: 1px solid var(--wwr-border);

    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;

    color: var(--wwr-post);

    text-align: center;
}


/* MAIN SCENE DETAILS */

.wwr-profile .wwr-scenes-entry-main {
    display: flex;
    flex-direction: column;
    justify-content: center;

    flex: 1 1 auto;

    gap: 8px;

    min-width: 0;

    padding: 17px 25px;
}


/* SCENE TITLE */

.wwr-profile .wwr-scenes-entry-title {
    min-width: 0;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

.wwr-profile .wwr-scenes-entry-title a.sceneLink[href]:not([href=""]) {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    max-width: 100%;
    padding: 5px 9px;

    box-sizing: border-box;

    background: var(--wwr-acc2, #ae292d);
    color: #fff !important;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;

    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;

    transition: background 0.2s ease;
}

/* LITTLE ARROW */

.wwr-profile .wwr-scenes-entry-title a.sceneLink[href]:not([href=""])::after {
    content: "➜";
    flex-shrink: 0;
    font-size: 12px;
}

/* HOVER */

.wwr-profile .wwr-scenes-entry-title a.sceneLink[href]:not([href=""]):hover {
    background: var(--wwr-acc2, #ae292d);
    filter: brightness(1.18);
    text-decoration: none;
}

/* RESTRICTED SCENES STAY NEUTRAL */

.wwr-profile .wwr-scenes-entry-title a.sceneLink:not([href]),
.wwr-profile .wwr-scenes-entry-title a.sceneLink[href=""] {
    background: transparent;
    color: var(--wwr-mid);
    pointer-events: none;
}


/* PARTICIPANTS */

.wwr-profile .wwr-scenes-entry-partners {
    min-width: 0;

    font-size: 12px;
    line-height: 1.6;

    color: var(--wwr-mid);

    overflow-wrap: anywhere;
}

.wwr-profile .wwr-scenes-entry-partners a {
    text-decoration: none;
	text-transform: uppercase; 
	letter-spacing: 1px;
}

.wwr-profile .wwr-scenes-entry-partners a:hover {
    text-decoration: none;
}


/* =========================================================
   SCENE STATUS
========================================================= */

.wwr-profile .wwr-scenes-entry-status {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 115px;

    padding: 15px;

    box-sizing: border-box;

    border-left: 1px solid var(--wwr-border);

    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--wwr-mid);

    text-align: center;
}

/* Sideplays without a status need no empty column */

.wwr-profile .wwr-scenes-entry-status:empty {
    display: none;
}


/* =========================================================
   SIDEPLAYS & OTHER SCENES
========================================================= */

.wwr-profile .wwr-scenes-extras {
    display: flex;
    flex-direction: column;

    gap: 25px;

    margin-top: 35px;
}

.wwr-profile .wwr-scenes-secondary {
    width: 100%;
    min-width: 0;

    border: 1px solid var(--wwr-border);

    background: var(--wwr-mainback);
}


/* SECTION HEADING */

.wwr-profile .wwr-scenes-secondary-heading {
    margin: 0;
    padding: 22px 25px;

    border-bottom: 1px solid var(--wwr-border);

    font-family: var(--wwr-title);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.1;

    text-transform: uppercase;
    text-align: center;

    color: var(--wwr-post);
}


/* Sideplays use full dates, so give them more width */

.wwr-profile .wwr-scenes-secondary
.wwr-scenes-entry-date {
    flex-basis: 155px;
}


/* =========================================================
   EMPTY STATES
========================================================= */

.wwr-profile .wwr-scenes-empty {
    padding: 22px 25px;

    font-size: 12px;
    line-height: 1.6;

    color: var(--wwr-mid);
}


/* =========================================================
   NARROWER WIDTHS
========================================================= */

@media (max-width: 950px) {

    .wwr-profile .wwr-scenes-entry-date {
        flex-basis: 65px;
        padding: 12px 8px;
    }

    .wwr-profile .wwr-scenes-entry-main {
        padding: 15px;
    }

    .wwr-profile .wwr-scenes-entry-status {
        flex-basis: 90px;
        padding: 10px;
    }

    .wwr-profile .wwr-scenes-secondary
    .wwr-scenes-entry-date {
        flex-basis: 120px;
    }

}

@media (max-width: 650px) {

    .wwr-profile .wwr-scenes-entry {
        flex-wrap: wrap;
    }

    .wwr-profile .wwr-scenes-entry-date {
        flex-basis: 65px;
    }

    .wwr-profile .wwr-scenes-entry-status:not(:empty) {
        flex: 1 1 100%;

        justify-content: flex-start;

        border-left: 0;
        border-top: 1px solid var(--wwr-border);
    }

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .wwr-profile-abilities-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .wwr-profile-powergrid {
        grid-row: 1;
        width: 100%;
        max-width: 460px;

        justify-self: center;
    }

    .wwr-profile-abilities {
        grid-row: 2;
    }

}


@media (max-width: 600px) {

    .wwr-profile-abilities {
        gap: 35px;
    }

    .wwr-profile-ability-section
    + .wwr-profile-ability-section {
        padding-top: 30px;
    }

    .wwr-profile-ability-section h3 {
        font-size: 32px;
    }

    .wwr-profile-ability-content {
        font-size: 13px;
        line-height: 1.75;
    }

    .wwr-profile-powergrid {
        padding: 18px;
    }

    .wwr-profile-powergrid-title {
        font-size: 34px;
    }

}



/* =========================================================
   WWR PROFILE / OTHER CHARACTERS
========================================================= */

.wwr-profile .wwr-accounts {
    grid-column: 1 / -1;

    width: 100%;
    max-width: none;
    min-width: 0;

    margin: 35px 0 0;
    padding: 0;

    box-sizing: border-box;

    border: 1px solid var(--wwr-border);
    background: var(--wwr-mainback);
}


/* =========================================================
   HEADING
========================================================= */

.wwr-profile .wwr-accounts-heading {
    margin: 0;
    padding: 23px 25px;

    border-bottom: 1px solid var(--wwr-border);

    font-family: var(--wwr-title);
    font-size: 43px;
    font-weight: 400;
    line-height: 1;

    text-transform: uppercase;
    text-align: center;

    color: var(--wwr-post);
}


/* =========================================================
   THREE-COLUMN CHARACTER DIRECTORY
========================================================= */

.wwr-profile .wwr-accounts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    align-items: stretch;

    width: 100%;
    min-width: 0;

    gap: 0;
}


/* =========================================================
   INDIVIDUAL CHARACTERS
========================================================= */

.wwr-profile .wwr-account-entry {
    display: flex;
    align-items: center;

    gap: 17px;

    width: 100%;
    min-width: 0;
    min-height: 112px;

    margin: 0;
    padding: 16px 20px;

    box-sizing: border-box;

    border: 0;
    border-right: 1px solid var(--wwr-border);
    border-bottom: 1px solid var(--wwr-border);

    background: transparent;

    transition: background 0.2s ease;
}


/* NO RIGHT BORDER AT END OF EACH ROW */

.wwr-profile .wwr-account-entry:nth-child(3n) {
    border-right: 0;
}


/* HOVER */

.wwr-profile .wwr-account-entry:hover {
    background: rgba(255, 255, 255, 0.018);
}


/* =========================================================
   CHARACTER PORTRAIT
========================================================= */

.wwr-profile .wwr-account-avatar {
    flex: 0 0 54px;

    width: 54px;
    height: 80px;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    overflow: hidden;

    border: 1px solid var(--wwr-border);
    background: var(--wwr-mainback);
}

.wwr-profile .wwr-account-avatar > a {
    display: block;

    width: 100%;
    height: 100%;
}

.wwr-profile .wwr-account-avatar img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover;
    object-position: center;
}


/* =========================================================
   CHARACTER INFORMATION
========================================================= */

.wwr-profile .wwr-account-information {
    display: flex;
    flex-direction: column;
    justify-content: center;

    flex: 1 1 auto;

    gap: 7px;

    min-width: 0;
    width: 100%;
}


/* CHARACTER NAME */

.wwr-profile .wwr-account-name {
    width: 100%;
    min-width: 0;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    overflow-wrap: anywhere;
}


/* NAMES REMAIN IN THEIR OWN STONE COLOR */

.wwr-profile .wwr-account-name .wwr-username {
    color: var(--wwr-group, var(--wwr-post)) !important;
    overflow-wrap: anywhere;
}


/* PROFILE LINKS */

.wwr-profile .wwr-account-name a,
.wwr-profile .wwr-account-name a:hover {
    text-decoration: none !important;
}


/* SUBTEXT */

.wwr-profile .wwr-account-subtext {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;

    letter-spacing: 0.1em;
    text-transform: uppercase;

    color: var(--wwr-mid);
}


/* =========================================================
   HIDDEN ACCOUNT NOTICE
========================================================= */

.wwr-profile .wwr-accounts-hidden {
    padding: 13px 20px;

    border-top: 1px solid var(--wwr-border);

    font-size: 11px;
    line-height: 1.5;

    color: var(--wwr-mid);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1150px) {

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

    .wwr-profile .wwr-account-entry:nth-child(3n) {
        border-right: 1px solid var(--wwr-border);
    }

    .wwr-profile .wwr-account-entry:nth-child(2n) {
        border-right: 0;
    }

}


@media (max-width: 800px) {

    .wwr-profile .wwr-accounts-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wwr-profile .wwr-account-entry {
        border-right: 0 !important;
    }

}


/* ========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .wwr-profile-abilities-layout {
        grid-template-columns: 1fr;
    }

    .wwr-profile-powergrid {
        max-width: 500px;
    }

}



/* =========================================================
   RESPONSIVE STRUCTURE
========================================================= */

@media (max-width: 950px) {

    .wwr-profile-top {
        grid-template-columns: 1fr;
    }

    .wwr-profile-picture {
        max-width: 600px;
    }

    .wwr-profile-information {
        gap: 30px;
    }

}


@media (max-width: 700px) {

    .wwr-profile-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wwr-profile-tabs button.wwr-profile-tab {
        min-height: 56px;
        padding: 12px 8px;
        font-size: 9px;
    }

    .wwr-profile-tabs button.wwr-profile-tab:nth-child(3n) {
        border-right: 0;
    }

    .wwr-profile-tabs button.wwr-profile-tab:nth-child(-n+3) {
        border-bottom: 1px solid var(--wwr-border);
    }

}


@media (max-width: 450px) {

    .wwr-profile-fields {
        grid-template-columns: 1fr;
    }

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

    .wwr-profile-tabs button.wwr-profile-tab:nth-child(3n) {
        border-right: 1px solid var(--wwr-border);
    }

    .wwr-profile-tabs button.wwr-profile-tab:nth-child(2n) {
        border-right: 0;
    }

    .wwr-profile-tabs button.wwr-profile-tab:nth-child(-n+4) {
        border-bottom: 1px solid var(--wwr-border);
    }
	
	@media (prefers-reduced-motion: reduce) {

    .wwr-profile-tabs button.wwr-profile-tab,
    .wwr-profile-tab::after {
        transition: none;
    }

}

}


/* =========================================================
   WWR PROFILE / CONTENT WARNINGS
========================================================= */

.wwr-profile-warnings {
    display: flex;
    flex-direction: column;

    gap: 8px;

    width: 100%;
    min-width: 0;

    margin: 22px 0 0;
    padding: 16px 20px;

    box-sizing: border-box;

    border: 1px solid #322020;

    background: rgba(255, 0, 0, 0.04);
}


/* LABEL */

.wwr-profile-warnings-label {
    display: block;

    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.5;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--wwr-mid);
}


/* ACTUAL WARNINGS */

.wwr-profile-warnings-content {
width: 100%;
  min-width: 0;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: var(--wwr-mid);
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* SMALLER HEADER LAYOUTS */

@media (max-width: 950px) {

    .wwr-profile-warnings {
        padding: 14px 16px;
        margin-top: 18px;
    }

}
