@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');

/* =====================================================================================
   SeriousMindware.com site chrome: top menu, account menu, footer and the shared page
   look (About, Sign in, Profile). One stylesheet for both layouts (LandingLayout and
   MainLayout) so they can't drift apart. Neon aqua and magenta on deep navy, the same
   palette as the cyberpunk robot (images/cyberthinker.jpg) and the app tiles.
   ===================================================================================== */

:root {
    --smw-ink: #050816;
    --smw-navy: #0a1030;
    --smw-panel: rgba(9, 14, 40, 0.86);
    --smw-panel-solid: #0c1236;
    --smw-line: rgba(63, 243, 255, 0.28);
    --smw-aqua: #3ff3ff;
    --smw-aqua-soft: #9ff8ff;
    --smw-magenta: #ff4fd8;
    --smw-violet: #8a5cff;
    --smw-text: #e8f1ff;
    --smw-muted: #a9b8d0;
    --smw-display: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
    --smw-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html, body {
    font-family: var(--smw-body);
}

body {
    background-color: var(--smw-ink);
    color: var(--smw-text);
}

/* app.css still has the Blazor template's dark blue link color, which is hard to read on the dark pages. */
a, .btn-link {
    color: #7fe7ff;
}

a:hover {
    color: #c6fbff;
}

/* ---- Page shell (MainLayout): night-sky gradient with a faint circuit grid ---- */
.smw-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(255, 79, 216, 0.16), transparent 60%),
        radial-gradient(900px 600px at -10% 10%, rgba(63, 243, 255, 0.14), transparent 60%),
        linear-gradient(rgba(63, 243, 255, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, rgba(63, 243, 255, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(180deg, #070b22 0%, #050816 100%);
    background-attachment: fixed;
}

.smw-main {
    flex: 1;
}

/* The landing layout's robot background is fixed to the window; this fills behind it on very tall pages. */
.app-background {
    background-color: var(--smw-ink);
}

.smw-main > .content {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

/* ---- Top menu ---- */
.smw-topnav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(rgba(6, 9, 28, 0.97), rgba(6, 9, 28, 0.92));
    border-bottom: 1px solid var(--smw-line);
    box-shadow: 0 1px 0 rgba(255, 79, 216, 0.18), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.smw-topnav-inner {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    min-height: 3.75rem;
    padding: 0 1.25rem;
    max-width: 1400px;
    margin: 0 auto;
}

.smw-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
}

.smw-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(63, 243, 255, 0.6);
    box-shadow: 0 0 10px rgba(63, 243, 255, 0.45);
}

.smw-brand-name {
    font-family: var(--smw-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: var(--smw-text);
    white-space: nowrap;
}

.smw-brand-name span {
    color: var(--smw-aqua);
    text-shadow: 0 0 8px rgba(63, 243, 255, 0.55);
    margin-left: 0.3rem;
}

.smw-brand:hover .smw-brand-name {
    color: #fff;
}

.smw-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.smw-nav-link,
.smw-menu > summary {
    color: #cfdbec;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.smw-nav-link:visited {
    color: #cfdbec;
}

.smw-nav-link:hover,
.smw-nav-link.active,
.smw-menu > summary:hover,
.smw-menu[open] > summary {
    color: #fff;
    border-bottom-color: var(--smw-aqua);
}

.smw-nav-account {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Hamburger: a checkbox, so the menu works before the page is interactive (same JS-free pattern as before). */
.smw-nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.smw-nav-burger {
    display: none;
}

/* ---- Dropdowns (Apps and the account menu): <details>, closed on navigation by NavMenu and on outside click by site.js ---- */
.smw-menu {
    position: relative;
}

.smw-menu > summary {
    list-style: none;
}

.smw-menu > summary::-webkit-details-marker {
    display: none;
}

.smw-menu > summary.smw-caret::after {
    content: "";
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin-left: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
    opacity: 0.8;
}

.smw-menu-panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: -0.75rem;
    min-width: 260px;
    max-height: min(75vh, 640px);
    overflow-y: auto;
    padding: 0.5rem;
    background: #0a0f2c;
    border: 1px solid var(--smw-line);
    border-radius: 0.75rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 79, 216, 0.08), 0 0 24px rgba(63, 243, 255, 0.12);
    z-index: 1040;
}

.smw-menu-panel-end {
    left: auto;
    right: 0;
}

.smw-menu-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.7rem;
    color: #dbe6f6;
    text-decoration: none;
    border-radius: 0.5rem;
    white-space: nowrap;
    font-size: 0.95rem;
}

.smw-menu-item:visited {
    color: #dbe6f6;
}

.smw-menu-item:hover,
.smw-menu-item.active {
    color: #fff;
    background: rgba(63, 243, 255, 0.1);
}

.smw-menu-item small {
    display: block;
    color: var(--smw-muted);
    font-size: 0.78rem;
    white-space: normal;
}

.smw-menu-app img {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.smw-menu-header {
    padding: 0.55rem 0.7rem 0.4rem;
    color: var(--smw-muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.smw-menu-header strong {
    color: var(--smw-text);
    font-weight: 600;
    word-break: break-all;
}

.smw-menu-section {
    padding: 0.55rem 0.7rem 0.2rem;
    font-family: var(--smw-display);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--smw-magenta);
}

.smw-menu-divider {
    height: 1px;
    margin: 0.4rem 0.3rem;
    background: linear-gradient(90deg, transparent, var(--smw-line), transparent);
}

.smw-menu-item.smw-signout {
    color: #ffb3ec;
}

.smw-menu-item.smw-signout:hover {
    background: rgba(255, 79, 216, 0.14);
    color: #fff;
}

/* Account toggle: avatar + "Charles M." pill */
.smw-account > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem 0.25rem 0.3rem;
    border: 1px solid rgba(63, 243, 255, 0.45);
    border-radius: 999px;
    background: rgba(63, 243, 255, 0.07);
}

.smw-account > summary:hover,
.smw-account[open] > summary {
    border-bottom-color: rgba(63, 243, 255, 0.9);
    border-color: rgba(63, 243, 255, 0.9);
    background: rgba(63, 243, 255, 0.14);
    box-shadow: 0 0 12px rgba(63, 243, 255, 0.3);
}

.smw-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.smw-avatar-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--smw-aqua), var(--smw-violet));
    color: #061024;
    font-weight: 700;
    font-size: 0.85rem;
}

.smw-account-name {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smw-signin-button,
.smw-signin-button:visited {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    color: #061024;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, var(--smw-aqua), #7fb6ff);
    box-shadow: 0 0 14px rgba(63, 243, 255, 0.35);
    white-space: nowrap;
}

.smw-signin-button:hover {
    color: #061024;
    box-shadow: 0 0 20px rgba(63, 243, 255, 0.6);
}

@media (max-width: 860px) {
    .smw-topnav-inner {
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        padding: 0.5rem 1rem;
    }

    .smw-nav-burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        width: 2.75rem;
        height: 2.4rem;
        border: 1px solid rgba(63, 243, 255, 0.45);
        border-radius: 0.5rem;
        cursor: pointer;
        background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%239ff8ff' stroke-linecap='round' stroke-width='2' d='M5 8h20M5 15h20M5 22h20'/%3e%3c/svg%3e") no-repeat center / 1.5rem rgba(63, 243, 255, 0.06);
    }

    .smw-nav-toggle:focus-visible + .smw-nav-burger {
        outline: 2px solid var(--smw-aqua);
    }

    .smw-nav-links,
    .smw-nav-account {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        margin-left: 0;
        padding: 0.5rem 0;
    }

    .smw-nav-account {
        border-top: 1px solid var(--smw-line);
        padding-top: 0.75rem;
    }

    .smw-nav-toggle:checked ~ .smw-nav-links,
    .smw-nav-toggle:checked ~ .smw-nav-account {
        display: flex;
    }

    .smw-menu-panel,
    .smw-menu-panel-end {
        position: static;
        margin-top: 0.4rem;
        max-height: none;
        box-shadow: none;
    }

    .smw-account > summary {
        align-self: flex-start;
    }
}

/* ---- Footer: three columns, like SeriousCourses' SiteFooter, in neon instead of gold ---- */
.smw-footer {
    position: relative;
    color: var(--smw-muted);
    padding: 3rem 0 1.5rem;
    background:
        radial-gradient(1px 1px at 15% 40%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.22), transparent),
        radial-gradient(1.5px 1.5px at 85% 25%, rgba(159, 248, 255, 0.35), transparent),
        linear-gradient(180deg, #070b22 0%, #04060f 100%);
    background-size: 200px 200px, 260px 260px, 230px 230px, auto;
}

.smw-footer-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--smw-aqua) 20%, var(--smw-magenta) 80%, transparent);
    box-shadow: 0 0 12px rgba(63, 243, 255, 0.55);
}

.smw-footer-brand,
.smw-footer-brand:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    font-family: var(--smw-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    color: var(--smw-text);
}

.smw-footer-brand img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(63, 243, 255, 0.6);
    box-shadow: 0 0 10px rgba(63, 243, 255, 0.4);
}

.smw-footer-subbrand {
    margin: 0.5rem 0 0.75rem;
    font-family: var(--smw-display);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--smw-aqua-soft);
    text-shadow: 0 0 6px rgba(63, 243, 255, 0.5);
}

.smw-footer-tagline {
    max-width: 30rem;
    line-height: 1.6;
}

.smw-footer-heading {
    font-family: var(--smw-display);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--smw-magenta);
    margin-bottom: 0.9rem;
}

.smw-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.smw-footer-links li {
    margin-bottom: 0.5rem;
}

.smw-footer-links--two-col {
    columns: 2;
    column-gap: 1.5rem;
}

/* bullet: a small glowing circuit node */
.smw-footer-links li::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 0.55rem;
    vertical-align: 1px;
    border-radius: 50%;
    background: var(--smw-aqua);
    box-shadow: 0 0 6px var(--smw-aqua);
}

.smw-footer a {
    color: #d6e3f5;
    text-decoration: none;
}

.smw-footer a:hover {
    color: var(--smw-aqua);
}

.smw-footer-support {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem 0.45rem 0.45rem;
    border: 1px solid rgba(255, 79, 216, 0.45);
    border-radius: 999px;
    background: rgba(255, 79, 216, 0.07);
}

.smw-footer-support:hover {
    border-color: var(--smw-magenta);
    box-shadow: 0 0 14px rgba(255, 79, 216, 0.35);
}

.smw-footer-support img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.smw-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    margin-top: 2.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(63, 243, 255, 0.18);
    font-size: 0.85rem;
}

/* ---- Shared page pieces: glass cards, page headers, buttons ---- */
.smw-page {
    max-width: 1100px;
    margin: 0 auto;
}

.smw-eyebrow {
    font-family: var(--smw-display);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--smw-magenta);
    margin-bottom: 0.5rem;
}

.smw-page-title {
    font-family: var(--smw-display);
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
}

.smw-lede {
    font-size: 1.15rem;
    color: #cbd8ea;
    max-width: 46rem;
    line-height: 1.6;
}

.smw-glass {
    background: var(--smw-panel);
    border: 1px solid var(--smw-line);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    color: var(--smw-text);
}

.smw-glass h2,
.smw-glass h3 {
    color: #fff;
}

.smw-glass-accent {
    position: relative;
    overflow: hidden;
}

.smw-glass-accent::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--smw-aqua), var(--smw-magenta));
}

.smw-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.75rem;
    margin-bottom: 0.9rem;
    color: var(--smw-aqua);
    background: rgba(63, 243, 255, 0.1);
    border: 1px solid rgba(63, 243, 255, 0.35);
}

.smw-icon-badge svg {
    width: 1.4rem;
    height: 1.4rem;
}

.smw-btn-neon,
.smw-btn-neon:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    border: none;
    color: #061024;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, var(--smw-aqua), #7fb6ff);
    box-shadow: 0 0 16px rgba(63, 243, 255, 0.35);
}

.smw-btn-neon:hover {
    color: #061024;
    box-shadow: 0 0 24px rgba(63, 243, 255, 0.6);
}

.smw-btn-ghost,
.smw-btn-ghost:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    color: var(--smw-text);
    text-decoration: none;
    border: 1px solid rgba(63, 243, 255, 0.5);
    background: rgba(63, 243, 255, 0.05);
}

.smw-btn-ghost:hover {
    color: #fff;
    border-color: var(--smw-aqua);
    background: rgba(63, 243, 255, 0.12);
}

/* ---- About ---- */
.smw-hero {
    padding: 2.5rem 0 2rem;
}

.smw-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: smw-step;
}

.smw-steps li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.1rem;
    counter-increment: smw-step;
}

.smw-steps li::before {
    content: counter(smw-step);
    position: absolute;
    left: 0;
    top: -0.1rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--smw-display);
    font-size: 0.85rem;
    color: var(--smw-aqua);
    border: 1px solid var(--smw-aqua);
    box-shadow: 0 0 10px rgba(63, 243, 255, 0.35);
}

.smw-app-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.smw-app-card,
.smw-app-card:visited {
    display: block;
    text-decoration: none;
    color: var(--smw-text);
    border-radius: 0.85rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 14, 40, 0.9);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.smw-app-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.smw-app-card span {
    display: block;
    padding: 0.6rem 0.75rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.smw-app-card:hover {
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--smw-aqua);
    box-shadow: 0 0 18px rgba(63, 243, 255, 0.35);
}

/* ---- Sign in ---- */
.smw-signin {
    max-width: 960px;
    margin: 2rem auto;
}

.smw-signin-panel {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    overflow: hidden;
    padding: 0;
}

.smw-signin-art {
    position: relative;
    min-height: 420px;
    background: url('/images/cyberthinker.jpg') center / cover no-repeat;
}

.smw-signin-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 8, 22, 0.15), rgba(9, 14, 40, 0.95));
}

.smw-signin-body {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.smw-check-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

.smw-check-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.55rem;
    color: #d3dfef;
}

.smw-check-list li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.3rem;
    width: 0.45rem;
    height: 0.8rem;
    border-right: 2px solid var(--smw-aqua);
    border-bottom: 2px solid var(--smw-aqua);
    transform: rotate(40deg);
}

/* Google's own sign-in button style (white, the four-color G), per Google's branding guidelines. */
.smw-google-button,
.smw-google-button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    background: #fff;
    color: #1f1f1f;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #dadce0;
    box-shadow: 0 0 0 3px rgba(63, 243, 255, 0.0);
    transition: box-shadow 0.15s ease;
}

.smw-google-button:hover {
    color: #1f1f1f;
    box-shadow: 0 0 0 3px rgba(63, 243, 255, 0.45), 0 0 22px rgba(63, 243, 255, 0.35);
}

.smw-google-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.smw-fine-print {
    font-size: 0.82rem;
    color: var(--smw-muted);
    margin-top: 1rem;
}

@media (max-width: 767.98px) {
    .smw-signin-panel {
        grid-template-columns: 1fr;
    }

    .smw-signin-art {
        min-height: 170px;
    }

    .smw-signin-art::after {
        background: linear-gradient(180deg, rgba(5, 8, 22, 0.1), rgba(9, 14, 40, 0.98));
    }

    .smw-signin-body {
        padding: 1.5rem 1.25rem 1.75rem;
    }
}

/* ---- Profile (ProfileSummary and AvatarUploadForm come from SeriousMindware.Identity.Razor) ---- */
.smw-profile-page .smw-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.smw-profile-page .smw-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--smw-aqua);
    box-shadow: 0 0 18px rgba(63, 243, 255, 0.45);
}

.smw-profile-page .smw-profile-name {
    font-family: var(--smw-display);
    color: #fff;
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
}

.smw-profile-page .smw-profile-email {
    color: var(--smw-muted);
}

.smw-profile-page .smw-profile-tier .badge {
    font-size: 0.85rem;
}

.smw-profile-page form,
.smw-profile-page .smw-avatar-upload {
    width: 100%;
    max-width: 340px;
    margin: 0.75rem auto 0;
}

.smw-profile-page input[type=file] {
    color: var(--smw-muted);
    max-width: 100%;
}

.smw-profile-page .btn-primary {
    border: none;
    border-radius: 999px;
    color: #061024;
    font-weight: 600;
    background: linear-gradient(135deg, var(--smw-aqua), #7fb6ff);
}

.smw-admin-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.5rem;
}

.smw-admin-links a {
    display: block;
    padding: 0.55rem 0.8rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(63, 243, 255, 0.3);
    color: #dbe6f6;
    text-decoration: none;
    background: rgba(63, 243, 255, 0.04);
}

.smw-admin-links a:hover {
    border-color: var(--smw-aqua);
    color: #fff;
    background: rgba(63, 243, 255, 0.12);
}

/* ---- Landing page app tiles ---- */
.smw-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    width: 320px;
    max-width: calc(100% - 1rem);
    margin: 0.75rem 0.5rem 1rem;
}

.smw-tile,
.smw-tile:visited {
    display: block;
    text-decoration: none;
    color: #fff;
    border-radius: 0.85rem;
    overflow: hidden;
    background: rgba(8, 12, 36, 0.88);
    border: 1px solid rgba(63, 243, 255, 0.3);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.smw-tile img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.smw-tile span {
    display: block;
    padding: 0.55rem 0.7rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.smw-tile:hover {
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--smw-aqua);
    box-shadow: 0 0 20px rgba(63, 243, 255, 0.4);
}

.smw-tile-private {
    border-color: rgba(255, 79, 216, 0.55);
}

.smw-tile-private span::after {
    content: "Invite only";
    float: right;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--smw-magenta);
    margin-top: 0.2rem;
}

.smw-caret-only {
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-left: 0.1rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: 0.75;
}
