
/* ---- Ariadne, the Space Age Librarian: home welcome band + course-page guide card ---- */
.ariadne-welcome {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin: 1.25rem 0 1.5rem;
    border: 1px solid rgba(255, 200, 90, 0.35);
    box-shadow: 0 0 18px rgba(255, 190, 70, 0.12);
}

    .ariadne-welcome:hover {
        transform: none; /* a band, not a clickable card */
    }

.ariadne-welcome-img {
    flex: 0 0 auto;
    width: 240px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.ariadne-welcome-text h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    margin-bottom: 0.6rem;
}

.ariadne-eyebrow {
    font-family: 'Cinzel', serif;
    color: #ffcf6e;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.ariadne-benefits-heading {
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.ariadne-benefits {
    padding-left: 1.2rem;
    margin-bottom: 0.6rem;
}

    .ariadne-benefits li {
        margin-bottom: 0.2rem;
    }

    .ariadne-benefits li::marker {
        color: #ffcf6e;
    }

.ariadne-small {
    font-size: 0.875rem;
    opacity: 0.85;
}

.ariadne-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.6rem;
}

/* .course-card a would otherwise restyle the button as an underlined link */
.course-card a.ariadne-cta,
.course-card a.ariadne-cta:hover {
    display: inline-flex;
    height: auto;
    padding: 0.5rem 1.25rem;
}

.ariadne-guide {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 0.5rem 0 1.5rem;
    border: 1px solid rgba(255, 200, 90, 0.3);
}

    .ariadne-guide:hover {
        transform: none;
    }

.ariadne-guide-avatar {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid #ffcf6e;
    box-shadow: 0 0 10px rgba(255, 190, 70, 0.45);
}

@media (max-width: 640px) {
    .ariadne-welcome {
        flex-direction: column;
        align-items: stretch;
    }

    .ariadne-welcome-img {
        width: 100%;
        max-height: 260px;
        object-position: center 20%;
    }

    .ariadne-guide-avatar {
        width: 56px;
        height: 56px;
    }
}

/* ---- Course cards as volumes: leather spine, gold thread, catalog plate, seal (CourseGrid) ---- */
.course-card.course-volume {
    position: relative;
    padding-left: 34px;
    border-radius: 4px 12px 12px 4px;
    border: 1px solid rgba(255, 200, 90, 0.22);
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    /* the leather spine */
    .course-card.course-volume::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 16px;
        border-radius: 4px 0 0 4px;
        background: linear-gradient(90deg, #3b2111, #6b3d1e 45%, #3b2111);
        box-shadow: inset -2px 0 3px rgba(0, 0, 0, 0.55);
    }

    /* Ariadne's thread along the spine; brightens on hover */
    .course-card.course-volume::after {
        content: "";
        position: absolute;
        left: 16px;
        top: 10px;
        bottom: 10px;
        width: 2px;
        background: linear-gradient(rgba(255, 207, 110, 0), #ffcf6e, rgba(255, 207, 110, 0));
        box-shadow: 0 0 6px rgba(255, 191, 71, 0.6);
        transition: box-shadow 0.25s ease;
    }

    .course-card.course-volume:hover {
        border-color: rgba(255, 207, 110, 0.55);
        box-shadow: 0 0 0 1px rgba(255, 207, 110, 0.35), 0 0 22px rgba(255, 191, 71, 0.25);
    }

        .course-card.course-volume:hover::after {
            box-shadow: 0 0 12px #ffbf47, 0 0 4px #ffcf6e;
        }

.volume-plate {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffcf6e;
    margin-bottom: 0.5rem;
    padding-right: 2rem; /* clear of the seal */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.volume-seal {
    position: absolute;
    top: -10px;
    right: -8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: radial-gradient(#2a1a40, #120a22);
    border: 1.5px solid #ffcf6e;
    box-shadow: 0 0 10px rgba(255, 191, 71, 0.4);
    z-index: 2;
}

@media (max-width: 480px) {
    /* beats the phone padding on .course-grid-card in seriouscourses.css, so text clears the spine */
    .course-card.course-grid-card.course-volume {
        padding-left: 26px;
        padding-right: 10px;
    }

    .volume-seal {
        right: 2px;
    }
}

/* ---- "The reading lectern": featured carousel under an arch (CourseCarousel) ---- */
.course-lectern {
    position: relative;
    padding: 2.5rem 1rem 1rem;
    border-radius: 48% 48% 14px 14px / 70px 70px 14px 14px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 200, 90, 0.14), transparent 60%), rgba(6, 8, 22, 0.85);
    border: 1px solid rgba(255, 200, 90, 0.3);
}

.lectern-plate {
    text-align: center;
    font-family: 'Cinzel', serif;
    color: #ffcf6e;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.course-lectern iframe,
.course-lectern .carousel-item img {
    box-shadow: 0 0 0 2px #6b3d1e, 0 0 0 4px rgba(255, 207, 110, 0.35), 0 0 36px rgba(255, 191, 71, 0.2);
    border-radius: 6px;
}

.lectern-thread {
    height: 2px;
    width: 60%;
    margin: 0.25rem auto 0.25rem;
    background: linear-gradient(90deg, transparent, #ffcf6e, transparent);
    box-shadow: 0 0 8px #ffbf47;
}

@media (max-width: 576px) {
    .course-lectern {
        padding-top: 1.75rem;
        border-radius: 40% 40% 12px 12px / 36px 36px 12px 12px;
    }
}

/* ---- Library wings: topic tiles as arched doorways with a gold frame and brass plaque ---- */
/* (ImageTopicTile on Home and the group hub pages; overrides the plain .topic-tile look) */
.topic-tile {
    border-radius: 46% 46% 10px 10px / 34% 34% 10px 10px;
    border: 2px solid rgba(255, 207, 110, 0.45);
    box-shadow: 0 0 0 4px rgba(20, 14, 30, 0.85), 0 0 0 5px rgba(255, 207, 110, 0.25), 0 6px 16px rgba(0, 0, 0, 0.45);
}

    .topic-tile:hover {
        border-color: #ffcf6e;
        box-shadow: 0 0 0 4px rgba(20, 14, 30, 0.85), 0 0 0 5px rgba(255, 207, 110, 0.6), 0 0 26px rgba(255, 191, 71, 0.35);
    }

    .topic-tile img {
        transition: transform 0.4s ease, filter 0.4s ease;
        filter: saturate(0.9) brightness(0.9);
    }

    .topic-tile:hover img {
        transform: scale(1.04);
        filter: saturate(1.05) brightness(1);
    }

    /* the brass plaque */
    .topic-tile .topic-tile-label {
        left: 50%;
        right: auto;
        bottom: 12px;
        transform: translateX(-50%);
        max-width: calc(100% - 24px);
        padding: 6px 18px 7px;
        text-align: center;
        white-space: nowrap;
        background: linear-gradient(rgba(14, 10, 26, 0.92), rgba(6, 8, 22, 0.92));
        border: 1px solid rgba(255, 207, 110, 0.7);
        border-radius: 6px;
        box-shadow: 0 0 10px rgba(255, 191, 71, 0.25);
        font-family: 'Cinzel', serif;
        font-weight: 700;
        color: #ffe3a3;
        letter-spacing: 0.1em;
    }

.topic-tile-eyebrow {
    display: block;
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    color: #9fd8ff;
    text-shadow: 0 0 6px rgba(74, 184, 255, 0.7);
    margin-bottom: 1px;
}

.library-wings {
    margin-top: 1.5rem;
}

.library-wings-heading {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.5rem;
}

    .library-wings-heading h2 {
        font-family: 'Cinzel', serif;
        color: #ffffff;
        font-size: clamp(1.2rem, 2.2vw, 1.6rem);
        margin-bottom: 0.15rem;
    }

    .library-wings-heading p {
        margin: 0;
        color: #f5f5f5;
        opacity: 0.88;
    }

.library-wings-avatar {
    flex: 0 0 auto;
    border-radius: 50%;
    border: 2px solid #ffcf6e;
    box-shadow: 0 0 10px rgba(255, 190, 70, 0.45);
}

.library-wings-sign {
    font-family: 'Cinzel', serif;
    color: #ffcf6e;
    white-space: nowrap;
}

    .library-wings-sign::before {
        content: "\2014\00a0";
    }

/* a little more room between doorways so the frames don't touch */
.topic-tile-grid, .topic-link-grid {
    gap: 22px;
}

/* ---- Front desk: the contact card at the bottom of pages (CommonRazor/PageFooter.razor) ---- */
.library-thread-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffcf6e 20%, #ffcf6e 80%, transparent);
    box-shadow: 0 0 8px rgba(255, 191, 71, 0.6);
    opacity: 0.85;
}

.front-desk {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid rgba(255, 200, 90, 0.3);
}

    .front-desk:hover {
        transform: none;
    }

    .front-desk h2 {
        font-family: 'Cinzel', serif;
        font-size: clamp(1.2rem, 2vw, 1.45rem);
        margin-bottom: 0.5rem;
    }

.front-desk-avatar {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #ffcf6e;
    box-shadow: 0 0 10px rgba(255, 190, 70, 0.45);
}

.course-card a.front-desk-mail {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(255, 207, 110, 0.6);
    border-radius: 999px;
    color: #ffe3a3;
    overflow-wrap: anywhere;
}

    .course-card a.front-desk-mail:hover {
        border-color: #ffcf6e;
        box-shadow: 0 0 10px rgba(255, 191, 71, 0.35);
    }

@media (max-width: 480px) {
    .front-desk-avatar {
        width: 48px;
        height: 48px;
    }
}

/* ---- Site footer: the library's foundation stone (CommonRazor/SiteFooter.razor) ---- */
.site-footer {
    position: relative;
    background-image:
        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(255, 255, 255, 0.28), transparent);
    background-size: 200px 200px, 260px 260px, 230px 230px;
}

.site-footer-thread {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffcf6e 15%, #ffcf6e 85%, transparent);
    box-shadow: 0 0 10px rgba(255, 191, 71, 0.6);
}

.site-footer a.site-footer-brand {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #ffe3a3;
    letter-spacing: 0.04em;
    margin-bottom: 0;
}

.site-footer-subbrand {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9fd8ff;
    text-shadow: 0 0 6px rgba(74, 184, 255, 0.6);
    margin-bottom: 0.6rem;
}

.site-footer-heading {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: #ffcf6e;
    letter-spacing: 0.12em;
}

/* footer bullets: tiny gold planets with a starlight ring (same mark as the nav brand) */
.site-footer-links li::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 0.45rem;
    vertical-align: -1px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='rotate(-20 12 12)'%3E%3Cellipse cx='12' cy='12' rx='10.5' ry='3.4' fill='none' stroke='%239fd8ff' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='12' r='5.6' fill='%23ffcf6e'/%3E%3Cpath d='M1.5 12 A10.5 3.4 0 0 0 22.5 12' fill='none' stroke='%239fd8ff' stroke-width='1.8'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.85;
}

.site-footer-patreon {
    border-color: rgba(255, 207, 110, 0.45);
}

.site-footer-bottom {
    border-top-color: rgba(255, 207, 110, 0.25);
}

/* ---- Top menu: the library's lintel (CommonRazor/NavMenu.razor) ---- */
nav.navbar.glass-dark {
    background: linear-gradient(rgba(10, 12, 34, 0.92), rgba(6, 8, 22, 0.85));
    border-bottom: 1px solid rgba(255, 207, 110, 0.35);
    box-shadow: 0 1px 0 rgba(255, 207, 110, 0.15), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.navbar .navbar-brand {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffe3a3;
}

    .navbar .navbar-brand:hover,
    .navbar .navbar-brand:focus {
        color: #fff1c9;
    }

/* small ringed planet before the brand (inline SVG in NavMenu.razor) */
.navbar-brand-planet {
    vertical-align: -4px;
    margin-right: 0.15rem;
    filter: drop-shadow(0 0 4px rgba(74, 184, 255, 0.7));
}

.navbar-dark .navbar-nav .nav-link {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    color: rgba(241, 241, 244, 0.85);
    position: relative;
}

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link:focus-visible,
    .navbar-dark .navbar-nav .nav-link.active,
    .navbar-dark .navbar-nav .show > .nav-link {
        color: #ffcf6e;
        text-shadow: 0 0 8px rgba(255, 191, 71, 0.45);
    }

/* a short gold thread under the current section */
@media (min-width: 992px) {
    .navbar-dark .navbar-nav .nav-link.active::after {
        content: "";
        position: absolute;
        left: 0.5rem;
        right: 0.5rem;
        bottom: 2px;
        height: 2px;
        background: linear-gradient(90deg, transparent, #ffcf6e, transparent);
        box-shadow: 0 0 6px #ffbf47;
    }
}

.navbar .dropdown-menu-dark {
    background: rgba(10, 12, 34, 0.97);
    border: 1px solid rgba(255, 207, 110, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 14px rgba(255, 191, 71, 0.12);
}

    .navbar .dropdown-menu-dark .dropdown-item {
        color: rgba(241, 241, 244, 0.88);
    }

        .navbar .dropdown-menu-dark .dropdown-item:hover,
        .navbar .dropdown-menu-dark .dropdown-item:focus,
        .navbar .dropdown-menu-dark .dropdown-item.active {
            background: rgba(255, 207, 110, 0.14);
            color: #ffcf6e;
        }

/* ---- Topic ribbon: a brass title plate above the carousel (CommonRazor/TopicRibbon.razor) ---- */
.topic-ribbon {
    position: relative;
    justify-content: center;
    padding: 12px 20px 14px;
    background: linear-gradient(rgba(14, 12, 34, 0.9), rgba(6, 8, 22, 0.88));
    border: 1px solid rgba(255, 207, 110, 0.45);
    box-shadow: 0 0 16px rgba(255, 191, 71, 0.12);
}

    .topic-ribbon::after {
        content: "";
        position: absolute;
        left: 20%;
        right: 20%;
        bottom: -1px;
        height: 2px;
        background: linear-gradient(90deg, transparent, #ffcf6e, transparent);
        box-shadow: 0 0 8px #ffbf47;
    }

.topic-ribbon-eyebrow {
    font-family: 'Cinzel', serif;
    color: #9fd8ff;
    text-shadow: 0 0 6px rgba(74, 184, 255, 0.6);
}

.topic-ribbon-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #ffe3a3;
}

@media (max-width: 576px) {
    .topic-ribbon {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-align: center;
    }
}

/* ---- Shared page header (CommonRazor/PageHeader.razor) ---- */
.page-header {
    position: relative;
    background: linear-gradient(rgba(14, 12, 34, 0.88), rgba(6, 8, 22, 0.85));
    border: 1px solid rgba(255, 207, 110, 0.3);
    border-left: 4px solid #6b3d1e; /* a hint of the leather spine */
}

    .page-header h1 {
        font-family: 'Cinzel', serif;
        font-weight: 700;
        color: #ffe3a3;
        letter-spacing: 0.03em;
    }

    .page-header h3.page-header-welcome {
        font-family: 'Cinzel', serif;
        color: #9fd8ff;
        text-shadow: 0 0 6px rgba(74, 184, 255, 0.5);
        letter-spacing: 0.06em;
    }

    .page-header h4 a {
        color: #ffcf6e;
        text-decoration: underline;
    }

/* ---- Wings heading: its own dark plate so the text reads over any background ---- */
.library-wings-heading {
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    background: linear-gradient(rgba(10, 12, 34, 0.92), rgba(6, 8, 22, 0.9));
    border: 1px solid rgba(255, 207, 110, 0.4);
    box-shadow: 0 0 16px rgba(255, 191, 71, 0.12), 0 6px 16px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

    .library-wings-heading p {
        opacity: 1;
        color: #f1f1f4;
    }

/* ============================================================
   Blog: posts as manuscripts, the older posts as the library archive
   (BlogRazor/BlogCard.razor, BlogArchiveList.razor; /blog and /blog/{slug})
   ============================================================ */

/* the manuscript: leather binding on the left with Ariadne's thread along it */
.course-card.featured-blog,
.course-card.blog-entry {
    position: relative;
    border: 1px solid rgba(255, 200, 90, 0.25);
    border-left: 12px solid #5a3218;
    border-radius: 6px 12px 12px 6px;
    box-shadow: inset 2px 0 0 rgba(255, 207, 110, 0.55), 0 0 18px rgba(255, 191, 71, 0.08);
}

    .course-card.featured-blog:hover,
    .course-card.blog-entry:hover {
        transform: none; /* long reading cards shouldn't jump */
        box-shadow: inset 2px 0 0 #ffcf6e, 0 0 22px rgba(255, 191, 71, 0.18);
    }

.featured-blog-hero {
    border-radius: 0 12px 0 0;
}

.featured-blog-label {
    font-family: 'Cinzel', serif;
    color: #ffcf6e;
    letter-spacing: 0.14em;
}

    .featured-blog-label::before {
        content: "";
        display: inline-block;
        width: 13px;
        height: 13px;
        margin-right: 0.45rem;
        vertical-align: -2px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='rotate(-20 12 12)'%3E%3Cellipse cx='12' cy='12' rx='10.5' ry='3.4' fill='none' stroke='%239fd8ff' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='12' r='5.6' fill='%23ffcf6e'/%3E%3Cpath d='M1.5 12 A10.5 3.4 0 0 0 22.5 12' fill='none' stroke='%239fd8ff' stroke-width='1.8'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
    }

.featured-blog-title,
.blog-entry-title {
    font-family: 'Cinzel', serif;
    color: #ffe3a3;
    letter-spacing: 0.02em;
}

.blog-meta,
.blog-published-date {
    color: #9fd8ff;
}

/* section headings inside a post: gold Cinzel with a thread underline */
.blog-section-header {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: #ffcf6e;
    letter-spacing: 0.04em;
    border-bottom: none;
    padding-bottom: 6px;
    background: linear-gradient(90deg, #ffcf6e, rgba(255, 207, 110, 0)) left bottom / 60% 1px no-repeat;
}

/* callouts read like margin notes */
.blog-highlight,
.blog-highlight-bullet {
    background: rgba(255, 207, 110, 0.06);
    border-left-color: #ffcf6e;
}

.blog-watch-btn {
    font-family: 'Cinzel', serif;
    color: #ffe3a3;
    border-color: rgba(255, 207, 110, 0.55);
    background: rgba(255, 207, 110, 0.08);
}

    .blog-watch-btn:hover {
        border-color: #ffcf6e;
        background: rgba(255, 207, 110, 0.16);
        box-shadow: 0 0 10px rgba(255, 191, 71, 0.3);
    }

.blog-author-box {
    border-top: 1px solid rgba(255, 207, 110, 0.3);
    background: rgba(255, 207, 110, 0.05);
}

.blog-author-avatar {
    border-color: #ffcf6e;
}

.blog-author-label {
    font-family: 'Cinzel', serif;
    color: #ffcf6e;
}

/* ---- The archive: a card catalog of older posts ---- */
.blog-archive {
    background: linear-gradient(rgba(12, 12, 32, 0.9), rgba(6, 8, 22, 0.88));
    border: 1px solid rgba(255, 207, 110, 0.35);
    box-shadow: 0 0 18px rgba(255, 191, 71, 0.08);
}

.blog-archive-heading {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: #ffe3a3;
    letter-spacing: 0.05em;
    border-bottom: none;
    padding-bottom: 0.6rem;
    background: linear-gradient(90deg, transparent, #ffcf6e 20%, #ffcf6e 80%, transparent) left bottom / 100% 1px no-repeat;
}

.blog-archive-item {
    border-bottom: 1px solid rgba(255, 207, 110, 0.12);
}

/* each entry is a catalog card with a small leather tab that lights up on hover */
.blog-archive-link {
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid #5a3218;
    border-radius: 3px 6px 6px 3px;
    margin: 0.35rem 0;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .blog-archive-link:hover,
    .blog-archive-link:focus-visible {
        background: rgba(255, 207, 110, 0.06);
        border-left-color: #ffcf6e;
        box-shadow: -2px 0 10px rgba(255, 191, 71, 0.35);
    }

        .blog-archive-link:hover .blog-archive-title {
            color: #ffcf6e;
        }

.blog-archive-title {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.02em;
}

.blog-archive-date {
    font-family: 'Cinzel', serif;
    color: #9fd8ff;
}

.blog-archive-summary {
    color: #c3cbe0;
}

/* ---- The Game Room: games bar as arched alcoves (GamesRazor/Components/GamesBar.razor, GameCard.razor) ---- */
.game-room {
    margin: 0.75rem 0 1.25rem;
    padding: 1.1rem 1.25rem 1.4rem;
    border-radius: 12px;
    background: linear-gradient(rgba(12, 12, 32, 0.92), rgba(6, 8, 22, 0.9));
    border: 1px solid rgba(255, 207, 110, 0.35);
    box-shadow: 0 0 18px rgba(255, 191, 71, 0.08);
}

.game-room-heading {
    text-align: center;
    margin-bottom: 1rem;
}

    .game-room-heading h2 {
        font-family: 'Cinzel', serif;
        font-weight: 700;
        color: #ffe3a3;
        font-size: clamp(1.25rem, 2.4vw, 1.7rem);
        letter-spacing: 0.05em;
        margin-bottom: 0.2rem;
    }

.game-room-sub {
    margin: 0 auto;
    padding-bottom: 0.6rem;
    max-width: 32rem;
    color: #e6e8f0;
    background: linear-gradient(90deg, transparent, #ffcf6e, transparent) center bottom / 60% 1px no-repeat;
}

.game-room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
}

/* each game is an arched alcove with a brass name plaque */
.game-alcove {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 0.75rem 0.85rem;
    text-decoration: none;
    border-radius: 46% 46% 10px 10px / 26% 26% 10px 10px;
    background: radial-gradient(ellipse at 50% 15%, rgba(74, 140, 255, 0.22), transparent 65%), rgba(10, 12, 34, 0.95);
    border: 2px solid rgba(255, 207, 110, 0.45);
    box-shadow: 0 0 0 3px rgba(20, 14, 30, 0.85), 0 6px 14px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .game-alcove:hover,
    .game-alcove:focus-visible {
        transform: translateY(-4px);
        border-color: #ffcf6e;
        box-shadow: 0 0 0 3px rgba(20, 14, 30, 0.85), 0 0 22px rgba(255, 191, 71, 0.4);
    }

.game-alcove-art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

    .game-alcove-art img {
        max-width: 100%;
        height: auto;
        max-height: 130px;
        object-fit: contain;
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
        transition: transform 0.3s ease;
    }

.game-alcove:hover .game-alcove-art img {
    transform: scale(1.05);
}

.game-alcove-name {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-align: center;
    color: #ffe3a3;
    padding: 4px 12px 5px;
    border: 1px solid rgba(255, 207, 110, 0.7);
    border-radius: 6px;
    background: linear-gradient(rgba(14, 10, 26, 0.95), rgba(6, 8, 22, 0.95));
}

@media (max-width: 480px) {
    .game-room-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .game-alcove-art {
        min-height: 90px;
    }

        .game-alcove-art img {
            max-height: 95px;
        }
}

/* ---- Game portal: the frame every game opens in (GamesRazor/GameLayout.razor) ----
   The game keeps its own colors inside; only the doorway around it is themed. */
.game-portal {
    margin: 0.5rem 0 1.5rem;
}

.game-portal-arch {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 14px 16px 8px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(255, 200, 90, 0.18), transparent 70%), linear-gradient(rgba(14, 12, 34, 0.96), rgba(8, 10, 28, 0.96));
    border: 2px solid rgba(255, 207, 110, 0.6);
    border-bottom: none;
    box-shadow: 0 -4px 18px rgba(255, 191, 71, 0.15);
}

.game-portal-plaque {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffe3a3;
    padding: 3px 14px 4px;
    border: 1px solid rgba(255, 207, 110, 0.7);
    border-radius: 6px;
    background: rgba(6, 8, 22, 0.9);
    box-shadow: 0 0 10px rgba(255, 191, 71, 0.25);
}

.game-portal-back {
    position: absolute;
    left: 18%;
    bottom: 10px;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: #9fd8ff;
    text-decoration: none;
    text-shadow: 0 0 6px rgba(74, 184, 255, 0.5);
}

    .game-portal-back:hover,
    .game-portal-back:focus-visible {
        color: #ffcf6e;
        text-decoration: underline;
    }

.game-portal-frame {
    position: relative;
    padding: 6px;
    background: rgba(6, 8, 22, 0.88);
    border: 2px solid rgba(255, 207, 110, 0.6);
    border-top: 1px solid rgba(255, 207, 110, 0.35);
    box-shadow: inset 0 0 0 3px rgba(20, 14, 30, 0.9), 0 0 24px rgba(255, 191, 71, 0.15), 0 8px 24px rgba(0, 0, 0, 0.5);
}

    /* brass rivets in the four corners */
    .game-portal-frame::before,
    .game-portal-frame::after {
        content: "";
        position: absolute;
        bottom: 6px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 35%, #fff1c9, #c8932f 60%, #6b4a12);
        box-shadow: 0 0 6px rgba(255, 191, 71, 0.6);
    }

    .game-portal-frame::before {
        left: 6px;
    }

    .game-portal-frame::after {
        right: 6px;
    }

/* the doorsill, with Ariadne's thread running across it */
.game-portal-sill {
    height: 10px;
    margin: 0 -8px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(#5a3218, #3b2111);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 207, 110, 0.55);
}

@media (max-width: 576px) {
    .game-portal-back {
        left: 12px;
        bottom: 6px;
    }

    .game-portal-arch {
        border-radius: 40% 40% 0 0 / 80% 80% 0 0;
    }
}

/* ---- Course grid pager: brass page tabs on a dark plate (CoursesRazor/CourseGrid.razor) ---- */
.course-grid-pager {
    position: relative;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    background: linear-gradient(rgba(12, 12, 32, 0.92), rgba(6, 8, 22, 0.9));
    border: 1px solid rgba(255, 207, 110, 0.4);
    box-shadow: 0 0 16px rgba(255, 191, 71, 0.12), 0 4px 18px rgba(0, 0, 0, 0.45);
}

    /* Ariadne's thread running under the page tabs */
    .course-grid-pager::after {
        content: "";
        position: absolute;
        left: 12%;
        right: 12%;
        bottom: -1px;
        height: 2px;
        background: linear-gradient(90deg, transparent, #ffcf6e, transparent);
        box-shadow: 0 0 8px #ffbf47;
    }

.course-grid-pager-link {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffe3a3;
    border: 1px solid rgba(255, 207, 110, 0.45);
    background: rgba(14, 12, 34, 0.95);
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    a.course-grid-pager-link:hover,
    a.course-grid-pager-link:focus-visible {
        color: #ffcf6e;
        border-color: #ffcf6e;
        box-shadow: 0 0 10px rgba(255, 191, 71, 0.4);
        transform: translateY(-2px);
    }

    /* the page you're on: a polished brass tab */
    .course-grid-pager-link.current {
        background: linear-gradient(#ffe3a3, #e0a93f);
        border-color: #ffcf6e;
        color: #1b1b2f;
        box-shadow: 0 0 12px rgba(255, 191, 71, 0.55);
    }

/* ---- Get Started: the Library Card Desk (plans as library cards) ---- */
.card-desk-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.1rem 1.4rem;
    border-radius: 14px;
    background: linear-gradient(rgba(12, 12, 32, 0.93), rgba(6, 8, 22, 0.9));
    border: 1px solid rgba(255, 207, 110, 0.4);
    box-shadow: 0 0 18px rgba(255, 191, 71, 0.12), 0 4px 18px rgba(0, 0, 0, 0.45);
}

    .card-desk-hero::after {
        content: "";
        position: absolute;
        left: 10%;
        right: 10%;
        bottom: -1px;
        height: 2px;
        background: linear-gradient(90deg, transparent, #ffcf6e, transparent);
        box-shadow: 0 0 8px rgba(255, 207, 110, 0.6);
    }

.card-desk-avatar {
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffcf6e;
    box-shadow: 0 0 14px rgba(255, 207, 110, 0.45);
}

.card-desk-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #ffe3a3;
    margin-bottom: 0.35rem;
    text-shadow: 0 0 12px rgba(255, 191, 71, 0.25);
}

.card-desk-sub {
    color: #dfe9ff;
}

.card-desk-notice {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    color: #ffe3a3;
    font-weight: 600;
    background: rgba(6, 8, 22, 0.9);
    border: 1px solid rgba(255, 207, 110, 0.5);
}

/* Plan cards as library cards: dark board, brass edge, leather stamp strip on top */
.card-desk .library-card {
    position: relative;
    padding-top: 2.1rem;
    background: linear-gradient(rgba(16, 14, 38, 0.95), rgba(8, 9, 24, 0.95));
    border: 1px solid rgba(255, 207, 110, 0.45);
    box-shadow: 0 0 14px rgba(255, 191, 71, 0.1), 0 6px 18px rgba(0, 0, 0, 0.5);
}

    .card-desk .library-card::before {
        content: "Library card";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        padding: 0.25rem 0;
        border-radius: 12px 12px 0 0;
        text-align: center;
        font-family: 'Cinzel', serif;
        font-size: 0.72rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: #ffe3a3;
        background: linear-gradient(180deg, #6b3d1e, #3b2111);
        border-bottom: 1px solid rgba(255, 207, 110, 0.55);
    }

    .card-desk .library-card:hover {
        border-color: #ffcf6e;
        box-shadow: 0 0 20px rgba(255, 207, 110, 0.28), 0 8px 22px rgba(0, 0, 0, 0.55);
    }

    .card-desk .library-card h2,
    .card-desk .library-card h3,
    .card-desk .library-card h4,
    .card-desk .library-card h5 {
        font-family: 'Cinzel', serif;
        font-weight: 700;
        color: #ffcf6e;
    }

    .card-desk .library-card li::marker {
        color: #ffcf6e;
    }

.card-desk .smw-tier-current {
    color: #1b1b2f;
    background: linear-gradient(#ffe3a3, #e0a93f);
    border: 1px solid #ffcf6e;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255, 207, 110, 0.4);
}

.card-desk-signin {
    color: #dfe9ff;
}

    .card-desk-signin a {
        color: #ffcf6e;
        font-weight: 600;
        text-decoration: underline;
        text-decoration-color: rgba(255, 207, 110, 0.5);
    }

        .card-desk-signin a:hover {
            color: #ffe3a3;
        }

@media (max-width: 575.98px) {
    .card-desk-hero {
        flex-direction: column;
        text-align: center;
    }
}

/* ---- Call-to-action buttons (.login-button: Join free, Continue with Google, plan buttons, Ariadne CTAs) ----
   Was a cyan neon outline (app.css). Now a polished brass plate with a gold rim so it still stands out. */
.login-button,
.course-card a.login-button,
.course-card a.ariadne-cta {
    color: #1b1b2f;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 0 rgba(255, 240, 200, 0.6);
    background: linear-gradient(180deg, #ffe9b0 0%, #f2c45f 55%, #d99a32 100%);
    border: 1px solid #ffcf6e;
    border-bottom: 1px solid #ffcf6e;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(90, 50, 24, 0.85), 0 0 12px rgba(255, 191, 71, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

    .login-button:hover,
    .login-button:focus-visible,
    .login-button.active,
    .course-card a.login-button:hover,
    .course-card a.ariadne-cta:hover {
        color: #1b1b2f;
        background: linear-gradient(180deg, #fff3cf 0%, #ffd677 55%, #e6a83c 100%);
        border-color: #ffe3a3;
        box-shadow: 0 0 0 1px rgba(90, 50, 24, 0.85), 0 0 18px rgba(255, 207, 110, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.7);
        transform: translateY(-2px);
    }

/* In the navbar the button sits a little slimmer so it lines up with the menu links. */
.navbar .login-button {
    padding: 6px 16px;
    height: auto;
    align-self: center;
}

/* ---- Login page: the library's front gate ---- */
.login-desk {
    position: relative;
    border: 1px solid rgba(255, 207, 110, 0.45);
    background: linear-gradient(rgba(16, 14, 38, 0.95), rgba(8, 9, 24, 0.95));
    box-shadow: 0 0 16px rgba(255, 191, 71, 0.12), 0 6px 18px rgba(0, 0, 0, 0.5);
}

    .login-desk::after {
        content: "";
        position: absolute;
        left: 12%;
        right: 12%;
        bottom: -1px;
        height: 2px;
        background: linear-gradient(90deg, transparent, #ffcf6e, transparent);
        box-shadow: 0 0 8px rgba(255, 207, 110, 0.6);
    }

.login-desk-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.login-desk-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffcf6e;
    box-shadow: 0 0 12px rgba(255, 207, 110, 0.4);
}

.login-desk .account-page-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #ffe3a3;
    margin-bottom: 0;
}

/* ---- Mobile menu toggle: brass-rimmed button, three gold rules (the middle one a thread ending in a small star-bead) ---- */
.navbar .navbar-toggler {
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(255, 207, 110, 0.6);
    border-radius: 8px;
    background: rgba(6, 8, 22, 0.9);
    box-shadow: 0 0 0 1px rgba(90, 50, 24, 0.85), 0 0 10px rgba(255, 191, 71, 0.2);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

    .navbar .navbar-toggler:hover,
    .navbar .navbar-toggler:focus,
    .navbar .navbar-toggler[aria-expanded="true"] {
        border-color: #ffcf6e;
        box-shadow: 0 0 0 1px rgba(90, 50, 24, 0.85), 0 0 16px rgba(255, 207, 110, 0.5);
    }

.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cg stroke='%23ffcf6e' stroke-linecap='round' stroke-width='2.2'%3e%3cpath d='M4 7h22M4 23h22'/%3e%3cpath d='M4 15h15' stroke='%23ffe3a3'/%3e%3c/g%3e%3ccircle cx='24' cy='15' r='2.4' fill='%239fd8ff'/%3e%3c/svg%3e");
}

/* ---- Learning Journeys: the thread through the labyrinth ----
   Panels are reading-room plates, the map is a gold thread with a bead per concept, buttons are brass. */
.journey-panel.course-card {
    position: relative;
    background: linear-gradient(rgba(16, 14, 38, 0.95), rgba(8, 9, 24, 0.95));
    border: 1px solid rgba(255, 207, 110, 0.38);
    box-shadow: 0 0 14px rgba(255, 191, 71, 0.08), 0 6px 18px rgba(0, 0, 0, 0.45);
}

    .journey-panel.course-card:hover {
        box-shadow: 0 0 14px rgba(255, 191, 71, 0.08), 0 6px 18px rgba(0, 0, 0, 0.45);
    }

    .journey-panel.course-card::after {
        content: "";
        position: absolute;
        left: 12%;
        right: 12%;
        bottom: -1px;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(255, 207, 110, 0.85), transparent);
        pointer-events: none;
    }

.journey-panel h2,
.journey-panel .h4,
.journey-panel .h5 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #ffe3a3;
}

.journey-panel a:not(.btn) {
    color: #ffcf6e;
}

    .journey-panel a:not(.btn):hover {
        color: #ffe3a3;
    }

.journey-panel ol li::marker,
.journey-panel ul:not(.journey-concepts) li::marker {
    color: #ffcf6e;
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.journey-eyebrow {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #ffcf6e;
}

/* Journey cards on /journeys: a leather spine on the left like the course volumes */
.journey-goal-card.course-card {
    padding-left: 2.1rem;
}

    .journey-goal-card.course-card::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 14px;
        border-radius: 12px 0 0 12px;
        background: linear-gradient(90deg, #3b2111, #6b3d1e 60%, #5a3218);
        border-right: 1px solid rgba(255, 207, 110, 0.6);
        box-shadow: inset -2px 0 0 rgba(255, 207, 110, 0.25);
    }

    .journey-goal-card.course-card:hover {
        border-color: #ffcf6e;
        box-shadow: 0 0 20px rgba(255, 207, 110, 0.22), 0 8px 22px rgba(0, 0, 0, 0.5);
    }

    .journey-goal-card h2 a {
        color: #ffe3a3;
        text-decoration: none;
    }

        .journey-goal-card h2 a:hover {
            color: #ffcf6e;
        }

.journey-goal-soon.course-card::before {
    background: linear-gradient(90deg, #1d2140, #2c3363 60%, #232a52);
    border-right-color: rgba(159, 216, 255, 0.5);
}

/* Progress: a gold thread being wound */
.journey-progress {
    height: 8px;
    background: rgba(6, 8, 22, 0.9);
    border: 1px solid rgba(255, 207, 110, 0.35);
}

    .journey-progress > div {
        background: linear-gradient(90deg, #e0a93f, #ffcf6e, #ffe3a3);
        box-shadow: 0 0 8px rgba(255, 207, 110, 0.6);
    }

/* The map: stage titles with a thread underline, concepts strung on a gold thread */
.journey-stage-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #ffe3a3;
    display: inline-block;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid rgba(255, 207, 110, 0.55);
}

.journey-concepts {
    position: relative;
    padding-left: 1.4rem;
}

    .journey-concepts::before {
        content: "";
        position: absolute;
        top: 0.6rem;
        bottom: 0.6rem;
        left: 0.45rem;
        width: 2px;
        background: linear-gradient(#ffcf6e, rgba(255, 207, 110, 0.35));
        box-shadow: 0 0 6px rgba(255, 207, 110, 0.45);
    }

    .journey-concepts li {
        position: relative;
    }

        .journey-concepts li::before {
            content: "";
            position: absolute;
            left: -1.22rem;
            top: 50%;
            width: 10px;
            height: 10px;
            margin-top: -5px;
            border-radius: 50%;
            background: #0b0d1f;
            border: 2px solid #ffcf6e;
        }

        .journey-concepts li:has(.journey-chip-mastered)::before,
        .journey-concepts li:has(.journey-chip-known)::before {
            background: #ffcf6e;
        }

        .journey-concepts li.journey-current {
            background: rgba(159, 216, 255, 0.1);
            outline: 1px solid rgba(255, 207, 110, 0.55);
            box-shadow: 0 0 12px rgba(255, 207, 110, 0.18);
        }

            .journey-concepts li.journey-current::before {
                background: #9fd8ff;
                border-color: #ffe3a3;
                box-shadow: 0 0 8px rgba(159, 216, 255, 0.9);
            }

/* Questions */
.journey-prompt {
    color: #ffe3a3;
}

.journey-choice {
    border-color: rgba(255, 207, 110, 0.35);
    background: rgba(6, 8, 22, 0.75);
}

    .journey-choice:hover:not(:disabled) {
        background: rgba(255, 207, 110, 0.12);
        border-color: #ffcf6e;
    }

.journey-rating .btn.active {
    background: linear-gradient(#ffe3a3, #e0a93f);
    border-color: #ffcf6e;
    color: #1b1b2f;
}

/* Buttons: primary = polished brass (same as .login-button), secondary = brass outline */
.journey-panel .btn-light,
.course-card .journey-panel a.btn-light {
    color: #1b1b2f;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    background: linear-gradient(180deg, #ffe9b0 0%, #f2c45f 55%, #d99a32 100%);
    border: 1px solid #ffcf6e;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(90, 50, 24, 0.85), 0 0 10px rgba(255, 191, 71, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

    .journey-panel .btn-light:hover,
    .journey-panel .btn-light:focus-visible {
        color: #1b1b2f;
        background: linear-gradient(180deg, #fff3cf 0%, #ffd677 55%, #e6a83c 100%);
        border-color: #ffe3a3;
        box-shadow: 0 0 0 1px rgba(90, 50, 24, 0.85), 0 0 16px rgba(255, 207, 110, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }

.journey-panel .btn-outline-light:not(.journey-curate) {
    color: #ffe3a3;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    background: rgba(6, 8, 22, 0.8);
    border: 1px solid rgba(255, 207, 110, 0.6);
    border-radius: 8px;
}

    .journey-panel .btn-outline-light:not(.journey-curate):hover:not(:disabled) {
        color: #ffcf6e;
        background: rgba(255, 207, 110, 0.1);
        border-color: #ffcf6e;
        box-shadow: 0 0 12px rgba(255, 207, 110, 0.35);
    }
