/* Heritage Server Guide - Mythic layout v1 */
:root {
    --bg: #050403;
    --panel: rgba(10, 8, 5, 0.93);
    --gold: #c8943f;
    --gold2: #ffe0a0;
    --text: #f2e8d0;
    --muted: #ad9d80;
    --border: rgba(200, 148, 63, 0.42);
    --green: #68c774;
    --red: #e06a54;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background: #050403;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
}

body { padding-top: 78px; }

a { color: var(--gold2); text-decoration: none; }

.hm-topbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: 78px;
    z-index: 1000;
    background: rgba(0,0,0,.91);
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 260px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 0 52px;
    box-shadow: 0 14px 42px rgba(0,0,0,.55);
}

.hm-brand { display: flex; align-items: center; gap: 14px; color: var(--gold2); }

.hm-brand-mark {
    width: 48px; height: 48px; border: 2px solid var(--gold);
    display: grid; place-items: center; color: var(--gold2);
    font-size: 28px; font-weight: 700; background: rgba(200,148,63,.08);
}

.hm-brand-text {
    font-size: 26px; line-height: .85; letter-spacing: 3px;
    text-transform: uppercase; color: var(--gold2);
}

.hm-brand-text small {
    display: block; font-size: 10px; letter-spacing: 5px;
    color: var(--muted); margin-top: 6px;
}

.hm-nav {
    display: flex; justify-content: center; align-items: center;
    gap: 30px; text-transform: uppercase; letter-spacing: 1px; font-size: 14px;
}

.hm-nav a {
    color: var(--text); padding: 29px 0 25px;
    border-bottom: 2px solid transparent; white-space: nowrap; transition: .18s ease;
}

.hm-nav a:hover, .hm-nav a.active {
    color: var(--gold2); border-bottom-color: var(--gold);
    text-shadow: 0 0 16px rgba(200,148,63,.30);
}

.hm-actions { display: flex; align-items: center; gap: 12px; }

.hm-lang { display: flex; gap: 6px; margin-right: 6px; }
.hm-lang a { color: var(--muted); font-size: 12px; }
.hm-lang a.active { color: var(--gold2); }

.hm-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 42px; padding: 11px 20px; border: 1px solid var(--border);
    color: var(--gold2); text-transform: uppercase; letter-spacing: 1px;
    background: rgba(0,0,0,.54); font-family: Georgia, "Times New Roman", serif;
    transition: .18s ease; cursor: pointer;
}

.hm-btn:hover {
    transform: translateY(-1px); border-color: var(--gold2);
    box-shadow: 0 0 24px rgba(200,148,63,.25);
}

.hm-btn.gold {
    background: linear-gradient(180deg, #be8532 0%, #6b4318 100%);
    border-color: var(--gold);
}

.hm-page {
    min-height: calc(100vh - 78px);
    background:
        linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.34) 50%, rgba(0,0,0,.75)),
        linear-gradient(rgba(0,0,0,.52), rgba(0,0,0,.88)),
        url("../img/heritage_dashboard_hero.png") center top / cover fixed no-repeat;
    padding: 50px 22px 62px;
}

.hm-wrap { max-width: 1180px; margin: 0 auto; }

.hm-title {
    text-align: center; margin-bottom: 28px; text-shadow: 0 5px 20px #000;
}

.hm-title h1 {
    margin: 0; color: var(--gold2);
    font-size: clamp(44px, 5vw, 72px); letter-spacing: 5px; text-transform: uppercase;
}

.hm-title p {
    max-width: 800px; margin: 12px auto 0; color: var(--text); line-height: 1.55;
}

.hm-grid { display: grid; gap: 20px; }
.hm-grid-2 { grid-template-columns: repeat(2, 1fr); }
.hm-grid-3 { grid-template-columns: repeat(3, 1fr); }

.hm-card {
    background: linear-gradient(180deg, rgba(17,13,8,.96), rgba(6,5,4,.94));
    border: 1px solid var(--border);
    padding: 28px;
    box-shadow: 0 22px 70px rgba(0,0,0,.48);
    margin-bottom: 20px;
}

.hm-card h2, .hm-card h3 {
    color: var(--gold2); margin: 0 0 14px;
    text-transform: uppercase; letter-spacing: 1.5px;
}

.hm-card p, .hm-card li { color: var(--text); line-height: 1.55; }

.hm-server {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hm-server-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.hm-badge {
    display: inline-flex; align-items: center; padding: 6px 10px;
    border: 1px solid rgba(200,148,63,.28); background: rgba(0,0,0,.28);
    color: var(--gold2); font-size: 13px;
}

.hm-online { color: #9ff0a6 !important; }
.hm-offline { color: #ffafa0 !important; }

.hm-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.hm-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(200,148,63,.16);
}

.hm-list li:last-child { border-bottom: none; }

.hm-vip-table {
    width: 100%;
    border-collapse: collapse;
}

.hm-vip-table th,
.hm-vip-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(200,148,63,.16);
    text-align: left;
}

.hm-vip-table th {
    color: var(--gold2);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.hm-cta {
    text-align: center;
    padding: 34px;
    background: linear-gradient(180deg, rgba(40,26,10,.94), rgba(8,6,4,.95));
    border: 1px solid var(--border);
    box-shadow: 0 22px 70px rgba(0,0,0,.48);
}

.hm-cta h2 {
    margin-top: 0;
    color: var(--gold2);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hm-btn-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hm-footer {
    max-width: 1180px; margin: 32px auto 0; padding-top: 24px;
    border-top: 1px solid var(--border); display: flex; justify-content: space-between;
    color: var(--muted); font-size: 13px;
}

@media (max-width: 1100px) {
    body { padding-top: 0; }
    .hm-topbar { position: relative; height: auto; grid-template-columns: 1fr; padding: 18px; }
    .hm-nav { justify-content: flex-start; overflow-x: auto; gap: 18px; }
    .hm-nav a { padding: 10px 0; }
    .hm-actions { justify-content: flex-start; }
    .hm-grid-2, .hm-grid-3 { grid-template-columns: 1fr; }
    .hm-footer { display: block; }
}

/* Server guide editorial layout v3 */
body.nf-unified .hm-page .hm-wrap {
    display: block;
}

body.nf-unified .hm-page .hm-title {
    max-width: 760px !important;
    margin: 0 0 24px !important;
    padding: 0 0 20px !important;
    color: var(--nf-ink) !important;
    font-size: 12px !important;
    line-height: 1.65 !important;
    letter-spacing: normal !important;
    text-align: left !important;
    text-shadow: none !important;
    border-bottom: 1px solid rgba(208, 184, 117, .28);
}

body.nf-unified .hm-page .hm-title h1 {
    margin: 0 0 8px !important;
    color: #e2d6b6 !important;
    font: 600 clamp(28px, 4vw, 42px)/1.08 Georgia, "Times New Roman", serif !important;
    letter-spacing: 1.5px !important;
    text-transform: none !important;
}

body.nf-unified .hm-page .hm-title p {
    max-width: 68ch !important;
    margin: 0 !important;
    color: #a9a394 !important;
    font: 13px/1.75 Verdana, Arial, sans-serif !important;
    letter-spacing: 0 !important;
}

body.nf-unified .hm-page .hm-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 0 0 30px !important;
}

body.nf-unified .hm-page .hm-guide-server {
    min-height: 0 !important;
    padding: 20px !important;
    border-color: rgba(168, 141, 78, .42) !important;
    background:
        linear-gradient(135deg, rgba(52, 54, 47, .92), rgba(22, 24, 21, .98)) !important;
}

body.nf-unified .hm-page .hm-guide-server::after {
    width: 150px;
    height: 150px;
    opacity: .55;
}

body.nf-unified .hm-page .hm-server-kicker {
    margin: 0 0 8px;
    color: #d0b875;
    font-size: 10px;
    letter-spacing: 1.2px;
}

body.nf-unified .hm-page .hm-guide-server > h2 {
    margin: 0 0 8px !important;
    color: #ddd5c1 !important;
    font-size: 19px !important;
    line-height: 1.3 !important;
    letter-spacing: .4px;
}

body.nf-unified .hm-page .hm-guide-server > p {
    min-height: 42px;
    margin: 0 0 12px !important;
    color: #aaa596 !important;
    font-size: 11px !important;
    line-height: 1.65 !important;
}

body.nf-unified .hm-page .hm-server-meta {
    margin: 0 0 14px;
}

body.nf-unified .hm-page .hm-badge {
    padding: 5px 8px;
    font-size: 9px;
    letter-spacing: .35px;
}

body.nf-unified .hm-page .hm-anchor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 4px;
}

body.nf-unified .hm-page .hm-anchor-chip {
    min-width: 0;
    min-height: 48px;
    padding: 8px 9px;
    border-radius: 0;
    border-color: rgba(168, 141, 78, .24);
    background: rgba(8, 9, 8, .28);
}

body.nf-unified .hm-page .hm-anchor-chip:hover {
    transform: none;
    border-color: rgba(208, 184, 117, .62);
    background: rgba(168, 141, 78, .14);
}

body.nf-unified .hm-page .hm-anchor-icon {
    width: 20px;
    font-size: 15px;
}

body.nf-unified .hm-page .hm-anchor-text strong {
    font-size: 10px;
    line-height: 1.3;
}

body.nf-unified .hm-page .hm-anchor-text small {
    font-size: 9px;
}

body.nf-unified .hm-page .hm-guide-layout {
    gap: 12px;
    margin-top: 0;
}

body.nf-unified .hm-page .hm-guide-server-title {
    margin: 32px 0 6px;
    padding: 13px 15px;
    border: 1px solid rgba(168, 141, 78, .34);
    border-left: 3px solid #a88d4e;
    background: linear-gradient(90deg, rgba(168, 141, 78, .14), rgba(20, 22, 19, .3));
}

body.nf-unified .hm-page .hm-guide-server-title:first-child {
    margin-top: 0;
}

body.nf-unified .hm-page .hm-guide-server-title h2 {
    color: #ded5bf !important;
    font-size: 22px !important;
    letter-spacing: .5px;
}

body.nf-unified .hm-page .hm-guide-section {
    margin: 0 !important;
    padding: 18px 20px !important;
    scroll-margin-top: 18px;
    border-color: rgba(83, 79, 67, .88) !important;
    background: linear-gradient(180deg, rgba(37, 40, 35, .9), rgba(21, 23, 20, .96)) !important;
}

body.nf-unified .hm-page .hm-section-head {
    gap: 10px;
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(168, 141, 78, .22);
}

body.nf-unified .hm-page .hm-section-icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
    border-radius: 0;
}

body.nf-unified .hm-page .hm-section-head h2 {
    color: #d9cfb7 !important;
    font-size: 17px !important;
    line-height: 1.3;
    letter-spacing: .25px;
}

body.nf-unified .hm-page .hm-guide-p {
    max-width: 78ch;
    margin: 8px 0;
    color: #b6b0a1 !important;
    font-size: 11px;
    line-height: 1.75;
}

body.nf-unified .hm-page .hm-guide-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 20px;
    margin: 10px 0 0;
    padding-left: 18px;
}

body.nf-unified .hm-page .hm-guide-list li {
    padding-left: 2px;
    font-size: 11px;
    line-height: 1.6;
}

body.nf-unified .hm-page .hm-guide-blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

body.nf-unified .hm-page .hm-guide-block {
    padding: 13px 14px;
    border-radius: 0;
    border-color: rgba(168, 141, 78, .18);
    background: rgba(8, 9, 8, .24);
}

body.nf-unified .hm-page .hm-guide-block h3 {
    margin-bottom: 7px;
    color: #cdb77b;
    font-size: 13px;
}

body.nf-unified .hm-page .hm-note {
    padding: 10px 12px;
    color: #bdb7a8;
    font-size: 10px;
    line-height: 1.6;
    border-radius: 0;
}

body.nf-unified .hm-page .hm-backtop {
    padding: 6px 9px;
    font-size: 9px;
}

body.nf-unified .hm-page .hm-cta {
    margin-top: 24px;
    padding: 20px !important;
}

@media (max-width: 760px) {
    body.nf-unified .hm-page .hm-grid-2,
    body.nf-unified .hm-page .hm-guide-blocks,
    body.nf-unified .hm-page .hm-guide-list {
        grid-template-columns: 1fr !important;
    }

    body.nf-unified .hm-page .hm-anchor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.nf-unified .hm-page .hm-guide-section {
        padding: 15px 14px !important;
    }
}

@media (max-width: 460px) {
    body.nf-unified .hm-page .hm-anchor-grid {
        grid-template-columns: 1fr;
    }
}
/* Seven Signs guide */
.hm-seven-signs-menu {
    margin-bottom: 22px;
    border-color: rgba(191, 145, 57, .72);
    background:
        radial-gradient(circle at 88% 12%, rgba(159, 42, 32, .16), transparent 34%),
        linear-gradient(180deg, rgba(38, 39, 33, .98), rgba(23, 25, 21, .98));
}
.hm-seven-signs-menu .hm-server-kicker,
.hm-seven-signs-title h2 {
    color: #e1bd68;
}
.hm-trial-badge {
    border-color: rgba(183, 73, 58, .72);
    color: #efb09f;
    background: rgba(92, 24, 18, .28);
}
#seven-signs-global-pvp {
    border-color: rgba(183, 73, 58, .72);
    box-shadow: inset 3px 0 0 rgba(183, 73, 58, .58), 0 10px 30px rgba(0, 0, 0, .22);
}
#seven-signs-global-pvp .hm-section-icon {
    color: #ef9f82;
}
.hm-menu-icon-image {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.hm-seven-signs-chip {
    border-color: rgba(191, 145, 57, .7);
    background: linear-gradient(180deg, rgba(49, 43, 29, .72), rgba(24, 24, 20, .94));
}
.hm-seven-signs-chip:hover {
    border-color: #d3aa52;
}