body {
    margin: 0;
    padding: 0;
}

.main-container {
    padding: 20px 32px;
    font-family: Montserrat, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    color: #333333;
}

@font-face {
    font-family: SFProText;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/SFProText-Regular.woff2') format('woff2'),
         url('../fonts/SFProText-Regular.ttf') format('truetype');
}

.top-nav-bar {
    display: flex;
    width: 100%;
    font-size: 16px;
}

.nav-link {
    margin-right: 20px;
}

a.clean {
    text-decoration: none;
    outline: none;
    color: inherit;
}

button.clean {
    appearance: none;
    border: none;
}

.rich-text-view {
    font-size: 18px;
    font-family: 'SFProText', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    color: black;
    line-height: 28px;
}

.rich-text-view p {
    margin: 0px;
    margin-bottom: 15px;
}

.rich-text-view blockquote {
    border-left: 2px solid #ccc;
    margin-left: 1.5rem;
    padding-left: 1rem;
}

/* ── Memory body copy ──────────────────────────────────────────────────────
   Long-form reading block for memory content (detail column, mobile composer
   preview). Sizes come from the design-system type scale (bodyLg 17/26,
   h3 20/28, h4 18/24, caption 13/18), spacing from the 4px grid, colours from
   the --ds-* semantic tokens (seo/css/ds-tokens.css). The detail column is
   still a hardcoded-white surface, so the markup also carries the `light`
   class (tokens.css) to keep those tokens on the light palette until dark
   mode is wired for Django templates. */
.memory-prose {
    font-size: 17px;
    line-height: 26px;
    color: var(--ds-ink);
    max-width: 66ch;
    margin-top: 8px;
    overflow-wrap: break-word;
}

.memory-prose p,
.memory-prose ul,
.memory-prose ol,
.memory-prose blockquote {
    margin: 0 0 16px;
}

.memory-prose > :first-child {
    margin-top: 0;
}

.memory-prose > :last-child {
    margin-bottom: 0;
}

.memory-prose ul,
.memory-prose ol {
    padding-left: 24px;
}

.memory-prose li {
    margin-bottom: 8px;
}

.memory-prose li:last-child {
    margin-bottom: 0;
}

.memory-prose h1,
.memory-prose h2,
.memory-prose h3,
.memory-prose h4 {
    font-family: Montserrat, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    font-weight: 600;
    color: var(--ds-ink);
    margin: 24px 0 8px;
}

.memory-prose h1,
.memory-prose h2 {
    font-size: 20px;
    line-height: 28px;
}

.memory-prose h3,
.memory-prose h4 {
    font-size: 18px;
    line-height: 24px;
}

.memory-prose blockquote {
    padding-left: 16px;
    border-left: 3px solid var(--ds-line);
    color: var(--ds-ink-soft);
}

.memory-prose a {
    color: var(--ds-link);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.memory-prose a:hover {
    color: var(--ds-link-hover);
}

.memory-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Trailing photo/source credit ("Photo: …, CC BY 3.0, via Wikimedia Commons"),
   set as a caption so it stops competing with the story. */
.memory-prose .memory-prose__credit {
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid var(--ds-line);
    font-size: 13px;
    line-height: 18px;
    color: var(--ds-ink-soft);
}

.prevent-select {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

* {
    -webkit-font-smoothing: antialiased;
}


.grecaptcha-badge {
    visibility: hidden !important;
}