/* =============================================================================
   CoolBet Finland — main stylesheet
   Design tokens reverse-engineered from the original Finland site:
     - Background:   #1A2338  (very dark navy)
     - Cards:        #1d2331  (slightly lighter navy)
     - Card border:  rgba(255,255,255,0.06)
     - Primary CTA:  #4b35a1  (purple, pill-shaped)
     - Secondary:    #22a86a  (green, pill-shaped sign-in)
     - Bonus banner: linear-gradient(135deg, #d7a42a → #ac3a31)  (gold→red)
     - Text:         #fefefe  /  muted #93a0bd
   ============================================================================= */

:root {
  --bg: #1a2338;
  --bg-alt: #1d2331;
  --card: #1d2332;
  --card-bd: rgba(255, 255, 255, 0.06);
  --text: #fefefe;
  --text-muted: #93a0bd;
  --primary: #4b35a1;
  --primary-dk: #3d2a86;
  --secondary: #22a86a;
  --secondary-dk: #1d8e58;
  --accent-gold: #d7a42a;
  --accent-red: #ac3a31;
  --link: #b9a8ff;
  --banner-grad: linear-gradient(135deg, #5a40c3 0%, #4b35a1 100%);
  --bonus-grad: linear-gradient(90deg, #d7a42a 0%, #ac3a31 100%);
  --radius-pill: 999px;
  --radius-card: 16px;
  --radius-md: 12px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px rgba(0, 0, 0, 0.18);
  --max-w: 1080px;
  --gutter: 20px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----------------------------------------------------------------------------
   HEADER
---------------------------------------------------------------------------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--card-bd);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.site-header__logo img {
  height: 30px;
  width: auto;
}
.site-header__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 28px;
}
.site-header__nav a {
  color: var(--text);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}
.site-header__nav a:hover {
  text-decoration: none;
  border-bottom-color: var(--primary);
}
.site-header__nav a[aria-current="page"] {
  border-bottom-color: var(--primary);
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Pill-shaped CTAs in header */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition:
    transform 0.1s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease;
  white-space: nowrap;
  font-size: 14px;
  color: #fff;
}
.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}
.btn:active {
  transform: translateY(1px);
}
.btn--register {
  background: var(--primary);
}
.btn--register:hover {
  background: var(--primary-dk);
}
.btn--login {
  background: var(--secondary);
}
.btn--login:hover {
  background: var(--secondary-dk);
}
.btn--bonus {
  background: var(--bonus-grad);
  color: #fff;
  font-weight: 700;
  padding: 12px 32px;
  box-shadow: 0 6px 20px rgba(172, 58, 49, 0.35);
}

/* Hamburger toggle (mobile only) */
.site-header__menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: space-between;
}
.site-header__menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.site-header.is-open .site-header__menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-open .site-header__menu-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .site-header__menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Language dropdown */
.lang-dropdown {
  position: relative;
}
.lang-dropdown__toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  font-size: 14px;
  font-weight: 600;
}
.lang-dropdown__current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang-dropdown__current img {
  width: 22px;
  height: auto;
  border-radius: 2px;
}
.lang-dropdown__chevron {
  font-size: 12px;
  transition: transform 0.15s;
}
.lang-dropdown.is-open .lang-dropdown__chevron,
.lang-dropdown:hover .lang-dropdown__chevron {
  transform: rotate(180deg);
}
.lang-dropdown__menu {
  position: absolute;
  top: 100%;
  right: 0;
  list-style: none;
  margin: 6px 0 0;
  padding: 6px 0;
  background: var(--card);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius-md);
  min-width: 200px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.15s,
    transform 0.15s,
    visibility 0.15s;
  z-index: 60;
}
.lang-dropdown.is-open .lang-dropdown__menu,
.lang-dropdown:hover .lang-dropdown__menu,
.lang-dropdown:focus-within .lang-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dropdown__item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.lang-dropdown__item a:hover {
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.lang-dropdown__item img {
  width: 22px;
  height: auto;
  border-radius: 2px;
  flex-shrink: 0;
}
.lang-dropdown__code {
  font-weight: 700;
  min-width: 28px;
}
.lang-dropdown__name {
  color: var(--text-muted);
}
.lang-dropdown__item.is-active a {
  background: rgba(75, 53, 161, 0.18);
}
.lang-dropdown__item.is-active .lang-dropdown__name {
  color: var(--text);
}

/* ----------------------------------------------------------------------------
   HERO + SECTIONS
---------------------------------------------------------------------------- */
main {
  min-height: 60vh;
}
.hero {
  padding: 50px var(--gutter) 16px;
}
.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.hero__title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.hero__title--small {
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.15;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero__lede {
  max-width: 740px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 15px;
}

/* Hero / promo banner — purple block with gold-orange CTA */
.hero-banner {
  max-width: var(--max-w);
  margin: 30px auto 16px;
  padding: 0 var(--gutter);
}
.hero-banner__inner {
  background: var(--banner-grad);
  border-radius: var(--radius-card);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-banner__copy {
  color: #fff;
}
.hero-banner__title {
  font-size: clamp(22px, 3vw, 32px);
  margin: 0 0 14px;
  font-weight: 800;
  line-height: 1.2;
}
.hero-banner__sub {
  font-size: 16px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.92);
}
.hero-banner__art img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}

/* Quick category row */
.quick-cats {
  list-style: none;
  padding: 0;
  max-width: var(--max-w);
  margin: 28px auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.quick-cats__item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius-pill);
  padding: 16px 22px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.1s;
}
.quick-cats__item:hover {
  background: #232a40;
  text-decoration: none;
}
.quick-cats__item img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}
.quick-cats__item span {
  line-height: 1.3;
}

/* Section heading */
.section-heading {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
  max-width: var(--max-w);
  padding: 0 var(--gutter);
  margin-left: auto;
  margin-right: auto;
}

/* Casino games grid */
.games-section,
.sports-section {
  margin: 24px 0 32px;
}
.games-grid {
  list-style: none;
  padding: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.game-tile {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.15s ease;
}
.game-tile:hover {
  transform: translateY(-2px);
}
.game-tile img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Sports grid */
.sports-grid {
  list-style: none;
  padding: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.sport-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  min-height: 110px;
  transition: background 0.15s;
}
.sport-tile:hover {
  background: #232a40;
  text-decoration: none;
}
.sport-tile img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* TOC pill list */
.toc {
  max-width: var(--max-w);
  margin: 6px auto 28px;
  padding: 0 var(--gutter);
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toc a {
  display: inline-block;
  border: 1px solid var(--card-bd);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text);
  background: var(--bg-alt);
}
.toc a:hover {
  background: #232a40;
  text-decoration: none;
}

/* Article */
.page-article {
  max-width: var(--max-w);
  margin: 8px auto 40px;
  padding: 0 var(--gutter);
}
.page-article > section {
  margin-top: 32px;
  padding-top: 8px;
  border-top: 1px solid var(--card-bd);
}
.page-article > section:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.page-article h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 12px 0 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.page-article h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  margin: 22px 0 10px;
  font-weight: 700;
}
.page-article p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.92);
}
.page-article ul,
.page-article ol {
  padding-left: 22px;
  margin: 0 0 14px;
}
.page-article li {
  margin: 6px 0;
}
.article-lede {
  font-size: 17px;
}
.article-cta {
  padding: 12px 16px;
  border-left: 3px solid var(--primary);
  background: rgba(75, 53, 161, 0.08);
  border-radius: 0 8px 8px 0;
}
.muted {
  color: var(--text-muted);
  font-size: 14px;
}
.cta-row {
  margin-top: 18px;
}
.cta-row--center {
  text-align: center;
}

/* Hero gallery image inside article */
.hero-gallery {
  margin: 28px 0;
  text-align: center;
}
.hero-gallery img {
  display: inline-block;
  border-radius: var(--radius-card);
  max-width: 460px;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--card-bd);
}

/* Side-by-side article image+text — text is dominant, image is an accent panel.
   HTML order is always: <div>text</div><img />
   - Default: text on LEFT, image on RIGHT
   - --reverse: image on LEFT, text on RIGHT (uses `order` to flip visual order)
*/
.article-image-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: center;
  margin: 32px 0;
  padding: 24px;
  background: linear-gradient(180deg, rgba(75, 53, 161, 0.06), rgba(75, 53, 161, 0));
  border: 1px solid var(--card-bd);
  border-radius: var(--radius-card);
}
.article-image-row--reverse {
  grid-template-columns: 320px 1fr;
}
.article-image-row--reverse > img {
  order: -1;
}
.article-image-row > div > h2:first-child,
.article-image-row > div > h3:first-child {
  margin-top: 0;
}
.article-image-row > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-bd);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Tables */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 14px 0 22px;
  font-size: 14px;
}
.info-table th,
.info-table td {
  padding: 14px 16px;
  text-align: left;
  border-top: 1px solid var(--card-bd);
}
.info-table thead th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  border-top: 0;
}
.info-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Tips ordered list — strip default markers */
.tips-list {
  list-style: none;
  padding-left: 0;
}
.tips-list li {
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

/* FAQ — 2 column accordion grid */
.faq {
  max-width: var(--max-w);
  margin: 32px auto;
  padding: 0 var(--gutter);
}
.faq__grid {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 2px solid #4dc3ff; /* light blue accent line above grid */
  padding-top: 16px;
}
.faq__item {
  background: var(--card);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius-md);
  padding: 0;
}
.faq__item details {
  padding: 16px 18px;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "▾";
  transition: transform 0.2s;
  color: var(--text-muted);
}
.faq__item details[open] summary::after {
  transform: rotate(180deg);
}
.faq__a {
  padding: 12px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

/* ----------------------------------------------------------------------------
   FOOTER
---------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--card-bd);
  padding: 32px 0 0;
  margin-top: 40px;
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
}
.site-footer__brand img {
  height: 28px;
  width: auto;
}
.site-footer__tagline {
  color: var(--text-muted);
  font-size: 14px;
  margin: 14px 0 16px;
  max-width: 240px;
}
.site-footer__social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 14px;
}
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.site-footer__social a:hover {
  opacity: 1;
  text-decoration: none;
}
.site-footer__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 12px;
}
.site-footer__support-label {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 6px;
}
.site-footer__support-email {
  font-size: 14px;
  margin: 0;
}
.site-footer__support-email a {
  color: var(--text);
}
.site-footer__nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer__nav li {
  margin-bottom: 8px;
}
.site-footer__nav a {
  color: var(--text);
  font-size: 14px;
}

/* Partner / payment / badge rows */
.site-footer__partners {
  padding: 22px 0;
  border-top: 1px solid var(--card-bd);
}
.site-footer__sport-partners,
.site-footer__payments ul,
.site-footer__badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
}
.site-footer__sport-partners img {
  height: 32px;
  width: auto;
  opacity: 0.9;
}
.site-footer__payments {
  padding: 16px 0;
  border-top: 1px solid var(--card-bd);
}
.site-footer__payments img {
  height: 26px;
  width: auto;
  opacity: 0.9;
}
.site-footer__bottom {
  padding: 22px 0;
  border-top: 1px solid var(--card-bd);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.site-footer__copyright {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}
.site-footer__badges img {
  height: 28px;
  width: auto;
  opacity: 0.85;
}
.site-footer__responsible {
  margin: 4px 0 0;
}
.site-footer__responsible img {
  height: 38px;
  width: auto;
  opacity: 0.95;
}

/* ----------------------------------------------------------------------------
   404
---------------------------------------------------------------------------- */
.page-404 {
  padding: 80px var(--gutter);
  text-align: center;
}
.page-404__inner {
  max-width: 520px;
  margin: 0 auto;
}
.page-404 h1 {
  font-size: 36px;
  margin-bottom: 18px;
}
.page-404 p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ----------------------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sports-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .quick-cats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-banner__inner {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .hero-banner__art {
    display: none;
  }
  .article-image-row,
  .article-image-row--reverse {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .site-header__menu-toggle {
    display: flex;
    order: 2;
  }
  .site-header__nav,
  .site-header__actions {
    grid-column: 1 / -1;
    display: none;
  }
  .site-header.is-open .site-header__nav,
  .site-header.is-open .site-header__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--card-bd);
    margin-top: 8px;
  }
  .site-header.is-open .site-header__nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-header.is-open .site-header__nav a {
    display: block;
    padding: 10px 4px;
    border-bottom: 1px solid var(--card-bd);
  }
  .site-header.is-open .btn {
    width: 100%;
  }
  .site-header.is-open .lang-dropdown {
    width: 100%;
  }
  .site-header.is-open .lang-dropdown__toggle {
    width: 100%;
    justify-content: space-between;
  }
  .site-header.is-open .lang-dropdown__menu {
    position: static;
    width: 100%;
    box-shadow: none;
    margin-top: 0;
  }

  .faq__grid {
    grid-template-columns: 1fr;
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sports-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .quick-cats {
    grid-template-columns: 1fr;
  }
  .quick-cats__item {
    padding: 14px 18px;
  }
  .site-footer__top {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 32px;
  }
  .info-table {
    font-size: 13px;
  }
  .info-table th,
  .info-table td {
    padding: 10px 10px;
  }
}

@media (max-width: 420px) {
  .games-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sports-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-banner__inner {
    padding: 22px;
  }
}

/* =============================================================================
   MOBILE FIXES — burger pinned top-right (always tappable to close),
   lang dropdown gets max-height scroll, equal-sized header CTAs
   ========================================================================= */
@media (max-width: 720px) {
  /* Pin burger to top-right corner of the header so it's always reachable
     to toggle close, even when the in-flow nav/actions are expanded. */
  .site-header__inner {
    position: relative;
  }
  .site-header__menu-toggle {
    position: absolute;
    top: 14px;
    right: var(--gutter);
    z-index: 60;
  }
  /* Reserve only enough room for the burger; lang sits right next to it */
  .site-header__inner {
    padding-right: calc(var(--gutter) + 48px);
  }
  /* Lang dropdown: scroll inside the menu when there are many languages. */
  .site-header.is-open .lang-dropdown__menu {
    max-height: 50vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  /* Equal-sized header CTAs (in mobile menu they fill width via existing rule;
     in case both are inline they should match) */
  .site-header__actions .btn--register,
  .site-header__actions .btn--login {
    padding: 10px 22px;
    font-size: 14px;
    min-height: 40px;
  }
}

/* =============================================================================
   FINLAND — lang dropdown placement next to burger on mobile
   The lang dropdown is now a sibling of the burger inside .site-header__inner.
   Pin it to the right next to the absolutely-positioned burger.
   ========================================================================= */
/* =============================================================================
   FINLAND — mobile: lang dropdown placed next to burger in the main bar.
   On mobile the burger toggles an in-flow expansion of nav + buttons. We
   want the lang dropdown visible in the bar at all times (not hidden in the
   burger menu), and right next to the burger.
   ========================================================================= */
@media (max-width: 720px) {
  /* Don't hide the actions block on mobile; instead hide its individual
     children so only the lang-dropdown shows in the bar. The buttons and
     nav still appear when burger is open via the existing .is-open rules. */
  .site-header__actions {
    display: flex !important;
    grid-column: auto !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0;
    padding-top: 0 !important;
    border-top: 0 !important;
    margin-top: 0 !important;
    margin-right: 0;
    justify-self: end;
  }
  /* Hide the action buttons in the bar; they'll appear inside the burger menu only */
  .site-header__actions > .btn {
    display: none;
  }
  /* When burger menu is open, show the buttons (stacked) */
  .site-header.is-open .site-header__actions {
    flex-direction: column !important;
    gap: 12px !important;
    padding-top: 14px !important;
    border-top: 1px solid var(--card-bd) !important;
    margin-top: 8px !important;
    margin-right: 0 !important;
  }
  .site-header.is-open .site-header__actions > .btn {
    display: inline-flex;
    width: 100%;
  }
  /* When burger is open, keep the lang dropdown anchored at the top-right
     of the bar (next to the burger), out of the stacked column flow.
     .site-header has position:sticky which acts as the containing block. */
  .site-header.is-open .site-header__actions > .lang-dropdown {
    position: absolute !important;
    top: 14px;
    right: calc(var(--gutter) + 56px);
    margin: 0 !important;
    z-index: 50;
  }
  /* Lang dropdown: keep its compact bar appearance regardless of burger state */
  .site-header__actions > .lang-dropdown {
    width: auto !important;
  }
  .site-header__actions > .lang-dropdown .lang-dropdown__toggle {
    width: auto !important;
    justify-content: flex-start !important;
  }
  .site-header__actions > .lang-dropdown .lang-dropdown__menu {
    position: absolute !important;
    width: auto !important;
    right: 0;
    left: auto;
    margin-top: 6px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  /* Hide the dup-display rule for the burger-open state (no longer needed) */
}
