/* For smaller, one-off styling needs that don't fit elsewhere */
body {
    min-height: 100svh;
}

.user-select-none {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;    /* IE 10+ */
  user-select: none;        /* Standard syntax */
}

#menu-toggle:focus + #menu-toggle-label {
    /* padding: var(--zero-point-five-spacer);
    border: 1px dashed; */
}

.aspect-ratio-1-1 {
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center;
}

.aspect-ratio-16-9 {
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
}

.border-style-solid {
    border-style: solid !important;
}

.border-style-dashed {
    border-style: dashed !important;
}

hr {
    width: 100%;
    background-color: transparent;
    border-width: 1px 0 0 0;
    border-style: dashed;
    color: var(--pc-black);
    margin: 0;
}

.top-2 {
    top: var(--two-spacer);
}

/* Newsletter form styles */
.gh-form {
    .gh-form-input {
        background-color: transparent;
        border-width: 1px 0 1px 1px;
        border-color: inherit;
        border-style: solid;
        padding: var(--zero-point-five-spacer);
    }
    .gh-button {
        background-color: var(--pc-black);
        color: var(--pc-white);
        padding: var(--zero-point-five-spacer);
        text-transform: uppercase;
    }
}

.w-small {
    width: 200px !important;
}
@media screen and (max-width: 781px) {
    .w-small {
        width: 100px !important;
    }
}

.w-small-alt {
    width: 75px !important;
}
@media screen and (max-width: 1079px) {
    .w-small-alt {
        width: 100% !important;
    }
}

.w-medium {
    width: 200px !important;
}
@media screen and (max-width: 1079px) {
    .w-medium {
        width: 100% !important;
    }
}

p:empty {
    display: none;
}

.trending-carousel {
    overflow: scroll;
    .trending-card {
        border: 1px solid;
        width: 300px;
        min-width: 300px;
        &&:not(:last-child) {
            border-right: 0 !important;
        }
        @media screen and (max-width: 781px) {
            width: 250px;
            min-width: 250px;
        }
    }
}

.cta form {
    input {
        padding: 0 0 var(--zero-point-five-spacer) 0;
        outline: none;
        border-radius: 0;
        border-width: 0 0 1px 0;
        border-style: solid;
        border-color: var(--black);
        background-color: transparent;
    }
}

.writes-about {
    /* Show only the first link for each tag; hide later duplicates */
    .has-dark-state-power-color ~ .has-dark-state-power-color,
    .has-dark-bodies-gender-health-color ~ .has-dark-bodies-gender-health-color,
    .has-dark-borders-empire-color ~ .has-dark-borders-empire-color,
    .has-dark-culture-media-education-color ~ .has-dark-culture-media-education-color,
    .has-dark-land-labor-extraction-color ~ .has-dark-land-labor-extraction-color {
        display: none !important;
    }
    /* Extend to SVGs */
    .has-dark-state-power-color svg path {
        fill: var(--dark-yellow);
    }
    .has-dark-bodies-gender-health-color svg path {
        fill: var(--dark-pink);
    }
    .has-dark-borders-empire-color svg path {
        fill: var(--dark-red);
    }
    .has-dark-culture-media-education-color svg path {
        fill: var(--dark-blue);
    }
    .has-dark-land-labor-extraction-color svg path {
        fill: var(--dark-green);
    }
}

.related-sidebar {
    transition: opacity 0.2s ease;
    &&.active {
        opacity: 1 !important;
        pointer-events: all !important;
    }
}