/* ATH Game Pages — full-width tracker layout on almanac tokens */

.ath-gp-main {
    background: var(--almanac-bg-canvas, #faf9f6);
}

/* Hero */
.ath-gp-hero {
    border-bottom: 1px solid var(--almanac-border, #ddd);
    background: var(--almanac-bg-cream, var(--almanac-bg-paper, #fff));
    padding: calc(var(--almanac-space-xl, 3rem) * .9) var(--almanac-gutter, 1.25rem) var(--almanac-space-lg, 2rem);
}

.ath-gp-hero-inner {
    max-width: 1060px;
    margin: 0 auto;
}

.ath-gp-eyebrow {
    font-family: var(--almanac-font-sans, inherit);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--almanac-tan-deep, #8a6d3b);
    margin: 0 0 .5rem;
}

.ath-gp-title {
    font-family: var(--almanac-font-display, inherit);
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    line-height: 1.12;
    margin: 0 0 .9rem;
    color: var(--almanac-fg-primary, #111);
    max-width: 22ch;
}

.ath-gp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.ath-gp-pill {
    font-family: var(--almanac-font-sans, inherit);
    font-size: .78rem;
    font-weight: 600;
    padding: .28rem .7rem;
    border-radius: var(--almanac-radius-pill, 99px);
    background: var(--almanac-bg-paper, #fff);
    border: 1px solid var(--almanac-border, #ddd);
    color: var(--almanac-fg-secondary, #444);
}

.ath-gp-pill-muted { color: var(--almanac-fg-tertiary, #666); }

.ath-gp-pill-live {
    background: var(--almanac-success-soft, #e6f6ea);
    border-color: transparent;
    color: var(--almanac-success, #1a7f37);
}

.ath-gp-pill-warn {
    background: var(--almanac-warning-soft, #fdf3e3);
    border-color: transparent;
    color: var(--almanac-warning, #b45309);
}

/* Content: prose constrained for readability, tracker components break wide */
.ath-gp-content {
    padding: var(--almanac-space-lg, 2rem) var(--almanac-gutter, 1.25rem) var(--almanac-space-xl, 3rem);
}

.ath-gp-content > * {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.ath-gp-content > .ath-fnr-schedule,
.ath-gp-content > .ath-fnr-facts,
.ath-gp-content > .ath-rbx-schedule,
.ath-gp-content > .ath-rbx-tracker {
    max-width: 1060px;
    /* higher specificity than the components' own `margin: 2rem 0`, which
       otherwise wins by load order and pins the wide sections to the left */
    margin-left: auto;
    margin-right: auto;
}

.ath-gp-content h2 {
    font-family: var(--almanac-font-display, inherit);
    font-size: 1.5rem;
    margin-top: var(--almanac-space-lg, 2rem);
}

.ath-gp-content h3 {
    font-size: 1.12rem;
    margin-top: var(--almanac-space-md, 1.25rem);
}

.ath-gp-content p, .ath-gp-content li {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--almanac-fg-primary, #222);
}

/* Give the schedule grid more presence in the wide slot */
.ath-gp-content .ath-fnr-grid,
.ath-gp-content .ath-rbx-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ---- v0.2.0 hero media + polish ---- */

.ath-gp-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--almanac-space-lg, 2rem);
}

.ath-gp-hero-text { min-width: 0; }

.ath-gp-hero-media { flex: none; }

.ath-gp-hero-icon {
    width: 112px;
    height: 112px;
    border-radius: var(--almanac-radius-xl, 22px);
    border: 1px solid var(--almanac-border, #ddd);
    box-shadow: var(--almanac-shadow-card, 0 2px 10px rgba(0,0,0,.08));
    display: block;
}

@media (max-width: 640px) {
    .ath-gp-hero-inner { flex-direction: column-reverse; align-items: flex-start; gap: var(--almanac-space-sm, .75rem); }
    .ath-gp-hero-icon { width: 72px; height: 72px; }
}

.ath-gp-content h3 { font-weight: 700; }

/* Related trackers strip */
.ath-gp-related {
    border-top: 1px solid var(--almanac-border, #ddd);
    background: var(--almanac-bg-cream, var(--almanac-bg-paper, #fff));
    padding: var(--almanac-space-lg, 2rem) var(--almanac-gutter, 1.25rem);
}

.ath-gp-related-inner { max-width: 1060px; margin: 0 auto; }

.ath-gp-related-h {
    font-family: var(--almanac-font-display, inherit);
    font-size: 1.15rem;
    margin: 0 0 var(--almanac-space-sm, .75rem);
}

.ath-gp-related ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--almanac-space-sm, .75rem);
}

.ath-gp-related a {
    display: block;
    padding: .7rem .9rem;
    background: var(--almanac-bg-paper, #fff);
    border: 1px solid var(--almanac-border, #ddd);
    border-radius: var(--almanac-radius-md, 8px);
    text-decoration: none;
    transition: box-shadow var(--almanac-duration, .18s) var(--almanac-ease, ease);
}

.ath-gp-related a:hover { box-shadow: var(--almanac-shadow-soft, 0 2px 10px rgba(0,0,0,.07)); }

.ath-gp-related-eyebrow {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--almanac-fg-tertiary, #777);
}

.ath-gp-related-title {
    display: block;
    font-size: .92rem;
    font-weight: 600;
    color: var(--almanac-fg-primary, #111);
    line-height: 1.35;
}

/* FAQ question headings need weight against almanac's light h3 default */
main.ath-gp-main .ath-gp-content h3 {
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--almanac-fg-primary, #111);
}

/* Embeds sit in the prose column; keep tweets from overflowing on mobile */
.ath-gp-content .wp-block-embed { overflow-x: auto; }

/* Theme figure rules beat the universal child rule — center embeds explicitly */
.ath-gp-content > .wp-block-embed,
.ath-gp-content > figure {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.ath-gp-content .wp-block-embed__wrapper { display: flex; justify-content: center; }

/* ---- Layout v3: single reading column + live sidebar (user feedback: unified widths) ---- */

.ath-gp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 328px;
    gap: var(--almanac-space-xl, 3rem);
    max-width: 1140px;
    margin: 0 auto;
    padding: var(--almanac-space-lg, 2rem) var(--almanac-gutter, 1.25rem) var(--almanac-space-xl, 3rem);
}

/* Everything in the main column shares ONE width — no more prose/component width split */
.ath-gp-layout .ath-gp-content { padding: 0; }
.ath-gp-layout .ath-gp-content > *,
.ath-gp-layout .ath-gp-content > .ath-fnr-schedule,
.ath-gp-layout .ath-gp-content > .ath-fnr-facts,
.ath-gp-layout .ath-gp-content > .ath-fnr-shop,
.ath-gp-layout .ath-gp-content > .ath-rbx-schedule,
.ath-gp-layout .ath-gp-content > .ath-rbx-tracker,
.ath-gp-layout .ath-gp-content > .wp-block-embed,
.ath-gp-layout .ath-gp-content > figure {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.ath-gp-layout .ath-gp-content .ath-fnr-grid,
.ath-gp-layout .ath-gp-content .ath-rbx-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.ath-gp-sidebar {
    position: sticky;
    top: 84px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: var(--almanac-space-md, 1.25rem);
    min-width: 0;
}

.ath-gp-widget {
    background: var(--almanac-bg-canvas, #fff);
    border: 1px solid var(--almanac-border, #EBE3D2);
    border-radius: var(--almanac-radius-md, 10px);
    padding: 1rem 1.1rem;
}

.ath-gp-widget-h {
    font-family: var(--almanac-font-sans, inherit);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--almanac-fg-tertiary, #6B5F53);
    margin: 0 0 .7rem;
}

@media (max-width: 1023px) {
    .ath-gp-layout { grid-template-columns: minmax(0, 1fr); }
    .ath-gp-sidebar { position: static; }
}
