/* Community Honors page, v4.0.27 beta */
.page-honors .subpage-hero {
    padding: 2.1rem 0 1.55rem;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 78% 20%, rgba(243, 199, 96, .09), transparent 27%),
        radial-gradient(circle at 14% 10%, rgba(71, 239, 227, .1), transparent 33%);
}

.honors-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .82fr);
    gap: 2.4rem;
    align-items: center;
}

.honors-hero-copy h1 {
    max-width: 12ch;
    margin: .75rem 0 .8rem;
    font-size: clamp(3.1rem, 5vw, 5.4rem);
}

.honors-hero-copy p {
    max-width: 720px;
    margin-bottom: 0;
    font-size: 1rem;
}

.honors-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.2rem;
}

.honors-hero-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.honors-hero-summary article {
    min-height: 112px;
    padding: .95rem 1rem;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: .8rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(8, 31, 39, .88), rgba(4, 16, 23, .92));
    box-shadow: inset 0 1px rgba(255,255,255,.025), 0 12px 28px rgba(0,0,0,.17);
}

.honors-hero-summary article > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--cyan-bright);
}

.honors-hero-summary article > span .icon {
    width: 34px;
    height: 34px;
}

.honors-hero-summary small,
.honors-hero-summary strong {
    display: block;
}

.honors-hero-summary small {
    color: var(--muted);
    font-size: .69rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.honors-hero-summary strong {
    margin-top: .2rem;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 2rem;
    line-height: 1;
    white-space: nowrap;
}

.honors-hero-summary strong i,
.honors-group-heading > strong i {
    color: var(--muted);
    font-size: .55em;
    font-style: normal;
    font-weight: 500;
}

.honors-page-stack {
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1.8rem;
}

.honors-jump-nav {
    position: sticky;
    z-index: 15;
    top: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .7rem .8rem;
    background: rgba(4, 18, 25, .95);
    backdrop-filter: blur(16px);
}

.honors-jump-nav a {
    flex: 0 0 auto;
    padding: .42rem .62rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #c9d8d7;
    background: rgba(6, 26, 33, .72);
    font-size: .7rem;
    text-decoration: none;
}

.honors-jump-nav a:hover {
    color: var(--cyan-bright);
    border-color: var(--line-strong);
}

.honors-trophy-panel,
.honors-records-panel,
.honors-achievement-group {
    padding: 1rem 1.05rem 1.1rem;
}

.honors-section-heading,
.honors-ledger-heading,
.honors-group-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.honors-section-heading h2,
.honors-ledger-heading h2 {
    margin: .2rem 0 .3rem;
    font-size: clamp(1.9rem, 3vw, 3rem);
}

.honors-section-heading p,
.honors-ledger-heading p,
.honors-group-heading p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.55;
}

.honors-sighting-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.honors-sighting-card {
    position: relative;
    min-width: 0;
    min-height: 132px;
    padding: .85rem 2.3rem .85rem .85rem;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: .8rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(4, 19, 26, .72);
    text-decoration: none;
    transition: transform .18s, border-color .18s, background .18s;
}

.honors-sighting-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: rgba(7, 29, 36, .86);
}

.honors-sighting-card.rarity-very-rare {
    border-color: rgba(205, 117, 255, .28);
}

.honors-sighting-card.rarity-rare {
    border-color: rgba(87, 191, 255, .26);
}

.honors-sighting-image {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(2, 12, 17, .72);
}

.honors-sighting-image img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.honors-sighting-copy,
.honors-sighting-copy strong,
.honors-sighting-copy small,
.honors-sighting-copy time {
    display: block;
    min-width: 0;
}

.honors-sighting-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .38rem;
    color: var(--muted);
    font-size: .64rem;
}

.honors-sighting-copy strong {
    overflow: hidden;
    color: var(--text);
    font-size: .86rem;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.honors-sighting-copy small,
.honors-sighting-copy time {
    margin-top: .2rem;
    color: var(--muted);
    font-size: .67rem;
    line-height: 1.35;
}

.honors-sighting-arrow {
    position: absolute;
    right: .75rem;
    top: 50%;
    color: var(--muted-2);
    transform: translateY(-50%);
}

.honors-sighting-card:hover .honors-sighting-arrow {
    color: var(--cyan-bright);
}

.honors-archive-age {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.5;
    text-align: right;
}

.honors-archive-age strong {
    color: var(--cyan-bright);
}

.honors-record-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.honors-record-card {
    position: relative;
    min-width: 0;
    min-height: 150px;
    padding: .9rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(7, 28, 35, .8), rgba(3, 14, 20, .76));
    text-decoration: none;
}

.honors-record-card[href]:hover {
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.honors-record-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: .8rem;
    color: var(--cyan-bright);
}

.honors-record-icon .icon {
    width: 30px;
    height: 30px;
}

.honors-record-card > small {
    color: var(--muted);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.honors-record-card > strong {
    margin: .32rem 0 .25rem;
    overflow-wrap: anywhere;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 1.22rem;
    line-height: 1.12;
}

.honors-record-card > span:not(.honors-record-icon) {
    margin-top: auto;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.4;
}

.honors-record-card > i {
    position: absolute;
    right: .75rem;
    top: .75rem;
    color: var(--muted-2);
    font-style: normal;
}

.honors-ledger {
    display: grid;
    gap: 1rem;
    scroll-margin-top: 140px;
}

.honors-ledger-heading {
    padding: .75rem .15rem .1rem;
}

.honors-ledger-total {
    flex: 0 0 auto;
    min-width: 130px;
    padding: .75rem .9rem;
    border-left: 2px solid var(--cyan);
    background: rgba(6, 25, 32, .52);
}

.honors-ledger-total strong,
.honors-ledger-total span,
.honors-ledger-total small {
    display: block;
}

.honors-ledger-total strong {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 2rem;
    line-height: 1;
}

.honors-ledger-total span {
    color: var(--cyan-bright);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.honors-ledger-total small {
    margin-top: .2rem;
    color: var(--muted);
    font-size: .68rem;
}

.honors-achievement-group {
    scroll-margin-top: 140px;
}

.honors-group-heading {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
}

.honors-group-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--cyan-bright);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 22, 29, .72);
}

.honors-group-icon .icon {
    width: 32px;
    height: 32px;
}

.honors-group-heading h3 {
    margin: .1rem 0 .2rem;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2vw, 2.1rem);
}

.honors-group-heading > strong {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 1.75rem;
    white-space: nowrap;
}

.honors-achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .7rem;
    margin-top: 1rem;
}

.honors-achievement-card {
    min-width: 0;
    min-height: 232px;
    padding: .85rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 16, 22, .68);
}

.honors-achievement-card.complete {
    border-color: rgba(71, 239, 227, .34);
    background: linear-gradient(145deg, rgba(7, 36, 42, .82), rgba(3, 17, 23, .76));
    box-shadow: inset 0 1px rgba(255,255,255,.025), 0 0 24px rgba(71,239,227,.055);
}

.honors-achievement-card.locked {
    border-color: rgba(108, 132, 135, .15);
}

.honors-achievement-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .6rem;
}

.honors-achievement-icon,
.honors-achievement-item {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--cyan-bright);
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(5, 22, 29, .72);
}

.honors-achievement-icon .icon {
    width: 27px;
    height: 27px;
}

.honors-achievement-item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.honors-achievement-card.locked .honors-achievement-item img {
    filter: grayscale(1);
    opacity: .45;
}

.honors-achievement-state {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: var(--muted-2);
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.honors-achievement-state .icon {
    width: 14px;
    height: 14px;
}

.honors-achievement-card.complete .honors-achievement-state {
    color: var(--cyan-bright);
}

.honors-achievement-card h4 {
    margin: .8rem 0 .3rem;
    color: var(--text);
    font-family: var(--serif);
    font-size: 1.08rem;
    line-height: 1.15;
}

.honors-achievement-card p {
    margin-bottom: .85rem;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.48;
}

.honors-achievement-progress {
    margin-top: auto;
}

.honors-achievement-progress > span {
    display: block;
    height: 6px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(0,0,0,.26);
}

.honors-achievement-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
}

.honors-achievement-card.locked .honors-achievement-progress i {
    opacity: .55;
}

.honors-achievement-card footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .7rem;
    margin-top: .55rem;
}

.honors-achievement-card footer strong {
    color: var(--gold);
    font-size: .82rem;
}

.honors-achievement-card footer small {
    color: var(--muted);
    font-size: .64rem;
    text-align: right;
}

#honors-mythic {
    border-color: rgba(243, 199, 96, .28);
    background:
        radial-gradient(circle at 90% 0%, rgba(205, 117, 255, .09), transparent 34%),
        linear-gradient(145deg, rgba(24, 22, 29, .92), rgba(5, 17, 23, .94));
}

#honors-mythic .honors-group-icon {
    color: var(--gold);
    border-color: rgba(243, 199, 96, .28);
    background: rgba(38, 29, 19, .5);
}

#honors-mythic .honors-group-heading > strong {
    color: #f5d98f;
}

#honors-mythic .honors-achievement-card {
    border-color: rgba(205, 117, 255, .2);
    background: linear-gradient(145deg, rgba(26, 18, 31, .76), rgba(5, 17, 23, .78));
}

#honors-mythic .honors-achievement-card.complete {
    border-color: rgba(243, 199, 96, .52);
    box-shadow: inset 0 1px rgba(255,255,255,.035), 0 0 30px rgba(243,199,96,.08);
}

#honors-mythic .honors-achievement-icon {
    color: var(--gold);
    border-color: rgba(243, 199, 96, .24);
    background: rgba(38, 29, 19, .45);
}

#honors-mythic .honors-achievement-progress i {
    background: linear-gradient(90deg, #7546a4, #d47dff, #f3c760);
}

@media (max-width: 1220px) {
    .honors-hero-layout { grid-template-columns: 1fr; }
    .honors-hero-copy h1 { max-width: 15ch; }
    .honors-sighting-grid,
    .honors-record-grid,
    .honors-achievement-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .honors-jump-nav { position: static; }
    .honors-sighting-grid,
    .honors-record-grid,
    .honors-achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .honors-section-heading,
    .honors-ledger-heading { display: grid; }
    .honors-archive-age { text-align: left; }
    .honors-ledger-total { width: max-content; }
}

@media (max-width: 620px) {
    .page-honors .subpage-hero { padding-top: 1.35rem; }
    .honors-hero-summary,
    .honors-sighting-grid,
    .honors-record-grid,
    .honors-achievement-grid { grid-template-columns: 1fr; }
    .honors-jump-nav { margin-inline: -2px; }
    .honors-group-heading { grid-template-columns: 42px minmax(0, 1fr); }
    .honors-group-heading > strong { grid-column: 2; font-size: 1.35rem; }
    .honors-sighting-card { min-height: 118px; }
    .honors-achievement-card { min-height: 210px; }
}

/* v4.0.45 constellation challenges */
#honors-constellations {
    border-color: rgba(98, 218, 255, .24);
    background:
        radial-gradient(circle at 88% 4%, rgba(102, 215, 255, .08), transparent 32%),
        linear-gradient(145deg, rgba(8, 28, 34, .94), rgba(5, 17, 23, .94));
}
#honors-constellations .honors-group-icon,
#honors-constellations .honors-achievement-icon {
    color: #8de8ff;
    border-color: rgba(102, 215, 255, .25);
    background: rgba(18, 54, 65, .46);
}
#honors-constellations .honors-achievement-card.complete {
    border-color: rgba(102, 215, 255, .46);
    box-shadow: inset 0 1px rgba(255,255,255,.035), 0 0 26px rgba(102,215,255,.07);
}
#honors-constellations .honors-achievement-progress i {
    background: linear-gradient(90deg, #43b6d4, #70ead8, #d7fbff);
}
