/* Leikurinn.is 1.6 — brand, navigation and footer */
:root {
    --v16-ink: #06170e;
    --v16-ink-soft: #0b2417;
    --v16-green: #42ed83;
    --v16-paper: #f4f5f1;
    --v16-line: #d9dfd8;
}

/* One clear masthead. */
.site-header.v16-site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border: 0;
    background: var(--v16-ink);
    box-shadow: 0 9px 30px rgba(3,18,10,.12);
}

.v16-header-main { border-bottom: 1px solid rgba(255,255,255,.08); background: var(--v16-ink); }
.v16-header-row { display: flex; align-items: center; gap: 26px; height: 72px; }

.v16-brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; color: #fff; }
.v16-brand img { width: 45px; height: 40px; object-fit: contain; }
.v16-brand > span { display: grid; gap: 3px; }
.v16-brand b { color: #fff; font-size: 1.46rem; font-weight: 900; line-height: .95; letter-spacing: -.06em; }
.v16-brand em { color: var(--v16-green); font-style: normal; }
.v16-brand small { color: #8ca095; font-size: .5rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }

.v16-desktop-nav { display: flex; align-items: stretch; justify-content: center; height: 72px; min-width: 0; flex: 1; }
.v16-desktop-nav > a,
.v16-more-menu > summary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 72px;
    padding: 0 11px;
    color: #bfccc4;
    font-size: .72rem;
    font-weight: 760;
    white-space: nowrap;
    cursor: pointer;
}

.v16-desktop-nav > a::after {
    content: "";
    position: absolute;
    right: 11px;
    bottom: 0;
    left: 11px;
    height: 3px;
    background: var(--v16-green);
    transform: scaleX(0);
    transition: transform .18s ease;
}

.v16-desktop-nav > a:hover,
.v16-desktop-nav > a.active,
.v16-more-menu > summary:hover,
.v16-more-menu[open] > summary { color: #fff; }
.v16-desktop-nav > a:hover::after,
.v16-desktop-nav > a.active::after { transform: scaleX(1); }
.v16-more-menu { position: relative; }
.v16-more-menu > summary { list-style: none; }
.v16-more-menu > summary::-webkit-details-marker { display: none; }
.v16-more-menu > summary i { color: var(--v16-green); font-size: .52rem; transition: transform .18s ease; }
.v16-more-menu[open] > summary i { transform: rotate(180deg); }
.v16-more-menu > div {
    position: absolute;
    top: 62px;
    right: 0;
    display: grid;
    width: 238px;
    overflow: hidden;
    border: 1px solid #dfe5df;
    border-radius: 12px;
    background: #fff;
    padding: 7px;
    box-shadow: 0 20px 55px rgba(3,18,10,.2);
}
.v16-more-menu > div a { border-radius: 8px; padding: 10px 11px; color: #26342c; font-size: .69rem; font-weight: 720; }
.v16-more-menu > div a:hover { background: #edf5ef; color: #08783d; }

.v16-header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.v16-search-button,
.v16-menu-button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: #fff;
}
.v16-search-button:hover,
.v16-menu-button:hover { border-color: rgba(66,237,131,.45); background: rgba(66,237,131,.1); color: var(--v16-green); }
.v16-match-button { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; border-left: 1px solid rgba(255,255,255,.13); padding-left: 16px; color: #fff; }
.v16-match-button > i { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--v16-green); color: var(--v16-ink); font-size: .78rem; }
.v16-match-button span { display: grid; gap: 2px; }
.v16-match-button b { font-size: .7rem; line-height: 1; }
.v16-match-button small { color: #83978b; font-size: .47rem; line-height: 1; }
.v16-match-button:hover b { color: var(--v16-green); }
.v16-menu-button { display: none; }

.v16-search { top: 72px; border: 0; background: #fff; box-shadow: 0 18px 40px rgba(3,18,10,.12); }
.v16-search form { min-height: 76px; }
.v16-search input { color: #142219; }
.v16-search form > i { color: #08783d; }
.v16-search button { border-radius: 8px; background: var(--v16-ink); color: #fff; }
.v16-search button:last-child { background: #edf1ed; color: #33423a; }

.v16-mobile-navigation { border-top: 1px solid rgba(255,255,255,.09); background: var(--v16-ink); }
.v16-mobile-navigation .mobile-menu-top { color: #fff; }
.v16-mobile-navigation .mobile-menu-top button { background: rgba(255,255,255,.08); color: #fff; }
.v16-mobile-navigation nav a { background: rgba(255,255,255,.055); color: #fff; }
.v16-mobile-navigation nav a i { color: var(--v16-green); }
.v16-mobile-navigation .mobile-live { background: var(--v16-green) !important; color: var(--v16-ink) !important; }
.v16-mobile-navigation .mobile-live i { color: var(--v16-ink); }

/* Club discovery is part of the home page, not another header. */
.v16-team-newsline { border-bottom: 1px solid var(--v16-line); background: #fff; }
.v16-team-newsline > div { gap: 18px; min-height: 62px; }
.v16-team-label { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; color: #2b382f; font-size: .59rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.v16-team-label > span { width: 7px; height: 7px; border-radius: 50%; background: var(--v16-green); box-shadow: 0 0 0 4px rgba(66,237,131,.14); }
.v16-team-strip { display: flex; align-items: center; gap: 4px; min-width: 0; overflow-x: auto; padding: 7px 34px 7px 0; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg,#000 0,#000 calc(100% - 35px),transparent); mask-image: linear-gradient(90deg,#000 0,#000 calc(100% - 35px),transparent); }
.v16-team-strip::-webkit-scrollbar { display: none; }
.v16-team-strip a { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 42px; border-radius: 9px; padding: 5px 9px; color: #39463e; font-size: .65rem; font-weight: 780; }
.v16-team-strip a:hover { background: #eef5ef; color: #08783d; }
.v16-team-badge { position: relative; display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; overflow: hidden; border: 1px solid #e0e6e0; border-radius: 8px; background: #f2f5f1; }
.v16-team-badge b { color: #477158; font-size: .65rem; }
.v16-team-badge img { position: absolute; inset: 3px; width: 21px; height: 21px; object-fit: contain; background: #f2f5f1; }
.v16-team-badge img.is-unavailable { display: none; }

/* A useful footer with a clear commercial route. */
.site-footer.v16-footer { margin-top: 76px; border-top: 4px solid var(--v16-green); background: var(--v16-ink); color: #fff; }
.v16-footer-main { display: grid; grid-template-columns: 1.35fr .72fr .78fr 1.05fr; gap: clamp(28px,4vw,64px); padding-block: 56px 48px; }
.v16-footer-identity { max-width: 360px; }
.v16-footer-brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.v16-footer-brand img { width: 45px; height: 40px; object-fit: contain; }
.v16-footer-brand span { font-size: 1.38rem; font-weight: 900; letter-spacing: -.055em; }
.v16-footer-brand em { color: var(--v16-green); font-style: normal; }
.v16-footer-identity p { max-width: 330px; margin: 20px 0 0; color: #a1b1a7; font-size: .76rem; line-height: 1.7; }
.v16-footer-mail { display: inline-block; margin-top: 14px; color: var(--v16-green); font-size: .72rem; font-weight: 760; }
.v16-footer-links { display: grid; align-content: start; gap: 11px; }
.v16-footer-links strong { margin-bottom: 5px; color: #fff; font-size: .7rem; font-weight: 820; }
.v16-footer-links a { width: max-content; color: #98aa9f; font-size: .7rem; }
.v16-footer-links a:hover { color: var(--v16-green); }
.v16-footer-contact { align-self: start; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.045); padding: 22px; }
.v16-footer-contact > span { color: var(--v16-green); font-size: .51rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.v16-footer-contact strong { display: block; margin-top: 8px; font-size: 1.05rem; letter-spacing: -.025em; }
.v16-footer-contact p { margin: 9px 0 17px; color: #9daf9f; font-size: .7rem; line-height: 1.55; }
.v16-footer-contact a { display: inline-flex; align-items: center; gap: 13px; color: #fff; font-size: .69rem; font-weight: 790; }
.v16-footer-contact a i { color: var(--v16-green); }
.v16-footer-contact a:hover { color: var(--v16-green); }
.v16-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 65px; border-top: 1px solid rgba(255,255,255,.09); color: #63766a; font-size: .59rem; }
.v16-footer-bottom nav { display: flex; gap: 20px; }
.v16-footer-bottom a { color: #788b7f; }
.v16-footer-bottom a:hover { color: var(--v16-green); }

@media (max-width: 1240px) {
    .v16-header-row { gap: 18px; }
    .v16-desktop-nav > a,
    .v16-more-menu > summary { padding-inline: 8px; font-size: .67rem; }
    .v16-desktop-nav > a::after { right: 8px; left: 8px; }
    .v16-match-button small { display: none; }
}

@media (max-width: 1040px) {
    .v16-desktop-nav { display: none; }
    .v16-header-actions { margin-left: auto; }
    .v16-menu-button { display: grid; }
    .v16-footer-main { grid-template-columns: 1.25fr repeat(2,.7fr); }
    .v16-footer-contact { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 24px; }
    .v16-footer-contact > span { grid-column: 1 / -1; }
    .v16-footer-contact strong { margin: 0; }
    .v16-footer-contact p { margin: 0; }
}

@media (max-width: 700px) {
    .site-header.v16-site-header { position: sticky; }
    .v16-header-row { height: 64px; }
    .v16-brand img { width: 38px; height: 34px; }
    .v16-brand b { font-size: 1.26rem; }
    .v16-brand small { display: none; }
    .v16-search-button,
    .v16-menu-button { width: 37px; height: 37px; }
    .v16-match-button { width: 37px; min-height: 37px; border-left: 0; padding: 0; }
    .v16-match-button > i { width: 37px; height: 37px; }
    .v16-match-button span { display: none; }
    .v16-search { top: 64px; }
    .v16-search form { min-height: 68px; }
    .v16-team-newsline > div { min-height: 56px; gap: 13px; }
    .v16-team-label { display: none; }
    .v16-team-strip { margin-right: -12px; padding-left: 0; }
    .v16-team-strip a { min-height: 39px; padding-inline: 7px; font-size: .61rem; }
    .v16-team-badge { width: 27px; height: 27px; flex-basis: 27px; }
    .v16-team-badge img { width: 19px; height: 19px; }
    .site-footer.v16-footer { margin-top: 55px; }
    .v16-footer-main { grid-template-columns: 1fr 1fr; gap: 34px 24px; padding-block: 42px 36px; }
    .v16-footer-identity { grid-column: 1 / -1; }
    .v16-footer-contact { grid-column: 1 / -1; display: block; }
    .v16-footer-contact strong { margin-top: 8px; }
    .v16-footer-contact p { margin: 9px 0 17px; }
    .v16-footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; padding-block: 18px; }
}

@media (max-width: 420px) {
    .v16-brand b { font-size: 1.16rem; }
    .v16-header-actions { gap: 5px; }
    .v16-footer-main { grid-template-columns: 1fr; }
    .v16-footer-identity,
    .v16-footer-contact { grid-column: auto; }
}
