
/* ==========================================================================
   HOME — Miti's exchange index
   ==========================================================================
   #tptab.exchange-tabs and .tab-jump*, from Miti's layout.css.

   TWO THINGS ARE NOT CARRIED. Miti's .subtab row switches between its two
   MODULES, LiveTrees and NaturalGoods; this site has no modules, so the row
   is not rendered and its rules could never match. And Miti tints each jump
   card with its module's colour through --tab-jump-tint — one modifier per
   module. This site has a single brand, so there is a single modifier.

   The jump card's artwork is a CSS background rather than an <img>, which is
   Miti's own decision and the reason this works here: a missing file leaves
   the tint and the label intact, where a missing <img> would put a grey
   placeholder over both. This site ships no artwork for them, so they render
   as flat brand tiles — the designed fallback, not a gap.
   ========================================================================== */

/* ==========================================================================
   TAB JUMP CARDS  (Exchange landing, under the preview video)
   ==========================================================================
   Four shortcuts into the Buy/Sell tabs at the top of the same page.

   Each card carries its module's colour as the background COLOUR, with the
   artwork layered over it as a background IMAGE. Until the four images exist
   the cards still read correctly — coloured tile, white label — instead of
   collapsing to an empty box.
   ========================================================================== */

.tab-jump {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1.25rem;
}

@media (max-width: 40rem) {
    .tab-jump {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tab-jump__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    aspect-ratio: 1 / 1;
    padding: 0.875rem;
    border: 0;
    border-radius: 0.5rem;
    background-color: var(--tab-jump-tint);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #FFF;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Keeps the label legible whatever photograph lands behind it. */
.tab-jump__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 45%, rgba(0, 0, 0, 0.06) 100%);
}

.tab-jump__card > * {
    position: relative;
    z-index: 1;
}

.tab-jump__card:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.tab-jump__card:focus-visible {
    outline: 0.1875rem solid var(--tab-jump-tint);
    outline-offset: 0.125rem;
}

/* Miti has one modifier per module — --livetrees, --naturalgoods. This site
   has a single brand, so a single modifier pointing at it. */
.tab-jump__card--brand { --tab-jump-tint: var(--color-brand-600); }

.tab-jump__action {
    font-size: clamp(1.25rem, 3.2vw, 1.875rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.tab-jump__label {
    font-size: clamp(0.75rem, 1.6vw, 0.9375rem);
    font-weight: 700;
    line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
    .tab-jump__card { transition: none; }
    .tab-jump__card:hover { transform: none; }
}

/* Exchange Buy/Sell sub-tabs — text, not pills. The row above them is already
   underline tabs, and a second row of filled pills competed with it for the
   eye. These carry the module colour and echo that underline instead, so the
   two rows read as one control: section, then module. */




/* Inactive tabs step back; the colour alone should not read as selected. */



/* The exchange landing's tab row sits INSIDE #tptab rather than being it,
   because the Buy/Sell sub-tabs share the sticky wrapper. That means the
   wrapper has to carry the card's bottom corners: its own white background
   otherwise squares off the radius the nav already has, and the header card
   above stops reading as the top half of the same card. */
#tptab.exchange-tabs {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* The nav's own bottom margin would show as white space inside that rounded
   box. The gap to the panel is set by the panel instead. */
#tptab.exchange-tabs .spec-tab-nav {
    margin-bottom: 0;
}
