/* =====================================================
   IJRCSIT EDITORIAL PAGE
   Easy settings: colors, image size, card spacing
===================================================== */

.ijr-editorial {
    --ijr-dark: #102b38;
    --ijr-primary: #1e4356;
    --ijr-blue: #4f8eae;
    --ijr-accent: #68a4c4;
    --ijr-light: #eaf4f9;
    --ijr-border: #d8e5eb;
    --ijr-text: #263746;
    --ijr-muted: #647482;
    --ijr-white: #ffffff;

    color: var(--ijr-text);
    background: var(--ijr-white);
    font-family: inherit;
}

.ijr-editorial *,
.ijr-modal * {
    box-sizing: border-box;
}

.ijr-container {
    width: min(1160px, calc(100% - 36px));
    margin-inline: auto;
}

.ijr-editorial a {
    text-decoration: none;
}

.ijr-editorial h1,
.ijr-editorial h2,
.ijr-editorial h3,
.ijr-editorial p {
    margin-top: 0;
}

/* HERO */

.ijr-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 0 42px;
    background:
        radial-gradient(circle at 82% 30%, #d7edf8 0, transparent 30%),
        linear-gradient(120deg, #f5fbfe, #eaf4f9);
    border-bottom: 1px solid var(--ijr-border);
}

.ijr-hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 24px;
}

.ijr-eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--ijr-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1.5;
}

.ijr-hero h1 {
    margin-bottom: 12px;
    color: var(--ijr-dark);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -1px;
}

.ijr-hero p {
    max-width: 620px;
    margin-bottom: 20px;
    color: var(--ijr-muted);
    font-size: 15px;
    line-height: 1.75;
}

.ijr-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ijr-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease,
                box-shadow .2s ease;
}

.ijr-button:hover {
    transform: translateY(-2px);
}

.ijr-button-primary {
    color: white;
    background: var(--ijr-primary);
    box-shadow: 0 5px 15px #102b3820;
}

.ijr-button-primary:hover {
    color: white;
    background: var(--ijr-dark);
}

.ijr-button-outline {
    color: var(--ijr-primary);
    background: white;
    border-color: var(--ijr-border);
}

.ijr-button-outline:hover {
    background: var(--ijr-light);
}

.ijr-hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--ijr-muted);
    font-size: 11px;
}

.ijr-hero-note span {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #299b78;
}

/* HERO DECORATION */

.ijr-hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 230px;
}

.ijr-visual-ring {
    position: absolute;
    width: 210px;
    height: 210px;
    border: 1px solid #68a4c455;
    border-radius: 50%;
}

.ring-two {
    width: 160px;
    height: 160px;
    border-style: dashed;
    animation: ijr-rotate 28s linear infinite;
}

.ijr-visual-core {
    z-index: 1;
    display: grid;
    place-content: center;
    width: 110px;
    height: 110px;
    color: white;
    text-align: center;
    background: linear-gradient(145deg, var(--ijr-blue), var(--ijr-dark));
    border: 7px solid #ffffffaa;
    border-radius: 50%;
    box-shadow: 0 10px 35px #102b3825;
}

.ijr-visual-core span {
    font-family: Georgia, serif;
    font-size: 39px;
    line-height: 1;
}

.ijr-visual-core small {
    margin-top: 5px;
    font-size: 8px;
    letter-spacing: 2px;
}

.ijr-visual-dot {
    position: absolute;
    z-index: 2;
    width: 10px;
    height: 10px;
    background: var(--ijr-blue);
    border: 2px solid white;
    border-radius: 50%;
}

.dot-one { top: 24px; left: 48%; }
.dot-two { top: 50%; right: 12%; }
.dot-three { bottom: 22px; left: 28%; }
.dot-four { top: 34%; left: 13%; }

@keyframes ijr-rotate {
    to { transform: rotate(360deg); }
}

/* MAIN CONTENT */

.ijr-page-content {
    padding-top: 32px;
    padding-bottom: 40px;
}

.ijr-section {
    margin-bottom: 42px;
    scroll-margin-top: 90px;
}

.ijr-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 17px;
}

.ijr-section-heading .ijr-eyebrow {
    margin-bottom: 5px;
}

.ijr-section-heading h2 {
    margin-bottom: 0;
    color: var(--ijr-dark);
    font-size: 25px;
    line-height: 1.25;
}

.ijr-section-heading > p {
    max-width: 440px;
    margin-bottom: 2px;
    color: var(--ijr-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* CHIEF EDITOR */

.ijr-chief-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 20px;
    background: linear-gradient(120deg, #f6fbfe, #ffffff);
    border: 1px solid var(--ijr-border);
    border-radius: 12px;
    box-shadow: 0 5px 20px #102b3808;
}

.ijr-chief-photo {
    width: 100%;
    height: 205px;
    overflow: hidden;
    background: var(--ijr-light);
    border-radius: 9px;
}

.ijr-chief-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.ijr-chief-info h3 {
    margin: 10px 0 7px;
    color: var(--ijr-dark);
    font-size: 22px;
    line-height: 1.35;
}

.ijr-role {
    display: inline-block;
    color: var(--ijr-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ijr-institution {
    margin-bottom: 5px;
    color: var(--ijr-text);
    font-size: 13px;
    line-height: 1.55;
}

.ijr-country {
    margin-bottom: 8px;
    color: var(--ijr-muted);
    font-size: 12px;
}

.ijr-chief-description {
    max-width: 650px;
    margin-bottom: 12px;
    color: var(--ijr-muted);
    font-size: 13px;
    line-height: 1.65;
}

.ijr-profile-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 15px;
}

.ijr-profile-links a {
    color: var(--ijr-primary);
    font-size: 12px;
    font-weight: 700;
}

.ijr-profile-links a:hover {
    color: var(--ijr-blue);
}

/* MEMBER DIRECTORY */

.ijr-directory-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
    padding: 12px 15px;
    background: #f7fafc;
    border: 1px solid var(--ijr-border);
    border-radius: 8px;
}

.ijr-directory-bar > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.ijr-directory-bar strong {
    color: var(--ijr-dark);
    font-size: 21px;
}

.ijr-directory-bar span,
.ijr-directory-bar p {
    color: var(--ijr-muted);
    font-size: 12px;
}

.ijr-directory-bar p {
    margin: 0;
}

.ijr-members-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

/* Each card is a button, so it is keyboard accessible */

.ijr-member-card,
.ijr-chief-open {
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.ijr-member-card {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    align-items: start;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    color: var(--ijr-text);
    background: white;
    border: 1px solid var(--ijr-border);
    border-radius: 9px;
    transition: border-color .2s ease, box-shadow .2s ease,
                transform .2s ease;
}

.ijr-member-card:hover,
.ijr-member-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--ijr-accent);
    box-shadow: 0 8px 22px #102b3810;
    outline: none;
}

.ijr-profile-image {
    display: block;
    width: 100px;
    height: 118px;
    overflow: hidden;
    background: var(--ijr-light);
    border-radius: 7px;
}

.ijr-profile-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.ijr-profile-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.ijr-profile-copy strong {
    color: var(--ijr-dark);
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.ijr-profile-copy .ijr-role {
    font-size: 9px;
    letter-spacing: .7px;
}

.ijr-institution {
    overflow-wrap: anywhere;
}

.ijr-profile-copy .ijr-institution,
.ijr-profile-copy .ijr-country {
    margin: 0;
    color: var(--ijr-muted);
    font-size: 11px;
    line-height: 1.5;
}

.ijr-view-profile {
    grid-column: 2;
    color: var(--ijr-blue);
    font-size: 11px;
    font-weight: 800;
}

/* PAGINATION */

.ijr-pagination-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 22px;
}

.ijr-pagination-area > p {
    margin: 0;
    color: var(--ijr-muted);
    font-size: 12px;
}

.ijr-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.ijr-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    min-height: 35px;
    padding: 7px 10px;
    color: var(--ijr-primary);
    background: white;
    border: 1px solid var(--ijr-border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.ijr-pagination a:hover,
.ijr-pagination a.is-current {
    color: white;
    background: var(--ijr-primary);
    border-color: var(--ijr-primary);
}

/* INVITATION BANNER */

.ijr-author-invitation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px;
    color: white;
    background: linear-gradient(115deg, var(--ijr-dark), var(--ijr-primary));
    border-radius: 12px;
}

.ijr-author-invitation .ijr-eyebrow {
    color: #a8d8f0;
}

.ijr-author-invitation h2 {
    margin-bottom: 7px;
    color: white;
    font-size: 23px;
}

.ijr-author-invitation p {
    max-width: 600px;
    margin-bottom: 0;
    color: #e0edf3;
    font-size: 13px;
    line-height: 1.6;
}

.ijr-button-light {
    flex-shrink: 0;
    color: var(--ijr-dark);
    background: white;
}

.ijr-button-light:hover {
    color: var(--ijr-dark);
    background: var(--ijr-light);
}

/* PROFILE MODAL */

.ijr-modal[aria-hidden="true"] {
    display: none;
}

.ijr-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}

.ijr-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #081b28b8;
    border: 0;
    cursor: pointer;
    animation: ijr-fade-in .2s ease;
}

.ijr-modal-panel {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: min(85vh, 760px);
    overflow-y: auto;
    padding: 28px;
    background: white;
    border: 1px solid var(--ijr-border);
    border-radius: 13px;
    box-shadow: 0 25px 80px #0003;
    animation: ijr-modal-in .25s ease;
}

.ijr-modal-close {
    position: absolute;
    top: 13px;
    right: 15px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--ijr-dark);
    background: var(--ijr-light);
    border: 0;
    border-radius: 50%;
    font-size: 25px;
    cursor: pointer;
}

.ijr-modal-heading {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-top: 18px;
}

.ijr-modal-heading img {
    width: 150px;
    height: 180px;
    object-fit: cover;
    object-position: center top;
    background: var(--ijr-light);
    border: 1px solid var(--ijr-border);
    border-radius: 9px;
}

.ijr-modal-heading h2 {
    margin: 8px 0;
    color: var(--ijr-dark);
    font-size: 24px;
    line-height: 1.3;
}

.ijr-modal-heading p {
    color: var(--ijr-muted);
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.ijr-modal-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--ijr-border);
}

.ijr-modal-contact a {
    padding: 9px 12px;
    color: var(--ijr-primary);
    background: var(--ijr-light);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.ijr-modal-note {
    margin: 17px 0 0;
    color: var(--ijr-muted);
    font-size: 11px;
    line-height: 1.6;
}

@keyframes ijr-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ijr-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* RESPONSIVE LAYOUT */

@media (max-width: 900px) {
    .ijr-members-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ijr-hero-layout {
        grid-template-columns: 1fr .65fr;
    }

    .ijr-member-card {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .ijr-profile-image {
        width: 90px;
        height: 108px;
    }
}

@media (max-width: 600px) {
    .ijr-container {
        width: min(100% - 26px, 1160px);
    }

    .ijr-hero {
        padding: 32px 0 28px;
    }

    .ijr-hero-layout {
        grid-template-columns: 1fr;
    }

    .ijr-hero h1 {
        font-size: 32px;
    }

    .ijr-hero p {
        font-size: 14px;
    }

    .ijr-hero-visual {
        min-height: 150px;
    }

    .ijr-visual-ring {
        width: 145px;
        height: 145px;
    }

    .ring-two {
        width: 115px;
        height: 115px;
    }

    .ijr-visual-core {
        width: 85px;
        height: 85px;
    }

    .ijr-visual-core span {
        font-size: 30px;
    }

    .ijr-section {
        margin-bottom: 32px;
    }

    .ijr-section-heading {
        display: block;
    }

    .ijr-section-heading h2 {
        font-size: 23px;
    }

    .ijr-section-heading > p {
        margin-top: 9px;
    }

    .ijr-chief-card {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 14px;
        padding: 13px;
    }

    .ijr-chief-photo {
        height: 130px;
    }

    .ijr-chief-info h3 {
        font-size: 17px;
    }

    .ijr-chief-description {
        grid-column: 1 / -1;
        font-size: 12px;
    }

    .ijr-members-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ijr-member-card {
        grid-template-columns: 94px minmax(0, 1fr);
        padding: 11px;
    }

    .ijr-profile-image {
        width: 94px;
        height: 108px;
    }

    .ijr-directory-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .ijr-pagination-area {
        align-items: flex-start;
        flex-direction: column;
    }

    .ijr-author-invitation {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .ijr-modal {
        padding: 10px;
    }

    .ijr-modal-panel {
        padding: 22px 16px;
        max-height: 90vh;
    }

    .ijr-modal-heading {
        grid-template-columns: 95px minmax(0, 1fr);
        gap: 13px;
    }

    .ijr-modal-heading img {
        width: 95px;
        height: 120px;
    }

    .ijr-modal-heading h2 {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ijr-editorial *,
    .ijr-modal * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
