.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr 280px;
    align-items: center;
    gap: 24px;
    min-height: 410px;
    padding: 20px 0 30px;
}
.hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -130px;
    bottom: -12px;
    left: 50%;
    width: var(--hero-width);
    transform: translateX(-50%);
    background-image: var(--hero-image), radial-gradient(ellipse at 49% 60%, #95240b66, transparent 47%), radial-gradient(ellipse at 10% 90%, #c23d112e, transparent 38%), radial-gradient(ellipse at 95% 80%, #91250c4d, transparent 35%), linear-gradient(0deg, #0b0908, #270e0b88 30%, #0b090855);
    background-size: cover;
    background-position: center;
    pointer-events: none;
}
.hero-identity {
    text-align: center;
    padding-left: 304px;
}
.hero h1 {
    line-height: 0;
}
.guild-logo {
    width: min(100%, 530px);
    margin-inline: auto;
}
.hero-tagline {
    font: 500 clamp(.78rem, 1.1vw, 1rem)/1.8 var(--heading-font);
    letter-spacing: .17em;
    text-transform: uppercase;
    color: #ffdbad;
    margin-top: 2px;
}
.hero-values {
    margin-top: 10px;
    font: 400 .73rem/1.8 var(--heading-font);
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--gold);
}
.hero-values span {
    padding-inline: 10px;
    color: #ed8857;
}
.home-grid {
    display: grid;
    grid-template-columns: 1.08fr 1.04fr .92fr;
    gap: 18px;
    align-items: start;
}
.home-grid > *, .guild-sidebar > *, .event-copy, .news-copy {
    min-width: 0;
}
.news-panel > .empty-state, .events-panel > .empty-state {
    display: grid;
    align-items: center;
    min-height: 150px;
    text-align: center;
}
.news-panel {
    display: flex;
    flex-direction: column;
}
.news-list, .event-list {
    padding: 0 18px;
}
.news-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #63544155;
}
.news-thumbnail {
    width: 112px;
    height: 82px;
    object-fit: cover;
    border: 1px solid #6b4e36;
    border-radius: 2px;
}
.thumbnail-placeholder {
    display: grid;
    place-items: center;
    color: #d77b4c;
    font-size: 2.5rem;
    text-shadow: 0 0 22px #ff571b;
    background: radial-gradient(ellipse at 50% 110%, #aa3511, transparent 68%), repeating-linear-gradient(65deg, transparent 0 15px, #a14d1d14 16px 17px), linear-gradient(130deg, #2b1510, #0c0a09);
}
.news-copy {
    overflow-wrap: anywhere;
}
.news-copy h3 a {
    color: var(--red-bright);
}
.news-copy p {
    font-size: 1rem;
    line-height: 1.25;
    margin-top: 4px;
}
.news-copy time {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: .9rem;
}
.event-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto 10px;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    min-height: 76px;
    border-bottom: 1px solid #63544155;
    color: var(--text);
}
.event-row:hover {
    text-decoration: none;
    background: #99643a0c;
}
.event-row:hover .event-title {
    color: var(--gold);
    text-decoration: underline;
}
.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(#28231d, #171613);
    border: 1px solid #5d4a35;
    border-radius: 3px;
    box-shadow: 0 2px 4px #000;
}
.event-date span {
    background: #55100b;
    padding: 0 6px;
    color: #ffe0b5;
    font: 400 .65rem/1.6 var(--heading-font);
}
.event-date strong {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.25;
    color: #f3e3c4;
}
.event-title, .event-time {
    display: block;
}
.event-title {
    font-size: 1.08rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.event-time {
    font-size: .9rem;
    margin-top: 3px;
    color: var(--muted);
}
.badge {
    padding: 3px 9px;
    border: 1px solid #647f4d;
    background: #1d321b;
    border-radius: 20px;
    color: #e2ebd7;
    font-size: .73rem;
    line-height: 1.2;
    text-transform: uppercase;
}
.badge--raid {
    border-color: #ae503f;
    background: #52110c;
    color: #ffe1ce;
}
.badge--guild {
    border-color: #56777b;
    background: #183032;
    color: #d7e6e4;
}
.guild-sidebar {
    display: grid;
    gap: 18px;
    align-content: start;
}
.discord-content {
    padding: 25px 22px 20px;
    background: radial-gradient(ellipse at 100% 0, #8c23164d, transparent 65%), linear-gradient(150deg, #37241b33, transparent);
}
.discord-content h3 {
    font-family: var(--heading-font);
    color: var(--gold);
    text-transform: uppercase;
    font-size: 1.1rem;
    margin: 12px 0 6px;
}
.discord-content p:not(.eyebrow) {
    line-height: 1.35;
}
.discord-content .button {
    display: flex;
    margin: 16px auto 0;
    max-width: 260px;
}
.progress-panel h2 {
    font-size: 1rem;
}
.progress-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 16px;
}
.raid-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}
.raid-tile img, .raid-placeholder {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 1px solid #94603d;
    border-radius: 3px;
    box-shadow: inset 0 0 0 3px #0c0805, 0 2px 6px #000;
}
.raid-placeholder {
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at bottom, #91300f, #25130e 70%);
    color: #f6cd92;
    font: 600 1rem var(--heading-font);
}
.raid-name {
    font: 500 .56rem/1.5 var(--heading-font);
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 7px;
    overflow-wrap: anywhere;
}
.raid-size {
    margin-top: 7px;
    color: var(--bronze);
    font: 500 .6rem/1.5 var(--heading-font);
}
.raid-count {
    color: #e7b684;
    margin-top: auto;
    font-size: .95rem;
}
@media (min-width: 1200px) and (max-width: 1350px) {
    .hero-identity {
        padding-left: 200px;
    }
    .nav-list a {
        padding-inline: 10px;
    }
    .news-item {
        grid-template-columns: 80px minmax(0, 1fr) 10px;
        gap: 10px;
    }
    .news-thumbnail {
        width: 80px;
        height: 76px;
    }
    .event-row {
        gap: 8px;
    }
    .panel-heading {
        padding-inline: 16px;
    }
    .panel-heading h2 {
        font-size: 1rem;
    }
}
@media (max-width: 1199px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-bottom: 32px;
    }
    .hero-identity {
        padding-left: 0;
    }
    .hero .login-box {
        width: min(100%, 420px);
        justify-self: center;
    }
    .guild-logo {
        width: min(100%, 500px);
    }
    .home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .guild-sidebar {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 20px;
    }
    .news-item {
        grid-template-columns: 76px minmax(0, 1fr) 10px;
        gap: 10px;
    }
    .news-thumbnail {
        width: 76px;
        height: 76px;
    }
    .event-row {
        grid-template-columns: 48px minmax(0, 1fr) auto 8px;
        gap: 8px;
    }
}
@media (max-width: 767px) {
    .news-copy h3 a {
        display: flex;
        align-items: center;
        min-height: 44px;
    }
    .hero-tagline {
        max-width: 340px;
        margin-inline: auto;
        padding-inline: 10px;
    }
    .hero-values {
        font-size: .6rem;
        letter-spacing: .12em;
    }
    .hero-values span {
        padding-inline: 5px;
    }
    .home-grid, .guild-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }
    .guild-sidebar {
        grid-column: auto;
    }
    .panel-heading {
        padding: 16px;
    }
    .panel-heading h2 {
        font-size: 1.05rem;
    }
    .news-list, .event-list {
        padding-inline: 14px;
    }
    .event-row {
        gap: 9px;
    }
    .badge {
        padding-inline: 7px;
        font-size: .66rem;
    }
}

/* ---------- Concept list styling (news + events), T-005 ---------- */
.panel-heading h2 {
    display: flex;
    align-items: center;
    gap: 12px;
}
.panel-heading h2 .icon {
    color: #d8763f;
    filter: drop-shadow(0 0 6px #b0300c66);
}
.heading-emblem {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 3px #000);
}
.news-item, .event-row {
    position: relative;
    border-bottom: 1px solid #5a473233;
    box-shadow: 0 1px 0 #00000080;
    transition: background-color .15s ease;
}
.news-list li:last-child .news-item, .event-list li:last-child .event-row {
    border-bottom: 0;
    box-shadow: none;
}
.news-item:hover, .event-row:hover {
    background: linear-gradient(90deg, #7a24140f, #7a241426 50%, #7a24140f);
}
.news-thumbnail {
    border: 1px solid #8a6a45;
    border-radius: 1px;
    box-shadow: 0 0 0 2px #120d0a, 0 0 0 3px #4b3a28, 0 4px 10px #000;
}
.news-copy h3 {
    font-size: 1.14rem;
    font-weight: 600;
}
.news-copy h3 a {
    color: #f0594b;
    text-shadow: 0 1px 2px #000;
}
.news-copy h3 a:hover {
    color: #ff8a72;
}
/* Whole news row clickable via the title link. */
.news-copy h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
}
.news-copy p {
    color: #d8d0c2;
}
.chevron {
    display: grid;
    place-items: center;
    color: #c99b62;
}
.news-item:hover .chevron, .event-row:hover .chevron {
    color: #ffd08e;
}
.event-row {
    grid-template-columns: 58px minmax(0, 1fr) auto 20px;
    padding-inline: 4px;
}
.event-row:hover {
    text-decoration: none;
}
.event-date {
    width: 58px;
    overflow: hidden;
    background: linear-gradient(#1f1b17, #0e0d0b);
    border: 1px solid #7d5c3d;
    border-radius: 2px;
    box-shadow: inset 0 0 0 2px #0a0908, 0 0 0 1px #0a0908, 0 3px 6px #000;
}
.event-date span {
    display: block;
    width: 100%;
    padding: 3px 0 2px;
    text-align: center;
    background: linear-gradient(#5e120c, #3a0907);
    border-bottom: 1px solid #7d5c3d;
    color: #ffd6b8;
    font: 600 .68rem/1.3 var(--heading-font);
    letter-spacing: .1em;
}
.event-date strong {
    padding: 1px 0 3px;
    font: 500 1.55rem/1.2 var(--heading-font);
    color: #f5e6c8;
}
.event-title {
    font-weight: 600;
    color: #efe6d4;
}
.badge {
    min-width: 74px;
    padding: 4px 12px;
    text-align: center;
    border: 1px solid #6f9c55;
    border-radius: 999px;
    background: linear-gradient(#2e5c25, #14300f);
    color: #e6f3dc;
    font: 600 .66rem/1.2 var(--heading-font);
    letter-spacing: .09em;
    box-shadow: inset 0 1px 0 #ffffff26, inset 0 -3px 5px #0007, 0 1px 3px #000;
}
.badge--raid {
    border-color: #c0573f;
    background: linear-gradient(#92211a, #500b07);
    color: #ffe2cc;
}
.badge--guild {
    border-color: #5f9095;
    background: linear-gradient(#27494c, #10292b);
    color: #dff0ee;
}
.discord-content .button .icon {
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .event-row {
        grid-template-columns: 48px minmax(0, 1fr) auto 16px;
    }
    .event-date {
        width: 48px;
    }
    .badge {
        min-width: 0;
    }
}

.members-only {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.members-only .icon {
    color: #c99b62;
}
