/* ── Hero: flanking icons + centered, unboxed blurb ──────────── */

.occ-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1400px, 92%);
    margin: 60px auto;
    gap: 40px;
}

.occ-side-icon {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 10px;
    color: var(--gold);
    cursor: pointer;
}

.occ-icon-stack {
    position: relative;
    display: block;
    width: 240px;
    height: 240px;
}

.occ-icon-stack img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: filter .25s, transform .4s ease;
}

.occ-icon-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .8rem;
    transition: color .25s;
}

.occ-side-icon:hover .occ-icon-stack img,
.occ-side-icon.active .occ-icon-stack img {
    filter: drop-shadow(0 0 10px rgba(200, 164, 106, .5));
}

.occ-side-icon.active .occ-icon-stack img {
    transform: scale(1.08);
}

/* Only the outer ring spins, and only once its category is selected — the center emblem stays fixed */
.occ-side-icon.active .occ-icon-ring {
    animation: occSpin 30s linear infinite;
}

@keyframes occSpin {
    from { transform: scale(1.08) rotate(0deg); }
    to   { transform: scale(1.08) rotate(360deg); }
}

.occ-side-icon:hover span,
.occ-side-icon.active span {
    color: var(--gold-light);
}

.occ-blurb {
    max-width: 640px;
    text-align: center;
}

.occ-blurb h1 {
    color: #f2e0b7;
    font-size: 2.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
    text-shadow:
        0 0 10px rgba(242, 224, 183, .25),
        0 0 30px rgba(200, 164, 106, .15);
}

.occ-blurb h3 {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    margin: 22px 0 10px;
}

.occ-blurb p {
    color: #d5d5d5;
    line-height: 1.8;
}

/* ── Tab panel: revealed below the hero once a side icon is picked ── */

.occ-panel {
    width: min(1100px, 90%);
    margin: 0 auto 100px;
}

.occ-panel.hidden {
    display: none;
}

.occ-tabs {
    display: flex;
    border: 1px solid rgba(200, 164, 106, .35);
    background: rgba(0, 0, 0, .25);
}

.occ-tab-btn {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    border-right: 1px solid rgba(200, 164, 106, .25);
    color: var(--gold);
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .85rem;
    cursor: pointer;
    transition: .2s;
}

.occ-tab-btn:last-child {
    border-right: none;
}

.occ-tab-btn:hover {
    color: var(--gold-light);
}

.occ-tab-btn.active {
    color: var(--gold-light);
    background: rgba(200, 164, 106, .12);
}

.occ-tab-panels {
    background: var(--panel);
    border: 1px solid rgba(200, 164, 106, .35);
    border-top: none;
    backdrop-filter: blur(8px);
    padding: 30px;
}

.occ-tab-panel {
    display: none;
}

.occ-tab-panel.active {
    display: block;
}

.occ-tab-panel h2 {
    color: var(--gold-light);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.occ-tab-panel p {
    color: #d9c19a;
    line-height: 1.8;
}

/* ── Archetype note + sub-occupation grid/detail ─ */

.occ-archetype-note {
    color: var(--gold);
    font-style: italic;
    font-size: .9rem;
    margin-top: 10px !important;
}

.occ-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 22px 0 18px;
}

.occ-sub-card {
    position: relative;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(200, 164, 106, .3);
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: .95rem;
    letter-spacing: 1px;
    padding: 14px;
    cursor: pointer;
    transition: .2s;
    overflow: hidden;
}

.occ-sub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .2s;
}

.occ-sub-card:hover {
    border-color: rgba(200, 164, 106, .55);
    background: rgba(200, 164, 106, .06);
}

.occ-sub-card:hover::before {
    transform: scaleX(1);
}

.occ-sub-card.active {
    color: var(--gold-light);
    border-color: var(--gold);
    background: rgba(200, 164, 106, .12);
}

.occ-sub-card.active::before {
    transform: scaleX(1);
}

.occ-sub-detail {
    background: rgba(0, 0, 0, .2);
    border: 1px solid rgba(200, 164, 106, .2);
    padding: 18px 22px;
}

.occ-sub-detail p {
    color: #d9c19a;
    line-height: 1.7;
}

.occ-sub-talents {
    list-style: none;
    margin: 12px 0;
}

.occ-sub-talents li {
    color: #d9c19a;
    line-height: 1.6;
    padding-left: 16px;
    position: relative;
    margin-bottom: 4px;
}

.occ-sub-talents li::before {
    content: '\25C6';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: .7rem;
    top: 6px;
}

.occ-pb-note {
    color: #8a8272;
    font-style: italic;
    font-size: .85rem;
}

/* ── Responsive ───────────────────────────────── */

@media (max-width: 900px) {
    .occ-hero {
        flex-direction: column;
        margin: 40px auto;
    }

    .occ-side-icon {
        flex-direction: row;
    }
}

@media (max-width: 600px) {
    .occ-tabs {
        flex-direction: column;
    }

    .occ-tab-btn {
        border-right: none;
        border-bottom: 1px solid rgba(200, 164, 106, .25);
    }

    .occ-tab-btn:last-child {
        border-bottom: none;
    }

    .occ-sub-grid {
        grid-template-columns: 1fr;
    }
}
