.subhead-btn::before,
.subhead-btn-r::before {
    content: "↗";
    margin-right: 8px;
}

.subhead-btn:hover::before,
.subhead-btn-r:hover::before {
    content: "→";
}

.notice-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--accent-color);
    color: var(--blk-text);
    text-align: center;
    padding: 8px 13px;
    font-size: var(--text-md);
    z-index: 9998;
    border-bottom: var(--border-width) solid var(--accent-color);
    box-shadow: inset 0 calc(-1 * var(--border-width)) 0 0 var(--main-bg),
    inset 0 calc(-1 * (var(--border-width) + 2px)) 0 0 #00000000;
    height: fit-content; /* Set explicit height */
    min-height: 40px;
    box-sizing: border-box;
    overflow: hidden;
    outline: 2px solid var(--main-bg);
    cursor: default;
}

.dismiss-link {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dismiss-link:hover {
    background-color: var(--main-bg);
    color: var(--accent-color);
    text-decoration: none;
    padding: 0 4px;
    margin: 0 -4px;
}

.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("/_databanks/supp/tear.png");
    background-size: auto;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 10000;
    display: none;
    isolation: isolate;
    filter: none !important;
    image-rendering: pixelated;
}

@keyframes scan {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 20px;
    }
}

#password-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    isolation: isolate;
    filter: none !important;
    background: #ffee00;
    padding: 0 var(--site-padding);
    border: var(--border-width) solid #ffee00;
    box-shadow: inset 0 0 0 var(--border-width) #000000;
    outline: 2px solid #000000;
    height: 64px;
    width: calc(100% - 2 * var(--site-padding));
    max-width: 1600px;
    box-sizing: border-box;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.password-title {
    color: #000000;
    font-size: var(--text-md);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.password-container {
    display: flex;
    height: 40px;
    flex: 1;
}

.devk {
    display: contents;
}

.hover-effect {
    display: none;
    position: absolute;
    width: 1000px;
    height: 1000px;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    background: radial-gradient(
            circle,
            color(from var(--accent-color) srgb r g b / 0.5) 0%,
            transparent 50%
    );
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    transition: opacity 0.2s ease;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 100%;              /* force within container */
    aspect-ratio: 2 / 1;         /* YouTube’s natural aspect ratio 2/1 */
    overflow: hidden;
    background: #000;             /* fallback background */
    box-sizing: border-box;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.text-field.video-container {
    padding: 0;
    background: transparent;
    display: block;
    position: relative;
}

.text-field.video-container::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 var(--border-width) var(--main-bg);
    z-index: 1;
}

#video-section .text-container {
    display: flex;
    justify-content: space-between;
    gap: var(--element-gap);
    margin-bottom: var(--element-gap);
}

#video-section .text-container:last-child {
    margin-bottom: 0;
}

#video-section .text-item {
    flex: 0 0 calc(50% - (var(--element-gap) / 2));
    min-width: 0; /* preventing flex overflow */
    box-sizing: border-box;
}

#transition-fill {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    pointer-events: none;
}

#loading-anim {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: none;
    opacity: 1;
    transition: opacity 0.5s steps(2, end);
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

#loading-anim img {
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

#transition-blocker {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: transparent;
    display: none;
    pointer-events: none;
    touch-action: none;
}

#transition-blocker.active {
    display: block;
    pointer-events: all;
}

#accessibility-popup {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    isolation: isolate;
    filter: none !important;
    padding: 0 var(--site-padding);
    background: #ffee00;
    border: var(--border-width) solid #ffee00;
    box-shadow: inset 0 0 0 var(--border-width) #000000;
    outline: 2px solid #000000;
    height: 64px;
    width: calc(100% - 2 * var(--site-padding));
    max-width: fit-content;
    box-sizing: border-box;
    z-index: 10001;
}

#accessibility-popup .k-selector-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--element-gap);
    height: 100%;
}

#accessibility-popup .color-picker-group {
    display: flex;
    align-items: center;
}

#accessibility-popup .button-group {
    display: flex;
    flex-direction: row;
    gap: var(--element-gap);
}

#accessibility-popup .btn {
    height: 40px;
    white-space: nowrap;
}

#loading-progress {
    position: fixed;
    top: var(--site-padding);
    left: var(--site-padding);
    z-index: 10000;
    color: #ff0000;
    font-size: var(--text-md);
    text-align: left;
}

#javascript-progress {
    position: fixed;
    top: var(--site-padding);
    right: var(--site-padding);
    z-index: 10000;
    color: #ff0000;
    font-size: var(--text-md);
    text-align: right;

    visibility: hidden;
    height: 0;
    overflow: hidden;
    pointer-events: none;

    animation: snapIn 0s linear 5s forwards;
}

@keyframes snapIn {
    to {
        visibility: visible;
        height: auto;
        overflow: visible;
        pointer-events: auto;
    }
}

#common-elements {
    position: relative;
    z-index: 1000;
}

.loading-placeholder {
    display: none;
}

body:not(.common-loaded) #site-container {
    opacity: 1;
    pointer-events: all;
}