/* ============================================================
   MARKETPLACE — Guildheim content marketplace
   Location: /public_html/css/marketplace.css

   Restyle of the public marketplace browse page to the
   "Cartographer's Scriptorium" look used by the homepage and
   marketing inner pages (home.css / inner.css). Reuses the same
   design tokens, fonts, and component vocabulary.

   This stylesheet is loaded STANDALONE by tavern/marketplace.php
   (it redeclares the tokens it needs). It styles two things:
     1. The page chrome — marketing nav, hero, controls, footer.
     2. Every CSS class the marketplace AJAX/render JavaScript
        emits (mp-card, mp-tab, mp-grid, badge-*, etc.). Those
        class names are FIXED by the unchanged JS — this file
        restyles them; it must not rename them.

   Created: 2026-05-17 — Phase 15 (marketplace restyle)
   Palette: Deep Inkwell · Weathered Plank · Aged Vellum
            Amber Flame · Celestial Midnight · Antique Brass
   ============================================================ */

:root {
    --ink:      #1A1612;
    --ink-2:    #0f0c09;
    --plank:    #2D241E;
    --plank-2:  #3a2f26;
    --vellum:   #E8D9C3;
    --vellum-2: #d9c7ab;
    --vellum-3: #f0e5d3;
    --flame:    #D49B35;
    --flame-2:  #e8b249;
    --flame-3:  #a07420;
    --midnight: #3A4D5F;
    --brass:    #A68952;
    --brass-2:  #c4a468;

    --serif:    "Cormorant Garamond", "EB Garamond", Georgia, serif;
    --display:  "Cinzel", "Trajan Pro", serif;
    --journal:  "IM Fell English", "Cormorant Garamond", serif;

    --shadow-deep: 0 20px 60px rgba(0,0,0,0.6), 0 8px 20px rgba(0,0,0,0.4);
    --shadow-lift: 0 10px 30px rgba(0,0,0,0.5);
    --glow-flame:  0 0 40px rgba(212,155,53,0.35);
    --seam:        1px solid var(--brass);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.mp-page {
    background: var(--ink);
    color: var(--vellum);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(212,155,53,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, rgba(58,77,95,0.05) 0%, transparent 50%);
}

img { max-width: 100%; }


/* ==========================================================================
   MARKETING NAV  (mirrors inner.css .landing-nav)
   ========================================================================== */

.landing-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 14px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(15,12,9,0.92) 0%, rgba(15,12,9,0.6) 70%, transparent 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
}
.landing-nav.scrolled {
    padding: 8px 48px;
    background: rgba(15,12,9,0.96);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.landing-nav-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.landing-nav-brand .logo-text {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.18em;
    color: var(--vellum-3);
    text-transform: uppercase;
}

.landing-nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.landing-nav-links a {
    color: var(--vellum);
    text-decoration: none;
    font-family: var(--display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
    transition: color .3s ease;
}
.landing-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 1px;
    background: var(--flame);
    transition: width .35s ease;
    transform: translateX(-50%);
}
.landing-nav-links a:hover { color: var(--flame-2); }
.landing-nav-links a:hover::after { width: 100%; }
/* current-page marker */
.landing-nav-links a.active { color: var(--flame-2); }
.landing-nav-links a.active::after { width: 100%; }

.landing-nav-cta {
    padding: 10px 22px !important;
    background: transparent;
    border: 1px solid var(--brass);
    color: var(--vellum) !important;
    transition: all .3s ease;
}
.landing-nav-cta::after { display: none !important; }
.landing-nav-cta:hover {
    background: var(--flame);
    border-color: var(--flame);
    color: var(--ink) !important;
    box-shadow: var(--glow-flame);
}

.landing-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.landing-nav-toggle span {
    width: 24px; height: 2px;
    background: var(--vellum);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.mp-hero {
    position: relative;
    min-height: 64vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 168px 32px 96px;
}
.mp-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/assets/home/background-cartography.webp');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: mpDrift 30s ease-in-out infinite alternate;
}
@keyframes mpDrift {
    from { transform: scale(1.05) translate(0, 0); }
    to   { transform: scale(1.09) translate(-1%, -1%); }
}
.mp-hero-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 48%, rgba(15,12,9,0.32) 0%, rgba(15,12,9,0.55) 38%, rgba(15,12,9,0.92) 92%),
        linear-gradient(to bottom, rgba(15,12,9,0.7) 0%, rgba(15,12,9,0.4) 30%, rgba(15,12,9,0.55) 62%, rgba(15,12,9,0.97) 100%);
}
.mp-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    animation: mpRise 1.2s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: .12s;
}
@keyframes mpRise {
    from { opacity: 0; transform: translateY(34px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mp-hero-eyebrow {
    font-family: var(--display);
    font-size: 13px;
    letter-spacing: 0.5em;
    color: var(--brass-2);
    text-transform: uppercase;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.mp-hero-eyebrow::before,
.mp-hero-eyebrow::after {
    content: '';
    height: 1px;
    width: 56px;
    background: linear-gradient(to right, transparent, var(--brass));
}
.mp-hero-eyebrow::after {
    background: linear-gradient(to left, transparent, var(--brass));
}

.mp-hero-title {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(38px, 5.6vw, 68px);
    line-height: 1.07;
    letter-spacing: 0.02em;
    color: var(--vellum-3);
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.85);
}
.mp-hero-title .accent {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    color: var(--flame-2);
}

.mp-hero-subtitle {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(18px, 1.7vw, 23px);
    line-height: 1.55;
    color: var(--vellum-2);
    max-width: 640px;
    margin: 0 auto 36px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

/* Hero stat strip */
.mp-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 6px;
}
.mp-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 9px;
}
.mp-stat strong {
    font-family: var(--display);
    font-weight: 600;
    font-size: 26px;
    color: var(--flame-2);
    text-shadow: 0 1px 10px rgba(0,0,0,0.7);
}
.mp-stat-label {
    font-family: var(--display);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--vellum-2);
}
.mp-stat-divider {
    color: var(--brass);
    font-size: 12px;
}
.mp-hero-actions {
    margin-top: 30px;
}


/* ==========================================================================
   ORNAMENTAL DIVIDER  (same as inner.css)
   ========================================================================== */

.divider {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 52px 0 40px;
    gap: 28px;
}
.divider--footer {
    background-color: var(--ink-2);
    padding: 44px 0 40px;
}
.divider-img {
    height: 52px;
    width: auto;
    opacity: 0.82;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.divider-line {
    flex: 1;
    max-width: 180px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--brass), transparent);
}


/* ==========================================================================
   CONTAINER + CONTROLS BAR
   ========================================================================== */

.mp-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 48px 40px;
}

.mp-controls {
    background: linear-gradient(180deg, rgba(45,36,30,0.92), rgba(26,22,18,0.96));
    border: 1px solid rgba(166,137,82,0.28);
    padding: 30px 32px;
    position: relative;
    box-shadow: var(--shadow-lift);
}
/* brass corner brackets, echoing inner.css .icon-card */
.mp-controls::before,
.mp-controls::after {
    content: '';
    position: absolute;
    width: 22px; height: 22px;
    border: 1px solid var(--brass);
    pointer-events: none;
}
.mp-controls::before {
    top: 7px; left: 7px;
    border-right: none; border-bottom: none;
}
.mp-controls::after {
    bottom: 7px; right: 7px;
    border-left: none; border-top: none;
}

/* -- Search ------------------------------------------------ */
.mp-search-wrap {
    display: flex;
    align-items: stretch;
    margin-bottom: 24px;
}
.mp-search-input {
    flex: 1;
    background: rgba(15,12,9,0.6);
    border: 1px solid rgba(166,137,82,0.34);
    border-right: none;
    color: var(--vellum-3);
    font-family: var(--serif);
    font-size: 17px;
    padding: 13px 18px;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}
.mp-search-input::placeholder {
    color: rgba(217,199,171,0.4);
    font-style: italic;
}
.mp-search-input:focus {
    border-color: rgba(212,155,53,0.6);
    background: rgba(212,155,53,0.04);
}
.mp-search-btn {
    background: linear-gradient(to bottom, var(--flame-2), var(--flame-3));
    border: 1px solid var(--flame-3);
    color: var(--ink);
    padding: 0 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter .2s ease, transform .1s ease;
}
.mp-search-btn:hover { filter: brightness(1.08); }
.mp-search-btn:active { transform: translateY(1px); }
/* CSS magnifying-glass mark — no emoji */
.mp-search-icon {
    width: 14px; height: 14px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    position: relative;
    display: inline-block;
}
.mp-search-icon::after {
    content: '';
    position: absolute;
    width: 2px; height: 7px;
    background: var(--ink);
    bottom: -6px; right: -2px;
    transform: rotate(-45deg);
    border-radius: 1px;
}

/* -- Tabs -------------------------------------------------- */
.mp-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.mp-tab {
    flex: 1;
    min-width: 150px;
    background: rgba(15,12,9,0.5);
    border: 1px solid rgba(166,137,82,0.26);
    color: var(--vellum-2);
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 16px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    transition: all .25s ease;
}
.mp-tab:hover {
    border-color: var(--brass-2);
    color: var(--vellum-3);
    background: rgba(166,137,82,0.1);
}
.mp-tab.active {
    border-color: var(--flame);
    color: var(--flame-2);
    background: linear-gradient(180deg, rgba(212,155,53,0.16), rgba(212,155,53,0.05));
    box-shadow: inset 0 -2px 0 var(--flame), 0 0 24px rgba(212,155,53,0.12);
}
.mp-tab-icon {
    height: 26px;
    width: auto;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.6));
    transition: transform .25s ease;
}
.mp-tab.active .mp-tab-icon,
.mp-tab:hover .mp-tab-icon { transform: scale(1.1) rotate(-3deg); }
.mp-tab-label { white-space: nowrap; }
.mp-tab-count {
    font-size: 11px;
    color: var(--brass-2);
    font-weight: 500;
}
.mp-tab-count:not(:empty)::before { content: '('; }
.mp-tab-count:not(:empty)::after  { content: ')'; }

/* -- Filter row -------------------------------------------- */
.mp-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.mp-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.mp-filter-select {
    background-color: rgba(15,12,9,0.6);
    border: 1px solid rgba(166,137,82,0.34);
    color: var(--vellum-2);
    font-family: var(--serif);
    font-size: 15px;
    padding: 10px 34px 10px 14px;
    cursor: pointer;
    outline: none;
    transition: border-color .2s ease, color .2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* brass chevron */
    background-image:
        linear-gradient(45deg, transparent 50%, var(--brass) 50%),
        linear-gradient(135deg, var(--brass) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% + 1px),
        calc(100% - 12px) calc(50% + 1px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}
.mp-filter-select:hover { border-color: var(--brass-2); color: var(--vellum-3); }
.mp-filter-select:focus { border-color: rgba(212,155,53,0.6); }
.mp-filter-select option {
    background: var(--plank);
    color: var(--vellum-2);
}
#mpSort { margin-left: auto; }


/* ==========================================================================
   TAG CHIPS  (campaigns only)
   ========================================================================== */

.mp-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 22px 0 4px;
}
.mp-tags-label {
    font-family: var(--display);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass-2);
    margin-right: 4px;
}
.mp-tag-chip {
    background: rgba(15,12,9,0.55);
    border: 1px solid rgba(166,137,82,0.3);
    color: var(--vellum-2);
    font-family: var(--serif);
    font-size: 14px;
    padding: 6px 13px;
    cursor: pointer;
    transition: all .2s ease;
}
.mp-tag-chip:hover {
    border-color: var(--brass-2);
    color: var(--vellum-3);
}
.mp-tag-chip.active {
    background: linear-gradient(180deg, rgba(212,155,53,0.18), rgba(212,155,53,0.06));
    border-color: var(--flame);
    color: var(--flame-2);
}
.mp-tag-chip-count {
    color: var(--brass);
    font-size: 12px;
    margin-left: 4px;
}
.mp-tag-clear {
    background: none;
    border: none;
    color: var(--brass);
    font-family: var(--serif);
    font-style: italic;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(166,137,82,0.4);
    text-underline-offset: 3px;
    transition: color .2s ease;
}
.mp-tag-clear:hover { color: var(--flame-2); }


/* ==========================================================================
   RESULTS — LOADING / EMPTY / COUNT
   ========================================================================== */

.mp-results { margin-top: 36px; }

.mp-loading {
    text-align: center;
    padding: 90px 20px;
    color: var(--brass-2);
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px;
}
.mp-spinner {
    width: 46px; height: 46px;
    margin: 0 auto 22px;
    border: 2px solid rgba(166,137,82,0.25);
    border-top-color: var(--flame);
    border-radius: 50%;
    animation: mpSpin 0.9s linear infinite;
}
@keyframes mpSpin { to { transform: rotate(360deg); } }

.mp-empty {
    text-align: center;
    padding: 80px 24px;
}
.mp-empty-icon {
    height: 92px;
    width: auto;
    opacity: 0.7;
    margin-bottom: 22px;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.6));
}
.mp-empty h3 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 26px;
    color: var(--vellum-3);
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}
.mp-empty p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px;
    color: var(--vellum-2);
}

.mp-result-count {
    text-align: center;
    margin-top: 30px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 15px;
    color: var(--brass-2);
}


/* ==========================================================================
   CARD GRID
   ========================================================================== */

.mp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(312px, 1fr));
    gap: 26px;
}

.mp-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(45,36,30,0.94), rgba(26,22,18,0.97));
    border: 1px solid rgba(166,137,82,0.26);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .4s ease, box-shadow .4s ease;
}
.mp-card:hover {
    transform: translateY(-6px);
    border-color: var(--flame);
    box-shadow: var(--shadow-lift), 0 0 36px rgba(212,155,53,0.14);
}

/* -- Thumbnail --------------------------------------------- */
.mp-card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ink-2);
    border-bottom: 1px solid rgba(166,137,82,0.22);
}
.mp-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.mp-card:hover .mp-card-thumb img { transform: scale(1.05); }

/* Themed illustrated placeholder for cards with no image.
   The JS emits the content type's emoji inside .mp-card-placeholder;
   the styling here frames it as an aged-vellum panel so a missing
   image still reads as part of the Cartographer look. */
.mp-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    line-height: 1;
    color: var(--brass);
    background:
        radial-gradient(ellipse at 50% 38%, rgba(212,155,53,0.1) 0%, transparent 62%),
        repeating-linear-gradient(135deg, rgba(166,137,82,0.05) 0px, rgba(166,137,82,0.05) 2px, transparent 2px, transparent 9px),
        linear-gradient(180deg, var(--plank-2), var(--ink-2));
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
    position: relative;
}
.mp-card-placeholder::before,
.mp-card-placeholder::after {
    content: '';
    position: absolute;
    width: 26px; height: 26px;
    border: 1px solid rgba(166,137,82,0.5);
}
.mp-card-placeholder::before {
    top: 12px; left: 12px;
    border-right: none; border-bottom: none;
}
.mp-card-placeholder::after {
    bottom: 12px; right: 12px;
    border-left: none; border-top: none;
}

/* "Your Content" access badge over the thumbnail */
.mp-access-badge {
    position: absolute;
    top: 12px; left: 12px;
    font-family: var(--display);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 11px;
    z-index: 2;
}
.mp-badge-owner {
    background: linear-gradient(to bottom, var(--flame-2), var(--flame-3));
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* -- Card body --------------------------------------------- */
.mp-card-body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mp-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.mp-card-title {
    font-family: var(--display);
    font-weight: 500;
    font-size: 20px;
    line-height: 1.25;
    color: var(--vellum-3);
    letter-spacing: 0.01em;
    transition: color .25s ease;
}
.mp-card:hover .mp-card-title { color: var(--flame-2); }

.mp-card-creator {
    font-family: var(--serif);
    font-style: italic;
    font-size: 15px;
    color: var(--brass-2);
    margin-top: 5px;
}

.mp-card-desc {
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.55;
    color: var(--vellum-2);
    margin-top: 12px;
    /* clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* GM read-aloud flavour text on encounter cards */
.mp-card-readaloud {
    font-family: var(--journal);
    font-style: italic;
    font-size: 15px;
    line-height: 1.5;
    color: var(--vellum);
    margin-top: 12px;
    padding: 10px 14px;
    border-left: 2px solid var(--flame-3);
    background: rgba(212,155,53,0.06);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -- Card meta row (system / level / players) -------------- */
.mp-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    font-family: var(--serif);
    font-size: 14px;
    color: var(--vellum-2);
}
.mp-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* -- Tags on the card -------------------------------------- */
.mp-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}
.mp-tag {
    font-family: var(--serif);
    font-size: 13px;
    color: var(--vellum-2);
    background: rgba(15,12,9,0.5);
    border: 1px solid rgba(166,137,82,0.28);
    padding: 3px 10px;
}
.mp-tag-more {
    color: var(--brass);
    border-style: dashed;
}

/* -- Card footer (rating + stat) --------------------------- */
.mp-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed rgba(166,137,82,0.3);
}
.mp-card-rating {
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    color: var(--flame-2);
    letter-spacing: 0.04em;
}
.mp-card-rating-count {
    color: var(--brass);
    font-weight: 400;
}
.mp-card-stat {
    font-family: var(--serif);
    font-size: 14px;
    font-style: italic;
    color: var(--brass-2);
}

/* -- Encounter badge cluster ------------------------------- */
.mp-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
}


/* ==========================================================================
   BADGES  (emitted by encounterTypeBadge / difficultyBadge in the JS)
   ========================================================================== */

.badge {
    font-family: var(--display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 9px;
    border: 1px solid transparent;
    white-space: nowrap;
    display: inline-block;
}
.badge-sm { font-size: 10px; padding: 3px 8px; }

.badge-danger {
    background: rgba(150,52,40,0.22);
    border-color: rgba(180,70,55,0.55);
    color: #e08b78;
}
.badge-success {
    background: rgba(74,103,65,0.22);
    border-color: rgba(110,140,95,0.55);
    color: #a9c995;
}
.badge-warning {
    background: rgba(212,155,53,0.18);
    border-color: rgba(212,155,53,0.5);
    color: var(--flame-2);
}
.badge-info {
    background: rgba(58,77,95,0.32);
    border-color: rgba(110,135,160,0.55);
    color: #9db8cc;
}
.badge-muted {
    background: rgba(166,137,82,0.12);
    border-color: rgba(166,137,82,0.4);
    color: var(--brass-2);
}


/* ==========================================================================
   PAGINATION + BUTTONS
   ========================================================================== */

.mp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 44px;
}
.mp-page-info {
    font-family: var(--display);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brass-2);
}

/* shared button vocabulary — .btn .btn-ghost .btn-sm (pagination) */
.btn {
    font-family: var(--display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: all .25s ease;
    border: 1px solid var(--brass);
    background: transparent;
    color: var(--vellum);
    padding: 11px 22px;
}
.btn-sm { padding: 9px 18px; font-size: 11px; }
.btn-ghost { background: rgba(15,12,9,0.4); }
.btn:hover:not(:disabled) {
    background: rgba(166,137,82,0.14);
    border-color: var(--flame-2);
    color: var(--flame-2);
}
.btn:disabled {
    opacity: 0.34;
    cursor: not-allowed;
}

/* hero action button */
.btn-secondary {
    padding: 15px 32px;
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: var(--vellum);
    border: 1px solid var(--brass);
    transition: all .35s ease;
}
.btn-secondary:hover {
    background: rgba(166,137,82,0.12);
    border-color: var(--flame-2);
    color: var(--flame-2);
}


/* ==========================================================================
   MARKETING FOOTER  (mirrors inner.css .landing-footer)
   ========================================================================== */

.landing-footer {
    background: var(--ink-2);
    border-top: 1px solid rgba(166,137,82,0.2);
    padding: 56px 48px 26px;
}
.landing-footer .landing-container {
    max-width: 1180px;
    margin: 0 auto;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 56px;
}
.footer-brand-block { max-width: 300px; }
.footer-brand {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
}
.footer-brand .logo-text {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--vellum-3);
    text-transform: uppercase;
}
.footer-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    color: var(--brass-2);
    line-height: 1.55;
}
.footer-links-group { display: contents; }
.footer-col { text-align: left; }
.footer-col-title {
    font-family: var(--display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: var(--flame);
    text-transform: uppercase;
    margin-bottom: 20px;
}
.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col-links a {
    color: var(--vellum-2);
    text-decoration: none;
    font-family: var(--serif);
    font-size: 16px;
    transition: color .2s ease;
}
.footer-col-links a:hover { color: var(--flame-2); }

.footer-bottom {
    max-width: 1180px;
    margin: 44px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(166,137,82,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: var(--serif);
    font-size: 14px;
    color: var(--brass);
    font-style: italic;
}
.footer-copyright a {
    color: var(--brass-2);
    text-decoration: none;
}
.footer-copyright a:hover { color: var(--flame-2); }
.footer-legal-links {
    display: flex;
    gap: 20px;
}
.footer-legal-links a {
    color: var(--brass);
    text-decoration: none;
    transition: color .2s ease;
}
.footer-legal-links a:hover { color: var(--flame-2); }


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 960px) {
    .landing-nav { padding: 12px 20px; }
    .landing-nav.scrolled { padding: 10px 20px; }
    .landing-nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(15,12,9,0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(166,137,82,0.3);
        padding: 12px 0;
    }
    .landing-nav-links.open { display: flex; }
    .landing-nav-links a {
        width: 100%;
        padding: 14px 24px;
    }
    .landing-nav-links a::after { display: none; }
    .landing-nav-cta {
        margin: 8px 24px;
        text-align: center;
        justify-content: center;
    }
    .landing-nav-toggle { display: flex; }

    .mp-hero { padding: 132px 22px 72px; min-height: 56vh; }
    .mp-hero-eyebrow::before,
    .mp-hero-eyebrow::after { width: 30px; }

    .mp-container { padding: 0 22px 36px; }
    .mp-controls { padding: 24px 20px; }

    .mp-tab { min-width: calc(50% - 5px); }

    .mp-filter-row { flex-direction: column; align-items: stretch; }
    .mp-filters { flex-direction: column; }
    .mp-filter-select { width: 100%; }
    #mpSort { margin-left: 0; }

    .footer-content { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-brand-block { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .mp-hero-stats { gap: 10px; }
    .mp-stat strong { font-size: 22px; }
    .mp-tab { min-width: 100%; }
    .mp-grid { grid-template-columns: 1fr; }
    .mp-pagination { flex-wrap: wrap; gap: 14px; }

    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
