@import url("./consent.css");

#klaro .cm-btn:active:not(:disabled),
#klaro .cookie-notice .cn-body .cn-buttons button.cm-btn:active:not(:disabled) {
    min-height: 0;
    border-bottom-width: 2px;
    margin-bottom: 2px;
}

.page-home .home-snow {
    position: fixed;
    inset: 0;
    z-index: 20;
    overflow: hidden;
    pointer-events: none;
}
.home-snow span {
    position: absolute;
    top: -24px;
    width: var(--snow-size);
    height: var(--snow-size);
    animation: home-snowfall linear infinite;
}
.home-snow i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #e2edf3;
    box-shadow: 0 0 4px rgb(95 136 149 / 25%);
    animation: home-snow-swirl var(--snow-swirl-time) ease-in-out infinite alternate;
    animation-delay: var(--snow-phase);
}
.home-snow .snow-depth-0 {
    opacity: 0.35;
}
.home-snow .snow-depth-1 {
    opacity: 0.6;
}
.home-snow .snow-depth-2 {
    opacity: 0.85;
}
.home-snow i.snow-crystal {
    border-radius: 0;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bfd8e4' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M12 1v22M2.5 6.5l19 11M2.5 17.5l19-11M8.5 3.5L12 7l3.5-3.5M8.5 20.5L12 17l3.5 3.5M3 10l4.8-1.3L6.5 4M17.5 20l-1.3-4.7L21 14M3 14l4.8 1.3L6.5 20M17.5 4l-1.3 4.7L21 10'/%3E%3C/svg%3E");
    box-shadow: none;
}
.home-snow.is-paused span,
.home-snow.is-paused i {
    animation-play-state: paused;
}
@keyframes home-snowfall {
    from { transform: translate3d(0, -24px, 0); }
    to { transform: translate3d(var(--snow-drift), calc(100vh + 48px), 0); }
}
@keyframes home-snow-swirl {
    from { transform: translateX(calc(-1 * var(--snow-sway))) rotate(-35deg); }
    to { transform: translateX(var(--snow-sway)) rotate(55deg); }
}
@media (prefers-reduced-motion: reduce) {
    .home-snow {
        display: none;
    }
}

@font-face {
	font-family: "Mona Sans";
	src: url("../../assets/fonts/Mona-Sans.woff2") format("woff2 supports variations"), url("../../assets/fonts/Mona-Sans.woff2") format("woff2-variations");
	font-weight: 200 900;
	font-stretch: 75% 125%;
	unicode-range: U+0000-00FF, U+0100-024F;
}
@font-face {
    font-family: "Rubik";
    src: url("../../assets/fonts/Rubik.ttf") format("truetype");
    font-weight: 200 900;
    font-stretch: 75% 125%;
	unicode-range: U+0000-00FF, U+0100-024F;
}
@font-face {
    font-family: "IBM Plex Sans";
    src: url("../../assets/fonts/IBMPlexSans.ttf") format("truetype");
    font-weight: 200 900;
    font-stretch: 75% 125%;
}
@font-face {
    font-family: "Whisper";
    src: url("../../assets/fonts/Whisper-Regular.ttf") format("truetype");
    font-display: swap;
}
html {
    overflow-x: hidden;
}
body {
	font-family: "Rubik", "IBM Plex Sans", "Mona Sans", sans-serif;
    margin: 0;
    width: 100%;
    /* Keep decorative pieces from widening the viewport on tablets. */
    overflow-x: clip;
    color: #213a43;
    background-color: white;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
#wrapper {
    margin: 125px 25px 125px 25px;
    display: flex;
    flex-direction: column;
    max-width: 600px;
}
#wiki-wrapper {
    margin: 125px 25px 0px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.big-title {
    font-size: 35px;
    font-weight: 800;
    font-stretch: ultra-expanded;
    align-self: center;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 30px;
}
.small-paragraph {
    font-size: 15px;
    font-weight: 400;
    margin: 10px 0 10px 0;
}
.paragraph {
    font-size: 20px;
    font-weight: 400;
    margin: 10px 0 10px 0;
    max-width: 1000px;
}
.center-text {
    text-align: center;
}
.greyed {
    color: #bababa;
}
.slim {
    font-weight: 300;
}
.extra-slim {
    font-weight: 200;
}
.gradient-text {
    text-shadow: 0px 3px 0px #213a43;
}
#product-container {
	display: none;
    padding: 20px;
    background-color: #f1f1f1;
    border: 1px solid grey;
    border-radius: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.product {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 5px;
    border: 1px solid #213a43;
    margin-bottom: 25px;
    padding: 10px;
    background-color: #ffffff;
    border-bottom-width: 5px;
    border-right-width: 3px;
    color: #213a43;
}
.product .container {
    display: flex;
    flex-direction: row;
    gap: 25px;
}
.product .right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product .image {
    border-radius: 5px;
    border: 3px solid #213a43;
    border-bottom-width: 6px;
    border-right-width: 4px;
}
.product .title {
    font-size: 20px;
    font-weight: 700;
    font-stretch: ultra-expanded;
    padding: 15px;
    border-bottom: 3px solid;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3px;
}
.product .description {
    font-weight: 600;
    font-style: italic;
}
.product .action-btn {
    background-color: white;
    width: fit-content;
    padding: 10px;
    border-radius: 5px;
    font-weight: 800;
    font-stretch: extra-expanded;
    text-decoration: none;
    color: #213a43;
    border: 2px solid #213a43;
    border-bottom-width: 5px;
    border-right-width: 3px;
}
.product .disclaimer {
	border-left: 2px solid #693f42;
    padding-left: 10px;
    color: #3b2527;
    padding: 10px;
    font-weight: 400;
}
.product .discount {
    color: #d95864;
    text-shadow: 0px 2px 0px #751414;
}
.product .originalPrice {
	text-decoration: line-through;
    font-weight: 300;
}
.product .price {
	font-weight: 600;
}

.get-deal-btn {
    background-color: white;
    height: fit-content;
    font-size: 20px;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    border: 2px solid rgb(66 127 59);
    border-bottom-width: 5px;
    margin-top: 10px;
    margin-bottom: 20px;
    background-color: #2799209e;
    display: flex;
    justify-content: center;
}

#wiki-section {
    margin: 20px;
    text-align: center;
}
.animation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90vw;
    height: 100%;
    max-width: 1200px;
    overflow: hidden;
}
#lottie-animation {
    height: 600px;
}
.data-transfer {
    margin-top: 20px;
    font-size: 18px;
    opacity: 0;
    animation: fadeIn 1s forwards;
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
.tweaking {
    animation: tweak 3s infinite ease-in-out;
}
@keyframes tweak {
    0%   { transform: rotate(0deg) scale(1); }
    5%   { transform: rotate(-2deg) scale(1.02); }
    10%  { transform: rotate(3deg) scale(1.03); }
    15%  { transform: rotate(-1deg) scale(1.02); background-color: rgba(179, 227, 255, 0.25); }
    20%  { transform: rotate(1deg) scale(1.01); }
    25%  { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(0deg) scale(1); } 
}
.page-home .home-actions .tweaking {
    position: relative;
    isolation: isolate;
    animation: none;
}
.page-home .home-actions .tweaking:active {
    /* Draw the shorter border without changing the flex item's layout. */
    border-bottom-color: transparent;
    background-image: linear-gradient(#213a43, #213a43);
    background-origin: border-box;
    background-clip: border-box;
    background-position: center bottom 3px;
    background-size: 100% 2px;
    background-repeat: no-repeat;
    transform: translateY(3px);
}
.page-home .home-actions .tweaking::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 8px;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, #272727, transparent) 0 0 / 45% 2px no-repeat,
        linear-gradient(90deg, transparent, #272727, transparent) 100% 100% / 45% 2px no-repeat,
        linear-gradient(0deg, transparent, #272727, transparent) 0 100% / 2px 45% no-repeat,
        linear-gradient(0deg, transparent, #272727, transparent) 100% 0 / 2px 45% no-repeat;
    animation: home-action-outline 2.5s ease-in-out infinite alternate;
}
@keyframes home-action-outline {
    to { background-position: 100% 0, 0 100%, 0 0, 100% 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .page-home .home-actions .tweaking::after {
        display: none;
    }
}
.markdown-section-sub {
    padding: 50px clamp(20px, 6vw, 100px) !important;
}
.markdown-section blockquote, .markdown-section code {
    color: #4f6881;
}
.markdown-section a {
    color: rgb(26 114 165);
}
.markdown-section em {
    color: #34495e;
}
.markdown-section .tactical-legend { list-style: none; padding: 0; }
.tactical-legend li { display: flex; align-items: flex-start; gap: 16px; margin: 20px 0; }
.tactical-legend-icons {
    display: flex; align-items: center; justify-content: center; gap: 4px; flex: 0 0 80px;
    min-height: 48px; color: #8fc6b2; background: #eef1ed; border-radius: 4px;
}
.tactical-legend-icons svg { display: block; width: 36px; height: 36px; }
.tactical-legend p { margin: 4px 0 0; }
#pixel-tactic-positions code { overflow-wrap: anywhere; }
.tip {
    border-left: 5px solid #213a43;
    padding-left: 10px;
    padding: 20px;
    border-radius: 5px;
    border: 2px solid #213a43;
    border-left: 5px solid #213a43;
}
.tip.warning {
    border-color: darkred;
    color: darkred;
    background-color: rgb(255 0 0 / 2%);
}
h1 {
    padding: 20px;
    font-stretch: expanded;
    align-items: flex-start;
    font-stretch: ultra-expanded;
    font-weight: 900;
    font-family: "Mona Sans";
    font-size: 35px;
    margin: 0;
    margin-bottom: 10px;
    padding-left: 0;
}
h1 span {
    align-items: flex-start;
    font-stretch: ultra-expanded;
    font-weight: 800;
    font-family: "Mona Sans";
}
h1.page-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}
h1.page-heading > :first-child {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: inherit;
}
h1.page-heading > :last-child {
    flex: 0 0 auto;
}
h1.page-heading > .bi {
    width: 36px;
    height: 36px;
}
h1:is(#tools, #leela2onnx) > .bi-gear::before {
    -webkit-text-stroke: 0.8px currentColor;
}
h1#game-exporter > .bi-download::before {
    -webkit-text-stroke: 0.8px currentColor;
}
h1.page-heading.icon-first > :last-child {
    order: -1;
}
@media (max-width: 768px) {
    h1.page-heading > :last-child {
        order: -1;
    }
}
img {
    border-radius: 7px;
    max-width: 99%;
    object-fit: scale-down;
    object-position: center;
}
.site-nav-icon {
    flex: 0 0 auto;
}
:is(.header-nav, .mobile-nav) a > :is(.bi, .site-nav-icon) {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    margin: 0;
}
:is(.header-nav, .mobile-nav) :is(.bi-download, .bi-clipboard, .bi-lightbulb, .bi-gear, .bi-heart, .bi-chat-right, .bi-code-slash)::before {
    -webkit-text-stroke: 0.45px currentColor;
}
:is(.header-nav, .mobile-nav) .site-nav-icon {
    stroke-width: 2.3;
}
.bi {
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sidebar-toggle {
    width: 75px !important;
    height: 75px;
    display: flex;
    justify-content: center;
    background-color: rgb(255 255 255 / 90%);
    align-items: center;
    border-radius: 0 25px 0 0;
    padding: 0;
}
.sidebar-toggle span {
    margin-bottom: 4px;
    border-radius: 20px;
    width: 30px;
    height: 3px;
}
.sidebar ul li a {
    align-items: flex-start;
    font-stretch: ultra-expanded;
    font-family: "Mona Sans";
    font-size: 20px;
}
.sidebar ul li.active>a {
    font-weight: 900;
    background-color: #213a4303;
}
.anchor span {
    color: var(--theme-color);
}
a {
    color: var(--theme-color);
}
.search {
    margin-bottom: 0px !important;
}
input {
    align-items: flex-start;
    font-stretch: ultra-expanded;
    font-family: "Mona Sans";
    font-size: 15px;
}
main {
    box-sizing: border-box;
    font-size: 16px;
    max-width: 1100px;
    font-size: 18px;
    width: 100%;
    border-left: 7px solid var(--theme-color);
    background-color: #ffffff;
    background-image:
      linear-gradient(45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.02) 75%, rgba(0, 0, 0, 0.02)),
      linear-gradient(45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.02) 75%, rgba(0, 0, 0, 0.02));
    background-size: 122.4px 122.4px;
    background-position: 0 0, 61.2px 61.2px;
    margin-top: 120px;
    border-radius: 10px 10px 0 0;
}
body {
    background-color: #c5b8a575;
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.05) 75%, rgba(0, 0, 0, 0.05)), linear-gradient(45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.05) 75%, rgba(0, 0, 0, 0.05));
    background-size: 122.4px 122.4px;
    background-position: 0 0, 61.2px 61.2px;
}
.markdown-section {
    background: linear-gradient(to bottom, transparent 20px, #fcfeff 300px);
}
.markdown-section section {
    margin: 0 50px;
}
.markdown-section section:first-of-type {
    margin: 20px 20px 0;
}
.page-home .markdown-section > .main-first-section {
    margin: 70px 50px 0;
}
.markdown-section section:last-of-type {
    padding-bottom: 50px;
}
.sidebar ul li.active>a {
    border-right: 3px solid;
}
ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}
main {
    border-left: 3px solid #213a43;
    border-right: 3px solid #213a43;
}
.acas-logo-main {
    font-size: 32px;
    display: flex;
    font-weight: 900;
    font-stretch: expanded;
    font-family: "Mona Sans";
    text-decoration: none;
}
.acas-logo-main span {
    font-size: 0.6em;
    font-weight: 600;
}
.fancy-btn:hover {
    background-color: rgb(0 0 0 / 5%);
}
.fancy-btn:active {
    border: 2px solid black;
    transform: translateY(3px);
}
header .fancy-btn:active {
    margin-bottom: 3px;
}
/* Keep the pressed decoration from intercepting nested links. */
.fancy-btn:active::after {
    content: '';
    position: absolute;
    inset: -12px;
    pointer-events: none;
}
header {
    background-color: #ffffff;
    color: #213a43;
    padding: 20px;
    border-bottom: 5px solid #213a43;
    border-top: 2px solid #213a43;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    border-radius: 8px 8px 0 0;
    position: sticky;
    top: 0;
    z-index: 30;
    transition: padding 0.2s ease, border-bottom-width 0.2s ease, margin-bottom 0.2s ease;
}
header.is-stuck {
    border-radius: 0;
}
@media (min-width: 769px) {
    header.is-stuck {
        padding: 5px 20px;
        border-bottom-width: 2px;
        margin-bottom: 33px;
    }
    header.is-stuck a {
        font-size: 18px;
    }
}
/* Main page, mobile only: hide the header until the page is scrolled, with no JS. Browsers without scroll-driven animations keep it visible. */
@supports (animation-timeline: scroll()) {
    @media (max-width: 768px) {
        .page-home > main > header {
            animation: home-header-reveal linear both;
            animation-timeline: scroll(root);
            animation-range: 20px 100px;
        }
    }
}
@keyframes home-header-reveal {
    from {
        visibility: hidden;
        opacity: 0;
        transform: translateY(-12px);
        filter: blur(4px);
    }
    to {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
.large-intro {
    font-size: 70px;
    font-weight: 900;
    font-stretch: ultra-expanded;
    font-family: 'Mona Sans';
    letter-spacing: -0.01em;
    text-align: center;
    align-items: center;
    padding: 40px;
    color: #213a43;
    margin-bottom: 0;
    padding-bottom: 0;
    position: relative;
    text-shadow:
        0 -1px 0 #ffffff,
        0 1px 0 #9dbfca,
        0 2px 0 #96b9c4,
        0 3px 0 #8fb3be,
        0 4px 0 #88adb9,
        0 5px 0 #81a7b3,
        0 6px 0 #7aa1ad,
        0 7px 0 #213a43,
        0 8px 0 #213a43,
        0 14px 14px rgba(33, 58, 67, 0.22);
}
.large-intro-tagline {
    display: block;
    visibility: hidden;
    margin-top: 0;
    margin-bottom: -30px;
    font-family: "Whisper", sans-serif;
    font-size: 48px;
    line-height: 1.15;
    white-space: nowrap;
    text-align: center;
    -webkit-text-stroke: 0.5px #b07a10;
    background: linear-gradient(110deg, #b8801a 0%, #f6d365 20%, #fffbe0 38%, #e0a820 52%, #f6d365 72%, #b8801a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* A moderate shadow stack adds some depth without a heavy 3D look. */
    filter:
        drop-shadow(0 1px 0 #8a5a00)
        drop-shadow(0 1.5px 0 #7a4f00)
        drop-shadow(0 4px 4px rgb(33 58 67 / 30%));
    animation: goldShine 4s linear infinite;
}
.large-intro-tagline.font-ready {
    visibility: visible;
}
@keyframes goldShine {
    to {
        background-position: -200% center;
    }
}
@media (prefers-reduced-motion: reduce) {
    .large-intro-tagline {
        animation: none;
    }
}
.large-intro-mobile {
    font-size: 20vw;
    font-weight: 900;
    font-stretch: expanded;
    color: #213a43;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    margin-bottom: 0;
    font-family: 'Mona Sans';
    display: none;
    position: relative;
    margin-top: 60px;
    letter-spacing: -0.01em;
    text-shadow:
        0 -1px 0 #ffffff,
        0 1px 0 #9dbfca,
        0 2px 0 #96b9c4,
        0 3px 0 #8fb3be,
        0 4px 0 #88adb9,
        0 5px 0 #81a7b3,
        0 6px 0 #7aa1ad,
        0 7px 0 #213a43,
        0 8px 0 #213a43,
        0 14px 14px rgba(33, 58, 67, 0.22);
}
.large-intro-mobile::after,
.large-intro::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    padding: inherit;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    pointer-events: none;
    text-shadow: none;
    /* A text-shaped copy that is only visible where the light band passes. */
    background:
        linear-gradient(105deg, transparent 44%, rgb(255 255 255 / 95%) 49%, rgb(255 244 200 / 100%) 50%, rgb(255 255 255 / 95%) 51%, transparent 56%),
        linear-gradient(105deg, transparent 30%, rgb(160 235 255 / 55%) 42%, rgb(255 255 255 / 80%) 50%, rgb(255 215 120 / 55%) 58%, transparent 70%);
    background-size: 250% 100%;
    background-repeat: no-repeat;
    background-position: 130% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 6px rgb(255 255 255 / 70%));
    animation: glareMove 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes glareMove {
    0% {
        background-position: 130% 0;
    }
    55%, 100% {
        background-position: -30% 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .large-intro-mobile::after,
    .large-intro::after {
        opacity: 0;
    }
}
.large-intro-desc {
    font-size: 40px;
    font-weight: 900;
    font-stretch: normal;
    text-align: center;
    font-family: "Mona Sans";
    margin-top: 0;
    padding-top: 0;
    text-shadow:
        0 -1px 0 #ffffff,
        0 1px 0 #c4d9e0,
        0 2px 0 #213a43,
        0 4px 4px rgba(33, 58, 67, 0.08);
}
.large-intro span {
    font-weight: 900;
}
header a {
    font-size: 20px;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #213a43;
    border-bottom-width: 5px;
    text-decoration: none;
    transition: font-size 0.2s ease;
}
.bordered {
    border: 2px solid #213a43;
    border-bottom-width: 5px;
    border-radius: 5px;
    padding: 10px;
}
@font-face {
    font-family: "Open Sans";
    src: url("../fonts/OpenSans-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-display: swap;
}
.contribution-options {
    display: grid;
    gap: 24px;
    margin: 24px 0;
}
.contribution-option {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}
.contribution-number {
    font-family: "Open Sans", sans-serif;
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}
.contribution-option p {
    margin: 0;
}
.contribution-option p + p {
    margin-top: 8px;
}
.contribution-share {
    margin-top: 8px;
    padding: 4px 10px;
    border: 1px solid rgb(33 58 67 / 20%);
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.stats-container {
    padding: 30px;
    display: flex;
    justify-content: center;
    position: relative;
}
.stats-container div {
    display: flex;
    width: fit-content;
    height: fit-content;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    justify-content: space-around;
}
.stats-container div div {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
}
.stats-container h2 {
    font-size: 40px;
    margin: 0;
}
/* Mobile: single centred column, number above label. */
@media (max-width: 768px) {
    .markdown-section section.stats-container {
        padding: 24px 16px;
        margin-top: 20px;
    }
    .stats-container > div {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        width: 100%;
        gap: 18px;
    }
    .stats-container > div > div {
        align-items: center;
        text-align: center;
    }
    .stats-container h2 {
        font-size: clamp(32px, 10vw, 46px);
    }
}
footer {
    background-color: #182a30;
    box-sizing: border-box;
    padding: 48px 0 32px;
    container-type: inline-size;
    font-size: 16px;
    color: white;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    aspect-ratio: 8;
    background-image: conic-gradient(#213a43 25%, #374e56 0 50%, #213a43 0 75%, #374e56 0);
    background-size: 12.5% 100%;
    background-position: left bottom;
    pointer-events: none;
}
.site-footer-content {
    position: relative;
    width: calc(100% - 100px);
    margin-top: 12.5cqw;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.site-footer-brand {
    font-family: "Mona Sans", sans-serif;
    font-size: 46px;
    font-weight: 900;
    font-stretch: extra-expanded;
    text-decoration: none;
    align-self: flex-start;
}
.site-footer-intro p {
    color: #b7c8ce;
    margin: 12px 0 0;
}
.site-footer-intro, .site-footer-links, .site-footer-bottom > a {
    position: relative;
    z-index: 2;
}
.site-footer-links {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: start;
    gap: clamp(48px, 7vw, 100px);
}
.site-footer-links > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.site-footer-links h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}
footer a {
    color: #d7e3e7;
    text-decoration: none;
}
footer a:hover {
    color: white;
    text-decoration: underline;
}
footer .site-footer-brand:hover {
    text-decoration: none;
}
.site-footer-bottom {
    position: relative;
    margin-top: 0;
    padding-top: 24px;
    color: #b7c8ce;
}
.site-footer-bottom::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: rgb(255 255 255 / 15%);
}
.site-footer-knight {
    --footer-piece: url("../images/pieces/staunty/wN.svg");
    --footer-piece-top: -12.31%;
    --footer-piece-span: 0.7649;
    position: absolute;
    z-index: 1;
    right: -220px;
    top: calc(12.5cqw - 24px);
    transform: translate(var(--footer-piece-right, 0%), var(--footer-piece-top));
    width: auto;
    height: max(clamp(380px, 55vw, 700px), calc((100% - 12.5cqw + 104px) / var(--footer-piece-span)));
    aspect-ratio: 1;
    background: #182a30;
    -webkit-mask: var(--footer-piece) center / contain no-repeat;
    mask: var(--footer-piece) center / contain no-repeat;
    pointer-events: none;
}
.site-footer-knight::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--footer-piece) center / contain no-repeat;
    opacity: 0.07;
}
.site-footer-knight[data-piece="pawn"] { --footer-piece: url("../images/pieces/staunty/wP.svg"); --footer-piece-top: -23.03%; --footer-piece-span: 0.6577; --footer-piece-right: 15%; }
.site-footer-knight[data-piece="rook"] { --footer-piece: url("../images/pieces/staunty/wR.svg"); --footer-piece-top: -17.84%; --footer-piece-span: 0.7096; --footer-piece-right: 10%; }
.site-footer-knight[data-piece="bishop"] { --footer-piece: url("../images/pieces/staunty/wB.svg"); --footer-piece-top: -11.54%; --footer-piece-span: 0.7726; --footer-piece-right: 10%; }
.site-footer-knight[data-piece="queen"] { --footer-piece: url("../images/pieces/staunty/wQ.svg"); --footer-piece-top: -10.01%; --footer-piece-span: 0.7879; }
.site-footer-knight[data-piece="king"] { --footer-piece: url("../images/pieces/staunty/wK.svg"); --footer-piece-top: -6.72%; --footer-piece-span: 0.8208; }
@media (max-width: 600px) {
    footer::before {
        aspect-ratio: 4;
        background-size: 25% 100%;
    }
    .site-footer-knight {
        width: 520px;
        height: 520px;
        right: -260px;
        top: auto;
        bottom: -100px;
        transform: none;
    }
    .site-footer-knight:is([data-piece="rook"], [data-piece="bishop"], [data-piece="pawn"]) {
        right: -200px;
    }
    .site-footer-knight[data-piece="queen"] {
        right: -230px;
    }
    footer {
        padding: 36px 0 28px;
    }
    .site-footer-content {
        width: calc(100% - 48px);
        margin-top: 25cqw;
        gap: 40px;
    }
    .site-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 24px;
    }
}
dt {
    border-bottom: 1px solid grey;
}
dd {
    margin-bottom: 20px;
    border-left: 1px solid grey;
    padding-left: 10px;
}
header a:has(.bi, .site-nav-icon) {
    display: flex;
    gap: 5px;
    width: fit-content;
    align-items: center;
    justify-content: center;
    font-family: "Mona Sans";
    font-weight: 600;
}
header div:nth-of-type(2) {
    display: flex;
    gap: 5px;
}
th a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-stretch: ultra-expanded;
    font-size: 16px;
}
.page-home th {
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-home th a {
    font-family: "Mona Sans", "Rubik", "IBM Plex Sans", sans-serif;
    font-stretch: extra-expanded;
    font-size: 16px;
    font-weight: 800;
}
.page-home .home-actions a {
    color: #272727;
}
th a .bi {
    -webkit-text-stroke: 1px currentColor;
}
tr {
    display: flex;
    gap: 10px;
    font-family: "Mona Sans";
}
@media (min-width: 769px) and (max-width: 890px) {
    .page-home .markdown-section section > table tr {
        flex-wrap: wrap;
    }
    .page-home .markdown-section section > table th {
        box-sizing: border-box;
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
    }
    .page-home .markdown-section section > table th a {
        justify-content: center;
        text-align: center;
    }
}
article {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
}
.content {
    position: relative;
}
main > .content {
    padding-top: clamp(35px, 4vw, 40px);
}
.markdown-section section.usage-finder.usage-finder {
    margin: 0;
}
.usage-finder {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 27;
    box-sizing: border-box;
    width: min(560px, calc(100vw - 24px));
    transform: translateX(-50%);
    background-color: #ffffff;
    border: 2px solid #213a43;
    border-bottom-width: 5px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(33, 58, 67, 0.18);
}
.usage-finder:not(.is-open) {
    width: auto;
}
.usage-finder-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-family: "Mona Sans";
    font-size: 17px;
    font-weight: 800;
    color: #213a43;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 10px;
}
.usage-finder-toggle span {
    flex: 1;
    text-align: left;
}
.usage-finder-chevron {
    transition: transform 0.18s ease;
}
.usage-finder.is-open .usage-finder-chevron {
    transform: rotate(180deg);
}
.usage-finder-panel {
    display: none;
    padding: 0 14px 14px;
}
.usage-finder.is-open .usage-finder-panel {
    display: block;
}
@media (max-width: 768px) {
    .markdown-section section.usage-finder.usage-finder {
        margin: 0;
    }
    .usage-finder.is-open {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        transform: none;
        border-width: 2px 0 0;
        border-radius: 0;
        box-shadow: 0 -6px 18px rgba(33, 58, 67, 0.18);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .usage-finder.is-open .usage-finder-toggle {
        border-radius: 0;
    }
    .usage-finder.is-open .usage-finder-list,
    .usage-finder.is-open .usage-finder-results {
        max-height: 50vh;
    }
}
.usage-finder input {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 17px;
    color: #213a43;
    background: #f5f7f8;
    border: 2px solid #213a43;
    border-bottom-width: 4px;
    border-radius: 5px;
    outline: none;
}
.usage-finder input:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px #9bbac4;
}
.usage-finder-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 14px;
    max-height: min(38vh, 320px);
    overflow-y: auto;
    padding: 2px 2px 4px;
}
.usage-finder-item.level-h3 {
    margin-left: 18px;
}
.usage-finder-item.level-h4 {
    margin-left: 36px;
    font-size: 14px;
}
.usage-finder-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    font-family: "Mona Sans";
    font-size: 15px;
    font-weight: 500;
    color: #213a43 !important;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 5px;
}
.usage-finder-item[hidden] {
    display: none;
}
.usage-finder-item:hover {
    background: #e6eef1;
}
.usage-finder-item:active {
    background: #d5e3e8;
}
.usage-finder-item.level-h2 {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 800;
}
.usage-finder-item.level-h2:first-child {
    margin-top: 0;
}
.usage-finder-parent {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.6;
}
.usage-finder-list[hidden],
.usage-finder-results[hidden],
.usage-finder-empty[hidden] {
    display: none;
}
.usage-finder-results {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    max-height: min(38vh, 320px);
    overflow-y: auto;
}
.usage-finder-result {
    display: block;
    padding: 10px 14px;
    color: #213a43 !important;
    text-decoration: none;
    background: #ffffff;
    border: 2px solid #213a43;
    border-bottom-width: 4px;
    border-radius: 5px;
}
.usage-finder-result:hover,
.usage-finder-result:focus-visible {
    background: #f1f3f4;
    outline: none;
}
.usage-finder-result:focus-visible {
    box-shadow: 0 0 0 3px #9bbac4;
}
.usage-finder-result-top {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: "Mona Sans";
    font-size: 16px;
    font-weight: 700;
}
.usage-finder-snippet {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.75;
}
.usage-finder mark {
    padding: 0 2px;
    color: inherit;
    background: #fff3a8;
    border-radius: 2px;
}
.usage-finder-empty {
    margin: 12px 0 0;
}
#main :is(h1, h2, h3, h4) {
    scroll-margin-top: var(--usage-offset, 130px);
}
.usage-crumbs-wrap {
    position: sticky;
    top: var(--usage-header-h, 119px);
    z-index: 28;
    height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0s 0.12s;
}
.usage-crumbs-wrap.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.12s ease, transform 0.12s ease;
}
.usage-crumbs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    padding: 8px 20px;
    overflow: hidden;
    font-family: "Mona Sans";
    font-size: 14px;
    white-space: nowrap;
    background: #ffffff;
    border-bottom: 2px solid #213a43;
}
.usage-crumbs a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #213a43;
    text-decoration: none;
    opacity: 0.65;
    font-weight: 400;
}
.usage-crumbs a:not(:first-child)::before {
    content: "›";
    margin-right: 6px;
    opacity: 0.6;
}
.usage-crumbs a:last-child {
    flex-shrink: 0;
    max-width: 60%;
    font-weight: 800;
    opacity: 1;
}
.usage-crumbs a:hover {
    opacity: 1;
}
.usage-flash {
    animation: usageFlash 1.4s ease-out;
}
::highlight(usage-hit) {
    background-color: #ffe56b;
    color: #213a43;
}
@keyframes usageFlash {
    0%, 30% { background-color: #fff3a8; box-shadow: 0 0 0 6px #fff3a8; }
    100% { background-color: transparent; box-shadow: 0 0 0 6px transparent; }
}
.floaty-piece {
    width: 80px;
    position: absolute;
    z-index: 2;
    pointer-events: none;
}
.floaty-footer {
    z-index: 3;
    transform: translateZ(0);
}
.floaty-subpage {
    z-index: 31;
}
.showcase {
    display: flex;
    gap: 70px;
    align-items: center;
    background-color: #f5f5f5;
    padding: 25px;
    border: 2px solid;
    border-radius: 5px;
    border-bottom-width: 7px;
}
.showcase div:first-of-type {
    width: 100%;
}
.showcase h2,
.stats-container h2,
#hindsight-is-overrated {
    font-family: "Mona Sans";
    font-weight: 800;
    font-stretch: ultra-expanded;
    -webkit-text-stroke: 0.6px #a87500;
    /* A bright glare band sweeps over a steady, light gold base. */
    background:
        linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 95%) 50%, transparent 65%) no-repeat,
        linear-gradient(180deg, #ffdf57 0%, #f4bd21 52%, #d99408 100%);
    background-size: 60% 100%, 100% 100%;
    background-position: 220% 0, 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
    /* Stacked 1px drop-shadows extrude the gold lettering. */
    filter:
        drop-shadow(0 1px 0 #c8962a)
        drop-shadow(0 2px 0 #b5831f)
        drop-shadow(0 3px 0 #a27219)
        drop-shadow(0 5px 4px rgb(33 40 30 / 16%));
    animation: titleGlare 4.5s ease-in-out infinite;
}
.showcase h2,
#hindsight-is-overrated {
    filter:
        drop-shadow(0 1px 0 #b5831f)
        drop-shadow(0 2px 3px rgb(33 40 30 / 12%));
}
.page-home .markdown-section > section:not(.main-first-section) h2 {
    font-weight: 700;
}
@keyframes titleGlare {
    0% { background-position: 220% 0, 0 0; }
    60%, 100% { background-position: -120% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .showcase h2,
    .stats-container h2,
    #hindsight-is-overrated {
        animation: none;
    }
}
.showcase img {
    border: 3px solid #213a43;
    border-bottom-width: 8px;
    min-width: 466px;
    min-height: 500px;
}
.install-suggestion {
    font-size: 25px;
    background-color: #213a430a;
    margin: 50px 0 25px;
    padding: 20px;
    display: flex;
    font-weight: 700;
    gap: 10px;
    border: 2px solid #334b53;
    border-bottom: 5px solid #334b53;
    justify-content: space-between;
    border-radius: 5px;
    align-items: center;
    flex-wrap: wrap;
    min-height: 100px;
}
.install-button {
    font-family: "Mona Sans";
    font-weight: 800;
    font-stretch: ultra-expanded;
    /* Two layers: a light gold fill and a darker gold border, both sliding in sync. */
    background-color: #d9ac36 !important;
    background-image:
        linear-gradient(90deg, #e3b844 0%, #fbe38a 25%, #f6d365 50%, #e3b844 75%, #e3b844 100%),
        linear-gradient(90deg, #a8761a 0%, #f0cf62 25%, #d9a830 50%, #a8761a 75%, #a8761a 100%);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    background-size: 360px 100%, 360px 100%;
    color: #3b2808 !important;
    text-shadow: 0 1px 0 rgb(255 239 184 / 65%);
    text-decoration: none;
    border-radius: 5px;
    padding: 20px 70px;
    border: 2px solid transparent;
    border-bottom: 10px solid transparent;
    animation: installGoldShift 4s linear infinite;
}
@keyframes installGoldShift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 360px 0, 360px 0; }
}
/* The gold fill is !important, so the shared .fancy-btn tint can't show; brighten it instead. */
.install-button:hover:not(:disabled) {
    filter: brightness(1.08) saturate(1.1);
    box-shadow: 0 0 10px rgb(255 214 90 / 45%);
}
/* .fancy-btn:active forces a black border, so restore the transparent gold one with a brighter, faster shine. */
.install-button:active {
    border: 2px solid transparent;
    background-image:
        linear-gradient(90deg, #e3b844 0%, #fbe38a 25%, #f6d365 50%, #e3b844 75%, #e3b844 100%),
        linear-gradient(90deg, #e0aa24 0%, #fff6c4 25%, #ffd84a 50%, #e0aa24 75%, #e0aa24 100%);
    box-shadow: 0 0 8px rgb(255 214 90 / 50%);
    animation-name: installGoldShift;
}
@media (prefers-reduced-motion: reduce) {
    .install-button {
        animation: none;
    }
}
.page-home .install-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    max-width: 100%;
    padding: 16px clamp(24px, 5vw, 48px);
    background: #ffffff !important;
    color: #213a43 !important;
    border: 2px solid #213a43;
    border-bottom-width: 5px;
    border-radius: 5px;
    text-shadow: none;
    animation: none;
}
.page-home .install-button:hover {
    background: #f1f1f1 !important;
    filter: none;
    box-shadow: none;
}
.page-home .install-button:focus-visible {
    outline: 3px solid #213a43;
    outline-offset: 4px;
}
.page-home .install-button:active {
    border-color: black;
    border-bottom-width: 2px;
    transform: translateY(3px);
    margin-bottom: 3px;
    box-shadow: none;
}
.mock-img {
    min-width: 490px;
    min-height: 490px;
}
li {
    margin-bottom: 10px;
    border-bottom: 2px dashed #cacaca;
    padding-bottom: 5px;
}
ul li {
    border-bottom: 2px dashed #ebebeb;
}
ul {
    margin-top: 10px;
}
.img-container {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
}
.markdown-section-sub section h3 {
    margin-top: 50px;
}
.markdown-section-sub section h2 {
    margin-top: 80px;
    border-bottom: 2px solid #dfdfdf;
    padding: 15px 0;
}
.markdown-section-sub #faq > #common-questions {
    font-size: 28px;
}
.markdown-section-sub #faq > [itemprop="mainEntity"] > h2 {
    margin: 28px 0 10px;
    padding: 0 0 8px;
    border-bottom: 1px solid rgb(33 58 67 / 15%);
    font-size: 21px;
    line-height: 1.4;
    width: fit-content;
    max-width: 100%;
}
.blog-post h2 {
    margin-top: 0 !important;
}
.nav-burger,
.mobile-nav {
    display: none;
}
@media (max-width: 1100px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }
    header div.header-nav {
        display: none;
    }
    .nav-burger {
        display: block;
        position: relative;
        flex: 0 0 auto;
        width: 54px;
        height: 50px;
        padding: 0;
        color: #213a43;
        background: transparent;
        border: 2px solid #213a43;
        border-bottom-width: 5px;
        border-radius: 5px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background-color 0.1s, color 0.1s;
    }
    .nav-burger:hover {
        background-color: rgb(0 0 0 / 5%);
    }
    .nav-burger:active {
        border-color: black;
        border-bottom-width: 2px;
        height: 47px;
        transform: translateY(3px);
        margin-bottom: 3px;
    }
    .nav-burger:focus-visible {
        outline: 3px solid #5f8895;
        outline-offset: 3px;
    }
    .nav-burger span {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 22px;
        height: 3px;
        margin: -1.5px 0 0 -11px;
        background: currentColor;
        border-radius: 1px;
        transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.1s ease;
    }
    .nav-burger span:nth-child(1) { transform: translateY(-7px); }
    .nav-burger span:nth-child(3) { transform: translateY(7px); }
    .nav-burger[aria-expanded="true"] {
        color: #ffffff;
        background-color: #213a43;
    }
    .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
    .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }
    .mobile-nav {
        position: sticky;
        top: 119px;
        z-index: 29;
        max-height: calc(100vh - 119px);
        overflow-y: auto;
        display: grid;
        grid-template-rows: 0fr;
        background-color: #ffffff;
        background-image:
          linear-gradient(45deg, rgba(0, 0, 0, 0.03) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.03) 75%, rgba(0, 0, 0, 0.03)),
          linear-gradient(45deg, rgba(0, 0, 0, 0.03) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.03) 75%, rgba(0, 0, 0, 0.03));
        background-size: 61.2px 61.2px;
        background-position: 0 0, 30.6px 30.6px;
        visibility: hidden;
        transition: grid-template-rows 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.18s, top 0.2s ease;
    }
    .mobile-nav.is-open {
        grid-template-rows: 1fr;
        visibility: visible;
        transition: grid-template-rows 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.2s ease;
    }
    .mobile-nav-clip {
        min-height: 0;
        overflow: hidden;
    }
    .mobile-nav-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        gap: 10px;
        padding: 20px;
        border-bottom: 3px solid #213a43;
        box-sizing: border-box;
    }
    .mobile-nav a {
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        font-family: "Mona Sans";
        font-size: 20px;
        font-weight: 500;
        color: #213a43;
        text-decoration: none;
        background-color: #ffffff;
        border: 2px solid #213a43;
        border-bottom-width: 5px;
        border-radius: 5px;
    }
    .mobile-nav a:hover {
        background-color: #f1f3f4;
    }
    .mobile-nav a:active {
        border-color: black;
        border-bottom-width: 2px;
        transform: translateY(3px);
        margin-bottom: 3px;
    }
    .mobile-nav a[aria-current="page"] {
        color: #ffffff;
        background-color: #213a43;
    }
}
@media (768px < width <= 1100px) {
    header div.header-nav {
        display: flex;
        flex: 0 1 auto;
        justify-content: flex-end;
        gap: 5px;
        margin-left: auto;
    }
    header div.header-nav a:nth-child(n + 6) {
        display: none;
    }
}
@media (max-width: 1120px) {
    header div.header-nav a:nth-child(n + 7) {
        display: none;
    }
}
@media (max-width: 1000px) {
    header div.header-nav a:nth-child(n + 5) {
        display: none;
    }
}
@media (width < 880px) {
    header div.header-nav a:nth-child(n + 4) {
        display: none;
    }
}
@media (width < 800px) {
    header div.header-nav a:nth-child(n + 3) {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    header,
    header a,
    .nav-burger,
    .nav-burger span,
    .mobile-nav {
        transition: none !important;
    }
}
@media (min-width: 769px) and (max-width: 1100px) {
    header.is-stuck + .mobile-nav {
        top: 84px;
        max-height: calc(100vh - 84px);
    }
}
@media (max-width: 920px) {
    .showcase {
        flex-direction: column;
        gap: 10px;
    }
    .showcase-2 {
        flex-direction: column-reverse;
    }
}
@media (min-width: 769px) and (max-width: 920px) {
    .large-intro-desc {
        font-size: 32px;
    }
}
/* Keep checkerboard margins visible on both sides until the compact layout. */
@media (min-width: 769px) {
    main {
        width: calc(100% - clamp(40px, 10vw, 140px));
    }
}
/* Elegant gold corner flourishes at the very top of the main page. */
@media all {
    .page-home > main {
        position: relative;
    }
    .page-home > main::before,
    .page-home > main::after {
        content: "";
        position: absolute;
        top: -4px;
        width: 150px;
        height: 150px;
        z-index: 1;
        pointer-events: none;
        background: url("../images/gold-corner.svg") no-repeat top left / contain;
        filter: drop-shadow(0 1px 1px rgb(80 50 0 / 40%));
        /* Keep the ornament inside the container's border. */
        clip-path: inset(0 0 0 12px);
    }
    .page-home > main::before {
        left: -12px;
    }
    .page-home > main::after {
        right: -12px;
        transform: scaleX(-1);
    }
}
@media (min-width: 769px) {
    .page-home > main::before,
    .page-home > main::after {
        top: 115px;
        width: 125px;
        height: 125px;
    }
    .page-home > main > .content > .floaty3 {
        z-index: 2;
    }
}
/* Select the compact layout by viewport width, not touch input. */
@media (max-width: 768px) {
    main {
        margin-top: 0px !important;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        background-image:
          linear-gradient(45deg, rgba(0, 0, 0, 0.055) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.055) 75%, rgba(0, 0, 0, 0.055)),
          linear-gradient(45deg, rgba(0, 0, 0, 0.055) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.055) 75%, rgba(0, 0, 0, 0.055));
    }
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        border-radius: 0;
    }
    .markdown-section section:first-of-type {
        margin: 20px 20px 0;
    }
    .page-home .markdown-section > .main-first-section {
        margin: 34px 20px 0;
    }
    .markdown-section section:nth-of-type(2) {
        margin: 50px 20px 0;
    }
    .main-first-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .floaty-footer {
        display: none;
    }
    .markdown-section blockquote {
        margin: 0;
    }
    #lottie-animation {
        height: auto;
        max-height: 400px;
    }
    .large-intro {
        display: none;
    }
    .large-intro-tagline {
        display: block;
        font-size: 38px;
        margin-top: -15px;
        margin-bottom: 0;
    }
    .large-intro-mobile {
        display: block;
        margin-top: -5px;
    }
    .large-intro-desc {
        font-size: 8vw;
        max-width: 80vw;
        font-family: 'Mona Sans';
        text-align: center;
        font-stretch: normal;
        font-weight: 900;
        text-shadow:
            0 -1px 0 #ffffff,
            0 1px 0 #c4d9e0,
            0 2px 0 #213a43,
            0 4px 4px rgba(33, 58, 67, 0.08);
    }
    h1 {
        border-bottom: unset;
    }
    .markdown-section {
        border-left: 0px !important;
    }
    .markdown-section section {
        margin: 0 20px;
    }
    html, body {
        overflow-x: clip;
        width: 100%;
    }
    body {
        background-image: unset;
        background-color: #ffffff;
    }
    table {
        width: 100%;
    }
    tr {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .floaty-no-mobile {
        display: none;    
    }
    .mock-img {
        min-width: 100vw;
        min-height: 50%;
    }
    .showcase img {
        min-width: 200px;
        min-height: 200px;
    }
    .acas-logo-main {
        font-size: 24px;
    }
    header a {
        font-size: 20px;
        font-weight: 500;
    }
    header {
        box-sizing: border-box;
        height: 68px;
        padding: 0 16px;
        border-top-width: 0;
        border-bottom-width: 5px;
        border-bottom-color: rgb(0 0 0 / 10%);
    }
    .acas-logo-main,
    .nav-burger {
        box-sizing: border-box;
        height: 48px;
    }
    .acas-logo-main {
        position: relative;
        align-items: center;
        padding-right: 30px;
    }
    .acas-logo-main span {
        position: absolute;
        top: 6px;
        right: 8px;
        line-height: 1;
    }
    .nav-burger {
        width: 52px;
    }
    .nav-burger:active,
    .acas-logo-main.fancy-btn:active {
        height: 45px;
        margin-bottom: 3px;
    }
    .mobile-nav {
        top: 68px;
        max-height: calc(100vh - 68px);
        max-height: calc(100dvh - 68px);
    }
    header a:has(.bi, .site-nav-icon) {
        height: fit-content;
    }
    .floaty-mobile-fix {
        left: -110px !important;
        top: 20px !important;
    }
    .floaty-subpage {
        display: none;
    }
    .markdown-section-sub {
        padding: 0 !important;
    }
    .install-suggestion {
        flex-direction: column;
        min-height: 140px;
        justify-content: center;
    }
}
#hindsight-is-overrated {
    font-size: 35px;
    margin: 75px 0 35px;
    text-align: center;
}
.checkitout-container {
    display: flex;
    justify-content: flex-end;
}