/* Hidden Markets pages (markets/index.html, markets/live.html). Site colours: bg #1A1A1A, cards #282828, borders #3A3A3A */
.mk-wrap { padding: 40px 16px 64px; }
@media (min-width: 640px) { .mk-wrap { padding: 48px 24px 80px; } }
@media (min-width: 1024px) { .mk-wrap { padding: 56px 32px 96px; } }
.mk-label { display: inline-block; margin-bottom: 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #3dc0c8; }
.mk-title { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; }
.mk-sub { margin-top: 14px; max-width: 46rem; color: rgba(255, 255, 255, 0.6); font-size: 15px; }
.mk-updated { color: rgba(255, 255, 255, 0.45); font-size: 12px; }
.mk-error { margin-top: 24px; padding: 16px; border: 1px solid #3A3A3A; background: #282828; color: #f97b6b; }

/* Login screen: covers the page until the password is right */
html.mk-locked { overflow: hidden; }
.mk-login { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: #1A1A1A; }
.mk-login__box { width: 100%; max-width: 400px; padding: 32px; background: #282828; border: 1px solid #3A3A3A; }
.mk-login__title { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; }
.mk-login__text { margin: 12px 0 24px; color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.mk-login__label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.mk-login__input { width: 100%; padding: 12px 14px; background: #1A1A1A; border: 1px solid #3A3A3A; color: #fff; font-size: 16px; outline: none; transition: border-color 150ms; }
.mk-login__input:focus { border-color: #3dc0c8; }
.mk-login__keep { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.7); cursor: pointer; }
.mk-login__keep input { accent-color: #3dc0c8; width: 16px; height: 16px; }
.mk-login__error { margin-top: 14px; font-size: 13px; color: #f97b6b; }
.mk-login__btn { display: inline-flex; align-items: center; margin-top: 22px; padding: 12px 24px; background: #fff; color: #000; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; transition: background-color 150ms; }
.mk-login__btn:hover { background: #3dc0c8; }
.mk-login__btn:disabled { opacity: 0.6; }
.mk-logout { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); transition: color 150ms; }
.mk-logout:hover { color: #3dc0c8; }

/* Cards on the Markets page */
.mk-grid { display: grid; gap: 16px; margin-top: 36px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .mk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .mk-grid { grid-template-columns: repeat(3, 1fr); } }
.mk-card { display: flex; flex-direction: column; padding: 22px; background: #282828; border: 1px solid #3A3A3A; transition: border-color 150ms; }
.mk-card:hover { border-color: #3dc0c8; }
.mk-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mk-card__name { font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
.mk-card__count { font-size: 12px; font-weight: 700; color: #3dc0c8; white-space: nowrap; }
.mk-card h3 { margin: 14px 0 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.mk-list { display: grid; gap: 6px; }
.mk-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.mk-list li span:last-child { margin-left: auto; padding-left: 12px; color: rgba(255, 255, 255, 0.45); font-size: 12px; white-space: nowrap; }

/* Links to the other Markets pages */
.mk-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }

/* Country page: live now and starts soon side by side */
.mk-panels { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .mk-panels { grid-template-columns: 1fr 1fr; } }
.mk-panel { padding: 22px; background: #282828; border: 1px solid #3A3A3A; }
.mk-panel h2 { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.mk-panel h2 span { color: #3dc0c8; }
.mk-h2 { margin-top: 48px; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
.mk-card__empty { color: rgba(255, 255, 255, 0.4); font-size: 14px; }
.mk-card__link { margin-top: auto; padding-top: 18px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.mk-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; }

/* Timeline */
.mk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 32px; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-chip { padding: 8px 14px; border: 1px solid #3A3A3A; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); transition: border-color 150ms, color 150ms; }
.mk-chip:hover { border-color: #3dc0c8; color: #fff; }
.mk-chip.is-on { background: #3dc0c8; border-color: #3dc0c8; color: #000; }
.mk-chip small { margin-left: 6px; opacity: 0.6; }
.mk-year { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mk-year button { width: 34px; height: 34px; border: 1px solid #3A3A3A; color: #fff; transition: border-color 150ms; }
.mk-year button:hover { border-color: #3dc0c8; }
.mk-year span { min-width: 64px; text-align: center; font-weight: 800; font-size: 18px; }
.mk-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.mk-legend span { display: inline-flex; align-items: center; gap: 6px; }

.mk-scroll { margin-top: 20px; overflow-x: auto; border: 1px solid #3A3A3A; background: #202020; }
.mk-tl { position: relative; min-width: 1100px; }
.mk-tl__head { position: sticky; top: 0; z-index: 3; background: #202020; }
.mk-tl__row { display: grid; grid-template-columns: repeat(12, 1fr); border-bottom: 1px solid #3A3A3A; }
.mk-tl__row--q { grid-template-columns: repeat(4, 1fr); }
.mk-tl__row > div { padding: 7px 10px; font-size: 12px; font-weight: 600; border-left: 1px solid #3A3A3A; }
.mk-tl__row > div:first-child { border-left: 0; }
.mk-tl__row--m > div { text-align: center; color: rgba(255, 255, 255, 0.8); }
.mk-tl__body { position: relative; padding-bottom: 12px; }
/* Month lines behind the bars */
.mk-tl__body::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(to right, transparent 0, transparent calc(100% / 12 - 1px), rgba(255, 255, 255, 0.05) calc(100% / 12 - 1px), rgba(255, 255, 255, 0.05) calc(100% / 12)); pointer-events: none; }
.mk-tl__group { position: relative; padding: 18px 10px 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #3dc0c8; }
.mk-tl__group a:hover { color: #fff; }
.mk-tl__body--one { padding-top: 12px; }
.mk-tl__group small { margin-left: 8px; color: rgba(255, 255, 255, 0.45); letter-spacing: 0.06em; }
.mk-tl__lane { position: relative; height: 40px; }
.mk-tl__item { position: absolute; top: 4px; height: 32px; min-width: 6px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 3px; color: #141414; font-size: 12.5px; font-weight: 600; line-height: 1.1; white-space: nowrap; overflow: hidden; }
.mk-tl__item.is-done { filter: brightness(0.55) saturate(0.85); }
.mk-tl__item i { font-size: 11px; }
.mk-tl__item span { overflow: hidden; text-overflow: ellipsis; }
/* Bars that run on from last year or into next year */
.mk-tl__item.cut-start { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.mk-tl__item.cut-end { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.mk-tl__today { position: absolute; top: 0; bottom: 0; z-index: 2; width: 2px; margin-left: -1px; background: #3dc0c8; box-shadow: 0 0 10px rgba(61, 192, 200, 0.6); pointer-events: none; }
.mk-tl__today::before { content: ''; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: #3dc0c8; }
.mk-tl__none { padding: 28px 10px; color: rgba(255, 255, 255, 0.45); font-size: 14px; }

/* "Website" in the top bar: not on phones, where the bar is full */
.mk-website { display: none; }
@media (min-width: 640px) { .mk-website { display: inline; } }
