/* ---------------------------------------------------------------------------
   Mobile breakpoints are paired with (max-device-width) on purpose.

   The Gmail Android app opens links in a WebView that reports a DESKTOP user
   agent and lays out at a ~980px viewport, so (max-width) alone skips every
   mobile rule there. (max-device-width) reads the physical screen instead.
   See css/app.css header for the full story.
   --------------------------------------------------------------------------- */

/* ============================================================
   Make Capitalism Behave — Home page "Assembly" skin
   ------------------------------------------------------------
   A wheat-pasted protest-poster wall. Two scopes:

   - .mcb-home           post-wall + content styles (self-sufficient:
                         works even without the body class)
   - body.mcb-assembly   site-chrome restyle (wall background, the
                         stencil treatment of the existing .mcb-header,
                         footer band). The class is now STATIC on <body>
                         in App.razor — every page wears the wall skin;
                         assembly-wall.js's ensure-class call is a
                         harmless no-op kept as belt and braces.

   Loaded AFTER css/app.css (see App.razor) so these rules win.
   Replaces home-solarpunk.css (left on disk, no longer linked).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&family=Oswald:wght@400;500;600;700&family=Permanent+Marker&family=Saira+Stencil+One&display=swap');

body.mcb-assembly,
.mcb-home {
    --as-ink: #221c14;
    --as-ink-soft: rgba(34, 28, 20, 0.72);
    --as-ink-faint: rgba(34, 28, 20, 0.64); /* AA on every paper tint used; keep in sync with assembly-site.css */
    --as-red: #a92c33;
    --as-red-deep: #8a1f27;
    --as-wall: #d2cabb;
    --as-wall-deep: #b9ae99;
    --as-cream: #f6eeda;
    --as-kraft: #d8b98d;
    --as-pale-red: #eed3c8;
    --as-pale-blue: #d5dfe4;
    --as-band: #201b14;
    --as-band-ink: #f1e8d4;
    --as-f-display: 'Archivo Black', 'Arial Black', 'Franklin Gothic Medium', sans-serif;
    --as-f-cond: 'Oswald', 'Arial Narrow', 'Helvetica Neue', sans-serif;
    --as-f-type: 'Courier Prime', 'Courier New', Courier, monospace;
    --as-f-marker: 'Permanent Marker', 'Segoe Print', cursive;
    --as-f-sten: 'Saira Stencil One', 'Arial Black', 'Franklin Gothic Medium', sans-serif;
    --as-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
    --as-swipe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 9' preserveAspectRatio='none'%3E%3Cpath d='M3 6.5 C 30 3.2, 62 8, 87 5 S 112 4.2, 117 5.6' fill='none' stroke='%23a92c33' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ============ the wall itself: page background ============ */
body.mcb-assembly {
    color-scheme: light;
    overflow-x: clip;
    background-color: #d2cabb;
    background-image:
        radial-gradient(130% 90% at 50% 0%, rgba(255, 250, 236, 0.5) 0%, rgba(255, 250, 236, 0) 46%),
        radial-gradient(120% 100% at 50% 108%, rgba(90, 76, 55, 0.28) 0%, rgba(90, 76, 55, 0) 44%),
        radial-gradient(42% 30% at 12% 38%, rgba(120, 100, 70, 0.10) 0%, rgba(120, 100, 70, 0) 100%),
        radial-gradient(36% 26% at 88% 64%, rgba(120, 100, 70, 0.09) 0%, rgba(120, 100, 70, 0) 100%),
        linear-gradient(180deg, #d6cec0 0%, #d2cabb 30%, #cdc4b3 100%);
}

.mcb-home {
    font-family: var(--as-f-cond);
    color: var(--as-ink);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    /* decorative tape corners overhang poster edges; never let them scroll the page */
    overflow-x: clip;
}
/* body.mcb-assembly is now STATIC on <body> in App.razor (site-wide skin),
   so this fixed negative-z wall layer behind .mcb-home is redundant — the
   body paints the identical wall from first paint, JS or no JS. It predates
   that change (assembly-wall.js used to add the class) and is kept as a
   harmless belt-and-braces layer; the two layers render identically. */
.mcb-home::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: #d2cabb;
    background-image:
        radial-gradient(130% 90% at 50% 0%, rgba(255, 250, 236, 0.5) 0%, rgba(255, 250, 236, 0) 46%),
        radial-gradient(120% 100% at 50% 108%, rgba(90, 76, 55, 0.28) 0%, rgba(90, 76, 55, 0) 44%),
        radial-gradient(42% 30% at 12% 38%, rgba(120, 100, 70, 0.10) 0%, rgba(120, 100, 70, 0) 100%),
        radial-gradient(36% 26% at 88% 64%, rgba(120, 100, 70, 0.09) 0%, rgba(120, 100, 70, 0) 100%),
        linear-gradient(180deg, #d6cec0 0%, #d2cabb 30%, #cdc4b3 100%);
}
.mcb-home img { max-width: 100%; }

/* concrete grain over the whole wall (sits above the sticky header too,
   below modals; pointer-events none so it never eats a click) */
.mcb-home .mcb-grain {
    position: fixed;
    inset: 0;
    background-image: var(--as-noise);
    opacity: 0.09;
    pointer-events: none;
    z-index: 110;
}

/* accessible helpers */
.mcb-home .mcb-sr {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mcb-home a:focus-visible,
.mcb-home button:focus-visible {
    outline: 3px solid var(--as-red);
    outline-offset: 3px;
    border-radius: 2px;
}
body.mcb-assembly .mcb-header a:focus-visible,
body.mcb-assembly .mcb-footer a:focus-visible {
    outline: 3px solid #e8b23a;
    outline-offset: 3px;
    border-radius: 2px;
}

/* ============ MASTHEAD: the existing .mcb-header as a stenciled banner strip.
   Pure CSS around the untouched worker-gif logo markup. ============ */
body.mcb-assembly .mcb-header {
    background-color: var(--as-band);
    background-image:
        var(--as-noise),
        linear-gradient(180deg, rgba(255, 240, 210, 0.06) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.25) 100%);
    border-bottom: 4px solid var(--as-red);
    box-shadow: 0 3px 0 rgba(34, 28, 20, 0.3), 0 10px 24px rgba(34, 28, 20, 0.28);
    /* clip only sideways (the load sheen slides past the edges); the header
       menus drop below the banner, so the bottom edge must not clip */
    overflow-x: clip;
    overflow-y: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
/* app.css paints a green gradient hairline here; the banner replaces it
   (the load-sheen redefines this pseudo inside the motion query below) */
body.mcb-assembly .mcb-header::after { content: none; }

body.mcb-assembly .mcb-header-inner { padding: 14px 24px; gap: 16px 22px; }

/* the worker gif on a dark badge tile */
body.mcb-assembly .mcb-logo { gap: 14px; }
body.mcb-assembly .mcb-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 52px;
    background: #14100b;
    border: 1px solid rgba(241, 232, 212, 0.22);
    border-radius: 5px;
    box-shadow: inset 0 0 0 3px #14100b, inset 0 0 0 4px rgba(241, 232, 212, 0.1), 0 2px 4px rgba(0, 0, 0, 0.4);
    flex: none;
}
body.mcb-assembly .mcb-logo-text {
    font-family: var(--as-f-sten);
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.045em;
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--as-band-ink);
    white-space: nowrap;
}
body.mcb-assembly .mcb-logo:hover .mcb-logo-text { color: #fff; }
/* the tagline scrawled in marker under the stencil title */
body.mcb-assembly .mcb-logo-words {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}
body.mcb-assembly .mcb-logo-tagline {
    font-family: var(--as-f-marker);
    font-size: clamp(0.78rem, 1.4vw, 0.95rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #e8b23a;
    white-space: nowrap;
    transform: rotate(-1.5deg);
    transform-origin: left center;
}

body.mcb-assembly .mcb-nav { gap: 4px 14px; }
body.mcb-assembly .mcb-nav a {
    color: rgba(241, 232, 212, 0.82);
    font-family: var(--as-f-cond);
    font-weight: 500;
    font-size: 0.86rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 2px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
body.mcb-assembly .mcb-nav a:hover {
    color: #fff;
    background: transparent;
    border-bottom-color: var(--as-red);
}
/* the Join button: a red slap-up sticker */
body.mcb-assembly .mcb-nav a.mcb-btn-primary {
    background: var(--as-red);
    color: #fdf3e0;
    border: 2px solid rgba(0, 0, 0, 0.25);
    padding: 7px 18px 6px;
    border-radius: 3px 5px 3px 4px;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: 0 2px 0 var(--as-red-deep), 0 4px 8px rgba(0, 0, 0, 0.35);
    transform: rotate(-1deg);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
body.mcb-assembly .mcb-nav a.mcb-btn-primary:hover {
    background: #b93540;
    color: #fdf3e0;
    border-bottom-color: rgba(0, 0, 0, 0.25);
    transform: rotate(0deg) translateY(-1px);
    box-shadow: 0 3px 0 var(--as-red-deep), 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* ============ header menus (About, the username) ============
   <details> dropdowns so the strip stays short. The open panel is a
   cream flyer pinned under its label. */
body.mcb-assembly .mcb-nav-menu { position: relative; }
body.mcb-assembly .mcb-nav-menu > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(241, 232, 212, 0.82);
    font-family: var(--as-f-cond);
    font-weight: 500;
    font-size: 0.86rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    user-select: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}
body.mcb-assembly .mcb-nav-menu > summary::-webkit-details-marker { display: none; }
body.mcb-assembly .mcb-nav-menu > summary:hover,
body.mcb-assembly .mcb-nav-menu[open] > summary {
    color: #fff;
    border-bottom-color: var(--as-red);
}
body.mcb-assembly .mcb-nav-menu > summary:focus-visible { outline: 2px solid var(--as-red); outline-offset: 2px; }
body.mcb-assembly .mcb-nav-caret { width: 13px; height: 13px; flex: none; transition: transform 0.15s ease; }
body.mcb-assembly .mcb-nav-menu[open] .mcb-nav-caret { transform: rotate(180deg); }
body.mcb-assembly .mcb-nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: -12px;
    z-index: 120;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    padding: 6px;
    background-color: var(--as-cream);
    border: 1px solid rgba(34, 28, 20, 0.28);
    border-top: 4px solid var(--as-red);
    border-radius: 2px 3px 2px 4px;
    box-shadow: 0 2px 0 rgba(34, 28, 20, 0.2), 0 12px 26px rgba(34, 28, 20, 0.35);
    text-align: left;
}
body.mcb-assembly .mcb-nav-menu-end .mcb-nav-panel { left: auto; right: -12px; }
body.mcb-assembly .mcb-nav .mcb-nav-panel a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--as-ink);
    letter-spacing: 0.1em;
    padding: 10px 12px;
    border-bottom: none;
    border-radius: 2px;
    white-space: nowrap;
}
body.mcb-assembly .mcb-nav .mcb-nav-panel a:hover,
body.mcb-assembly .mcb-nav .mcb-nav-panel a:focus-visible {
    color: var(--as-red-deep);
    background: var(--as-pale-red);
    border-bottom: none;
}

/* ============ the writers room (/writers) ============ */
.mcb-writers-page { max-width: 1100px; margin: 40px auto 64px; padding: 0 16px; }
.mcb-writers-head {
    max-width: 720px;
    margin: 0 auto 32px;
    padding: 28px 32px 24px;
    background-color: var(--as-cream);
    border: 1px solid rgba(34, 28, 20, 0.2);
    box-shadow: 0 2px 0 rgba(34, 28, 20, 0.15), 0 10px 22px rgba(34, 28, 20, 0.18);
    transform: rotate(-0.4deg);
}
.mcb-writers-head h1 {
    margin: 0 0 10px;
    font-family: var(--as-f-display);
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    line-height: 1.05;
    color: var(--as-ink);
    letter-spacing: 0.01em;
}
.mcb-writers-sub { margin: 0; font-family: var(--as-f-type); font-size: 1.02rem; line-height: 1.6; color: var(--as-ink-soft); }
.mcb-writers-sub .mcb-poster-badge { color: var(--as-red); margin: 0 2px; }
.mcb-writers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px 22px;
    align-items: start;
}
.mcb-writer {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 22px 18px;
    background-color: var(--as-cream);
    border: 1px solid rgba(34, 28, 20, 0.18);
    box-shadow: 0 2px 0 rgba(34, 28, 20, 0.14), 0 8px 18px rgba(34, 28, 20, 0.16);
    scroll-margin-top: 110px;
}
.mcb-writer:nth-child(3n+1) { transform: rotate(-0.6deg); }
.mcb-writer:nth-child(3n+2) { transform: rotate(0.45deg); background-color: #f3e6cf; }
.mcb-writer:nth-child(3n) { transform: rotate(-0.25deg); }
.mcb-writer:target { outline: 3px solid var(--as-red); outline-offset: 4px; }
.mcb-writer-name {
    margin: 0;
    font-family: var(--as-f-display);
    font-size: 1.45rem;
    line-height: 1.1;
    color: var(--as-ink);
    overflow-wrap: anywhere;
}
.mcb-writer-name a { color: inherit; }
.mcb-writer-name a:hover { color: var(--as-red); }
.mcb-writer-name .mcb-poster-badge { color: var(--as-red); vertical-align: 1px; margin-right: 6px; }
.mcb-writer-name .mcb-poster-badge svg { width: 18px; height: 18px; }
.mcb-writer-beat {
    margin: 0;
    font-family: var(--as-f-cond);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--as-red-deep);
}
.mcb-writer-intro {
    margin: 4px 0 0;
    padding: 0 0 0 14px;
    border-left: 3px solid var(--as-kraft);
    font-family: var(--as-f-type);
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--as-ink);
}
.mcb-writer-intro p { margin: 0 0 8px; }
.mcb-writer-intro p:last-child { margin-bottom: 0; }
.mcb-writer-meta { margin: 2px 0 0; font-family: var(--as-f-type); font-style: italic; font-size: 0.88rem; color: var(--as-ink-faint); }
.mcb-writer-latest {
    margin: 4px 0 0;
    padding-top: 10px;
    border-top: 1px dashed rgba(34, 28, 20, 0.28);
    font-family: var(--as-f-type);
    font-size: 0.92rem;
    line-height: 1.45;
}
.mcb-writer-latest span {
    font-family: var(--as-f-cond);
    font-weight: 600;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--as-ink-faint);
    margin-right: 4px;
}
.mcb-writer-latest a { color: var(--as-ink); text-decoration: underline; text-decoration-color: rgba(169, 44, 51, 0.5); text-underline-offset: 3px; }
.mcb-writer-latest a:hover { color: var(--as-red); }
.mcb-writer-more {
    align-self: flex-start;
    margin-top: 2px;
    font-family: var(--as-f-cond);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--as-red);
}
.mcb-writer-more:hover { color: var(--as-red-deep); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
    .mcb-writers-head, .mcb-writer { transform: none !important; }
}

/* ============ wall header strip + sorts ============ */
.mcb-home .mcb-wallhead {
    max-width: 1100px;
    margin: 34px auto 0;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.mcb-home .mcb-wallttl {
    margin: 0;
    font-family: var(--as-f-sten);
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--as-red);
    border: 2px solid var(--as-red);
    border-radius: 3px 6px 4px 5px;
    padding: 5px 14px 3px;
    transform: rotate(-1.4deg);
    opacity: 0.92;
    mix-blend-mode: multiply;
}
.mcb-home .mcb-sorts { margin-left: auto; display: flex; gap: 10px; }
.mcb-home .mcb-sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none; /* sorts are links now (static SSR), styled as chips */
    font-family: var(--as-f-type);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--as-ink-soft);
    background: transparent;
    border: 2px solid rgba(34, 28, 20, 0.45);
    border-radius: 4px 3px 5px 3px;
    padding: 5px 12px 4px;
    cursor: pointer;
    transform: rotate(0.8deg);
    mix-blend-mode: multiply;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.mcb-home .mcb-sort .mcb-ico { width: 13px; height: 13px; }
.mcb-home .mcb-sort + .mcb-sort { transform: rotate(-0.9deg); }
.mcb-home .mcb-sort:hover { color: var(--as-red); border-color: var(--as-red); }
.mcb-home .mcb-sort.active {
    color: var(--as-red);
    border-color: var(--as-red);
    background: rgba(169, 44, 51, 0.07);
    box-shadow: none;
}

/* ============ category scraps (scrollable strip) ============ */
.mcb-home .mcb-cats {
    max-width: 1100px;
    margin: 16px auto 0;
    padding: 6px 8px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
/* "All arenas" expander: pure <details>, no JS, scales to any arena count */
.mcb-home .mcb-cats-more { display: contents; }
.mcb-home .mcb-cat-more {
    cursor: pointer;
    list-style: none;
    user-select: none;
    color: var(--as-red);
    border-style: dashed;
}
.mcb-home .mcb-cat-more::-webkit-details-marker { display: none; }
.mcb-home .mcb-cat-chev { transition: transform 0.18s ease; }
.mcb-home .mcb-cats-more[open] .mcb-cat-chev { transform: rotate(180deg); }
.mcb-home .mcb-cats-rest {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
}
@media (prefers-reduced-motion: no-preference) {
    .mcb-home .mcb-cats-more[open] .mcb-cats-rest { animation: mcb-cats-in 0.22s ease both; }
    @keyframes mcb-cats-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}
.mcb-home .mcb-cat {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--as-f-cond);
    font-weight: 600;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--as-ink-soft);
    text-decoration: none;
    background: linear-gradient(178deg, rgba(250, 244, 228, 0.92), rgba(238, 228, 204, 0.92));
    border: 1px solid rgba(34, 28, 20, 0.22);
    border-radius: 2px;
    padding: 6px 12px 5px;
    box-shadow: 0 1px 2px rgba(34, 28, 20, 0.18);
    transform: rotate(-0.7deg);
    transition: color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.mcb-home .mcb-cat:nth-child(even) { transform: rotate(0.8deg); }
.mcb-home .mcb-cat:hover {
    color: var(--as-red);
    transform: rotate(0deg) translateY(-2px);
    box-shadow: 0 3px 7px rgba(34, 28, 20, 0.24);
}
.mcb-home .mcb-cat .mcb-ico { width: 13px; height: 13px; }

/* ============ THE POSTER WALL ============ */
.mcb-home .mcb-wall {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 8px 70px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px 28px;
    align-items: start;
}
/* masonry mode: assembly-wall.js measures each flyer and spans grid rows */
.mcb-home .mcb-wall.mcb-masonry { grid-auto-rows: 10px; row-gap: 0; grid-auto-flow: row dense; }
@media (max-width: 980px), (max-device-width: 980px) {
    .mcb-home .mcb-wall { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px), (max-device-width: 640px) {
    .mcb-home .mcb-wall { grid-template-columns: 1fr; gap: 30px; }
}
@media (min-width: 641px) { .mcb-home .mcb-lead { grid-column: span 2; } }

.mcb-home .mcb-poster { position: relative; }
/* independent resting tilts, cycling */
.mcb-home .mcb-poster:nth-child(8n+1) { --tilt: -1.7deg; }
.mcb-home .mcb-poster:nth-child(8n+2) { --tilt: 1.4deg; }
.mcb-home .mcb-poster:nth-child(8n+3) { --tilt: -0.9deg; }
.mcb-home .mcb-poster:nth-child(8n+4) { --tilt: 2.2deg; }
.mcb-home .mcb-poster:nth-child(8n+5) { --tilt: -2.4deg; }
.mcb-home .mcb-poster:nth-child(8n+6) { --tilt: 0.8deg; }
.mcb-home .mcb-poster:nth-child(8n+7) { --tilt: 1.9deg; }
.mcb-home .mcb-poster:nth-child(8n+8) { --tilt: -1.2deg; }
.mcb-home .mcb-poster:hover,
.mcb-home .mcb-poster:focus-within { z-index: 6; }

.mcb-home .mcb-paper {
    position: relative;
    background-color: var(--tint, var(--as-cream));
    border-radius: 2px;
    padding: 46px 22px 16px;
    transform: rotate(var(--tilt, 0deg));
    box-shadow:
        0 1px 2px rgba(34, 28, 20, 0.28),
        0 7px 16px rgba(34, 28, 20, 0.2);
    transition: transform 0.28s cubic-bezier(0.25, 0.9, 0.35, 1.15), box-shadow 0.28s ease;
}
.mcb-home .mcb-tint-cream { --tint: var(--as-cream); }
.mcb-home .mcb-tint-kraft { --tint: var(--as-kraft); }
.mcb-home .mcb-tint-red   { --tint: var(--as-pale-red); }
.mcb-home .mcb-tint-blue  { --tint: var(--as-pale-blue); }
/* wheatpaste wrinkle + paper grain */
.mcb-home .mcb-paper::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image:
        var(--as-noise),
        linear-gradient(112deg, rgba(34, 28, 20, 0.07) 0%, rgba(34, 28, 20, 0) 22%, rgba(255, 255, 255, 0.09) 46%, rgba(34, 28, 20, 0) 64%, rgba(34, 28, 20, 0.08) 100%),
        linear-gradient(8deg, rgba(34, 28, 20, 0.05) 0%, rgba(34, 28, 20, 0) 18%);
    opacity: 0.55;
    pointer-events: none;
}
.mcb-home .mcb-poster:hover .mcb-paper,
.mcb-home .mcb-poster:focus-within .mcb-paper {
    transform: rotate(0deg) translateY(-6px);
    box-shadow:
        0 4px 9px rgba(34, 28, 20, 0.3),
        0 20px 38px rgba(34, 28, 20, 0.28);
}
.mcb-home .mcb-lead .mcb-paper { padding: 50px 30px 18px; }

/* fasteners: pushpins */
.mcb-home .mcb-pinwrap {
    position: absolute;
    top: -13px;
    left: 50%;
    width: 28px;
    transform: translateX(-50%) rotate(var(--pr, 0deg));
    z-index: 4;
    pointer-events: none;
}
.mcb-home .mcb-poster:nth-child(3n+1) .mcb-pinwrap { --pr: -7deg; left: 46%; }
.mcb-home .mcb-poster:nth-child(3n+2) .mcb-pinwrap { --pr: 5deg; left: 55%; }
.mcb-home .mcb-pin { display: block; width: 28px; height: 30px; filter: drop-shadow(1px 3px 2px rgba(34, 28, 20, 0.4)); }
/* fasteners: tape strips */
.mcb-home .mcb-tape {
    position: absolute;
    width: 78px;
    height: 25px;
    background: linear-gradient(178deg, rgba(236, 226, 197, 0.68), rgba(219, 206, 172, 0.6));
    box-shadow: 0 1px 2px rgba(34, 28, 20, 0.18), inset 0 0 6px rgba(255, 252, 238, 0.4);
    clip-path: polygon(1.5% 0%, 98% 5%, 100% 34%, 97.5% 100%, 2% 95%, 0% 58%);
    z-index: 4;
    pointer-events: none;
}
.mcb-home .mcb-tape-l { top: -9px; left: -24px; transform: rotate(-38deg); }
.mcb-home .mcb-tape-r { top: -9px; right: -24px; transform: rotate(38deg); }

/* ============ real media pasted onto the flyers (taped prints) ============ */
.mcb-home .mcb-photo-link { display: block; text-decoration: none; }
.mcb-home .mcb-photo {
    position: relative;
    margin: 2px 0 16px;
    transform: rotate(var(--pt, 1.4deg));
}
.mcb-home .mcb-photo-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 400 / 250;
    object-fit: cover;
    border: 1.5px solid rgba(34, 28, 20, 0.78);
    background: #ece3cd;
    box-shadow: 0 1px 2px rgba(34, 28, 20, 0.22), 0 5px 12px rgba(34, 28, 20, 0.16);
    filter: saturate(0.85) contrast(0.97);
}
/* the double-width lead poster gets the mockup's flat 720x280 crop
   (mockup .mcbA-photo-wide) so its media doesn't tower over the wall */
.mcb-home .mcb-lead .mcb-photo-img:not(.mcb-photo-natural) { aspect-ratio: 720 / 280; }
/* natural-aspect link art (cartoons, posters): the img carries its real
   aspect-ratio inline; show the whole thing on the paper backing */
.mcb-home .mcb-photo-img.mcb-photo-natural { object-fit: contain; }
/* small strip of tape across one corner of the print */
.mcb-home .mcb-photo .mcb-tape { width: 60px; height: 20px; }
.mcb-home .mcb-tape-pl { top: -9px; left: -14px; transform: rotate(-42deg); }
.mcb-home .mcb-tape-pr { top: -9px; right: -14px; transform: rotate(42deg); }
/* xerox noise-grain over the raster */
.mcb-home .mcb-photo-frame { position: relative; display: block; }
.mcb-home .mcb-photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--as-noise);
    opacity: 0.16;
    mix-blend-mode: multiply;
    pointer-events: none;
}
/* writer-bot press cut: the inline two-ink SVG gets the same taped-print
   frame as photos (border + paper backing + shadow). viewBox is validated to
   exactly 400x250, so pin the aspect ratio for browsers that don't derive it. */
.mcb-home .mcb-illust svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 250;
    border: 1.5px solid rgba(34, 28, 20, 0.78);
    background: #f2eee3;
    box-shadow: 0 1px 2px rgba(34, 28, 20, 0.22), 0 5px 12px rgba(34, 28, 20, 0.16);
}
/* on newsprint clippings the cut sits flush like the halftone photos do, but
   it is ALREADY ink-colored two-tone art - keep the clipping's grayscale
   filter off it so the blue/red inks survive */
.mcb-home .mcb-clipping .mcb-illust svg {
    filter: none;
    border: 1px solid rgba(34, 28, 20, 0.55);
    box-shadow: none;
}
/* play-button stamp for video posts */
.mcb-home .mcb-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 62px;
    height: 62px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid var(--as-cream);
    background: rgba(24, 20, 16, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--as-cream);
}
.mcb-home .mcb-play svg { width: 26px; height: 26px; margin-left: 4px; }
.mcb-home .mcb-poster:hover .mcb-play,
.mcb-home .mcb-poster:focus-within .mcb-play { background: rgba(169, 44, 51, 0.85); }
/* link-domain tag over article-preview prints */
.mcb-home .mcb-photo-domain {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--as-f-type);
    font-size: 0.72rem;
    color: var(--as-cream);
    background: rgba(24, 20, 16, 0.72);
    padding: 2px 7px;
    border-radius: 2px;
    max-width: calc(100% - 24px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
}
.mcb-home .mcb-photo-domain .mcb-ico { width: 11px; height: 11px; }

/* rubber stamps (FRESH / HOT) */
.mcb-home .mcb-stamp {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--as-f-cond);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--as-red);
    border: 2px solid var(--as-red);
    border-radius: 3px 5px 3px 6px;
    padding: 3px 9px 2px;
    transform: rotate(6deg);
    opacity: 0.85;
    mix-blend-mode: multiply;
    z-index: 3;
}
.mcb-home .mcb-stamp .mcb-ico { width: 12px; height: 12px; }

/* category tag on each flyer */
.mcb-home .mcb-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--as-f-cond);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--as-red);
    text-decoration: none;
    border: 1.5px solid rgba(169, 44, 51, 0.75);
    border-radius: 2px;
    padding: 3px 8px 2px;
    transform: rotate(-1deg);
    mix-blend-mode: multiply;
    margin-bottom: 12px;
}
.mcb-home .mcb-tag:hover { color: var(--as-red-deep); border-color: var(--as-red-deep); }
.mcb-home .mcb-tag .mcb-ico { width: 12px; height: 12px; }

/* ============ headline ============ */
.mcb-home .mcb-h { margin: 0 0 10px; line-height: 1.14; overflow-wrap: anywhere; }
.mcb-home .mcb-hlink { color: var(--as-ink); text-decoration: none; }
.mcb-home .mcb-hlink:hover { color: var(--as-red-deep); }
.mcb-home .mcb-h-cond {
    font-family: var(--as-f-cond);
    font-weight: 600;
    font-size: 1.38rem;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    line-height: 1.1;
}
.mcb-home .mcb-lead .mcb-h-cond { font-size: clamp(1.6rem, 2.8vw, 2.15rem); }

/* excerpt + small print */
.mcb-home .mcb-ex {
    margin: 0 0 14px;
    font-family: var(--as-f-type);
    font-size: 0.85rem;
    line-height: 1.62;
    color: var(--as-ink-soft);
    max-width: 65ch;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}
/* the excerpt links into the post but reads as typewriter body copy,
   not as a themed link */
.mcb-home .mcb-ex a { color: inherit; text-decoration: none; }
.mcb-home .mcb-ex a:hover { color: var(--as-ink); }
.mcb-home .mcb-foot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 14px;
    flex-wrap: wrap;
    border-top: 1px dashed rgba(34, 28, 20, 0.3);
    padding-top: 9px;
    font-family: var(--as-f-type);
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--as-ink-faint);
}
.mcb-home .mcb-foot b { font-weight: 700; color: var(--as-ink-soft); }
.mcb-home .mcb-foot i { font-style: italic; }
.mcb-home .mcb-meta { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mcb-home .mcb-meta .mcb-ico { width: 11px; height: 11px; position: relative; top: 1px; }
/* the poster-provenance badge lives in the by-line; retint for paper */
.mcb-home .mcb-poster-badge-bot { color: var(--as-red); }
.mcb-home .mcb-poster-badge-human { color: var(--as-ink-faint); }

/* rubber-stamp action buttons */
.mcb-home .mcb-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.mcb-home .mcb-act {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--as-f-type);
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--as-ink-soft);
    text-decoration: none;
    background: transparent;
    border: 2px solid rgba(34, 28, 20, 0.5);
    border-radius: 4px 3px 5px 3px;
    padding: 4px 9px 3px;
    cursor: pointer;
    mix-blend-mode: multiply;
    transform: rotate(-0.6deg);
    transition: color 0.13s ease, border-color 0.13s ease, background 0.13s ease, transform 0.13s ease;
}
.mcb-home .mcb-act:nth-child(even) { transform: rotate(0.7deg); }
.mcb-home .mcb-act .mcb-ico { width: 13px; height: 13px; }
.mcb-home .mcb-act:hover {
    color: var(--as-red);
    border-color: var(--as-red);
    background: rgba(169, 44, 51, 0.07);
    transform: rotate(0deg);
}
.mcb-home .mcb-act:active { transform: scale(0.94); }
/* post-actions.js adds .voted after a successful cardVote */
.mcb-home .mcb-act.voted {
    color: var(--as-red);
    border-color: var(--as-red);
    background: rgba(169, 44, 51, 0.1);
}
.mcb-home .mcb-act:disabled { opacity: 0.55; cursor: default; }

/* loading / empty states on the wall */
.mcb-home .mcb-loading,
.mcb-home .mcb-empty {
    color: var(--as-ink-soft);
    font-family: var(--as-f-type);
}
.mcb-home .mcb-empty a { color: var(--as-red); text-decoration: underline; }

/* ============ floating POST stamp (front page only) ============
   A red rubber-stamp pill pinned to the bottom-right corner, linking to
   /submit. Sits above the posters (their hover z-index tops out at 6) and
   below the click-through grain overlay (110). */
.mcb-home .mcb-fab {
    position: fixed;
    right: calc(20px + env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 999px;
    background-color: var(--as-red);
    background-image: var(--as-noise); /* stamp-pad grain */
    color: #fdf3e0;
    text-decoration: none;
    font-family: var(--as-f-cond);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 2px solid rgba(0, 0, 0, 0.28);
    /* inner cream ring reads as the stamp's border */
    box-shadow:
        inset 0 0 0 2px rgba(253, 243, 224, 0.55),
        0 2px 0 var(--as-red-deep),
        0 10px 22px rgba(34, 28, 20, 0.38);
    transform: rotate(-3deg);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.mcb-home .mcb-fab:hover {
    background-color: #b93540;
    color: #fdf3e0;
    transform: rotate(0deg) translateY(-3px);
    box-shadow:
        inset 0 0 0 2px rgba(253, 243, 224, 0.68),
        0 4px 0 var(--as-red-deep),
        0 16px 32px rgba(34, 28, 20, 0.44);
}
.mcb-home .mcb-fab:active { transform: rotate(0deg) scale(0.95); }
.mcb-home .mcb-fab:focus-visible {
    outline: 3px solid var(--as-ink);
    outline-offset: 3px;
    border-radius: 999px;
}
.mcb-home .mcb-fab-ico { width: 22px; height: 22px; flex: none; }
@media (max-width: 640px), (max-device-width: 640px) {
    /* icon-only stamp on phones */
    .mcb-home .mcb-fab {
        width: 58px;
        height: 58px;
        min-height: 0;
        padding: 0;
        border-radius: 50%;
    }
    .mcb-home .mcb-fab-label { display: none; }
    .mcb-home .mcb-fab-ico { width: 26px; height: 26px; }
}
/* entrance flourish: stamped onto the wall shortly after load.
   fill-mode backwards (not both/forwards) so the resting styles - and the
   hover straighten - take over the moment the animation ends. */
@media (prefers-reduced-motion: no-preference) {
    .mcb-home .mcb-fab {
        animation: mcb-fab-stamp 0.4s cubic-bezier(0.2, 0.9, 0.35, 1.2) 0.55s backwards;
    }
    @keyframes mcb-fab-stamp {
        0% { opacity: 0; transform: rotate(-3deg) scale(1.4); }
        70% { opacity: 1; transform: rotate(-3deg) scale(0.93); }
        100% { opacity: 1; transform: rotate(-3deg) scale(1); }
    }
}

/* ============ site footer band ============ */
body.mcb-assembly .mcb-footer {
    background-color: var(--as-band);
    background-image: var(--as-noise), linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%);
    border-top: 4px solid var(--as-red);
    color: rgba(241, 232, 212, 0.78);
    margin-top: 30px;
    padding: 30px 24px 34px;
}
body.mcb-assembly .mcb-footer p {
    font-family: var(--as-f-sten);
    font-size: 1.02rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--as-band-ink);
}
body.mcb-assembly .mcb-green-badge {
    font-family: var(--as-f-type);
    font-size: 0.76rem;
    color: #9dc98a;
    border: 1.5px solid rgba(157, 201, 138, 0.5);
    border-radius: 3px;
    padding: 6px 12px 5px;
    margin-top: 14px;
}
body.mcb-assembly .mcb-green-badge svg { color: #9dc98a; }
body.mcb-assembly .mcb-green-badge:hover { color: #c3e8b2; }
body.mcb-assembly .mcb-green-badge:hover svg { color: #c3e8b2; filter: none; }
/* the site name and a plain row of links back into the site: on phones the
   header has scrolled away by the time a reader gets here */
body.mcb-assembly .mcb-footer-home { color: inherit; text-decoration: none; }
body.mcb-assembly .mcb-footer-home:hover { text-decoration: underline; text-underline-offset: 4px; }
body.mcb-assembly .mcb-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 6px;
    margin-top: 10px;
}
body.mcb-assembly .mcb-footer-nav a {
    font-family: var(--as-f-cond);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--as-band-ink);
    text-decoration: none;
    padding: 12px 12px; /* a 44px tap target */
}
body.mcb-assembly .mcb-footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ============ SIGNATURE MOTION (fully gated): the slap-up entrance and the
   one-time masthead sheen. assembly-wall.js adds .mcb-motion to <body> only
   when (prefers-reduced-motion: no-preference) matches, so without JS or with
   reduced motion every poster is simply visible. ============ */
@media (prefers-reduced-motion: no-preference) {
    body.mcb-motion .mcb-home .mcb-poster:not(.mcb-done) .mcb-paper { opacity: 0; }
    body.mcb-motion .mcb-home .mcb-poster.mcb-slap .mcb-paper {
        animation: mcb-slapup 0.62s cubic-bezier(0.24, 0.86, 0.36, 1.1) both;
        animation-delay: var(--d, 0ms);
    }
    body.mcb-motion .mcb-home .mcb-poster.mcb-slap:not(.mcb-done) { z-index: 3; }
    body.mcb-motion .mcb-home .mcb-poster.mcb-done .mcb-paper { animation: none; opacity: 1; }
    @keyframes mcb-slapup {
        0% {
            opacity: 0;
            transform: scale(1.12) rotate(0deg);
            box-shadow: 0 0 0 rgba(34, 28, 20, 0), 0 0 0 rgba(34, 28, 20, 0);
        }
        55% {
            opacity: 1;
            transform: scale(0.988) rotate(calc(var(--tilt, 0deg) * 1.35));
            box-shadow: 0 3px 5px rgba(34, 28, 20, 0.24), 0 26px 52px rgba(34, 28, 20, 0.42);
        }
        100% {
            opacity: 1;
            transform: scale(1) rotate(var(--tilt, 0deg));
            box-shadow: 0 1px 2px rgba(34, 28, 20, 0.28), 0 7px 16px rgba(34, 28, 20, 0.2);
        }
    }
    /* one wheatpaste sheen across the masthead on load */
    body.mcb-assembly.mcb-motion .mcb-header::after {
        content: "";
        position: absolute;
        inset: 0;
        height: auto;
        display: block;
        background: linear-gradient(105deg, rgba(255, 248, 230, 0) 38%, rgba(255, 248, 230, 0.13) 50%, rgba(255, 248, 230, 0) 62%);
        transform: translateX(-130%);
        animation: mcb-sheen 1.35s ease-in-out 0.45s 1 both;
        pointer-events: none;
        opacity: 1;
    }
    @keyframes mcb-sheen {
        from { transform: translateX(-130%); }
        to { transform: translateX(130%); }
    }
}

/* ============ small screens ============ */
@media (max-width: 860px), (max-device-width: 860px) {
    body.mcb-assembly .mcb-header-inner { justify-content: center; text-align: center; }
    body.mcb-assembly .mcb-logo-words { align-items: center; }
    body.mcb-assembly .mcb-logo-tagline { transform-origin: center; }
}
@media (max-width: 768px), (max-device-width: 768px) {
    /* app.css makes the header static on phones; the sheen pseudo still needs
       a positioned ancestor */
    body.mcb-assembly .mcb-header { position: relative; }
    body.mcb-assembly .mcb-header-inner { padding: 10px 12px; }
    body.mcb-assembly .mcb-logo-icon { width: 52px; height: 42px; }
    body.mcb-assembly .mcb-nav a { font-size: 0.8rem; padding: 8px 6px; }
    body.mcb-assembly .mcb-nav a.mcb-btn-primary { padding: 7px 14px 6px; }
    body.mcb-assembly .mcb-footer p { font-size: 0.92rem; }
    /* the nav is a sideways-scrolling strip here, which would clip a panel
       anchored to its label; anchor the panel to the header instead (an
       absolute box is only clipped by overflow between it and its
       containing block) and run it the width of the screen */
    body.mcb-assembly .mcb-nav-menu { position: static; }
    body.mcb-assembly .mcb-nav-menu > summary { font-size: 0.8rem; padding: 8px 6px; }
    body.mcb-assembly .mcb-nav-panel,
    body.mcb-assembly .mcb-nav-menu-end .mcb-nav-panel { top: 100%; left: 12px; right: 12px; min-width: 0; }
    body.mcb-assembly .mcb-nav .mcb-nav-panel a { padding: 12px 14px; font-size: 0.9rem; }
    .mcb-writers-page { margin-top: 24px; }
    .mcb-writers-head { padding: 22px 20px 18px; }
    .mcb-writers-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px), (max-device-width: 640px) {
    .mcb-home .mcb-wallhead { justify-content: center; }
    .mcb-home .mcb-sorts { margin-left: 0; }
    .mcb-home .mcb-paper { padding: 42px 18px 14px; }
    .mcb-home .mcb-lead .mcb-paper { padding: 46px 20px 16px; }
}
@media (max-width: 420px), (max-device-width: 420px) {
    body.mcb-assembly .mcb-logo { gap: 10px; }
    body.mcb-assembly .mcb-logo-text { white-space: normal; font-size: clamp(0.95rem, 4.8vw, 1.15rem); }
    body.mcb-assembly .mcb-logo-tagline { font-size: 0.78rem; }
}

/* ============ variant: newspaper clippings ============
   Link posts on a stable id-hash render as clipped newsprint: torn top and
   bottom edges, the source set like a tiny masthead, serif headline,
   justified serif body, photos printed halftone black-and-white. */
.mcb-home .mcb-clipping {
    filter: drop-shadow(0 1px 2px rgba(34, 28, 20, 0.3)) drop-shadow(0 6px 12px rgba(34, 28, 20, 0.18));
    transition: filter 0.28s ease;
}
.mcb-home .mcb-clipping:hover,
.mcb-home .mcb-clipping:focus-within {
    filter: drop-shadow(0 3px 6px rgba(34, 28, 20, 0.3)) drop-shadow(0 16px 30px rgba(34, 28, 20, 0.24));
}
.mcb-home .mcb-clipping .mcb-paper {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 40px 20px 18px;
}
.mcb-home .mcb-clipping:hover .mcb-paper,
.mcb-home .mcb-clipping:focus-within .mcb-paper { box-shadow: none; }
/* the newsprint sheet itself lives on a clipped pseudo so the pushpin can
   still overhang the torn edge unclipped */
.mcb-home .mcb-clipping .mcb-paper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(158deg, #ece7d8 0%, #e7e1cd 55%, #dfd8bf 100%);
    clip-path: polygon(0% 1.6%, 3% 0.4%, 7% 1.9%, 12% 0.2%, 18% 1.5%, 25% 0.5%, 31% 1.8%, 38% 0.3%, 46% 1.6%, 54% 0.6%, 61% 1.9%, 68% 0.2%, 75% 1.4%, 82% 0.5%, 89% 1.7%, 95% 0.4%, 100% 1.5%, 100% 98.4%, 96% 99.7%, 90% 98.2%, 83% 99.6%, 76% 98.4%, 68% 99.8%, 60% 98.3%, 52% 99.5%, 45% 98.2%, 37% 99.7%, 29% 98.5%, 22% 99.8%, 15% 98.3%, 8% 99.6%, 3% 98.4%, 0% 99.5%);
}
.mcb-home .mcb-clipping .mcb-paper::after {
    background-image:
        var(--as-noise),
        linear-gradient(170deg, rgba(120, 96, 52, 0.10) 0%, rgba(34, 28, 20, 0) 40%, rgba(120, 96, 52, 0.12) 100%);
    opacity: 0.6;
    clip-path: polygon(0% 1.6%, 3% 0.4%, 7% 1.9%, 12% 0.2%, 18% 1.5%, 25% 0.5%, 31% 1.8%, 38% 0.3%, 46% 1.6%, 54% 0.6%, 61% 1.9%, 68% 0.2%, 75% 1.4%, 82% 0.5%, 89% 1.7%, 95% 0.4%, 100% 1.5%, 100% 98.4%, 96% 99.7%, 90% 98.2%, 83% 99.6%, 76% 98.4%, 68% 99.8%, 60% 98.3%, 52% 99.5%, 45% 98.2%, 37% 99.7%, 29% 98.5%, 22% 99.8%, 15% 98.3%, 8% 99.6%, 3% 98.4%, 0% 99.5%);
}
/* source masthead: thin rule over, double rule under */
.mcb-home .mcb-clip-mast {
    font-family: 'Old Standard TT', Georgia, 'Times New Roman', serif;
    font-variant: small-caps;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    color: var(--as-ink);
    text-align: center;
    border-top: 1px solid rgba(34, 28, 20, 0.65);
    border-bottom: 3px double rgba(34, 28, 20, 0.65);
    padding: 3px 0 4px;
    margin: -4px 0 12px;
}
.mcb-home .mcb-clipping .mcb-tag { border-radius: 0; transform: none; }
.mcb-home .mcb-clipping .mcb-h-cond {
    font-family: 'Old Standard TT', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1.42rem;
    line-height: 1.16;
}
.mcb-home .mcb-clipping.mcb-lead .mcb-h-cond { font-size: clamp(1.7rem, 2.9vw, 2.2rem); }
.mcb-home .mcb-clipping .mcb-ex {
    font-family: 'Old Standard TT', Georgia, 'Times New Roman', serif;
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: justify;
    hyphens: auto;
    color: rgba(34, 28, 20, 0.82);
}
/* the double-wide lead clipping reads in two ruled columns */
.mcb-home .mcb-clipping.mcb-lead .mcb-ex {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: 8.6em;
    max-width: none;
    column-count: 2;
    column-gap: 20px;
    column-rule: 1px solid rgba(34, 28, 20, 0.3);
}
/* photos print in the column: flush, halftone, black-and-white */
.mcb-home .mcb-clipping .mcb-photo { transform: none; margin: 4px 0 12px; }
.mcb-home .mcb-clipping .mcb-photo .mcb-tape { display: none; }
.mcb-home .mcb-clipping .mcb-photo-img {
    filter: grayscale(1) sepia(0.14) contrast(1.05);
    border: 1px solid rgba(34, 28, 20, 0.55);
    box-shadow: none;
}
.mcb-home .mcb-clipping .mcb-photo-frame::after {
    background-image:
        radial-gradient(rgba(34, 28, 20, 0.5) 0.7px, transparent 1.1px),
        var(--as-noise);
    background-size: 3.5px 3.5px, auto;
    opacity: 0.22;
}
@media (max-width: 640px) {
    .mcb-home .mcb-clipping .mcb-paper { padding: 38px 16px 16px; }
    .mcb-home .mcb-clipping.mcb-lead .mcb-ex {
        column-count: 1;
        max-height: none;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
}

/* ============ pinned arena post ============
   Sorted first by PostService; visually it hangs dead straight under a red
   pushpin with a deeper stamp, like the notice the organizer wants read first. */
.mcb-home .mcb-pinned { --tilt: 0deg; }
.mcb-home .mcb-stamp-pinned {
    color: var(--as-red-deep);
    border-color: var(--as-red-deep);
}
.mcb-home .mcb-pinned .mcb-paper {
    box-shadow:
        0 1px 2px rgba(34, 28, 20, 0.3),
        0 9px 20px rgba(34, 28, 20, 0.26);
}

/* ============ endless scroll: sentinel + end-of-wall marker ============
   The sentinel renders with [hidden] and is unhidden by assembly-wall.js, so
   no-JS pages keep the plain one-page wall. While fetching it reads as a small
   paper scrap pinned under the wall; after a double fetch failure it gains
   .mcb-sentinel-error and becomes a tappable retry chit; when the archive is
   exhausted the JS swaps it for the .mcb-wall-end rubber stamp. */
.mcb-home .mcb-wall-sentinel {
    max-width: 1100px;
    margin: -30px auto 0;
    padding: 0 8px 60px;
    display: flex;
    justify-content: center;
}
.mcb-home .mcb-wall-sentinel[hidden] { display: none; }
.mcb-home .mcb-sentinel-note {
    font-family: var(--as-f-type);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--as-ink-soft);
    background-color: var(--as-kraft);
    border: 1px solid rgba(34, 28, 20, 0.25);
    border-radius: 2px;
    padding: 7px 14px 6px;
    box-shadow: 0 1px 2px rgba(34, 28, 20, 0.2);
    transform: rotate(-0.8deg);
    mix-blend-mode: multiply;
    cursor: default;
    pointer-events: none; /* a passive status chit unless it's the retry state */
}
.mcb-home .mcb-wall-sentinel.mcb-sentinel-error .mcb-sentinel-note {
    pointer-events: auto;
    cursor: pointer;
    color: var(--as-red);
    border-color: rgba(169, 44, 51, 0.6);
    border-style: dashed;
}
.mcb-home .mcb-wall-sentinel.mcb-sentinel-error .mcb-sentinel-note:hover {
    color: var(--as-red-deep);
    border-color: var(--as-red-deep);
}
/* fetch chit breathes very gently - motion-gated, so reduced-motion users
   (and no-JS pages, which never show it) see a perfectly still scrap */
@media (prefers-reduced-motion: no-preference) {
    .mcb-home .mcb-wall-sentinel:not(.mcb-sentinel-error) .mcb-sentinel-note {
        animation: mcb-sentinel-breathe 1.6s ease-in-out infinite;
    }
    @keyframes mcb-sentinel-breathe {
        0%, 100% { opacity: 0.55; }
        50% { opacity: 0.95; }
    }
}
/* end of the archive: a faded rubber stamp, same family as .mcb-stamp */
.mcb-home .mcb-wall-end {
    display: inline-flex;
    align-items: center;
    font-family: var(--as-f-cond);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--as-ink-faint);
    border: 2px solid rgba(34, 28, 20, 0.35);
    border-radius: 3px 5px 3px 6px;
    padding: 5px 13px 4px;
    transform: rotate(-3deg);
    opacity: 0.8;
    mix-blend-mode: multiply;
}
