.guru-c360-roll-of-honor {
    --roh-bg: #151718;
    --roh-bg-alt: #1a1c1d;
    --roh-panel: #17191a;
    --roh-header: #202223;
    --roh-control: #191b1c;
    --roh-border: #383b3d;
    --roh-text: #d8cab8;
    --roh-muted: #9f968b;
    --roh-heading: #eadfce;
    --roh-link: #d08a5f;
    --roh-link-hover: #efb184;
    --roh-focus: #d08a5f;
    --roh-hover: #242729;
    --roh-placeholder: #756f68;
    width: 100%;
    margin: 0 0 1.5rem;
    color: var(--roh-text);
}

.guru-c360-roll-of-honor--light {
    --roh-bg: #ffffff;
    --roh-bg-alt: #f8f8f8;
    --roh-panel: #ffffff;
    --roh-header: #f1f1f1;
    --roh-control: #ffffff;
    --roh-border: #d8d8d8;
    --roh-text: #333333;
    --roh-muted: #666666;
    --roh-heading: #1d1d1d;
    --roh-link: #9a4f2b;
    --roh-link-hover: #6f3419;
    --roh-focus: #2271b1;
    --roh-hover: #f4f7fa;
    --roh-placeholder: #888888;
}

.guru-c360-roll-of-honor--inherit {
    --roh-bg: transparent;
    --roh-bg-alt: rgba(127, 127, 127, 0.055);
    --roh-panel: transparent;
    --roh-header: rgba(127, 127, 127, 0.12);
    --roh-control: transparent;
    --roh-border: currentColor;
    --roh-text: inherit;
    --roh-muted: inherit;
    --roh-heading: inherit;
    --roh-link: inherit;
    --roh-link-hover: inherit;
    --roh-focus: currentColor;
    --roh-hover: rgba(127, 127, 127, 0.1);
    --roh-placeholder: currentColor;
}

.guru-c360-roll-of-honor-title {
    margin: 0 0 0.85rem;
    color: var(--roh-heading) !important;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.guru-c360-roll-of-honor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.8rem 1rem;
    margin-bottom: 0.85rem;
}

.guru-c360-roll-of-honor-search-wrap {
    flex: 1 1 320px;
}

.guru-c360-roll-of-honor-search-wrap label,
.guru-c360-roll-of-honor-page-size-wrap label {
    display: block;
    margin: 0 0 0.3rem;
    color: var(--roh-heading) !important;
    font-size: 0.82rem;
    font-weight: 700;
}

.guru-c360-roll-of-honor-search,
.guru-c360-roll-of-honor-page-size {
    min-height: 42px;
    border: 1px solid var(--roh-border) !important;
    border-radius: 3px;
    background: var(--roh-control) !important;
    color: var(--roh-text) !important;
    box-shadow: none !important;
    font: inherit;
}

.guru-c360-roll-of-honor-search {
    width: 100%;
    padding: 0.55rem 0.7rem;
}

.guru-c360-roll-of-honor-search::placeholder {
    color: var(--roh-placeholder);
    opacity: 1;
}

.guru-c360-roll-of-honor-page-size {
    min-width: 78px;
    padding: 0.45rem 2rem 0.45rem 0.65rem;
}

.guru-c360-roll-of-honor-page-size option {
    background: var(--roh-control);
    color: var(--roh-text);
}

.guru-c360-roll-of-honor-search:focus,
.guru-c360-roll-of-honor-page-size:focus,
.guru-c360-roll-of-honor-sort:focus-visible,
.guru-c360-roll-of-honor-pagination button:focus-visible {
    outline: 2px solid var(--roh-focus);
    outline-offset: 2px;
}

.guru-c360-roll-of-honor-count {
    margin-left: auto;
    padding-bottom: 0.55rem;
    color: var(--roh-muted) !important;
    font-size: 0.86rem;
    white-space: nowrap;
}

.guru-c360-roll-of-honor-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--roh-border) !important;
    background: var(--roh-panel);
    scrollbar-color: var(--roh-border) var(--roh-bg);
    -webkit-overflow-scrolling: touch;
}

.guru-c360-roll-of-honor-table {
    width: 100% !important;
    min-width: 1720px;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
    background: var(--roh-panel) !important;
    color: var(--roh-text) !important;
    table-layout: auto;
}

.guru-c360-roll-of-honor-table th,
.guru-c360-roll-of-honor-table td {
    border: 0 !important;
    border-right: 1px solid var(--roh-border) !important;
    border-bottom: 1px solid var(--roh-border) !important;
    padding: 0.62rem 0.68rem !important;
    background: transparent !important;
    color: var(--roh-text) !important;
    vertical-align: top;
    text-align: left;
    line-height: 1.35;
}

.guru-c360-roll-of-honor-table th:last-child,
.guru-c360-roll-of-honor-table td:last-child {
    border-right: 0 !important;
}

.guru-c360-roll-of-honor-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.guru-c360-roll-of-honor-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--roh-header) !important;
    color: var(--roh-heading) !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.guru-c360-roll-of-honor-table tbody tr {
    background: var(--roh-bg) !important;
}

.guru-c360-roll-of-honor-table tbody tr:nth-child(even) {
    background: var(--roh-bg-alt) !important;
}

.guru-c360-roll-of-honor-table tbody tr:hover {
    background: var(--roh-hover) !important;
}

.guru-c360-roll-of-honor-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    font: inherit;
    font-weight: inherit;
    text-align: left;
    cursor: pointer;
}

.guru-c360-roll-of-honor-sort:hover {
    color: var(--roh-link-hover) !important;
}

.guru-c360-roll-of-honor-sort-icon::before {
    content: "↕";
    color: var(--roh-muted);
    font-size: 0.85rem;
}

.guru-c360-roll-of-honor-sort.is-active .guru-c360-roll-of-honor-sort-icon::before {
    content: "↑";
    color: var(--roh-link);
}

.guru-c360-roll-of-honor-sort.is-active.is-desc .guru-c360-roll-of-honor-sort-icon::before {
    content: "↓";
}

.guru-c360-roll-of-honor-image-heading,
.guru-c360-roll-of-honor-image {
    width: 72px;
    min-width: 72px;
    text-align: center !important;
}

.guru-c360-roll-of-honor-image img {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border: 1px solid var(--roh-border);
    border-radius: 2px;
    object-fit: cover;
    filter: saturate(0.82) contrast(1.03);
}

.guru-c360-roll-of-honor-no-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid var(--roh-border);
    color: var(--roh-muted);
    background: var(--roh-bg-alt);
}

.guru-c360-roll-of-honor a,
.guru-c360-roll-of-honor a:visited,
.guru-c360-roll-of-honor .guru-autolinker,
.guru-c360-roll-of-honor .guru-autolinker:visited {
    color: var(--roh-link) !important;
    text-decoration: none;
}

.guru-c360-roll-of-honor a:hover,
.guru-c360-roll-of-honor a:focus,
.guru-c360-roll-of-honor .guru-autolinker:hover,
.guru-c360-roll-of-honor .guru-autolinker:focus {
    color: var(--roh-link-hover) !important;
    text-decoration: underline;
}

.guru-c360-roll-of-honor-person-link {
    font-weight: 700;
}

.guru-c360-roll-of-honor-units {
    display: block;
    min-width: 185px;
}


.guru-c360-roll-of-honor-table td[data-key="place_of_death"] {
    min-width: 150px;
}

.guru-c360-roll-of-honor-table td[data-key="country_of_death"] {
    min-width: 145px;
}

.guru-c360-roll-of-honor-table td[data-key="cause_of_death"] {
    width: 340px;
    min-width: 300px;
    max-width: 340px;
}

.guru-c360-roll-of-honor-cause-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--roh-cause-lines, 4);
    line-clamp: var(--roh-cause-lines, 4);
    overflow-wrap: anywhere;
}

.guru-c360-roll-of-honor-cause.is-expanded .guru-c360-roll-of-honor-cause-text {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.guru-c360-roll-of-honor-cause-toggle {
    display: inline-block;
    min-height: 0 !important;
    margin: 0.28rem 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--roh-link) !important;
    box-shadow: none !important;
    font: inherit !important;
    font-size: 0.86em !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    cursor: pointer;
}

.guru-c360-roll-of-honor-cause-toggle[hidden] {
    display: none !important;
}

.guru-c360-roll-of-honor-cause-toggle:hover,
.guru-c360-roll-of-honor-cause-toggle:focus {
    color: var(--roh-link-hover) !important;
    text-decoration: underline;
}

.guru-c360-roll-of-honor-empty-static td,
.guru-c360-roll-of-honor-no-results td {
    padding: 1.25rem !important;
    color: var(--roh-muted) !important;
    text-align: center;
}

.guru-c360-roll-of-honor-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.guru-c360-roll-of-honor-pagination[hidden] {
    display: none;
}

.guru-c360-roll-of-honor-pagination button {
    min-height: 38px;
    margin: 0;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--roh-border) !important;
    border-radius: 3px;
    background: var(--roh-control) !important;
    color: var(--roh-text) !important;
    box-shadow: none !important;
    font: inherit;
    cursor: pointer;
}

.guru-c360-roll-of-honor-pagination button:hover:not(:disabled) {
    background: var(--roh-hover) !important;
    color: var(--roh-link-hover) !important;
}

.guru-c360-roll-of-honor-pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.guru-c360-roll-of-honor-page-status {
    min-width: 100px;
    color: var(--roh-muted) !important;
    font-size: 0.86rem;
    text-align: center;
}

.gc360-roh-shell-error {
    padding: 1rem;
    border: 1px solid #9b3f3f;
    color: #f0b5b5;
    background: #2b1717;
}

@media (max-width: 700px) {
    .guru-c360-roll-of-honor-toolbar {
        align-items: stretch;
    }

    .guru-c360-roll-of-honor-search-wrap {
        flex-basis: 100%;
    }

    .guru-c360-roll-of-honor-count {
        width: 100%;
        margin-left: 0;
        padding-bottom: 0;
    }

    .guru-c360-roll-of-honor-pagination {
        justify-content: space-between;
    }
}

/* Front-end admin editing. Hidden completely for visitors without permission. */
.guru-c360-roll-of-honor-admin-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
    padding: 0.38rem 0.58rem;
    border: 1px solid var(--roh-border);
    border-radius: 3px;
    background: var(--roh-bg-alt);
    color: var(--roh-muted) !important;
    font-size: 0.78rem;
    line-height: 1.3;
}

.guru-c360-roll-of-honor-actions-heading,
.guru-c360-roll-of-honor-actions {
    width: 78px;
    min-width: 78px;
    text-align: center !important;
}

.guru-c360-roll-of-honor-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-width: 58px;
    padding: 0.32rem 0.48rem;
    border: 1px solid var(--roh-border);
    border-radius: 3px;
    background: var(--roh-control);
    color: var(--roh-link) !important;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
}

.guru-c360-roll-of-honor-edit-link:hover,
.guru-c360-roll-of-honor-edit-link:focus {
    border-color: var(--roh-link);
    background: var(--roh-hover);
    color: var(--roh-link-hover) !important;
    text-decoration: none !important;
}

body.gc360-roh-editor-open {
    overflow: hidden !important;
}

.guru-c360-roll-of-honor-editor-modal[hidden] {
    display: none !important;
}

.guru-c360-roll-of-honor-editor-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.2vh 1.4vw;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.guru-c360-roll-of-honor-editor-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.guru-c360-roll-of-honor-editor-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
}

.guru-c360-roll-of-honor-editor-dialog {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    width: min(1500px, 97vw);
    height: 95vh;
    border: 1px solid #4b4f50;
    border-radius: 4px;
    background: #101415;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    transform: translateY(12px) scale(0.99);
    transition: transform 0.18s ease;
}

.guru-c360-roll-of-honor-editor-modal.is-open .guru-c360-roll-of-honor-editor-dialog {
    transform: translateY(0) scale(1);
}

.guru-c360-roll-of-honor-editor-bar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 52px;
    padding: 0.65rem 0.8rem 0.65rem 1rem;
    border-bottom: 1px solid #3b3f40;
    background: #1a1e1f;
    color: #eadfce;
}

.guru-c360-roll-of-honor-editor-title {
    overflow: hidden;
    color: #eadfce !important;
    font-size: 0.95rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guru-c360-roll-of-honor-editor-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #525758 !important;
    border-radius: 3px !important;
    background: #111516 !important;
    color: #e8ddca !important;
    box-shadow: none !important;
    font: inherit !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    cursor: pointer;
}

.guru-c360-roll-of-honor-editor-close:hover,
.guru-c360-roll-of-honor-editor-close:focus {
    border-color: #d08a5f !important;
    color: #efb184 !important;
}

.guru-c360-roll-of-honor-editor-loading {
    position: absolute;
    z-index: 2;
    top: 52px;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #101415;
    color: #c8baa6;
    font-size: 1rem;
}

.guru-c360-roll-of-honor-editor-loading[hidden] {
    display: none !important;
}

.guru-c360-roll-of-honor-editor-frame {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
    background: #101415;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.guru-c360-roll-of-honor-editor-frame.is-loaded {
    opacity: 1;
}

@media (max-width: 700px) {
    .guru-c360-roll-of-honor-editor-modal {
        padding: 0;
    }

    .guru-c360-roll-of-honor-editor-dialog {
        width: 100vw;
        height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .guru-c360-roll-of-honor-editor-title {
        font-size: 0.84rem;
    }
}

/* Keep the permission-only Edit control visible while the wide table scrolls. */
.guru-c360-roll-of-honor-actions-heading,
.guru-c360-roll-of-honor-actions {
    position: sticky !important;
    right: 0;
    z-index: 3;
    box-shadow: -1px 0 0 var(--roh-border);
}

.guru-c360-roll-of-honor-actions-heading {
    background: var(--roh-header) !important;
}

.guru-c360-roll-of-honor-actions {
    background: var(--roh-panel) !important;
}
