/* TierMaker sites bar (sites-bar.php): the same bar every TierMaker subdomain shows under its header. */

.tm-sites {
    background: #141414;
    border-bottom: 1px solid #262626;
    font-family: Arial, Helvetica, sans-serif;
}
.tm-sites-list {
    display: flex;
    align-items: stretch;
    height: 48px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.tm-sites-list::-webkit-scrollbar {
    display: none;
}
.tm-sites-list > li {
    flex-shrink: 0;
    margin-left: 0;
    padding-top:10px
}
@media (min-width: 768px) {
    .tm-sites-list {
        justify-content: center;
        gap: 24px;
    }
}
@media (min-width: 1280px) {
    .tm-sites-list {
        /*gap: 12px;*/
        gap: 60px;
    }
}

/* Each site: its wordmark, then (from 1280px wide) its line. */
.tm-site {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 12px;
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.15s, filter 0.15s;
}
.tm-site:hover {
    opacity: 1;
}
.tm-site:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
@media (min-width: 1280px) {
    .tm-site {
        padding: 0 10px;
    }
}
.tm-site-blurb {
    display: none;
    font-size: 11px;
    white-space: nowrap;
    color: #a1a1aa;
}
@media (min-width: 1280px) {
    .tm-site-blurb {
        display: inline;
    }
}

/* A page of one site ($tmSiteCurrent): that one lit in its colour and underlined, the others greyed until hovered. */
.tm-sites-lit .tm-site {
    opacity: 0.45;
    filter: grayscale(1);
}
.tm-sites-lit .tm-site:hover {
    opacity: 1;
    filter: none;
}
.tm-sites-lit .tm-site.tm-site-on {
    opacity: 1;
    filter: none;
    background: linear-gradient(to top, color-mix(in srgb, var(--tm-site) 20%, transparent), color-mix(in srgb, var(--tm-site) 5%, transparent));
}
.tm-site-on .tm-site-blurb {
    color: #e4e4e7;
}
.tm-site-on::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    border-radius: 2px 2px 0 0;
    background: var(--tm-site);
}

/* The wordmarks. */
.tm-wm {
    display: flex;
    align-items: center;
    line-height: 1;
}
.tm-wm-media {
    gap: 6px;
}
.tm-wm-media-box {
    display: grid;
    place-items: center;
    width: 22px;
    height: 17px;
    border-radius: 4px;
    background: #a98bff;
}
.tm-wm-media-text {
    padding-top: 2px;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 21px;
    letter-spacing: 0.025em;
    color: #b9a2ff;
}
.tm-wm-sports {
    gap: 6px;
}
.tm-wm-sports-bars {
    display: flex;
    gap: 2px;
}
.tm-wm-sports-bars > span {
    display: block;
    width: 3px;
    height: 14px;
    background: #4aa8ff;
    transform: skewX(-18deg);
}
.tm-wm-sports-text {
    font-family: Kanit, Arial, sans-serif;
    font-size: 17px;
    font-weight: 800;
    font-style: italic;
    color: #4aa8ff;
}
.tm-wm-live {
    gap: 6px;
    padding: 2px 6px 1px;
    border: 1.5px solid #ff4d4d;
    border-radius: 6px;
}
.tm-wm-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff4d4d;
}
.tm-wm-live-text {
    font-family: "Barlow Condensed", Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.025em;
    color: #ff6464;
}
.tm-wm-trends {
    gap: 6px;
}
.tm-wm-trends-text {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #3ddc97;
}
.tm-wm-meme {
    padding: 0 8px;
    background: #ffd23f;
    box-shadow: 2px 2px 0 #fff;
    transform: rotate(-4deg);
}
.tm-wm-meme-text {
    font-family: Anton, Impact, sans-serif;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: 0.025em;
    color: #fff;
    -webkit-text-stroke: 1px #000;
    paint-order: stroke fill;
}

/*
 * TierMaker Formats strip (formats-strip.php): the "Show as" bar from
 * TierMaker Sports and Formats, the same sizes and colours. It scrolls
 * sideways when it doesn't fit. Generated with formats-strip.php.
 */
.tm-formats {
    margin: 0 0 40px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.tm-formats a:visited {
    color: #a1a1aa;
}

.tm-formats-list {
    display: flex;
    gap: 4px;
    width: max-content;
    margin: 0;
    padding: 4px;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
}

.tm-format {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 88px;
    box-sizing: border-box;
    padding: 8px 8px 6px;
    border-radius: 6px;
    color: #a1a1aa;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

.tm-formats-list li {
    margin: 0;
}

.tm-format:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.tm-format:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #161615, 0 0 0 4px #fff;
}

.tm-format-on,
.tm-format-on:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.tm-format-top {
    color: #4aa8ff;
}

.tm-format svg {
    display: block;
    flex-shrink: 0;
    overflow: visible;
}

/* The drawings' hover motion, as on the bar: a tile slides into place, a winner grows, a line lights. */
.tm-format .tm-h {
    transition: translate 0.3s ease-out, scale 0.3s ease-out;
}

.tm-format:hover .tm-h {
    translate: var(--tm-tx, 0) var(--tm-ty, 0);
    scale: var(--tm-s, 1);
}

.tm-format .tm-fade {
    opacity: 0;
    transition: opacity 0.3s;
}

.tm-format:hover .tm-fade {
    opacity: 1;
}

.tm-format .tm-fill,
.tm-format .tm-dash {
    transition: fill 0.3s, stroke-dashoffset 0.3s;
}

.tm-format:hover .tm-fill {
    fill: var(--tm-fill);
}

.tm-format:hover .tm-dash {
    stroke-dashoffset: var(--tm-dash);
}
