/* Country selection in the native Estonian and Finnish home pages. */
body:has(#inff-market-atlas) .inff-db-picker,
body:has(#inff-market-atlas) .inff-countrybar .inff-pick:has([data-market]) { display: none; }
#inff-market-atlas {
  box-sizing: border-box;
  width: 100%;
  margin: 6px 0 16px;
  font: 600 14px/1.3 system-ui, sans-serif;
}
#inff-market-atlas > b {
  display: block;
  margin: 0 0 6px 9px;
  font-size: 12px;
  font-weight: 600;
  opacity: .82;
}
#inff-market-atlas > div { display: grid; gap: 2px; }
#inff-market-atlas a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; min-height: 38px;
  color: inherit; text-decoration: none; border-radius: 6px;
}
#inff-market-atlas a:hover { background: #accce32e; }
#inff-market-atlas a[aria-current] { background: #e0effb; color: #123654; font-weight: 700; }
#inff-market-atlas a:focus-visible { outline: 2px solid #79b9f4; outline-offset: 1px; }
#inff-market-atlas i { width: 19px; height: 13px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px #8196a777; }
.db-ee { background: linear-gradient(#398ad1 33.33%,#15191d 33.33% 66.66%,white 66.66%); }
.db-fi, .db-se { background: linear-gradient(to right,transparent 29%,var(--cross) 29% 43%,transparent 43%), linear-gradient(var(--field) 39%,var(--cross) 39% 61%,var(--field) 61%); }
.db-fi { --cross: #193e78; --field: white; }
.db-se { --cross: #ffce38; --field: #086ba2; }
@media (min-width: 721px) and (max-width: 1000px) {
  /* Use the same two-column breakpoint as the Estonian and Swedish shells. */
  body:has(> header .bar #inff-market-atlas) {
    display: grid; grid-template-columns: 196px minmax(0,1fr); grid-template-rows: auto 1fr auto; min-height: 100vh;
  }
  body:has(> header .bar #inff-market-atlas) > .inff-countrybar { grid-column: 1 / -1; }
  body:has(> header .bar #inff-market-atlas) > header { grid-column: 1; grid-row: 2 / 4; }
  header .bar:has(#inff-market-atlas) { display: flex; flex-direction: column; align-items: stretch; padding: 24px 16px; }
  header .bar:has(#inff-market-atlas) > nav { display: grid; gap: 3px; }
  header .bar:has(#inff-market-atlas) .navlink { padding: 8px; }
  body:has(> header .bar #inff-market-atlas) > main { grid-column: 2; grid-row: 2; min-width: 0; }
  body:has(> header .bar #inff-market-atlas) > footer { grid-column: 2; grid-row: 3; }
}
@media (min-width: 721px) and (max-height: 650px) {
  .inff-sidebar:has(#inff-market-atlas) { overflow-y: auto; }
  .inff-sidebar:has(#inff-market-atlas) > nav { flex-shrink: 0; overflow: visible; }
}
@media (max-width: 720px) {
  #inff-market-atlas { margin: 8px 0; text-align: left; }
  #inff-market-atlas > b { margin: 0 0 4px; }
  #inff-market-atlas > div { display: flex; flex-wrap: wrap; gap: 2px; }
  #inff-market-atlas a { gap: 6px; padding: 7px; }
  body:has(#inff-market-atlas) .inff-countrybar { justify-content: flex-end; }
}
