body {
    background-size: 1700px auto !important;
    background-position: center -600px !important;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #eaeaea !important;
}
body.page-id-22 {
    background-position: center -500px !important;
}

header {
    margin-bottom: 30px;
    max-width:1370px;
    margin-left:auto;
    margin-right:auto;
}

.wp-block-site-title :where(a) {
    font-size:1.7rem
}

.wp-block-navigation[aria-label="Navigering i sidhuvud"] {
    gap: 0.35rem;
    cursor: pointer;
}

.wp-block-navigation[aria-label="Navigering i sidhuvud"] .wp-block-navigation-item__content {
    position: relative;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    text-decoration: none !important;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.wp-block-navigation[aria-label="Navigering i sidhuvud"] .wp-block-navigation-item__content:hover,
.wp-block-navigation[aria-label="Navigering i sidhuvud"] .current-menu-item > .wp-block-navigation-item__content {
    background: rgb(0 74 224 / 0.10);
    color: #004ae0;
}

.wp-block-navigation[aria-label="Navigering i sidhuvud"] .wp-block-navigation-item__content:hover {
    transform: translateY(-1px);
}

/* Dropdown */
.wp-block-navigation[aria-label="Navigering i sidhuvud"] .wp-block-navigation__submenu-container {
    min-width: 230px;
    padding: 0.45rem;
    border: 1px solid rgb(0 74 224 / 0.14);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgb(0 0 0 / 0.14);
    overflow: hidden;
    z-index:200;
}

.wp-block-navigation[aria-label="Navigering i sidhuvud"] .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
}

/* Ikoner fÃ¶re klassnamn i dropdown */
.wp-block-navigation[aria-label="Navigering i sidhuvud"] .wp-block-navigation__submenu-container .wp-block-navigation-item__content::before {
    display: inline-flex;
    width: 1.7em;
    margin-right: 0.35rem;
    font-weight: 700;
    color: #004ae0;
}

.wp-block-navigation[aria-label="Navigering i sidhuvud"] a[href*="/herrsingel/"]::before {
    content: "\2642";
}

.wp-block-navigation[aria-label="Navigering i sidhuvud"] a[href*="/damsingel/"]::before {
    content: "\2640";
}

.wp-block-navigation[aria-label="Navigering i sidhuvud"] a[href*="/herrdubbel/"]::before {
    content: "\2642\2642";
}

.wp-block-navigation[aria-label="Navigering i sidhuvud"] a[href*="/damdubbel/"]::before {
    content: "\2640\2640";
}

.wp-block-navigation[aria-label="Navigering i sidhuvud"] a[href*="/mixdubbel/"]::before {
    content: "\2640\2642";
}

.wp-block-navigation[aria-label="Navigering i sidhuvud"] a[href*="/juniorsingel/"]::before,
.wp-block-navigation[aria-label="Navigering i sidhuvud"] a[href*="/juniordubbel/"]::before {
    content: "\1F3BE";
    font-size: 0.9em;
}

/* Lite snyggare pil */
.wp-block-navigation[aria-label="Navigering i sidhuvud"] .wp-block-navigation__submenu-icon {
    margin-left: -0.35rem;
}

.wp-block-navigation[aria-label="Navigering i sidhuvud"] .has-child:hover .wp-block-navigation__submenu-icon svg {
    transform: rotate(180deg);
}

.wp-block-navigation[aria-label="Navigering i sidhuvud"] .wp-block-navigation__submenu-icon svg {
    transition: transform 0.2s ease;
}

.wp-block-navigation-item__label {
    font-size:1.4rem
}

.wp-block-navigation[aria-label="Navigering i sidhuvud"] .wp-block-navigation__submenu-container {
  min-width:230px !important;  
}

.wp-block-navigation__submenu-container .wp-block-navigation-item__label {
    font-size:1.1rem
}

.wp-block-buttons:has(a[href*=live]) {
    display: none;
}

.km-history {
    max-width: 1100px;
    margin: 0 auto;
}

.km-history-search {
    margin-bottom: 2rem;
    max-width: 420px;
}

.km-history-search br {
    display:none;
}

.km-history-search label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.km-history-search-input {
    min-width: 100%;
    max-width: 320px;
    padding: 0.8rem 1rem;
    border: 1px solid #d7d7d7;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    box-sizing: border-box;
}

.km-history-year {
    margin-bottom: 1rem;
    border: 1px solid #d7d7d7;
    border-radius: 18px;
    overflow: hidden;
    background: rgb(255 255 255 / 0.75);
    backdrop-filter: blur(4px);
}

.km-history-year summary {
    cursor: pointer;
    list-style: none;
    padding: 1.2rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    transition: background 0.2s ease;
    position: relative;
    background: var(--wp--preset--color--tertiary);
    color: var(--wp--preset--color--primary);
}

.km-history-year summary::-webkit-details-marker {
    display: none;
}

.km-history-year summary::before {
    content: "+";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--wp--preset--color--primary);
}

.km-history-year[open] summary::before {
    content: "–";
}

.km-history-year summary:hover {
    background: var(--wp--preset--color--custom-km-winne);
}

.km-year {
    padding: 0 1.5rem 1.5rem;
}

.km-history-section {
    margin-top: 2rem;
}

.km-history-section:first-child {
    margin-top: 1rem;
}

.km-history-section h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgb(0 0 0 / 0.08);
    font-size: 1.2rem;
    line-height: 1.1;
}

.km-history-section-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.km-history-section-list li {
    margin-bottom: 0.8rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    background: rgb(255 255 255 / 0.65);
    line-height: 1.5;
    transition: transform 0.15s ease, background 0.15s ease;
}

.km-history-section-list li:hover {
    transform: translateX(4px);
    background: rgb(255 255 255 / 0.95);
}

.km-history-section-list strong {
    color: var(--wp--preset--color--primary);
}

.km-history-section-list li mark {
    background: #ffe66b;
    padding: 0 0.15em;
    border-radius: 4px;
}

@media (max-width: 768px) {

    .km-history-year summary {
        padding-right: 4rem;
    }

    .km-year {
        padding: 0 1rem 1rem;
    }

    .km-history-section-list li {
        padding: 0.9rem 1rem;
    }

    .km-history-year summary {
        font-size:1rem
    }

    .km-history-section h3 {
        font-size:1rem
    }
}

.km-statistik {
    max-width: 1100px;
    margin: 0 auto;
}

.km-statistik h2 {
    margin-bottom: 1.5rem;
    font-size:1.5rem
}

.km-stat-search {
    margin-bottom: 2rem;
}

.km-stat-search br {
    display: none;
}

.km-stat-search label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.km-stat-search-input {
    width: 100%;
    max-width: 420px;
    padding: 0.8rem 1rem;
    border: 1px solid #d7d7d7;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    box-sizing: border-box;
}

.km-stat-block {
    margin-bottom: 1.5rem;
    padding: 1.4rem;
    border: 1px solid #d7d7d7;
    border-radius: 18px;
    background: var(--wp--preset--color--tertiary);
}

.km-stat-block h3 {
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgb(0 0 0 / 0.08);
    font-size: 1.2rem;
    color: var(--wp--preset--color--primary);
}

h3.triple-crown::after {
    content:" (vunnit herrsingel eller damsingel, herrdubbel eller damdubbel samt mixdubbel samma år)";
    font-size:0.9rem;
    color:#000;
}

h3.triple::after {
    content:" (vunnit herrsingel eller damsingel, herrdubbel eller damdubbel samt mixdubbel någon gång)";
    font-size:0.9rem;
    color:#000;
}

.km-stat-list {
    margin: 0;
    padding: 0;
    list-style: none;
    column-count: 2;
    column-gap: 1rem;
}

.km-stat-list li {
    break-inside: avoid;
    margin-bottom: 0.7rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: rgb(255 255 255 / 0.7);
    line-height: 1.45;
}

.km-stat-list strong {
    color: var(--wp--preset--color--primary);
}

.km-stat-list li:has(.km-stat-rank) {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.km-stat-rank {
    flex: 0 0 1.5rem;
    min-width: 1rem;
    font-weight: 700;
    text-align: right;
    color: #000;
}

.km-stat-text {
    flex: 1;
    min-width: 0;
}

.km-stat-rank.is-duplicate-rank {
    visibility: hidden;
}

.km-statistik.is-searching .km-stat-rank.is-duplicate-rank {
    visibility: visible;
}

.km-integrity-body-text,
.km-integrity-link,
.km-integrity-copyright,
.entry-content .wp-block-list {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.3rem
}

.km-integrity-header,
.entry-content h3.wp-block-heading {
    max-width: 1280px;
    margin: 1.8rem auto 0.6rem;
    color: var(--wp--preset--color--primary);
    font-size: 1.4rem
}

.km-integrity-body-text {
    line-height: 1.7;
}

.entry-content .wp-block-list {
    padding-left: 1.4rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.entry-content .wp-block-list li {
    margin-bottom: 0.35rem;
    line-height: 1.6;
}

.km-integrity-link a {
    color: var(--wp--preset--color--primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.km-integrity-copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgb(0 0 0 / 0.12);
    font-size: 0.95rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .km-integrity-body-text,
    .km-integrity-link,
    .km-integrity-copyright,
    .km-integrity-header,
    .entry-content h3.wp-block-heading,
    .entry-content .wp-block-list {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .km-stat-search-input {
        min-width: 100%;
        max-width: none;
    }

    .km-stat-block {
        padding: 1rem;
    }

    .km-stat-list {
        column-count: 1;
    }
}

.wp-block-navigation__submenu-container li:last-child {
    display: block;
}