/* Roleplayverse Terminologies · dedicated, text-first lexicon UI. */
.rv-terms {
    --rv-terms-red: #ce2842;
    --rv-terms-deep: #99152d;
    --rv-terms-ink: #272b33;
    --rv-terms-muted: #505662;
    --rv-terms-border: #e6d9dd;
    --rv-terms-pale: #fff1f4;
    color: var(--rv-terms-ink);
    font-weight: 400;
    min-width: 0;
    padding-bottom: 48px;
}
.rv-terms *, .rv-terms *::before, .rv-terms *::after { box-sizing: border-box; }
.rv-terms :is(a, button, input, select):focus-visible {
    outline: 2px solid var(--rv-terms-red);
    outline-offset: 3px;
}

/* One gradient, for the hero only: white reading surfaces stay flat. */
.rv-terms .rv-terms-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    padding: 29px 32px;
    margin-bottom: 18px;
    min-height: 164px;
    background-color: #af1d34;
    background-image: linear-gradient(110deg, #d83552 0%, #ba223c 48%, #841329 100%);
    border: 1px solid #ac243c;
    border-radius: 12px;
    box-shadow: none !important;
    color: #fff;
}
.rv-terms-hero-content { min-width: 0; position: relative; z-index: 1; }
.rv-terms .rv-terms-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: #ffe9ee;
    font-size: .69rem;
    letter-spacing: .115em;
    line-height: 1.4;
    font-weight: 600;
}
.rv-terms-eyebrow i { font-size: 1.08rem; }
.rv-terms .rv-terms-hero h1 {
    margin: 0 0 7px;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: -.025em;
    font-size: clamp(1.75rem, 3.2vw, 2.35rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.rv-terms .rv-terms-hero p {
    max-width: 660px;
    margin: 0;
    color: #fff !important;
    font-size: .86rem;
    font-weight: 400;
    line-height: 1.7;
    opacity: .96;
}
.rv-terms-hero-count {
    flex: 0 0 auto;
    min-width: 112px;
    min-height: 98px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 9px;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background: transparent;
}
.rv-terms-hero-count strong { font-size: 2.05rem; line-height: 1.05; color: #fff; font-weight: 700; }
.rv-terms-hero-count span { font-size: .64rem; letter-spacing: .14em; font-weight: 600; margin-top: 8px; }
.rv-terms-hero-art {
    position: absolute;
    right: 28px;
    bottom: -27px;
    font-size: 11rem;
    line-height: 1;
    color: #fff;
    opacity: .09;
    transform: rotate(-8deg);
    pointer-events: none;
}
.rv-terms .rv-terms-detail-hero { min-height: 147px; }
.rv-terms-detail-hero .rv-terms-hero-content { padding-right: 14%; }

/* Search and index cards */
.rv-terms.rv-terms-index {
    --rv-terms-ink: #202630;
    --rv-terms-muted: #3c4652;
}
.rv-terms-panel, .rv-terms-article, .rv-terms-aside {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--rv-terms-border);
    box-shadow: none !important;
    border-radius: 11px;
}
.rv-terms-panel { padding: 24px; }
.rv-terms-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 17px 24px; flex-wrap: wrap; }
.rv-terms-toolbar-copy { min-width: 200px; flex: 1 1 270px; }
.rv-terms .rv-terms-toolbar h2 {
    margin: 0 0 5px;
    font-size: 1.26rem;
    font-weight: 700;
    color: var(--rv-terms-ink);
    line-height: 1.35;
}
.rv-terms-toolbar-copy p { font-size: .9rem; color: var(--rv-terms-muted); margin: 0; line-height: 1.7; }
.rv-terms-filters { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; flex: 1 1 490px; justify-content: flex-end; }
.rv-terms-search {
    position: relative;
    min-width: 175px;
    flex: 1 1 200px;
}
.rv-terms-search > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    color: #6c5961;
    pointer-events: none;
}
.rv-terms .rv-terms-search input,
.rv-terms .rv-terms-filters select {
    width: 100%;
    min-height: 43px;
    border: 1px solid #d8ced3;
    background: #fff;
    color: #292d36;
    border-radius: 7px;
    font: inherit;
    font-size: .88rem;
    line-height: 1.4;
    box-shadow: none !important;
}
.rv-terms .rv-terms-search input { padding: 10px 12px 10px 38px; }
.rv-terms .rv-terms-search input::placeholder { color: #6a6e78; opacity: 1; }
.rv-terms-sort-field {
    display: flex;
    align-items: center;
    flex: 0 1 176px;
    width: 176px;
    min-width: 150px;
    min-height: 43px;
    border: 1px solid #d8ced3;
    border-radius: 7px;
    background: #fff;
}
.rv-terms .rv-terms-sort-field select {
    flex: 0 0 calc(100% - 18px);
    width: calc(100% - 18px);
    min-width: 0;
    min-height: 41px;
    margin: 0;
    padding: 8px 0 8px 11px;
    border: 0;
    border-radius: 6px;
    background-color: transparent;
    appearance: auto;
    cursor: pointer;
}
.rv-terms .rv-terms-sort-field:focus-within {
    outline: 2px solid var(--rv-terms-red);
    outline-offset: 3px;
}
.rv-terms .rv-terms-sort-field select:focus-visible { outline: none; }
.rv-terms .rv-terms-search-button,
.rv-terms .rv-terms-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    min-height: 43px;
    border: 1px solid #a71933;
    border-radius: 7px;
    color: #fff !important;
    background: #bc233e;
    text-decoration: none !important;
    font-size: .86rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.3;
    cursor: pointer;
    -webkit-text-fill-color: #fff;
}
.rv-terms .rv-terms-search-button:hover,
.rv-terms .rv-terms-search-button:focus-visible,
.rv-terms .rv-terms-primary-link:hover,
.rv-terms .rv-terms-primary-link:focus-visible { background: #90142a; border-color: #90142a; color: #fff !important; }
.rv-terms .rv-terms-clear {
    width: 43px;
    min-height: 43px;
    flex: 0 0 43px;
    display: inline-grid;
    place-items: center;
    color: #93172f !important;
    background: #fff0f3;
    border: 1px solid #eed7dc;
    border-radius: 7px;
    text-decoration: none !important;
    font-size: 1.35rem;
}
.rv-terms .rv-terms-clear:hover { background: #fce2e8; }
.rv-terms-results { margin: 20px 0 15px; color: #46505c; font-size: .87rem; font-weight: 500; }
.rv-terms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rv-terms .rv-terms-entry {
    min-width: 0;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 24px;
    border: 1px solid #e7d9df;
    border-radius: 9px;
    text-decoration: none !important;
    color: var(--rv-terms-ink) !important;
    background: #fff;
    transition: border-color .16s ease, background-color .16s ease;
    overflow: hidden;
}
.rv-terms .rv-terms-entry:hover,
.rv-terms .rv-terms-entry:focus-visible { border-color: #cf7186; background: #fffafc; }
.rv-terms .rv-terms-entry h3 {
    font-size: 1.24rem;
    line-height: 1.4;
    font-weight: 700;
    color: #202630;
    margin: 0 0 14px;
    overflow-wrap: anywhere;
}
.rv-terms-entry-excerpt {
    margin: 0 0 16px;
    color: #353e49;
    font-size: .96rem;
    line-height: 1.75;
    font-weight: 400;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
}
.rv-terms-entry-footer { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 14px; }
.rv-terms-entry-date { display: inline-flex; align-items: center; gap: 5px; font-size: .79rem; color: #505964; }
.rv-terms-entry-date i { font-size: .95rem; }
.rv-terms-entry-action { display: inline-flex; align-items: center; gap: 3px; color: #9c1831; font-size: .86rem; font-weight: 700; }
.rv-terms-entry-action i { font-size: 1.2rem; transition: transform .16s ease; }
.rv-terms-entry:hover .rv-terms-entry-action i { transform: translateX(3px); }
.rv-terms-empty { text-align: center; padding: 52px 16px; }
.rv-terms-empty > i { font-size: 2.35rem; color: #b22540; }
.rv-terms .rv-terms-empty h3 { color: #272a33; font-size: 1.1rem; margin: 12px 0 6px; }
.rv-terms-empty p { color: #585d68; font-size: .84rem; margin-bottom: 15px; }
.rv-terms-pagination { display: flex; justify-content: center; margin-top: 26px; }
.rv-terms-pagination nav { width: 100%; }
.rv-terms-pagination nav .d-sm-flex { gap: 20px; align-items: center !important; }
.rv-terms-pagination nav p { margin: 0 !important; line-height: 1.5; color: #4c5360; }
.rv-terms-pagination .pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0; }
.rv-terms-pagination .page-item:not(:first-child) .page-link { margin-left: 0; }
.rv-terms-pagination .page-item .page-link { border-radius: 7px; border: 1px solid #e6d6db; background: #fff; color: #9f1a33; font-size: .83rem; }
.rv-terms-pagination .page-item.active .page-link { background: #ce2842; border-color: #ce2842; color: #fff; }
.rv-terms-pagination .page-item.disabled .page-link { color: #6c6d74; }

/* Reader: generous typography and a restrained companion panel. */
.rv-terms .rv-terms-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9b1b33 !important;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none !important;
    margin: 0 0 18px;
}
.rv-terms-back i { font-size: 1.1rem; }
.rv-terms .rv-terms-back:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.rv-terms-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 300px); gap: 18px; align-items: start; }
.rv-terms-article { padding: 28px 30px 32px; }
.rv-terms-article-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 23px; padding-bottom: 17px; border-bottom: 1px solid #efe3e6; }
.rv-terms .rv-terms-section-kicker { display: block; font-size: .67rem; letter-spacing: .1em; color: #a51c37; font-weight: 600; line-height: 1.4; margin-bottom: 7px; }
.rv-terms .rv-terms-article-head h2 { color: #282b33; font-size: 1.16rem; line-height: 1.4; font-weight: 600; margin: 0; }
.rv-terms-updated { display: inline-flex; align-items: center; gap: 5px; color: #565b66; font-size: .75rem; line-height: 1.4; white-space: nowrap; }
.rv-terms-updated i { font-size: .98rem; }
.rv-terms-prose { min-width: 0; color: #30343c; font-size: .91rem; font-weight: 400; line-height: 1.85; overflow-wrap: anywhere; }
.rv-terms-prose > :first-child { margin-top: 0 !important; }
.rv-terms-prose > :last-child { margin-bottom: 0 !important; }
.rv-terms-prose p { margin: 0 0 1.2rem; }
.rv-terms-prose h1,
.rv-terms-prose h2,
.rv-terms-prose h3,
.rv-terms-prose h4,
.rv-terms-prose h5,
.rv-terms-prose h6 { color: #262a32; line-height: 1.4; font-weight: 600; margin: 1.45rem 0 .7rem; overflow-wrap: anywhere; }
.rv-terms-prose h1 { font-size: 1.5rem; }
.rv-terms-prose h2 { font-size: 1.3rem; }
.rv-terms-prose h3 { font-size: 1.15rem; }
.rv-terms-prose a { color: #a61935 !important; text-decoration: underline !important; text-underline-offset: 3px; }
.rv-terms-prose img,
.rv-terms-prose video,
.rv-terms-prose iframe { max-width: 100%; height: auto; }
.rv-terms-prose img { border-radius: 7px; }
.rv-terms-prose ul,
.rv-terms-prose ol { padding-left: 1.65rem !important; margin: .85rem 0 1.2rem; list-style-position: outside !important; }
.rv-terms-prose ul { list-style-type: disc !important; }
.rv-terms-prose ol { list-style-type: decimal !important; }
.rv-terms-prose li { display: list-item !important; margin: 0 0 .45rem; }
.rv-terms-prose li > p { margin: 0; }
.rv-terms-prose blockquote { margin: 1.1rem 0; padding: .75rem 1rem; border-left: 3px solid #ce2842; background: #fff5f7; }
.rv-terms-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1rem 0; }
.rv-terms-prose th,
.rv-terms-prose td { border: 1px solid #e4d7dc; padding: 9px 11px; vertical-align: top; }
.rv-terms-prose pre { max-width: 100%; overflow-x: auto; padding: 12px; border-radius: 6px; background: #f6f6f7; }
.rv-terms-description-empty { color: #535967; font-size: .89rem; line-height: 1.7; margin: 0; }
.rv-terms-aside { padding: 22px; position: sticky; top: 116px; }
.rv-terms-aside-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rv-terms-aside-icon { display: inline-grid; flex: 0 0 38px; height: 38px; place-items: center; font-size: 1.18rem; color: #a51b36; background: var(--rv-terms-pale); border-radius: 8px; }
.rv-terms .rv-terms-aside h2 { font-size: .94rem; line-height: 1.35; font-weight: 600; color: #2b2d34; margin: 0; }
.rv-terms .rv-terms-aside-head .rv-terms-section-kicker { font-size: .62rem; margin-bottom: 3px; }
.rv-terms .rv-terms-side-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #f1e8eb;
    padding: 13px 2px;
    color: #393b45 !important;
    font-size: .81rem;
    font-weight: 500;
    line-height: 1.55;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}
.rv-terms-side-entry span { min-width: 0; }
.rv-terms-side-entry i { color: #ae2742; font-size: 1.1rem; flex: 0 0 auto; }
.rv-terms .rv-terms-side-entry:hover { color: #a31934 !important; }
.rv-terms-aside-empty { font-size: .81rem; color: #545862; line-height: 1.6; }
.rv-terms .rv-terms-aside-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1e8eb;
    width: 100%;
    color: #9e1c34 !important;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none !important;
}
.rv-terms-aside-all i { font-size: 1.13rem; }
.rv-terms .rv-terms-aside-all:hover { text-decoration: underline !important; }

@media (max-width: 991.98px) {
    .rv-terms-detail-layout { grid-template-columns: minmax(0, 1fr); }
    .rv-terms-aside { position: static; }
}
@media (max-width: 767.98px) {
    .rv-terms .rv-terms-hero { padding: 23px 23px; }
    .rv-terms-panel { padding: 18px; }
    .rv-terms-toolbar { align-items: stretch; }
    .rv-terms-filters { flex: 1 1 100%; justify-content: flex-start; }
    .rv-terms-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .rv-terms .rv-terms-entry { padding: 16px; }
    .rv-terms-article { padding: 22px; }
}
@media (max-width: 575.98px) {
    .rv-terms .rv-terms-hero { align-items: flex-start; padding: 23px 20px; gap: 14px; }
    .rv-terms-hero-count { padding: 9px 10px; min-height: 60px; min-width: 64px; }
    .rv-terms-hero-count strong { font-size: 1.3rem; }
    .rv-terms-hero-count span { font-size: .52rem; letter-spacing: .06em; margin-top: 3px; }
    .rv-terms .rv-terms-hero h1 { font-size: 1.54rem; }
    .rv-terms-hero-art { right: -9px; font-size: 7rem; opacity: .06; }
    .rv-terms-panel { padding: 15px; }
    .rv-terms-grid { grid-template-columns: minmax(0, 1fr); }
    .rv-terms .rv-terms-entry { min-height: 215px; }
    .rv-terms-filters { gap: 8px; }
    .rv-terms-search { flex: 1 1 100%; }
    .rv-terms .rv-terms-sort-field { flex: 1 1 50%; width: auto; min-width: 0; }
    .rv-terms .rv-terms-search-button { flex: 0 0 auto; }
    .rv-terms-article { padding: 19px 17px 24px; }
    .rv-terms-aside { padding: 19px 17px; }
    .rv-terms .rv-terms-detail-hero .rv-terms-hero-content { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .rv-terms .rv-terms-entry, .rv-terms-entry-action i { transition: none; }
}
