#wiki .wiki-inner-content,
#wiki .inner-content.wiki-inner-content {
    margin: 4px 10px 0 0;
    padding: 0 0 18px;
    width: auto;
}

.m2events-shell {
    display: grid;
    gap: 14px;
    color: #f7e6bc;
}

.m2events-hero,
.m2events-stat-card,
.m2events-disclosure,
.m2events-day-card,
.m2events-event-card,
.m2events-reward-card {
    border: 1px solid rgba(196, 133, 41, 0.65);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(82, 49, 27, 0.94), rgba(43, 24, 15, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 227, 174, 0.08);
}

.m2events-hero {
    display: grid;
    gap: 14px;
    padding: 20px 22px;
}

.m2events-hero h3 {
    margin: 0 0 8px;
    color: #fff3d4;
}

.m2events-hero p,
.m2events-empty,
.m2events-muted,
.m2events-disclosure__copy,
.m2events-item-panel__copy span,
.m2events-content-row__copy span,
.m2events-reward-card__text small {
    margin: 0;
    color: #e7cc91;
}

.m2events-hero__time {
    display: grid;
    gap: 6px;
    align-content: start;
    padding: 12px 14px;
    border: 1px solid rgba(214, 160, 83, 0.4);
    border-radius: 14px;
    background: rgba(18, 11, 8, 0.45);
}

.m2events-hero__time span,
.m2events-subsection__label,
.m2events-event-card__label,
.m2events-item-panel__label,
.m2events-kicker,
.m2events-disclosure__title span {
    color: #d8b46d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
}

.m2events-hero__time strong,
.m2events-disclosure__title strong,
.m2events-day-card__summary strong,
.m2events-event-card__title strong,
.m2events-reward-card__text strong,
.m2events-item-panel__copy strong,
.m2events-content-row__copy strong {
    color: #fff3d4;
}

.m2events-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.m2events-stat-card {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.m2events-stat-card span {
    color: #d8b46d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
}

.m2events-stat-card strong {
    font-size: 28px;
    color: #fff3d4;
}

.m2events-stack,
.m2events-week-grid,
.m2events-event-list,
.m2events-reward-grid,
.m2events-content-list {
    display: grid;
    gap: 12px;
}

.m2events-disclosure,
.m2events-day-card,
.m2events-reward-card {
    overflow: hidden;
}

.m2events-disclosure[open],
.m2events-day-card[open],
.m2events-reward-card[open] {
    border-color: rgba(226, 178, 88, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 227, 174, 0.1), 0 0 0 1px rgba(226, 178, 88, 0.22);
}

.m2events-disclosure summary,
.m2events-day-card summary,
.m2events-reward-card summary {
    cursor: pointer;
    list-style: none;
}

.m2events-disclosure summary::-webkit-details-marker,
.m2events-day-card summary::-webkit-details-marker,
.m2events-reward-card summary::-webkit-details-marker {
    display: none;
}

.m2events-disclosure__summary,
.m2events-day-card__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
}

.m2events-disclosure__title,
.m2events-day-card__summary strong,
.m2events-day-card__summary span {
    margin: 0;
}

.m2events-disclosure__count,
.m2events-day-card__summary span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(214, 160, 83, 0.45);
    border-radius: 999px;
    background: rgba(16, 10, 8, 0.55);
    color: #f4ddb0;
    font-size: 12px;
}

.m2events-disclosure__body,
.m2events-day-card__body,
.m2events-item-panel {
    display: grid;
    gap: 12px;
}

.m2events-disclosure__body,
.m2events-day-card__body {
    padding: 0 16px 16px;
}

.m2events-subsection {
    display: grid;
    gap: 10px;
}

.m2events-pill-row,
.m2events-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.m2events-pill,
.m2events-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(214, 160, 83, 0.45);
    border-radius: 999px;
    background: rgba(16, 10, 8, 0.55);
    color: #f4ddb0;
    font-size: 12px;
}

.m2events-chip--subtle {
    background: rgba(44, 26, 18, 0.82);
}

.m2events-event-card {
    padding: 14px;
    display: grid;
    gap: 12px;
}

.m2events-event-card__head,
.m2events-event-card__title {
    display: grid;
    gap: 8px;
}

.m2events-reward-grid {
    grid-template-columns: 1fr;
}

.m2events-reward-card__summary,
.m2events-item-panel__hero,
.m2events-content-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.m2events-reward-card__summary {
    padding: 12px;
}

.m2events-reward-card__media,
.m2events-item-panel__icon,
.m2events-content-row img {
    border: 1px solid rgba(214, 160, 83, 0.34);
    border-radius: 14px;
    background: rgba(16, 10, 8, 0.56);
}

.m2events-reward-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
}

.m2events-reward-card__media img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.m2events-reward-card__text,
.m2events-item-panel__copy,
.m2events-content-row__copy {
    display: grid;
    gap: 4px;
}

.m2events-item-panel {
    padding: 0 12px 12px;
}

.m2events-item-panel__wiki-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(214, 160, 83, 0.42);
    border-radius: 999px;
    background: rgba(18, 11, 8, 0.72);
    color: #f4ddb0;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.m2events-item-panel__wiki-link:hover {
    background: rgba(111, 58, 21, 0.88);
    border-color: #d7a45c;
    color: #fff5db;
}

.m2events-item-panel__hero {
    grid-template-columns: 56px minmax(0, 1fr);
}

.m2events-item-panel__icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    padding: 4px;
}

.m2events-content-list {
    max-height: 240px;
    overflow: auto;
    padding-right: 4px;
}

.m2events-content-row {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 8px 10px;
    border: 1px solid rgba(214, 160, 83, 0.2);
    border-radius: 12px;
    background: rgba(18, 11, 8, 0.42);
}

.m2events-content-row img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.m2events-empty {
    padding: 6px 0 2px;
}

@media (min-width: 640px) {
    .m2events-hero {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .m2events-event-card__head {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .m2events-reward-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .m2events-stat-grid,
    .m2events-reward-grid {
        grid-template-columns: 1fr;
    }
}

.contact-inner-content {
    display: grid;
    gap: 14px;
}

.contact-links-grid {
    display: grid;
    gap: 12px;
}

.contact-link-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid rgba(196, 133, 41, 0.65);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(82, 49, 27, 0.94), rgba(43, 24, 15, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 227, 174, 0.08);
    color: #f7e6bc;
    text-decoration: none;
}

.contact-link-card strong {
    color: #fff3d4;
}

.contact-link-card span {
    color: #e7cc91;
}

.contact-link-card:hover {
    border-color: rgba(226, 178, 88, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 227, 174, 0.08), 0 0 0 1px rgba(226, 178, 88, 0.2);
}

#wiki .m2wiki-app {
    --wiki-bg: #140d09;
    --wiki-bg-soft: #21150f;
    --wiki-panel: linear-gradient(180deg, rgba(58, 35, 21, 0.97), rgba(21, 13, 10, 0.99));
    --wiki-panel-alt: linear-gradient(180deg, rgba(48, 29, 18, 0.96), rgba(18, 10, 8, 0.98));
    --wiki-panel-flat: rgba(18, 11, 8, 0.88);
    --wiki-border: #704723;
    --wiki-border-strong: #d7a45c;
    --wiki-text: #f4e7cb;
    --wiki-text-soft: #d8c09b;
    --wiki-text-muted: #b79a72;
    --wiki-accent: #e8bd77;
    --wiki-accent-deep: #8d5a22;
    color: var(--wiki-text);
    font: 13px/1.6 "Trebuchet MS", Verdana, sans-serif;
}

#wiki .m2wiki-app,
#wiki .m2wiki-app * {
    box-sizing: border-box;
}

#wiki .m2wiki-hero,
#wiki .m2wiki-stat-card,
#wiki .m2wiki-toolbar,
#wiki .m2wiki-feedback,
#wiki .m2wiki-detail-card,
#wiki .m2wiki-results,
#wiki .m2wiki-result-card,
#wiki .m2wiki-row,
#wiki .m2wiki-tabs,
#wiki .m2wiki-tab-panel {
    border: 1px solid var(--wiki-border);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

#wiki .m2wiki-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    padding: 18px;
    background:
        radial-gradient(circle at top right, rgba(224, 166, 86, 0.24), transparent 38%),
        linear-gradient(135deg, #2e180e, #1b0f0a 72%, #120a06);
}

#wiki .m2wiki-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 34%),
        repeating-linear-gradient(135deg, rgba(255, 214, 140, 0.03), rgba(255, 214, 140, 0.03) 10px, transparent 10px, transparent 20px);
    pointer-events: none;
}

#wiki .m2wiki-hero__copy {
    position: relative;
    z-index: 1;
}

#wiki .m2wiki-hero__copy h3 {
    margin: 0 0 6px;
    color: #fff4db;
    font: 700 22px/1.15 "Palatino Linotype", Georgia, serif;
}

#wiki .m2wiki-hero__copy p {
    margin: 0;
    max-width: 100%;
    color: var(--wiki-text-soft);
    font-size: 12px;
    line-height: 1.5;
}

#wiki .m2wiki-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

#wiki .m2wiki-stat-card {
    min-height: 84px;
    padding: 14px;
    background: var(--wiki-panel-alt);
}

#wiki .m2wiki-stat-card.is-loading,
#wiki .m2wiki-result-card.is-placeholder {
    background:
        linear-gradient(90deg, rgba(82, 52, 31, 0.78), rgba(121, 80, 43, 0.92), rgba(82, 52, 31, 0.78));
    background-size: 240px 100%;
    animation: wikiPulse 1.6s linear infinite;
}

#wiki .m2wiki-stat-label {
    display: block;
    margin-bottom: 8px;
    color: var(--wiki-text-muted);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#wiki .m2wiki-stat-value {
    display: block;
    color: var(--wiki-text);
    font: 700 24px/1.1 "Palatino Linotype", Georgia, serif;
}

#wiki .m2wiki-toolbar {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    background: var(--wiki-panel);
}

#wiki .m2wiki-toolbar__top,
#wiki .m2wiki-toolbar__bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#wiki .m2wiki-field {
    display: block;
    min-width: 0;
}

#wiki .m2wiki-field > span {
    display: block;
    margin-bottom: 6px;
    color: var(--wiki-text-soft);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#wiki .m2wiki-field--search {
    grid-column: 1 / -1;
}

#wiki .m2wiki-field--filters {
    grid-column: 1 / -1;
}

#wiki .m2wiki-field--item-type {
    display: none;
}

#wiki .m2wiki-field--item-category {
    display: none;
}

#wiki .m2wiki-field--sort {
    grid-column: span 1;
}

#wiki .m2wiki-field--order {
    grid-column: span 1;
}

#wiki .m2wiki-field--range {
    grid-column: 1 / -1;
}

#wiki .m2wiki-field input,
#wiki .m2wiki-field select {
    width: 100%;
    height: 44px;
    padding: 10px 13px;
    border: 1px solid #8c6337;
    border-radius: 12px;
    background: rgba(15, 8, 6, 0.88);
    color: var(--wiki-text);
    font: 13px/1.2 "Trebuchet MS", Verdana, sans-serif;
}

#wiki .m2wiki-field input:focus,
#wiki .m2wiki-field select:focus {
    border-color: var(--wiki-border-strong);
    outline: none;
    box-shadow: 0 0 0 2px rgba(215, 164, 92, 0.16);
}

#wiki .m2wiki-field.is-disabled input,
#wiki .m2wiki-field.is-disabled select,
#wiki .m2wiki-field input:disabled,
#wiki .m2wiki-field select:disabled {
    opacity: 0.56;
    cursor: not-allowed;
}

#wiki .m2wiki-range-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#wiki .m2wiki-chip-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#wiki .m2wiki-chip {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #8d6438;
    border-radius: 999px;
    background: rgba(20, 12, 9, 0.92);
    color: var(--wiki-text-soft);
    cursor: pointer;
    font: 700 12px/1 "Trebuchet MS", Verdana, sans-serif;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

#wiki .m2wiki-chip:hover,
#wiki .m2wiki-chip:focus {
    border-color: var(--wiki-accent);
    outline: none;
    transform: translateY(-1px);
}

#wiki .m2wiki-chip.is-active {
    border-color: #efc784;
    background: linear-gradient(180deg, #daa95f, #9a642b);
    color: #1f120a;
    text-shadow: 0 1px 0 rgba(255, 243, 220, 0.4);
}

#wiki .m2wiki-feedback {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: var(--wiki-panel-alt);
    color: var(--wiki-text-soft);
    font-size: 12px;
}

#wiki .m2wiki-feedback.is-error {
    border-color: #b76448;
    color: #ffd8ca;
}

#wiki .m2wiki-detail-shell {
    margin-bottom: 14px;
}

#wiki .m2wiki-detail-shell[hidden] {
    display: none;
}

#wiki .m2wiki-detail-card {
    overflow: hidden;
    padding: 14px;
    background:
        radial-gradient(circle at top right, rgba(214, 145, 67, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(58, 35, 21, 0.98), rgba(20, 12, 9, 0.99));
}

#wiki .m2wiki-detail-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

#wiki .m2wiki-detail-image,
#wiki .m2wiki-result-card img,
#wiki .m2wiki-row__image {
    object-fit: contain;
    image-rendering: pixelated;
}

#wiki .m2wiki-detail-image {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    padding: 10px;
    border: 1px solid #7c552f;
    border-radius: 18px;
    background: rgba(15, 9, 7, 0.84);
}

#wiki .m2wiki-detail-copy {
    min-width: 0;
}

#wiki .m2wiki-detail-type {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid rgba(233, 190, 113, 0.24);
    border-radius: 999px;
    background: rgba(15, 9, 7, 0.58);
    color: #ffcf86;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#wiki .m2wiki-detail-copy h3 {
    margin: 10px 0 0;
    color: #fff1d2;
    font: 700 24px/1.16 "Palatino Linotype", Georgia, serif;
}

#wiki .m2wiki-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

#wiki .m2wiki-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(235, 191, 116, 0.18);
    border-radius: 999px;
    background: rgba(17, 9, 7, 0.66);
    color: #f6ddb2;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

#wiki .m2wiki-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 14px;
}

#wiki .m2wiki-metric-card {
    padding: 12px;
    border: 1px solid rgba(201, 148, 75, 0.18);
    border-radius: 14px;
    background: rgba(17, 9, 7, 0.42);
}

#wiki .m2wiki-metric-card strong {
    display: block;
    color: #fff0cc;
    font: 700 18px/1.22 "Palatino Linotype", Georgia, serif;
    overflow-wrap: anywhere;
}

#wiki .m2wiki-metric-card span {
    display: block;
    margin-top: 4px;
    color: var(--wiki-text-muted);
    font-size: 11px;
}

#wiki .m2wiki-tabs {
    padding: 12px;
    background: rgba(11, 7, 5, 0.46);
}

#wiki .m2wiki-tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

#wiki .m2wiki-tab {
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid #8d6438;
    border-radius: 999px;
    background: rgba(20, 12, 9, 0.92);
    color: var(--wiki-text-soft);
    cursor: pointer;
    font: 700 12px/1 "Trebuchet MS", Verdana, sans-serif;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

#wiki .m2wiki-tab:hover,
#wiki .m2wiki-tab:focus {
    border-color: var(--wiki-accent);
    outline: none;
    transform: translateY(-1px);
}

#wiki .m2wiki-tab.is-active {
    border-color: #efc784;
    background: linear-gradient(180deg, #daa95f, #9a642b);
    color: #1f120a;
    text-shadow: 0 1px 0 rgba(255, 243, 220, 0.4);
}

#wiki .m2wiki-tab.is-disabled,
#wiki .m2wiki-tab:disabled {
    opacity: 0.46;
    cursor: default;
    transform: none;
}

#wiki .m2wiki-tab-panel {
    padding: 12px;
    background: rgba(16, 9, 7, 0.36);
    box-shadow: none;
}

#wiki .m2wiki-scroll-shell {
    display: grid;
    gap: 10px;
}

#wiki .m2wiki-scroll-shell.is-scrollable {
    max-height: 408px;
    overflow-y: auto;
    padding-right: 6px;
}

#wiki .m2wiki-row {
    display: flex;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: rgba(16, 9, 7, 0.82);
    color: var(--wiki-text);
    text-align: left;
}

#wiki button.m2wiki-row {
    cursor: pointer;
}

#wiki button.m2wiki-row:hover,
#wiki button.m2wiki-row:focus {
    border-color: var(--wiki-accent);
    outline: none;
    transform: translateY(-1px);
}

#wiki .m2wiki-row__image {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    padding: 6px;
    border: 1px solid rgba(190, 138, 67, 0.16);
    border-radius: 14px;
    background: rgba(11, 7, 5, 0.82);
}

#wiki .m2wiki-row__content {
    min-width: 0;
}

#wiki .m2wiki-row__content strong {
    display: block;
    color: #fff1d2;
    font-size: 14px;
}

#wiki .m2wiki-row__meta,
#wiki .m2wiki-result-card__meta,
#wiki .m2wiki-result-card__preview {
    display: block;
    color: var(--wiki-text-muted);
    font-size: 11px;
}

#wiki .m2wiki-row__meta {
    margin-top: 4px;
}

#wiki .m2wiki-empty-state {
    display: grid;
    gap: 4px;
    min-height: 120px;
    align-content: center;
}

#wiki .m2wiki-empty-state strong {
    color: #fff1d2;
    font: 700 18px/1.15 "Palatino Linotype", Georgia, serif;
}

#wiki .m2wiki-empty-state span {
    color: var(--wiki-text-soft);
}

#wiki .m2wiki-results {
    padding: 16px;
    background: var(--wiki-panel);
}

#wiki .m2wiki-results__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

#wiki .m2wiki-results__head h3 {
    margin: 0;
    color: #fff1d2;
    font: 700 20px/1.15 "Palatino Linotype", Georgia, serif;
}

#wiki .m2wiki-results__head strong {
    color: #ffd088;
    font: 700 26px/1 "Palatino Linotype", Georgia, serif;
}

#wiki .m2wiki-result-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: 860px;
    overflow-y: auto;
    padding-right: 6px;
    align-content: start;
}

#wiki .m2wiki-result-list > .m2wiki-detail-card {
    grid-column: 1 / -1;
}

#wiki .m2wiki-result-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    min-height: 106px;
    padding: 12px;
    background: rgba(18, 10, 7, 0.88);
    color: var(--wiki-text);
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

#wiki .m2wiki-result-card:hover,
#wiki .m2wiki-result-card:focus {
    border-color: var(--wiki-accent);
    outline: none;
    transform: translateY(-1px);
}

#wiki .m2wiki-result-card.is-active {
    border-color: #efc784;
    box-shadow: 0 0 0 1px rgba(239, 199, 132, 0.22), 0 10px 28px rgba(0, 0, 0, 0.22);
}

#wiki .m2wiki-result-card img {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    padding: 6px;
    border: 1px solid rgba(190, 138, 67, 0.18);
    border-radius: 16px;
    background: rgba(12, 7, 5, 0.88);
}

#wiki .m2wiki-result-card__content {
    display: grid;
    gap: 6px;
    min-width: 0;
}

#wiki .m2wiki-result-card__content strong {
    color: #fff2d5;
    font-size: 15px;
    line-height: 1.24;
}

#wiki .m2wiki-result-card__eyebrow {
    color: #ffcf86;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#wiki .m2wiki-result-card__preview {
    line-height: 1.45;
}

#wiki .m2wiki-directory-panel {
    margin-bottom: 14px;
    border: 1px solid var(--wiki-border);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    background: var(--wiki-panel);
}

#wiki .m2wiki-directory-panel[hidden] {
    display: none;
}

#wiki .m2wiki-directory {
    padding: 14px;
}

#wiki .m2wiki-directory__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

#wiki .m2wiki-directory__head strong {
    display: block;
    color: #fff1d2;
    font: 700 18px/1.2 "Palatino Linotype", Georgia, serif;
}

#wiki .m2wiki-directory__head span {
    display: block;
    margin-top: 4px;
    color: var(--wiki-text-soft);
    font-size: 11px;
    line-height: 1.45;
}

#wiki .m2wiki-directory__reset {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #8d6438;
    border-radius: 999px;
    background: rgba(20, 12, 9, 0.92);
    color: var(--wiki-text-soft);
    cursor: pointer;
    font: 700 11px/1 "Trebuchet MS", Verdana, sans-serif;
    white-space: nowrap;
}

#wiki .m2wiki-directory__reset.is-disabled,
#wiki .m2wiki-directory__reset:disabled {
    opacity: 0.46;
    cursor: default;
}

#wiki .m2wiki-directory__groups {
    display: grid;
    gap: 10px;
}

#wiki .m2wiki-directory__empty {
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(201, 148, 75, 0.18);
    border-radius: 16px;
    background: rgba(16, 9, 7, 0.42);
}

#wiki .m2wiki-directory__empty strong {
    display: block;
    color: #fff1d2;
    font-size: 15px;
    font-weight: bold;
}

#wiki .m2wiki-directory__empty span {
    display: block;
    margin-top: 4px;
    color: var(--wiki-text-soft);
    font-size: 11px;
    line-height: 1.45;
}

#wiki .m2wiki-directory__overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#wiki .m2wiki-directory-type-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 76px;
    padding: 12px;
    border: 1px solid rgba(181, 129, 62, 0.32);
    border-radius: 16px;
    background: rgba(12, 7, 5, 0.88);
    color: var(--wiki-text);
    cursor: pointer;
    text-align: left;
}

#wiki .m2wiki-directory-type-card:hover,
#wiki .m2wiki-directory-type-card:focus {
    border-color: var(--wiki-accent);
    outline: none;
    transform: translateY(-1px);
}

#wiki .m2wiki-directory-type-card__label {
    color: #fff0cc;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.35;
}

#wiki .m2wiki-directory-type-card strong {
    color: #ffcf86;
    font-size: 11px;
}

#wiki .m2wiki-directory-focus {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(239, 199, 132, 0.24);
    border-radius: 16px;
    background: rgba(16, 9, 7, 0.42);
}

#wiki .m2wiki-directory-focus__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

#wiki .m2wiki-directory-focus__eyebrow {
    display: block;
    color: var(--wiki-text-muted);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#wiki .m2wiki-directory-focus__top strong {
    display: block;
    margin-top: 2px;
    color: #fff1d2;
    font: 700 18px/1.2 "Palatino Linotype", Georgia, serif;
}

#wiki .m2wiki-directory-focus__meta {
    display: block;
    margin-top: 4px;
    color: var(--wiki-text-soft);
    font-size: 11px;
}

#wiki .m2wiki-directory__toggle {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #8d6438;
    border-radius: 999px;
    background: rgba(20, 12, 9, 0.92);
    color: var(--wiki-text-soft);
    cursor: pointer;
    font: 700 11px/1 "Trebuchet MS", Verdana, sans-serif;
    white-space: nowrap;
}

#wiki .m2wiki-directory__toggle:hover,
#wiki .m2wiki-directory__toggle:focus {
    border-color: var(--wiki-accent);
    outline: none;
}

#wiki .m2wiki-directory-focus__filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#wiki .m2wiki-directory-focus__active {
    padding: 10px 12px;
    border: 1px solid rgba(201, 148, 75, 0.18);
    border-radius: 14px;
    background: rgba(12, 7, 5, 0.58);
    color: var(--wiki-text-soft);
    font-size: 11px;
}

#wiki .m2wiki-directory-focus__active strong {
    color: #fff0cc;
}

#wiki .m2wiki-directory-switcher {
    display: grid;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px solid rgba(201, 148, 75, 0.14);
}

#wiki .m2wiki-directory-switcher__head strong {
    display: block;
    color: #fff1d2;
    font-size: 14px;
    font-weight: bold;
}

#wiki .m2wiki-directory-switcher__head span {
    display: block;
    margin-top: 4px;
    color: var(--wiki-text-soft);
    font-size: 11px;
    line-height: 1.45;
}

#wiki .m2wiki-directory-filter {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid rgba(181, 129, 62, 0.32);
    border-radius: 14px;
    background: rgba(12, 7, 5, 0.88);
    color: var(--wiki-text);
    cursor: pointer;
    text-align: left;
}

#wiki .m2wiki-directory-filter span {
    color: #fff0cc;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.35;
}

#wiki .m2wiki-directory-filter strong {
    color: var(--wiki-text-muted);
    font-size: 11px;
}

#wiki .m2wiki-directory-filter:hover,
#wiki .m2wiki-directory-filter:focus {
    border-color: var(--wiki-accent);
    outline: none;
    transform: translateY(-1px);
}

#wiki .m2wiki-directory-filter.is-active {
    border-color: #efc784;
    background: linear-gradient(180deg, rgba(115, 74, 31, 0.96), rgba(35, 20, 13, 0.98));
}

#wiki .m2wiki-scroll-shell::-webkit-scrollbar,
#wiki .m2wiki-result-list::-webkit-scrollbar {
    width: 8px;
}

#wiki .m2wiki-scroll-shell::-webkit-scrollbar-thumb,
#wiki .m2wiki-result-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(215, 164, 92, 0.44);
}

#wiki .m2wiki-scroll-shell::-webkit-scrollbar-track,
#wiki .m2wiki-result-list::-webkit-scrollbar-track {
    background: rgba(14, 8, 6, 0.5);
    border-radius: 999px;
}

@keyframes wikiPulse {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 240px 0;
    }
}

@media (max-width: 980px) {
    #wiki .m2wiki-toolbar__top,
    #wiki .m2wiki-toolbar__bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #wiki .m2wiki-field--search,
    #wiki .m2wiki-field--filters,
    #wiki .m2wiki-field--item-type,
    #wiki .m2wiki-field--item-category,
    #wiki .m2wiki-field--sort,
    #wiki .m2wiki-field--order,
    #wiki .m2wiki-field--range {
        grid-column: span 1;
    }

    #wiki .m2wiki-field--filters,
    #wiki .m2wiki-field--search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    #wiki .m2wiki-stat-grid,
    #wiki .m2wiki-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #wiki .m2wiki-detail-header {
        flex-direction: column;
        align-items: stretch;
    }

    #wiki .m2wiki-result-list {
        grid-template-columns: 1fr;
        max-height: 700px;
    }

    #wiki .m2wiki-tab-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    #wiki .m2wiki-toolbar__top,
    #wiki .m2wiki-toolbar__bottom,
    #wiki .m2wiki-range-grid,
    #wiki .m2wiki-stat-grid,
    #wiki .m2wiki-metric-grid,
    #wiki .m2wiki-tab-row {
        grid-template-columns: 1fr;
    }

    #wiki .m2wiki-field--search,
    #wiki .m2wiki-field--filters,
    #wiki .m2wiki-field--sort,
    #wiki .m2wiki-field--order,
    #wiki .m2wiki-field--range {
        grid-column: 1 / -1;
    }

    #wiki .m2wiki-chip-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #wiki .m2wiki-hero__copy h3 {
        font-size: 24px;
    }

    #wiki .m2wiki-results__head {
        align-items: flex-end;
    }

    #wiki .m2wiki-detail-card,
    #wiki .m2wiki-results,
    #wiki .m2wiki-toolbar {
        padding-left: 12px;
        padding-right: 12px;
    }

    #wiki .m2wiki-result-card {
        min-height: 104px;
        padding: 12px;
    }

    #wiki .m2wiki-result-card__content strong,
    #wiki .m2wiki-detail-copy h3 {
        font-size: 22px;
    }

    #wiki .m2wiki-metric-card strong {
        font-size: 16px;
    }

    #wiki .m2wiki-directory__head {
        flex-direction: column;
    }

    #wiki .m2wiki-directory__overview,
    #wiki .m2wiki-directory-focus__filters {
        grid-template-columns: 1fr;
    }

    #wiki .m2wiki-directory-focus__top {
        flex-direction: column;
    }
}
