/* MINISTRY OF MINOR THINGS — REUSABLE INTERFACE COMPONENTS */
/* Rules for each selector are grouped with its responsive variants. */

/* PRIMARY NAVIGATION — desktop and CSS-only mobile menu */
/* Keep all breakpoint behaviour here; do not add separate .page-nav overrides. */

.mobile-nav {
    display: none;
    position: relative;
    margin-left: auto;
    flex-shrink: 0;

    summary {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3rem;
        height: 3rem;
        border: 1px solid var(--steel);
        background: var(--navy);
        color: var(--amber);
        cursor: pointer;
        list-style: none;
        user-select: none;

        &::-webkit-details-marker { display: none; }
    }

    .burger-icon {
        position: relative;
        display: block;
        width: 1.4rem;
        height: 2px;
        background: currentColor;
        transition: background 0.2s ease;

        &::before,
        &::after {
            content: "";
            position: absolute;
            left: 0;
            display: block;
            width: 100%;
            height: 2px;
            background: currentColor;
            transition: transform 0.2s ease, top 0.2s ease;
        }

        &::before { top: -7px; }
        &::after { top: 7px; }
    }

    &[open] .burger-icon {
        background: transparent;
        &::before { top: 0; transform: rotate(45deg); }
        &::after { top: 0; transform: rotate(-45deg); }
    }

    nav {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        z-index: 200;
        width: min(18rem, calc(100vw - 2rem));
        padding: 0.75rem;
        background: var(--navy);
        border: 2px solid var(--amber);
        box-shadow: 6px 6px 0 var(--void);

        a {
            display: block;
            padding: 0.875rem 1rem;
            border-bottom: 1px solid var(--blue);
            color: var(--paper);
            font: 400 1.5rem/1.25 var(--font-terminal);
            white-space: normal;

            &:last-child { border-bottom: 0; }
            &:hover,
            &:focus-visible { color: var(--amber); background: var(--blue); }
        }
    }

    @media (max-width: 1100px) { display: block; }
}

@media (max-width: 1100px) {
    .site-header .page-nav.desktop-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-nav .burger-icon,
    .mobile-nav .burger-icon::before,
    .mobile-nav .burger-icon::after { transition: none; }
}

.stars {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(var(--steel) 1px, transparent 1px), radial-gradient(var(--amber) 1px, transparent 1px);
    background-size: 117px 93px,
        181px 153px;
    background-position: 14px 32px,
        59px 12px;
    opacity: 0.25;
}

.skip-game {
    display: inline-block;
    font-size: 10px;
    color: var(--amber);
    margin-top: 15px;
    padding: 8px 5px;
}

@media (max-width: 700px) {
    .skip-game {
        font-size: 8px;
        line-height: 1.8;
        max-width: 95%;
    }
}

.skip-game:hover {
    color: var(--paper);
}

.wordmark {
    font-size: 26px;
    letter-spacing: -3px;
    color: var(--amber);
    border: 3px solid var(--amber);
    line-height: 1;
    padding: 8px 11px 8px 5px;
    text-shadow: 3px 3px var(--brown);
    box-shadow: inset 3px 3px var(--signal),
        4px 4px var(--void);
    background: var(--blue);
}

@media (max-width: 700px) {
    .wordmark {
        font-size: 20px;
    }
}

.wordmark span {
    color: var(--paper);
}

.transmission {
    color: var(--silver);
    line-height: 1.7;
    font-size: 10px;
}

@media (max-width: 900px) {
    .transmission {
        display: none;
    }
}

@media (max-width: 380px) {
    .transmission {
        max-width: 150px;
    }
}

.transmission span {
    color: var(--silver);
    font-size: 8px;
}


.section-kicker {
    color: var(--amber);
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

@media (max-width: 700px) {
    .section-kicker {
        font-size: 8px;
        line-height: 1.8;
    }
}

.badge {
    font-family: Ministry, monospace;
    font-size: 9px;
    color: var(--amber);
    border: 1px solid var(--steel);
    padding: 7px 9px;
    white-space: nowrap;
}

.dept-number {
    display: inline-block;
    color: var(--steel);
    font-size: 11px;
    margin-right: 15px;
}

@media (max-width: 700px) {
    .dept-number {
        font-size: 9px;
        margin-right: 10px;
    }
}



.app-sign {
    padding: 30px 15px;
    position: relative;
    text-align: center;
    background: var(--blue);
    border: 4px solid var(--steel);
    box-shadow: inset 4px 4px var(--signal),
        inset -4px -4px var(--navy),
        5px 5px var(--void);
}

@media (max-width: 700px) {
    .app-sign {
        padding: 25px 15px;
    }
}

.app-sign:before,
.app-sign:after {
    content: "";
    width: 8px;
    height: 8px;
    position: absolute;
    top: 9px;
    background: var(--amber);
    border: 2px solid var(--navy);
    box-shadow: 0 4px var(--void);
}

.app-sign:before {
    left: 10px;
}

.app-sign:after {
    right: 10px;
}

.app-sign .section-kicker {
    color: var(--paper);
    font-size: 9px;
}

.app-sign h2 {
    color: var(--amber);
    font-size: 30px;
    text-shadow: 3px 3px var(--void);
    margin: 15px 0;
}

@media (max-width: 900px) {
    .app-sign h2 {
        font-size: 25px;
    }
}

@media (max-width: 700px) {
    .app-sign h2 {
        font-size: 32px;
    }
}

.sign-plate {
    background: var(--paper);
    color: var(--navy);
    border: 3px solid var(--amber);
    box-shadow: 3px 3px var(--void);
    font-size: 10px;
    display: inline-block;
    padding: 6px 10px;
}

.app-emblem {
    font-size: 52px;
    color: var(--amber);
    padding: 22px 0;
    text-shadow: 4px 4px var(--void);
}

@media (max-width: 700px) {
    .app-emblem {
        font-size: 40px;
        padding: 16px 0;
    }
}

.app-sign .badge {
    background: var(--navy);
    font-size: 8px;
}

.amber-button {
    background: var(--amber);
    color: var(--navy);
    border: 3px solid var(--amber);
    padding: 12px 16px;
    font-size: 11px;
    box-shadow: 4px 4px var(--void);
}

@media (max-width: 700px) {
    .amber-button {
        font-size: 10px;
    }
}

.amber-button:hover {
    background: var(--paper);
    border-color: var(--paper);
}

.plain-link {
    color: var(--amber);
    font-size: 10px;
    line-height: 1.8;
    display: inline-block;
    padding: 7px 0;
}

@media (max-width: 700px) {
    .plain-link {
        font-size: 9px;
    }
}

.plain-link:hover {
    text-decoration: underline;
}

.step-number {
    color: var(--amber);
    font-size: 24px;
}

@media (max-width: 700px) {
    .step-number {
        font-size: 20px;
    }
}

.info-strip {
    background: var(--navy);
    border-left: 4px solid var(--amber);
    padding: 20px 23px;
    margin-top: 25px;
}

@media (max-width: 700px) {
    .info-strip {
        padding: 16px;
    }
}

.info-strip b {
    font-size: 10px;
    font-weight: normal;
    color: var(--amber);
}

@media (max-width: 700px) {
    .info-strip b {
        font-size: 8px;
        line-height: 1.8;
    }
}

.info-strip p {
    font-size: 14px;
    margin: 10px 0 0;
}

@media (max-width: 700px) {
    .info-strip p {
        font-size: 13px;
    }
}

.dispatch-stamp {
    color: var(--amber);
    font-size: 15px;
    line-height: 1.6;
    padding: 20px;
    border: 4px double var(--amber);
    transform: rotate(-5deg);
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .dispatch-stamp {
        font-size: 12px;
    }
}

@media (max-width: 700px) {
    .dispatch-stamp {
        font-size: 12px;
        margin: 5px 0 15px;
        transform: rotate(-3deg);
    }
}

.text-faqs details {
    border-color: var(--blue);
}

.text-faqs summary {
    font-family: "Courier New", monospace;
    font-weight: bold;
    font-size: 15px;
    color: var(--paper);
    padding: 18px 24px 18px 0;
    position: relative;
}

@media (max-width: 700px) {
    .text-faqs summary {
        font-size: 14px;
    }
}

.text-faqs summary:after {
    content: "+";
    position: absolute;
    right: 0;
    top: 18px;
    color: var(--amber);
}

.text-faqs details[open] summary:after {
    content: "-";
}

.text-faqs details p {
    font-size: 14px;
    max-width: none;
    margin-bottom: 20px;
}

@media (max-width: 700px) {
    .text-faqs details p {
        font-size: 14px;
    }
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 8px;
    color: var(--silver);
    padding: 25px 0 30px;
    border-top: 2px solid var(--blue);
}

@media (max-width: 700px) {
    footer {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 7px;
        padding: 22px 0;
    }
}

footer a {
    color: var(--amber);
}

@media (max-width: 700px) {
    .dialog-bar {
        font-size: 9px;
    }
}

@media (max-width: 700px) {
    .notice {
        font-size: 10px;
    }
}

.store-placeholder, .unavailable-store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 2px dashed var(--steel);
    background: var(--navy);
    color: var(--silver);
    font: 10px Ministry, monospace;
    line-height: 1.5;
    text-align: center;
    cursor: default;
}

.store-link {
    display: inline-flex;
    align-items: center;
}

.inline-link, .subpage a:not(.amber-button):not(.wordmark):not(.plain-link) {
    color: var(--amber);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.inline-link:hover, .subpage a:hover {
    color: var(--paper);
}

.plain-button {
    border: 2px solid var(--steel);
    background: var(--navy);
    color: var(--amber);
    padding: 12px 16px;
    font: 11px Ministry, monospace;
    cursor: pointer;
}

.plain-button:hover {
    border-color: var(--amber);
}

footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

footer nav a {
    color: var(--amber);
}

.contact-pending {
    display: inline-block;
    background: var(--navy);
    border: 1px solid var(--steel);
    padding: 7px;
    color: var(--silver);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--void);
    border-bottom: 1px solid var(--steel);
    padding: 0;
    font-family: var(--sans);
}

.header-inner {
    width: min(1460px, calc(100% - 8vw));
    margin: auto;
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 34px;
}

@media (max-width: 1100px) {
    .header-inner {
        width: calc(100% - 6vw);
        gap: 15px;
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 76px;
        width: calc(100% - 28px);
        flex-wrap: wrap;
        padding: 11px 0 8px;
    }
}

.brand-lockup {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 760px) {
    .brand-lockup {
        flex: 1;
    }
}

.brand-mark {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.brand-name {
    color: var(--paper);
    font-size: 28px;
    line-height: 1;
    font-family: var(--font-terminal);
    font-weight: 400;
    letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
    .brand-name {
        font-size: 28px;
    }
}

@media (max-width: 520px) {
    .brand-name {
        font-size: 16px;
    }
}

.brand-tagline {
    font-family: var(--font-terminal);
    font-size: 19px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--amber);
}

@media (max-width: 520px) {
    .brand-tagline {
        font-size: 8px;
    }
}

.site-header .page-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 2.125rem);
    margin: 0 0 0 auto;

    a {
        padding: 0.75rem 0;
        color: var(--silver);
        white-space: nowrap;
        font: 400 clamp(1rem, 1.6vw, 1.375rem)/1.2 var(--font-terminal);
        letter-spacing: 0.02em;

        &:hover { color: var(--paper); }
    }

    @media (max-width: 1100px) {
        gap: 1rem;
    }
}

.nav-cta {
    border: 1px solid var(--amber);
    color: var(--amber);
    padding: 15px 18px;
    font-family: var(--font-terminal);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

@media (max-width: 760px) {
    .nav-cta {
        padding: 13px;
        font-size: 10px;
    }
}

.nav-cta:hover {
    background: var(--amber);
    color: var(--navy);
}

.eyebrow,
.topline {
    color: var(--amber);
    font-size: 19px;
    line-height: 1.6;
    font-family: var(--font-terminal);
    font-weight: 400;
    letter-spacing: 0.04em;
}

.button-solid,
.button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    min-height: 54px;
    padding: 17px 24px;
    cursor: pointer;
    font-family: var(--font-terminal);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.button-solid {
    background: var(--amber);
    color: var(--void);
    border: 2px solid var(--amber);
    box-shadow: 6px 6px 0 var(--steel);
    font-family: var(--font-terminal);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.button-solid:hover {
    background: var(--paper);
    border-color: var(--paper);
}

.button-outline {
    background: transparent;
    color: var(--paper);
    border: 2px solid var(--steel);
    font-family: var(--font-terminal);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.button-outline:hover {
    border-color: var(--amber);
    color: var(--amber);
}

.inline-link {
    color: var(--amber);
    border-bottom: 1px solid var(--amber);
    padding-bottom: 8px;
    display: inline-block;
    font-family: var(--font-terminal);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.topline {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--silver);
    font-size: 11px;
    font-family: var(--font-terminal);
    font-weight: 400;
    letter-spacing: 0.04em;
}

.live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: var(--green);
    box-shadow: 0 0 0 5px var(--blue);
    flex-shrink: 0;
}

.hairline {
    height: 1px;
    background: var(--steel);
    width: 46px;
    display: block;
}

.device {
    /*background: var(--void);*/
    /*border: 8px solid var(--void);*/
    /*border-radius: 38px;*/
    padding: 8px 4px 12px;
    /*box-shadow: 10px 16px 0 var(--void),*/
        /*0 0 0 3px var(--steel);*/
    width: 100%;
    max-width: 270px;
    position: relative;
    overflow: hidden;
    /*aspect-ratio: 390/840;*/
}

.device img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 24px;
    image-rendering: auto;
}



.card-status {
    color: var(--silver);
    border: 1px solid var(--steel);
    padding: 5px 9px;
    align-self: start;
    white-space: nowrap;
    font-family: var(--font-terminal);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.dept-card {
    --card-accent: var(--steel);
    --card-background: var(--blue);
    --card-opacity: 1;

    background: var(--card-background);
    border: 2px solid var(--card-accent);
    opacity: var(--card-opacity);

    /* AVAILABLE APP */
    &.is-available {
        --card-accent: var(--amber);
        --card-background: var(--blue);

        .card-status {
            color: var(--green);
            border-color: var(--green);
            background: var(--navy);
        }

        .dept-card-name {
            color: var(--amber);
        }

        .dossier-link {
            color: var(--amber);
        }
    }

    /* PENDING APP */
    &.is-pending {
        --card-accent: var(--steel);
        --card-background: var(--navy);

        .card-status {
            color: var(--silver);
            border-color: var(--steel);
        }

        .dept-illustration img {
            opacity: 0.55;
            filter: saturate(0.5);
        }

        .dept-card-name {
            color: var(--paper);
        }

        .dept-official {
            color: var(--dust);
        }
    }
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
}

@media (max-width: 760px) {
    .footer-top {
        align-items: start;
        flex-direction: column;
    }
}

.footer-top h2 {
    margin: 18px 0;
    color: var(--paper);
    font: 100 clamp(16px, 2vw, 30px)/1.3 var(--font-display);
    letter-spacing: -0.02em;
}

@media (max-width: 520px) {
    .footer-top h2 {
        overflow-wrap: anywhere;
    }
}

.footer-top h2 em {
    font-style: normal;
    color: var(--amber);
}

.footer-mini {
    display: flex;
    align-items: center;
    gap: 25px;
    color: var(--silver);
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    margin-top: 50px;
    border-top: 1px solid var(--steel);
    padding: 23px 0;
    display: flex;
    flex-wrap: wrap;
    column-gap: 0;
    row-gap: 10px;
    align-items: center;
    overflow: hidden;
}

@media (max-width: 520px) {
    .footer-links {
        gap: 18px;
    }
}

.footer-links a {
    color: var(--paper);
    font-family: var(--font-terminal);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.02em;
    white-space: nowrap;
    padding: 0 20px;
    margin-left: -1px;
    border-left: 1px solid var(--steel);
}

.footer-links a:hover {
    color: var(--amber);
}

.footer-fine {
    color: var(--dust);
    font-family: var(--font-terminal);
    font-weight: 400;
    letter-spacing: 0.04em;
    font-size: 17px;
}

.footer-afterthought {
    font: 400 1.35rem/1.4 var(--font-terminal);
    color: var(--silver);
    margin: 0;
}
