/* The library and guides share one reading surface and game identity. */
.boardgame-detail { padding-top: 24px; padding-bottom: 64px; color: var(--text-color); }
.boardgame-detail-breadcrumb { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.boardgame-detail-breadcrumb a, .boardgame-detail-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-primary); font-weight: 700; }
.boardgame-detail-hero { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--border-color, #ddd6ca); }
.boardgame-detail-cover { background: #fffdf8; padding: 28px; border: 1px solid #e1d9cc; border-radius: 16px; }
.boardgame-detail-cover img { display: block; width: 100%; height: auto; max-height: 400px; object-fit: contain; aspect-ratio: 1; }
.boardgame-detail-heading { min-width: 0; }
.boardgame-detail-heading h1 { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.18; margin: 0 0 12px; overflow-wrap: anywhere; }
.boardgame-detail-english { color: var(--text-light); margin: 0 0 24px; font-size: 17px; }
.boardgame-detail-facts { display: flex; gap: 40px; margin: 24px 0; }
.boardgame-detail-facts dt { color: var(--text-light); font-size: 13px; margin-bottom: 6px; }
.boardgame-detail-facts dd { margin: 0; font-size: 20px; font-weight: 700; }
.boardgame-detail-summary { font-size: 18px; line-height: 1.8; margin-bottom: 24px; }
.boardgame-detail-aliases { color: var(--text-light); font-size: 13px; line-height: 1.7; margin-top: 16px; }
.boardgame-detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; padding-top: 12px; }
.boardgame-detail-reading section { padding: 28px 0; border-bottom: 1px solid #e1d9cc; }
.boardgame-detail h2 { font-size: 22px; margin: 0 0 16px; }
.boardgame-detail-reading p { line-height: 1.95; margin: 0 0 12px; }
.boardgame-detail-links { display: grid; gap: 8px; }
.boardgame-detail-links a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; color: var(--brand-primary); line-height: 1.5; }
.boardgame-detail-aside { padding-top: 28px; }
.boardgame-detail-aside h2 { font-size: 17px; }
.boardgame-detail-provenance { color: var(--text-light); font-size: 14px; }
.boardgame-topics-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding: 18px 0; }
.boardgame-topics-nav > span { color: var(--text-light); font-size: 14px; }
.boardgame-topics-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-primary); font-weight: 700; }
.boardgame-detail-aside .boardgame-topics-nav { display: grid; margin-top: 20px; border-top: 1px solid #e1d9cc; }
.boardgame-guide-section { padding: 32px 0; }
.boardgame-guide-section > h2 { margin: 0 0 8px; font-size: 26px; }
.boardgame-guide-intro { color: var(--text-light); line-height: 1.7; margin: 0 0 24px; }
.boardgame-guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.boardgame-guide-card { display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: start; gap: 18px; padding: 22px; border: 1px solid #e1d9cc; border-radius: 12px; background: #fffdfa; }
.boardgame-guide-cover { display: flex; min-height: 44px; width: 100%; }
.boardgame-guide-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.boardgame-guide-body { min-width: 0; }
.boardgame-guide-body h3 { font-size: 19px; margin: 0; line-height: 1.5; }
.boardgame-guide-body h3 a { display: inline-flex; min-height: 44px; align-items: center; color: inherit; }
.boardgame-guide-en, .boardgame-guide-meta { color: var(--text-light); font-size: 13px; margin: 4px 0 10px; line-height: 1.6; }
.boardgame-guide-reason { font-size: 14px; line-height: 1.85; margin: 12px 0; }
.boardgame-guide-card .boardgame-mark-group { gap: 8px; }
.boardgame-guide-card .boardgame-mark-btn { min-width: 0; padding: 10px 6px; }
.boardgame-guide-card .boardgame-mark-btn-note { display: none; }
.boardgame-card h3 a, .boardgame-search-card h3 a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; }
.boardgame-card-image-wrap > a { display: block; width: 100%; height: 100%; }
.boardgame-card-image-wrap img { object-fit: contain; }
.boardgame-search-card-media { align-self: start; }
.boardgame-search-card-media img { object-fit: contain; }
.boardgame-detail a:focus-visible, .boardgame-guide-section a:focus-visible { outline: 3px solid var(--brand-primary); outline-offset: 4px; }
@media (max-width: 900px) {
 .boardgame-detail-columns { grid-template-columns: minmax(0,1fr); gap: 12px; }
 .boardgame-detail-aside { width: 100%; min-width: 0; }
 .boardgame-guide-card { grid-template-columns: 82px minmax(0,1fr); gap: 12px; padding: 16px; }
}
@media (max-width: 640px) {
 .boardgame-detail-hero { grid-template-columns: minmax(0,1fr); gap: 24px; }
 .boardgame-detail-cover { width: min(100%,240px); min-width: 0; justify-self: center; padding: 16px; box-sizing: border-box; }
 .boardgame-detail-heading { width: 100%; min-width: 0; }
 .boardgame-detail-summary { font-size: 16px; }
 .boardgame-detail-facts { gap: 28px; }
 .boardgame-guide-grid { grid-template-columns: minmax(0,1fr); }
 .boardgame-guide-card { width: 100%; min-width: 0; box-sizing: border-box; }
 .boardgame-detail-breadcrumb { gap: 8px; font-size: 13px; }
}
body:has(.boardgame-detail), body:has(.boardgame-guide-section), body:has(.guide-article) { background: #f5f1e9; }
.boardgame-guide-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
