/* R40 games hub: all rules owned by this main, no shared UI changes. */
.games-r40{background:#f5f1e8;color:#10223d;padding:0 0 40px;font-size:16px;line-height:1.55}
.games-r40 .g40-wrap{width:min(100% - 40px,1000px);margin:auto}
.games-r40 .g40-intro{padding:36px 0 28px;border-bottom:1px solid #c8c9c5}
.games-r40 h1{font-size:clamp(2.9rem,8vw,5rem);line-height:1.02;letter-spacing:-.045em;margin:12px 0 16px;color:#10223d}
.games-r40 h2{font-size:clamp(1.65rem,4vw,2.25rem);line-height:1.16;letter-spacing:-.025em;margin:6px 0 16px;color:#10223d}
.games-r40 p{margin:0 0 14px;max-width:65ch}
.games-r40 .g40-eyebrow{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;font-weight:750;color:#785033;margin:0}
.games-r40 a{color:#10223d;text-decoration-thickness:1px;text-underline-offset:4px}
.games-r40 a:focus-visible,.games-r40 summary:focus-visible{outline:3px solid #c65b17;outline-offset:4px}
.games-r40 .g40-jumps{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.games-r40 .g40-jumps a{border:1px solid #b9bdbd;border-radius:5px;padding:10px 13px;text-decoration:none;font-size:.875rem;font-weight:700}
.games-r40 .g40-section{padding:28px 0;border-bottom:1px solid #c8c9c5}
.games-r40 section[id],.games-r40 article[id],.games-r40 details[id]{scroll-margin-top:0}
.games-r40 .g40-note{font-size:.84rem;color:#505d68;line-height:1.5}
.games-r40 .g40-results{display:grid;gap:9px}
.games-r40 .g40-match{background:#fffdf7;border:1px solid #d3d3cc;border-radius:7px;padding:13px 14px}
.games-r40 .g40-match-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px;font-size:.8rem;margin-bottom:8px}
.games-r40 .g40-match-head strong{font-size:.9rem}
.games-r40 .g40-scoreline{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px;font-size:.92rem;line-height:1.3}
.games-r40 .g40-scoreline span{overflow-wrap:anywhere}
.games-r40 .g40-scoreline span:last-child{text-align:right}
.games-r40 .g40-score{font-size:1.55rem;white-space:nowrap;font-weight:800;color:#a94612;font-variant-numeric:tabular-nums}
.games-r40 .g40-match-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:10px;font-size:.72rem;color:#505d68}
.games-r40 .g40-more-teams{margin-top:12px}
.games-r40 .g40-more-teams>summary{padding:12px 0;font-size:.875rem;font-weight:700}
.games-r40 summary{cursor:pointer}
.games-r40 .g40-source{font-size:.8rem;margin:15px 0 0}
.games-r40 .g40-plan-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:17px 0}
.games-r40 .g40-plan-links a{display:flex;justify-content:space-between;gap:8px;align-items:center;border:1px solid #bdc2c3;border-radius:5px;padding:12px;text-decoration:none;font-size:.84rem;font-weight:650}
.games-r40 .g40-team-access{display:grid;gap:10px;font-size:.85rem}
.games-r40 .g40-selection{display:grid;gap:8px}
.games-r40 .g40-report{background:#fffdf7;border:1px solid #d3d3cc;border-radius:6px}
.games-r40 .g40-report>summary{padding:14px 15px;list-style:none;display:grid;gap:5px;position:relative;padding-right:32px}
.games-r40 .g40-report>summary::-webkit-details-marker{display:none}
.games-r40 .g40-report>summary:after{content:'+';position:absolute;right:13px;top:24px;font-weight:700}
.games-r40 .g40-report[open]>summary:after{content:'−'}
.games-r40 .g40-report-title{font-size:1rem;font-weight:720;line-height:1.3}
.games-r40 .g40-read{font-size:.75rem;text-decoration:underline;text-underline-offset:3px;color:#785033}
.games-r40 .g40-archive{margin:14px 0;border:1px solid #bdc2c3;border-radius:6px}
.games-r40 .g40-archive>summary{padding:15px;font-size:.87rem}
.games-r40 .g40-archive>summary span{display:block;margin-top:5px;font-size:.75rem;color:#505d68}
.games-r40 .g40-archive-list{display:grid;gap:8px;padding:0 10px 12px}
.games-r40 .g40-archive-links{display:flex;flex-wrap:wrap;gap:10px 18px;font-size:.8rem;margin-top:18px}
.games-r40 .g40-join{background:#10223d;color:#f5f1e8;border-radius:8px;padding:22px;margin-top:25px}
.games-r40 .g40-join h2{color:#f5f1e8;font-size:1.6rem}
.games-r40 .g40-join .g40-eyebrow{color:#ffb27b}
.games-r40 .g40-join a{display:inline-block;background:#ee8139;color:#10223d;padding:11px 16px;text-decoration:none;border-radius:4px;font-weight:750}
.games-r40 .article{margin:0;border:0;background:transparent;padding:18px 15px;opacity:1!important;transform:none!important;visibility:visible!important;transition:none!important;animation:none!important}
.games-r40 .article h2{font-size:1.4rem;line-height:1.25}
.games-r40 .article-inner{gap:16px}
.games-r40 .article .meta{flex-wrap:wrap;font-size:.78rem;gap:8px}
.games-r40 .article .teaser{font-size:.94rem}
.games-r40 .article .body{font-size:1rem;line-height:1.65;overflow-wrap:anywhere}
.games-r40 .article .body p{margin-bottom:15px}
.games-r40 .article-media{max-width:100%}
.games-r40 .article-media img{max-width:100%;height:auto}
@media(min-width:760px){.games-r40 .g40-intro{padding:45px 0 32px}.games-r40 .g40-results{grid-template-columns:repeat(2,minmax(0,1fr))}.games-r40 .g40-plan-links{grid-template-columns:repeat(3,minmax(0,1fr))}.games-r40 .g40-join{display:flex;align-items:center;justify-content:space-between;gap:30px}}
@media(max-width:360px){.games-r40 .g40-wrap{width:calc(100% - 32px)}.games-r40 .g40-plan-links a{padding:10px;font-size:.78rem}.games-r40 .g40-scoreline{font-size:.84rem;gap:8px}}
