/* Player guides: hero, intro + quick box, tile grid. Sits on the home-backdrop art and glass. */
.guide-hero {
    margin: 0 0 24px;
}

.guide-hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: cover;
    border: 1px solid var(--frame-gap);
}

.guide-hero h1 {
    margin: 18px 0 6px;
}

.guide-hero p {
    margin: 0;
    color: var(--muted, inherit);
    font-style: italic;
}

.guide-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-tile {
    display: block;
    height: 100%;
    padding: 14px 16px;
    background: rgba(31, 28, 24, 0.86);
    backdrop-filter: blur(6px);
    border: 1px solid var(--frame-gap);
    color: inherit;
    text-decoration: none;
}

.guide-tile:hover {
    background: rgba(40, 33, 24, 0.92);
    border-color: var(--gold-border);
}

.guide-tile img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 10px;
}

.guide-tile strong {
    display: block;
    margin-bottom: 4px;
    color: var(--gold);
    font-family: var(--head);
    font-size: 1.3rem;
    font-weight: 500;
}

.guide-band {
    margin: 0 0 28px;
}

.guide-band h2,
.guide-lede {
    margin: 0 0 8px;
}

/* What's new: one row per system, image and text alternating sides. */
.feature {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 24px;
    align-items: center;
    margin: 0 0 20px;
    padding: 16px;
    background: rgba(31, 28, 24, 0.86);
    backdrop-filter: blur(6px);
    border: 1px solid var(--frame-gap);
    border-radius: 8px;
}

.features > .feature:nth-child(even) {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.features > .feature:nth-child(even) .feature-img {
    order: 2;
}

.feature-img img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--frame-gap);
    border-radius: 4px;
}

.feature-text h2 {
    margin: 0 0 10px;
    color: var(--gold);
    font-family: var(--head);
    font-weight: 500;
}

.feature-text ul {
    margin: 0 0 10px;
    padding-left: 20px;
}

.feature-text li + li {
    margin-top: 6px;
}

@media (max-width: 720px) {
    .feature,
    .features > .feature:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .features > .feature:nth-child(even) .feature-img {
        order: 0;
    }
}

.feature-text details {
    margin-top: 10px;
}

.feature-text summary {
    cursor: pointer;
    color: var(--gold);
}

/* Class pages: a transparent portrait standing on the backdrop beside a glass intro panel. */
.class-hero .guide-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 28px;
    align-items: center;
}

.class-hero .class-intro {
    padding: 20px 24px;
    background: rgba(31, 28, 24, 0.86);
    backdrop-filter: blur(6px);
    border: 1px solid var(--frame-gap);
    border-radius: 8px;
}

.class-hero .class-portrait img {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6));
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border: 0;
}

.class-hero h1 {
    margin: 0 0 4px;
    color: var(--gold);
}

.class-hero .class-intro p.class-hook {
    margin: 0 0 16px;
    font-style: italic;
}

.class-hero .class-intro p {
    margin: 0 0 12px;
    font-style: normal;
}

.class-links a + a {
    margin-left: 18px;
}

.class-panel {
    margin: 0 0 20px;
    padding: 16px 20px;
    background: rgba(31, 28, 24, 0.86);
    backdrop-filter: blur(6px);
    border: 1px solid var(--frame-gap);
    border-radius: 8px;
}

.class-panel h2 {
    margin: 0 0 10px;
    color: var(--gold);
    font-family: var(--head);
    font-weight: 500;
}

.class-panel ul {
    margin: 0 0 10px;
    padding-left: 20px;
}

.class-panel li + li {
    margin-top: 6px;
}

@media (max-width: 720px) {
    .class-hero .guide-hero {
        grid-template-columns: 1fr;
    }

    .class-hero .class-portrait {
        order: -1;
    }

    .class-hero .class-portrait img {
        max-width: 360px;
        margin: 0 auto;
    }
}

/* The row of class page links in the Class Abilities sections. */
.feature-text ul.class-list,
.guide-band ul.class-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 8px 0 10px;
    padding: 0;
    list-style: none;
}

.feature-text ul.class-list li + li,
.guide-band ul.class-list li + li {
    margin-top: 0;
}

/* A feature row with no picture yet: text spans the row. */
.feature-noimg,
.features > .feature-noimg:nth-child(even) {
    grid-template-columns: 1fr;
}