:root {
    --guild-bg: #1a1410;
    --guild-surface: #241b14;
    --guild-surface-alt: #2c2118;
    --guild-border: #6b4a26;
    --guild-border-dark: #3a2a18;
    --guild-gold: #c9a24a;
    --guild-gold-bright: #f2d38a;
    --guild-crimson: #7a1f1f;
    --guild-crimson-bright: #a8332f;
    --guild-parchment: #e9dcbb;
    --guild-parchment-dark: #d8c69a;
    --guild-ink: #2c1e10;
    --guild-text: #ecdfc0;
    --guild-text-muted: #b6a582;
}

html {
    font-family: Georgia, 'Times New Roman', Times, serif;
    background: url('images/legends/bg.jpg') center top / cover no-repeat #100903;
    background-attachment: fixed;
    color: var(--guild-text);
    min-height: 100%;
    overflow-x: hidden;
}

body {
    /* bootstrap-reboot.css sets an opaque body background-color that otherwise paints
       over the fixed html background image; keep it transparent so that shows through */
    background-color: transparent;
    color: var(--guild-ink);
    overflow-x: hidden;
    max-width: 100vw;
}


/* Centered page column like the Legends site, sitting over the fixed backdrop image */
.page {
    max-width: 1400px;
    margin: 0 auto;
}

/* Ornate article panel used to frame page content, modeled on the Legends site's
   .news-article structure: a position:relative wrapper holds an absolutely-positioned
   background layer (.legends-panel-bg) made of a flex column with a top cap, a
   repeating tile that stretches to fill remaining height, and a bottom cap - all sized
   to exactly match whatever height the real content (.legends-panel-body) ends up being,
   so the frame always hugs the content instead of floating independently over it.
   Matches the Legends .news-article: fixed 860px width, same padding scale. */
.legends-panel {
    position: relative;
    width: 860px;
    max-width: 100%;
    margin: 0 auto 2rem;
}

.legends-panel-wide {
    width: 1200px;
}

.legends-panel-bg {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    z-index: 0;
    pointer-events: none;
}

.legends-panel-bg-top {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 860 / 165;
    background: url('images/legends/article-panel-light-top.png') 0 0 / 100% auto no-repeat;
}

.legends-panel-bg-tile {
    flex: 1 1 auto;
    width: 100%;
    background: url('images/legends/article-panel-light-tile.png') center top / 100% auto repeat-y;
}

.legends-panel-bg-bottom {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 860 / 84;
    background: url('images/legends/article-panel-light-bottom.png') center top / 100% auto no-repeat;
}

.legends-panel-body {
    position: relative;
    z-index: 1;
    color: #42220a;
    text-align: left;
    padding: max(25px, 7.5vw) max(25px, 7.5vw) max(30px, 9vw);
}

@media (min-width: 768px) {
    .legends-panel-body {
        padding: 68px 70px 83px;
    }
}

/* Section divider matching the Legends scroll motif - reserved for footer use
   (Legends only uses scroll-divider.png in the site footer, not in body content). */
h2 {
    position: relative;
}

/* Page title, styled identically to section headers (h2) - there's no visual
   distinction between the page title and section headings on the Legends site. */
.page-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    padding-bottom: 0;
    margin: 0.83em 0;
}

    .page-title::after {
        display: none;
    }

/* Inside the parchment article panel, headings/text should match the Legends
   .news-article-title treatment: dark ink, serif Garamond, bold, no gold glow -
   the gold Cinzel styling below is meant for text over the dark nav/hero, not
   for content sitting on the light parchment panel. */
.legends-panel-body h1,
.legends-panel-body h2,
.legends-panel-body h3,
.legends-panel-body h4,
.legends-panel-body h5,
.legends-panel-body h6 {
    font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
    color: #42220a;
    letter-spacing: normal;
    text-shadow: none;
}

.legends-panel-body .page-title {
    font-weight: bold;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 0.83em 0;
}

/* Links on the light parchment panel default to Bootstrap's blue, which is
   nearly unreadable against the tan/parchment background - use a dark ink-red
   consistent with the panel's serif/ink palette instead, with an underline so
   they're still identifiable as links without relying on color contrast alone. */
.legends-panel-body a {
    color: #7a1f1f;
    text-decoration: underline;
}

    .legends-panel-body a:hover,
    .legends-panel-body a:focus {
        color: #5a1414;
    }

.legends-panel-body a.btn,
.legends-panel-body a.btn:hover,
.legends-panel-body a.btn:focus {
    text-decoration: none;
}

/* Plain section headers inside the parchment panel, matching how Legends
   patch-notes body content presents its own section headings (e.g. "GENERAL",
   "ITEMS") - the Legends article body doesn't style these at all, so they
   render at the browser's actual default h2 margin/size/weight
   (font-size: 1.5em; margin-block: 0.83em; font-weight: bold) against its
   15px body copy; match that same default exactly here. */
.legends-panel-body h2 {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0.83em 0;
}

/* Plain content section, used in place of a Bootstrap card box for grouping
   related controls/tables inside the parchment panel. */
.legends-section {
    margin: 0 0 1.5rem;
}

    .legends-section:last-child {
        margin-bottom: 0;
    }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
    color: var(--guild-gold-bright);
    letter-spacing: 0.03em;
    text-shadow: 1px 1px 0 #000, 0 0 8px rgba(201, 162, 74, 0.25);
}

a, .btn-link {
    color: var(--guild-gold-bright);
}

a:hover, .btn-link:hover {
    color: var(--guild-gold);
    text-decoration: underline;
}

.btn,
.btn:hover,
.btn:focus,
.btn:active {
    text-decoration: none;
}

.btn + .btn {
    margin-left: 0.4rem;
}

.action-btn-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.action-btn-group .btn {
    margin: 0;
}

.btn-primary {
    color: #2c1a06;
    background: linear-gradient(180deg, var(--guild-gold-bright), var(--guild-gold));
    border: 1px solid var(--guild-border-dark);
    border-radius: 3px;
    font-weight: 700;
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.35);
}

    .btn-primary:hover, .btn-primary:focus {
        background: linear-gradient(180deg, #ffe4a3, var(--guild-gold-bright));
        border-color: var(--guild-border-dark);
        color: #2c1a06;
    }

.btn-danger {
    color: #fdeaea;
    background: linear-gradient(180deg, var(--guild-crimson-bright), var(--guild-crimson));
    border: 1px solid #2e0d0d;
    border-radius: 3px;
    font-weight: 700;
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.35);
}

    .btn-danger:hover, .btn-danger:focus {
        background: linear-gradient(180deg, #c94f4f, var(--guild-crimson-bright));
        border-color: #2e0d0d;
        color: #fdeaea;
    }

.btn-warning {
    color: #2c1a06;
    background: linear-gradient(180deg, var(--guild-gold-bright), var(--guild-gold));
    border: 1px solid var(--guild-border-dark);
    border-radius: 3px;
    font-weight: 700;
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.35);
}

    .btn-warning:hover, .btn-warning:focus {
        background: linear-gradient(180deg, #ffe4a3, var(--guild-gold-bright));
        border-color: var(--guild-border-dark);
        color: #2c1a06;
    }

.btn-secondary {
    color: #eef1f7;
    background: linear-gradient(180deg, #7a7f8a, #52565e);
    border: 1px solid #2a2d33;
    border-radius: 3px;
    font-weight: 700;
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.35);
}

    .btn-secondary:hover, .btn-secondary:focus {
        background: linear-gradient(180deg, #8d93a0, #7a7f8a);
        border-color: #2a2d33;
        color: #eef1f7;
    }

.btn-success {
    color: #eef7ee;
    background: linear-gradient(180deg, #3f7a3f, #285228);
    border: 1px solid #1a361a;
    border-radius: 3px;
    font-weight: 700;
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.35);
}

    .btn-success:hover, .btn-success:focus {
        background: linear-gradient(180deg, #4d914d, #3f7a3f);
        border-color: #1a361a;
        color: #eef7ee;
    }

.btn-outline-secondary {
    color: var(--guild-text-muted);
    border: 2px solid var(--guild-border);
    font-family: 'Cinzel', Georgia, serif;
}

.btn-outline-primary {
    color: var(--guild-gold-bright);
    background: transparent;
    border: 2px solid var(--guild-gold);
    border-radius: 3px;
    font-weight: 700;
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.04em;
}

    .btn-outline-primary:hover, .btn-outline-primary:focus {
        color: #2c1a06;
        background: linear-gradient(180deg, var(--guild-gold-bright), var(--guild-gold));
        border-color: var(--guild-border-dark);
    }

button.btn-link,
a.btn-link {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
}

    button.btn-link:hover,
    a.btn-link:hover {
        text-decoration: underline;
    }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus {
  box-shadow: 0 0 0 0.1rem var(--guild-bg), 0 0 0 0.25rem var(--guild-gold);
}

.form-check-input:focus,
.legends-checkbox:focus {
    outline: none;
    box-shadow: none;
}

/* Inside the parchment panel, buttons are drawn using a torn-parchment banner image
   (exported from the Legends "Light Mode/Dark Mode" toggle art) rather than boxed UI
   chrome. The banner uses the native CSS border-image 9-slice: a left cap, a
   stretching middle, and a right cap, sliced directly from the single source PNG so
   the browser handles the slicing/stretching math without any seam or gap risk.
   All buttons share the same dark banner and the same label coloring (tan at rest,
   gold on hover/focus/active with a subtle glow) - variant classes no longer change
   the button's appearance. */
.legends-panel-body .btn,
.legends-panel-body .btn:active,
.legends-panel-body .btn:focus,
.legends-panel-body .btn:disabled,
.legends-panel-body .btn.disabled {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-style: solid;
    border-width: 0 32px;
    border-radius: 0;
    box-shadow: none !important;
    isolation: isolate;
    box-sizing: border-box;
    height: 53px;
    min-width: 96px;
    padding: 0 0.15rem;
    font-size: 0.85rem;
    line-height: 1.1;
    white-space: nowrap;
    background: none !important;
    border-image-source: url('images/legends/btn-dark-rest.png');
    border-image-slice: 0 32 fill;
    border-image-width: 0 32px;
    border-image-repeat: stretch;
    color: #f8eacd;
    text-shadow: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.legends-panel-body .btn:active {
    transform: none;
}

    .legends-panel-body .btn:hover,
    .legends-panel-body .btn:focus,
    .legends-panel-body .btn:active {
        border-image-source: url('images/legends/btn-dark-hover.png');
        color: #f4be30;
        text-shadow: 0 0 3px rgba(244, 190, 48, 0.35);
    }

/* Pulls a button down so it sits flush against the underline of the
   form-control/form-select it's aligned with in a row - the standard 53px
   banner is taller than those inputs, so bottom-aligning the row alone
   still leaves the button floating a bit high. */
.legends-panel-body .btn.mb-negative-lift {
    margin-bottom: -0.85rem;
}

/* Delete/destructive actions get deep red label text on the same dark banner so
   they read as distinct from the standard tan/gold buttons. */
.legends-panel-body .btn-danger,
.legends-panel-body .btn-danger:active,
.legends-panel-body .btn-danger:focus,
.legends-panel-body .btn-danger:disabled,
.legends-panel-body .btn-danger.disabled {
    color: #d9584a;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85);
}

    .legends-panel-body .btn-danger:hover,
    .legends-panel-body .btn-danger:focus,
    .legends-panel-body .btn-danger:active {
        color: #e8382b;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85), 0 0 6px rgba(232, 56, 43, 0.6);
    }


.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: none;
    border-bottom-color: #3f7a3f;
}

.invalid {
    outline: none;
    border-bottom-color: var(--guild-crimson-bright);
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Guild theming for common Bootstrap surfaces */

.table {
    color: var(--guild-ink);
    background-color: transparent;
    border: none;
    box-shadow: none;
    font-size: 0.9rem;
    border-collapse: collapse;
}

    .table > :not(caption) > * > * {
        background-color: transparent;
        color: var(--guild-ink);
        border: none;
        border-bottom: 1px solid rgba(66, 34, 10, 0.35);
        padding: 0.45rem 0.6rem;
        vertical-align: middle;
    }

    .table thead th {
        color: #42220a;
        background-color: transparent;
        font-family: 'Cinzel', Georgia, serif;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        border-bottom: 2px solid rgba(66, 34, 10, 0.55);
        padding: 0.4rem 0.6rem;
    }

    .table-sm > :not(caption) > * > * {
        padding: 0.2rem 0.5rem;
    }

    .table-hover > tbody > tr:hover > * {
        background-color: rgba(122, 31, 31, 0.08);
    }

    .table > tbody > tr.table-warning > * {
        --bs-table-bg: transparent;
        background-color: rgba(201, 162, 74, 0.22);
        box-shadow: inset 3px 0 0 var(--guild-crimson);
        color: var(--guild-ink);
    }

    .table > tbody > tr:last-child > * {
        border-bottom: none;
    }

/* Tables are wider than a phone screen once real data lands (dates, amounts,
   action buttons, etc.). Rather than requiring every page to wrap its markup
   in a Bootstrap .table-responsive div, let the table itself become a
   horizontally scrollable block below the tablet breakpoint so its contents
   never force the parchment panel (and the whole page) to overflow sideways. */
@media (max-width: 767px) {
    .table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}


/* Inputs match the plain-ink table styling instead of being boxed widgets: no fill,
   just a thin underline that thickens/darkens on focus. */
.form-control, .form-select {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid rgba(66, 34, 10, 0.55);
    border-radius: 0;
    box-shadow: none;
    color: var(--guild-ink);
}

/* Bootstrap's default select caret is a light gray SVG meant for a white
   background - it nearly disappears against the parchment panel, so replace
   it outright with a bolder dark-ink chevron sized for clear visibility. */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2342220a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 14px 11px;
    padding-right: 1.75rem;
}

/* Compact inline selects sized to their content (e.g. the raid signup
   character/status pickers) - with appearance: none, browsers compute a
   <select>'s intrinsic "auto" width purely from the widest <option> text plus
   the element's own reported padding box, but they do so using the select's
   *default* padding metrics rather than re-measuring after author CSS changes
   padding-right; box-sizing: content-box does not fix this because the
   intrinsic-size pass happens before layout applies the box model. Overriding
   Bootstrap's .w-auto (width: auto !important) with width: fit-content forces
   a proper preferred-size layout pass that does include the full padding box
   (text + left/right padding) in the measured width, so the chevron always
   has real breathing room after the longest option text. */
.form-select-sm.w-auto {
    width: fit-content !important;
    padding-right: 1.75rem !important;
}

    .form-control:focus, .form-select:focus {
        background-color: transparent;
        color: var(--guild-ink);
        border-bottom: 2px solid var(--guild-crimson);
        border-radius: 0;
        box-shadow: none;
    }

    .form-control::placeholder {
        color: #6b5230;
    }

/* Bootstrap's built-in validation styling (green/red border-radius box + glow +
   background-image checkmark/cross) doesn't match the underline treatment above -
   restyle valid/invalid states to the same underline language, just recolored. */
.form-control.is-valid, .form-select.is-valid,
.form-control:valid, .form-select:valid,
.was-validated .form-control:valid, .was-validated .form-select:valid {
    background-image: none;
    padding-right: 0.75rem;
    border-color: inherit;
    border-bottom-color: #3f7a3f;
    box-shadow: none;
}

    .form-control.is-valid:focus, .form-select.is-valid:focus,
    .form-control:valid:focus, .form-select:valid:focus,
    .was-validated .form-control:valid:focus, .was-validated .form-select:valid:focus {
        border-bottom-color: #3f7a3f;
        box-shadow: none;
    }

.form-control.is-invalid, .form-select.is-invalid,
.form-control:invalid, .form-select:invalid,
.was-validated .form-control:invalid, .was-validated .form-select:invalid {
    background-image: none;
    padding-right: 0.75rem;
    border-color: inherit;
    border-bottom-color: var(--guild-crimson-bright);
    box-shadow: none;
}

    .form-control.is-invalid:focus, .form-select.is-invalid:focus,
    .form-control:invalid:focus, .form-select:invalid:focus,
    .was-validated .form-control:invalid:focus, .was-validated .form-select:invalid:focus {
        border-bottom-color: var(--guild-crimson-bright);
        box-shadow: none;
    }

/* Checkbox theming is handled by the Legends sprite-checkbox rule further down
   (search "Legends-style checkbox") - no separate color/border override needed here. */

/* Bootstrap's .border-top/.border-bottom utilities default to a light gray that
   nearly vanishes against the parchment panel - recolor to the same muted
   ink-brown used elsewhere for panel dividers. */
.legends-panel-body .border-top,
.legends-panel-body .border-bottom {
    border-color: rgba(66, 34, 10, 0.35) !important;
}

.dropdown-menu {
    background-color: var(--guild-surface-alt);
    border: 2px solid var(--guild-border);
}

    .dropdown-menu .form-check-label {
        color: var(--guild-text);
    }

.card {
    background-color: var(--guild-surface);
    border: 2px solid var(--guild-border);
    color: var(--guild-text);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

/* Guild board grid on the home page: flat parchment cards, each with a centered
   title, summary, and an ornate button-sprite call to action. */
.hero {
    display: flex;
    justify-content: center;
    margin: 0 0 0.75rem;
}

.hero-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.rok-countdown {
    text-align: center;
    font-style: italic;
    font-size: 1.05rem;
    color: rgb(248, 234, 205);
    margin: 0 0 0.75rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.headline {
    display: flex;
    justify-content: center;
    margin: 0 0 0.75rem;
    padding: 0;
}

.headline-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.board-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 10px;
    padding: 0 10px;
}

@media (max-width: 900px) {
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .board-grid {
        grid-template-columns: 1fr;
    }
}

.board-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #42220a;
    aspect-ratio: 253 / 145;
    background: url('images/legends/article-bg-small.jpg') center top / 100% auto repeat-y;
    border: 1px solid #ffc581;
    border-radius: 0;
    padding: 14px 10px;
    box-shadow: inset 0 0 10px 0 rgba(0, 0, 0, 0.22), inset 0 3px 6px 0 rgba(0, 0, 0, 0.35), 0 0 24px 0 rgba(0, 0, 0, 0.51), 0 10px 14px rgba(0, 0, 0, 0.36);
}

    .board-item:hover,
    .board-item:focus {
        color: #42220a;
        border-color: #ffc581;
        text-decoration: none;
    }

.board-item-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 16px;
    color: var(--guild-crimson);
    letter-spacing: 0.01em;
    text-shadow: none;
    line-height: 1.15;
    margin: 0 0 0.5rem;
}

.board-item-summary {
    color: #42220a;
    opacity: 0.8;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.board-item-read-more {
    position: relative;
    z-index: 0;
    aspect-ratio: 168 / 48;
    width: 126px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-top: auto;
    padding: 0 0 4px;
    line-height: 1;
    color: #f7d691;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 0 6px black, 0 2px 4px black;
}

    .board-item-read-more::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('images/legends/small-button-sprite.png') center top / 100% auto no-repeat;
        z-index: -1;
    }

/* Reusable small sprite button (same art/proportions as .board-item-read-more /
   .auction-announcement-action) for use as a real <button> element in forms -
   shorter and less visually heavy than the tall .legends-panel-body .btn banner
   style, better suited for inline action buttons next to form controls. */
.legends-small-btn {
    position: relative;
    z-index: 0;
    flex: 0 0 auto;
    aspect-ratio: 168 / 48;
    width: 140px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem 4px;
    border: none;
    background: transparent;
    line-height: 1;
    color: #f7d691;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 0 6px black, 0 2px 4px black;
    cursor: pointer;
}

    .legends-small-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('images/legends/small-button-sprite.png') center top / 100% auto no-repeat;
        z-index: -1;
    }

    .legends-small-btn:hover::before,
    .legends-small-btn:active::before {
        background-position-y: bottom;
        transform: translateY(2px);
    }

    .legends-small-btn:disabled {
        cursor: not-allowed;
        opacity: 0.6;
    }

    .board-item:hover .board-item-read-more::before,
    .board-item:active .board-item-read-more::before {
        background-position-y: bottom;
        transform: translateY(2px);
    }

/* EQ2-style item tooltip */
.eq2-tooltip {
    background: #0b0b12;
    border: 2px solid #8a7a3a;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
    padding: 0.75rem 1rem;
    width: 380px;
    color: #cfd6e0;
    font-size: 0.85rem;
    line-height: 1.3;
}

.eq2-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.eq2-tooltip-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.eq2-tooltip-icon {
    border: 1px solid #8a7a3a;
    border-radius: 3px;
    flex-shrink: 0;
}

.eq2-rarity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.eq2-rarity-icon img {
    display: block;
}

.eq2-rarity-common { background-image: url('/images/rarities/common.png'); }
.eq2-rarity-handcrafted { background-image: url('/images/rarities/handcrafted.png'); }
.eq2-rarity-treasured { background-image: url('/images/rarities/treasured.png'); }
.eq2-rarity-legendary { background-image: url('/images/rarities/legendary.png'); }
.eq2-rarity-fabled { background-image: url('/images/rarities/fabled.png'); }
.eq2-rarity-mythical { background-image: url('/images/rarities/mythical.png'); }

.eq2-tooltip-tier {
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

.eq2-tooltip-level {
    color: #b8c2d1;
    margin-top: 0.1rem;
}

.eq2-tooltip-divider {
    border-top: 1px solid #2f3b4a;
    margin: 0.5rem 0;
}

.eq2-tooltip-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.1rem 0.75rem;
    font-weight: 600;
}

.eq2-tooltip-stat {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.eq2-tooltip-stats-primary {
    color: #6fcf6f;
}

.eq2-tooltip-stats-modifier {
    color: #5bb8e8;
}

.eq2-tooltip-weapon {
    color: #6fcf6f;
    font-weight: 600;
}

.eq2-tooltip-info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.15rem 0.75rem;
}

.eq2-tooltip-info-label {
    color: #8fa3bf;
}

.eq2-tooltip-info-value {
    color: #cfd6e0;
}

.eq2-tooltip-classes {
    color: #6fcf6f;
    font-weight: 600;
}

.eq2-tooltip-adorn-label {
    color: #d8c777;
    font-weight: 600;
}

.eq2-tooltip-adorn-colors {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.eq2-tooltip-adorn-swatch {
    font-size: 0.8rem;
}

/* Legends-style bullet list marker for plain content lists inside the article panel */
.legends-panel ul:not(.nav):not(.dropdown-menu):not(.list-group) {
    list-style: none;
    padding-left: 0;
}

    .legends-panel ul:not(.nav):not(.dropdown-menu):not(.list-group) > li {
        position: relative;
        padding-left: 1.75rem;
        margin-bottom: 0.4rem;
    }

        .legends-panel ul:not(.nav):not(.dropdown-menu):not(.list-group) > li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 18px;
            height: 1lh;
            background: url('images/legends/bullet-point.png') no-repeat center / contain;
        }

.eq2-adorn-white { color: #e8e8e8; }
.eq2-adorn-turquoise { color: #4fd3d3; }
.eq2-adorn-orange { color: #e08a3c; }
.eq2-adorn-crimson { color: #d1495b; }
.eq2-adorn-azure { color: #4a90d9; }

.eq2-tooltip-effects {
    color: #d8a8e0;
}

.eq2-tooltip-effect.eq2-indent-0 {
    font-weight: 600;
    color: #e0c060;
    margin-top: 0.25rem;
}

.eq2-tooltip-effect.eq2-indent-1 {
    margin-left: 0.75rem;
}

.eq2-tooltip-effect.eq2-indent-2 {
    margin-left: 1.5rem;
    color: #8fa3bf;
    font-size: 0.8rem;
}

.eq2-tier-common .eq2-tooltip-name { color: #e8e8e8; }
.eq2-tier-handcrafted { border-color: #b0844a; }
.eq2-tier-handcrafted .eq2-tooltip-name { color: #d9a05c; }
.eq2-tier-treasured { border-color: #d8b84a; }
.eq2-tier-treasured .eq2-tooltip-name,
.eq2-tier-treasured .eq2-tooltip-tier { color: #e8d24a; }
.eq2-tier-legendary { border-color: #4a90d9; }
.eq2-tier-legendary .eq2-tooltip-name,
.eq2-tier-legendary .eq2-tooltip-tier { color: #6fb0ff; }
.eq2-tier-fabled { border-color: #c96fd6; }
.eq2-tier-fabled .eq2-tooltip-name,
.eq2-tier-fabled .eq2-tooltip-tier { color: #d98ee0; }
.eq2-tier-mythical { border-color: #d94f4f; }
.eq2-tier-mythical .eq2-tooltip-name,
.eq2-tier-mythical .eq2-tooltip-tier { color: #ff6f6f; }

.eq2-item-row-name {
    position: relative;
    cursor: default;
}

.eq2-item-row-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
}

.eq2-item-row-name:hover .eq2-item-row-tooltip {
    display: block;
}

.eq2-bidding-now {
    font-weight: bold;
    color: #6b3f14;
}

/* Prominent top-of-page error banner (e.g. bid rejected: insufficient DKP) - plain
   .text-danger text was too easy to miss while bidding under time pressure, so this
   uses a solid, high-contrast banner with an icon instead of relying on color alone. */
.eq2-alert-error {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #7a1f1f;
    color: #fff2ee;
    border: 1px solid #4a1010;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.eq2-alert-error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #fff2ee;
    color: #7a1f1f;
    font-family: Georgia, 'Times New Roman', serif;
}



/* Character detail page: stats column left, equipment paper doll column right */
.eq2-character-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

    .eq2-character-title-row .page-title {
        margin-bottom: 0;
    }

.eq2-character-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    margin: 0.25rem 0 1rem;
}

    .eq2-character-header p {
        margin: 0;
    }

.eq2-character-summary,
.eq2-character-sync-status {
    white-space: nowrap;
}

.eq2-character-sync-button {
    flex-shrink: 0;
}

.eq2-character-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    grid-template-areas:
        "stats equipment"
        "stats secondary";
    align-items: start;
    gap: 2.5rem;
    margin-top: 0.5rem;
}

.eq2-character-stats-column {
    grid-area: stats;
    min-width: 280px;
}

.eq2-character-equipment-column {
    grid-area: equipment;
}

.eq2-character-secondary-stats {
    grid-area: secondary;
    min-width: 280px;
}

@media (max-width: 991.98px) {
    .eq2-character-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "equipment"
            "stats"
            "secondary";
    }

    .eq2-character-equipment-column,
    .eq2-character-stats-column,
    .eq2-character-secondary-stats {
        min-width: 0;
        width: 100%;
    }

    .eq2-paperdoll-grid {
        justify-content: center;
    }
}

/* Character equipment paper doll */
.eq2-paperdoll-grid {
    display: grid;
    grid-template-columns: repeat(6, 48px);
    grid-template-rows: repeat(8, 48px);
    gap: 4px;
    justify-content: center;
    margin-top: 0.5rem;
}

.eq2-paperdoll-portrait {
    position: relative;
    z-index: 0;
    line-height: 0;
}

    .eq2-paperdoll-portrait img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.eq2-paperdoll-cell {
    position: relative;
    width: 44px;
    height: 44px;
}

.eq2-paperdoll-cell-wrapper {
    position: relative;
}

    .eq2-paperdoll-cell-wrapper:hover {
        z-index: 50;
    }

.eq2-paperdoll-slot {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.eq2-paperdoll-filled {
    cursor: default;
}

.eq2-paperdoll-empty {
    background: rgba(0, 0, 0, 0.25);
    border: 1px dashed #8a7a3a;
}

.eq2-paperdoll-empty-label {
    font-size: 0.55rem;
    text-align: center;
    line-height: 1.1;
    color: #8a7a3a;
    padding: 0 2px;
}

.eq2-paperdoll-tooltip {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 6px;
    z-index: 1000;
    pointer-events: none;
}

.eq2-paperdoll-cell:hover .eq2-paperdoll-tooltip {
    display: block;
}

/* Character stats, grouped into plain parchment sections (no card boxes) */
.eq2-stat-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.eq2-stat-section-title {
    font-size: 1rem;
    margin: 0 0 0.35rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--guild-parchment-dark);
    color: #7a5a1f;
}

.eq2-stat-list {
    margin: 0;
}

.eq2-stat-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.15rem 0;
    border-bottom: 1px dotted rgba(122, 90, 31, 0.3);
}

    .eq2-stat-row:last-child {
        border-bottom: none;
    }

.eq2-stat-row dt {
    font-weight: normal;
    color: #5a4a2a;
}

.eq2-stat-row dd {
    margin: 0;
    font-weight: 600;
    color: #2e2410;
}

/* nav-tabs rendered with plain <button> elements (rather than Bootstrap's default <a>) so the
   active tab can be toggled purely in Blazor state without navigation - reset button chrome and
   restyle with the guild's parchment/ink/gold palette instead of Bootstrap's default blue/white
   tab look, which clashes badly against the parchment panel. */
.nav-tabs {
    border-bottom: 1px solid var(--guild-border);
    gap: 0.15rem;
}

.nav-tabs .nav-link {
    background: none;
    border: 1px solid transparent;
    border-bottom: none;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    cursor: pointer;
    font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    color: #6b4a26;
    padding: 0.5rem 1rem;
}

    .nav-tabs .nav-link:hover,
    .nav-tabs .nav-link:focus {
        color: #42220a;
        border-color: transparent;
        isolation: isolate;
    }

    .nav-tabs .nav-link.active {
        color: #42220a;
        background: var(--guild-parchment-dark);
        border-color: var(--guild-border) var(--guild-border) var(--guild-parchment-dark);
    }

.eq2-sortable-header {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

    .eq2-sortable-header:hover {
        color: #7a1f1f;
    }

/* Raid composition editor: wider panel (see .legends-panel-wide) plus extra breathing room
   for the select controls and save button so they don't get squeezed against the parchment
   edge at the standard 860px panel width. */
.eq2-raid-comp-table td,
.eq2-raid-comp-table th {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    vertical-align: middle;
}

.eq2-raid-comp-table select.form-select-sm,
.eq2-raid-comp-table button.form-select-sm {
    white-space: normal;
}

.eq2-raid-comp-table .btn-sm {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .eq2-raid-comp-table {
        table-layout: auto !important;
    }

    .eq2-raid-comp-table th,
    .eq2-raid-comp-table td {
        width: auto !important;
    }
}

/* All Characters roster table: fewer columns now that Last Sync/Guild Status noise has been
   trimmed, so the standard 860px panel width is enough - no wide-panel variant needed. */
.eq2-characters-table {
    table-layout: auto;
    width: 100%;
}

.eq2-characters-actions {
    white-space: nowrap;
    text-align: right;
    width: 1%;
}

.eq2-characters-actions .action-btn-group {
    justify-content: flex-end;
}

/* Site-wide "loot auction is open" announcement, shown just under the nav bar. Uses the same
   parchment/gold language as the rest of the shell so it reads as part of the site rather than
   a generic browser-style alert, but the crimson border/glow and slide-down entrance keep it
   noticeable against the fixed dark backdrop. */
@keyframes auction-announcement-slide-down {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.auction-announcement {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: max-content;
    max-width: calc(100vw - 2rem);
    margin: 0;
    padding: 0.55rem 1rem;
    background: linear-gradient(180deg, var(--guild-parchment) 0%, var(--guild-parchment-dark) 100%);
    color: var(--guild-ink);
    border: 1px solid var(--guild-crimson-bright);
    border-radius: 6px;
    box-shadow: 0 0 0 1px var(--guild-gold) inset, 0 4px 14px rgba(0, 0, 0, 0.45);
    animation: auction-announcement-slide-down 0.35s ease-out;
}

.auction-announcement-icon {
    color: var(--guild-crimson-bright);
    font-size: 1.1rem;
    flex: 0 0 auto;
}

.auction-announcement-text {
    flex: 1 1 auto;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.auction-announcement-action {
    position: relative;
    z-index: 0;
    flex: 0 0 auto;
    aspect-ratio: 168 / 48;
    width: 140px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    padding: 0 0 4px;
    border: none;
    background: transparent;
    line-height: 1;
    color: #f7d691;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 0 6px black, 0 2px 4px black;
    cursor: pointer;
}

    .auction-announcement-action::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('images/legends/small-button-sprite.png') center top / 100% auto no-repeat;
        z-index: -1;
    }

    .auction-announcement-action:hover::before,
    .auction-announcement-action:active::before {
        background-position-y: bottom;
        transform: translateY(2px);
    }

.auction-announcement-dismiss {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: var(--guild-text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
}

    .auction-announcement-dismiss:hover {
        color: var(--guild-ink);
    }

/* Custom bar-list used on the parse detail page to visualize per-combatant damage,
   styled to match the parchment/gold theme and mimic a classic horizontal bar chart look
   (shared plot area with vertical gridlines, row divider lines, gold gradient bars). */
.damage-breakdown {
    --damage-breakdown-name-width: 130px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--guild-border);
    margin-bottom: 1rem;
}

.damage-breakdown-row {
    display: grid;
    grid-template-columns: var(--damage-breakdown-name-width) 1fr;
    align-items: stretch;
    border-bottom: 1px solid var(--guild-border);
}

.damage-breakdown-name {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--guild-ink);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.4rem 0.6rem 0.4rem 0;
    align-self: center;
}

.damage-breakdown-bar-track {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 1.65rem;
    background-image: repeating-linear-gradient(
        to right,
        rgba(107, 74, 38, 0.25) 0,
        rgba(107, 74, 38, 0.25) 1px,
        transparent 1px,
        transparent 20%
    );
}

.damage-breakdown-bar {
    height: 78%;
    min-width: 2px;
    background: linear-gradient(180deg, var(--guild-gold-bright), var(--guild-gold));
    border: 1px solid var(--guild-border);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.damage-breakdown-value {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--guild-ink);
    white-space: nowrap;
}

@media (max-width: 576px) {
    .damage-breakdown {
        --damage-breakdown-name-width: 90px;
    }
}

/* Raid-grouped, expand-on-demand parse list on the /parses page. */
.parse-raid-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.parse-raid-group {
    border: 1px solid var(--guild-border);
    border-radius: 4px;
    overflow: hidden;
}

.parse-raid-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(180deg, var(--guild-parchment), var(--guild-parchment-dark));
    border: none;
    text-align: left;
    cursor: pointer;
    font-weight: bold;
}

    .parse-raid-header:hover {
        background: linear-gradient(180deg, var(--guild-parchment-dark), var(--guild-parchment));
    }

.parse-caret {
    display: inline-block;
    width: 0;
    height: 0;
    flex: 0 0 auto;
    border-top: 0.3em solid transparent;
    border-bottom: 0.3em solid transparent;
    border-left: 0.35em solid var(--guild-ink);
    margin-right: 0.5rem;
    transition: transform 0.15s ease;
}

    .parse-caret.expanded {
        transform: rotate(90deg);
    }

.parse-raid-name {
    color: var(--guild-ink);
    text-decoration: none;
}

    .parse-raid-name:hover {
        text-decoration: underline;
    }

.parse-raid-count {
    margin-left: auto;
    font-weight: normal;
    font-size: 0.85rem;
    color: #5a4526;
}

.parse-raid-table {
    margin: 0;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

    .parse-raid-table th {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #5a4526;
        font-weight: bold;
        border-bottom: 1px solid var(--guild-border);
    }

    .parse-raid-table td {
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
        vertical-align: middle;
    }

.parse-encounter-name {
    font-weight: bold;
}

.parse-encounter-link {
    color: var(--guild-ink);
    text-decoration: none;
}

    .parse-encounter-link:hover {
        text-decoration: underline;
        color: var(--guild-border-dark);
    }

/* Win/wipe coloring for encounter titles, matching ACT/parsing-site conventions
   (green = killed, red/orange = wipe) but toned to the parchment/gold theme
   rather than saturated web colors. */
/* !important needed here since Bootstrap's .table cell rule
   (.table > :not(caption) > * > *) is more specific than a bare class selector
   and would otherwise always win, making these colors only ever show on hover
   (where that rule doesn't apply). */
.parse-outcome-win {
    color: #2f6b30 !important;
}

    a.parse-outcome-win:hover {
        color: #234f24 !important;
    }

.parse-outcome-wipe {
    color: #b5651d !important;
}

    a.parse-outcome-wipe:hover {
        color: #8a4a15 !important;
    }

.parse-zone-group {
    margin: 0 0.5rem;
}

    .parse-zone-group + .parse-zone-group {
        margin-top: 0.5rem;
    }

.parse-zone-header {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    width: 100%;
    padding: 0.4rem 0.5rem;
    font-weight: bold;
    color: var(--guild-ink);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--guild-border);
    text-align: left;
    cursor: pointer;
}

    .parse-zone-header:hover {
        background: rgba(107, 74, 38, 0.08);
    }

.parse-caret-zone {
    border-top-width: 0.25em;
    border-bottom-width: 0.25em;
    border-left-width: 0.3em;
}

.parse-zone-date {
    color: #5a4526;
    font-weight: normal;
    font-size: 0.85rem;
}

.parse-zone-separator {
    color: var(--guild-border);
}

.parse-zone-name {
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.9rem;
}

.parse-zone-count {
    margin-left: auto;
    font-weight: normal;
    font-size: 0.8rem;
    color: #5a4526;
}




.parse-meta {
    font-size: 0.9rem;
    color: #5a4526;
    margin-bottom: 1.25rem;
}

/* Ally/Pet/Enemy combatant groups on the parse detail page. */
.parse-combatant-group {
    border: 1px solid var(--guild-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.parse-combatant-group-header {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(180deg, var(--guild-parchment), var(--guild-parchment-dark));
    font-weight: bold;
    color: var(--guild-ink);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.9rem;
}

.parse-combatant-group-count {
    font-weight: normal;
    font-size: 0.8rem;
    color: #5a4526;
    text-transform: none;
    letter-spacing: normal;
}

.parse-combatant-table {
    margin: 0;
    font-size: 0.85rem;
}

    .parse-combatant-table th {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #5a4526;
        font-weight: bold;
        border-bottom: 1px solid var(--guild-border);
        padding: 0.4rem 0.5rem;
    }

    .parse-combatant-table td {
        padding: 0.3rem 0.5rem;
        vertical-align: middle;
    }

.parse-combatant-row {
    cursor: pointer;
    border-top: 1px solid rgba(107, 74, 38, 0.25);
}

    .parse-combatant-row:hover {
        background: rgba(107, 74, 38, 0.08);
    }

.parse-combatant-name {
    font-weight: bold;
}

.parse-combatant-detail-row td {
    background: rgba(107, 74, 38, 0.09);
    border-bottom: 2px solid var(--guild-border);
    padding-top: 0.75rem;
    padding-bottom: 1rem;
}

.parse-detail-tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.parse-detail-tab {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #5a4526;
    background: transparent;
    border: 1px solid var(--guild-border);
    border-radius: 3px;
    cursor: pointer;
}

    .parse-detail-tab:hover:not(:disabled) {
        background: rgba(107, 74, 38, 0.1);
    }

    .parse-detail-tab:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

    .parse-detail-tab.active {
        color: var(--guild-ink);
        background: var(--guild-parchment);
        border-color: var(--guild-border-dark);
    }

.parse-ability-table {
    margin: 0;
    font-size: 0.85rem;
}

    .parse-ability-table th {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #5a4526;
        font-weight: bold;
        border-bottom: 1px solid var(--guild-border);
        padding: 0.35rem 0.5rem;
    }

    .parse-ability-table td {
        padding: 0.3rem 0.5rem;
        vertical-align: middle;
    }

.parse-ability-share-track {
    width: 120px;
    height: 0.6rem;
    background: rgba(107, 74, 38, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.parse-ability-share-bar {
    height: 100%;
    background: linear-gradient(180deg, var(--guild-gold-bright), var(--guild-gold));
    min-width: 2px;
}

.parse-ability-type {
    color: #8a7a5c;
    font-size: 0.85rem;
}

.parse-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.parse-summary-card {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--guild-border, #4a3f2f);
    border-radius: 4px;
    padding: 0.75rem 1rem;
}

.parse-summary-card-title {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5a3d1f;
    margin-bottom: 0.5rem;
}

.parse-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.15rem 0;
    font-size: 0.9rem;
}

/* Legends-style checkbox, matching the real site's sprite-based checkbox
   technique (appearance: none + background sprite, checked state swaps to
   the bottom half of the sprite via background-position-y). */
.form-check-input,
.form-check-input[type=checkbox],
.legends-checkbox {
    appearance: none;
    -webkit-appearance: none;
    background: url('images/legends/checkbox-sprite.png') center top no-repeat;
    background-color: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0 !important;
    width: 17px;
    height: 17px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
}

    .form-check-input:checked,
    .legends-checkbox:checked {
        background-position-y: bottom;
        background-color: transparent;
        border: none;
    }

    .form-check-input:disabled,
    .legends-checkbox:disabled {
        cursor: not-allowed;
        opacity: 0.6;
    }

/* Closed auctions results grouped by batch, styled like the parse combatant groups
   (parchment header banner over a plain-ink table) rather than Bootstrap's default
   .card, whose dark surface/border swallows the guild-ink table text. */
.eq2-loot-group {
    border: 1px solid var(--guild-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.eq2-loot-group-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(180deg, var(--guild-parchment), var(--guild-parchment-dark));
    font-weight: bold;
    color: var(--guild-ink);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.9rem;
}

.eq2-loot-group-date {
    font-weight: normal;
    font-size: 0.8rem;
    color: #5a4526;
    text-transform: none;
    letter-spacing: normal;
}

.eq2-loot-group-body {
    background: var(--guild-parchment);
}

    .eq2-loot-group-body .table {
        margin: 0;
    }





