/* WordPress-only rules: what the block markup adds around the mockup's HTML. Keep small. */

/* The language switch is real links per language (the mockup used buttons). */
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 .9375rem/1 "Nunito", sans-serif; color: var(--text); text-decoration: none;
  border-radius: 999px; padding: .55rem .8rem; min-width: 44px; min-height: 44px;
}
.lang a[aria-current="true"] { background: var(--btn-bg); color: var(--btn-text); }
.lang a:hover:not([aria-current="true"]) { text-decoration: underline; }
@media (forced-colors: active) {
  .lang a[aria-current="true"] { background: Highlight; color: HighlightText; forced-color-adjust: none; }
}

/* Template parts and the post content wrapper add elements; they must not add space. */
.wp-site-blocks > *, .entry-content > * { margin-block: 0; }
.wp-block-heading { margin: 0; }
.how-intro .wp-block-heading, .about-copy .wp-block-heading, .section-head .wp-block-heading { margin-top: 0; }

/* The query loop wraps each card in <li>; the card fills it. */
.wp-block-post-template.cards { list-style: none; margin: 0; padding: 0; }
.cards > li { display: flex; margin: 0; }
.cards > li > .card { flex: 1; }

/* Inner pages: the doc column. Post content inside it keeps the mockup spacing. */
.doc .entry-content > :first-child { margin-top: 0; }
.doc .wp-block-query h2 { margin-top: 2rem; }

/* The editor canvas has no header ground. */
.editor-styles-wrapper { background: var(--bg); color: var(--text); }

/* Visually hidden, still read by assistive tech (the full language names in the EN/RO switch). */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 44 px targets (WCAG 2.5.8 is 24 px; we keep the mockup's 44 px promise): Look buttons and footer links. */
.seg button { min-height: 44px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }

/* The skip link moves focus to <main>: no outline around the whole page. */
main:focus { outline: none; }

/* "All games" under the game cards on the home page. */
.all-games { margin-top: 1.5rem; }

/* Forced colours: the footprint glyphs (sprite symbols) follow the system text colour.
   Rules on the symbols' children reach the <use> copies. */
@media (forced-colors: active) {
  .glyph svg, .step .glyph { color: CanvasText; }
  #i-print *, #i-print-ring *, #i-pebble * { fill: Canvas !important; stroke: currentColor !important; }
}

/* Game cards: a game's own icon as the art (decorative; the title names the game), and the Play button,
   which sits above the card's stretched link so both can be clicked and reached by Tab. */
/* Same box as the 3:2 drawings (max 420 px wide), so the cards in a row line up. */
.card-icon .icon-box { display: grid; place-items: center; width: 100%; max-width: 420px; aspect-ratio: 3 / 2; }
.card-hex .card-art { background: var(--panel-coral); }
.card-blast .card-art { background: var(--panel-sun); }
.card-stonework .card-art { background: var(--panel-teal); }
.card-icon .card-art img { display: block; width: min(168px, 56%); height: auto; border-radius: 22%; box-shadow: var(--shadow); }
.card-foot { margin-top: auto; padding-top: .4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.card-foot .more { margin-top: 0; padding-top: 0; }
.card-play { position: relative; z-index: 1; }
