/*
Theme Name: Mosman Memories 2026
Theme URI: https://mosman.nsw.gov.au/
Author: Haran Siva
Author URI: https://mosman.nsw.gov.au/
Description: Theme for Mosman Memories of Your Street. Archival "living history" redesign — cream paper on a maroon stage, serif storytelling type, photo-corner mounted memory tiles.
Version: 2.5.0
Text Domain: mosmanmemories
*/

/* =====================================================================
   0. FONTS
   ---------------------------------------------------------------------
   - "league-gothic" (self-hosted Bebas Neue): big display headlines.
   - "Source Serif 4": story/body text — printed local-history feel.
   - "Oswald": catalogue labels, buttons, small-caps utility.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

@font-face {
    font-family: "league-gothic";
    src: url("assets/fonts/BebasNeue-webfont.eot");
    src: url("assets/fonts/BebasNeue-webfont.eot?#iefix") format("embedded-opentype"),
         url("assets/fonts/BebasNeue-webfont.woff") format("woff"),
         url("assets/fonts/BebasNeue-webfont.ttf") format("truetype"),
         url("assets/fonts/BebasNeue-webfont.svg#BebasNeue") format("svg");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* =====================================================================
   1. DESIGN TOKENS
   ===================================================================== */

:root {
    /* Brand palette (unchanged) */
    --mm-maroon:       #8d0b2e;
    --mm-maroon-dark:  #5a001a;
    --mm-maroon-deep:  #4a0015;   /* stage vignette edge */
    --mm-sand:         #e6bc88;
    --mm-sand-light:   #f7e3b6;
    --mm-cream:        #fff8f3;
    --mm-paper:        #fffdf8;   /* card surface, a touch brighter than cream */

    /* Archival ink — warm near-black instead of pure #000 */
    --mm-ink:          #2b1c12;
    --mm-ink-soft:     #6d5949;
    --mm-ink-faint:    #9b8674;

    /* Rules & lines */
    --mm-rule:         rgba(141, 11, 46, 0.22);
    --mm-rule-soft:    rgba(43, 28, 18, 0.14);
    --mm-ledger:       rgba(43, 28, 18, 0.22);

    /* Type */
    --mm-font-display: "league-gothic", "Arial Narrow", Arial, sans-serif;
    --mm-font-serif:   "Source Serif 4", Georgia, "Times New Roman", serif;
    --mm-font-label:   "Oswald", "Arial Narrow", Arial, sans-serif;

    /* Fluid scale */
    --mm-fs-display:   clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
    --mm-fs-h2:        clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
    --mm-fs-body:      clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);
    --mm-fs-small:     0.875rem;
    --mm-fs-label:     0.78rem;

    /* Layout */
    --mm-sidebar-w:    clamp(250px, 22vw, 340px);
    --mm-gutter:       clamp(14px, 2.5vw, 48px);
    --mm-gap:          clamp(18px, 2.5vw, 44px);
    --mm-site-max:     1720px;

    /* Shape & shadow */
    --mm-radius:       14px;
    --mm-radius-sm:    8px;
    --mm-shadow:       0 16px 44px rgba(42, 0, 12, 0.35);
    --mm-shadow-card:  0 6px 18px rgba(42, 0, 12, 0.12);
    --mm-shadow-lift:  0 14px 32px rgba(42, 0, 12, 0.22);
}

/* =====================================================================
   2. BASE
   ===================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--mm-font-serif);
    font-size: var(--mm-fs-body);
    line-height: 1.65;
    color: var(--mm-ink);
    /* The maroon "stage": subtle vignette so the paper plane sits in light */
    background:
        radial-gradient(120% 90% at 50% 0%, var(--mm-maroon) 0%, var(--mm-maroon-dark) 62%, var(--mm-maroon-deep) 100%)
        var(--mm-maroon-dark);
    background-attachment: fixed;
}

img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }

a {
    color: var(--mm-maroon);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover { color: var(--mm-maroon-dark); }

/* Display headings */
h1, .mosmem-page-title {
    font-family: var(--mm-font-display);
    font-weight: 400;
    font-size: var(--mm-fs-display);
    line-height: 0.95;
    letter-spacing: 0.015em;
    text-transform: uppercase;
    color: var(--mm-ink);
    margin: 0 0 0.4rem;
    word-break: break-word;
}

h2, h3 {
    font-family: var(--mm-font-label);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
    color: var(--mm-ink);
}

h2 { font-size: var(--mm-fs-h2); }

/* Catalogue label: reused voice for meta labels, buttons, section headings */
.mm-label,
.mosmem-sidebar-heading,
.mosmem-sidebar-section-title,
.mosmem-sidebar-label,
.mosmem-meta-label {
    font-family: var(--mm-font-label);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: var(--mm-fs-label);
}

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

::selection {
    background: var(--mm-sand);
    color: var(--mm-ink);
}

/* =====================================================================
   3. STAGE, TOP LINKS, LAYOUT SHELL
   ===================================================================== */

.mosmem-site-container {
    max-width: var(--mm-site-max);
    margin: 0 auto;
    padding: 14px var(--mm-gutter) 0;
}

.mosmem-toplinks {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 4px 2px 12px;
}

.mosmem-toplink,
.mosmem-submit-story {
    font-family: var(--mm-font-label);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
}

.mosmem-submit-story {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 20px;
    border-radius: var(--mm-radius-sm);
    background: var(--mm-cream);
    color: var(--mm-maroon) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.mosmem-submit-story:hover {
    background: var(--mm-sand-light);
    color: var(--mm-maroon-dark) !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* Two-column layout: card-catalogue sidebar + paper content */
.mosmem-layout {
    display: grid;
    grid-template-columns: var(--mm-sidebar-w) minmax(0, 1fr);
    gap: var(--mm-gap);
    align-items: start;
    padding-bottom: clamp(28px, 4vw, 56px);
}

.mosmem-layout-main { min-width: 0; }

.mosmem-shell { min-width: 0; }

/* The paper plane */
.mosmem-main {
    background:
        linear-gradient(180deg, var(--mm-paper) 0%, var(--mm-cream) 100%);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow);
    padding: clamp(1.4rem, 3vw, 2.6rem) clamp(1.1rem, 3vw, 2.8rem) clamp(2rem, 3.5vw, 3rem);
}

/* =====================================================================
   4. PAGE HEADER — ledger heading with double rule
   ===================================================================== */

.mosmem-page-header {
    position: relative;
    margin: 0 0 clamp(1.4rem, 2.5vw, 2rem);
    padding-bottom: 0.9rem;
    /* Double rule: thick + thin, like a ledger book heading */
    border-bottom: 3px solid var(--mm-maroon);
    box-shadow: 0 5px 0 -3px var(--mm-rule);
}

.mosmem-page-intro {
    margin: 0.2rem 0 0;
    font-size: 1rem;
    font-style: italic;
    color: var(--mm-ink-soft);
    max-width: 62ch;
}

/* =====================================================================
   5. SIDEBAR — card catalogue
   ===================================================================== */

.mosmem-sidebar {
    position: sticky;
    top: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.mosmem-sidebar-logo {
    background: var(--mm-paper);
    border-radius: var(--mm-radius);
    padding: 10px;
    box-shadow: var(--mm-shadow-card);
}

.mosmem-sidebar-logo a { display: block; }

.mosmem-sidebar-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.mosmem-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

/* A catalogue card */
.mosmem-sidebar-section {
    background: var(--mm-paper);
    border-radius: var(--mm-radius);
    padding: 1.1rem 1.15rem 1.25rem;
    box-shadow: var(--mm-shadow-card);
}

.mosmem-sidebar-heading,
.mosmem-sidebar-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 0.85rem;
    color: var(--mm-maroon);
}

/* Small rule that runs out after the heading — catalogue-drawer label */
.mosmem-sidebar-heading::after,
.mosmem-sidebar-section-title::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--mm-rule);
}

.mosmem-sidebar-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--mm-ink-soft);
}

.mosmem-sidebar-fieldgroup { margin-bottom: 0.95rem; }
.mosmem-sidebar-fieldgroup:last-child { margin-bottom: 0; }

/* Fields */
.mosmem-sidebar select,
.mosmem-street-dropdown-select,
.mosmem-header-search-input,
.mosmem-sidebar input[type="search"],
.mosmem-sidebar input[type="text"] {
    width: 100%;
    min-height: 46px;
    padding: 0.55rem 0.95rem;
    font-family: var(--mm-font-serif);
    font-size: 16px; /* prevents iOS focus zoom */
    color: var(--mm-ink);
    background: #fff;
    border: 1px solid var(--mm-rule-soft);
    border-radius: var(--mm-radius-sm);
}

.mosmem-sidebar select:focus,
.mosmem-street-dropdown-select:focus,
.mosmem-header-search-input:focus,
.mosmem-sidebar input:focus {
    outline: none;
    border-color: var(--mm-maroon);
    box-shadow: 0 0 0 3px rgba(141, 11, 46, 0.16);
}

/* Search form: field + Find button */
.mosmem-header-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mosmem-header-search-form .mosmem-header-search-input { flex: 1 1 150px; }

.mosmem-header-search-button,
.mosmem-404-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.4rem 1.35rem;
    border: 0;
    border-radius: var(--mm-radius-sm);
    background: var(--mm-maroon);
    color: var(--mm-cream);
    font-family: var(--mm-font-label);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s ease;
}

.mosmem-header-search-button:hover,
.mosmem-404-search-button:hover { background: var(--mm-maroon-dark); }

/* Sidebar nav: drawer rows */
.mosmem-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mosmem-sidebar-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0.45rem 0.9rem 0.45rem 1.05rem;
    border-radius: var(--mm-radius-sm);
    background: var(--mm-sand-light);
    color: var(--mm-ink);
    font-family: var(--mm-font-label);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-left: 3px solid var(--mm-sand);
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.mosmem-sidebar-nav a:hover,
.mosmem-sidebar-nav .current-menu-item > a,
.mosmem-sidebar-nav .current_page_item > a {
    background: var(--mm-maroon);
    border-left-color: var(--mm-maroon-dark);
    color: var(--mm-cream);
}

/* About sub-menu — indented child entries under "About the project".
   Selectors are scoped to .mosmem-sidebar-nav so they beat the
   pill styles that .mosmem-sidebar-nav a would otherwise apply. */
.mosmem-submenu {
    margin: 2px 0 6px 12px;
    padding: 2px 0 2px 14px;
    border-left: 2px solid var(--mm-sand);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mosmem-sidebar-nav .mosmem-submenu a,
.mosmem-submenu .mosmem-submenu-item,
.mosmem-submenu a {
    display: block;
    min-height: 0;
    padding: 7px 8px;
    background: transparent;
    border: 0;
    border-left: 0;
    border-radius: 6px;
    font-family: var(--mm-font-serif);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.4;
    color: var(--mm-ink);
    text-decoration: none;
}

.mosmem-sidebar-nav .mosmem-submenu a:hover,
.mosmem-submenu a:hover {
    background: var(--mm-sand-light);
    color: var(--mm-maroon);
    text-decoration: none;
}

.mosmem-submenu .current-menu-item > a,
.mosmem-submenu .current_page_item > a,
.mosmem-sidebar-nav .mosmem-submenu a[aria-current="page"] {
    font-weight: 600;
    color: var(--mm-maroon);
}

/* =====================================================================
   6. MEMORY TILES — the signature: mounted photographs
   ===================================================================== */

.mosmem-story-card-grid,
.mosmem-tile-grid,
.mosmem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr));
    gap: clamp(1rem, 2.2vw, 1.7rem);
    margin-top: 0.4rem;
}

@media (min-width: 1720px) {
    .mosmem-story-card-grid,
    .mosmem-tile-grid,
    .mosmem-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.mosmem-story-card {
    display: flex;
    flex-direction: column;
    background: var(--mm-paper);
    border: 1px solid rgba(43, 28, 18, 0.07);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow-card);
    text-decoration: none;
    color: var(--mm-ink);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mosmem-story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mm-shadow-lift);
    color: var(--mm-ink);
}

/* The mounted photograph.
   Padding = the album page showing around the print;
   ::after paints four sand photo-corners in one overlay. */
.mosmem-story-card-media {
    position: relative;
    margin: 14px 14px 0;
    aspect-ratio: 16 / 11;
    background-color: var(--mm-sand-light);
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(43, 28, 18, 0.12);
    /* Archival sepia at rest… */
    filter: sepia(0.32) saturate(0.9) contrast(1.02);
    transition: filter 0.35s ease;
}

/* …memory comes back to life on hover */
.mosmem-story-card:hover .mosmem-story-card-media { filter: none; }

.mosmem-story-card-media::after {
    content: "";
    position: absolute;
    inset: -7px;
    pointer-events: none;
    background:
        linear-gradient(135deg, var(--mm-sand) 50%, transparent 50.5%) top left / 22px 22px no-repeat,
        linear-gradient(225deg, var(--mm-sand) 50%, transparent 50.5%) top right / 22px 22px no-repeat,
        linear-gradient(45deg,  var(--mm-sand) 50%, transparent 50.5%) bottom left / 22px 22px no-repeat,
        linear-gradient(315deg, var(--mm-sand) 50%, transparent 50.5%) bottom right / 22px 22px no-repeat;
    filter: drop-shadow(0 1px 1px rgba(43, 28, 18, 0.25));
}

.mosmem-story-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 18px 18px;
}

.mosmem-story-card-title {
    margin: 0 0 0.6rem;
    font-family: var(--mm-font-label);
    font-weight: 500;
    font-size: 1.02rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--mm-ink);
}

.mosmem-story-card:hover .mosmem-story-card-title { color: var(--mm-maroon); }

/* Ledger-line metadata */
.mosmem-story-card-meta-block {
    margin-bottom: 0.65rem;
    border-top: 1px dashed var(--mm-ledger);
}

.mosmem-story-card-meta-row {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px dashed var(--mm-ledger);
    font-size: 0.88rem;
    line-height: 1.4;
}

.mosmem-meta-label {
    flex: 0 0 auto;
    color: var(--mm-maroon);
}

.mosmem-meta-value {
    color: var(--mm-ink-soft);
    min-width: 0;
}

.mosmem-story-card-excerpt {
    margin: 0;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--mm-ink-soft);
    line-height: 1.55;
}

/* Legacy alt tile partial (template-parts/content-tile.php) */
.mosmem-tile {
    background: var(--mm-paper);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow-card);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mosmem-tile:hover { transform: translateY(-4px); box-shadow: var(--mm-shadow-lift); }
.mosmem-tile__link { display: block; color: inherit; text-decoration: none; }
.mosmem-tile__thumb {
    aspect-ratio: 16 / 11;
    background-size: cover;
    background-position: center;
    filter: sepia(0.32) saturate(0.9);
    transition: filter 0.35s ease;
}
.mosmem-tile:hover .mosmem-tile__thumb { filter: none; }
.mosmem-tile__body { padding: 14px 16px 16px; }
.mosmem-tile__title {
    margin: 0 0 0.4rem;
    font-family: var(--mm-font-label);
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.mosmem-tile__meta { margin: 0 0 0.5rem; font-size: 0.85rem; color: var(--mm-ink-soft); }
.mosmem-tile__excerpt { margin: 0; font-size: 0.93rem; font-style: italic; color: var(--mm-ink-soft); }

/* Blog grid variant hides the media strip */
.mosmem-blog-grid .mosmem-story-card-media {
    display: none;
}

/* =====================================================================
   7. SINGLE STORY
   ===================================================================== */

/* Meta as an index card under the headline */
.mosmem-story-meta {
    margin: 0.9rem 0 0;
    padding: 0.35rem 1rem 0.45rem;
    max-width: 560px;
    background: #fff;
    border: 1px solid var(--mm-rule-soft);
    border-top: 3px solid var(--mm-maroon);
    border-radius: 0 0 var(--mm-radius-sm) var(--mm-radius-sm);
}

.mosmem-story-meta-row {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 6px 0;
    font-size: 0.95rem;
}

.mosmem-story-meta-row + .mosmem-story-meta-row {
    border-top: 1px dashed var(--mm-ledger);
}

.mosmem-story-meta-row strong {
    flex: 0 0 auto;
    font-family: var(--mm-font-label);
    font-weight: 500;
    font-size: var(--mm-fs-label);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mm-maroon);
}

.mosmem-story-meta-row span { color: var(--mm-ink-soft); }

/* Hero: the same mounted-photograph treatment, full content width */
.mosmem-story-hero {
    position: relative;
    margin: 0 0 clamp(1.4rem, 3vw, 2.2rem);
    padding: 18px 18px 14px;
    background: var(--mm-paper);
    box-shadow: var(--mm-shadow-card);
    border-radius: var(--mm-radius-sm);
}

.mosmem-story-hero img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: inset 0 0 0 1px rgba(43, 28, 18, 0.12), 0 2px 10px rgba(43, 28, 18, 0.18);
}

.mosmem-story-hero::after {
    content: "";
    position: absolute;
    inset: 8px;
    pointer-events: none;
    background:
        linear-gradient(135deg, var(--mm-sand) 50%, transparent 50.5%) top left / 26px 26px no-repeat,
        linear-gradient(225deg, var(--mm-sand) 50%, transparent 50.5%) top right / 26px 26px no-repeat,
        linear-gradient(45deg,  var(--mm-sand) 50%, transparent 50.5%) bottom left / 26px 26px no-repeat,
        linear-gradient(315deg, var(--mm-sand) 50%, transparent 50.5%) bottom right / 26px 26px no-repeat;
    filter: drop-shadow(0 1px 1px rgba(43, 28, 18, 0.25));
}

.mosmem-story-caption {
    margin-top: 0.7rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--mm-ledger);
    font-size: 0.92rem;
    font-style: italic;
    color: var(--mm-ink-soft);
    line-height: 1.45;
}

/* Story body — reads like a printed page, full content width */
.mosmem-story-content,
.mosmem-content {
    max-width: none;
    font-size: var(--mm-fs-body);
    line-height: 1.75;
    overflow-wrap: break-word;
}

.mosmem-story-content p,
.mosmem-content p { margin: 0 0 1.1em; }

.mosmem-story-figure { margin: 2rem 0; }

.mosmem-story-inline-image,
.mosmem-story-content img,
.mosmem-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--mm-radius-sm);
    box-shadow: var(--mm-shadow-card);
}

.mosmem-main blockquote,
.mosmem-story-content blockquote {
    margin: 1.8rem 0;
    padding: 1rem 1.3rem;
    border-left: 3px solid var(--mm-maroon);
    background: rgba(230, 188, 136, 0.16);
    border-radius: 0 var(--mm-radius-sm) var(--mm-radius-sm) 0;
    font-style: italic;
    color: var(--mm-ink);
}

/* Tables in submitted stories scroll rather than overflow */
.mosmem-story-content table,
.mosmem-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}

.mosmem-story-content td,
.mosmem-story-content th,
.mosmem-content td,
.mosmem-content th {
    padding: 8px 12px;
    border: 1px solid var(--mm-rule-soft);
}

/* Embeds */
.wp-block-embed-youtube,
.wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--mm-radius-sm);
    margin: 1.5rem 0;
}

.wp-block-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.mosmem-main iframe[src*="youtube"],
.mosmem-main iframe[src*="youtu.be"] {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--mm-radius-sm);
    border: 0;
}

/* WP core alignment / caption classes */
.alignleft  { float: left;  margin: 0.4rem 1.2rem 0.8rem 0; }
.alignright { float: right; margin: 0.4rem 0 0.8rem 1.2rem; }
.aligncenter { display: block; margin: 1rem auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--mm-ink-soft);
    margin-top: 0.4rem;
}

/* =====================================================================
   8. MAPS
   ===================================================================== */

.mosmem-map-shell { margin-top: 0.4rem; }

/* Taller canvas on /map: more vertical room means fitBounds can fit the
   north–south spread of markers without zooming out as far, so outlying
   pins stay visible. dvh keeps it honest on mobile browsers. */
.mosmem-map-canvas {
    width: 100%;
    height: min(85vh, 900px);
    height: min(85dvh, 900px);
    border-radius: var(--mm-radius);
    overflow: hidden;
    border: 1px solid var(--mm-rule-soft);
    box-shadow: var(--mm-shadow-card);
}

.mosmem-street-map-wrap { margin-bottom: 1.4rem; }

.mosmem-street-map,
#mosmem-street-map,
.mosmem-story-map-inner {
    width: 100%;
    height: clamp(220px, 38vh, 420px);
    border-radius: var(--mm-radius);
    overflow: hidden;
    border: 1px solid var(--mm-rule-soft);
}

.mosmem-story-map {
    margin-top: 1.6rem;
    border-radius: var(--mm-radius);
    overflow: hidden;
}

/* Marker info windows (markup built in assets/js/mosmem-maps.js) */
.mosmem-map-info {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    max-width: 280px;
    font-family: var(--mm-font-serif);
    color: var(--mm-ink);
}

.mosmem-map-info-thumb {
    flex: 0 0 72px;
    overflow: hidden;
    border-radius: var(--mm-radius-sm);
    box-shadow: 0 0 0 1px rgba(43, 28, 18, 0.12);
}

.mosmem-map-info-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mosmem-map-info-body { flex: 1; min-width: 0; }

.mosmem-map-info-title {
    margin: 0 0 0.3rem;
    font-family: var(--mm-font-label);
    font-weight: 500;
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.25;
    color: var(--mm-ink);
}

.mosmem-map-info-row {
    display: flex;
    gap: 0.4rem;
    align-items: baseline;
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 0.1rem;
}

/* .mosmem-meta-label / .mosmem-meta-value are styled in the tile section
   and reused here; keep the label smaller inside the compact popup. */
.mosmem-map-info .mosmem-meta-label { font-size: 0.68rem; }

.mosmem-map-info-link {
    display: inline-flex;
    margin-top: 0.4rem;
    font-family: var(--mm-font-label);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--mm-maroon);
}

.mosmem-map-info-link:hover { text-decoration: underline; }

/* =====================================================================
   9. FRONT-PAGE EXTRAS, INDEXES, LISTS, PAGINATION
   ===================================================================== */

.mosmem-front-section {
    margin-top: 2rem;
    padding: 1.4rem 1.6rem 1.6rem;
    background: #fff;
    border: 1px solid var(--mm-rule-soft);
    border-radius: var(--mm-radius);
}

.mosmem-front-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 0.9rem;
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    color: var(--mm-maroon);
}

.mosmem-front-heading::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--mm-rule);
}

.mosmem-front-links { margin: 0; font-size: 1.02rem; }

.mosmem-front-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mosmem-front-list li {
    padding: 0.5rem 0;
    line-height: 1.5;
}

.mosmem-front-list li + li { border-top: 1px dashed var(--mm-ledger); }

.mosmem-front-comment-meta { font-size: 0.88rem; color: var(--mm-ink-soft); }

.mosmem-front-more { margin: 0.9rem 0 0; font-size: 0.92rem; }

/* Street / story / photo indexes */
.mosmem-index-list,
.mosmem-story-index,
.mosmem-photo-index { margin-top: 1.4rem; }

.mosmem-index-links,
.mosmem-story-index-list,
.mosmem-photo-index-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mosmem-index-links li,
.mosmem-story-index-item,
.mosmem-photo-index-item {
    padding: 0.45rem 0;
    border-bottom: 1px dashed var(--mm-ledger);
    line-height: 1.45;
}

.mosmem-index-count,
.mosmem-story-index-meta,
.mosmem-photo-index-meta {
    margin-left: 0.35rem;
    font-size: 0.9rem;
    color: var(--mm-ink-soft);
}

.mosmem-story-index-sep,
.mosmem-photo-index-sep { opacity: 0.6; }

.mosmem-story-index-group,
.mosmem-photo-index-group { margin-bottom: 2rem; }

.mosmem-story-index-street,
.mosmem-photo-index-street {
    margin: 0 0 0.6rem;
    font-size: 1.25rem;
    color: var(--mm-maroon);
}

.mosmem-index-meta { margin-top: 2rem; }

/* Archive / search plain lists */
.mosmem-list { display: flex; flex-direction: column; }

.mosmem-list-item,
.mosmem-list > * {
    padding: 0.85rem 0;
    border-bottom: 1px dashed var(--mm-ledger);
}

.mosmem-list-title { font-weight: 600; }

/* Pagination
   paginate_links( type => 'list' ) outputs:
   <ul class="page-numbers"><li><a|span class="page-numbers …">
   so the <ul> and <li> must be reset — only the inner a/span are buttons. */
.mosmem-pagination {
    margin-top: 2.4rem;
    display: flex;
    justify-content: center;
}

.mosmem-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;      /* kills the stray bullet dots */
    border: 0;
    background: transparent;
    min-width: 0;
    min-height: 0;
}

.mosmem-pagination li {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.mosmem-pagination a.page-numbers,
.mosmem-pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: var(--mm-radius-sm);
    border: 1px solid var(--mm-rule-soft);
    background: #fff;
    color: var(--mm-ink);
    font-family: var(--mm-font-label);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mosmem-pagination a.page-numbers:hover,
.mosmem-pagination a.page-numbers:focus-visible {
    background: var(--mm-sand-light);
    border-color: var(--mm-sand);
    color: var(--mm-maroon-dark);
}

/* Current page: unmistakable */
.mosmem-pagination span.page-numbers.current {
    background: var(--mm-maroon);
    border-color: var(--mm-maroon-dark);
    color: var(--mm-cream);
    box-shadow: inset 0 -3px 0 var(--mm-maroon-dark);
}

/* Previous / Next: labelled actions read as buttons, not numbers */
.mosmem-pagination .page-numbers.prev,
.mosmem-pagination .page-numbers.next {
    padding: 0 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.82rem;
    background: var(--mm-sand-light);
    border-color: var(--mm-sand);
}

.mosmem-pagination a.page-numbers.prev:hover,
.mosmem-pagination a.page-numbers.next:hover {
    background: var(--mm-maroon);
    border-color: var(--mm-maroon-dark);
    color: var(--mm-cream);
}

/* Ellipsis: quiet gap indicator, not a button */
.mosmem-pagination span.page-numbers.dots {
    min-width: 0;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: var(--mm-ink-faint);
}

/* =====================================================================
   10. ABOUT PAGE, 404, COMMENTS, WIDGETS, BUTTONS
   ===================================================================== */

.mosmem-about-item {
    padding: 0 0 2.4rem;
    margin: 0 0 2.4rem;
    border-bottom: 1px dashed var(--mm-ledger);
}

.mosmem-about-item:last-child { border-bottom: 0; margin-bottom: 0; }

.mosmem-about-excerpt {
    max-width: none;
    line-height: 1.7;
}

.mosmem-about-more { margin: 1.2rem 0 0; }

.mosmem-404-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1rem 0 0.4rem;
    max-width: 560px;
}

.mosmem-404-search-input {
    flex: 1 1 240px;
    min-height: 46px;
    padding: 0 1rem;
    font-family: var(--mm-font-serif);
    font-size: 16px;
    border: 1px solid var(--mm-rule-soft);
    border-radius: var(--mm-radius-sm);
    background: #fff;
    color: var(--mm-ink);
}

.mosmem-404-search-input:focus {
    outline: none;
    border-color: var(--mm-maroon);
    box-shadow: 0 0 0 3px rgba(141, 11, 46, 0.16);
}

.mosmem-primary-link { font-weight: 600; }

.mosmem-comments {
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 3px solid var(--mm-maroon);
    box-shadow: 0 -5px 0 -3px var(--mm-rule);
}

.comment-list { list-style: none; padding: 0; margin: 0; }

.comment {
    padding: 1rem 0;
    border-bottom: 1px dashed var(--mm-ledger);
}

.comment-meta { font-size: 0.85rem; color: var(--mm-ink-soft); }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.9rem;
    font-family: var(--mm-font-serif);
    font-size: 16px;
    border: 1px solid var(--mm-rule-soft);
    border-radius: var(--mm-radius-sm);
    background: #fff;
}

.comment-form input[type="submit"],
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0.4rem 1.5rem;
    border: 0;
    border-radius: var(--mm-radius-sm);
    background: var(--mm-maroon);
    color: var(--mm-cream);
    font-family: var(--mm-font-label);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
}

.comment-form input[type="submit"]:hover,
.wp-block-button__link:hover { background: var(--mm-maroon-dark); color: var(--mm-cream); }

/* ------------------------------------------------------------------
   GLOBAL BUTTON CONSISTENCY
   One button style everywhere — matches the sidebar "Find" button.
   Covers plugin-rendered forms too (e.g. the Submit-your-story form),
   whose own styles often use a full pill radius.
   Scoped to submit/button *types* so Google Maps' injected controls
   (type="button" inside map canvases) are excluded via :not().
   ------------------------------------------------------------------ */
.mosmem-main button[type="submit"],
.mosmem-main input[type="submit"],
.mosmem-main input[type="button"],
.mosmem-main form button:not([type="button"]),
.mosmem-main .button,
.mosmem-sidebar-popup button[type="submit"],
.wp-block-button__link,
.wp-element-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.4rem 1.5rem;
    border: 0;
    border-radius: var(--mm-radius-sm) !important; /* beats plugin pill radius */
    background: var(--mm-maroon);
    color: var(--mm-cream);
    font-family: var(--mm-font-label);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease;
}

.mosmem-main button[type="submit"]:hover,
.mosmem-main input[type="submit"]:hover,
.mosmem-main input[type="button"]:hover,
.mosmem-main form button:not([type="button"]):hover,
.mosmem-main .button:hover,
.mosmem-sidebar-popup button[type="submit"]:hover,
.wp-element-button:hover {
    background: var(--mm-maroon-dark);
    color: var(--mm-cream);
}

.widget { margin-bottom: 1.4rem; }
.widget-title {
    font-family: var(--mm-font-label);
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mm-maroon);
}

.mosmem-placeholder { color: var(--mm-ink-faint); }

/* =====================================================================
   11. FOOTER — colophon on the maroon stage
   ===================================================================== */

.mosmem-footer {
    padding: 26px 12px calc(30px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    font-family: var(--mm-font-label);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 248, 243, 0.75);
}

.mosmem-footer a {
    color: var(--mm-sand-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mosmem-footer a:hover { color: #fff; }

/* =====================================================================
   12. MOBILE MENU (toggle + popup sheet)
   ===================================================================== */

.mosmem-sidebar-toggle { display: none; } /* legacy hook, unused */

.mosmem-mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    border: 0;
    border-radius: var(--mm-radius-sm);
    background: var(--mm-maroon);
    color: var(--mm-cream);
    font-family: var(--mm-font-label);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--mm-shadow-card);
}

.mosmem-mobile-menu-icon { display: inline-flex; flex-direction: column; gap: 4px; }

.mosmem-mobile-menu-icon span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--mm-cream);
}

.mosmem-mobile-menu-text { line-height: 1; }

.mosmem-sidebar-popup { display: none; }
.mosmem-sidebar-popup.is-open { display: block; }

.mosmem-sidebar-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(42, 0, 12, 0.55);
    z-index: 9998;
}

.mosmem-sidebar-popup-panel {
    position: fixed;
    top: 20px;
    left: 16px;
    right: 16px;
    max-width: 520px;
    margin: 0 auto;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--mm-cream);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    padding: 56px 16px 20px;
}

.mosmem-sidebar-popup-inner .mosmem-sidebar-section { margin-bottom: 16px; }

.mosmem-sidebar-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--mm-radius-sm);
    background: var(--mm-sand-light);
    color: var(--mm-ink);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.mosmem-sidebar-popup-close:hover { background: var(--mm-sand); }

body.mosmem-menu-open { overflow: hidden; }

/* Phones: popup becomes a bottom sheet */
@media (max-width: 559px) {
    .mosmem-sidebar-popup-panel {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        max-width: none;
        border-radius: 18px 18px 0 0;
        max-height: 88vh;
        max-height: 88dvh;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        animation: mm-sheet-up 0.22s ease-out;
    }
}

@keyframes mm-sheet-up {
    from { transform: translateY(24px); opacity: 0.6; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* =====================================================================
   13. RESPONSIVE LAYOUT
   Breakpoints: ≤559 phones · 560–980 stacked · 981–1280 narrow desk · ≥1281 desk
   ===================================================================== */

@media (min-width: 981px) and (max-width: 1280px) {
    :root { --mm-sidebar-w: clamp(240px, 25vw, 290px); }
}

@media (max-width: 980px) {
    .mosmem-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .mosmem-sidebar {
        position: static;
        gap: 10px;
    }

    .mosmem-sidebar-logo {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }

    /* Collapse full sidebar into the Menu button + popup */
    .mosmem-sidebar-content { display: none; }
    .mosmem-mobile-menu-toggle { display: inline-flex; }

    .mosmem-header-search-form .mosmem-header-search-input,
    .mosmem-header-search-form .mosmem-header-search-button { flex: 1 1 100%; }
}

@media (max-width: 559px) {
    .mosmem-site-container { padding: 10px 12px 0; }

    /* Slightly shorter on phones so the page header and the map
       fit together without endless scrolling. */
    .mosmem-map-canvas {
        height: 72vh;
        height: 72dvh;
    }

    .mosmem-toplinks { justify-content: center; }

    .mosmem-main {
        padding: 1.2rem 1rem 1.8rem;
        border-radius: 12px;
    }

    .mosmem-page-header { margin-bottom: 1.2rem; }

    .mosmem-story-card-media { margin: 10px 10px 0; }

    .mosmem-story-hero { padding: 12px 12px 10px; }

    .mosmem-front-section { padding: 1.1rem 1rem 1.2rem; }
}

/* =====================================================================
   14. ADMIN BAR, ACCESSIBILITY, MOTION
   ===================================================================== */

html { margin-top: 0 !important; }
body.admin-bar #wpadminbar { position: fixed; }
body.admin-bar .mosmem-site-container { padding-top: 46px; }
@media (min-width: 783px) {
    body.admin-bar .mosmem-site-container { padding-top: 46px; }
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--mm-maroon);
    outline-offset: 2px;
}

.mosmem-sidebar-nav a:focus-visible,
.mosmem-submit-story:focus-visible,
.mosmem-header-search-button:focus-visible,
.mosmem-mobile-menu-toggle:focus-visible {
    outline-color: var(--mm-sand-light);
    outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .mosmem-story-card:hover,
    .mosmem-tile:hover { transform: none; }
}

@media print {
    body { background: #fff; }
    .mosmem-sidebar,
    .mosmem-toplinks,
    .mosmem-footer,
    .mosmem-mobile-menu-toggle { display: none !important; }
    .mosmem-main { box-shadow: none; }
}

/* =====================================================================
   15. CONTACT FORM
   ===================================================================== */

.mosmem-contact-form-wrap {
    margin: 0 0 2rem;
    padding: 1.4rem 1.5rem 1.6rem;
    background: #fff;
    border: 1px solid var(--mm-rule-soft);
    border-radius: var(--mm-radius);
}

.mosmem-contact-form-wrap .mosmem-front-heading { margin-top: 0; }

.mosmem-field { margin-bottom: 1.1rem; }

.mosmem-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-family: var(--mm-font-label);
    font-weight: 500;
    font-size: var(--mm-fs-label);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mm-ink-soft);
}

.mosmem-contact-form textarea,
.mosmem-contact-form input[type="email"],
.mosmem-contact-form input[type="text"] {
    width: 100%;
    padding: 0.6rem 0.9rem;
    font-family: var(--mm-font-serif);
    font-size: 16px; /* prevents iOS focus zoom */
    line-height: 1.6;
    color: var(--mm-ink);
    background: var(--mm-paper);
    border: 1px solid var(--mm-rule-soft);
    border-radius: var(--mm-radius-sm);
}

.mosmem-contact-form textarea {
    min-height: 190px;
    resize: vertical;
}

.mosmem-contact-form textarea:focus,
.mosmem-contact-form input:focus {
    outline: none;
    border-color: var(--mm-maroon);
    box-shadow: 0 0 0 3px rgba(141, 11, 46, 0.16);
}

/* Matches the global button style (sidebar "Find") */
.mosmem-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.4rem 1.6rem;
    border: 0;
    border-radius: var(--mm-radius-sm);
    background: var(--mm-maroon);
    color: var(--mm-cream);
    font-family: var(--mm-font-label);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s ease;
}

.mosmem-button:hover { background: var(--mm-maroon-dark); color: var(--mm-cream); }

/* Honeypot: off-screen rather than display:none, which some bots detect */
.mosmem-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Submission feedback */
.mosmem-notice {
    margin: 0 0 1.4rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--mm-radius-sm);
    border-left: 4px solid var(--mm-maroon);
    background: rgba(230, 188, 136, 0.2);
    font-size: 1rem;
    line-height: 1.55;
}

.mosmem-notice--success {
    border-left-color: #2f7d32;
    background: rgba(47, 125, 50, 0.1);
}

.mosmem-notice--error {
    border-left-color: var(--mm-maroon);
    background: rgba(141, 11, 46, 0.08);
}

@media (max-width: 559px) {
    .mosmem-contact-form-wrap { padding: 1.1rem 1rem 1.2rem; }
    .mosmem-contact-form textarea { min-height: 150px; }
    .mosmem-button { width: 100%; }
}

/* =====================================================================
   16. LEGACY IMPORTED IMAGES (Textpattern figures)
   ===================================================================== */

.mosmem-story-figure {
    margin: 2rem 0;
}

.mosmem-story-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--mm-radius-sm);
}

/* Caption: printed-plate look, sitting under a hairline rule */
.mosmem-story-caption,
.mosmem-story-figure figcaption {
    margin-top: 0.55rem;
    padding-top: 0.45rem;
    border-top: 1px dashed var(--mm-ledger);
    font-family: var(--mm-font-serif);
    font-size: 0.92rem;
    font-style: italic;
    line-height: 1.45;
    color: var(--mm-ink-soft);
}

/* form="image-boxed" on the old site: a bordered plate floated right
   with the text wrapping beside it. */
.mosmem-story-figure--image-boxed {
    float: right;
    width: min(46%, 420px);
    margin: 0.35rem 0 1.2rem 1.6rem;
    padding: 10px;
    background: var(--mm-paper);
    border: 1px solid var(--mm-rule-soft);
    border-radius: var(--mm-radius-sm);
    box-shadow: var(--mm-shadow-card);
}

.mosmem-story-figure--image-boxed figcaption {
    margin-top: 0.5rem;
}

/* Left-floating variant, if any entries used it */
.mosmem-story-figure--image-boxed-left {
    float: left;
    width: min(46%, 420px);
    margin: 0.35rem 1.6rem 1.2rem 0;
    padding: 10px;
    background: var(--mm-paper);
    border: 1px solid var(--mm-rule-soft);
    border-radius: var(--mm-radius-sm);
    box-shadow: var(--mm-shadow-card);
}

/* Stop a float overhanging the end of the story */
.mosmem-story-content::after,
.mosmem-content::after {
    content: "";
    display: block;
    clear: both;
}

/* Narrow screens: floats make columns too tight — go full width */
@media (max-width: 700px) {
    .mosmem-story-figure--image-boxed,
    .mosmem-story-figure--image-boxed-left {
        float: none;
        width: 100%;
        margin: 1.5rem 0;
    }
}